summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/arm
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/arm
parent110cc1cc6195d1f81ae9d063e061403c6854917e (diff)
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
Diffstat (limited to 'sys/compat/linux/arch/arm')
-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
4 files changed, 38 insertions, 16 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,