From 81bd3c8246e54d9c584e7d5bfcc197173f084010 Mon Sep 17 00:00:00 2001 From: jasoni Date: Tue, 4 Apr 2000 05:32:17 +0000 Subject: [PATCH] sync. --- sys/compat/linux/linux_syscall.h | 10 ++++++++-- sys/compat/linux/linux_syscallargs.h | 20 ++++++++++++++++++-- sys/compat/linux/linux_syscalls.c | 8 ++++---- sys/compat/linux/linux_sysent.c | 12 ++++++------ 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index f723cc06d62..72964bf40dd 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $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: */ @@ -411,6 +411,12 @@ /* 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 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index bb7e1fa76f5..1d7bacadc6a 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $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; } @@ -401,6 +401,20 @@ struct linux_sys_rt_sigsuspend_args { 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; @@ -559,6 +573,8 @@ int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *)); 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 *)); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 3de2a2f67ff..6e45a19c185 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $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[] = { @@ -200,8 +200,8 @@ 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 */ diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index 3125ac079d8..132e642421c 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $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 @@ -395,10 +395,10 @@ struct sysent linux_sysent[] = { 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), -- 2.20.1