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; pread(2) and pwrite(2).



details:   https://anonhg.NetBSD.org/src/rev/3f40a46ba5ab
branches:  trunk
changeset: 467325:3f40a46ba5ab
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Mar 23 03:01:48 1999 +0000

description:
Regen; pread(2) and pwrite(2).

diffstat:

 sys/compat/linux/arch/alpha/linux_syscall.h     |  10 ++++++++--
 sys/compat/linux/arch/alpha/linux_syscallargs.h |  10 ++++++++--
 sys/compat/linux/arch/alpha/linux_syscalls.c    |   8 ++++----
 sys/compat/linux/arch/alpha/linux_sysent.c      |  12 ++++++------
 sys/compat/linux/arch/i386/linux_syscall.h      |  10 ++++++++--
 sys/compat/linux/arch/i386/linux_syscallargs.h  |   6 ++++--
 sys/compat/linux/arch/i386/linux_syscalls.c     |   8 ++++----
 sys/compat/linux/arch/i386/linux_sysent.c       |  12 ++++++------
 sys/compat/linux/arch/m68k/linux_syscall.h      |  10 ++++++++--
 sys/compat/linux/arch/m68k/linux_syscallargs.h  |   6 ++++--
 sys/compat/linux/arch/m68k/linux_syscalls.c     |   8 ++++----
 sys/compat/linux/arch/m68k/linux_sysent.c       |  12 ++++++------
 12 files changed, 70 insertions(+), 42 deletions(-)

diffs (truncated from 344 to 300 lines):

diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscall.h,v 1.6 1998/12/10 17:13:08 christos Exp $       */
+/*     $NetBSD: linux_syscall.h,v 1.7 1999/03/23 03:01:48 thorpej Exp $        */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.6 1998/12/10 17:07:04 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.7 1999/03/23 03:00:51 thorpej Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -364,6 +364,12 @@
 /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
 #define        LINUX_SYS_mremap        341
 
+/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pread 349
+
+/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pwrite        350
+
 /* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
 #define        LINUX_SYS_rt_sigreturn  351
 
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Tue Mar 23 03:01:48 1999 +0000
@@ -1,12 +1,15 @@
-/*     $NetBSD: linux_syscallargs.h,v 1.6 1998/12/10 17:13:08 christos Exp $   */
+/*     $NetBSD: linux_syscallargs.h,v 1.7 1999/03/23 03:01:49 thorpej Exp $    */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.6 1998/12/10 17:07:04 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.7 1999/03/23 03:00:51 thorpej Exp 
  */
 
+#ifndef _LINUX_SYS__SYSCALLARGS_H_
+#define _LINUX_SYS__SYSCALLARGS_H_
+
 #ifdef syscallarg
 #undef syscallarg
 #endif
@@ -470,6 +473,8 @@
 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 *));
+int    sys_pread       __P((struct proc *, void *, register_t *));
+int    sys_pwrite      __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_sigreturn  __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_sigaction  __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_sigprocmask        __P((struct proc *, void *, register_t *));
@@ -484,3 +489,4 @@
 int    sys_utimes      __P((struct proc *, void *, register_t *));
 int    sys_getrusage   __P((struct proc *, void *, register_t *));
 int    linux_sys_wait4 __P((struct proc *, void *, register_t *));
+#endif /* _LINUX_SYS__SYSCALLARGS_H_ */
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c      Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c      Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscalls.c,v 1.6 1998/12/10 17:13:09 christos Exp $      */
+/*     $NetBSD: linux_syscalls.c,v 1.7 1999/03/23 03:01:49 thorpej Exp $       */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.6 1998/12/10 17:07:04 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.7 1999/03/23 03:00:51 thorpej Exp 
  */
 
 #if defined(_KERNEL) && !defined(_LKM)
@@ -400,8 +400,8 @@
        "#346 (unimplemented pciconfig_write)",         /* 346 = unimplemented pciconfig_write */
        "#347 (unimplemented query_module)",            /* 347 = unimplemented query_module */
        "#348 (unimplemented prctl)",           /* 348 = unimplemented prctl */
