zsysnum_dragonfly_amd64.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. // go run mksysnum.go https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build amd64 && dragonfly
  4. // +build amd64,dragonfly
  5. package unix
  6. const (
  7. SYS_EXIT = 1 // { void exit(int rval); }
  8. SYS_FORK = 2 // { int fork(void); }
  9. SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); }
  10. SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); }
  11. SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
  12. SYS_CLOSE = 6 // { int close(int fd); }
  13. SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } wait4 wait_args int
  14. // SYS_NOSYS = 8; // { int nosys(void); } __nosys nosys_args int
  15. SYS_LINK = 9 // { int link(char *path, char *link); }
  16. SYS_UNLINK = 10 // { int unlink(char *path); }
  17. SYS_CHDIR = 12 // { int chdir(char *path); }
  18. SYS_FCHDIR = 13 // { int fchdir(int fd); }
  19. SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
  20. SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
  21. SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
  22. SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
  23. SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, int flags); }
  24. SYS_GETPID = 20 // { pid_t getpid(void); }
  25. SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); }
  26. SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
  27. SYS_SETUID = 23 // { int setuid(uid_t uid); }
  28. SYS_GETUID = 24 // { uid_t getuid(void); }
  29. SYS_GETEUID = 25 // { uid_t geteuid(void); }
  30. SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
  31. SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
  32. SYS_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
  33. SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, caddr_t from, int *fromlenaddr); }
  34. SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); }
  35. SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); }
  36. SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, int *alen); }
  37. SYS_ACCESS = 33 // { int access(char *path, int flags); }
  38. SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
  39. SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
  40. SYS_SYNC = 36 // { int sync(void); }
  41. SYS_KILL = 37 // { int kill(int pid, int signum); }
  42. SYS_GETPPID = 39 // { pid_t getppid(void); }
  43. SYS_DUP = 41 // { int dup(int fd); }
  44. SYS_PIPE = 42 // { int pipe(void); }
  45. SYS_GETEGID = 43 // { gid_t getegid(void); }
  46. SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, u_long offset, u_int scale); }
  47. SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); }
  48. SYS_GETGID = 47 // { gid_t getgid(void); }
  49. SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, size_t namelen); }
  50. SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
  51. SYS_ACCT = 51 // { int acct(char *path); }
  52. SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); }
  53. SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
  54. SYS_REBOOT = 55 // { int reboot(int opt); }
  55. SYS_REVOKE = 56 // { int revoke(char *path); }
  56. SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
  57. SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); }
  58. SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
  59. SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
  60. SYS_CHROOT = 61 // { int chroot(char *path); }
  61. SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
  62. SYS_VFORK = 66 // { pid_t vfork(void); }
  63. SYS_SBRK = 69 // { caddr_t sbrk(size_t incr); }
  64. SYS_SSTK = 70 // { int sstk(size_t incr); }
  65. SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
  66. SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); }
  67. SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); }
  68. SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); }
  69. SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
  70. SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
  71. SYS_GETPGRP = 81 // { int getpgrp(void); }
  72. SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
  73. SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
  74. SYS_SWAPON = 85 // { int swapon(char *name); }
  75. SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
  76. SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
  77. SYS_DUP2 = 90 // { int dup2(int from, int to); }
  78. SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
  79. SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
  80. SYS_FSYNC = 95 // { int fsync(int fd); }
  81. SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
  82. SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
  83. SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
  84. SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
  85. SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
  86. SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); }
  87. SYS_LISTEN = 106 // { int listen(int s, int backlog); }
  88. SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
  89. SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
  90. SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); }
  91. SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
  92. SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
  93. SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
  94. SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
  95. SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
  96. SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
  97. SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
  98. SYS_RENAME = 128 // { int rename(char *from, char *to); }
  99. SYS_FLOCK = 131 // { int flock(int fd, int how); }
  100. SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
  101. SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); }
  102. SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
  103. SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
  104. SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
  105. SYS_RMDIR = 137 // { int rmdir(char *path); }
  106. SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
  107. SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
  108. SYS_SETSID = 147 // { int setsid(void); }
  109. SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
  110. SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); }
  111. SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
  112. SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
  113. SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
  114. SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); }
  115. SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, size_t nbyte, int flags, off_t offset); }
  116. SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, size_t nbyte, int flags, off_t offset); }
  117. SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
  118. SYS_SETGID = 181 // { int setgid(gid_t gid); }
  119. SYS_SETEGID = 182 // { int setegid(gid_t egid); }
  120. SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
  121. SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
  122. SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
  123. SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
  124. SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
  125. SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
  126. SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, int whence); }
  127. SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); }
  128. SYS_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); }
  129. SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int
  130. SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
  131. SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
  132. SYS_UNDELETE = 205 // { int undelete(char *path); }
  133. SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
  134. SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
  135. SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); }
  136. SYS___SEMCTL = 220 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); }
  137. SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); }
  138. SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, u_int nsops); }
  139. SYS_MSGCTL = 224 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
  140. SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
  141. SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
  142. SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
  143. SYS_SHMAT = 228 // { caddr_t shmat(int shmid, const void *shmaddr, int shmflg); }
  144. SYS_SHMCTL = 229 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
  145. SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
  146. SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); }
  147. SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); }
  148. SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); }
  149. SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); }
  150. SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
  151. SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
  152. SYS_RFORK = 251 // { int rfork(int flags); }
  153. SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, int timeout); }
  154. SYS_ISSETUGID = 253 // { int issetugid(void); }
  155. SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
  156. SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
  157. SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
  158. SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); }
  159. SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); }
  160. SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
  161. SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); }
  162. SYS_MODNEXT = 300 // { int modnext(int modid); }
  163. SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); }
  164. SYS_MODFNEXT = 302 // { int modfnext(int modid); }
  165. SYS_MODFIND = 303 // { int modfind(const char *name); }
  166. SYS_KLDLOAD = 304 // { int kldload(const char *file); }
  167. SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
  168. SYS_KLDFIND = 306 // { int kldfind(const char *file); }
  169. SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
  170. SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); }
  171. SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
  172. SYS_GETSID = 310 // { int getsid(pid_t pid); }
  173. SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
  174. SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
  175. SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
  176. SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
  177. SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
  178. SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
  179. SYS_AIO_READ = 318 // { int aio_read(struct aiocb *aiocbp); }
  180. SYS_AIO_WRITE = 319 // { int aio_write(struct aiocb *aiocbp); }
  181. SYS_LIO_LISTIO = 320 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
  182. SYS_YIELD = 321 // { int yield(void); }
  183. SYS_MLOCKALL = 324 // { int mlockall(int how); }
  184. SYS_MUNLOCKALL = 325 // { int munlockall(void); }
  185. SYS___GETCWD = 326 // { int __getcwd(u_char *buf, u_int buflen); }
  186. SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); }
  187. SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); }
  188. SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
  189. SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
  190. SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
  191. SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
  192. SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
  193. SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
  194. SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
  195. SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); }
  196. SYS_JAIL = 338 // { int jail(struct jail *jail); }
  197. SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); }
  198. SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
  199. SYS_SIGACTION = 342 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); }
  200. SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
  201. SYS_SIGRETURN = 344 // { int sigreturn(ucontext_t *sigcntxp); }
  202. SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set,siginfo_t *info, const struct timespec *timeout); }
  203. SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set,siginfo_t *info); }
  204. SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); }
  205. SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); }
  206. SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); }
  207. SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); }
  208. SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); }
  209. SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); }
  210. SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); }
  211. SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); }
  212. SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); }
  213. SYS_EXTATTR_SET_FILE = 356 // { int extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
  214. SYS_EXTATTR_GET_FILE = 357 // { int extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
  215. SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
  216. SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
  217. SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
  218. SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
  219. SYS_KQUEUE = 362 // { int kqueue(void); }
  220. SYS_KEVENT = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
  221. SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); }
  222. SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); }
  223. SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
  224. SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
  225. SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); }
  226. SYS_VARSYM_GET = 451 // { int varsym_get(int mask, const char *wild, char *buf, int bufsize); }
  227. SYS_VARSYM_LIST = 452 // { int varsym_list(int level, char *buf, int maxsize, int *marker); }
  228. SYS_EXEC_SYS_REGISTER = 465 // { int exec_sys_register(void *entry); }
  229. SYS_EXEC_SYS_UNREGISTER = 466 // { int exec_sys_unregister(int id); }
  230. SYS_SYS_CHECKPOINT = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); }
  231. SYS_MOUNTCTL = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); }
  232. SYS_UMTX_SLEEP = 469 // { int umtx_sleep(volatile const int *ptr, int value, int timeout); }
  233. SYS_UMTX_WAKEUP = 470 // { int umtx_wakeup(volatile const int *ptr, int count); }
  234. SYS_JAIL_ATTACH = 471 // { int jail_attach(int jid); }
  235. SYS_SET_TLS_AREA = 472 // { int set_tls_area(int which, struct tls_info *info, size_t infosize); }
  236. SYS_GET_TLS_AREA = 473 // { int get_tls_area(int which, struct tls_info *info, size_t infosize); }
  237. SYS_CLOSEFROM = 474 // { int closefrom(int fd); }
  238. SYS_STAT = 475 // { int stat(const char *path, struct stat *ub); }
  239. SYS_FSTAT = 476 // { int fstat(int fd, struct stat *sb); }
  240. SYS_LSTAT = 477 // { int lstat(const char *path, struct stat *ub); }
  241. SYS_FHSTAT = 478 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
  242. SYS_GETDIRENTRIES = 479 // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
  243. SYS_GETDENTS = 480 // { int getdents(int fd, char *buf, size_t count); }
  244. SYS_USCHED_SET = 481 // { int usched_set(pid_t pid, int cmd, void *data, int bytes); }
  245. SYS_EXTACCEPT = 482 // { int extaccept(int s, int flags, caddr_t name, int *anamelen); }
  246. SYS_EXTCONNECT = 483 // { int extconnect(int s, int flags, caddr_t name, int namelen); }
  247. SYS_MCONTROL = 485 // { int mcontrol(void *addr, size_t len, int behav, off_t value); }
  248. SYS_VMSPACE_CREATE = 486 // { int vmspace_create(void *id, int type, void *data); }
  249. SYS_VMSPACE_DESTROY = 487 // { int vmspace_destroy(void *id); }
  250. SYS_VMSPACE_CTL = 488 // { int vmspace_ctl(void *id, int cmd, struct trapframe *tframe, struct vextframe *vframe); }
  251. SYS_VMSPACE_MMAP = 489 // { int vmspace_mmap(void *id, void *addr, size_t len, int prot, int flags, int fd, off_t offset); }
  252. SYS_VMSPACE_MUNMAP = 490 // { int vmspace_munmap(void *id, void *addr, size_t len); }
  253. SYS_VMSPACE_MCONTROL = 491 // { int vmspace_mcontrol(void *id, void *addr, size_t len, int behav, off_t value); }
  254. SYS_VMSPACE_PREAD = 492 // { ssize_t vmspace_pread(void *id, void *buf, size_t nbyte, int flags, off_t offset); }
  255. SYS_VMSPACE_PWRITE = 493 // { ssize_t vmspace_pwrite(void *id, const void *buf, size_t nbyte, int flags, off_t offset); }
  256. SYS_EXTEXIT = 494 // { void extexit(int how, int status, void *addr); }
  257. SYS_LWP_CREATE = 495 // { int lwp_create(struct lwp_params *params); }
  258. SYS_LWP_GETTID = 496 // { lwpid_t lwp_gettid(void); }
  259. SYS_LWP_KILL = 497 // { int lwp_kill(pid_t pid, lwpid_t tid, int signum); }
  260. SYS_LWP_RTPRIO = 498 // { int lwp_rtprio(int function, pid_t pid, lwpid_t tid, struct rtprio *rtp); }
  261. SYS_PSELECT = 499 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sigmask); }
  262. SYS_STATVFS = 500 // { int statvfs(const char *path, struct statvfs *buf); }
  263. SYS_FSTATVFS = 501 // { int fstatvfs(int fd, struct statvfs *buf); }
  264. SYS_FHSTATVFS = 502 // { int fhstatvfs(const struct fhandle *u_fhp, struct statvfs *buf); }
  265. SYS_GETVFSSTAT = 503 // { int getvfsstat(struct statfs *buf, struct statvfs *vbuf, long vbufsize, int flags); }
  266. SYS_OPENAT = 504 // { int openat(int fd, char *path, int flags, int mode); }
  267. SYS_FSTATAT = 505 // { int fstatat(int fd, char *path, struct stat *sb, int flags); }
  268. SYS_FCHMODAT = 506 // { int fchmodat(int fd, char *path, int mode, int flags); }
  269. SYS_FCHOWNAT = 507 // { int fchownat(int fd, char *path, int uid, int gid, int flags); }
  270. SYS_UNLINKAT = 508 // { int unlinkat(int fd, char *path, int flags); }
  271. SYS_FACCESSAT = 509 // { int faccessat(int fd, char *path, int amode, int flags); }
  272. SYS_MQ_OPEN = 510 // { mqd_t mq_open(const char * name, int oflag, mode_t mode, struct mq_attr *attr); }
  273. SYS_MQ_CLOSE = 511 // { int mq_close(mqd_t mqdes); }
  274. SYS_MQ_UNLINK = 512 // { int mq_unlink(const char *name); }
  275. SYS_MQ_GETATTR = 513 // { int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat); }
  276. SYS_MQ_SETATTR = 514 // { int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat); }
  277. SYS_MQ_NOTIFY = 515 // { int mq_notify(mqd_t mqdes, const struct sigevent *notification); }
  278. SYS_MQ_SEND = 516 // { int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); }
  279. SYS_MQ_RECEIVE = 517 // { ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio); }
  280. SYS_MQ_TIMEDSEND = 518 // { int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); }
  281. SYS_MQ_TIMEDRECEIVE = 519 // { ssize_t mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); }
  282. SYS_IOPRIO_SET = 520 // { int ioprio_set(int which, int who, int prio); }
  283. SYS_IOPRIO_GET = 521 // { int ioprio_get(int which, int who); }
  284. SYS_CHROOT_KERNEL = 522 // { int chroot_kernel(char *path); }
  285. SYS_RENAMEAT = 523 // { int renameat(int oldfd, char *old, int newfd, char *new); }
  286. SYS_MKDIRAT = 524 // { int mkdirat(int fd, char *path, mode_t mode); }
  287. SYS_MKFIFOAT = 525 // { int mkfifoat(int fd, char *path, mode_t mode); }
  288. SYS_MKNODAT = 526 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); }
  289. SYS_READLINKAT = 527 // { int readlinkat(int fd, char *path, char *buf, size_t bufsize); }
  290. SYS_SYMLINKAT = 528 // { int symlinkat(char *path1, int fd, char *path2); }
  291. SYS_SWAPOFF = 529 // { int swapoff(char *name); }
  292. SYS_VQUOTACTL = 530 // { int vquotactl(const char *path, struct plistref *pref); }
  293. SYS_LINKAT = 531 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flags); }
  294. SYS_EACCESS = 532 // { int eaccess(char *path, int flags); }
  295. SYS_LPATHCONF = 533 // { int lpathconf(char *path, int name); }
  296. SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
  297. SYS_VMM_GUEST_SYNC_ADDR = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); }
  298. SYS_PROCCTL = 536 // { int procctl(idtype_t idtype, id_t id, int cmd, void *data); }
  299. SYS_CHFLAGSAT = 537 // { int chflagsat(int fd, const char *path, u_long flags, int atflags);}
  300. SYS_PIPE2 = 538 // { int pipe2(int *fildes, int flags); }
  301. SYS_UTIMENSAT = 539 // { int utimensat(int fd, const char *path, const struct timespec *ts, int flags); }
  302. SYS_FUTIMENS = 540 // { int futimens(int fd, const struct timespec *ts); }
  303. SYS_ACCEPT4 = 541 // { int accept4(int s, caddr_t name, int *anamelen, int flags); }
  304. SYS_LWP_SETNAME = 542 // { int lwp_setname(lwpid_t tid, const char *name); }
  305. SYS_PPOLL = 543 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *sigmask); }
  306. SYS_LWP_SETAFFINITY = 544 // { int lwp_setaffinity(pid_t pid, lwpid_t tid, const cpumask_t *mask); }
  307. SYS_LWP_GETAFFINITY = 545 // { int lwp_getaffinity(pid_t pid, lwpid_t tid, cpumask_t *mask); }
  308. SYS_LWP_CREATE2 = 546 // { int lwp_create2(struct lwp_params *params, const cpumask_t *mask); }
  309. SYS_GETCPUCLOCKID = 547 // { int getcpuclockid(pid_t pid, lwpid_t lwp_id, clockid_t *clock_id); }
  310. SYS_WAIT6 = 548 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); }
  311. SYS_LWP_GETNAME = 549 // { int lwp_getname(lwpid_t tid, char *name, size_t len); }
  312. SYS_GETRANDOM = 550 // { ssize_t getrandom(void *buf, size_t len, unsigned flags); }
  313. SYS___REALPATH = 551 // { ssize_t __realpath(const char *path, char *buf, size_t len); }
  314. )