aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux/syscalls.master
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/linux/syscalls.master')
-rw-r--r--sys/amd64/linux/syscalls.master127
1 files changed, 91 insertions, 36 deletions
diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master
index 896bbcc5e652..fd08c9b0279d 100644
--- a/sys/amd64/linux/syscalls.master
+++ b/sys/amd64/linux/syscalls.master
@@ -1,6 +1,4 @@
- $FreeBSD$
-; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
; System call name/number master file (or rather, slave, from LINUX).
; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h.
@@ -26,18 +24,16 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
+; #include's, #defines's, etc. may be included, and are copied to the output
+; files. However, #ifdef, etc will be copied, but any lines that don't start
+; with # will not. Caveat Emptor.
+
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
-#include <compat/linux/linux_sysproto.h>
#include <amd64/linux/linux.h>
#include <amd64/linux/linux_proto.h>
-; Isn't pretty, but there seems to be no other way to trap nosys
-#define nosys linux_nosys
-
-; #ifdef's, etc. may be included, and are copied to the output files.
-
0 AUE_NULL NOPROTO {
int read(
int fd,
@@ -45,8 +41,8 @@
l_size_t nbyte
);
}
-1 AUE_NULL NOPROTO {
- int write(
+1 AUE_NULL STD {
+ int linux_write(
int fd,
char *buf,
l_size_t nbyte
@@ -175,8 +171,8 @@
u_int iovcnt
);
}
-20 AUE_WRITEV NOPROTO {
- int writev(
+20 AUE_WRITEV STD {
+ int linux_writev(
int fd,
struct iovec *iovp,
u_int iovcnt
@@ -437,8 +433,8 @@
59 AUE_EXECVE STD {
int linux_execve(
char *path,
- char **argp,
- char **envp
+ l_uintptr_t *argp,
+ l_uintptr_t *envp
);
}
60 AUE_EXIT STD {
@@ -872,7 +868,7 @@
int linux_mknod(
char *path,
l_mode_t mode,
- l_uint dev
+ l_dev_t dev
);
}
134 AUE_USELIB UNIMPL uselib
@@ -1115,7 +1111,7 @@
int linux_setxattr(
const char *path,
const char *name,
- const char *value,
+ void *value,
l_size_t size,
l_int flags
);
@@ -1124,7 +1120,7 @@
int linux_lsetxattr(
const char *path,
const char *name,
- const char *value,
+ void *value,
l_size_t size,
l_int flags
);
@@ -1133,7 +1129,7 @@
int linux_fsetxattr(
l_int fd,
const char *name,
- const char *value,
+ void *value,
l_size_t size,
l_int flags
);
@@ -1142,7 +1138,7 @@
int linux_getxattr(
const char *path,
const char *name,
- char *value,
+ void *value,
l_size_t size
);
}
@@ -1150,7 +1146,7 @@
int linux_lgetxattr(
const char *path,
const char *name,
- char *value,
+ void *value,
l_size_t size
);
}
@@ -1158,28 +1154,28 @@
int linux_fgetxattr(
l_int fd,
const char *name,
- char *value,
+ void *value,
l_size_t size
);
}
194 AUE_NULL STD {
int linux_listxattr(
const char *path,
- const char *list,
+ char *list,
l_size_t size
);
}
195 AUE_NULL STD {
int linux_llistxattr(
const char *path,
- const char *list,
+ char *list,
l_size_t size
);
}
196 AUE_NULL STD {
int linux_flistxattr(
l_int fd,
- const char *list,
+ char *list,
l_size_t size
);
}
@@ -1300,7 +1296,7 @@
222 AUE_NULL STD {
int linux_timer_create(
clockid_t clock_id,
- struct sigevent *evp,
+ struct l_sigevent *evp,
l_timer_t *timerid
);
}
@@ -1432,7 +1428,7 @@
244 AUE_NULL STD {
int linux_mq_notify(
l_mqd_t mqd,
- const struct l_timespec *abs_timeout
+ const struct l_sigevent *sevp,
);
}
245 AUE_NULL STD {
@@ -1463,11 +1459,18 @@
250 AUE_NULL STD {
int linux_keyctl(void);
}
-251 AUE_NULL STD {
- int linux_ioprio_set(void);
+251 AUE_SETPRIORITY STD {
+ int linux_ioprio_set(
+ l_int which,
+ l_int who,
+ l_int ioprio
+ );
}
-252 AUE_NULL STD {
- int linux_ioprio_get(void);
+252 AUE_GETPRIORITY STD {
+ int linux_ioprio_get(
+ l_int which,
+ l_int who
+ );
}
253 AUE_NULL STD {
int linux_inotify_init(void);
@@ -1501,7 +1504,7 @@
l_int dfd,
const char *filename,
l_mode_t mode,
- l_uint dev
+ l_dev_t dev
);
}
260 AUE_FCHOWNAT STD {
@@ -2051,7 +2054,7 @@
uint32_t sig
);
}
-; Linux 5.0:
+; Linux 5.1:
335-423 AUE_NULL UNIMPL nosys
424 AUE_NULL STD {
int linux_pidfd_send_signal(
@@ -2070,6 +2073,7 @@
427 AUE_NULL STD {
int linux_io_uring_register(void);
}
+; Linux 5.2:
428 AUE_NULL STD {
int linux_open_tree(void);
}
@@ -2088,6 +2092,7 @@
433 AUE_NULL STD {
int linux_fspick(void);
}
+; Linux 5.3:
434 AUE_NULL STD {
int linux_pidfd_open(void);
}
@@ -2097,15 +2102,22 @@
l_size_t usize
);
}
-436 AUE_NULL STD {
- int linux_close_range(void);
+; Linux 5.9:
+436 AUE_CLOSERANGE STD {
+ int linux_close_range(
+ l_uint first,
+ l_uint last,
+ l_uint flags
+ );
}
+; Linux 5.6:
437 AUE_NULL STD {
int linux_openat2(void);
}
438 AUE_NULL STD {
int linux_pidfd_getfd(void);
}
+; Linux 5.8:
439 AUE_NULL STD {
int linux_faccessat2(
l_int dfd,
@@ -2114,9 +2126,11 @@
l_int flags
);
}
+; Linux 5.10:
440 AUE_NULL STD {
int linux_process_madvise(void);
}
+; Linux 5.11:
441 AUE_NULL STD {
int linux_epoll_pwait2(
l_int epfd,
@@ -2127,9 +2141,50 @@
l_size_t sigsetsize
);
}
+; Linux 5.12:
442 AUE_NULL STD {
int linux_mount_setattr(void);
}
-; please, keep this line at the end.
-443 AUE_NULL UNIMPL nosys
+; Linux 5.14:
+443 AUE_NULL STD {
+ int linux_quotactl_fd(void);
+ }
+; Linux 5.13:
+444 AUE_NULL STD {
+ int linux_landlock_create_ruleset(void);
+ }
+445 AUE_NULL STD {
+ int linux_landlock_add_rule(void);
+ }
+446 AUE_NULL STD {
+ int linux_landlock_restrict_self(void);
+ }
+; Linux 5.14:
+447 AUE_NULL STD {
+ int linux_memfd_secret(void);
+ }
+; Linux 5.15:
+448 AUE_NULL STD {
+ int linux_process_mrelease(void);
+ }
+; Linux 5.16:
+449 AUE_NULL STD {
+ int linux_futex_waitv(void);
+ }
+; Linux 5.17:
+450 AUE_NULL STD {
+ int linux_set_mempolicy_home_node(void);
+ }
+; Linux 6.5:
+451 AUE_NULL STD {
+ int linux_cachestat(void);
+ }
+; Linux 6.6:
+452 AUE_NULL STD {
+ int linux_fchmodat2(void);
+ }
+453 AUE_NULL STD {
+ int linux_map_shadow_stack(void);
+ }
+
; vim: syntax=off