Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch actually, we need to wrap sys_truncate...



details:   https://anonhg.NetBSD.org/src/rev/cb223ebb25bf
branches:  trunk
changeset: 500497:cb223ebb25bf
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Dec 12 22:23:02 2000 +0000

description:
actually, we need to wrap sys_truncate() call so that the /emul/linux/...
path is tried first
fix ftruncate64 entry - first arg to ftruncate is int fd, not path

diffstat:

 sys/compat/linux/arch/i386/syscalls.master |  7 +++----
 sys/compat/linux/arch/m68k/syscalls.master |  7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 73d51ccac419 -r cb223ebb25bf sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Tue Dec 12 21:14:51 2000 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Tue Dec 12 22:23:02 2000 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.48 2000/12/12 19:01:59 jdolecek Exp $
+       $NetBSD: syscalls.master,v 1.49 2000/12/12 22:23:02 jdolecek Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -319,10 +319,9 @@
 190    NOARGS          { int sys___vfork14(void); }
 191    UNIMPL          getrlimit
 192    UNIMPL          mmap2
-193    NOARGS          truncate64 { int sys_truncate(const char *path, \
+193    STD             { int linux_sys_truncate64(const char *path, \
                                off_t length); }
-194    NOARGS          ftruncate64 { int sys_ftruncate(const char *path, \
-                               off_t length); }
+194    NOARGS          ftruncate64 { int sys_ftruncate(int fd, off_t length); }
 195    STD             { int linux_sys_stat64(const char *path, \
                                struct linux_stat64 *sp); }
 196    STD             { int linux_sys_lstat64(const char *path, \
diff -r 73d51ccac419 -r cb223ebb25bf sys/compat/linux/arch/m68k/syscalls.master
--- a/sys/compat/linux/arch/m68k/syscalls.master        Tue Dec 12 21:14:51 2000 +0000
+++ b/sys/compat/linux/arch/m68k/syscalls.master        Tue Dec 12 22:23:02 2000 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.22 2000/12/12 19:02:00 jdolecek Exp $
+       $NetBSD: syscalls.master,v 1.23 2000/12/12 22:23:03 jdolecek Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -337,10 +337,9 @@
 190    NOARGS          { int sys___vfork14(void); }
 191    UNIMPL          getrlimit
 192    UNIMPL          mmap2
-193    NOARGS          truncate64 { int sys_truncate(const char *path, \
+193    STD             { int linux_sys_truncate64(const char *path, \
                                off_t length); }
-194    NOARGS          ftruncate64 { int sys_ftruncate(const char *path, \
-                               off_t length); }
+194    NOARGS          ftruncate64 { int sys_ftruncate(int fd, off_t length); }
 195    STD             { int linux_sys_stat64(const char *path, \
                                struct linux_stat64 *sp); }
 196    STD             { int linux_sys_lstat64(const char *path, \



Home | Main Index | Thread Index | Old Index