summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/svr4/svr4_syscall.h10
-rw-r--r--sys/compat/svr4/svr4_syscallargs.h20
-rw-r--r--sys/compat/svr4/svr4_syscalls.c8
-rw-r--r--sys/compat/svr4/svr4_sysent.c12
4 files changed, 36 insertions, 14 deletions
diff --git a/sys/compat/svr4/svr4_syscall.h b/sys/compat/svr4/svr4_syscall.h
index 2c7bc486371..b66f5edeec9 100644
--- a/sys/compat/svr4/svr4_syscall.h
+++ b/sys/compat/svr4/svr4_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscall.h,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
+/* $OpenBSD: svr4_syscall.h,v 1.30 2000/08/23 19:32:54 fgsch Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -385,6 +385,12 @@
/* syscall: "fstatvfs64" ret: "int" args: "int" "struct svr4_statvfs64 *" */
#define SVR4_SYS_fstatvfs64 219
+/* syscall: "pread64" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off64_t" */
+#define SVR4_SYS_pread64 222
+
+/* syscall: "pwrite64" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off64_t" */
+#define SVR4_SYS_pwrite64 223
+
/* syscall: "creat64" ret: "int" args: "char *" "int" */
#define SVR4_SYS_creat64 224
diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h
index 21081fb6ae1..2345adc4a0e 100644
--- a/sys/compat/svr4/svr4_syscallargs.h
+++ b/sys/compat/svr4/svr4_syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscallargs.h,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
+/* $OpenBSD: svr4_syscallargs.h,v 1.30 2000/08/23 19:32:55 fgsch Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -404,6 +404,20 @@ struct svr4_sys_fstatvfs64_args {
syscallarg(struct svr4_statvfs64 *) fs;
};
+struct svr4_sys_pread64_args {
+ syscallarg(int) fd;
+ syscallarg(void *) buf;
+ syscallarg(size_t) nbyte;
+ syscallarg(svr4_off64_t) off;
+};
+
+struct svr4_sys_pwrite64_args {
+ syscallarg(int) fd;
+ syscallarg(const void *) buf;
+ syscallarg(size_t) nbyte;
+ syscallarg(svr4_off64_t) off;
+};
+
struct svr4_sys_creat64_args {
syscallarg(char *) path;
syscallarg(int) mode;
@@ -557,6 +571,8 @@ int svr4_sys_stat64 __P((struct proc *, void *, register_t *));
int svr4_sys_lstat64 __P((struct proc *, void *, register_t *));
int svr4_sys_fstat64 __P((struct proc *, void *, register_t *));
int svr4_sys_fstatvfs64 __P((struct proc *, void *, register_t *));
+int svr4_sys_pread64 __P((struct proc *, void *, register_t *));
+int svr4_sys_pwrite64 __P((struct proc *, void *, register_t *));
int svr4_sys_creat64 __P((struct proc *, void *, register_t *));
int svr4_sys_open64 __P((struct proc *, void *, register_t *));
int svr4_sys_socket __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c
index 87b346cde97..1e26e78b93c 100644
--- a/sys/compat/svr4/svr4_syscalls.c
+++ b/sys/compat/svr4/svr4_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_syscalls.c,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
+/* $OpenBSD: svr4_syscalls.c,v 1.30 2000/08/23 19:32:55 fgsch Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch Exp
*/
char *svr4_syscallnames[] = {
@@ -242,8 +242,8 @@ char *svr4_syscallnames[] = {
"fstatvfs64", /* 219 = fstatvfs64 */
"#220 (unimplemented setrlimit64)", /* 220 = unimplemented setrlimit64 */
"#221 (unimplemented getrlimit64)", /* 221 = unimplemented getrlimit64 */
- "#222 (unimplemented pread64)", /* 222 = unimplemented pread64 */
- "#223 (unimplemented pwrite64)", /* 223 = unimplemented pwrite64 */
+ "pread64", /* 222 = pread64 */
+ "pwrite64", /* 223 = pwrite64 */
"creat64", /* 224 = creat64 */
"open64", /* 225 = open64 */
"#226 (unimplemented rpcsys)", /* 226 = unimplemented rpcsys */
diff --git a/sys/compat/svr4/svr4_sysent.c b/sys/compat/svr4/svr4_sysent.c
index 3b2ff284ca0..ce18b354077 100644
--- a/sys/compat/svr4/svr4_sysent.c
+++ b/sys/compat/svr4/svr4_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: svr4_sysent.c,v 1.29 2000/06/28 23:49:45 fgsch Exp $ */
+/* $OpenBSD: svr4_sysent.c,v 1.30 2000/08/23 19:32:55 fgsch Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.29 2000/06/28 23:48:15 fgsch Exp
+ * created from OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch Exp
*/
#include <sys/param.h>
@@ -500,10 +500,10 @@ struct sysent svr4_sysent[] = {
sys_nosys }, /* 220 = unimplemented setrlimit64 */
{ 0, 0,
sys_nosys }, /* 221 = unimplemented getrlimit64 */
- { 0, 0,
- sys_nosys }, /* 222 = unimplemented pread64 */
- { 0, 0,
- sys_nosys }, /* 223 = unimplemented pwrite64 */
+ { 4, s(struct svr4_sys_pread64_args),
+ svr4_sys_pread64 }, /* 222 = pread64 */
+ { 4, s(struct svr4_sys_pwrite64_args),
+ svr4_sys_pwrite64 }, /* 223 = pwrite64 */
{ 2, s(struct svr4_sys_creat64_args),
svr4_sys_creat64 }, /* 224 = creat64 */
{ 3, s(struct svr4_sys_open64_args),