summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>1999-12-05 21:24:28 +0000
committertron <tron@NetBSD.org>1999-12-05 21:24:28 +0000
commitea2517e20d1633fdbf5881563ddcadfdbbe4185e (patch)
tree4a4a19aa6a041f23eef400295943fc33392ec1e0 /sys/compat/linux/arch
parent5985528d02553fd357d5420db63afd5328e902a2 (diff)
Add proper stub code to make emulation of Linux's pread(2) and pwrite(2)
work. Fixes PR kern/8945 by Dave Sainty.
Diffstat (limited to 'sys/compat/linux/arch')
-rw-r--r--sys/compat/linux/arch/alpha/syscalls.master10
-rw-r--r--sys/compat/linux/arch/i386/syscalls.master10
-rw-r--r--sys/compat/linux/arch/m68k/syscalls.master10
3 files changed, 15 insertions, 15 deletions
diff --git a/sys/compat/linux/arch/alpha/syscalls.master b/sys/compat/linux/arch/alpha/syscalls.master
index 11697f124d6..f353a8ee489 100644
--- a/sys/compat/linux/arch/alpha/syscalls.master
+++ b/sys/compat/linux/arch/alpha/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.12 1999/10/04 16:55:54 tron Exp $
+ $NetBSD: syscalls.master,v 1.13 1999/12/05 21:24:28 tron Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -510,10 +510,10 @@
346 UNIMPL pciconfig_write
347 UNIMPL query_module
348 UNIMPL prctl
-349 NOARGS { int sys_pread(int fd, char *buf, size_t nbytes, \
- off_t offset); }
-350 NOARGS { int sys_pwrite(int fd, char *buf, size_t nbytes, \
- off_t offset); }
+340 STD { int linux_sys_pread(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
+350 STD { int linux_sys_pwrite(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
351 STD { int linux_sys_rt_sigreturn( \
struct linux_rt_sigframe *sfp); }
352 STD { int linux_sys_rt_sigaction(int signum, \
diff --git a/sys/compat/linux/arch/i386/syscalls.master b/sys/compat/linux/arch/i386/syscalls.master
index 07173eb66fa..124a4305f1c 100644
--- a/sys/compat/linux/arch/i386/syscalls.master
+++ b/sys/compat/linux/arch/i386/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.37 1999/12/04 22:14:14 tron Exp $
+ $NetBSD: syscalls.master,v 1.38 1999/12/05 21:24:30 tron Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -296,10 +296,10 @@
void *uinfo); }
179 STD { int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
size_t sigsetsize); }
-180 NOARGS { int sys_pread(int fd, char *buf, size_t nbytes, \
- off_t offset); }
-181 NOARGS { int sys_pwrite(int fd, char *buf, size_t nbytes, \
- off_t offset); }
+180 STD { int linux_sys_pread(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
+181 STD { int linux_sys_pwrite(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
182 STD { int linux_sys_chown(const char *path, int uid, \
int gid); }
183 NOARGS { int sys___getcwd(char *bufp, size_t length); }
diff --git a/sys/compat/linux/arch/m68k/syscalls.master b/sys/compat/linux/arch/m68k/syscalls.master
index b6f7334a07e..7e5871772ed 100644
--- a/sys/compat/linux/arch/m68k/syscalls.master
+++ b/sys/compat/linux/arch/m68k/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.10 1999/12/04 22:14:15 tron Exp $
+ $NetBSD: syscalls.master,v 1.11 1999/12/05 21:24:30 tron Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -321,10 +321,10 @@
void *uinfo); }
179 STD { int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
size_t sigsetsize); }
-180 NOARGS { int sys_pread(int fd, char *buf, size_t nbytes, \
- off_t offset); }
-181 NOARGS { int sys_pwrite(int fd, char *buf, size_t nbytes, \
- off_t offset); }
+180 STD { int linux_sys_pread(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
+181 STD { int linux_sys_pwrite(int fd, char *buf, \
+ size_t nbyte, linux_off_t offset); }
;182 chown on i386; lchown on m68k.
182 STD { int linux_sys_lchown(const char *path, int uid, \
int gid); }