3 ; Linux ABI system call name/number map, based on Linux file
4 ; arch/arm/kernel/calls.S
7 #include <sys/sysent.h>
8 #include <sys/sysproto.h>
9 #include <compat/linux/linux_sysproto.h>
10 #include <arm/linux/linux.h>
11 #include <arm/linux/linux_proto.h>
13 ; Isn't pretty, but there seems to be no other way to trap nosys
14 #define nosys linux_nosys
16 0 AUE_NULL UNIMPL setup
50 7 AUE_NULL UNIMPL ; was linux_waitpid
80 13 AUE_NULL UNIMPL ; was OBSOLETE(linux_time)
100 17 AUE_NULL UNIMPL ; was linux_break
101 18 AUE_NULL UNIMPL ; was linux_stat
110 int linux_getpid(void);
116 char *filesystemtype,
121 22 AUE_NULL UNIMPL ; was OBSOLETE(linux_oldumount)
127 int linux_getuid16(void);
129 25 AUE_NULL UNIMPL ; was OBSOLETE(linux_stime)
130 26 AUE_PTRACE UNIMPL ptrace
131 27 AUE_NULL UNIMPL ; was OBSOLETE(linux_alarm)
132 28 AUE_NULL UNIMPL ; was linux_fstat
134 int linux_pause(void);
136 30 AUE_NULL UNIMPL ; was OBSOLETE(linux_utime)
137 31 AUE_NULL UNIMPL ; was linux_stty
138 32 AUE_NULL UNIMPL ; was linux_getty
150 35 AUE_NULL UNIMPL ; was linux_ftime
151 36 AUE_SYNC NOPROTO {
188 struct l_times_argv *buf
191 44 AUE_NULL UNIMPL ; was linux_prof
201 int linux_getgid16(void);
203 48 AUE_NULL UNIMPL ; was linux_signal
205 int linux_geteuid16(void);
208 int linux_getegid16(void);
210 51 AUE_ACCT NOPROTO {
221 53 AUE_NULL UNIMPL ; was linux_lock
236 56 AUE_NULL UNIMPL ; was linux_mpx
237 57 AUE_SETPGRP NOPROTO {
242 58 AUE_NULL UNIMPL ; was linux_ulimit
243 59 AUE_NULL UNIMPL ; was linux_olduname
244 60 AUE_UMASK NOPROTO {
249 61 AUE_CHROOT NOPROTO {
260 63 AUE_DUP2 NOPROTO {
267 int linux_getppid(void);
269 65 AUE_GETPGRP NOPROTO {
272 66 AUE_SETSID NOPROTO {
282 68 AUE_NULL UNIMPL ; was linux_sgetmask
283 69 AUE_NULL UNIMPL ; was linux_ssetmask
284 70 AUE_SETREUID STD {
285 int linux_setreuid16(
289 71 AUE_SETREGID STD {
290 int linux_setregid16(
295 int linux_sigsuspend(
302 int linux_sigpending(
307 int linux_sethostname(
312 75 AUE_SETRLIMIT STD {
315 struct l_rlimit *rlim
318 76 AUE_NULL UNIMPL ; was OBSOLETE(linux_old_getrlimit)
319 77 AUE_GETRUSAGE NOPROTO {
322 struct rusage *rusage
325 78 AUE_GETTIMEOFDAY STD {
326 int linux_gettimeofday(
327 struct timeval32 *tp,
331 79 AUE_SETTIMEOFDAY STD {
332 int linux_settimeofday(
333 struct timeval32 *tp,
337 80 AUE_GETGROUPS STD {
338 int linux_getgroups16(
343 81 AUE_SETGROUPS STD {
344 int linux_setgroups16(
349 82 AUE_NULL UNIMPL ; was OBSOLETE(linux_old_select)
356 84 AUE_NULL UNIMPL ; was linux_lstat
357 85 AUE_READLINK STD {
364 86 AUE_NULL UNIMPL uselib
365 87 AUE_SWAPON NOPROTO {
378 89 AUE_NULL UNIMPL ; was OBSOLETE(linux_old_readdir)
379 90 AUE_NULL UNIMPL ; was OBSOLETE(linux_old_mmap)
380 91 AUE_MUNMAP NOPROTO {
386 92 AUE_TRUNCATE STD {
392 93 AUE_FTRUNCATE STD {
398 94 AUE_FCHMOD NOPROTO {
404 95 AUE_FCHOWN NOPROTO {
410 96 AUE_GETPRIORITY STD {
411 int linux_getpriority(
416 97 AUE_SETPRIORITY NOPROTO {
423 98 AUE_NULL UNIMPL ; was linux_profil
427 struct l_statfs_buf *buf
430 100 AUE_FSTATFS STD {
433 struct l_statfs_buf *buf
436 101 AUE_NULL UNIMPL ; was ioperm
437 102 AUE_NULL UNIMPL ; was OBSOLETE(linux_socketcall)
445 104 AUE_SETITIMER STD {
448 struct l_itimerval *itv,
449 struct l_itimerval *oitv
452 105 AUE_GETITIMER STD {
455 struct l_itimerval *itv
461 struct l_newstat *buf
467 struct l_newstat *buf
473 struct l_newstat *buf
476 109 AUE_NULL UNIMPL ; was linux_uname
477 110 AUE_NULL UNIMPL ; was linux_iopl
479 int linux_vhangup(void);
481 112 AUE_NULL UNIMPL ;
482 113 AUE_NULL UNIMPL ; was OBSOLETE(linux_syscall)
491 115 AUE_SWAPOFF STD {
492 int linux_swapoff(void);
496 struct l_sysinfo *info
499 117 AUE_NULL UNIMPL ; was OBSOLETE(linux_ipc)
500 118 AUE_FSYNC NOPROTO {
504 119 AUE_SIGRETURN STD {
506 struct l_sigframe *sfp
519 int linux_setdomainname(
526 struct l_new_utsname *buf
529 123 AUE_NULL UNIMPL ; was linux_modify_ldt
530 124 AUE_ADJTIME STD {
531 int linux_adjtimex(void);
533 125 AUE_MPROTECT STD {
540 126 AUE_SIGPROCMASK STD {
541 int linux_sigprocmask(
547 127 AUE_NULL UNIMPL ; was linux_create_module
549 int linux_init_module(void);
552 int linux_delete_module(void);
554 130 AUE_NULL UNIMPL ; was linux_get_kernel_syms
555 131 AUE_QUOTACTL STD {
556 int linux_quotactl(void);
558 132 AUE_GETPGID NOPROTO {
562 133 AUE_FCHDIR NOPROTO {
566 134 AUE_BDFLUSH STD {
567 int linux_bdflush(void);
576 136 AUE_PERSONALITY STD {
577 int linux_personality(
581 137 AUE_NULL UNIMPL ; was afs_syscall
582 138 AUE_SETFSUID STD {
583 int linux_setfsuid16(
586 139 AUE_SETFSGID STD {
587 int linux_setfsgid16(
599 141 AUE_GETDIRENTRIES STD {
613 struct l_timeval *timeout
616 143 AUE_FLOCK NOPROTO {
629 145 AUE_READV NOPROTO {
636 146 AUE_WRITEV NOPROTO {
653 struct l___sysctl_args *args
656 150 AUE_MLOCK NOPROTO {
662 151 AUE_MUNLOCK NOPROTO {
668 152 AUE_MLOCKALL NOPROTO {
673 153 AUE_MUNLOCKALL NOPROTO {
674 int munlockall(void);
676 154 AUE_SCHED_SETPARAM STD {
677 int linux_sched_setparam(
679 struct sched_param *param
682 155 AUE_SCHED_GETPARAM STD {
683 int linux_sched_getparam(
685 struct sched_param *param
688 156 AUE_SCHED_SETSCHEDULER STD {
689 int linux_sched_setscheduler(
692 struct sched_param *param
695 157 AUE_SCHED_GETSCHEDULER STD {
696 int linux_sched_getscheduler(
699 158 AUE_NULL NOPROTO {
700 int sched_yield(void);
702 159 AUE_SCHED_GET_PRIORITY_MAX STD {
703 int linux_sched_get_priority_max(
707 160 AUE_SCHED_GET_PRIORITY_MIN STD {
708 int linux_sched_get_priority_min(
712 161 AUE_SCHED_RR_GET_INTERVAL STD {
713 int linux_sched_rr_get_interval(
715 struct l_timespec *interval
720 const struct l_timespec *rqtp,
721 struct l_timespec *rmtp
733 164 AUE_SETRESUID STD {
734 int linux_setresuid16(
739 165 AUE_GETRESUID STD {
740 int linux_getresuid16(
745 166 AUE_NULL UNIMPL ; was linux_vm86
746 167 AUE_NULL UNIMPL ; was linux_query_module
747 168 AUE_POLL NOPROTO {
754 169 AUE_NULL UNIMPL ; was linux_nfsservctl
755 170 AUE_SETRESGID STD {
756 int linux_setresgid16(
761 171 AUE_GETRESGID STD {
762 int linux_getresgid16(
777 int linux_rt_sigreturn(
778 struct l_ucontext *ucp
782 int linux_rt_sigaction(
790 int linux_rt_sigprocmask(
798 int linux_rt_sigpending(
804 int linux_rt_sigtimedwait(
807 struct l_timeval *timeout,
812 int linux_rt_sigqueueinfo(
819 int linux_rt_sigsuspend(
854 struct l_user_cap_header *hdrp,
855 struct l_user_cap_data *datap
860 struct l_user_cap_header *hdrp,
861 struct l_user_cap_data *datap
865 int linux_sigaltstack(
870 187 AUE_SENDFILE STD {
871 int linux_sendfile(void);
873 188 AUE_NULL UNIMPL ; was getpmsg
874 189 AUE_NULL UNIMPL ; was putpmsg
876 int linux_vfork(void);
879 191 AUE_GETRLIMIT STD {
882 struct l_rlimit *rlim
895 193 AUE_TRUNCATE STD {
896 int linux_truncate64(
901 194 AUE_FTRUNCATE STD {
902 int linux_ftruncate64(
909 const char *filename,
910 struct l_stat64 *statbuf
915 const char *filename,
916 struct l_stat64 *statbuf
922 struct l_stat64 *statbuf
932 int linux_getuid(void);
935 int linux_getgid(void);
937 201 AUE_GETEUID NOPROTO {
940 202 AUE_GETEGID NOPROTO {
943 203 AUE_SETREUID NOPROTO {
948 204 AUE_SETREGID NOPROTO {
953 205 AUE_GETGROUPS STD {
959 206 AUE_SETGROUPS STD {
965 207 AUE_FCHOWN NODEF fchown fchown fchown_args int
966 208 AUE_SETRESUID NOPROTO {
972 209 AUE_GETRESUID NOPROTO {
978 210 AUE_SETRESGID NOPROTO {
984 211 AUE_GETRESGID NOPROTO {
996 213 AUE_SETUID NOPROTO {
1000 214 AUE_SETGID NOPROTO {
1004 215 AUE_SETFSUID STD {
1008 216 AUE_SETFSGID STD {
1013 217 AUE_GETDIRENTRIES STD {
1014 int linux_getdents64(
1020 218 AUE_PIVOT_ROOT STD {
1021 int linux_pivot_root(
1025 219 AUE_MINCORE STD {
1032 220 AUE_MADVISE NOPROTO {
1033 int madvise(void *addr,
1048 long linux_gettid(void);
1050 225 AUE_NULL UNIMPL linux_readahead
1052 int linux_setxattr(void);
1055 int linux_lsetxattr(void);
1058 int linux_fsetxattr(void);
1061 int linux_getxattr(void);
1064 int linux_lgetxattr(void);
1067 int linux_fgetxattr(void);
1070 int linux_listxattr(void);
1073 int linux_llistxattr(void);
1076 int linux_flistxattr(void);
1079 int linux_removexattr(void);
1082 int linux_lremovexattr(void);
1085 int linux_fremovexattr(void);
1093 239 AUE_SENDFILE UNIMPL linux_sendfile64
1095 int linux_sys_futex(void *uaddr,
1098 struct l_timespec *timeout,
1104 int linux_sched_setaffinity(
1107 l_ulong *user_mask_ptr
1111 int linux_sched_getaffinity(
1114 l_ulong *user_mask_ptr
1117 243 AUE_NULL UNIMPL linux_io_setup
1118 244 AUE_NULL UNIMPL linux_io_destroy
1119 245 AUE_NULL UNIMPL linux_io_getevents
1120 246 AUE_NULL UNIMPL linux_io_submit
1121 247 AUE_NULL UNIMPL linux_io_cancel
1123 int linux_exit_group(
1128 int linux_lookup_dcookie(void);
1131 int linux_epoll_create(
1136 int linux_epoll_ctl(
1140 struct epoll_event *event
1144 int linux_epoll_wait(
1146 struct epoll_event *events,
1152 int linux_remap_file_pages(void);
1155 254 AUE_NULL UNIMPL ; was set_thread_area
1156 255 AUE_NULL UNIMPL ; was get_thread_area
1158 int linux_set_tid_address(
1163 int linux_timer_create(
1165 struct sigevent *evp,
1166 l_timer_t *timerid);
1169 int linux_timer_settime(
1172 const struct itimerspec *new,
1173 struct itimerspec *old);
1176 int linux_timer_gettime(
1178 struct itimerspec *setting
1182 int linux_timer_getoverrun(
1186 int linux_timer_delete(
1189 262 AUE_CLOCK_SETTIME STD {
1190 int linux_clock_settime(
1192 struct l_timespec *tp
1196 int linux_clock_gettime(
1198 struct l_timespec *tp
1202 int linux_clock_getres(
1204 struct l_timespec *tp
1208 int linux_clock_nanosleep(
1211 struct l_timespec *rqtp,
1212 struct l_timespec *rmtp
1215 266 AUE_STATFS STD {
1219 struct l_statfs64_buf *buf
1222 267 AUE_FSTATFS STD {
1223 int linux_fstatfs64(
1226 struct l_statfs64_buf *buf
1236 269 AUE_UTIMES STD {
1239 struct l_timeval *tptr
1243 int linux_fadvise64_64(
1250 271 AUE_NULL UNIMPL pciconfig_iobase
1251 272 AUE_NULL UNIMPL pciconfig_read
1252 273 AUE_NULL UNIMPL pciconfig_write
1259 struct mq_attr *attr
1263 int linux_mq_unlink(
1268 int linux_mq_timedsend(
1270 const char *msg_ptr,
1272 unsigned int msg_prio,
1273 const struct l_timespec *abs_timeout
1277 int linux_mq_timedreceive(
1281 unsigned int msg_prio,
1282 const struct l_timespec *abs_timeout
1286 int linux_mq_notify(
1288 const struct l_timespec *abs_timeout
1292 int linux_mq_getsetattr(
1294 const struct mq_attr *attr,
1295 struct mq_attr *oattr
1307 281 AUE_SOCKET STD {
1321 283 AUE_CONNECT STD {
1328 284 AUE_LISTEN STD {
1334 285 AUE_ACCEPT STD {
1341 286 AUE_GETSOCKNAME STD {
1342 int linux_getsockname(
1348 287 AUE_GETPEERNAME STD {
1349 int linux_getpeername(
1355 288 AUE_SOCKETPAIR STD {
1356 int linux_socketpair(
1371 290 AUE_SENDTO STD {
1389 292 AUE_RECVFROM STD {
1405 294 AUE_SETSOCKOPT STD {
1406 int linux_setsockopt(
1414 295 AUE_GETSOCKOPT STD {
1415 int linux_getsockopt(
1423 296 AUE_SENDMSG STD {
1430 297 AUE_RECVMSG STD {
1440 struct l_sembuf *tsops,
1445 int linux_semget(l_key_t key,
1461 struct l_msgbuf *msgp,
1469 struct l_msgbuf *msgp,
1485 struct l_msqid_ds *buf
1511 struct l_shmid_ds *buf
1516 int linux_add_key(void);
1519 int linux_request_key(void);
1522 int linux_keyctl(void);
1524 312 AUE_NULL UNIMPL semtimedop
1525 313 AUE_NULL UNIMPL ; was vserver
1529 int linux_ioprio_set(void);
1532 int linux_ioprio_get(void);
1535 int linux_inotify_init(void);
1538 int linux_inotify_add_watch(void);
1541 int linux_inotify_rm_watch(void);
1545 int linux_mbind(void);
1548 int linux_get_mempolicy(void);
1551 int linux_set_mempolicy(void);
1555 322 AUE_OPEN_RWTC STD {
1558 const char *filename,
1563 323 AUE_MKDIRAT STD {
1566 const char *pathname,
1570 324 AUE_MKNODAT STD {
1573 const char *filename,
1578 325 AUE_FCHOWNAT STD {
1581 const char *filename,
1587 326 AUE_FUTIMESAT STD {
1588 int linux_futimesat(
1591 struct l_timeval *utimes
1594 327 AUE_FSTATAT STD {
1595 int linux_fstatat64(
1598 struct l_stat64 *statbuf,
1602 328 AUE_UNLINKAT STD {
1605 const char *pathname,
1609 329 AUE_RENAMEAT STD {
1612 const char *oldname,
1617 330 AUE_LINKAT STD {
1620 const char *oldname,
1622 const char *newname,
1626 331 AUE_SYMLINKAT STD {
1627 int linux_symlinkat(
1628 const char *oldname,
1633 332 AUE_READLINKAT STD {
1634 int linux_readlinkat(
1641 333 AUE_FCHMODAT STD {
1644 const char *filename,
1648 334 AUE_FACCESSAT STD {
1649 int linux_faccessat(
1651 const char *filename,
1655 335 AUE_SELECT STD {
1660 l_fd_set *exceptfds,
1661 struct l_timespec *tsp,
1669 struct l_timespec *tsp,
1675 int linux_unshare(void);
1679 int linux_set_robust_list(
1680 struct linux_robust_list_head *head,
1685 int linux_get_robust_list(
1687 struct linux_robust_list_head **head,
1692 int linux_splice(void);
1695 int linux_sync_file_range(
1703 int linux_tee(void);
1706 int linux_vmsplice(void);
1710 int linux_move_pages(void);
1714 int linux_getcpu(void);
1717 int linux_epoll_pwait(
1719 struct epoll_event *events,
1727 int linux_kexec_load(void);
1729 348 AUE_FUTIMESAT STD {
1730 int linux_utimensat(
1732 const char *pathname,
1733 const struct l_timespec *times,
1738 int linux_signalfd(void);
1741 int linux_timerfd_create(void);
1750 int linux_fallocate(
1759 int linux_timerfd_settime(void);
1762 int linux_timerfd_gettime(void);
1766 int linux_signalfd4(void);
1775 int linux_epoll_create1(
1793 int linux_inotify_init1(void);
1797 int linux_preadv(void);
1800 int linux_pwritev(void);
1804 int linux_rt_tsigqueueinfo(void);
1807 int linux_perf_event_open(void);
1813 struct l_mmsghdr *msg,
1816 struct l_timespec *timeout
1819 366 AUE_ACCEPT STD {
1823 l_uintptr_t namelen,
1828 int linux_fanotify_init(void);
1831 int linux_fanotify_mark(void);
1835 int linux_prlimit64(
1839 struct rlimit *old);
1843 int linux_name_to_handle_at(void);
1846 int linux_open_by_handle_at(void);
1849 int linux_clock_adjtime(void);
1858 struct l_mmsghdr *msg,
1864 int linux_setns(void);
1867 int linux_process_vm_readv(void);
1870 int linux_process_vm_writev(void);
1872 378 AUE_NULL UNIMPL kcmp
1873 379 AUE_NULL UNIMPL finit_module
1875 380 AUE_NULL UNIMPL sys_sched_setattr
1876 381 AUE_NULL UNIMPL sys_sched_getattr
1877 382 AUE_NULL UNIMPL sys_renameat2
1878 383 AUE_NULL UNIMPL sys_seccomp
1879 384 AUE_NULL UNIMPL sys_getrandom
1880 385 AUE_NULL UNIMPL sys_memfd_create
1881 386 AUE_NULL UNIMPL sys_bpf
1882 387 AUE_NULL UNIMPL sys_execveat
1883 388 AUE_NULL UNIMPL sys_userfaultfd
1884 389 AUE_NULL UNIMPL sys_membarrier
1885 390 AUE_NULL UNIMPL sys_mlock2
1886 391 AUE_NULL UNIMPL sys_copy_file_range
1887 392 AUE_NULL UNIMPL sys_preadv2
1888 393 AUE_NULL UNIMPL sys_pwritev2
1897 ; Effective number here is 0x000f0000
1898 ; but we must not breaks syscall numbering
1900 400 AUE_NULL UNIMPL unimpl400
1901 401 AUE_NULL UNIMPL breakpoint
1902 402 AUE_NULL UNIMPL cacheflush
1903 403 AUE_NULL UNIMPL usr26
1904 404 AUE_NULL UNIMPL usr32
1911 ; please, keep this line at the end.
1912 406 AUE_NULL UNIMPL nosys