Deleted Added
full compact
syscalls.master (303005) syscalls.master (314107)
1 $FreeBSD: stable/11/sys/i386/linux/syscalls.master 303005 2016-07-18 16:34:11Z dchagin $
1 $FreeBSD: stable/11/sys/i386/linux/syscalls.master 314107 2017-02-22 19:57:59Z dchagin $
2
3; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4; System call name/number master file (or rather, slave, from LINUX).
5; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h.
6
7; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
8; number system call number, must be in order
9; audit the audit event associated with the system call
10; A value of AUE_NULL means no auditing, but it also means that
11; there is no audit event for the call at this time. For the
12; case where the event exists, but we don't want auditing, the
13; event should be #defined to AUE_NULL in audit_kevents.h.
2
3; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4; System call name/number master file (or rather, slave, from LINUX).
5; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h.
6
7; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
8; number system call number, must be in order
9; audit the audit event associated with the system call
10; A value of AUE_NULL means no auditing, but it also means that
11; there is no audit event for the call at this time. For the
12; case where the event exists, but we don't want auditing, the
13; event should be #defined to AUE_NULL in audit_kevents.h.
14; type one of STD, OBSOL, UNIMPL
14; type one of STD, NOPROTO, UNIMPL
15; name psuedo-prototype of syscall routine
16; If one of the following alts is different, then all appear:
17; altname name of system call if different
18; alttag name of args struct tag if different from [o]`name'"_args"
19; altrtyp return type if not int (bogus - syscalls always return int)
15; name psuedo-prototype of syscall routine
16; If one of the following alts is different, then all appear:
17; altname name of system call if different
18; alttag name of args struct tag if different from [o]`name'"_args"
19; altrtyp return type if not int (bogus - syscalls always return int)
20; for UNIMPL/OBSOL, name continues with comments
20; for UNIMPL, name continues with comments
21
22; types:
23; STD always included
21
22; types:
23; STD always included
24; OBSOL obsolete, not included in system, only specifies name
25; UNIMPL not implemented, placeholder only
24; UNIMPL not implemented, placeholder only
25; NOPROTO same as STD except do not create structure or
26; function prototype in sys/sysproto.h. Does add a
27; definition to syscall.h besides adding a sysent.
26
27#include <sys/param.h>
28#include <sys/sysent.h>
29#include <sys/sysproto.h>
30#include <compat/linux/linux_sysproto.h>
31#include <i386/linux/linux.h>
32#include <i386/linux/linux_proto.h>
33

--- 522 unchanged lines hidden (view full) ---

556327 AUE_NULL STD { int linux_signalfd4(void); }
557328 AUE_NULL STD { int linux_eventfd2(l_uint initval, l_int flags); }
558329 AUE_NULL STD { int linux_epoll_create1(l_int flags); }
559330 AUE_NULL STD { int linux_dup3(l_int oldfd, \
560 l_int newfd, l_int flags); }
561331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); }
562332 AUE_NULL STD { int linux_inotify_init1(void); }
563; linux 2.6.30:
28
29#include <sys/param.h>
30#include <sys/sysent.h>
31#include <sys/sysproto.h>
32#include <compat/linux/linux_sysproto.h>
33#include <i386/linux/linux.h>
34#include <i386/linux/linux_proto.h>
35

--- 522 unchanged lines hidden (view full) ---

