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, off_t, off_t); 56 ssize_t __pwrite64 (int, void *, size_t, off_t, off_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 getdents (unsigned int, struct dirent *, unsigned int); 87 int fsync (int); 88 int fdatasync (int); 89 int fchown (int, uid_t, gid_t); 90 void sync (void); 91 int __fcntl64 (int, int, void *); 92 int __fstatfs64 (int, size_t, struct statfs *); 93 ssize_t sendfile (int out_fd, int in_fd, off_t *offset, size_t count); 94 int fstatat (int dirfd, const char *path, struct stat *buf, int flags); 95 int mkdirat (int dirfd, const char *pathname, mode_t mode); 96 int fchownat (int dirfd, const char *path, uid_t owner, gid_t group, int flags); 97 int fchmodat (int dirfd, const char *path, mode_t mode, int flags); 98 int renameat (int olddirfd, const char *oldpath, int newdirfd, const char *newpath); 99 int link (const char*, const char*); 100 int unlink (const char*); 101 int unlinkat (int, const char *, int); 102 int chdir (const char*); 103 int mknod (const char*, mode_t, dev_t); 104 int chmod (const char*,mode_t); 105 int chown (const char *, uid_t, gid_t); 106 int lchown (const char*, uid_t, gid_t); 107 int mount (const char*, const char*, const char*, unsigned long, const void*); 108 int umount (const char*); 109 int umount2 (const char*, int); 110 int fstat (int, struct stat*); 111 int stat (const char *, struct stat *); 112 int lstat (const char *, struct stat *); 113 int mkdir (const char *, mode_t); 114 int readlink (const char *, char *, size_t); 115 int rmdir (const char *); 116 int rename (const char *, const char *); 117 int __getcwd (char * buf, size_t size); 118 int access (const char *, int); 119 int symlink (const char *, const char *); 120 int fchdir (int); 121 int truncate (const char*, off_t); 122 int __statfs64 (const char *, size_t, struct statfs *); 123 int pause (void); 124 int gettimeofday (struct timeval*, struct timezone*); 125 int settimeofday (const struct timeval*, const struct timezone*); 126 clock_t times (struct tms *); 127 int nanosleep (const struct timespec *, struct timespec *); 128 int clock_gettime (clockid_t clk_id, struct timespec *tp); 129 int clock_settime (clockid_t clk_id, const struct timespec *tp); 130 int clock_getres (clockid_t clk_id, struct timespec *res); 131 int clock_nanosleep (const struct timespec *req, struct timespec *rem); 132 int getitimer (int, const struct itimerval *); 133 int setitimer (int, const struct itimerval *, struct itimerval *); 134 int __timer_create (clockid_t clockid, struct sigevent *evp, timer_t *timerid); 135 int __timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*); 136 int __timer_gettime (timer_t, struct itimerspec*); 137 int __timer_getoverrun (timer_t); 138 int __timer_delete (timer_t); 139 int utimes (const char*, const struct timeval tvp[2]); 140 int sigaction (int, const struct sigaction *, struct sigaction *); 141 int sigprocmask (int, const sigset_t *, sigset_t *); 142 int __sigsuspend (int unused1, int unused2, unsigned mask); 143 int __rt_sigaction (int sig, const struct sigaction *act, struct sigaction *oact, size_t sigsetsize); 144 int __rt_sigprocmask (int how, const sigset_t *set, sigset_t *oset, size_t sigsetsize); 145 int __rt_sigtimedwait (const sigset_t *set, struct siginfo_t *info, struct timespec_t *timeout, size_t sigset_size); 146 int sigpending (sigset_t *); 147 int socket (int, int, int); 148 int socketpair (int, int, int, int*); 149 int bind (int, struct sockaddr *, int); 150 int connect (int, struct sockaddr *, socklen_t); 151 int listen (int, int); 152 int accept (int, struct sockaddr *, socklen_t *); 153 int getsockname (int, struct sockaddr *, socklen_t *); 154 int getpeername (int, struct sockaddr *, socklen_t *); 155 int sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t); 156 int recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *); 157 int shutdown (int, int); 158 int setsockopt (int, int, int, const void *, socklen_t); 159 int getsockopt (int, int, int, void *, socklen_t *); 160 int sendmsg (int, const struct msghdr *, unsigned int); 161 int recvmsg (int, struct msghdr *, unsigned int); 162 int socket (int, int, int); 163 int bind (int, struct sockaddr *, int); 164 int connect (int, struct sockaddr *, socklen_t); 165 int listen (int, int); 166 int accept (int, struct sockaddr *, socklen_t *); 167 int getsockname (int, struct sockaddr *, socklen_t *); 168 int getpeername (int, struct sockaddr *, socklen_t *); 169 int socketpair (int, int, int, int*); 170 int sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t); 171 int recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *); 172 int shutdown (int, int); 173 int setsockopt (int, int, int, const void *, socklen_t); 174 int getsockopt (int, int, int, void *, socklen_t *); 175 int sendmsg (int, const struct msghdr *, unsigned int); 176 int recvmsg (int, struct msghdr *, unsigned int); 177 int __socketcall (int, unsigned long*); 178 int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); 179 int sched_getscheduler (pid_t pid); 180 int sched_yield (void); 181 int sched_setparam (pid_t pid, const struct sched_param *param); 182 int sched_getparam (pid_t pid, struct sched_param *param); 183 int sched_get_priority_max (int policy); 184 int sched_get_priority_min (int policy); 185 int sched_rr_get_interval (pid_t pid, struct timespec *interval); 186 int ioprio_set (int which, int who, int ioprio); 187 int ioprio_get (int which, int who); 188 int uname (struct utsname *); 189 pid_t __wait4 (pid_t pid, int *status, int options, struct rusage *rusage); 190 mode_t umask (mode_t); 191 int __reboot (int, int, int, void *); 192 int __syslog (int, char *, int); 193 int init_module (void *, unsigned long, const char *); 194 int delete_module (const char*, unsigned int); 195 int klogctl (int, char *, int); 196 int sysinfo (struct sysinfo *); 197 int futex (void *, int, int, void *, void *, int); 198 int epoll_create (int size); 199 int epoll_ctl (int epfd, int op, int fd, struct epoll_event *event); 200 int epoll_wait (int epfd, struct epoll_event *events, int max, int timeout); 201 int inotify_init (void); 202 int inotify_add_watch (int, const char *, unsigned int); 203 int inotify_rm_watch (int, unsigned int); 204 int poll (struct pollfd *, unsigned int, long); 205 int eventfd (unsigned int, int); 206 int __set_tls (void*); 207 int cacheflush (long start, long end, long flags); 208 #ifdef __cplusplus 209 } 210 #endif 211 212 #endif /* _BIONIC_LINUX_UNISTD_H_ */ 213