diff options
-rw-r--r-- | sys/compat/netbsd/netbsd_syscall.h | 16 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_syscallargs.h | 40 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_syscalls.c | 12 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_sysent.c | 20 |
4 files changed, 68 insertions, 20 deletions
diff --git a/sys/compat/netbsd/netbsd_syscall.h b/sys/compat/netbsd/netbsd_syscall.h index e1fb2b7c695..98ac26348ce 100644 --- a/sys/compat/netbsd/netbsd_syscall.h +++ b/sys/compat/netbsd/netbsd_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_syscall.h,v 1.5 1999/09/15 20:42:27 kstailey Exp $ */ +/* $OpenBSD: netbsd_syscall.h,v 1.6 1999/09/17 12:14:59 kstailey Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.5 1999/09/15 20:41:16 kstailey Exp + * created from; OpenBSD: syscalls.master,v 1.6 1999/09/17 12:13:47 kstailey Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -475,6 +475,12 @@ /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */ #define NETBSD_SYS_shmsys 171 +/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ +#define NETBSD_SYS_pread 173 + +/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ +#define NETBSD_SYS_pwrite 174 + /* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */ #define NETBSD_SYS_ntp_gettime 175 @@ -646,6 +652,12 @@ /* syscall: "getsid" ret: "int" args: "pid_t" */ #define NETBSD_SYS_getsid 286 +/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ +#define NETBSD_SYS_preadv 289 + +/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ +#define NETBSD_SYS_pwritev 290 + /* syscall: "__sigaction14" ret: "int" args: "int" "const struct netbsd_sigaction *" "struct netbsd_sigaction *" */ #define NETBSD_SYS___sigaction14 291 diff --git a/sys/compat/netbsd/netbsd_syscallargs.h b/sys/compat/netbsd/netbsd_syscallargs.h index 5b2a83e0300..d0faba9d8df 100644 --- a/sys/compat/netbsd/netbsd_syscallargs.h +++ b/sys/compat/netbsd/netbsd_syscallargs.h @@ -1,14 +1,30 @@ -/* $OpenBSD: netbsd_syscallargs.h,v 1.5 1999/09/15 20:42:27 kstailey Exp $ */ +/* $OpenBSD: netbsd_syscallargs.h,v 1.6 1999/09/17 12:14:59 kstailey Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.5 1999/09/15 20:41:16 kstailey Exp + * created from; OpenBSD: syscalls.master,v 1.6 1999/09/17 12:13:47 kstailey Exp */ #define syscallarg(x) union { x datum; register_t pad; } +struct netbsd_sys_pread_args { + syscallarg(int) fd; + syscallarg(void *) buf; + syscallarg(size_t) nbyte; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + +struct netbsd_sys_pwrite_args { + syscallarg(int) fd; + syscallarg(const void *) buf; + syscallarg(size_t) nbyte; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + struct netbsd_sys_getdents_args { syscallarg(int) fd; syscallarg(char *) buf; @@ -35,6 +51,22 @@ struct netbsd_sys___sigaltstack14_args { syscallarg(struct netbsd_sigaltstack *) oss; }; +struct netbsd_sys_preadv_args { + syscallarg(int) fd; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + +struct netbsd_sys_pwritev_args { + syscallarg(int) fd; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + struct netbsd_sys___sigaction14_args { syscallarg(int) signum; syscallarg(const struct netbsd_sigaction *) nsa; @@ -241,6 +273,8 @@ int sys_msgsys __P((struct proc *, void *, register_t *)); int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); #else #endif +int netbsd_sys_pread __P((struct proc *, void *, register_t *)); +int netbsd_sys_pwrite __P((struct proc *, void *, register_t *)); #ifdef NTP int sys_ntp_gettime __P((struct proc *, void *, register_t *)); int sys_ntp_adjtime __P((struct proc *, void *, register_t *)); @@ -328,6 +362,8 @@ int sys_getsid __P((struct proc *, void *, register_t *)); #ifdef KTRACE #else #endif +int netbsd_sys_preadv __P((struct proc *, void *, register_t *)); +int netbsd_sys_pwritev __P((struct proc *, void *, register_t *)); int netbsd_sys___sigaction14 __P((struct proc *, void *, register_t *)); int netbsd_sys___sigpending14 __P((struct proc *, void *, register_t *)); int netbsd_sys___sigprocmask14 __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/netbsd/netbsd_syscalls.c b/sys/compat/netbsd/netbsd_syscalls.c index 8283e3421b8..0448d8373e7 100644 --- a/sys/compat/netbsd/netbsd_syscalls.c +++ b/sys/compat/netbsd/netbsd_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_syscalls.c,v 1.5 1999/09/15 20:42:27 kstailey Exp $ */ +/* $OpenBSD: netbsd_syscalls.c,v 1.6 1999/09/17 12:14:59 kstailey Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.5 1999/09/15 20:41:16 kstailey Exp + * created from; OpenBSD: syscalls.master,v 1.6 1999/09/17 12:13:47 kstailey Exp */ char *netbsd_syscallnames[] = { @@ -209,8 +209,8 @@ char *netbsd_syscallnames[] = { "#171 (unimplemented 1.0 shmsys)", /* 171 = unimplemented 1.0 shmsys */ #endif "#172 (unimplemented)", /* 172 = unimplemented */ - "#173 (unimplemented)", /* 173 = unimplemented */ - "#174 (unimplemented)", /* 174 = unimplemented */ + "pread", /* 173 = pread */ + "pwrite", /* 174 = pwrite */ #ifdef NTP "ntp_gettime", /* 175 = ntp_gettime */ "ntp_adjtime", /* 176 = ntp_adjtime */ @@ -375,8 +375,8 @@ char *netbsd_syscallnames[] = { #else "#288 (unimplemented)", /* 288 = unimplemented */ #endif - "#289 (unimplemented)", /* 289 = unimplemented */ - "#290 (unimplemented)", /* 290 = unimplemented */ + "preadv", /* 289 = preadv */ + "pwritev", /* 290 = pwritev */ "__sigaction14", /* 291 = __sigaction14 */ "__sigpending14", /* 292 = __sigpending14 */ "__sigprocmask14", /* 293 = __sigprocmask14 */ diff --git a/sys/compat/netbsd/netbsd_sysent.c b/sys/compat/netbsd/netbsd_sysent.c index cc103ec5641..5ffa036dc01 100644 --- a/sys/compat/netbsd/netbsd_sysent.c +++ b/sys/compat/netbsd/netbsd_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_sysent.c,v 1.5 1999/09/15 20:42:27 kstailey Exp $ */ +/* $OpenBSD: netbsd_sysent.c,v 1.6 1999/09/17 12:14:59 kstailey Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.5 1999/09/15 20:41:16 kstailey Exp + * created from; OpenBSD: syscalls.master,v 1.6 1999/09/17 12:13:47 kstailey Exp */ #include <sys/param.h> @@ -403,10 +403,10 @@ struct sysent netbsd_sysent[] = { #endif { 0, 0, sys_nosys }, /* 172 = unimplemented */ - { 0, 0, - sys_nosys }, /* 173 = unimplemented */ - { 0, 0, - sys_nosys }, /* 174 = unimplemented */ + { 5, s(struct netbsd_sys_pread_args), + netbsd_sys_pread }, /* 173 = pread */ + { 5, s(struct netbsd_sys_pwrite_args), + netbsd_sys_pwrite }, /* 174 = pwrite */ #ifdef NTP { 1, s(struct sys_ntp_gettime_args), sys_ntp_gettime }, /* 175 = ntp_gettime */ @@ -714,10 +714,10 @@ struct sysent netbsd_sysent[] = { { 0, 0, sys_nosys }, /* 288 = unimplemented */ #endif - { 0, 0, - sys_nosys }, /* 289 = unimplemented */ - { 0, 0, - sys_nosys }, /* 290 = unimplemented */ + { 5, s(struct netbsd_sys_preadv_args), + netbsd_sys_preadv }, /* 289 = preadv */ + { 5, s(struct netbsd_sys_pwritev_args), + netbsd_sys_pwritev }, /* 290 = pwritev */ { 3, s(struct netbsd_sys___sigaction14_args), netbsd_sys___sigaction14 }, /* 291 = __sigaction14 */ { 1, s(struct netbsd_sys___sigpending14_args), |