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 {
878 188 AUE_NULL UNIMPL ; was getpmsg
879 189 AUE_NULL UNIMPL ; was putpmsg
881 int linux_vfork(void);
884 191 AUE_GETRLIMIT STD {
887 struct l_rlimit *rlim
900 193 AUE_TRUNCATE STD {
901 int linux_truncate64(
906 194 AUE_FTRUNCATE STD {
907 int linux_ftruncate64(
914 const char *filename,
915 struct l_stat64 *statbuf
920 const char *filename,
921 struct l_stat64 *statbuf
927 struct l_stat64 *statbuf
937 int linux_getuid(void);
940 int linux_getgid(void);
942 201 AUE_GETEUID NOPROTO {
945 202 AUE_GETEGID NOPROTO {
948 203 AUE_SETREUID NOPROTO {
953 204 AUE_SETREGID NOPROTO {
958 205 AUE_GETGROUPS STD {
964 206 AUE_SETGROUPS STD {
970 207 AUE_FCHOWN NODEF fchown fchown fchown_args int
971 208 AUE_SETRESUID NOPROTO {
977 209 AUE_GETRESUID NOPROTO {
983 210 AUE_SETRESGID NOPROTO {
989 211 AUE_GETRESGID NOPROTO {
1001 213 AUE_SETUID NOPROTO {
1005 214 AUE_SETGID NOPROTO {
1009 215 AUE_SETFSUID STD {
1013 216 AUE_SETFSGID STD {
1018 217 AUE_GETDIRENTRIES STD {
1019 int linux_getdents64(
1025 218 AUE_PIVOT_ROOT STD {
1026 int linux_pivot_root(
1030 219 AUE_MINCORE STD {
1037 220 AUE_MADVISE NOPROTO {
1038 int madvise(void *addr,
1053 long linux_gettid(void);
1055 225 AUE_NULL UNIMPL linux_readahead
1057 int linux_setxattr(void);
1060 int linux_lsetxattr(void);
1063 int linux_fsetxattr(void);
1066 int linux_getxattr(void);
1069 int linux_lgetxattr(void);
1072 int linux_fgetxattr(void);
1075 int linux_listxattr(void);
1078 int linux_llistxattr(void);
1081 int linux_flistxattr(void);
1084 int linux_removexattr(void);
1087 int linux_lremovexattr(void);
1090 int linux_fremovexattr(void);
1098 239 AUE_SENDFILE STD {
1099 int linux_sendfile64(
1107 int linux_sys_futex(void *uaddr,
1110 struct l_timespec *timeout,
1116 int linux_sched_setaffinity(
1119 l_ulong *user_mask_ptr
1123 int linux_sched_getaffinity(
1126 l_ulong *user_mask_ptr
1129 243 AUE_NULL UNIMPL linux_io_setup
1130 244 AUE_NULL UNIMPL linux_io_destroy
1131 245 AUE_NULL UNIMPL linux_io_getevents
1132 246 AUE_NULL UNIMPL linux_io_submit
1133 247 AUE_NULL UNIMPL linux_io_cancel
1135 int linux_exit_group(
1140 int linux_lookup_dcookie(void);
1143 int linux_epoll_create(
1148 int linux_epoll_ctl(
1152 struct epoll_event *event
1156 int linux_epoll_wait(
1158 struct epoll_event *events,
1164 int linux_remap_file_pages(void);
1167 254 AUE_NULL UNIMPL ; was set_thread_area
1168 255 AUE_NULL UNIMPL ; was get_thread_area
1170 int linux_set_tid_address(
1175 int linux_timer_create(
1177 struct sigevent *evp,
1178 l_timer_t *timerid);
1181 int linux_timer_settime(
1184 const struct itimerspec *new,
1185 struct itimerspec *old);
1188 int linux_timer_gettime(
1190 struct itimerspec *setting
1194 int linux_timer_getoverrun(
1198 int linux_timer_delete(
1201 262 AUE_CLOCK_SETTIME STD {
1202 int linux_clock_settime(
1204 struct l_timespec *tp
1208 int linux_clock_gettime(
1210 struct l_timespec *tp
1214 int linux_clock_getres(
1216 struct l_timespec *tp
1220 int linux_clock_nanosleep(
1223 struct l_timespec *rqtp,
1224 struct l_timespec *rmtp
1227 266 AUE_STATFS STD {
1231 struct l_statfs64_buf *buf
1234 267 AUE_FSTATFS STD {
1235 int linux_fstatfs64(
1238 struct l_statfs64_buf *buf
1248 269 AUE_UTIMES STD {
1251 struct l_timeval *tptr
1255 int linux_fadvise64_64(
1262 271 AUE_NULL UNIMPL pciconfig_iobase
1263 272 AUE_NULL UNIMPL pciconfig_read
1264 273 AUE_NULL UNIMPL pciconfig_write
1271 struct mq_attr *attr
1275 int linux_mq_unlink(
1280 int linux_mq_timedsend(
1282 const char *msg_ptr,
1284 unsigned int msg_prio,
1285 const struct l_timespec *abs_timeout
1289 int linux_mq_timedreceive(
1293 unsigned int msg_prio,
1294 const struct l_timespec *abs_timeout
1298 int linux_mq_notify(
1300 const struct l_timespec *abs_timeout
1304 int linux_mq_getsetattr(
1306 const struct mq_attr *attr,
1307 struct mq_attr *oattr
1319 281 AUE_SOCKET STD {
1333 283 AUE_CONNECT STD {
1340 284 AUE_LISTEN STD {
1346 285 AUE_ACCEPT STD {
1353 286 AUE_GETSOCKNAME STD {
1354 int linux_getsockname(
1360 287 AUE_GETPEERNAME STD {
1361 int linux_getpeername(
1367 288 AUE_SOCKETPAIR STD {
1368 int linux_socketpair(
1383 290 AUE_SENDTO STD {
1401 292 AUE_RECVFROM STD {
1417 294 AUE_SETSOCKOPT STD {
1418 int linux_setsockopt(
1426 295 AUE_GETSOCKOPT STD {
1427 int linux_getsockopt(
1435 296 AUE_SENDMSG STD {
1442 297 AUE_RECVMSG STD {
1452 struct l_sembuf *tsops,
1457 int linux_semget(l_key_t key,
1473 struct l_msgbuf *msgp,
1481 struct l_msgbuf *msgp,
1497 struct l_msqid_ds *buf
1523 struct l_shmid_ds *buf
1528 int linux_add_key(void);
1531 int linux_request_key(void);
1534 int linux_keyctl(void);
1536 312 AUE_NULL UNIMPL semtimedop
1537 313 AUE_NULL UNIMPL ; was vserver
1541 int linux_ioprio_set(void);
1544 int linux_ioprio_get(void);
1547 int linux_inotify_init(void);
1550 int linux_inotify_add_watch(void);
1553 int linux_inotify_rm_watch(void);
1557 int linux_mbind(void);
1560 int linux_get_mempolicy(void);
1563 int linux_set_mempolicy(void);
1567 322 AUE_OPEN_RWTC STD {
1570 const char *filename,
1575 323 AUE_MKDIRAT STD {
1578 const char *pathname,
1582 324 AUE_MKNODAT STD {
1585 const char *filename,
1590 325 AUE_FCHOWNAT STD {
1593 const char *filename,
1599 326 AUE_FUTIMESAT STD {
1600 int linux_futimesat(
1603 struct l_timeval *utimes
1606 327 AUE_FSTATAT STD {
1607 int linux_fstatat64(
1610 struct l_stat64 *statbuf,
1614 328 AUE_UNLINKAT STD {
1617 const char *pathname,
1621 329 AUE_RENAMEAT STD {
1624 const char *oldname,
1629 330 AUE_LINKAT STD {
1632 const char *oldname,
1634 const char *newname,
1638 331 AUE_SYMLINKAT STD {
1639 int linux_symlinkat(
1640 const char *oldname,
1645 332 AUE_READLINKAT STD {
1646 int linux_readlinkat(
1653 333 AUE_FCHMODAT STD {
1656 const char *filename,
1660 334 AUE_FACCESSAT STD {
1661 int linux_faccessat(
1663 const char *filename,
1667 335 AUE_SELECT STD {
1672 l_fd_set *exceptfds,
1673 struct l_timespec *tsp,
1681 struct l_timespec *tsp,
1687 int linux_unshare(void);
1691 int linux_set_robust_list(
1692 struct linux_robust_list_head *head,
1697 int linux_get_robust_list(
1699 struct linux_robust_list_head **head,
1704 int linux_splice(void);
1707 int linux_sync_file_range(
1715 int linux_tee(void);
1718 int linux_vmsplice(void);
1722 int linux_move_pages(void);
1733 int linux_epoll_pwait(
1735 struct epoll_event *events,
1743 int linux_kexec_load(void);
1745 348 AUE_FUTIMESAT STD {
1746 int linux_utimensat(
1748 const char *pathname,
1749 const struct l_timespec *times,
1754 int linux_signalfd(void);
1757 int linux_timerfd_create(void);
1766 int linux_fallocate(
1775 int linux_timerfd_settime(void);
1778 int linux_timerfd_gettime(void);
1782 int linux_signalfd4(void);
1791 int linux_epoll_create1(
1809 int linux_inotify_init1(void);
1813 int linux_preadv(void);
1816 int linux_pwritev(void);
1820 int linux_rt_tsigqueueinfo(void);
1823 int linux_perf_event_open(void);
1829 struct l_mmsghdr *msg,
1832 struct l_timespec *timeout
1835 366 AUE_ACCEPT STD {
1839 l_uintptr_t namelen,
1844 int linux_fanotify_init(void);
1847 int linux_fanotify_mark(void);
1851 int linux_prlimit64(
1855 struct rlimit *old);
1859 int linux_name_to_handle_at(void);
1862 int linux_open_by_handle_at(void);
1865 int linux_clock_adjtime(void);
1874 struct l_mmsghdr *msg,
1880 int linux_setns(void);
1883 int linux_process_vm_readv(void);
1886 int linux_process_vm_writev(void);
1888 378 AUE_NULL UNIMPL kcmp
1889 379 AUE_NULL UNIMPL finit_module
1891 380 AUE_NULL UNIMPL sys_sched_setattr
1892 381 AUE_NULL UNIMPL sys_sched_getattr
1893 382 AUE_NULL UNIMPL sys_renameat2
1894 383 AUE_NULL UNIMPL sys_seccomp
1895 384 AUE_NULL UNIMPL sys_getrandom
1896 385 AUE_NULL UNIMPL sys_memfd_create
1897 386 AUE_NULL UNIMPL sys_bpf
1898 387 AUE_NULL UNIMPL sys_execveat
1899 388 AUE_NULL UNIMPL sys_userfaultfd
1900 389 AUE_NULL UNIMPL sys_membarrier
1901 390 AUE_NULL UNIMPL sys_mlock2
1902 391 AUE_NULL UNIMPL sys_copy_file_range
1903 392 AUE_NULL UNIMPL sys_preadv2
1904 393 AUE_NULL UNIMPL sys_pwritev2
1913 ; Effective number here is 0x000f0000
1914 ; but we must not breaks syscall numbering
1916 400 AUE_NULL UNIMPL unimpl400
1917 401 AUE_NULL UNIMPL breakpoint
1918 402 AUE_NULL UNIMPL cacheflush
1919 403 AUE_NULL UNIMPL usr26
1920 404 AUE_NULL UNIMPL usr32
1927 ; please, keep this line at the end.
1928 406 AUE_NULL UNIMPL nosys