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