-       "#349 (unimplemented pread)",           /* 349 = unimplemented pread */
-       "#350 (unimplemented pwrite)",          /* 350 = unimplemented pwrite */
+       "pread",                        /* 349 = pread */
+       "pwrite",                       /* 350 = pwrite */
        "rt_sigreturn",                 /* 351 = rt_sigreturn */
        "rt_sigaction",                 /* 352 = rt_sigaction */
        "rt_sigprocmask",                       /* 353 = rt_sigprocmask */
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c        Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c        Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_sysent.c,v 1.7 1998/12/10 17:13:09 christos Exp $        */
+/*     $NetBSD: linux_sysent.c,v 1.8 1999/03/23 03:01:49 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.6 1998/12/10 17:07:04 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.7 1999/03/23 03:00:51 thorpej Exp 
  */
 
 #include "opt_sysv.h"
@@ -761,10 +761,10 @@
            sys_nosys },                        /* 347 = unimplemented query_module */
        { 0, 0,
            sys_nosys },                        /* 348 = unimplemented prctl */
-       { 0, 0,
-           sys_nosys },                        /* 349 = unimplemented pread */
-       { 0, 0,
-           sys_nosys },                        /* 350 = unimplemented pwrite */
+       { 4, s(struct sys_pread_args),
+           sys_pread },                        /* 349 = pread */
+       { 4, s(struct sys_pwrite_args),
+           sys_pwrite },                       /* 350 = pwrite */
        { 1, s(struct linux_sys_rt_sigreturn_args),
            linux_sys_rt_sigreturn },           /* 351 = rt_sigreturn */
        { 4, s(struct linux_sys_rt_sigaction_args),
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/i386/linux_syscall.h
--- a/sys/compat/linux/arch/i386/linux_syscall.h        Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscall.h        Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscall.h,v 1.5 1999/02/09 20:38:38 christos Exp $       */
+/*     $NetBSD: linux_syscall.h,v 1.6 1999/03/23 03:01:50 thorpej Exp $        */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.29 1999/02/09 20:37:00 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.30 1999/03/23 03:00:52 thorpej Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -398,6 +398,12 @@
 /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
 #define        LINUX_SYS_rt_sigsuspend 179
 
+/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pread 180
+
+/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pwrite        181
+
 /* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
 #define        LINUX_SYS_chown 182
 
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/i386/linux_syscallargs.h
--- a/sys/compat/linux/arch/i386/linux_syscallargs.h    Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscallargs.h    Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscallargs.h,v 1.5 1999/02/09 20:38:38 christos Exp $   */
+/*     $NetBSD: linux_syscallargs.h,v 1.6 1999/03/23 03:01:50 thorpej Exp $    */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.29 1999/02/09 20:37:00 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.30 1999/03/23 03:00:52 thorpej Exp 
  */
 
 #ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -523,5 +523,7 @@
 int    linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_queueinfo  __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
+int    sys_pread       __P((struct proc *, void *, register_t *));
+int    sys_pwrite      __P((struct proc *, void *, register_t *));
 int    linux_sys_chown __P((struct proc *, void *, register_t *));
 #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/i386/linux_syscalls.c
--- a/sys/compat/linux/arch/i386/linux_syscalls.c       Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_syscalls.c       Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscalls.c,v 1.5 1999/02/09 20:38:38 christos Exp $      */
+/*     $NetBSD: linux_syscalls.c,v 1.6 1999/03/23 03:01:50 thorpej Exp $       */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.29 1999/02/09 20:37:00 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.30 1999/03/23 03:00:52 thorpej Exp 
  */
 
 #if defined(_KERNEL) && !defined(_LKM)
@@ -202,8 +202,8 @@
        "#177 (unimplemented rt_sigtimedwait)",         /* 177 = unimplemented rt_sigtimedwait */
        "rt_queueinfo",                 /* 178 = rt_queueinfo */
        "rt_sigsuspend",                        /* 179 = rt_sigsuspend */
-       "#180 (unimplemented pread)",           /* 180 = unimplemented pread */
-       "#181 (unimplemented pwrite)",          /* 181 = unimplemented pwrite */
+       "pread",                        /* 180 = pread */
+       "pwrite",                       /* 181 = pwrite */
        "chown",                        /* 182 = chown */
        "#183 (unimplemented getcwd)",          /* 183 = unimplemented getcwd */
        "#184 (unimplemented capget)",          /* 184 = unimplemented capget */
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/i386/linux_sysent.c
--- a/sys/compat/linux/arch/i386/linux_sysent.c Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/i386/linux_sysent.c Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_sysent.c,v 1.5 1999/02/09 20:38:38 christos Exp $        */
+/*     $NetBSD: linux_sysent.c,v 1.6 1999/03/23 03:01:50 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.29 1999/02/09 20:37:00 christos Exp 
+ * created from        NetBSD: syscalls.master,v 1.30 1999/03/23 03:00:52 thorpej Exp 
  */
 
 #include "opt_compat_43.h"
@@ -382,10 +382,10 @@
            linux_sys_rt_queueinfo },           /* 178 = rt_queueinfo */
        { 2, s(struct linux_sys_rt_sigsuspend_args),
            linux_sys_rt_sigsuspend },          /* 179 = rt_sigsuspend */
