diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-20 06:32:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-20 06:32:48 +0000 |
commit | c42dc7b26f5ec60537b371bf4725d3faab42d61c (patch) | |
tree | dfd4fb2fed34b887251ecea3d6349de456a5eb34 | |
parent | f651049224a56042b9a7ad46681f9c35fee8986a (diff) |
sync
-rw-r--r-- | sys/kern/init_sysent.c | 16 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 10 | ||||
-rw-r--r-- | sys/sys/syscall.h | 18 | ||||
-rw-r--r-- | sys/sys/syscallargs.h | 40 |
4 files changed, 69 insertions, 15 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 29dcde347e1..da329080a3a 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: init_sysent.c,v 1.43 2000/02/07 08:04:17 assar Exp $ */ +/* $OpenBSD: init_sysent.c,v 1.44 2000/04/20 06:32:47 deraadt Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.38 2000/02/07 04:49:27 assar Exp + * created from; OpenBSD: syscalls.master,v 1.39 2000/04/20 06:32:23 deraadt Exp */ #include <sys/param.h> @@ -411,10 +411,10 @@ struct sysent sysent[] = { #endif { 0, 0, sys_nosys }, /* 172 = unimplemented */ - { 0, 0, - sys_nosys }, /* 173 = unimplemented */ - { 0, 0, - sys_nosys }, /* 174 = unimplemented */ + { 5, s(struct sys_pread_args), + sys_pread }, /* 173 = pread */ + { 5, s(struct sys_pwrite_args), + sys_pwrite }, /* 174 = pwrite */ #ifdef NTP { 1, s(struct sys_ntp_gettime_args), sys_ntp_gettime }, /* 175 = ntp_gettime */ @@ -688,5 +688,9 @@ struct sysent sysent[] = { sys_fhstat }, /* 265 = fhstat */ { 2, s(struct sys_fhstatfs_args), sys_fhstatfs }, /* 266 = fhstatfs */ + { 5, s(struct sys_preadv_args), + sys_preadv }, /* 267 = preadv */ + { 5, s(struct sys_pwritev_args), + sys_pwritev }, /* 268 = pwritev */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 4a1fd3e72c1..cbdc7cde0b8 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: syscalls.c,v 1.43 2000/02/07 08:05:09 assar Exp $ */ +/* $OpenBSD: syscalls.c,v 1.44 2000/04/20 06:32:47 deraadt Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.38 2000/02/07 04:49:27 assar Exp + * created from; OpenBSD: syscalls.master,v 1.39 2000/04/20 06:32:23 deraadt Exp */ char *syscallnames[] = { @@ -205,8 +205,8 @@ char *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 */ @@ -357,4 +357,6 @@ char *syscallnames[] = { "fhopen", /* 264 = fhopen */ "fhstat", /* 265 = fhstat */ "fhstatfs", /* 266 = fhstatfs */ + "preadv", /* 267 = preadv */ + "pwritev", /* 268 = pwritev */ }; diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 96bb969202a..3810113a68d 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscall.h,v 1.42 2000/02/07 08:06:10 assar Exp $ */ +/* $OpenBSD: syscall.h,v 1.43 2000/04/20 06:32:47 deraadt Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.38 2000/02/07 04:49:27 assar Exp + * created from; OpenBSD: syscalls.master,v 1.39 2000/04/20 06:32:23 deraadt Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -434,6 +434,12 @@ /* 171 is compat_10 oshmsys */ +/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ +#define SYS_pread 173 + +/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ +#define SYS_pwrite 174 + /* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */ #define SYS_ntp_gettime 175 @@ -623,4 +629,10 @@ /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */ #define SYS_fhstatfs 266 -#define SYS_MAXSYSCALL 267 +/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ +#define SYS_preadv 267 + +/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ +#define SYS_pwritev 268 + +#define SYS_MAXSYSCALL 269 diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index 36c7e98d981..6c29c41b9f5 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscallargs.h,v 1.43 2000/02/07 08:07:14 assar Exp $ */ +/* $OpenBSD: syscallargs.h,v 1.44 2000/04/20 06:32:47 deraadt Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.38 2000/02/07 04:49:27 assar Exp + * created from; OpenBSD: syscalls.master,v 1.39 2000/04/20 06:32:23 deraadt Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -743,6 +743,22 @@ struct compat_10_sys_shmsys_args { syscallarg(int) a4; }; +struct sys_pread_args { + syscallarg(int) fd; + syscallarg(void *) buf; + syscallarg(size_t) nbyte; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + +struct sys_pwrite_args { + syscallarg(int) fd; + syscallarg(const void *) buf; + syscallarg(size_t) nbyte; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + struct sys_ntp_gettime_args { syscallarg(struct ntptimeval *) ntvp; }; @@ -1079,6 +1095,22 @@ struct sys_fhstatfs_args { syscallarg(struct statfs *) buf; }; +struct sys_preadv_args { + syscallarg(int) fd; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + +struct sys_pwritev_args { + syscallarg(int) fd; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; + syscallarg(int) pad; + syscallarg(off_t) offset; +}; + /* * System call prototypes. */ @@ -1253,6 +1285,8 @@ int compat_10_sys_msgsys __P((struct proc *, void *, register_t *)); int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); #else #endif +int sys_pread __P((struct proc *, void *, register_t *)); +int 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 *)); @@ -1352,3 +1386,5 @@ int sys_pipe __P((struct proc *, void *, register_t *)); int sys_fhopen __P((struct proc *, void *, register_t *)); int sys_fhstat __P((struct proc *, void *, register_t *)); int sys_fhstatfs __P((struct proc *, void *, register_t *)); +int sys_preadv __P((struct proc *, void *, register_t *)); +int sys_pwritev __P((struct proc *, void *, register_t *)); |