Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch Regen from "syscalls.master".



details:   https://anonhg.NetBSD.org/src/rev/6845b12c6d38
branches:  trunk
changeset: 476918:6845b12c6d38
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Oct 04 16:57:10 1999 +0000

description:
Regen from "syscalls.master".

diffstat:

 sys/compat/linux/arch/alpha/linux_syscall.h     |  25 +++++++++-
 sys/compat/linux/arch/alpha/linux_syscallargs.h |  61 +++++++++++++++++++-----
 sys/compat/linux/arch/alpha/linux_syscalls.c    |  18 +++---
 sys/compat/linux/arch/alpha/linux_sysent.c      |  30 ++++++------
 sys/compat/linux/arch/i386/linux_syscall.h      |  25 +++++++++-
 sys/compat/linux/arch/i386/linux_syscallargs.h  |  61 +++++++++++++++++++-----
 sys/compat/linux/arch/i386/linux_syscalls.c     |  20 ++++----
 sys/compat/linux/arch/i386/linux_sysent.c       |  32 ++++++------
 sys/compat/linux/arch/m68k/linux_syscall.h      |  25 +++++++++-
 sys/compat/linux/arch/m68k/linux_syscallargs.h  |  61 +++++++++++++++++++-----
 sys/compat/linux/arch/m68k/linux_syscalls.c     |  18 +++---
 sys/compat/linux/arch/m68k/linux_sysent.c       |  30 ++++++------
 12 files changed, 287 insertions(+), 119 deletions(-)

diffs (truncated from 680 to 300 lines):

diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscall.h,v 1.11 1999/05/14 18:41:20 thorpej Exp $       */
+/*     $NetBSD: linux_syscall.h,v 1.12 1999/10/04 16:57:10 tron Exp $  */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.11 1999/05/14 18:39:38 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.12 1999/10/04 16:55:54 tron Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -361,6 +361,27 @@
 /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
 #define        LINUX_SYS_fstatfs       329
 
+/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
+#define        LINUX_SYS_sched_setparam        330
+
+/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
+#define        LINUX_SYS_sched_getparam        331
+
+/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
+#define        LINUX_SYS_sched_setscheduler    332
+
+/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
+#define        LINUX_SYS_sched_getscheduler    333
+
+/* syscall: "sched_yield" ret: "int" args: */
+#define        LINUX_SYS_sched_yield   334
+
+/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
+#define        LINUX_SYS_sched_get_priority_max        335
+
+/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
+#define        LINUX_SYS_sched_get_priority_min        336
+
 /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
 #define        LINUX_SYS_uname 339
 
diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscallargs.h,v 1.11 1999/05/14 18:41:20 thorpej Exp $   */
+/*     $NetBSD: linux_syscallargs.h,v 1.12 1999/10/04 16:57:11 tron Exp $      */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.11 1999/05/14 18:39:38 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.12 1999/10/04 16:55:54 tron Exp 
  */
 
 #ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -14,17 +14,17 @@
 #undef syscallarg
 #endif
 
-#define        syscallarg(x)                                                           \
-               union {                                                         \
-                       register_t pad;                                         \
-                       struct { x datum; } le;                                 \
-                       struct {                                                \
-                               int8_t pad[ (sizeof (register_t) < sizeof (x))  \
-                                       ? 0                                     \
-                                       : sizeof (register_t) - sizeof (x)];    \
-                               x datum;                                        \
-                       } be;                                                   \
-               }
+#define        syscallarg(x)                                                   \
+       union {                                                         \
+               register_t pad;                                         \
+               struct { x datum; } le;                                 \
+               struct {                                                \
+                       int8_t pad[ (sizeof (register_t) < sizeof (x))  \
+                               ? 0                                     \
+                               : sizeof (register_t) - sizeof (x)];    \
+                       x datum;                                        \
+               } be;                                                   \
+       }
 
 struct linux_sys_creat_args {
        syscallarg(char *) path;
@@ -278,6 +278,34 @@
        syscallarg(struct linux_statfs *) sp;
 };
 
