1 $NetBSD: syscalls.master,v 1.75 2021/12/02 04:29:48 ryo Exp $ 2 3; Derived from sys/compat/linux/arch/*/syscalls.master 4; and from Linux 2.4.12 arch/arm/kernel/calls.S 5 6; NetBSD/arm COMPAT_LINUX system call name/number "master" file. 7; (See syscalls.conf to see what it is processed into.) 8; 9; Fields: number type [type-dependent ...] 10; number system call number, must be in order 11; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 12; the compatibility options defined in syscalls.conf. 13; 14; types: 15; STD always included 16; OBSOL obsolete, not included in system 17; UNIMPL unimplemented, not included in system 18; NODEF included, but don't define the syscall number 19; NOARGS included, but don't define the syscall args structure 20; INDIR included, but don't define the syscall args structure 21; and allow it to be "really" varargs. 22; 23; The compat options are defined in the syscalls.conf file, and the 24; compat option name is prefixed to the syscall name. Other than 25; that, they're like NODEF (for 'compat' options), or STD (for 26; 'libcompat' options). 27; 28; The type-dependent arguments are as follows: 29; For STD, NODEF, NOARGS, and compat syscalls: 30; { pseudo-proto } [alias] 31; For other syscalls: 32; [comment] 33; 34; #ifdef's, etc. may be included, and are copied to the output files. 35; #include's are copied to the syscall names and switch definition files only. 36 37#include <sys/param.h> 38#include <sys/poll.h> 39#include <sys/systm.h> 40#include <sys/signal.h> 41#include <sys/mount.h> 42#include <sys/syscallargs.h> 43#include <sys/time.h> 44 45#include <compat/sys/time.h> 46#include <compat/linux/common/linux_types.h> 47#include <compat/linux/common/linux_mmap.h> 48#include <compat/linux/common/linux_signal.h> 49#include <compat/linux/common/linux_siginfo.h> 50#include <compat/linux/common/linux_machdep.h> 51 52#include <compat/linux/linux_syscallargs.h> 53 54%% 55; XXX We have to explicitly declare linux_sys_nosys. 560 NOARGS { int|linux_sys||nosys(void); } 571 STD { int|linux_sys||exit(int rval); } 582 NOARGS { int|sys||fork(void); } 593 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 604 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ 61 size_t nbyte); } 625 STD { int|linux_sys||open(const char *path, int flags, \ 63 linux_umode_t mode); } 646 NOARGS { int|sys||close(int fd); } 657 STD { int|linux_sys||waitpid(int pid, int *status, \ 66 int options);} 678 STD { int|linux_sys||creat(const char *path, linux_umode_t mode); } 689 NOARGS { int|sys||link(const char *path, const char *link); } 6910 STD { int|linux_sys||unlink(const char *path); } 7011 NOARGS { int|sys||execve(const char *path, char **argp, \ 71 char **envp); } 7212 NOARGS { int|sys||chdir(const char *path); } 7313 STD { int|linux_sys||time(linux_time_t *t); } 7414 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ 75 unsigned dev); } 7615 NOARGS { int|sys||chmod(const char *path, int mode); } 7716 STD { int|linux_sys||lchown16(const char *path, \ 78 linux_uid16_t uid, linux_gid16_t gid); } 7917 OBSOL break 8018 OBSOL ostat 8119 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ 82 int whence); } 8320 NOARGS { pid_t|sys||getpid(void); } 8421 UNIMPL mount 8522 OBSOL umount 8623 NOARGS { int|sys||setuid(uid_t uid); } 8724 NOARGS { uid_t|sys||getuid(void); } 8825 STD { int|linux_sys||stime(linux_time_t *t); } 8926 STD { int|linux_sys||ptrace(int request, int pid, \ 90 int addr, int data); } 9127 STD { int|linux_sys||alarm(unsigned int secs); } 9228 OBSOL ofstat 9329 STD { int|linux_sys||pause(void); } 9430 STD { int|linux_sys||utime(const char *path, \ 95 struct linux_utimbuf *times); } 9631 OBSOL stty 9732 OBSOL gtty 9833 NOARGS { int|sys||access(const char *path, int flags); } 9934 STD { int|linux_sys||nice(int incr); } 10035 OBSOL ftime 10136 NOARGS { int|sys||sync(void); } 10237 STD { int|linux_sys||kill(int pid, int signum); } 10338 NOARGS { int|sys||__posix_rename(const char *from, \ 104 const char *to); } 10539 NOARGS { int|sys||mkdir(const char *path, linux_umode_t mode); } 10640 NOARGS { int|sys||rmdir(const char *path); } 10741 NOARGS { int|sys||dup(int fd); } 10842 STD { int|linux_sys||pipe(int *pfds); } 10943 STD { int|linux_sys||times(struct times *tms); } 11044 OBSOL prof 11145 STD { int|linux_sys||brk(char *nsize); } 11246 NOARGS { int|sys||setgid(gid_t gid); } 11347 NOARGS { gid_t|sys||getgid(void); } 11448 STD { int|linux_sys||signal(int signum, \ 115 linux_handler_t handler); } 11649 NOARGS { uid_t|sys||geteuid(void); } 11750 NOARGS { gid_t|sys||getegid(void); } 11851 NOARGS { int|sys||acct(char *path); } 11952 UNIMPL umount 12053 OBSOL lock 12154 STD { int|linux_sys||ioctl(int fd, u_long com, \ 122 void *data); } 12355 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); } 12456 OBSOL mpx 12557 NOARGS { int|sys||setpgid(int pid, int pgid); } 12658 OBSOL ulimit 12759 STD { int|linux_sys||oldolduname( \ 128 struct linux_oldold_utsname *up); } 12960 NOARGS { int|sys||umask(int newmask); } 13061 NOARGS { int|sys||chroot(char *path); } 13162 UNIMPL ustat 13263 NOARGS { int|sys||dup2(int from, int to); } 13364 NOARGS { pid_t|sys||getppid(void); } 13465 NOARGS { int|sys||getpgrp(void); } 13566 NOARGS { int|sys||setsid(void); } 13667 STD { int|linux_sys||sigaction(int signum, \ 137 const struct linux_old_sigaction *nsa, \ 138 struct linux_old_sigaction *osa); } 13968 STD { int|linux_sys||siggetmask(void); } 14069 STD { int|linux_sys||sigsetmask(linux_old_sigset_t mask); } 14170 STD { int|linux_sys||setreuid16(linux_uid16_t ruid, \ 142 linux_uid16_t euid); } 14371 STD { int|linux_sys||setregid16(linux_gid16_t rgid, \ 144 linux_gid16_t egid); } 14572 STD { int|linux_sys||sigsuspend(void *restart, \ 146 int oldmask, int mask); } 14773 STD { int|linux_sys||sigpending(linux_old_sigset_t *set); } 14874 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ 149 u_int len);} 15075 STD { int|linux_sys||setrlimit(u_int which, \ 151 struct orlimit *rlp); } 15276 STD { int|linux_sys||getrlimit(u_int which, \ 153 struct orlimit *rlp); } 15477 NOARGS { int|compat_50_sys||getrusage(int who, struct rusage50 *rusage); } 15578 STD { int|linux_sys||gettimeofday(struct timeval50 *tp, \ 156 struct timezone *tzp); } 15779 STD { int|linux_sys||settimeofday(struct timeval50 *tp, \ 158 struct timezone *tzp); } 15980 STD { int|linux_sys||getgroups16(int gidsetsize, \ 160 linux_gid16_t *gidset); } 16181 STD { int|linux_sys||setgroups16(int gidsetsize, \ 162 linux_gid16_t *gidset); } 16382 STD { int|linux_sys||oldselect(struct linux_oldselect *lsp); } 16483 NOARGS { int|sys||symlink(const char *path, const char *link); } 16584 NOARGS { int|compat_43_sys||lstat(const char *path, \ 166 struct stat43 *ub); } oolstat 16785 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \ 168 int count); } 169#ifdef EXEC_AOUT 17086 STD { int|linux_sys||uselib(const char *path); } 171#else 17286 EXCL uselib 173#endif 17487 STD { int|linux_sys||swapon(char *name); } 17588 STD { int|linux_sys||reboot(int magic1, int magic2, \ 176 int cmd, void *arg); } 17789 STD { int|linux_sys||readdir(int fd, void *dent, \ 178 unsigned int count); } 17990 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } 18091 NOARGS { int|sys||munmap(void *addr, size_t len); } 18192 NOARGS { int|compat_43_sys||truncate(const char *path, \ 182 long length); } 18393 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } 18494 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } 18595 STD { int|linux_sys||fchown16(int fd, linux_uid16_t uid, \ 186 linux_gid16_t gid); } 18796 STD { int|linux_sys||getpriority(int which, int who); } 18897 NOARGS { int|sys||setpriority(int which, int who, int prio); } 18998 NOARGS { int|sys||profil(void *samples, u_int size, \ 190 u_int offset, u_int scale); } 19199 STD { int|linux_sys||statfs(const char *path, \ 192 struct linux_statfs *sp); } 193100 STD { int|linux_sys||fstatfs(int fd, \ 194 struct linux_statfs *sp); } 195101 UNIMPL 196102 STD { int|linux_sys||socketcall(int what, void *args); } 197103 UNIMPL syslog 198104 NOARGS { int|compat_50_sys||setitimer(int which, \ 199 struct itimerval50 *itv, \ 200 struct itimerval50 *oitv); } 201105 NOARGS { int|compat_50_sys||getitimer(int which, \ 202 struct itimerval50 *itv); } 203106 STD { int|linux_sys||stat(const char *path, \ 204 struct linux_stat *sp); } 205107 STD { int|linux_sys||lstat(const char *path, \ 206 struct linux_stat *sp); } 207108 STD { int|linux_sys||fstat(int fd, struct linux_stat *sp); } 208109 STD { int|linux_sys||olduname(struct linux_oldutsname *up); } 209110 UNIMPL 210111 UNIMPL vhangup 211112 UNIMPL idle 212113 UNIMPL syscall 213114 STD { int|linux_sys||wait4(int pid, int *status, \ 214 int options, struct rusage50 *rusage); } 215115 STD { int|linux_sys||swapoff(const char *path); } 216116 STD { int|linux_sys||sysinfo(struct linux_sysinfo *arg); } 217117 STD { int|linux_sys||ipc(int what, int a1, int a2, int a3, \ 218 void *ptr); } 219118 NOARGS { int|sys||fsync(int fd); } 220119 STD { int|linux_sys||sigreturn(struct linux_sigcontext *scp); } 221120 STD { int|linux_sys||clone(int flags, void *stack, \ 222 void *parent_tidptr, void *tls, void *child_tidptr); } 223121 STD { int|linux_sys||setdomainname(char *domainname, \ 224 int len); } 225122 STD { int|linux_sys||uname(struct linux_utsname *up); } 226123 UNIMPL modify_ldt 227124 UNIMPL adjtimex 228125 STD { int|linux_sys||mprotect(const void *start, \ 229 unsigned long len, int prot); } 230126 STD { int|linux_sys||sigprocmask(int how, \ 231 const linux_old_sigset_t *set, \ 232 linux_old_sigset_t *oset); } 233127 UNIMPL create_module 234128 UNIMPL init_module 235129 UNIMPL delete_module 236130 UNIMPL get_kernel_syms 237131 UNIMPL quotactl 238132 NOARGS { pid_t|sys||getpgid(pid_t pid); } 239133 NOARGS { int|sys||fchdir(int fd); } 240134 UNIMPL bdflush 241135 UNIMPL sysfs 242136 STD { int|linux_sys||personality(unsigned long per); } 243137 UNIMPL afs_syscall 244138 STD { int|linux_sys||setfsuid(uid_t uid); } 245139 STD { int|linux_sys||setfsgid(gid_t gid); } 246140 STD { int|linux_sys||llseek(int fd, u_int32_t ohigh, \ 247 u_int32_t olow, void *res, int whence); } 248141 STD { int|linux_sys||getdents(int fd, \ 249 struct linux_dirent *dent, unsigned int count); } 250142 STD { int|linux_sys||select(int nfds, fd_set *readfds, \ 251 fd_set *writefds, fd_set *exceptfds, \ 252 struct timeval50 *timeout); } 253143 NOARGS { int|sys||flock(int fd, int how); } 254144 NOARGS { int|sys|13|msync(void *addr, size_t len, int flags); } 255145 NOARGS { ssize_t|sys||readv(int fd, \ 256 const struct iovec *iovp, int iovcnt); } 257146 NOARGS { ssize_t|sys||writev(int fd, \ 258 const struct iovec *iovp, int iovcnt); } 259147 NOARGS { pid_t|sys||getsid(pid_t pid); } 260148 STD { int|linux_sys||fdatasync(int fd); } 261149 STD { int|linux_sys||__sysctl(struct linux___sysctl *lsp); } 262150 NOARGS { int|sys||mlock(void *addr, size_t len); } 263151 NOARGS { int|sys||munlock(void *addr, size_t len); } 264152 NOARGS { int|sys||mlockall(int flags); } 265153 NOARGS { int|sys||munlockall(void); } 266154 STD { int|linux_sys||sched_setparam(pid_t pid, \ 267 const struct linux_sched_param *sp); } 268155 STD { int|linux_sys||sched_getparam(pid_t pid, \ 269 struct linux_sched_param *sp); } 270156 STD { int|linux_sys||sched_setscheduler(pid_t pid, \ 271 int policy, const struct linux_sched_param *sp); } 272157 STD { int|linux_sys||sched_getscheduler(pid_t pid); } 273158 STD { int|linux_sys||sched_yield(void); } 274159 STD { int|linux_sys||sched_get_priority_max(int policy); } 275160 STD { int|linux_sys||sched_get_priority_min(int policy); } 276161 UNIMPL sched_rr_get_interval 277162 STD { int|linux_sys||nanosleep( \ 278 const struct linux_timespec *rqtp, \ 279 struct linux_timespec *rmtp); } 280163 STD { void *|linux_sys||mremap(void *old_address, \ 281 size_t old_size, size_t new_size, u_long flags); } 282164 STD { int|linux_sys||setresuid16(linux_uid16_t ruid, \ 283 linux_uid16_t euid, linux_uid16_t suid); } 284165 STD { int|linux_sys||getresuid16(linux_uid16_t *ruid, \ 285 linux_uid16_t *euid, linux_uid16_t *suid); } 286166 UNIMPL 287167 UNIMPL query_module 288168 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \ 289 int timeout); } 290169 UNIMPL nfsservctl 291170 STD { int|linux_sys||setresgid16(linux_gid16_t rgid, \ 292 linux_gid16_t egid, linux_gid16_t sgid); } 293171 STD { int|linux_sys||getresgid16(linux_gid16_t *rgid, \ 294 linux_gid16_t *egid, linux_gid16_t *sgid); } 295172 UNIMPL prctl 296173 UNIMPL rt_sigreturn 297;173 STD { int|linux_sys||rt_sigreturn( \ 298; struct linux_rt_sigframe *sfp); } 299174 STD { int|linux_sys||rt_sigaction(int signum, \ 300 const struct linux_sigaction *nsa, \ 301 struct linux_sigaction *osa, \ 302 size_t sigsetsize); } 303175 STD { int|linux_sys||rt_sigprocmask(int how, \ 304 const linux_sigset_t *set, \ 305 linux_sigset_t *oset, \ 306 size_t sigsetsize); } 307176 STD { int|linux_sys||rt_sigpending( \ 308 linux_sigset_t *set, \ 309 size_t sigsetsize); } 310177 STD { int|linux_sys||rt_sigtimedwait( \ 311 const linux_sigset_t *set, \ 312 linux_siginfo_t *info, \ 313 const struct linux_timespec *timeout); } 314178 STD { int|linux_sys||rt_queueinfo(int pid, int signum, \ 315 linux_siginfo_t *uinfo); } 316179 STD { int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \ 317 size_t sigsetsize); } 318180 STD { int|linux_sys||pread(int fd, char *buf, \ 319 size_t nbyte, off_t offset); } 320181 STD { int|linux_sys||pwrite(int fd, char *buf, \ 321 size_t nbyte, off_t offset); } 322182 STD { int|linux_sys||chown16(const char *path, \ 323 linux_uid16_t uid, linux_gid16_t gid); } 324183 NOARGS { int|sys||__getcwd(char *bufp, size_t length); } 325184 UNIMPL capget 326185 UNIMPL capset 327186 STD { int|linux_sys||sigaltstack( \ 328 const struct linux_sigaltstack *ss, \ 329 struct linux_sigaltstack *oss); } 330187 UNIMPL sendfile 331188 UNIMPL getpmsg 332189 UNIMPL putpmsg 333190 NOARGS vfork { int|sys|14|vfork(void); } 334191 STD { int|linux_sys||ugetrlimit(int which, \ 335 struct rlimit *rlp); } 336#define linux_sys_mmap2_args linux_sys_mmap_args 337192 NOARGS { linux_off_t|linux_sys||mmap2(unsigned long addr, \ 338 size_t len, int prot, int flags, int fd, \ 339 linux_off_t offset); } 340193 STD { int|linux_sys||truncate64(const char *path, \ 341 off_t length); } 342194 STD { int|linux_sys||ftruncate64(unsigned int fd, \ 343 off_t length); } 344195 STD { int|linux_sys||stat64(const char *path, \ 345 struct linux_stat64 *sp); } 346196 STD { int|linux_sys||lstat64(const char *path, \ 347 struct linux_stat64 *sp); } 348197 STD { int|linux_sys||fstat64(int fd, \ 349 struct linux_stat64 *sp); } 350198 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \ 351 gid_t gid); } 352199 NOARGS getuid32 { uid_t|sys||getuid(void); } 353200 NOARGS getgid32 { gid_t|sys||getgid(void); } 354201 NOARGS geteuid32 { uid_t|sys||geteuid(void); } 355202 NOARGS getegid32 { gid_t|sys||getegid(void); } 356203 NOARGS setreuid32 { int|sys||setreuid(uid_t ruid, \ 357 uid_t euid); } 358204 NOARGS setregid32 { int|sys||setregid(gid_t rgid, \ 359 gid_t egid); } 360205 NOARGS getgroups32 { int|sys||getgroups(int gidsetsize, \ 361 gid_t *gidset); } 362206 NOARGS setgroups32 { int|sys||setgroups(int gidsetsize, \ 363 gid_t *gidset); } 364207 NOARGS fchown32 { int|sys||__posix_fchown(int fd, uid_t uid, \ 365 gid_t gid); } 366208 STD setresuid32 { int|linux_sys||setresuid(uid_t ruid, \ 367 uid_t euid, uid_t suid); } 368209 STD getresuid32 { int|linux_sys||getresuid(uid_t *ruid, \ 369 uid_t *euid, uid_t *suid); } 370210 STD setresgid32 { int|linux_sys||setresgid(gid_t rgid, \ 371 gid_t egid, gid_t sgid); } 372211 STD getresgid32 { int|linux_sys||getresgid(gid_t *rgid, \ 373 gid_t *egid, gid_t *sgid); } 374212 NOARGS chown32 { int|sys||__posix_chown(const char *path, \ 375 uid_t uid, gid_t gid); } 376213 NOARGS setuid32 { int|sys||setuid(uid_t uid); } 377214 NOARGS setgid32 { int|sys||setgid(gid_t gid); } 378215 NOARGS setfsuid32 { int|linux_sys||setfsuid(uid_t uid); } 379216 NOARGS setfsgid32 { int|linux_sys||setfsgid(gid_t gid); } 380217 STD { int|linux_sys||getdents64(int fd, \ 381 struct linux_dirent64 *dent, unsigned int count); } 382218 UNIMPL pivot_root 383219 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); } 384220 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); } 385221 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } 386222 UNIMPL /* for tux */ 387223 UNIMPL /* unused */ 388224 NOARGS { pid_t|linux_sys||gettid(void); } 389225 UNIMPL readahead 390226 STD { int|linux_sys||setxattr(char *path, char *name, \ 391 void *value, size_t size, int flags); } 392227 STD { int|linux_sys||lsetxattr(char *path, char *name, \ 393 void *value, size_t size, int flags); } 394228 STD { int|linux_sys||fsetxattr(int fd, char *name, \ 395 void *value, size_t size, int flags); } 396229 STD { ssize_t|linux_sys||getxattr(char *path, char *name, \ 397 void *value, size_t size); } 398230 STD { ssize_t|linux_sys||lgetxattr(char *path, char *name, \ 399 void *value, size_t size); } 400231 STD { ssize_t|linux_sys||fgetxattr(int fd, char *name, \ 401 void *value, size_t size); } 402232 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \ 403 size_t size); } 404233 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \ 405 size_t size); } 406234 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \ 407 size_t size); } 408235 STD { int|linux_sys||removexattr(char *path, char *name); } 409236 STD { int|linux_sys||lremovexattr(char *path, char *name); } 410237 STD { int|linux_sys||fremovexattr(int fd, char *name); } 411238 STD { int|linux_sys||tkill(int tid, int sig); } 412239 UNIMPL sendfile64 413240 STD { int|linux_sys||futex(int *uaddr, int op, int val, \ 414 const struct linux_timespec *timeout, int *uaddr2, \ 415 int val3); } 416241 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ 417 unsigned int len, unsigned long *mask); } 418242 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ 419 unsigned int len, unsigned long *mask); } 420243 UNIMPL io_setup 421244 UNIMPL io_destroy 422245 UNIMPL io_getevents 423246 UNIMPL io_submit 424247 UNIMPL io_cancel 425248 STD { int|linux_sys||exit_group(int error_code); } 426249 UNIMPL lookup_dcookie 427250 UNIMPL epoll_create 428251 UNIMPL epoll_ctl 429252 UNIMPL epoll_wait 430253 UNIMPL remap_file_pages 431254 UNIMPL set_thread_area 432255 UNIMPL get_thread_area 433256 STD { int|linux_sys||set_tid_address(int *tid); } 434257 STD { int|linux_sys||timer_create(clockid_t clockid, \ 435 struct linux_sigevent *evp, timer_t *timerid); } 436258 STD { int|linux_sys||timer_settime(timer_t timerid, \ 437 int flags, const struct linux_itimerspec *tim, \ 438 struct linux_itimerspec *otim); } 439259 STD { int|linux_sys||timer_gettime(timer_t timerid, \ 440 struct linux_itimerspec *tim); } 441260 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } 442261 NOARGS { int|sys||timer_delete(timer_t timerid); } 443262 STD { int|linux_sys||clock_settime(clockid_t which, \ 444 struct linux_timespec *tp); } 445263 STD { int|linux_sys||clock_gettime(clockid_t which, \ 446 struct linux_timespec *tp); } 447264 STD { int|linux_sys||clock_getres(clockid_t which, \ 448 struct linux_timespec *tp); } 449265 STD { int|linux_sys||clock_nanosleep(clockid_t which, \ 450 int flags, struct linux_timespec *rqtp, \ 451 struct linux_timespec *rmtp); } 452266 STD { int|linux_sys||statfs64(const char *path, \ 453 size_t sz, struct linux_statfs64 *sp); } 454267 STD { int|linux_sys||fstatfs64(int fd, \ 455 size_t sz, struct linux_statfs64 *sp); } 456268 STD { int|linux_sys||tgkill(int tgid, int tid, int sig); } 457269 NOARGS { int|compat_50_sys||utimes(const char *path, \ 458 const struct timeval50 *tptr); } 459270 STD { int|linux_sys||fadvise64_64(int fd, off_t offset, \ 460 off_t len, int advice); } 461271 UNIMPL pciconfig_iobase 462272 UNIMPL pciconfig_read 463273 UNIMPL pciconfig_write 464274 UNIMPL mq_open 465275 UNIMPL mq_unlink 466276 UNIMPL mq_timedsend 467277 UNIMPL mq_timedreceive 468278 UNIMPL mq_notify 469279 UNIMPL mq_getsetattr 470280 UNIMPL waitid 471281 UNIMPL socket 472282 UNIMPL bind 473283 UNIMPL connect 474284 UNIMPL listen 475285 UNIMPL accept 476286 UNIMPL getsockname 477287 UNIMPL getpeername 478288 UNIMPL socketpair 479289 UNIMPL send 480290 UNIMPL sendto 481291 UNIMPL recv 482292 UNIMPL recvfrom 483293 UNIMPL shutdown 484294 UNIMPL setsockopt 485295 UNIMPL getsockopt 486296 UNIMPL sendmsg 487297 UNIMPL recvmsg 488298 UNIMPL semop 489299 UNIMPL semget 490300 UNIMPL semctl 491301 UNIMPL msgsnd 492302 UNIMPL msgrcv 493303 UNIMPL msgget 494304 UNIMPL msgctl 495305 UNIMPL shmat 496306 UNIMPL shmdt 497307 UNIMPL shmget 498308 UNIMPL shmctl 499309 UNIMPL add_key 500310 UNIMPL request_key 501311 UNIMPL keyctl 502312 UNIMPL semtimedop 503313 UNIMPL vserver 504314 UNIMPL ioptio_set 505315 UNIMPL ioptio_get 506316 UNIMPL inotify_init 507317 UNIMPL inotify_add_watch 508318 UNIMPL inotify_rm_watch 509319 UNIMPL mbind 510320 UNIMPL get_mempolicy 511321 UNIMPL set_mempolicy 512322 STD { int|linux_sys||openat(int fd, const char *path, \ 513 int flags, ... linux_umode_t mode); } 514323 NOARGS { int|sys||mkdirat(int fd, const char *path, \ 515 linux_umode_t mode); } 516324 STD { int|linux_sys||mknodat(int fd, const char *path, \ 517 linux_umode_t mode, unsigned dev); } 518325 STD { int|linux_sys||fchownat(int fd, const char *path, \ 519 uid_t owner, gid_t group, int flag); } 520326 UNIMPL futimesat 521327 STD { int|linux_sys||fstatat64(int fd, const char *path, \ 522 struct linux_stat64 *sp, int flag); } 523328 STD { int|linux_sys||unlinkat(int fd, const char *path, \ 524 int flag); } 525329 NOARGS { int|sys||renameat(int fromfd, const char *from, \ 526 int tofd, const char *to); } 527330 STD { int|linux_sys||linkat(int fd1, const char *name1, \ 528 int fd2, const char *name2, int flags); } 529331 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ 530 const char *path2); } 531332 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \ 532 char *buf, size_t bufsize); } 533333 STD { int|linux_sys||fchmodat(int fd, const char *path, \ 534 linux_umode_t mode); } 535334 STD { int|linux_sys||faccessat(int fd, const char *path, \ 536 int amode); } 537335 STD { int|linux_sys||pselect6(int nfds, fd_set *readfds, \ 538 fd_set *writefds, fd_set *exceptfds, \ 539 struct linux_timespec *timeout, \ 540 linux_sized_sigset_t *ss); } 541336 STD { int|linux_sys||ppoll(struct pollfd *fds, u_int nfds, \ 542 struct linux_timespec *timeout, \ 543 linux_sigset_t *sigset); } 544337 UNIMPL unshare 545 ; 546 ; The NetBSD native robust list calls have different 547 ; argument names / types, but they are ABI-compatible 548 ; with Linux. 549 ; 550338 NOARGS { int|sys||__futex_set_robust_list(void *head, \ 551 size_t len); } 552339 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ 553 void **headp, size_t *lenp); } 554340 UNIMPL splice 555341 UNIMPL sync_file_range2 556342 UNIMPL tee 557343 UNIMPL vmsplice 558344 UNIMPL move_pages 559345 UNIMPL getcpu 560346 UNIMPL epoll_wait 561347 UNIMPL kexec_load 562348 STD { int|linux_sys||utimensat(int fd, const char *path, \ 563 struct linux_timespec *times, int flag); } 564349 UNIMPL signalfd 565350 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ 566 int flags); } 567351 STD { int|linux_sys||eventfd(unsigned int initval); } 568352 STD { int|linux_sys||fallocate(int fd, int mode, \ 569 off_t offset, off_t len); } 570353 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ 571 const struct linux_itimerspec *tim, \ 572 struct linux_itimerspec *otim); } 573354 STD { int|linux_sys||timerfd_gettime(int fd, \ 574 struct linux_itimerspec *tim); } 575355 UNIMPL signalfd4 576356 STD { int|linux_sys||eventfd2(unsigned int initval, \ 577 int flags); } 578357 UNIMPL epoll_create1 579358 STD { int|linux_sys||dup3(int from, int to, int flags); } 580359 STD { int|linux_sys||pipe2(int *pfds, int flags); } 581360 UNIMPL inotify_init1 582361 STD { int|linux_sys||preadv(int fd, \ 583 const struct iovec *iovp, int iovcnt, \ 584 unsigned long off_lo, unsigned long off_hi); } 585362 STD { int|linux_sys||pwritev(int fd, \ 586 const struct iovcnt *iovp, int iovcnt, \ 587 unsigned long off_lo, unsigned long off_hi); } 588363 UNIMPL rt_tgsigqueueinfo 589364 UNIMPL perf_counter_open 590365 STD { int|linux_sys||recvmmsg(int s, \ 591 struct linux_mmsghdr *msgvec, unsigned int vlen, \ 592 unsigned int flags, struct timespec *timeout); } 593366 STD { int|linux_sys||accept4(int s, \ 594 struct osockaddr *name, \ 595 int *anamelen, int flags); } 596367 UNIMPL fanotify_init 597368 UNIMPL fanotify_mark 598369 STD { int|linux_sys||prlimit64(pid_t pid, int which, \ 599 struct rlimit *new_rlp, struct rlimit *old_rlp); } 600370 UNIMPL name_to_handle_at 601371 UNIMPL open_by_handle_at 602372 UNIMPL clock_adjtime 603373 UNIMPL syncfs 604374 STD { int|linux_sys||sendmmsg(int s, \ 605 struct linux_mmsghdr *msgvec, unsigned int vlen, \ 606 unsigned int flags); } 607375 UNIMPL setns 608376 UNIMPL process_vm_readv 609377 UNIMPL process_vm_writev 610378 UNIMPL kcmp 611379 UNIMPL finit_module 612380 UNIMPL sched_setattr 613381 UNIMPL sched_getattr 614382 UNIMPL renameat2 615383 UNIMPL seccomp 616; XXX FIX-me? 617; 384 NOARGS { ssize_t|sys||getrandom(void *buf, size_t buflen, \ 618 unsigned int flags); } 619; 385 UNIMPL memfd_create 620 621; ARMLinux actually has two ranges of syscalls. Normal syscalls use 622; SWI numbers starting at 0x900000 (__NR_SYSCALL_BASE). Special 623; ARM-specific syscalls use SWI numbers starting at 0x9f0000 624; (__ARM_NR_BASE). linux_syscall() (in arch/arm/arm/linux_syscall.c) 625; remaps these down to 0x900180 so that we can use one linux_sysent 626; array for the whole lot. 627 628384 UNIMPL /* base */ 629385 STD { int|linux_sys||breakpoint(void); } 630386 STD { int|linux_sys||cacheflush(uintptr_t from, \ 631 intptr_t to, int flags); } 632387 UNIMPL usr26 633388 UNIMPL usr32 634389 STD { int|linux_sys||set_tls(void *tls); } 635