summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/mips
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2004-09-20 18:42:23 +0000
committerjdolecek <jdolecek@NetBSD.org>2004-09-20 18:42:23 +0000
commit43b3feff284536ec48dba06aefc8d9f05ab25460 (patch)
treea8dff0c42be607291a97df081846f06ad56aa4f2 /sys/compat/linux/arch/mips
parent110cc1cc6195d1f81ae9d063e061403c6854917e (diff)
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
Diffstat (limited to 'sys/compat/linux/arch/mips')
-rw-r--r--sys/compat/linux/arch/mips/linux_syscall.h10
-rw-r--r--sys/compat/linux/arch/mips/linux_syscallargs.h20
-rw-r--r--sys/compat/linux/arch/mips/linux_syscalls.c10
-rw-r--r--sys/compat/linux/arch/mips/linux_sysent.c14
4 files changed, 38 insertions, 16 deletions
diff --git a/sys/compat/linux/arch/mips/linux_syscall.h b/sys/compat/linux/arch/mips/linux_syscall.h
index 394883b75b7..8bca730d497 100644
--- a/sys/compat/linux/arch/mips/linux_syscall.h
+++ b/sys/compat/linux/arch/mips/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.19 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.20 2004/09/20 18:42:23 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.15 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.16 2004/09/20 18:41:07 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -539,5 +539,11 @@
/* syscall: "exit_group" ret: "int" args: "int" */
#define LINUX_SYS_exit_group 246
+/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_statfs64 255
+
+/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_fstatfs64 256
+
#define LINUX_SYS_MAXSYSCALL 277
#define LINUX_SYS_NSYSENT 512
diff --git a/sys/compat/linux/arch/mips/linux_syscallargs.h b/sys/compat/linux/arch/mips/linux_syscallargs.h
index 858ba576ee3..a406090a822 100644
--- a/sys/compat/linux/arch/mips/linux_syscallargs.h
+++ b/sys/compat/linux/arch/mips/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.18 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.19 2004/09/20 18:42:23 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.15 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.16 2004/09/20 18:41:07 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -551,6 +551,18 @@ struct linux_sys_exit_group_args {
syscallarg(int) error_code;
};
+struct linux_sys_statfs64_args {
+ syscallarg(const char *) path;
+ syscallarg(size_t) sz;
+ syscallarg(struct linux_statfs64 *) sp;
+};
+
+struct linux_sys_fstatfs64_args {
+ syscallarg(int) fd;
+ syscallarg(size_t) sz;
+ syscallarg(struct linux_statfs64 *) sp;
+};
+
/*
* System call prototypes.
*/
@@ -907,4 +919,8 @@ int linux_sys_fcntl64(struct lwp *, void *, register_t *);
int linux_sys_exit_group(struct lwp *, void *, register_t *);
+int linux_sys_statfs64(struct lwp *, void *, register_t *);
+
+int linux_sys_fstatfs64(struct lwp *, void *, register_t *);
+
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */
diff --git a/sys/compat/linux/arch/mips/linux_syscalls.c b/sys/compat/linux/arch/mips/linux_syscalls.c
index f93a785239f..aa07d2b1845 100644
--- a/sys/compat/linux/arch/mips/linux_syscalls.c
+++ b/sys/compat/linux/arch/mips/linux_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.18 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.19 2004/09/20 18:42:23 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.15 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.16 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.18 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.19 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -287,8 +287,8 @@ const char *const linux_syscallnames[] = {
"#252 (unimplemented set_tid_address)", /* 252 = unimplemented set_tid_address */
"#253 (unimplemented restart_syscall)", /* 253 = unimplemented restart_syscall */
"#254 (unimplemented fadvise64)", /* 254 = unimplemented fadvise64 */
- "#255 (unimplemented statfs64)", /* 255 = unimplemented statfs64 */
- "#256 (unimplemented fstatfs64)", /* 256 = unimplemented fstatfs64 */
+ "statfs64", /* 255 = statfs64 */
+ "fstatfs64", /* 256 = fstatfs64 */
"#257 (unimplemented timer_create)", /* 257 = unimplemented timer_create */
"#258 (unimplemented timer_settime)", /* 258 = unimplemented timer_settime */
"#259 (unimplemented timer_gettime)", /* 259 = unimplemented timer_gettime */
diff --git a/sys/compat/linux/arch/mips/linux_sysent.c b/sys/compat/linux/arch/mips/linux_sysent.c
index f503f2cd4ca..1caa6e8b97d 100644
--- a/sys/compat/linux/arch/mips/linux_sysent.c
+++ b/sys/compat/linux/arch/mips/linux_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.18 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.19 2004/09/20 18:42:23 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.15 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.16 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.18 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.19 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -542,10 +542,10 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 253 = unimplemented restart_syscall */
{ 0, 0, 0,
linux_sys_nosys }, /* 254 = unimplemented fadvise64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 255 = unimplemented statfs64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 256 = unimplemented fstatfs64 */
+ { 3, s(struct linux_sys_statfs64_args), 0,
+ linux_sys_statfs64 }, /* 255 = statfs64 */
+ { 3, s(struct linux_sys_fstatfs64_args), 0,
+ linux_sys_fstatfs64 }, /* 256 = fstatfs64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 257 = unimplemented timer_create */
{ 0, 0, 0,