| ... | ... | @@ -100,210 +100,313 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 100 | 100 | // int select(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, struct timeval *_Nullable restrict timeout); |
| 101 | 101 | |
| 102 | 102 | // sched_yield |
| 103 | // int sched_yield(void); |
| 103 | 104 | |
| 104 | 105 | // mremap |
| 106 | // void *mremap(void old_address[.old_size], size_t old_size, size_t new_size, int flags, ... /* void *new_address */); |
| 105 | 107 | |
| 106 | 108 | // msync |
| 109 | // int msync(void addr[.length], size_t length, int flags); |
| 107 | 110 | |
| 108 | 111 | // mincore |
| 112 | // int mincore(void addr[.length], size_t length, unsigned char *vec); |
| 109 | 113 | |
| 110 | 114 | // madvise |
| 115 | // int madvise(void addr[.length], size_t length, int advice); |
| 111 | 116 | |
| 112 | 117 | // shmget |
| 118 | // int shmget(key_t key, size_t size, int shmflg); |
| 113 | 119 | |
| 114 | 120 | // shmat |
| 121 | // void *shmat(int shmid, const void *_Nullable shmaddr, int shmflg); |
| 115 | 122 | |
| 116 | 123 | // shmctl |
| 124 | // int shmctl(int shmid, int op, struct shmid_ds *buf); |
| 117 | 125 | |
| 118 | 126 | // dup |
| 127 | // int dup(int oldfd); |
| 119 | 128 | |
| 120 | 129 | // dup2 |
| 130 | // int dup2(int oldfd, int newfd); |
| 121 | 131 | |
| 122 | 132 | // pause |
| 133 | // int pause(void); |
| 123 | 134 | |
| 124 | 135 | // nanosleep |
| 136 | // int nanosleep(const struct timespec *duration, struct timespec *_Nullable rem); |
| 125 | 137 | |
| 126 | 138 | // getitimer |
| 139 | // int getitimer(int which, struct itimerval *curr_value); |
| 127 | 140 | |
| 128 | 141 | // alarm |
| 142 | // unsigned int alarm(unsigned int seconds); |
| 129 | 143 | |
| 130 | 144 | // setitimer |
| 145 | // int setitimer(int which, const struct itimerval *restrict new_value, struct itimerval *_Nullable restrict old_value); |
| 131 | 146 | |
| 132 | 147 | // getpid |
| 148 | // pid_t getpid(void); |
| 133 | 149 | |
| 134 | 150 | // sendfile |
| 151 | // ssize_t sendfile(int out_fd, int in_fd, off_t *_Nullable offset, size_t count); |
| 135 | 152 | |
| 136 | 153 | // socket |
| 154 | // int socket(int domain, int type, int protocol); |
| 137 | 155 | |
| 138 | 156 | // connect |
| 157 | // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); |
| 139 | 158 | |
| 140 | 159 | // accept |
| 160 | // int accept(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen); |
| 141 | 161 | |
| 142 | 162 | // sendto |
| 163 | // ssize_t sendto(int sockfd, const void buf[.len], size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen); |
| 143 | 164 | |
| 144 | 165 | // recvfrom |
| 166 | // ssize_t recvfrom(int sockfd, void buf[restrict .len], size_t len, int flags, struct sockaddr *_Nullable restrict src_addr, socklen_t *_Nullable restrict addrlen); |
| 145 | 167 | |
| 146 | 168 | // sendmsg |
| 169 | // ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); |
| 147 | 170 | |
| 148 | 171 | // recvmsg |
| 172 | // ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); |
| 149 | 173 | |
| 150 | 174 | // shutdown |
| 175 | // int shutdown(int sockfd, int how); |
| 151 | 176 | |
| 152 | 177 | // bind |
| 178 | // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); |
| 153 | 179 | |
| 154 | 180 | // listen |
| 181 | // int listen(int sockfd, int backlog); |
| 155 | 182 | |
| 156 | 183 | // getsockname |
| 184 | // int getsockname(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen); |
| 157 | 185 | |
| 158 | 186 | // getpeername |
| 187 | // int getpeername(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen); |
| 159 | 188 | |
| 160 | 189 | // socketpair |
| 190 | // int socketpair(int domain, int type, int protocol, int sv[2]); |
| 161 | 191 | |
| 162 | 192 | // setsockopt |
| 193 | // int setsockopt(int sockfd, int level, int optname, const void optval[.optlen], socklen_t optlen); |
| 163 | 194 | |
| 164 | 195 | // getsockopt |
| 196 | // int getsockopt(int sockfd, int level, int optname, void optval[restrict *.optlen], socklen_t *restrict optlen); |
| 165 | 197 | |
| 166 | 198 | // clone |
| 199 | // int clone(int (*fn)(void *_Nullable), void *stack, int flags, void *_Nullable arg, ... /* pid_t *_Nullable parent_tid, void *_Nullable tls, pid_t *_Nullable child_tid */ ); |
| 167 | 200 | |
| 168 | 201 | // fork |
| 202 | // pid_t fork(void); |
| 169 | 203 | |
| 170 | 204 | // vfork |
| 205 | // pid_t vfork(void); |
| 171 | 206 | |
| 172 | 207 | // execve |
| 208 | // int execve(const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[]); |
| 173 | 209 | |
| 174 | 210 | // exit |
| 211 | // [[noreturn]] void _exit(int status); |
| 175 | 212 | |
| 176 | 213 | // wait4 |
| 214 | // pid_t wait4(pid_t pid, int *_Nullable wstatus, int options, struct rusage *_Nullable rusage); |
| 177 | 215 | |
| 178 | 216 | // kill |
| 217 | // int kill(pid_t pid, int sig); |
| 179 | 218 | |
| 180 | 219 | // uname |
| 220 | // int uname(struct utsname *buf); |
| 181 | 221 | |
| 182 | 222 | // semget |
| 223 | // int semget(key_t key, int nsems, int semflg); |
| 183 | 224 | |
| 184 | 225 | // semop |
| 226 | // int semop(int semid, struct sembuf *sops, size_t nsops); |
| 185 | 227 | |
| 186 | 228 | // semctl |
| 229 | // int semctl(int semid, int semnum, int op, ...); |
| 187 | 230 | |
| 188 | 231 | // shmdt |
| 232 | // int shmdt(const void *shmaddr); |
| 189 | 233 | |
| 190 | 234 | // msgget |
| 235 | // int msgget(key_t key, int msgflg); |
| 191 | 236 | |
| 192 | 237 | // msgsnd |
| 238 | // int msgsnd(int msqid, const void msgp[.msgsz], size_t msgsz, int msgflg); |
| 193 | 239 | |
| 194 | 240 | // msgrcv |
| 241 | // ssize_t msgrcv(int msqid, void msgp[.msgsz], size_t msgsz, long msgtyp, int msgflg); |
| 195 | 242 | |
| 196 | 243 | // msgctl |
| 244 | // int msgctl(int msqid, int op, struct msqid_ds *buf); |
| 197 | 245 | |
| 198 | 246 | // fcntl |
| 247 | // int fcntl(int fd, int op, ... /* arg */ ); |
| 199 | 248 | |
| 200 | 249 | // flock |
| 250 | // int flock(int fd, int op); |
| 201 | 251 | |
| 202 | 252 | // fsync |
| 253 | // int fsync(int fd); |
| 203 | 254 | |
| 204 | 255 | // fdatasync |
| 256 | // int fdatasync(int fd); |
| 205 | 257 | |
| 206 | 258 | // truncate |
| 259 | // int truncate(const char *path, off_t length); |
| 207 | 260 | |
| 208 | 261 | // ftruncate |
| 262 | // int ftruncate(int fd, off_t length); |
| 209 | 263 | |
| 210 | 264 | // getdents |
| 265 | // ssize_t getdents64(int fd, void dirp[.count], size_t count); |
| 211 | 266 | |
| 212 | 267 | // getcwd |
| 268 | // char *getcwd(char buf[.size], size_t size); |
| 213 | 269 | |
| 214 | 270 | // chdir |
| 271 | // int chdir(const char *path); |
| 215 | 272 | |
| 216 | 273 | // fchdir |
| 274 | // int fchdir(int fd); |
| 217 | 275 | |
| 218 | 276 | // rename |
| 277 | // int rename(const char *oldpath, const char *newpath); |
| 219 | 278 | |
| 220 | 279 | // mkdir |
| 280 | // int mkdir(const char *pathname, mode_t mode); |
| 221 | 281 | |
| 222 | 282 | // rmdir |
| 283 | // int rmdir(const char *pathname); |
| 223 | 284 | |
| 224 | 285 | // creat |
| 286 | // int creat(const char *pathname, mode_t mode); |
| 225 | 287 | |
| 226 | 288 | // link |
| 289 | // int link(const char *oldpath, const char *newpath); |
| 227 | 290 | |
| 228 | 291 | // unlink |
| 292 | // int unlink(const char *pathname); |
| 229 | 293 | |
| 230 | 294 | // symlink |
| 295 | // int symlink(const char *target, const char *linkpath); |
| 231 | 296 | |
| 232 | 297 | // readlink |
| 298 | // ssize_t readlink(const char *restrict pathname, char *restrict buf, size_t bufsiz); |
| 233 | 299 | |
| 234 | 300 | // chmod |
| 301 | // int chmod(const char *pathname, mode_t mode); |
| 235 | 302 | |
| 236 | 303 | // fchmod |
| 304 | // int fchmod(int fd, mode_t mode); |
| 237 | 305 | |
| 238 | 306 | // chown |
| 307 | // int chown(const char *pathname, uid_t owner, gid_t group); |
| 239 | 308 | |
| 240 | 309 | // fchown |
| 310 | // int fchown(int fd, uid_t owner, gid_t group); |
| 241 | 311 | |
| 242 | 312 | // lchown |
| 313 | // int lchown(const char *pathname, uid_t owner, gid_t group); |
| 243 | 314 | |
| 244 | 315 | // umask |
| 316 | // mode_t umask(mode_t mask); |
| 245 | 317 | |
| 246 | 318 | // gettimeofday |
| 319 | // int gettimeofday(struct timeval *restrict tv, struct timezone *_Nullable restrict tz); |
| 247 | 320 | |
| 248 | 321 | // getrlimit |
| 322 | // int getrlimit(int resource, struct rlimit *rlim); |
| 249 | 323 | |
| 250 | 324 | // getrusage |
| 325 | // int getrusage(int who, struct rusage *usage); |
| 251 | 326 | |
| 252 | 327 | // sysinfo |
| 328 | // int sysinfo(struct sysinfo *info); |
| 253 | 329 | |
| 254 | 330 | // times |
| 331 | // clock_t times(struct tms *buf); |
| 255 | 332 | |
| 256 | 333 | // ptrace |
| 334 | // long ptrace(enum __ptrace_request op, pid_t pid, void *addr, void *data); |
| 257 | 335 | |
| 258 | 336 | // getuid |
| 337 | // uid_t getuid(void); |
| 259 | 338 | |
| 260 | 339 | // syslog |
| 340 | // int syscall(SYS_syslog, int type, char *bufp, int len); |
| 261 | 341 | |
| 262 | 342 | // getgid |
| 343 | // gid_t getgid(void); |
| 263 | 344 | |
| 264 | 345 | // setuid |
| 346 | // int setuid(uid_t uid); |
| 265 | 347 | |
| 266 | 348 | // setgid |
| 349 | // int setgid(gid_t gid); |
| 267 | 350 | |
| 268 | 351 | // geteuid |
| 352 | // uid_t geteuid(void); |
| 269 | 353 | |
| 270 | 354 | // getegid |
| 355 | // gid_t getegid(void); |
| 271 | 356 | |
| 272 | 357 | // setpgid |
| 358 | // int setpgid(pid_t pid, pid_t pgid); |
| 273 | 359 | |
| 274 | 360 | // getppid |
| 361 | // pid_t getppid(void); |
| 275 | 362 | |
| 276 | 363 | // getpgrp |
| 364 | // pid_t getpgrp(void); |
| 277 | 365 | |
| 278 | 366 | // setsid |
| 367 | // pid_t setsid(void); |
| 279 | 368 | |
| 280 | 369 | // setreuid |
| 370 | // int setreuid(uid_t ruid, uid_t euid); |
| 281 | 371 | |
| 282 | 372 | // setregid |
| 373 | // int setregid(gid_t rgid, gid_t egid); |
| 283 | 374 | |
| 284 | 375 | // getgroups |
| 376 | // int getgroups(int size, gid_t list[]); |
| 285 | 377 | |
| 286 | 378 | // setgroups |
| 379 | // int setgroups(size_t size, const gid_t *_Nullable list); |
| 287 | 380 | |
| 288 | 381 | // setresuid |
| 382 | // int setresuid(uid_t ruid, uid_t euid, uid_t suid); |
| 289 | 383 | |
| 290 | 384 | // getresuid |
| 385 | // int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); |
| 291 | 386 | |
| 292 | 387 | // setresgid |
| 388 | // int setresgid(gid_t rgid, gid_t egid, gid_t sgid); |
| 293 | 389 | |
| 294 | 390 | // getresgid |
| 391 | // int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); |
| 295 | 392 | |
| 296 | 393 | // getpgid |
| 394 | // pid_t getpgid(pid_t pid); |
| 297 | 395 | |
| 298 | 396 | // setfsuid |
| 397 | // [[deprecated]] int setfsuid(uid_t fsuid); |
| 299 | 398 | |
| 300 | 399 | // setfsgid |
| 400 | // [[deprecated]] int setfsgid(gid_t fsgid); |
| 301 | 401 | |
| 302 | 402 | // getsid |
| 403 | // pid_t getsid(pid_t pid); |
| 303 | 404 | |
| 304 | 405 | // capget |
| 406 | // int syscall(SYS_capget, cap_user_header_t hdrp, cap_user_data_t datap); |
| 305 | 407 | |
| 306 | 408 | // capset |
| 409 | // int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap); |
| 307 | 410 | |
| 308 | 411 | // rt_sigpending |
| 309 | 412 | |
| ... | ... | @@ -314,40 +417,57 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 314 | 417 | // rt_sigsuspend |
| 315 | 418 | |
| 316 | 419 | // sigaltstack |
| 420 | // int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss); |
| 317 | 421 | |
| 318 | 422 | // utime |
| 423 | // int utime(const char *filename, const struct utimbuf *_Nullable times); |
| 319 | 424 | |
| 320 | 425 | // mknod |
| 426 | // int mknod(const char *pathname, mode_t mode, dev_t dev); |
| 321 | 427 | |
| 322 | 428 | // uselib |
| 429 | // [[deprecated]] int uselib(const char *library); |
| 323 | 430 | |
| 324 | 431 | // personality |
| 432 | // int personality(unsigned long persona); |
| 325 | 433 | |
| 326 | 434 | // ustat |
| 435 | // [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf); |
| 327 | 436 | |
| 328 | 437 | // statfs |
| 438 | // int statfs(const char *path, struct statfs *buf); |
| 329 | 439 | |
| 330 | 440 | // fstatfs |
| 441 | // int fstatfs(int fd, struct statfs *buf); |
| 331 | 442 | |
| 332 | 443 | // sysfs |
| 333 | 444 | |
| 334 | 445 | // getpriority |
| 446 | // int getpriority(int which, id_t who); |
| 335 | 447 | |
| 336 | 448 | // setpriority |
| 449 | // int setpriority(int which, id_t who, int prio); |
| 337 | 450 | |
| 338 | 451 | // sched_setparam |
| 452 | // int sched_setparam(pid_t pid, const struct sched_param *param); |
| 339 | 453 | |
| 340 | 454 | // sched_getparam |
| 455 | // int sched_getparam(pid_t pid, struct sched_param *param); |
| 341 | 456 | |
| 342 | 457 | // sched_setscheduler |
| 458 | // int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); |
| 343 | 459 | |
| 344 | 460 | // sched_getscheduler |
| 461 | // int sched_getscheduler(pid_t pid); |
| 345 | 462 | |
| 346 | 463 | // sched_get_priority_max |
| 464 | // int sched_get_priority_max(int policy); |
| 347 | 465 | |
| 348 | 466 | // sched_get_priority_min |
| 467 | // int sched_get_priority_min(int policy); |
| 349 | 468 | |
| 350 | 469 | // sched_rr_get_interval |
| 470 | // int sched_rr_get_interval(pid_t pid, struct timespec *tp); |
| 351 | 471 | |
| 352 | 472 | // mlock |
| 353 | 473 | |
| ... | ... | @@ -372,6 +492,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 372 | 492 | // adjtimex |
| 373 | 493 | |
| 374 | 494 | // setrlimit |
| 495 | // int setrlimit(int resource, const struct rlimit *rlim); |
| 375 | 496 | |
| 376 | 497 | // chroot |
| 377 | 498 | |
| ... | ... | @@ -380,6 +501,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 380 | 501 | // acct |
| 381 | 502 | |
| 382 | 503 | // settimeofday |
| 504 | // int settimeofday(const struct timeval *tv, const struct timezone *_Nullable tz); |
| 383 | 505 | |
| 384 | 506 | // mount |
| 385 | 507 | |
| ... | ... | @@ -522,6 +644,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 522 | 644 | // tgkill |
| 523 | 645 | |
| 524 | 646 | // utimes |
| 647 | // int utimes(const char *filename, const struct timeval times[_Nullable 2]); |
| 525 | 648 | |
| 526 | 649 | // vserver |
| 527 | 650 | |
| ... | ... | @@ -569,8 +692,10 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 569 | 692 | // int openat(int dirfd, const char *pathname, int flags, ... /* mode_t mode */ ); |
| 570 | 693 | |
| 571 | 694 | // mkdirat |
| 695 | // int mkdirat(int dirfd, const char *pathname, mode_t mode); |
| 572 | 696 | |
| 573 | 697 | // mknodat |
| 698 | // int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); |
| 574 | 699 | |
| 575 | 700 | // fchownat |
| 576 | 701 | |
| ... | ... | @@ -580,16 +705,22 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 580 | 705 | // int fstatat(int dirfd, const char *restrict pathname, struct stat *restrict statbuf, int flags); |
| 581 | 706 | |
| 582 | 707 | // unlinkat |
| 708 | // int unlinkat(int dirfd, const char *pathname, int flags); |
| 583 | 709 | |
| 584 | 710 | // renameat |
| 711 | // int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); |
| 585 | 712 | |
| 586 | 713 | // linkat |
| 714 | // int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags); |
| 587 | 715 | |
| 588 | 716 | // symlinkat |
| 717 | // int symlinkat(const char *target, int newdirfd, const char *linkpath); |
| 589 | 718 | |
| 590 | 719 | // readlinkat |
| 720 | // ssize_t readlinkat(int dirfd, const char *restrict pathname, char *restrict buf, size_t bufsiz); |
| 591 | 721 | |
| 592 | 722 | // fchmodat |
| 723 | // int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); |
| 593 | 724 | |
| 594 | 725 | // faccessat |
| 595 | 726 | // int faccessat(int dirfd, const char *pathname, int mode, int flags); |
| ... | ... | @@ -601,6 +732,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 601 | 732 | // int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *_Nullable tmo_p, const sigset_t *_Nullable sigmask); |
| 602 | 733 | |
| 603 | 734 | // unshare |
| 735 | // int unshare(int flags); |
| 604 | 736 | |
| 605 | 737 | // set_robust_list |
| 606 | 738 | |
| ... | ... | @@ -633,6 +765,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 633 | 765 | // timerfd_gettime |
| 634 | 766 | |
| 635 | 767 | // accept4 |
| 768 | // int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags); |
| 636 | 769 | |
| 637 | 770 | // signalfd4 |
| 638 | 771 | |
| ... | ... | @@ -641,6 +774,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 641 | 774 | // epoll_create1 |
| 642 | 775 | |
| 643 | 776 | // dup3 |
| 777 | // int dup3(int oldfd, int newfd, int flags); |
| 644 | 778 | |
| 645 | 779 | // pipe2 |
| 646 | 780 | // int pipe2(int pipefd[2], int flags); |
| ... | ... | @@ -664,6 +798,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 664 | 798 | // fanotify_mark |
| 665 | 799 | |
| 666 | 800 | // prlimit64 |
| 801 | // int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit); |
| 667 | 802 | |
| 668 | 803 | // name_to_handle_at |
| 669 | 804 | |
| ... | ... | @@ -692,6 +827,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 692 | 827 | // sched_getattr |
| 693 | 828 | |
| 694 | 829 | // renameat2 |
| 830 | // int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); |
| 695 | 831 | |
| 696 | 832 | // seccomp |
| 697 | 833 | |