summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd/freebsd_syscall.h10
-rw-r--r--sys/compat/freebsd/freebsd_syscallargs.h6
-rw-r--r--sys/compat/freebsd/freebsd_syscalls.c8
-rw-r--r--sys/compat/freebsd/freebsd_sysent.c12
4 files changed, 22 insertions, 14 deletions
diff --git a/sys/compat/freebsd/freebsd_syscall.h b/sys/compat/freebsd/freebsd_syscall.h
index ede33a917d2..43e025ab26b 100644
--- a/sys/compat/freebsd/freebsd_syscall.h
+++ b/sys/compat/freebsd/freebsd_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscall.h,v 1.22 2003/05/10 17:55:56 miod Exp $ */
+/* $OpenBSD: freebsd_syscall.h,v 1.23 2003/08/24 00:03:03 tedu Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.21 2003/05/10 17:53:57 miod Exp
+ * created from OpenBSD: syscalls.master,v 1.22 2003/08/24 00:02:42 tedu Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -478,6 +478,12 @@
/* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
#define FREEBSD_SYS_shmsys 171
+/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
+#define FREEBSD_SYS_pread 173
+
+/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
+#define FREEBSD_SYS_pwrite 174
+
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define FREEBSD_SYS_setgid 181
diff --git a/sys/compat/freebsd/freebsd_syscallargs.h b/sys/compat/freebsd/freebsd_syscallargs.h
index a6ff5a18898..e7232586cc1 100644
--- a/sys/compat/freebsd/freebsd_syscallargs.h
+++ b/sys/compat/freebsd/freebsd_syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscallargs.h,v 1.24 2003/05/10 17:55:56 miod Exp $ */
+/* $OpenBSD: freebsd_syscallargs.h,v 1.25 2003/08/24 00:03:03 tedu Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.21 2003/05/10 17:53:57 miod Exp
+ * created from OpenBSD: syscalls.master,v 1.22 2003/08/24 00:02:42 tedu Exp
*/
#ifdef syscallarg
@@ -434,6 +434,8 @@ int compat_10_sys_msgsys(struct proc *, void *, register_t *);
int compat_10_sys_shmsys(struct proc *, void *, register_t *);
#else
#endif
+int sys_pread(struct proc *, void *, register_t *);
+int sys_pwrite(struct proc *, void *, register_t *);
int sys_setgid(struct proc *, void *, register_t *);
int sys_setegid(struct proc *, void *, register_t *);
int sys_seteuid(struct proc *, void *, register_t *);
diff --git a/sys/compat/freebsd/freebsd_syscalls.c b/sys/compat/freebsd/freebsd_syscalls.c
index 4d831b11d77..be6415e5bc0 100644
--- a/sys/compat/freebsd/freebsd_syscalls.c
+++ b/sys/compat/freebsd/freebsd_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_syscalls.c,v 1.22 2003/05/10 17:55:56 miod Exp $ */
+/* $OpenBSD: freebsd_syscalls.c,v 1.23 2003/08/24 00:03:03 tedu Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.21 2003/05/10 17:53:57 miod Exp
+ * created from OpenBSD: syscalls.master,v 1.22 2003/08/24 00:02:42 tedu Exp
*/
char *freebsd_syscallnames[] = {
@@ -213,8 +213,8 @@ char *freebsd_syscallnames[] = {
"#171 (unimplemented 1.0 shmsys)", /* 171 = unimplemented 1.0 shmsys */
#endif
"#172 (unimplemented)", /* 172 = unimplemented */
- "#173 (unimplemented pread)", /* 173 = unimplemented pread */
- "#174 (unimplemented pwrite)", /* 174 = unimplemented pwrite */
+ "pread", /* 173 = pread */
+ "pwrite", /* 174 = pwrite */
"#175 (unimplemented)", /* 175 = unimplemented */
"#176 (unimplemented ntp_adjtime)", /* 176 = unimplemented ntp_adjtime */
"#177 (unimplemented sfork)", /* 177 = unimplemented sfork */
diff --git a/sys/compat/freebsd/freebsd_sysent.c b/sys/compat/freebsd/freebsd_sysent.c
index b6781f0fc40..262f634493c 100644
--- a/sys/compat/freebsd/freebsd_sysent.c
+++ b/sys/compat/freebsd/freebsd_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: freebsd_sysent.c,v 1.23 2003/05/10 17:55:56 miod Exp $ */
+/* $OpenBSD: freebsd_sysent.c,v 1.24 2003/08/24 00:03:03 tedu Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.21 2003/05/10 17:53:57 miod Exp
+ * created from OpenBSD: syscalls.master,v 1.22 2003/08/24 00:02:42 tedu Exp
*/
#include <sys/param.h>
@@ -405,10 +405,10 @@ struct sysent freebsd_sysent[] = {
#endif
{ 0, 0,
sys_nosys }, /* 172 = unimplemented */
- { 0, 0,
- sys_nosys }, /* 173 = unimplemented pread */
- { 0, 0,
- sys_nosys }, /* 174 = unimplemented pwrite */
+ { 5, s(struct sys_pread_args),
+ sys_pread }, /* 173 = pread */
+ { 5, s(struct sys_pwrite_args),
+ sys_pwrite }, /* 174 = pwrite */
{ 0, 0,
sys_nosys }, /* 175 = unimplemented */
{ 0, 0,