Module Name:    src
Committed By:   njoly
Date:           Thu Jun  4 18:01:02 UTC 2009

Modified Files:
        src/sys/compat/linux32/arch/amd64: linux32_syscall.h
            linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c

Log Message:
Regen for stat/lstat/fstat syscalls.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 \
    src/sys/compat/linux32/arch/amd64/linux32_syscall.h \
    src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h \
    src/sys/compat/linux32/arch/amd64/linux32_syscalls.c \
    src/sys/compat/linux32/arch/amd64/linux32_sysent.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/arch/amd64/linux32_syscall.h
diff -u src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.54 src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.55
--- src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.54	Tue Jun  2 16:55:16 2009
+++ src/sys/compat/linux32/arch/amd64/linux32_syscall.h	Thu Jun  4 18:01:02 2009
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscall.h,v 1.54 2009/06/02 16:55:16 njoly Exp $ */
+/* $NetBSD: linux32_syscall.h,v 1.55 2009/06/04 18:01:02 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.51 2009/06/02 16:54:39 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.52 2009/06/04 17:59:30 njoly Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALL_H_
@@ -277,6 +277,15 @@
 /* syscall: "compat_50_netbsd32_getitimer" ret: "int" args: "int" "netbsd32_itimerval50p_t" */
 #define	LINUX32_SYS_compat_50_netbsd32_getitimer	105
 
+/* syscall: "stat" ret: "int" args: "netbsd32_charp" "linux32_statp" */
+#define	LINUX32_SYS_stat	106
+
+/* syscall: "lstat" ret: "int" args: "netbsd32_charp" "linux32_statp" */
+#define	LINUX32_SYS_lstat	107
+
+/* syscall: "fstat" ret: "int" args: "int" "linux32_statp" */
+#define	LINUX32_SYS_fstat	108
+
 /* syscall: "olduname" ret: "int" args: "linux32_oldutsnamep_t" */
 #define	LINUX32_SYS_olduname	109
 
Index: src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h
diff -u src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.54 src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.55
--- src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.54	Tue Jun  2 16:55:16 2009
+++ src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h	Thu Jun  4 18:01:02 2009
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscallargs.h,v 1.54 2009/06/02 16:55:16 njoly Exp $ */
+/* $NetBSD: linux32_syscallargs.h,v 1.55 2009/06/04 18:01:02 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.51 2009/06/02 16:54:39 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.52 2009/06/04 17:59:30 njoly Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
@@ -329,6 +329,24 @@
 
 struct compat_50_netbsd32_getitimer_args;
 
+struct linux32_sys_stat_args {
+	syscallarg(netbsd32_charp) path;
+	syscallarg(linux32_statp) sp;
+};
+check_syscall_args(linux32_sys_stat)
+
+struct linux32_sys_lstat_args {
+	syscallarg(netbsd32_charp) path;
+	syscallarg(linux32_statp) sp;
+};
+check_syscall_args(linux32_sys_lstat)
+
+struct linux32_sys_fstat_args {
+	syscallarg(int) fd;
+	syscallarg(linux32_statp) sp;
+};
+check_syscall_args(linux32_sys_fstat)
+
 struct linux32_sys_olduname_args {
 	syscallarg(linux32_oldutsnamep_t) up;
 };
@@ -890,6 +908,12 @@
 
 int	compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
 
+int	linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *);
+
+int	linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *);
+
+int	linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *);
+
 int	linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
 
 int	linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
Index: src/sys/compat/linux32/arch/amd64/linux32_syscalls.c
diff -u src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.54 src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.55
--- src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.54	Tue Jun  2 16:55:16 2009
+++ src/sys/compat/linux32/arch/amd64/linux32_syscalls.c	Thu Jun  4 18:01:02 2009
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_syscalls.c,v 1.54 2009/06/02 16:55:16 njoly Exp $ */
+/* $NetBSD: linux32_syscalls.c,v 1.55 2009/06/04 18:01:02 njoly Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.51 2009/06/02 16:54:39 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.52 2009/06/04 17:59:30 njoly Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.54 2009/06/02 16:55:16 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.55 2009/06/04 18:01:02 njoly Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
@@ -141,9 +141,9 @@
 	/* 103 */	"#103 (unimplemented syslog)",
 	/* 104 */	"compat_50_netbsd32_setitimer",
 	/* 105 */	"compat_50_netbsd32_getitimer",
-	/* 106 */	"#106 (unimplemented stat)",
-	/* 107 */	"#107 (unimplemented lstat)",
-	/* 108 */	"#108 (unimplemented fstat)",
+	/* 106 */	"stat",
+	/* 107 */	"lstat",
+	/* 108 */	"fstat",
 	/* 109 */	"olduname",
 	/* 110 */	"#110 (unimplemented iopl)",
 	/* 111 */	"#111 (unimplemented vhangup)",
Index: src/sys/compat/linux32/arch/amd64/linux32_sysent.c
diff -u src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.54 src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.55
--- src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.54	Tue Jun  2 16:55:16 2009
+++ src/sys/compat/linux32/arch/amd64/linux32_sysent.c	Thu Jun  4 18:01:02 2009
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_sysent.c,v 1.54 2009/06/02 16:55:16 njoly Exp $ */
+/* $NetBSD: linux32_sysent.c,v 1.55 2009/06/04 18:01:02 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.51 2009/06/02 16:54:39 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.52 2009/06/04 17:59:30 njoly Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.54 2009/06/02 16:55:16 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.55 2009/06/04 18:01:02 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -249,12 +249,12 @@
 	    (sy_call_t *)compat_50_netbsd32_setitimer },/* 104 = compat_50_netbsd32_setitimer */
 	{ ns(struct compat_50_netbsd32_getitimer_args), 0,
 	    (sy_call_t *)compat_50_netbsd32_getitimer },/* 105 = compat_50_netbsd32_getitimer */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 106 = unimplemented stat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 107 = unimplemented lstat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 108 = unimplemented fstat */
+	{ ns(struct linux32_sys_stat_args), 0,
+	    (sy_call_t *)linux32_sys_stat },	/* 106 = stat */
+	{ ns(struct linux32_sys_lstat_args), 0,
+	    (sy_call_t *)linux32_sys_lstat },	/* 107 = lstat */
+	{ ns(struct linux32_sys_fstat_args), 0,
+	    (sy_call_t *)linux32_sys_fstat },	/* 108 = fstat */
 	{ ns(struct linux32_sys_olduname_args), 0,
 	    (sy_call_t *)linux32_sys_olduname },/* 109 = olduname */
 	{ 0, 0, 0,

Reply via email to