Home | History | Annotate | Download | only in sys
      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            __clone (int (*fn)(void*), void *child_stack, int flags, void *arg);
     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              acct (const char*  filepath);
     52 ssize_t          read (int, void*, size_t);
     53 ssize_t          write (int, const void*, size_t);
     54 ssize_t          __pread64 (int, void *, size_t, off_t, off_t);
     55 ssize_t          __pwrite64 (int, void *, size_t, off_t, off_t);
     56 int              __open (const char*, int, mode_t);
     57 int              __openat (int, const char*, int, mode_t);
     58 int              close (int);
     59 int              creat (const char*, mode_t);
     60 off_t            lseek (int, off_t, int);
     61 int              __llseek (int, unsigned long, unsigned long, loff_t*, int);
     62 pid_t            getpid (void);
     63 void *           mmap (void *, size_t, int, int, int, long);
     64 void *           __mmap2 (void*, size_t, int, int, int, long);
     65 int              munmap (void *, size_t);
     66 void *           mremap (void *, size_t, size_t, unsigned long);
     67 int              msync (const void *, size_t, int);
     68 int              mprotect (const void *, size_t, int);
     69 int              madvise (const void *, size_t, int);
     70 int              mlock (const void *addr, size_t len);
     71 int              munlock (const void *addr, size_t len);
     72 int              mincore (void*  start, size_t  length, unsigned char*  vec);
     73 int              __ioctl (int, int, void *);
     74 int              readv (int, const struct iovec *, int);
     75 int              writev (int, const struct iovec *, int);
     76 int              __fcntl (int, int, void*);
     77 int              flock (int, int);
     78 int              fchmod (int, mode_t);
     79 int              dup (int);
     80 int              pipe (int *);
     81 int              dup2 (int, int);
     82 int              select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *);
     83 int              ftruncate (int, off_t);
     84 int              getdents (unsigned int, struct dirent *, unsigned int);
     85 int              fsync (int);
     86 int              fchown (int, uid_t, gid_t);
     87 void             sync (void);
     88 int              __fcntl64 (int, int, void *);
     89 int              fstatfs (int, size_t, struct statfs *);
     90 ssize_t          sendfile (int out_fd, int in_fd, off_t *offset, size_t count);
     91 int              fstatat (int dirfd, const char *path, struct stat *buf, int flags);
     92 int              mkdirat (int dirfd, const char *pathname, mode_t mode);
     93 int              fchownat (int dirfd, const char *path, uid_t owner, gid_t group, int flags);
     94 int              fchmodat (int dirfd, const char *path, mode_t mode, int flags);
     95 int              renameat (int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
     96 int              link (const char*, const char*);
     97 int              unlink (const char*);
     98 int              unlinkat (int, const char *, int);
     99 int              chdir (const char*);
    100 int              mknod (const char*, mode_t, dev_t);
    101 int              chmod (const char*,mode_t);
    102 int              chown (const char *, uid_t, gid_t);
    103 int              lchown (const char*, uid_t, gid_t);
    104 int              mount (const char*, const char*, const char*, unsigned long, const void*);
    105 int              umount (const char*);
    106 int              umount2 (const char*, int);
    107 int              fstat (int, struct stat*);
    108 int              stat (const char *, struct stat *);
    109 int              lstat (const char *, struct stat *);
    110 int              mkdir (const char *, mode_t);
    111 int              readlink (const char *, char *, size_t);
    112 int              rmdir (const char *);
    113 int              rename (const char *, const char *);
    114 int              __getcwd (char * buf, size_t size);
    115 int              access (const char *, int);
    116 int              symlink (const char *, const char *);
    117 int              fchdir (int);
    118 int              truncate (const char*, off_t);
    119 int              __statfs64 (const char *, size_t, struct statfs *);
    120 int              pause (void);
    121 int              gettimeofday (struct timeval*, struct timezone*);
    122 int              settimeofday (const struct timeval*, const struct timezone*);
    123 clock_t          times (struct tms *);
    124 int              nanosleep (const struct timespec *, struct timespec *);
    125 int              clock_gettime (clockid_t clk_id, struct timespec *tp);
    126 int              clock_settime (clockid_t clk_id, const struct timespec *tp);
    127 int              clock_getres (clockid_t clk_id, struct timespec *res);
    128 int              clock_nanosleep (const struct timespec *req, struct timespec *rem);
    129 int              getitimer (int, const struct itimerval *);
    130 int              setitimer (int, const struct itimerval *, struct itimerval *);
    131 int              __timer_create (clockid_t clockid, struct sigevent *evp, timer_t *timerid);
    132 int              __timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*);
    133 int              __timer_gettime (timer_t, struct itimerspec*);
    134 int              __timer_getoverrun (timer_t);
    135 int              __timer_delete (timer_t);
    136 int              utimes (const char*, const struct timeval tvp[2]);
    137 int              sigaction (int, const struct sigaction *, struct sigaction *);
    138 int              sigprocmask (int, const sigset_t *, sigset_t *);
    139 int              __sigsuspend (int unused1, int unused2, unsigned mask);
    140 int              __rt_sigaction (int sig, const struct sigaction *act, struct sigaction *oact, size_t sigsetsize);
    141 int              __rt_sigprocmask (int  how, const sigset_t *set, sigset_t *oset, size_t sigsetsize);
    142 int              __rt_sigtimedwait (const sigset_t *set, struct siginfo_t  *info, struct timespec_t  *timeout, size_t  sigset_size);
    143 int              sigpending (sigset_t *);
    144 int              socket (int, int, int);
    145 int              socketpair (int, int, int, int*);
    146 int              bind (int, struct sockaddr *, int);
    147 int              connect (int, struct sockaddr *, socklen_t);
    148 int              listen (int, int);
    149 int              accept (int, struct sockaddr *, socklen_t *);
    150 int              getsockname (int, struct sockaddr *, socklen_t *);
    151 int              getpeername (int, struct sockaddr *, socklen_t *);
    152 int              sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t);
    153 int              recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *);
    154 int              shutdown (int, int);
    155 int              setsockopt (int, int, int, const void *, socklen_t);
    156 int              getsockopt (int, int, int, void *, socklen_t *);
    157 int              sendmsg (int, const struct msghdr *, unsigned int);
    158 int              recvmsg (int, struct msghdr *, unsigned int);
    159 int              socket (int, int, int);
    160 int              bind (int, struct sockaddr *, int);
    161 int              connect (int, struct sockaddr *, socklen_t);
    162 int              listen (int, int);
    163 int              accept (int, struct sockaddr *, socklen_t *);
    164 int              getsockname (int, struct sockaddr *, socklen_t *);
    165 int              getpeername (int, struct sockaddr *, socklen_t *);
    166 int              socketpair (int, int, int, int*);
    167 int              sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t);
    168 int              recvfrom (int, void *, size_t, unsigned int, struct sockaddr *, socklen_t *);
    169 int              shutdown (int, int);
    170 int              setsockopt (int, int, int, const void *, socklen_t);
    171 int              getsockopt (int, int, int, void *, socklen_t *);
    172 int              sendmsg (int, const struct msghdr *, unsigned int);
    173 int              recvmsg (int, struct msghdr *, unsigned int);
    174 int              sched_setscheduler (pid_t pid, int policy, const struct sched_param *param);
    175 int              sched_getscheduler (pid_t pid);
    176 int              sched_yield (void);
    177 int              sched_setparam (pid_t pid, const struct sched_param *param);
    178 int              sched_getparam (pid_t pid, struct sched_param *param);
    179 int              sched_get_priority_max (int policy);
    180 int              sched_get_priority_min (int policy);
    181 int              sched_rr_get_interval (pid_t pid, struct timespec *interval);
    182 int              uname (struct utsname *);
    183 pid_t            __wait4 (pid_t pid, int *status, int options, struct rusage *rusage);
    184 mode_t           umask (mode_t);
    185 int              __reboot (int, int, int, void *);
    186 int              __syslog (int, char *, int);
    187 int              init_module (void *, unsigned long, const char *);
    188 int              delete_module (const char*, unsigned int);
    189 int              klogctl (int, char *, int);
    190 int              futex (void *, int, int, void *, void *, int);
    191 int              epoll_create (int size);
    192 int              epoll_ctl (int epfd, int op, int fd, struct epoll_event *event);
    193 int              epoll_wait (int epfd, struct epoll_event *events, int max, int timeout);
    194 int              inotify_init (void);
    195 int              inotify_add_watch (int, const char *, unsigned int);
    196 int              inotify_rm_watch (int, unsigned int);
    197 int              poll (struct pollfd *, unsigned int, long);
    198 int              __set_tls (void*);
    199 int              cacheflush (long start, long end, long flags);
    200 #ifdef __cplusplus
    201 }
    202 #endif
    203 
    204 #endif /* _BIONIC_LINUX_UNISTD_H_ */
    205