Created
September 29, 2023 01:19
-
-
Save fuhry/9e60c20e279713542988b035faf6dc32 to your computer and use it in GitHub Desktop.
go1.21 openbsd >=6.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b07787cc2bccc013bbd50de4db7f4532e1a0c45c Mon Sep 17 00:00:00 2001 | |
From: Dan Fuhry <[email protected]> | |
Date: Sat, 23 Sep 2023 13:17:21 -0400 | |
Subject: [PATCH] [syscall] update zsysnum_openbsd_* as of 2023-08-20 | |
OpenBSD deprecated the `*_pad_*` versions of several syscalls on | |
2022-07-20 [1], including `mmap` of which golang-produced binaries would | |
call the `pad_` version [2]. | |
This results in binaries that crash with `Bad system call` on OpenBSD | |
architectures which have not been switched to syscalls through libc. | |
Currently, mips64 is the only arch blocklisted from this [3]. | |
[1] https://github.com/openbsd/src/commit/4480253fce379836331d8432cbb66e2838914007 | |
(FIXME: OpenBSD cvsweb is currently returning "connection refused", | |
hence linking to the GitHub mirror. Will update once this is resolved.) | |
[2] https://github.com/golang/go/blob/54f78cf8f1b8deea787803aeff5fb6150d7fac8f/src/syscall/zsysnum_openbsd_amd64.go#L145 | |
[3] https://github.com/golang/go/blob/54f78cf8f1b8deea787803aeff5fb6150d7fac8f/src/syscall/syscall_openbsd_libc.go#L5C29-L5C29 | |
--- | |
.../x/sys/unix/zsysnum_openbsd_386.go | 233 ++++++++--------- | |
.../x/sys/unix/zsysnum_openbsd_amd64.go | 233 ++++++++--------- | |
.../x/sys/unix/zsysnum_openbsd_arm.go | 233 ++++++++--------- | |
.../x/sys/unix/zsysnum_openbsd_arm64.go | 232 +++++++++-------- | |
.../x/sys/unix/zsysnum_openbsd_mips64.go | 231 ++++++++--------- | |
.../x/sys/unix/zsysnum_openbsd_ppc64.go | 232 +++++++++-------- | |
.../x/sys/unix/zsysnum_openbsd_riscv64.go | 234 +++++++++--------- | |
src/runtime/sys_openbsd_mips64.s | 2 +- | |
src/syscall/zsysnum_openbsd_386.go | 54 ++-- | |
src/syscall/zsysnum_openbsd_amd64.go | 52 ++-- | |
src/syscall/zsysnum_openbsd_arm.go | 44 ++-- | |
src/syscall/zsysnum_openbsd_arm64.go | 36 ++- | |
src/syscall/zsysnum_openbsd_mips64.go | 33 ++- | |
13 files changed, 1004 insertions(+), 845 deletions(-) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go | |
index 597733813e..d028a7f803 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build 386 && openbsd | |
// +build 386,openbsd | |
@@ -11,118 +11,123 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -131,90 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go | |
index 16af291899..f71dea8742 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build amd64 && openbsd | |
// +build amd64,openbsd | |
@@ -11,118 +11,123 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -131,90 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go | |
index f59b18a977..86f9e361c9 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build arm && openbsd | |
// +build arm,openbsd | |
@@ -11,118 +11,123 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -131,90 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go | |
index 721ef59103..f6d70c9758 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build arm64 && openbsd | |
// +build arm64,openbsd | |
@@ -11,117 +11,123 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -130,90 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go | |
index 01c43a01fd..fa0c24d07b 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build mips64 && openbsd | |
// +build mips64,openbsd | |
@@ -11,35 +11,35 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
@@ -49,81 +49,85 @@ const ( | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, char *resolved); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -132,91 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go | |
index f258cfa24e..02b9f3b091 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go | |
@@ -1,5 +1,5 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build ppc64 && openbsd | |
// +build ppc64,openbsd | |
@@ -10,117 +10,123 @@ const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -129,90 +135,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go | |
index 07919e0ecc..05dba8c278 100644 | |
--- a/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go | |
+++ b/src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go | |
@@ -1,127 +1,133 @@ | |
-// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master | |
-// Code generated by the command above; see README.md. DO NOT EDIT. | |
+// mksysnum_openbsd.pl syscalls.master | |
+// Code generated by the command above; DO NOT EDIT. | |
//go:build riscv64 && openbsd | |
// +build riscv64,openbsd | |
-package unix | |
+package syscall | |
// Deprecated: Use libc wrappers instead of direct syscalls. | |
const ( | |
SYS_EXIT = 1 // { void sys_exit(int rval); } | |
SYS_FORK = 2 // { int sys_fork(void); } | |
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } | |
- SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } | |
- SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } | |
+ SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
+ SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
- SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } | |
+ SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
- SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } | |
+ SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ | |
SYS_CHDIR = 12 // { int sys_chdir(const char *path); } | |
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } | |
- SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } | |
+ SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ | |
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } | |
- SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } | |
+ SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ | |
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break | |
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } | |
- SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } | |
+ SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ | |
SYS_GETPID = 20 // { pid_t sys_getpid(void); } | |
- SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } | |
+ SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ | |
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } | |
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } | |
SYS_GETUID = 24 // { uid_t sys_getuid(void); } | |
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } | |
- SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } | |
- SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } | |
- SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } | |
- SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } | |
- SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } | |
- SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
- SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } | |
+ SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ | |
+ SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ | |
+ SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ | |
+ SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ | |
+ SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
+ SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
+ SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
SYS_DUP = 41 // { int sys_dup(int fd); } | |
- SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } | |
+ SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ | |
SYS_GETEGID = 43 // { gid_t sys_getegid(void); } | |
- SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } | |
- SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } | |
- SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } | |
+ SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ | |
+ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ | |
+ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } | |
- SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } | |
+ SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
- SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } | |
- SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } | |
- SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } | |
+ SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
+ SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
- SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } | |
- SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } | |
+ SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ | |
+ SYS_STATFS = 63 // { int sys_statfs(const char *path, \ | |
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } | |
- SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } | |
+ SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ | |
SYS_VFORK = 66 // { int sys_vfork(void); } | |
- SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } | |
- SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } | |
- SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } | |
- SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } | |
- SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } | |
- SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } | |
+ SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ | |
+ SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ | |
+ SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ | |
+ SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ | |
+ SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ | |
+ SYS_KEVENT = 72 // { int sys_kevent(int fd, \ | |
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } | |
- SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } | |
- SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } | |
- SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } | |
- SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } | |
- SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } | |
- SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } | |
+ SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ | |
+ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
+ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
+ SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
+ SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
+ SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } | |
- SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } | |
- SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } | |
- SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } | |
- SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } | |
- SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } | |
- SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
+ SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
+ SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
+ SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
+ SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
+ SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } | |
- SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } | |
+ SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ | |
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } | |
- SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } | |
- SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } | |
+ SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ | |
+ SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ | |
SYS_FSYNC = 95 // { int sys_fsync(int fd); } | |
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } | |
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } | |
- SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } | |
+ SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
- SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } | |
- SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } | |
+ SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
+ SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
- SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } | |
- SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } | |
- SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } | |
- SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
+ SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
+ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
- SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } | |
- SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } | |
- SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
+ SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
- SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } | |
- SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } | |
+ SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
+ SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
@@ -130,90 +136,96 @@ const ( | |
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } | |
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } | |
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } | |
- SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } | |
+ SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ | |
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } | |
- SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } | |
+ SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
- SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
- SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } | |
+ SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } | |
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
- SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } | |
- SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } | |
+ SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
+ SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
- SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } | |
+ SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ | |
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } | |
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } | |
- SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } | |
- SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } | |
- SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } | |
+ SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ | |
+ SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ | |
+ SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ | |
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } | |
- SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } | |
- SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } | |
+ SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ | |
+ SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ | |
SYS_ISSETUGID = 253 // { int sys_issetugid(void); } | |
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } | |
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
- SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } | |
- SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } | |
- SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } | |
- SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } | |
+ SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
+ SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
+ SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
+ SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
- SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } | |
+ SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
- SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } | |
- SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } | |
- SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } | |
- SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } | |
- SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } | |
+ SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ | |
+ SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ | |
+ SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ | |
+ SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ | |
+ SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ | |
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } | |
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } | |
- SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } | |
+ SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ | |
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } | |
- SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } | |
+ SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ | |
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } | |
- SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } | |
+ SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ | |
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } | |
SYS_GETRTABLE = 311 // { int sys_getrtable(void); } | |
- SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } | |
- SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } | |
- SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } | |
- SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } | |
- SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } | |
- SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } | |
- SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } | |
- SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } | |
- SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } | |
- SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } | |
- SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } | |
- SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } | |
+ SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ | |
+ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ | |
+ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ | |
+ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ | |
+ SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ | |
+ SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ | |
+ SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ | |
+ SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ | |
+ SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ | |
+ SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ | |
+ SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ | |
+ SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ | |
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } | |
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } | |
) | |
diff --git a/src/runtime/sys_openbsd_mips64.s b/src/runtime/sys_openbsd_mips64.s | |
index 7ac0db0480..aa8e72c9ee 100644 | |
--- a/src/runtime/sys_openbsd_mips64.s | |
+++ b/src/runtime/sys_openbsd_mips64.s | |
@@ -136,7 +136,7 @@ TEXT runtime·mmap(SB),NOSPLIT,$0 | |
MOVW fd+24(FP), R8 // arg 5 - fd | |
MOVW $0, R9 // arg 6 - pad | |
MOVW off+28(FP), R10 // arg 7 - offset | |
- MOVV $197, R2 // sys_mmap | |
+ MOVV $49, R2 // sys_mmap | |
SYSCALL | |
MOVV $0, R4 | |
BEQ R7, 3(PC) | |
diff --git a/src/syscall/zsysnum_openbsd_386.go b/src/syscall/zsysnum_openbsd_386.go | |
index 3b12639bd7..9ef384dcbc 100644 | |
--- a/src/syscall/zsysnum_openbsd_386.go | |
+++ b/src/syscall/zsysnum_openbsd_386.go | |
@@ -1,4 +1,4 @@ | |
-// mksysnum_openbsd.pl | |
+// mksysnum_openbsd.pl syscalls.master | |
// Code generated by the command above; DO NOT EDIT. | |
//go:build 386 && openbsd | |
@@ -12,6 +12,7 @@ const ( | |
SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
+ SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
@@ -37,10 +38,11 @@ const ( | |
SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
- SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); } | |
+ SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
@@ -52,7 +54,7 @@ const ( | |
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
- SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
@@ -61,7 +63,7 @@ const ( | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
- SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
@@ -81,13 +83,15 @@ const ( | |
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
- SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); } | |
+ SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
@@ -103,18 +107,27 @@ const ( | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
+ SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
+ SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
- SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
+ SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } | |
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } | |
SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } | |
SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } | |
@@ -127,13 +140,26 @@ const ( | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
@@ -142,11 +168,7 @@ const ( | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
@@ -165,16 +187,14 @@ const ( | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
diff --git a/src/syscall/zsysnum_openbsd_amd64.go b/src/syscall/zsysnum_openbsd_amd64.go | |
index bce309dc5d..60c72c6648 100644 | |
--- a/src/syscall/zsysnum_openbsd_amd64.go | |
+++ b/src/syscall/zsysnum_openbsd_amd64.go | |
@@ -1,4 +1,4 @@ | |
-// mksysnum_openbsd.pl | |
+// mksysnum_openbsd.pl syscalls.master | |
// Code generated by the command above; DO NOT EDIT. | |
//go:build amd64 && openbsd | |
@@ -12,6 +12,7 @@ const ( | |
SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ | |
SYS_OPEN = 5 // { int sys_open(const char *path, \ | |
SYS_CLOSE = 6 // { int sys_close(int fd); } | |
+ SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } | |
SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ | |
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } | |
SYS_UNLINK = 10 // { int sys_unlink(const char *path); } | |
@@ -37,10 +38,11 @@ const ( | |
SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ | |
SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ | |
SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ | |
- SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); } | |
+ SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
@@ -52,7 +54,7 @@ const ( | |
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
- SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
@@ -61,7 +63,7 @@ const ( | |
SYS_REBOOT = 55 // { int sys_reboot(int opt); } | |
SYS_REVOKE = 56 // { int sys_revoke(const char *path); } | |
SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ | |
- SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \ | |
+ SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ | |
SYS_EXECVE = 59 // { int sys_execve(const char *path, \ | |
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } | |
SYS_CHROOT = 61 // { int sys_chroot(const char *path); } | |
@@ -81,13 +83,15 @@ const ( | |
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
- SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); } | |
+ SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
@@ -103,14 +107,23 @@ const ( | |
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } | |
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } | |
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } | |
+ SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } | |
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } | |
SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ | |
SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
+ SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
+ SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
@@ -127,13 +140,26 @@ const ( | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
@@ -142,11 +168,7 @@ const ( | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
@@ -165,16 +187,14 @@ const ( | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
diff --git a/src/syscall/zsysnum_openbsd_arm.go b/src/syscall/zsysnum_openbsd_arm.go | |
index 05aed70762..9d0aa84adc 100644 | |
--- a/src/syscall/zsysnum_openbsd_arm.go | |
+++ b/src/syscall/zsysnum_openbsd_arm.go | |
@@ -1,4 +1,4 @@ | |
-// mksysnum_openbsd.pl | |
+// mksysnum_openbsd.pl syscalls.master | |
// Code generated by the command above; DO NOT EDIT. | |
//go:build arm && openbsd | |
@@ -42,6 +42,7 @@ const ( | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
@@ -53,7 +54,7 @@ const ( | |
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
- SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
@@ -82,14 +83,15 @@ const ( | |
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
- SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } | |
- SYS_SENDSYSLOG = 83 // { int sys_sendsyslog(const void *buf, size_t nbyte); } | |
+ SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \ | |
SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ | |
SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ | |
+ SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \ | |
SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ | |
SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ | |
SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ | |
@@ -111,10 +113,17 @@ const ( | |
SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ | |
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } | |
SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ | |
+ SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \ | |
SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ | |
SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
+ SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
+ SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
+ SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ | |
SYS_KILL = 122 // { int sys_kill(int pid, int signum); } | |
@@ -131,13 +140,26 @@ const ( | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
@@ -146,11 +168,7 @@ const ( | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
- SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ | |
+ SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } | |
@@ -169,16 +187,14 @@ const ( | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
diff --git a/src/syscall/zsysnum_openbsd_arm64.go b/src/syscall/zsysnum_openbsd_arm64.go | |
index 04f7a5938a..79b70b6131 100644 | |
--- a/src/syscall/zsysnum_openbsd_arm64.go | |
+++ b/src/syscall/zsysnum_openbsd_arm64.go | |
@@ -1,6 +1,8 @@ | |
-// mksysnum_openbsd.pl | |
+// mksysnum_openbsd.pl syscalls.master | |
// Code generated by the command above; DO NOT EDIT. | |
+//go:build arm64 && openbsd | |
+ | |
package syscall | |
const ( | |
@@ -40,6 +42,7 @@ const ( | |
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } | |
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } | |
SYS_SYNC = 36 // { void sys_sync(void); } | |
+ SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } | |
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } | |
SYS_GETPPID = 39 // { pid_t sys_getppid(void); } | |
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } | |
@@ -51,6 +54,7 @@ const ( | |
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
@@ -79,6 +83,7 @@ const ( | |
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
@@ -114,6 +119,9 @@ const ( | |
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } | |
SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
+ SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
@@ -132,14 +140,26 @@ const ( | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
+ SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
@@ -148,10 +168,6 @@ const ( | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
@@ -171,16 +187,14 @@ const ( | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
diff --git a/src/syscall/zsysnum_openbsd_mips64.go b/src/syscall/zsysnum_openbsd_mips64.go | |
index 66302925ca..c37ca4dc54 100644 | |
--- a/src/syscall/zsysnum_openbsd_mips64.go | |
+++ b/src/syscall/zsysnum_openbsd_mips64.go | |
@@ -1,6 +1,8 @@ | |
-// mksysnum_openbsd.pl | |
+// mksysnum_openbsd.pl syscalls.master | |
// Code generated by the command above; DO NOT EDIT. | |
+//go:build mips64 && openbsd | |
+ | |
package syscall | |
const ( | |
@@ -52,6 +54,7 @@ const ( | |
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ | |
SYS_GETGID = 47 // { gid_t sys_getgid(void); } | |
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } | |
+ SYS_MMAP = 49 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } | |
SYS_ACCT = 51 // { int sys_acct(const char *path); } | |
SYS_SIGPENDING = 52 // { int sys_sigpending(void); } | |
@@ -80,6 +83,7 @@ const ( | |
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ | |
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ | |
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ | |
+ SYS_MQUERY = 78 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ | |
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ | |
SYS_GETPGRP = 81 // { int sys_getpgrp(void); } | |
@@ -116,6 +120,8 @@ const ( | |
SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \ | |
SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \ | |
SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, \ | |
+ SYS_RECVMMSG = 116 // { int sys_recvmmsg(int s, struct mmsghdr *mmsg, \ | |
+ SYS_SENDMMSG = 117 // { int sys_sendmmsg(int s, struct mmsghdr *mmsg,\ | |
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ | |
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } | |
SYS_READV = 120 // { ssize_t sys_readv(int fd, \ | |
@@ -134,15 +140,26 @@ const ( | |
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } | |
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } | |
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ | |
- SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } | |
+ SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, size_t namelen); } | |
+ SYS_GETTHRNAME = 142 // { int sys_getthrname(pid_t tid, char *name, size_t len); } | |
+ SYS_SETTHRNAME = 143 // { int sys_setthrname(pid_t tid, const char *name); } | |
+ SYS_PINSYSCALL = 146 // { int sys_pinsyscall(int syscall, void *addr, size_t len); } | |
SYS_SETSID = 147 // { int sys_setsid(void); } | |
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ | |
+ SYS_YPCONNECT = 150 // { int sys_ypconnect(int type); } | |
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } | |
+ SYS_MIMMUTABLE = 159 // { int sys_mimmutable(void *addr, size_t len); } | |
+ SYS_WAITID = 160 // { int sys_waitid(int idtype, id_t id, \ | |
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } | |
SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } | |
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } | |
- SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ | |
- SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_LSEEK = 166 // { off_t sys_lseek(int fd, off_t offset, int whence); } | |
+ SYS_TRUNCATE = 167 // { int sys_truncate(const char *path, off_t length); } | |
+ SYS_FTRUNCATE = 168 // { int sys_ftruncate(int fd, off_t length); } | |
+ SYS_PREAD = 169 // { ssize_t sys_pread(int fd, void *buf, \ | |
+ SYS_PWRITE = 170 // { ssize_t sys_pwrite(int fd, const void *buf, \ | |
+ SYS_PREADV = 171 // { ssize_t sys_preadv(int fd, \ | |
+ SYS_PWRITEV = 172 // { ssize_t sys_pwritev(int fd, \ | |
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } | |
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } | |
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } | |
@@ -151,10 +168,6 @@ const ( | |
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } | |
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ | |
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ | |
- SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ | |
- SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ | |
- SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ | |
- SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } | |
SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \ | |
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } | |
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } | |
@@ -174,16 +187,14 @@ const ( | |
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } | |
SYS_PIPE = 263 // { int sys_pipe(int *fdp); } | |
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } | |
- SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ | |
- SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ | |
SYS_KQUEUE = 269 // { int sys_kqueue(void); } | |
+ SYS_KQUEUE1 = 270 // { int sys_kqueue1(int flags); } | |
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } | |
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } | |
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ | |
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ | |
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ | |
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ | |
- SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ | |
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } | |
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ | |
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } | |
-- | |
2.42.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment