Module Name: src
Committed By: snj
Date: Wed Mar 18 17:21:22 UTC 2015
Modified Files:
src/sys/compat/linux32/arch/amd64 [netbsd-5]: linux32_syscall.h
linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c
Log Message:
regen for ticket 1149
To generate a diff of this commit:
cvs rdiff -u -r1.41.4.1 -r1.41.4.2 \
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.41.4.1 src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.41.4.2
--- src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.41.4.1 Thu Nov 20 16:51:42 2008
+++ src/sys/compat/linux32/arch/amd64/linux32_syscall.h Wed Mar 18 17:21:22 2015
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscall.h,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $ */
+/* $NetBSD: linux32_syscall.h,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38.4.1 2008/11/20 03:03:05 snj Exp
+ * created from NetBSD: syscalls.master,v 1.38.4.2 2015/03/18 17:20:09 snj Exp
*/
#ifndef _LINUX32_SYS_SYSCALL_H_
@@ -262,6 +262,9 @@
/* syscall: "statfs" ret: "int" args: "netbsd32_charp" "linux32_statfsp" */
#define LINUX32_SYS_statfs 99
+/* syscall: "fstatfs" ret: "int" args: "int" "linux32_statfsp" */
+#define LINUX32_SYS_fstatfs 100
+
/* syscall: "socketcall" ret: "int" args: "int" "netbsd32_voidp" */
#define LINUX32_SYS_socketcall 102
@@ -271,6 +274,15 @@
/* syscall: "netbsd32_getitimer" ret: "int" args: "int" "netbsd32_itimervalp_t" */
#define LINUX32_SYS_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.41.4.1 src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.41.4.2
--- src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.41.4.1 Thu Nov 20 16:51:42 2008
+++ src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h Wed Mar 18 17:21:22 2015
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscallargs.h,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $ */
+/* $NetBSD: linux32_syscallargs.h,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38.4.1 2008/11/20 03:03:05 snj Exp
+ * created from NetBSD: syscalls.master,v 1.38.4.2 2015/03/18 17:20:09 snj Exp
*/
#ifndef _LINUX32_SYS_SYSCALLARGS_H_
@@ -314,6 +314,12 @@ struct linux32_sys_statfs_args {
};
check_syscall_args(linux32_sys_statfs)
+struct linux32_sys_fstatfs_args {
+ syscallarg(int) fd;
+ syscallarg(linux32_statfsp) sp;
+};
+check_syscall_args(linux32_sys_fstatfs)
+
struct linux32_sys_socketcall_args {
syscallarg(int) what;
syscallarg(netbsd32_voidp) args;
@@ -324,6 +330,24 @@ struct netbsd32_setitimer_args;
struct 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;
};
@@ -836,12 +860,20 @@ int netbsd32_setpriority(struct lwp *, c
int linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
+int linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *);
+
int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
int netbsd32_setitimer(struct lwp *, const struct netbsd32_setitimer_args *, register_t *);
int netbsd32_getitimer(struct lwp *, const struct 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.41.4.1 src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.41.4.2
--- src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.41.4.1 Thu Nov 20 16:51:42 2008
+++ src/sys/compat/linux32/arch/amd64/linux32_syscalls.c Wed Mar 18 17:21:22 2015
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_syscalls.c,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $ */
+/* $NetBSD: linux32_syscalls.c,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38.4.1 2008/11/20 03:03:05 snj Exp
+ * created from NetBSD: syscalls.master,v 1.38.4.2 2015/03/18 17:20:09 snj Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -136,15 +136,15 @@ const char *const linux32_syscallnames[]
/* 97 */ "netbsd32_setpriority",
/* 98 */ "#98 (unimplemented profil)",
/* 99 */ "statfs",
- /* 100 */ "#100 (unimplemented fstatfs)",
+ /* 100 */ "fstatfs",
/* 101 */ "#101 (unimplemented ioperm)",
/* 102 */ "socketcall",
/* 103 */ "#103 (unimplemented syslog)",
/* 104 */ "netbsd32_setitimer",
/* 105 */ "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.41.4.1 src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.41.4.2
--- src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.41.4.1 Thu Nov 20 16:51:42 2008
+++ src/sys/compat/linux32/arch/amd64/linux32_sysent.c Wed Mar 18 17:21:22 2015
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_sysent.c,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $ */
+/* $NetBSD: linux32_sysent.c,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.38.4.1 2008/11/20 03:03:05 snj Exp
+ * created from NetBSD: syscalls.master,v 1.38.4.2 2015/03/18 17:20:09 snj Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.41.4.1 2008/11/20 16:51:42 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.41.4.2 2015/03/18 17:21:22 snj Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@@ -238,8 +238,8 @@ struct sysent linux32_sysent[] = {
linux_sys_nosys }, /* 98 = unimplemented profil */
{ ns(struct linux32_sys_statfs_args), 0,
(sy_call_t *)linux32_sys_statfs }, /* 99 = statfs */
- { 0, 0, 0,
- linux_sys_nosys }, /* 100 = unimplemented fstatfs */
+ { ns(struct linux32_sys_fstatfs_args), 0,
+ (sy_call_t *)linux32_sys_fstatfs }, /* 100 = fstatfs */
{ 0, 0, 0,
linux_sys_nosys }, /* 101 = unimplemented ioperm */
{ ns(struct linux32_sys_socketcall_args), 0,
@@ -250,12 +250,12 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)netbsd32_setitimer }, /* 104 = netbsd32_setitimer */
{ ns(struct netbsd32_getitimer_args), 0,
(sy_call_t *)netbsd32_getitimer }, /* 105 = 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,