-       { 0, 0,
-           sys_nosys },                        /* 180 = unimplemented pread */
-       { 0, 0,
-           sys_nosys },                        /* 181 = unimplemented pwrite */
+       { 4, s(struct sys_pread_args),
+           sys_pread },                        /* 180 = pread */
+       { 4, s(struct sys_pwrite_args),
+           sys_pwrite },                       /* 181 = pwrite */
        { 3, s(struct linux_sys_chown_args),
            linux_sys_chown },                  /* 182 = chown */
        { 0, 0,
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/m68k/linux_syscall.h
--- a/sys/compat/linux/arch/m68k/linux_syscall.h        Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscall.h        Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscall.h,v 1.2 1999/02/10 10:38:15 itohy Exp $  */
+/*     $NetBSD: linux_syscall.h,v 1.3 1999/03/23 03:01:50 thorpej Exp $        */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp 
+ * created from        NetBSD: syscalls.master,v 1.3 1999/03/23 03:00:52 thorpej Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -384,6 +384,12 @@
 /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
 #define        LINUX_SYS_rt_sigsuspend 179
 
+/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pread 180
+
+/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
+#define        LINUX_SYS_pwrite        181
+
 /* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */
 #define        LINUX_SYS_lchown        182
 
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/m68k/linux_syscallargs.h
--- a/sys/compat/linux/arch/m68k/linux_syscallargs.h    Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscallargs.h    Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscallargs.h,v 1.2 1999/02/10 10:38:15 itohy Exp $      */
+/*     $NetBSD: linux_syscallargs.h,v 1.3 1999/03/23 03:01:51 thorpej Exp $    */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp 
+ * created from        NetBSD: syscalls.master,v 1.3 1999/03/23 03:00:52 thorpej Exp 
  */
 
 #ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -507,5 +507,7 @@
 int    linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_queueinfo  __P((struct proc *, void *, register_t *));
 int    linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
+int    sys_pread       __P((struct proc *, void *, register_t *));
+int    sys_pwrite      __P((struct proc *, void *, register_t *));
 int    linux_sys_lchown        __P((struct proc *, void *, register_t *));
 #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
diff -r 7b81416ea08a -r 3f40a46ba5ab sys/compat/linux/arch/m68k/linux_syscalls.c
--- a/sys/compat/linux/arch/m68k/linux_syscalls.c       Tue Mar 23 03:00:51 1999 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscalls.c       Tue Mar 23 03:01:48 1999 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: linux_syscalls.c,v 1.2 1999/02/10 10:38:15 itohy Exp $ */
+/*     $NetBSD: linux_syscalls.c,v 1.3 1999/03/23 03:01:51 thorpej Exp $       */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp 
+ * created from        NetBSD: syscalls.master,v 1.3 1999/03/23 03:00:52 thorpej Exp 
  */



Home | Main Index | Thread Index | Old Index