+struct linux_sys_sched_setparam_args {
+       syscallarg(pid_t) pid;
+       syscallarg(const struct linux_sched_param *) sp;
+};
+
+struct linux_sys_sched_getparam_args {
+       syscallarg(pid_t) pid;
+       syscallarg(struct linux_sched_param *) sp;
+};
+
+struct linux_sys_sched_setscheduler_args {
+       syscallarg(pid_t) pid;
+       syscallarg(int) policy;
+       syscallarg(const struct linux_sched_param *) sp;
+};
+
+struct linux_sys_sched_getscheduler_args {
+       syscallarg(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_uname_args {
        syscallarg(struct linux_utsname *) up;
 };
@@ -484,6 +512,13 @@
 int    linux_sys_personality   __P((struct proc *, void *, register_t *));
 int    linux_sys_statfs        __P((struct proc *, void *, register_t *));
 int    linux_sys_fstatfs       __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_setparam        __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_getparam        __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_setscheduler    __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_getscheduler    __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_yield   __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_get_priority_max        __P((struct proc *, void *, register_t *));
+int    linux_sys_sched_get_priority_min        __P((struct proc *, void *, register_t *));
 int    linux_sys_uname __P((struct proc *, void *, register_t *));
 int    sys_nanosleep   __P((struct proc *, void *, register_t *));
 int    linux_sys_mremap        __P((struct proc *, void *, register_t *));
diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c      Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c      Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscalls.c,v 1.11 1999/05/14 18:41:20 thorpej Exp $      */
+/*     $NetBSD: linux_syscalls.c,v 1.12 1999/10/04 16:57:11 tron Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.11 1999/05/14 18:39:38 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.12 1999/10/04 16:55:54 tron Exp 
  */
 
 #if defined(_KERNEL) && !defined(_LKM)
@@ -382,13 +382,13 @@
        "#327 (unimplemented ustat)",           /* 327 = unimplemented ustat */
        "statfs",                       /* 328 = statfs */
        "fstatfs",                      /* 329 = fstatfs */
-       "#330 (unimplemented sched_setparam)",          /* 330 = unimplemented sched_setparam */
-       "#331 (unimplemented sched_getparam)",          /* 331 = unimplemented sched_getparam */
-       "#332 (unimplemented sched_setscheduler)",              /* 332 = unimplemented sched_setscheduler */
-       "#333 (unimplemented sched_getscheduler)",              /* 333 = unimplemented sched_getscheduler */
-       "#334 (unimplemented sched_yield)",             /* 334 = unimplemented sched_yield */
-       "#335 (unimplemented sched_get_priority_max)",          /* 335 = unimplemented sched_get_priority_max */
-       "#336 (unimplemented sched_get_priority_min)",          /* 336 = unimplemented sched_get_priority_min */
+       "sched_setparam",                       /* 330 = sched_setparam */
+       "sched_getparam",                       /* 331 = sched_getparam */
+       "sched_setscheduler",                   /* 332 = sched_setscheduler */
+       "sched_getscheduler",                   /* 333 = sched_getscheduler */
+       "sched_yield",                  /* 334 = sched_yield */
+       "sched_get_priority_max",                       /* 335 = sched_get_priority_max */
+       "sched_get_priority_min",                       /* 336 = sched_get_priority_min */
        "#337 (unimplemented sched_rr_get_interval)",           /* 337 = unimplemented sched_rr_get_interval */
        "#338 (unimplemented afs_syscall)",             /* 338 = unimplemented afs_syscall */
        "uname",                        /* 339 = uname */
diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c        Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c        Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_sysent.c,v 1.12 1999/05/14 18:41:20 thorpej Exp $        */
+/*     $NetBSD: linux_sysent.c,v 1.13 1999/10/04 16:57:11 tron Exp $   */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.11 1999/05/14 18:39:38 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.12 1999/10/04 16:55:54 tron Exp 
  */
 
 #include "opt_sysv.h"
@@ -724,20 +724,20 @@
            linux_sys_statfs },                 /* 328 = statfs */
        { 2, s(struct linux_sys_fstatfs_args),
            linux_sys_fstatfs },                /* 329 = fstatfs */
-       { 0, 0,
-           sys_nosys },                        /* 330 = unimplemented sched_setparam */
-       { 0, 0,
-           sys_nosys },                        /* 331 = unimplemented sched_getparam */
-       { 0, 0,
-           sys_nosys },                        /* 332 = unimplemented sched_setscheduler */
+       { 2, s(struct linux_sys_sched_setparam_args),
+           linux_sys_sched_setparam },         /* 330 = sched_setparam */
+       { 2, s(struct linux_sys_sched_getparam_args),
+           linux_sys_sched_getparam },         /* 331 = sched_getparam */
+       { 3, s(struct linux_sys_sched_setscheduler_args),
+           linux_sys_sched_setscheduler },     /* 332 = sched_setscheduler */
+       { 1, s(struct linux_sys_sched_getscheduler_args),
+           linux_sys_sched_getscheduler },     /* 333 = sched_getscheduler */
        { 0, 0,
-           sys_nosys },                        /* 333 = unimplemented sched_getscheduler */
-       { 0, 0,
-           sys_nosys },                        /* 334 = unimplemented sched_yield */
-       { 0, 0,
-           sys_nosys },                        /* 335 = unimplemented sched_get_priority_max */
-       { 0, 0,
-           sys_nosys },                        /* 336 = unimplemented sched_get_priority_min */
+           linux_sys_sched_yield },            /* 334 = sched_yield */
+       { 1, s(struct linux_sys_sched_get_priority_max_args),
+           linux_sys_sched_get_priority_max }, /* 335 = sched_get_priority_max */
+       { 1, s(struct linux_sys_sched_get_priority_min_args),
+           linux_sys_sched_get_priority_min }, /* 336 = sched_get_priority_min */
        { 0, 0,
            sys_nosys },                        /* 337 = unimplemented sched_rr_get_interval */
        { 0, 0,
diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/i386/linux_syscall.h
--- a/sys/compat/linux/arch/i386/linux_syscall.h        Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscall.h        Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscall.h,v 1.11 1999/08/16 19:13:29 tron Exp $  */
+/*     $NetBSD: linux_syscall.h,v 1.12 1999/10/04 16:57:12 tron Exp $  */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.35 1999/08/16 19:13:01 tron Exp 
+ * created from        NetBSD: syscalls.master,v 1.36 1999/10/04 16:55:55 tron Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -380,6 +380,27 @@
 /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
 #define        LINUX_SYS_munlock       151
 
+/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
+#define        LINUX_SYS_sched_setparam        154
+
+/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
+#define        LINUX_SYS_sched_getparam        155
+
+/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
+#define        LINUX_SYS_sched_setscheduler    156
+
+/* syscall: "sched_getscheduler" ret: "int" args: "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: "int" */
+#define        LINUX_SYS_sched_get_priority_max        159
+
+/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
+#define        LINUX_SYS_sched_get_priority_min        160
+
 /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
 #define        LINUX_SYS_nanosleep     162
 
diff -r 442830691ef1 -r 6845b12c6d38 sys/compat/linux/arch/i386/linux_syscallargs.h
--- a/sys/compat/linux/arch/i386/linux_syscallargs.h    Mon Oct 04 16:55:54 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscallargs.h    Mon Oct 04 16:57:10 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscallargs.h,v 1.11 1999/08/16 19:13:30 tron Exp $      */
+/*     $NetBSD: linux_syscallargs.h,v 1.12 1999/10/04 16:57:12 tron Exp $      */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.35 1999/08/16 19:13:01 tron Exp 
+ * created from        NetBSD: syscalls.master,v 1.36 1999/10/04 16:55:55 tron Exp 
  */
 
 #ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -14,17 +14,17 @@
 #undef syscallarg
 #endif
 
-#define        syscallarg(x)                                                           \
-               union {                                                         \
-                       register_t pad;                                         \
-                       struct { x datum; } le;                                 \
-                       struct {                                                \
-                               int8_t pad[ (sizeof (register_t) < sizeof (x))  \
-                                       ? 0                                     \
-                                       : sizeof (register_t) - sizeof (x)];    \
-                               x datum;                                        \
-                       } be;                                                   \
-               }



Home | Main Index | Thread Index | Old Index