diff options
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 18 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 37 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 4 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 18 |
4 files changed, 55 insertions, 22 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 09035a42da6..fd7e3019f30 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscall.h,v 1.26 2001/01/29 07:24:18 jasoni Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.27 2001/04/02 21:44:45 niklas Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.27 2001/01/29 07:23:54 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.28 2001/04/02 21:43:11 niklas Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -373,7 +373,7 @@ /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */ #define LINUX_SYS_sigreturn 119 -/* syscall: "clone" ret: "int" args: */ +/* syscall: "clone" ret: "int" args: "int" "void *" */ #define LINUX_SYS_clone 120 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ @@ -478,25 +478,25 @@ /* syscall: "munlockall" ret: "int" args: */ #define LINUX_SYS_munlockall 153 -/* syscall: "sched_setparam" ret: "int" args: */ +/* syscall: "sched_setparam" ret: "int" args: "linux_pid_t" "const struct linux_sched_param *" */ #define LINUX_SYS_sched_setparam 154 -/* syscall: "sched_getparam" ret: "int" args: */ +/* syscall: "sched_getparam" ret: "int" args: "linux_pid_t" "struct linux_sched_param *" */ #define LINUX_SYS_sched_getparam 155 -/* syscall: "sched_setscheduler" ret: "int" args: */ +/* syscall: "sched_setscheduler" ret: "int" args: "linux_pid_t" "int" "const struct linux_sched_param *" */ #define LINUX_SYS_sched_setscheduler 156 -/* syscall: "sched_getscheduler" ret: "int" args: */ +/* syscall: "sched_getscheduler" ret: "int" args: "linux_pid_t" */ #define LINUX_SYS_sched_getscheduler 157 /* syscall: "sched_yield" ret: "int" args: */ #define LINUX_SYS_sched_yield 158 -/* syscall: "sched_get_priority_max" ret: "int" args: */ +/* syscall: "sched_get_priority_max" ret: "int" args: "int" */ #define LINUX_SYS_sched_get_priority_max 159 -/* syscall: "sched_get_priority_min" ret: "int" args: */ +/* syscall: "sched_get_priority_min" ret: "int" args: "int" */ #define LINUX_SYS_sched_get_priority_min 160 /* syscall: "sched_rr_get_interval" ret: "int" args: */ diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 84dda4b80ac..abb4a9ccdfd 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.27 2001/01/29 07:24:18 jasoni Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.28 2001/04/02 21:44:46 niklas Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.27 2001/01/29 07:23:54 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.28 2001/04/02 21:43:11 niklas Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -294,6 +294,11 @@ struct linux_sys_sigreturn_args { syscallarg(struct linux_sigcontext *) scp; }; +struct linux_sys_clone_args { + syscallarg(int) flags; + syscallarg(void *) stack; +}; + struct linux_sys_uname_args { syscallarg(struct linux_utsname *) up; }; @@ -356,6 +361,34 @@ struct linux_sys___sysctl_args { syscallarg(struct linux___sysctl *) lsp; }; +struct linux_sys_sched_setparam_args { + syscallarg(linux_pid_t) pid; + syscallarg(const struct linux_sched_param *) sp; +}; + +struct linux_sys_sched_getparam_args { + syscallarg(linux_pid_t) pid; + syscallarg(struct linux_sched_param *) sp; +}; + +struct linux_sys_sched_setscheduler_args { + syscallarg(linux_pid_t) pid; + syscallarg(int) policy; + syscallarg(const struct linux_sched_param *) sp; +}; + +struct linux_sys_sched_getscheduler_args { + syscallarg(linux_pid_t) pid; +}; + +struct linux_sys_sched_get_priority_max_args { + syscallarg(int) policy; +}; + +struct linux_sys_sched_get_priority_min_args { + syscallarg(int) policy; +}; + struct linux_sys_mremap_args { syscallarg(void *) old_address; syscallarg(size_t) old_size; diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index c9eb434f25c..9f0df53a860 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscalls.c,v 1.26 2001/01/29 07:24:18 jasoni Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.27 2001/04/02 21:44:46 niklas Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.27 2001/01/29 07:23:54 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.28 2001/04/02 21:43:11 niklas Exp */ char *linux_syscallnames[] = { diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index d4e779038ed..7bc0259fcb1 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_sysent.c,v 1.27 2001/01/29 07:24:18 jasoni Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.28 2001/04/02 21:44:46 niklas Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.27 2001/01/29 07:23:54 jasoni Exp + * created from OpenBSD: syscalls.master,v 1.28 2001/04/02 21:43:11 niklas Exp */ #include <sys/param.h> @@ -270,7 +270,7 @@ struct sysent linux_sysent[] = { sys_fsync }, /* 118 = fsync */ { 1, s(struct linux_sys_sigreturn_args), linux_sys_sigreturn }, /* 119 = sigreturn */ - { 0, 0, + { 2, s(struct linux_sys_clone_args), linux_sys_clone }, /* 120 = clone */ { 2, s(struct compat_09_sys_setdomainname_args), compat_09_sys_setdomainname }, /* 121 = setdomainname */ @@ -343,19 +343,19 @@ struct sysent linux_sysent[] = { linux_sys_mlockall }, /* 152 = mlockall */ { 0, 0, linux_sys_munlockall }, /* 153 = munlockall */ - { 0, 0, + { 2, s(struct linux_sys_sched_setparam_args), linux_sys_sched_setparam }, /* 154 = sched_setparam */ - { 0, 0, + { 2, s(struct linux_sys_sched_getparam_args), linux_sys_sched_getparam }, /* 155 = sched_getparam */ - { 0, 0, + { 3, s(struct linux_sys_sched_setscheduler_args), linux_sys_sched_setscheduler }, /* 156 = sched_setscheduler */ - { 0, 0, + { 1, s(struct linux_sys_sched_getscheduler_args), linux_sys_sched_getscheduler }, /* 157 = sched_getscheduler */ { 0, 0, linux_sys_sched_yield }, /* 158 = sched_yield */ - { 0, 0, + { 1, s(struct linux_sys_sched_get_priority_max_args), linux_sys_sched_get_priority_max }, /* 159 = sched_get_priority_max */ - { 0, 0, + { 1, s(struct linux_sys_sched_get_priority_min_args), linux_sys_sched_get_priority_min }, /* 160 = sched_get_priority_min */ { 0, 0, linux_sys_sched_rr_get_interval }, /* 161 = sched_rr_get_interval */ |