Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux hook in remaining 64bit fs syscalls
details: https://anonhg.NetBSD.org/src/rev/eb33d3a8f10c
branches: trunk
changeset: 526831:eb33d3a8f10c
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun May 12 15:04:27 2002 +0000
description:
hook in remaining 64bit fs syscalls
make most of stuff in linux_file64.c available unconditionally,
with exception of fcntl64, which is not present on Linux m68k
diffstat:
sys/compat/linux/arch/arm/syscalls.master | 4 ++--
sys/compat/linux/arch/powerpc/syscalls.master | 13 ++++++++-----
sys/compat/linux/common/linux_file64.c | 9 +++++----
3 files changed, 15 insertions(+), 11 deletions(-)
diffs (99 lines):
diff -r ff4a1799c662 -r eb33d3a8f10c sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Sun May 12 13:57:08 2002 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Sun May 12 15:04:27 2002 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.10 2002/04/10 18:18:27 christos Exp $
+ $NetBSD: syscalls.master,v 1.11 2002/05/12 15:04:27 jdolecek Exp $
; Derived from sys/compat/linux/arch/*/syscalls.master
; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -371,7 +371,7 @@
218 UNIMPL pivot_root
219 UNIMPL mincore
220 UNIMPL madvise
-221 UNIMPL fcntl64
+221 STD { int linux_sys_fcntl64(int fd, int cmd, void *arg); }
; Fill until 256
222 UNIMPL
223 UNIMPL
diff -r ff4a1799c662 -r eb33d3a8f10c sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master Sun May 12 13:57:08 2002 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master Sun May 12 15:04:27 2002 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.11 2002/04/10 18:18:28 christos Exp $
+ $NetBSD: syscalls.master,v 1.12 2002/05/12 15:04:27 jdolecek Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -355,9 +355,12 @@
192 UNIMPL mmap2
193 UNIMPL truncate64
194 UNIMPL ftruncate64
-195 UNIMPL stat64
-196 UNIMPL lstat64
-197 UNIMPL fstat64
+195 STD { int linux_sys_stat64(const char *path, \
+ struct linux_stat64 *sp); }
+196 STD { int linux_sys_lstat64(const char *path, \
+ struct linux_stat64 *sp); }
+197 STD { int linux_sys_fstat64(int fd, \
+ struct linux_stat64 *sp); }
198 UNIMPL sys_pciconfig_read
199 UNIMPL sys_pciconfig_write
200 UNIMPL sys_pciconfig_iobase
@@ -365,6 +368,6 @@
202 STD { int linux_sys_getdents64(int fd, \
struct linux_dirent64 *dent, unsigned int count); }
203 UNIMPL pivot_root
-204 UNIMPL fcntl64
+204 STD { int linux_sys_fcntl64(int fd, int cmd, void *arg); }
205 UNIMPL madvise
206 UNIMPL mincore
diff -r ff4a1799c662 -r eb33d3a8f10c sys/compat/linux/common/linux_file64.c
--- a/sys/compat/linux/common/linux_file64.c Sun May 12 13:57:08 2002 +0000
+++ b/sys/compat/linux/common/linux_file64.c Sun May 12 15:04:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_file64.c,v 1.12 2002/05/10 14:51:26 tron Exp $ */
+/* $NetBSD: linux_file64.c,v 1.13 2002/05/12 15:04:27 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.12 2002/05/10 14:51:26 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.13 2002/05/12 15:04:27 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -227,7 +227,7 @@
return sys_truncate(p, uap, retval);
}
-#if defined(__mips__) || defined(__i386__) /* powerpc could use it too */
+#if !defined(__m68k__)
static void bsd_to_linux_flock64 __P((struct linux_flock64 *,
const struct flock *));
static void linux_to_bsd_flock64 __P((struct flock *,
@@ -278,6 +278,7 @@
break;
}
}
+
int
linux_sys_fcntl64(p, v, retval)
struct proc *p;
@@ -336,6 +337,7 @@
return error;
}
+#endif /* !m68k */
/*
* Linux 'readdir' call. This code is mostly taken from the
@@ -501,4 +503,3 @@
FILE_UNUSE(fp, p);
return error;
}
-#endif /* __mips__ || __i386__ */
Home |
Main Index |
Thread Index |
Old Index