558327 AUE_NULL STD { int linux_signalfd4(void); }
559328 AUE_NULL STD { int linux_eventfd2(l_uint initval, l_int flags); }
560329 AUE_NULL STD { int linux_epoll_create1(l_int flags); }
561330 AUE_NULL STD { int linux_dup3(l_int oldfd, \
562 l_int newfd, l_int flags); }
563331 AUE_NULL STD { int linux_pipe2(l_int *pipefds, l_int flags); }
564332 AUE_NULL STD { int linux_inotify_init1(void); }
565; linux 2.6.30:
564333 AUE_NULL STD { int linux_preadv(void); }
565334 AUE_NULL STD { int linux_pwritev(void); }
566333 AUE_NULL STD { int linux_preadv(l_ulong fd, \
567 struct iovec *vec, l_ulong vlen, \
568 l_ulong pos_l, l_ulong pos_h); }
569334 AUE_NULL STD { int linux_pwritev(l_ulong fd, \
570 struct iovec *vec, l_ulong vlen, \
571 l_ulong pos_l, l_ulong pos_h); }
566; linux 2.6.31:
572; linux 2.6.31:
567335 AUE_NULL STD { int linux_rt_tsigqueueinfo(void); }
573335 AUE_NULL STD { int linux_rt_tgsigqueueinfo(l_pid_t tgid, \
574 l_pid_t tid, l_int sig, l_siginfo_t *uinfo); }
568336 AUE_NULL STD { int linux_perf_event_open(void); }
569; linux 2.6.33:
570337 AUE_NULL STD { int linux_recvmmsg(l_int s, \
571 struct l_mmsghdr *msg, l_uint vlen, \
572 l_uint flags, struct l_timespec *timeout); }
573338 AUE_NULL STD { int linux_fanotify_init(void); }
574339 AUE_NULL STD { int linux_fanotify_mark(void); }
575; linux 2.6.36:
576340 AUE_NULL STD { int linux_prlimit64(l_pid_t pid, \
577 l_uint resource, \
578 struct rlimit *new, \
579 struct rlimit *old); }
575336 AUE_NULL STD { int linux_perf_event_open(void); }
576; linux 2.6.33:
577337 AUE_NULL STD { int linux_recvmmsg(l_int s, \
578 struct l_mmsghdr *msg, l_uint vlen, \
579 l_uint flags, struct l_timespec *timeout); }
580338 AUE_NULL STD { int linux_fanotify_init(void); }
581339 AUE_NULL STD { int linux_fanotify_mark(void); }
582; linux 2.6.36:
583340 AUE_NULL STD { int linux_prlimit64(l_pid_t pid, \
584 l_uint resource, \
585 struct rlimit *new, \
586 struct rlimit *old); }
580; later:
587; linux 2.6.39:
581341 AUE_NULL STD { int linux_name_to_handle_at(void); }
582342 AUE_NULL STD { int linux_open_by_handle_at(void); }
583343 AUE_NULL STD { int linux_clock_adjtime(void); }
584344 AUE_SYNC STD { int linux_syncfs(l_int fd); }
588341 AUE_NULL STD { int linux_name_to_handle_at(void); }
589342 AUE_NULL STD { int linux_open_by_handle_at(void); }
590343 AUE_NULL STD { int linux_clock_adjtime(void); }
591344 AUE_SYNC STD { int linux_syncfs(l_int fd); }
592; linux 3.0:
585345 AUE_NULL STD { int linux_sendmmsg(l_int s, \
586 struct l_mmsghdr *msg, l_uint vlen, \
587 l_uint flags); }
588346 AUE_NULL STD { int linux_setns(void); }
593345 AUE_NULL STD { int linux_sendmmsg(l_int s, \
594 struct l_mmsghdr *msg, l_uint vlen, \
595 l_uint flags); }
596346 AUE_NULL STD { int linux_setns(void); }
589347 AUE_NULL STD { int linux_process_vm_readv(void); }
590348 AUE_NULL STD { int linux_process_vm_writev(void); }
597; linux 3.2 (glibc 2.15):
598347 AUE_NULL STD { int linux_process_vm_readv(l_pid_t pid, \
599 const struct iovec *lvec, l_ulong liovcnt, \
600 const struct iovec *rvec, l_ulong riovcnt, \
601 l_ulong flags); }
602348 AUE_NULL STD { int linux_process_vm_writev(l_pid_t pid, \
603 const struct iovec *lvec, l_ulong liovcnt, \
604 const struct iovec *rvec, l_ulong riovcnt, \
605 l_ulong flags); }
606; linux 3.5 (no glibc wrapper):
607349 AUE_NULL STD { int linux_kcmp(l_pid_t pid1, l_pid_t pid2, \
608 l_int type, l_ulong idx1, l_ulong idx); }
609; linux 3.8 (no glibc wrapper):
610350 AUE_NULL STD { int linux_finit_module(l_int fd, \
611 const char *uargs, l_int flags); }
612; linux 3.14:
613351 AUE_NULL STD { int linux_sched_setattr(l_pid_t pid, \
614 void *attr, l_uint flags); }
615352 AUE_NULL STD { int linux_sched_getattr(l_pid_t pid, \
616 void *attr, l_uint size, l_uint flags); }
617; linux 3.15:
618353 AUE_NULL STD { int linux_renameat2(l_int oldfd, \
619 const char *oldname, l_int newfd, \
620 const char *newname, unsigned int flags); }
621; linux 3.17:
622354 AUE_NULL STD { int linux_seccomp(l_uint op, l_uint flags, \
623 const char *uargs); }
624355 AUE_NULL STD { int linux_getrandom(char *buf, \
625 l_size_t count, l_uint flags); }
626356 AUE_NULL STD { int linux_memfd_create(const char *uname_ptr, \
627 l_uint flags); }
628; linux 3.18:
629357 AUE_NULL STD { int linux_bpf(l_int cmd, void *attr, \
630 l_uint size); }
631; linux 3.19:
632358 AUE_NULL STD { int linux_execveat(l_int dfd, \
633 const char *filename, const char **argv, \
634 const char **envp, l_int flags); }
635; linux 4.3: sockets now direct system calls:
636359 AUE_SOCKET STD { int linux_socket(l_int domain, l_int type, \
637 l_int protocol); }
638360 AUE_SOCKETPAIR STD { int linux_socketpair(l_int domain, \
639 l_int type, l_int protocol, l_uintptr_t rsv); }
640361 AUE_BIND STD { int linux_bind(l_int s, l_uintptr_t name, \
641 l_int namelen); }
642362 AUE_CONNECT STD { int linux_connect(l_int s, l_uintptr_t name, \
643 l_int namelen); }
644363 AUE_LISTEN STD { int linux_listen(l_int s, l_int backlog); }
645364 AUE_ACCEPT STD { int linux_accept4(l_int s, l_uintptr_t addr, \
646 l_uintptr_t namelen, l_int flags); }
647365 AUE_GETSOCKOPT STD { int linux_getsockopt(l_int s, l_int level, \
648 l_int optname, l_uintptr_t optval, \
649 l_uintptr_t optlen); }
650366 AUE_SETSOCKOPT STD { int linux_setsockopt(l_int s, l_int level, \
651 l_int optname, l_uintptr_t optval, \
652 l_int optlen); }
653367 AUE_GETSOCKNAME STD { int linux_getsockname(l_int s, \
654 l_uintptr_t addr, l_uintptr_t namelen); }
655368 AUE_GETPEERNAME STD { int linux_getpeername(l_int s, \
656 l_uintptr_t addr, l_uintptr_t namelen); }
657369 AUE_SENDTO STD { int linux_sendto(l_int s, l_uintptr_t msg, \
658 l_int len, l_int flags, l_uintptr_t to, \
659 l_int tolen); }
660370 AUE_SENDMSG STD { int linux_sendmsg(l_int s, l_uintptr_t msg, \
661 l_int flags); }
662371 AUE_RECVFROM STD { int linux_recvfrom(l_int s, l_uintptr_t buf, \
663 l_size_t len, l_int flags, l_uintptr_t from, \
664 l_uintptr_t fromlen); }
665372 AUE_RECVMSG STD { int linux_recvmsg(l_int s, l_uintptr_t msg, \
666 l_int flags); }
667373 AUE_NULL STD { int linux_shutdown(l_int s, l_int how); }
668; linux 4.2:
669374 AUE_NULL STD { int linux_userfaultfd(l_int flags); }
670; linux 4.3:
671375 AUE_NULL STD { int linux_membarrier(l_int cmd, l_int flags); }
672; linux 4.4:
673376 AUE_NULL STD { int linux_mlock2(l_ulong start, l_size_t len, \
674 l_int flags); }
675; linux 4.5:
676377 AUE_NULL STD { int linux_copy_file_range(l_int fd_in, \
677 l_loff_t *off_in, l_int fd_out, \
678 l_loff_t *off_out, l_size_t len, \
679 l_uint flags); }
680; linux 4.6:
681378 AUE_NULL STD { int linux_preadv2(l_ulong fd, \
682 const struct iovec *vec, l_ulong vlen, \
683 l_ulong pos_l, l_ulong pos_h, l_int flags); }
684379 AUE_NULL STD { int linux_pwritev2(l_ulong fd, \
685 const struct iovec *vec, l_ulong vlen, \
686 l_ulong pos_l, l_ulong pos_h, l_int flags); }
687; linux 4.8:
688380 AUE_NULL STD { int linux_pkey_mprotect(l_ulong start, \
689 l_size_t len, l_ulong prot, l_int pkey); }
690381 AUE_NULL STD { int linux_pkey_alloc(l_ulong flags, \
691 l_ulong init_val); }
692382 AUE_NULL STD { int linux_pkey_free(l_int pkey); }
693
591; please, keep this line at the end.
694; please, keep this line at the end.
592349 AUE_NULL UNIMPL nosys
695383 AUE_NULL UNIMPL nosys