-/* $OpenBSD: linux_syscall.h,v 1.19 2000/03/28 06:36:29 jasoni Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.20 2000/04/04 05:32:17 jasoni Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.20 2000/03/28 06:35:57 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp
*/
/* syscall: "syscall" ret: "int" args: */
/* 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" "linux_off_t" */
+#define LINUX_SYS_pread 180
+
+/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
+#define LINUX_SYS_pwrite 181
+
/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
#define LINUX_SYS_chown 182
-/* $OpenBSD: linux_syscallargs.h,v 1.20 2000/03/28 06:36:29 jasoni Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.21 2000/04/04 05:32:17 jasoni Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.20 2000/03/28 06:35:57 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
syscallarg(size_t) sigsetsize;
};
+struct linux_sys_pread_args {
+ syscallarg(int) fd;
+ syscallarg(char *) buf;
+ syscallarg(size_t) nbyte;
+ syscallarg(linux_off_t) offset;
+};
+
+struct linux_sys_pwrite_args {
+ syscallarg(int) fd;
+ syscallarg(char *) buf;
+ syscallarg(size_t) nbyte;
+ syscallarg(linux_off_t) offset;
+};
+
struct linux_sys_chown_args {
syscallarg(char *) path;
syscallarg(int) uid;
int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
+int linux_sys_pread __P((struct proc *, void *, register_t *));
+int linux_sys_pwrite __P((struct proc *, void *, register_t *));
int linux_sys_chown __P((struct proc *, void *, register_t *));
int linux_sys_getcwd __P((struct proc *, void *, register_t *));
int sys_vfork __P((struct proc *, void *, register_t *));
-/* $OpenBSD: linux_syscalls.c,v 1.19 2000/03/28 06:36:29 jasoni Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.20 2000/04/04 05:32:17 jasoni Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.20 2000/03/28 06:35:57 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp
*/
char *linux_syscallnames[] = {
"#177 (unimplemented rt_sigtimedwait)", /* 177 = unimplemented rt_sigtimedwait */
"#178 (unimplemented rt_queueinfo)", /* 178 = unimplemented 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 */
"getcwd", /* 183 = getcwd */
"#184 (unimplemented capget)", /* 184 = unimplemented capget */
-/* $OpenBSD: linux_sysent.c,v 1.20 2000/03/28 06:36:29 jasoni Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.21 2000/04/04 05:32:17 jasoni Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.20 2000/03/28 06:35:57 jasoni Exp
+ * created from OpenBSD: syscalls.master,v 1.21 2000/04/04 05:31:50 jasoni Exp
*/
#include <sys/param.h>
sys_nosys }, /* 178 = unimplemented 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 linux_sys_pread_args),
+ linux_sys_pread }, /* 180 = pread */
+ { 4, s(struct linux_sys_pwrite_args),
+ linux_sys_pwrite }, /* 181 = pwrite */
{ 3, s(struct linux_sys_chown_args),
linux_sys_chown }, /* 182 = chown */
{ 2, s(struct linux_sys_getcwd_args),