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,
1274 l_timespec *abs_timeout
1278 int linux_mq_timedreceive(
1282 unsigned int msg_prio,
1284 l_timespec *abs_timeout
1288 int linux_mq_notify(
1290 const struct l_timespec *abs_timeout
1294 int linux_mq_getsetattr(
1296 const struct mq_attr *attr,
1297 struct mq_attr *oattr
1309 281 AUE_SOCKET STD {
1323 283 AUE_CONNECT STD {
1330 284 AUE_LISTEN STD {
1336 285 AUE_ACCEPT STD {
1343 286 AUE_GETSOCKNAME STD {
1344 int linux_getsockname(
1350 287 AUE_GETPEERNAME STD {
1351 int linux_getpeername(
1357 288 AUE_SOCKETPAIR STD {
1358 int linux_socketpair(
1373 290 AUE_SENDTO STD {
1391 292 AUE_RECVFROM STD {
1407 294 AUE_SETSOCKOPT STD {
1408 int linux_setsockopt(
1416 295 AUE_GETSOCKOPT STD {
1417 int linux_getsockopt(
1425 296 AUE_SENDMSG STD {
1432 297 AUE_RECVMSG STD {
1442 struct l_sembuf *tsops,
1447 int linux_semget(l_key_t key,
1463 struct l_msgbuf *msgp,
1471 struct l_msgbuf *msgp,
1487 struct l_msqid_ds *buf
1513 struct l_shmid_ds *buf
1518 int linux_add_key(void);
1521 int linux_request_key(void);
1524 int linux_keyctl(void);
1526 312 AUE_NULL UNIMPL semtimedop
1527 313 AUE_NULL UNIMPL ; was vserver
1531 int linux_ioprio_set(void);
1534 int linux_ioprio_get(void);
1537 int linux_inotify_init(void);
1540 int linux_inotify_add_watch(void);
1543 int linux_inotify_rm_watch(void);
1547 int linux_mbind(void);
1550 int linux_get_mempolicy(void);
1553 int linux_set_mempolicy(void);
1557 322 AUE_OPEN_RWTC STD {
1560 const char *filename,
1565 323 AUE_MKDIRAT STD {
1568 const char *pathname,
1572 324 AUE_MKNODAT STD {
1575 const char *filename,
1580 325 AUE_FCHOWNAT STD {
1583 const char *filename,
1589 326 AUE_FUTIMESAT STD {
1590 int linux_futimesat(
1593 struct l_timeval *utimes
1596 327 AUE_FSTATAT STD {
1597 int linux_fstatat64(
1600 struct l_stat64 *statbuf,
1604 328 AUE_UNLINKAT STD {
1607 const char *pathname,
1611 329 AUE_RENAMEAT STD {
1614 const char *oldname,
1619 330 AUE_LINKAT STD {
1622 const char *oldname,
1624 const char *newname,
1628 331 AUE_SYMLINKAT STD {
1629 int linux_symlinkat(
1630 const char *oldname,
1635 332 AUE_READLINKAT STD {
1636 int linux_readlinkat(
1643 333 AUE_FCHMODAT STD {
1646 const char *filename,
1650 334 AUE_FACCESSAT STD {
1651 int linux_faccessat(
1653 const char *filename,
1657 335 AUE_SELECT STD {
1662 l_fd_set *exceptfds,
1663 struct l_timespec *tsp,
1671 struct l_timespec *tsp,
1677 int linux_unshare(void);
1681 int linux_set_robust_list(
1682 struct linux_robust_list_head *head,
1687 int linux_get_robust_list(
1689 struct linux_robust_list_head **head,
1694 int linux_splice(void);
1697 int linux_sync_file_range(void);
1700 int linux_tee(void);
1703 int linux_vmsplice(void);
1707 int linux_move_pages(void);
1711 int linux_getcpu(void);
1714 int linux_epoll_pwait(
1716 struct epoll_event *events,
1724 int linux_kexec_load(void);
1726 348 AUE_FUTIMESAT STD {
1727 int linux_utimensat(
1729 const char *pathname,
1730 const struct l_timespec *times,
1735 int linux_signalfd(void);
1738 int linux_timerfd_create(void);
1747 int linux_fallocate(
1756 int linux_timerfd_settime(void);
1759 int linux_timerfd_gettime(void);
1763 int linux_signalfd4(void);
1772 int linux_epoll_create1(
1790 int linux_inotify_init1(void);
1794 int linux_preadv(void);
1797 int linux_pwritev(void);
1801 int linux_rt_tsigqueueinfo(void);
1804 int linux_perf_event_open(void);
1810 struct l_mmsghdr *msg,
1813 struct l_timespec *timeout
1816 366 AUE_ACCEPT STD {
1820 l_uintptr_t namelen,
1825 int linux_fanotify_init(void);
1828 int linux_fanotify_mark(void);
1832 int linux_prlimit64(
1836 struct rlimit *old);
1840 int linux_name_to_handle_at(void);
1843 int linux_open_by_handle_at(void);
1846 int linux_clock_adjtime(void);
1855 struct l_mmsghdr *msg,
1861 int linux_setns(void);
1864 int linux_process_vm_readv(void);
1867 int linux_process_vm_writev(void);
1869 378 AUE_NULL UNIMPL kcmp
1870 379 AUE_NULL UNIMPL finit_module
1872 380 AUE_NULL UNIMPL sys_sched_setattr
1873 381 AUE_NULL UNIMPL sys_sched_getattr
1874 382 AUE_NULL UNIMPL sys_renameat2
1875 383 AUE_NULL UNIMPL sys_seccomp
1876 384 AUE_NULL UNIMPL sys_getrandom
1877 385 AUE_NULL UNIMPL sys_memfd_create
1878 386 AUE_NULL UNIMPL sys_bpf
1879 387 AUE_NULL UNIMPL sys_execveat
1880 388 AUE_NULL UNIMPL sys_userfaultfd
1881 389 AUE_NULL UNIMPL sys_membarrier
1882 390 AUE_NULL UNIMPL sys_mlock2
1883 391 AUE_NULL UNIMPL sys_copy_file_range
1884 392 AUE_NULL UNIMPL sys_preadv2
1885 393 AUE_NULL UNIMPL sys_pwritev2
1894 ; Effective number here is 0x000f0000
1895 ; but we must not breaks syscall numbering
1897 400 AUE_NULL UNIMPL unimpl400
1898 401 AUE_NULL UNIMPL breakpoint
1899 402 AUE_NULL UNIMPL cacheflush
1900 403 AUE_NULL UNIMPL usr26
1901 404 AUE_NULL UNIMPL usr32
1908 ; please, keep this line at the end.
1909 406 AUE_NULL UNIMPL nosys