1/* auto-generated by gensyscalls.py, do not touch */ 2#ifndef _BIONIC_LINUX_UNISTD_H_ 3 4#ifdef __cplusplus 5extern "C" { 6#endif 7 8void _exit (int); 9void _exit_thread (int); 10pid_t __fork (void); 11pid_t _waitpid (pid_t, int*, int, struct rusage*); 12int __waitid (int, pid_t, struct siginfo_t*, int,void*); 13pid_t __sys_clone (int, void*, int*, void*, int*); 14int execve (const char*, char* const*, char* const*); 15int __setuid (uid_t); 16uid_t getuid (void); 17gid_t getgid (void); 18uid_t geteuid (void); 19gid_t getegid (void); 20uid_t getresuid (void); 21gid_t getresgid (void); 22pid_t gettid (void); 23int getgroups (int, gid_t *); 24pid_t getpgid (pid_t); 25pid_t getppid (void); 26pid_t setsid (void); 27int setgid (gid_t); 28int seteuid (uid_t); 29int __setreuid (uid_t, uid_t); 30int __setresuid (uid_t, uid_t, uid_t); 31int setresgid (gid_t, gid_t, gid_t); 32void* __brk (void*); 33int kill (pid_t, int); 34int tkill (pid_t tid, int sig); 35int __ptrace (int request, int pid, void* addr, void* data); 36int __set_thread_area (void* user_desc); 37int __getpriority (int, int); 38int setpriority (int, int, int); 39int setrlimit (int resource, const struct rlimit *rlp); 40int getrlimit (int resource, struct rlimit *rlp); 41int getrusage (int who, struct rusage* r_usage); 42int setgroups (int, const gid_t *); 43pid_t getpgrp (void); 44int setpgid (pid_t, pid_t); 45pid_t vfork (void); 46int setregid (gid_t, gid_t); 47int chroot (const char *); 48int prctl (int option, unsigned int arg2, unsigned int arg3, unsigned int arg4, unsigned int arg5); 49int capget (cap_user_header_t header, cap_user_data_t data); 50int capset (cap_user_header_t header, const cap_user_data_t data); 51int sigaltstack (const stack_t*, stack_t*); 52int acct (const char* filepath); 53ssize_t read (int, void*, size_t); 54ssize_t write (int, const void*, size_t); 55ssize_t pread64 (int, void *, size_t, off64_t); 56ssize_t pwrite64 (int, void *, size_t, off64_t); 57int __open (const char*, int, mode_t); 58int __openat (int, const char*, int, mode_t); 59int close (int); 60int creat (const char*, mode_t); 61off_t lseek (int, off_t, int); 62int __llseek (int, unsigned long, unsigned long, loff_t*, int); 63pid_t getpid (void); 64void * mmap (void *, size_t, int, int, int, long); 65void * __mmap2 (void*, size_t, int, int, int, long); 66int munmap (void *, size_t); 67void * mremap (void *, size_t, size_t, unsigned long); 68int msync (const void *, size_t, int); 69int mprotect (const void *, size_t, int); 70int madvise (const void *, size_t, int); 71int mlock (const void *addr, size_t len); 72int munlock (const void *addr, size_t len); 73int mincore (void* start, size_t length, unsigned char* vec); 74int __ioctl (int, int, void *); 75int readv (int, const struct iovec *, int); 76int writev (int, const struct iovec *, int); 77int __fcntl (int, int, void*); 78int flock (int, int); 79int fchmod (int, mode_t); 80int dup (int); 81int pipe (int *); 82int pipe2 (int *, int); 83int dup2 (int, int); 84int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *); 85int ftruncate (int, off_t); 86int ftruncate64 (int, off64_t); 87int getdents (unsigned int, struct dirent *, unsigned int); 88int fsync (int); 89int fdatasync (int); 90int fchown (int, uid_t, gid_t); 91void sync (void); 92int __fcntl64 (int, int, void *); 93int __fstatfs64 (int, size_t, struct statfs *); 94ssize_t sendfile (int out_fd, int in_fd, off_t *offset, size_t count); 95int fstatat (int dirfd, const char *path, struct stat *buf, int flags); 96int mkdirat (int dirfd, const char *pathname, mode_t mode); 97int fchownat (int dirfd, const char *path, uid_t owner, gid_t group, int flags); 98int fchmodat (int dirfd, const char *path, mode_t mode, int flags); 99int renameat (int olddirfd, const char *oldpath, int newdirfd, const char *newpath); 100int link (const char*, const char*); 101int unlink (const char*); 102int unlinkat (int, const char *, int); 103int chdir (const char*); 104int mknod (const char*, mode_t, dev_t); 105int chmod (const char*,mode_t); 106int chown (const char *, uid_t, gid_t); 107int lchown (const char*, uid_t, gid_t); 108int mount (const char*, const char*, const char*, unsigned long, const void*); 109int umount (const char*); 110int umount2 (const char*, int); 111int fstat (int, struct stat*); 112int stat (const char *, struct stat *); 113int lstat (const char *, struct stat *); 114int mkdir (const char *, mode_t); 115int readlink (const char *, char *, size_t); 116int rmdir (const char *); 117int rename (const char *, const char *); 118int __getcwd (char * buf, size_t size); 119int access (const char *, int); 120int symlink (const char *, const char *); 121int fchdir (int); 122int truncate (const char*, off_t); 123int __statfs64 (const char *, size_t, struct statfs *); 124int pause (void); 125int gettimeofday (struct timeval*, struct timezone*); 126int settimeofday (const struct timeval*, const struct timezone*); 127clock_t times (struct tms *); 128int nanosleep (const struct timespec *, struct timespec *); 129int clock_gettime (clockid_t clk_id, struct timespec *tp); 130int clock_settime (clockid_t clk_id, const struct timespec *tp); 131int clock_getres (clockid_t clk_id, struct timespec *res); 132int clock_nanosleep (const struct timespec *req, struct timespec *rem); 133int getitimer (int, const struct itimerval *); 134int setitimer (int, const struct itimerval *, struct itimerval *); 135int __timer_create (clockid_t clockid, struct sigevent *evp, timer_t *timerid); 136int __timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*); 137int __timer_gettime (timer_t, struct itimerspec*); 138int __timer_getoverrun (timer_t); 139int __timer_delete (timer_t); 140int utimes (const char*, const struct timeval tvp[2]); 141int utimensat (int, const char *, const struct timespec times[2], int); 142int sigaction (int, const struct sigaction *, struct sigaction *); 143int sigprocmask (int, const sigset_t *, sigset_t *); 144int __sigsuspend (int unused1, int unused2, unsigned mask); 145int __rt_sigaction (int sig, const struct sigaction *act, struct sigaction *oact, size_t sigsetsize); 146int __rt_sigprocmask (int how, const sigset_t *set, sigset_t *oset, size_t sigsetsize); 147int __rt_sigtimedwait (const sigset_t *set, struct siginfo_t *info, struct timespec_t *timeout, size_t sigset_size); 148int sigpending (sigset_t *); 149int socket (int, int, int); 150int socketpair (int, int, int, int*); 151int bind (int, struct sockaddr *, int); 152int connect (int, struct sockaddr *, socklen_t); 153int listen (int, int); 154int accept (int, struct sockaddr *, socklen_t *); 155int getsockname (int, struct sockaddr *, socklen_t *); 156int getpeername (int, struct sockaddr *, socklen_t *); 157int sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t); 158int recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *); 159int shutdown (int, int); 160int setsockopt (int, int, int, const void *, socklen_t); 161int getsockopt (int, int, int, void *, socklen_t *); 162int sendmsg (int, const struct msghdr *, unsigned int); 163int recvmsg (int, struct msghdr *, unsigned int); 164int socket (int, int, int); 165int bind (int, struct sockaddr *, int); 166int connect (int, struct sockaddr *, socklen_t); 167int listen (int, int); 168int accept (int, struct sockaddr *, socklen_t *); 169int getsockname (int, struct sockaddr *, socklen_t *); 170int getpeername (int, struct sockaddr *, socklen_t *); 171int socketpair (int, int, int, int*); 172int sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t); 173int recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *); 174int shutdown (int, int); 175int setsockopt (int, int, int, const void *, socklen_t); 176int getsockopt (int, int, int, void *, socklen_t *); 177int sendmsg (int, const struct msghdr *, unsigned int); 178int recvmsg (int, struct msghdr *, unsigned int); 179int __socketcall (int, unsigned long*); 180int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); 181int sched_getscheduler (pid_t pid); 182int sched_yield (void); 183int sched_setparam (pid_t pid, const struct sched_param *param); 184int sched_getparam (pid_t pid, struct sched_param *param); 185int sched_get_priority_max (int policy); 186int sched_get_priority_min (int policy); 187int sched_rr_get_interval (pid_t pid, struct timespec *interval); 188int sched_setaffinity (pid_t pid, size_t setsize, const cpu_set_t* set); 189int __sched_getaffinity (pid_t pid, size_t setsize, cpu_set_t* set); 190int __getcpu (unsigned *cpu, unsigned *node, void *unused); 191int ioprio_set (int which, int who, int ioprio); 192int ioprio_get (int which, int who); 193int uname (struct utsname *); 194pid_t __wait4 (pid_t pid, int *status, int options, struct rusage *rusage); 195mode_t umask (mode_t); 196int __reboot (int, int, int, void *); 197int __syslog (int, char *, int); 198int init_module (void *, unsigned long, const char *); 199int delete_module (const char*, unsigned int); 200int klogctl (int, char *, int); 201int sysinfo (struct sysinfo *); 202int personality (unsigned long); 203int futex (void *, int, int, void *, void *, int); 204int epoll_create (int size); 205int epoll_ctl (int epfd, int op, int fd, struct epoll_event *event); 206int epoll_wait (int epfd, struct epoll_event *events, int max, int timeout); 207int inotify_init (void); 208int inotify_add_watch (int, const char *, unsigned int); 209int inotify_rm_watch (int, unsigned int); 210int poll (struct pollfd *, unsigned int, long); 211int eventfd (unsigned int, int); 212int __set_tls (void*); 213int cacheflush (long start, long end, long flags); 214#ifdef __cplusplus 215} 216#endif 217 218#endif /* _BIONIC_LINUX_UNISTD_H_ */ 219