summaryrefslogtreecommitdiff
path: root/sys/compat
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
parent110cc1cc6195d1f81ae9d063e061403c6854917e (diff)
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/arch/arm/linux_syscall.h10
-rw-r--r--sys/compat/linux/arch/arm/linux_syscallargs.h20
-rw-r--r--sys/compat/linux/arch/arm/linux_syscalls.c10
-rw-r--r--sys/compat/linux/arch/arm/linux_sysent.c14
-rw-r--r--sys/compat/linux/arch/i386/linux_syscall.h10
-rw-r--r--sys/compat/linux/arch/i386/linux_syscallargs.h20
-rw-r--r--sys/compat/linux/arch/i386/linux_syscalls.c10
-rw-r--r--sys/compat/linux/arch/i386/linux_sysent.c14
-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
-rw-r--r--sys/compat/linux/arch/powerpc/linux_syscall.h10
-rw-r--r--sys/compat/linux/arch/powerpc/linux_syscallargs.h20
-rw-r--r--sys/compat/linux/arch/powerpc/linux_syscalls.c10
-rw-r--r--sys/compat/linux/arch/powerpc/linux_sysent.c14
16 files changed, 152 insertions, 64 deletions
diff --git a/sys/compat/linux/arch/arm/linux_syscall.h b/sys/compat/linux/arch/arm/linux_syscall.h
index 4f6a1c4a558..fae6ec122fa 100644
--- a/sys/compat/linux/arch/arm/linux_syscall.h
+++ b/sys/compat/linux/arch/arm/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.19 2004/09/08 19:46:17 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.18 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.19 2004/09/20 18:41:07 jdolecek Exp
*/
/* syscall: "nosys" ret: "int" args: */
@@ -562,6 +562,12 @@
/* syscall: "exit_group" ret: "int" args: "int" */
#define LINUX_SYS_exit_group 248
+/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_statfs64 266
+
+/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_fstatfs64 267
+
/* syscall: "breakpoint" ret: "int" args: */
#define LINUX_SYS_breakpoint 385
diff --git a/sys/compat/linux/arch/arm/linux_syscallargs.h b/sys/compat/linux/arch/arm/linux_syscallargs.h
index 2316d7b107a..78a7e431916 100644
--- a/sys/compat/linux/arch/arm/linux_syscallargs.h
+++ b/sys/compat/linux/arch/arm/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.19 2004/09/08 19:46:17 jdolecek Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.20 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.18 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.19 2004/09/20 18:41:07 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -566,6 +566,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;
+};
+
struct linux_sys_cacheflush_args {
syscallarg(uintptr_t) from;
syscallarg(intptr_t) to;
@@ -906,6 +918,10 @@ 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 *);
+
int linux_sys_breakpoint(struct lwp *, void *, register_t *);
int linux_sys_cacheflush(struct lwp *, void *, register_t *);
diff --git a/sys/compat/linux/arch/arm/linux_syscalls.c b/sys/compat/linux/arch/arm/linux_syscalls.c
index 915caffcad4..9b16e08caa9 100644
--- a/sys/compat/linux/arch/arm/linux_syscalls.c
+++ b/sys/compat/linux/arch/arm/linux_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.19 2004/09/08 19:46:17 jdolecek Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.20 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.18 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.19 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.19 2004/09/08 19:46:17 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.20 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -300,8 +300,8 @@ const char *const linux_syscallnames[] = {
"#263 (unimplemented clock_gettime)", /* 263 = unimplemented clock_gettime */
"#264 (unimplemented clock_getres)", /* 264 = unimplemented clock_getres */
"#265 (unimplemented clock_nanosleep)", /* 265 = unimplemented clock_nanosleep */
- "#266 (unimplemented statfs64)", /* 266 = unimplemented statfs64 */
- "#267 (unimplemented fstatfs64)", /* 267 = unimplemented fstatfs64 */
+ "statfs64", /* 266 = statfs64 */
+ "fstatfs64", /* 267 = fstatfs64 */
"#268 (unimplemented tgkill)", /* 268 = unimplemented tgkill */
"#269 (unimplemented utimes)", /* 269 = unimplemented utimes */
"#270 (unimplemented fadvise64_64)", /* 270 = unimplemented fadvise64_64 */
diff --git a/sys/compat/linux/arch/arm/linux_sysent.c b/sys/compat/linux/arch/arm/linux_sysent.c
index 4c6c4320896..bd82538302b 100644
--- a/sys/compat/linux/arch/arm/linux_sysent.c
+++ b/sys/compat/linux/arch/arm/linux_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.19 2004/09/08 19:46:17 jdolecek Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.20 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.18 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.19 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.19 2004/09/08 19:46:17 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.20 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@@ -567,10 +567,10 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 264 = unimplemented clock_getres */
{ 0, 0, 0,
linux_sys_nosys }, /* 265 = unimplemented clock_nanosleep */
- { 0, 0, 0,
- linux_sys_nosys }, /* 266 = unimplemented statfs64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 267 = unimplemented fstatfs64 */
+ { 3, s(struct linux_sys_statfs64_args), 0,
+ linux_sys_statfs64 }, /* 266 = statfs64 */
+ { 3, s(struct linux_sys_fstatfs64_args), 0,
+ linux_sys_fstatfs64 }, /* 267 = fstatfs64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 268 = unimplemented tgkill */
{ 0, 0, 0,
diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h
index 188c0b8733f..76c1deee66f 100644
--- a/sys/compat/linux/arch/i386/linux_syscall.h
+++ b/sys/compat/linux/arch/i386/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.53 2004/09/08 19:46:17 jdolecek Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.54 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.70 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.71 2004/09/20 18:41:07 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -572,5 +572,11 @@
/* syscall: "exit_group" ret: "int" args: "int" */
#define LINUX_SYS_exit_group 252
+/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_statfs64 268
+
+/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_fstatfs64 269
+
#define LINUX_SYS_MAXSYSCALL 284
#define LINUX_SYS_NSYSENT 512
diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h
index bc1d5c115c0..24048c1bad1 100644
--- a/sys/compat/linux/arch/i386/linux_syscallargs.h
+++ b/sys/compat/linux/arch/i386/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.53 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.54 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.70 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.71 2004/09/20 18:41:07 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -619,6 +619,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.
*/
@@ -973,4 +985,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/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c
index 8b4a759300f..c5cd6f62813 100644
--- a/sys/compat/linux/arch/i386/linux_syscalls.c
+++ b/sys/compat/linux/arch/i386/linux_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.54 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.55 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.70 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.71 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.54 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.55 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -298,8 +298,8 @@ const char *const linux_syscallnames[] = {
"#265 (unimplemented clock_gettime)", /* 265 = unimplemented clock_gettime */
"#266 (unimplemented clock_getres)", /* 266 = unimplemented clock_getres */
"#267 (unimplemented clock_nanosleep)", /* 267 = unimplemented clock_nanosleep */
- "#268 (unimplemented statfs64)", /* 268 = unimplemented statfs64 */
- "#269 (unimplemented fstatfs64)", /* 269 = unimplemented fstatfs64 */
+ "statfs64", /* 268 = statfs64 */
+ "fstatfs64", /* 269 = fstatfs64 */
"#270 (unimplemented tgkill)", /* 270 = unimplemented tgkill */
"#271 (unimplemented utimes)", /* 271 = unimplemented utimes */
"#272 (unimplemented fadvise64_64)", /* 272 = unimplemented fadvise64_64 */
diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c
index 29131475760..c2dca3877ef 100644
--- a/sys/compat/linux/arch/i386/linux_sysent.c
+++ b/sys/compat/linux/arch/i386/linux_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.53 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.54 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.70 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.71 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.53 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.54 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@@ -566,10 +566,10 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 266 = unimplemented clock_getres */
{ 0, 0, 0,
linux_sys_nosys }, /* 267 = unimplemented clock_nanosleep */
- { 0, 0, 0,
- linux_sys_nosys }, /* 268 = unimplemented statfs64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 269 = unimplemented fstatfs64 */
+ { 3, s(struct linux_sys_statfs64_args), 0,
+ linux_sys_statfs64 }, /* 268 = statfs64 */
+ { 3, s(struct linux_sys_fstatfs64_args), 0,
+ linux_sys_fstatfs64 }, /* 269 = fstatfs64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 270 = unimplemented tgkill */
{ 0, 0, 0,
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,
diff --git a/sys/compat/linux/arch/powerpc/linux_syscall.h b/sys/compat/linux/arch/powerpc/linux_syscall.h
index 6181916adcd..480465e6989 100644
--- a/sys/compat/linux/arch/powerpc/linux_syscall.h
+++ b/sys/compat/linux/arch/powerpc/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.25 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.26 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.19 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.20 2004/09/20 18:41:07 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -507,5 +507,11 @@
/* syscall: "exit_group" ret: "int" args: "int" */
#define LINUX_SYS_exit_group 234
+/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_statfs64 252
+
+/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
+#define LINUX_SYS_fstatfs64 253
+
#define LINUX_SYS_MAXSYSCALL 269
#define LINUX_SYS_NSYSENT 512
diff --git a/sys/compat/linux/arch/powerpc/linux_syscallargs.h b/sys/compat/linux/arch/powerpc/linux_syscallargs.h
index 315ba16a8eb..b8ff117918c 100644
--- a/sys/compat/linux/arch/powerpc/linux_syscallargs.h
+++ b/sys/compat/linux/arch/powerpc/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.24 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.25 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.19 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.20 2004/09/20 18:41:07 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -555,6 +555,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.
*/
@@ -885,4 +897,8 @@ int sys_madvise(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/powerpc/linux_syscalls.c b/sys/compat/linux/arch/powerpc/linux_syscalls.c
index 3030a13236a..49ed99565fc 100644
--- a/sys/compat/linux/arch/powerpc/linux_syscalls.c
+++ b/sys/compat/linux/arch/powerpc/linux_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.24 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.25 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.19 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.20 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.24 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.25 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -283,8 +283,8 @@ const char *const linux_syscallnames[] = {
"#249 (unimplemented swapcontext)", /* 249 = unimplemented swapcontext */
"#250 (unimplemented tgkill)", /* 250 = unimplemented tgkill */
"#251 (unimplemented utimes)", /* 251 = unimplemented utimes */
- "#252 (unimplemented statfs64)", /* 252 = unimplemented statfs64 */
- "#253 (unimplemented fstatfs64)", /* 253 = unimplemented fstatfs64 */
+ "statfs64", /* 252 = statfs64 */
+ "fstatfs64", /* 253 = fstatfs64 */
"#254 (unimplemented fadvise64_64)", /* 254 = unimplemented fadvise64_64 */
"#255 (unimplemented rtas)", /* 255 = unimplemented rtas */
"#256 (unimplemented / * reserved for sys_debug_setcontext * /)", /* 256 = unimplemented / * reserved for sys_debug_setcontext * / */
diff --git a/sys/compat/linux/arch/powerpc/linux_sysent.c b/sys/compat/linux/arch/powerpc/linux_sysent.c
index 57cbb4ddece..81fba6e12a0 100644
--- a/sys/compat/linux/arch/powerpc/linux_sysent.c
+++ b/sys/compat/linux/arch/powerpc/linux_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.25 2004/09/08 19:46:18 jdolecek Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.26 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.19 2004/09/08 19:45:22 jdolecek Exp
+ * created from NetBSD: syscalls.master,v 1.20 2004/09/20 18:41:07 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.25 2004/09/08 19:46:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.26 2004/09/20 18:42:23 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -535,10 +535,10 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 250 = unimplemented tgkill */
{ 0, 0, 0,
linux_sys_nosys }, /* 251 = unimplemented utimes */
- { 0, 0, 0,
- linux_sys_nosys }, /* 252 = unimplemented statfs64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 253 = unimplemented fstatfs64 */
+ { 3, s(struct linux_sys_statfs64_args), 0,
+ linux_sys_statfs64 }, /* 252 = statfs64 */
+ { 3, s(struct linux_sys_fstatfs64_args), 0,
+ linux_sys_fstatfs64 }, /* 253 = fstatfs64 */
{ 0, 0, 0,
linux_sys_nosys }, /* 254 = unimplemented fadvise64_64 */
{ 0, 0, 0,