summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2010-11-02 18:15:39 +0000
committerchs <chs@NetBSD.org>2010-11-02 18:15:39 +0000
commit45bce0e50a8910052ca2f67e76ced8d6435d5f2a (patch)
tree069d2b8fa3a88b73090e879c7e3d369a2c16f562 /sys
parentfc7a1961028235070bdb3d46b87802c740545cd1 (diff)
regen
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux32/arch/amd64/linux32_syscall.h31
-rw-r--r--sys/compat/linux32/arch/amd64/linux32_syscallargs.h69
-rw-r--r--sys/compat/linux32/arch/amd64/linux32_syscalls.c24
-rw-r--r--sys/compat/linux32/arch/amd64/linux32_sysent.c42
4 files changed, 129 insertions, 37 deletions
diff --git a/sys/compat/linux32/arch/amd64/linux32_syscall.h b/sys/compat/linux32/arch/amd64/linux32_syscall.h
index d2135b72749..6fea9d5ea06 100644
--- a/sys/compat/linux32/arch/amd64/linux32_syscall.h
+++ b/sys/compat/linux32/arch/amd64/linux32_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscall.h,v 1.59 2010/07/07 01:31:54 chs Exp $ */
+/* $NetBSD: linux32_syscall.h,v 1.60 2010/11/02 18:15:39 chs Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.56 2010/07/07 01:30:35 chs Exp
+ * created from NetBSD: syscalls.master,v 1.57 2010/11/02 18:14:06 chs Exp
*/
#ifndef _LINUX32_SYS_SYSCALL_H_
@@ -265,12 +265,18 @@
/* syscall: "netbsd32_setpriority" ret: "int" args: "int" "int" "int" */
#define LINUX32_SYS_netbsd32_setpriority 97
+/* syscall: "netbsd32_profil" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "netbsd32_u_long" "u_int" */
+#define LINUX32_SYS_netbsd32_profil 98
+
/* 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: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
+#define LINUX32_SYS_ioperm 101
+
/* syscall: "socketcall" ret: "int" args: "int" "netbsd32_voidp" */
#define LINUX32_SYS_socketcall 102
@@ -292,6 +298,9 @@
/* syscall: "olduname" ret: "int" args: "linux32_oldutsnamep_t" */
#define LINUX32_SYS_olduname 109
+/* syscall: "iopl" ret: "int" args: "int" */
+#define LINUX32_SYS_iopl 110
+
/* syscall: "wait4" ret: "int" args: "int" "netbsd32_intp" "int" "netbsd32_rusage50p_t" */
#define LINUX32_SYS_wait4 114
@@ -313,9 +322,15 @@
/* syscall: "clone" ret: "int" args: "int" "netbsd32_voidp" "netbsd32_voidp" "netbsd32_voidp" "netbsd32_voidp" */
#define LINUX32_SYS_clone 120
+/* syscall: "setdomainname" ret: "int" args: "netbsd32_charp" "int" */
+#define LINUX32_SYS_setdomainname 121
+
/* syscall: "uname" ret: "int" args: "linux32_utsnamep" */
#define LINUX32_SYS_uname 122
+/* syscall: "modify_ldt" ret: "int" args: "int" "netbsd32_charp" "netbsd32_size_t" */
+#define LINUX32_SYS_modify_ldt 123
+
/* syscall: "mprotect" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */
#define LINUX32_SYS_mprotect 125
@@ -457,6 +472,12 @@
/* syscall: "mmap2" ret: "linux32_off_t" args: "netbsd32_u_long" "netbsd32_size_t" "int" "int" "int" "linux32_off_t" */
#define LINUX32_SYS_mmap2 192
+/* syscall: "truncate64" ret: "int" args: "netbsd32_charp" "uint32_t" "uint32_t" */
+#define LINUX32_SYS_truncate64 193
+
+/* syscall: "ftruncate64" ret: "int" args: "unsigned int" "uint32_t" "uint32_t" */
+#define LINUX32_SYS_ftruncate64 194
+
/* syscall: "stat64" ret: "int" args: "netbsd32_charp" "linux32_stat64p" */
#define LINUX32_SYS_stat64 195
@@ -576,6 +597,12 @@
/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "linux32_timespecp_t" "linux32_timespecp_t" */
#define LINUX32_SYS_clock_nanosleep 267
+/* syscall: "statfs64" ret: "int" args: "netbsd32_charp" "netbsd32_size_t" "linux32_statfs64p" */
+#define LINUX32_SYS_statfs64 268
+
+/* syscall: "fstatfs64" ret: "int" args: "int" "netbsd32_size_t" "linux32_statfs64p" */
+#define LINUX32_SYS_fstatfs64 269
+
/* syscall: "tgkill" ret: "int" args: "int" "int" "int" */
#define LINUX32_SYS_tgkill 270
diff --git a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h
index dbe4e726e23..51faeadce12 100644
--- a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h
+++ b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscallargs.h,v 1.59 2010/07/07 01:31:54 chs Exp $ */
+/* $NetBSD: linux32_syscallargs.h,v 1.60 2010/11/02 18:15:39 chs Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.56 2010/07/07 01:30:35 chs Exp
+ * created from NetBSD: syscalls.master,v 1.57 2010/11/02 18:14:06 chs Exp
*/
#ifndef _LINUX32_SYS_SYSCALLARGS_H_
@@ -316,6 +316,8 @@ check_syscall_args(linux32_sys_getpriority)
struct netbsd32_setpriority_args;
+struct netbsd32_profil_args;
+
struct linux32_sys_statfs_args {
syscallarg(netbsd32_charp) path;
syscallarg(linux32_statfsp) sp;
@@ -328,6 +330,8 @@ struct linux32_sys_fstatfs_args {
};
check_syscall_args(linux32_sys_fstatfs)
+struct linux_sys_ioperm_args;
+
struct linux32_sys_socketcall_args {
syscallarg(int) what;
syscallarg(netbsd32_voidp) args;
@@ -361,6 +365,8 @@ struct linux32_sys_olduname_args {
};
check_syscall_args(linux32_sys_olduname)
+struct linux_sys_iopl_args;
+
struct linux32_sys_wait4_args {
syscallarg(int) pid;
syscallarg(netbsd32_intp) status;
@@ -404,11 +410,24 @@ struct linux32_sys_clone_args {
};
check_syscall_args(linux32_sys_clone)
+struct linux32_sys_setdomainname_args {
+ syscallarg(netbsd32_charp) domainname;
+ syscallarg(int) len;
+};
+check_syscall_args(linux32_sys_setdomainname)
+
struct linux32_sys_uname_args {
syscallarg(linux32_utsnamep) up;
};
check_syscall_args(linux32_sys_uname)
+struct linux32_sys_modify_ldt_args {
+ syscallarg(int) func;
+ syscallarg(netbsd32_charp) ptr;
+ syscallarg(netbsd32_size_t) bytecount;
+};
+check_syscall_args(linux32_sys_modify_ldt)
+
struct linux32_sys_mprotect_args {
syscallarg(netbsd32_voidp) start;
syscallarg(netbsd32_size_t) len;
@@ -639,6 +658,20 @@ struct linux32_sys_mmap2_args {
};
check_syscall_args(linux32_sys_mmap2)
+struct linux32_sys_truncate64_args {
+ syscallarg(netbsd32_charp) path;
+ syscallarg(uint32_t) lenlo;
+ syscallarg(uint32_t) lenhi;
+};
+check_syscall_args(linux32_sys_truncate64)
+
+struct linux32_sys_ftruncate64_args {
+ syscallarg(unsigned int) fd;
+ syscallarg(uint32_t) lenlo;
+ syscallarg(uint32_t) lenhi;
+};
+check_syscall_args(linux32_sys_ftruncate64)
+
struct linux32_sys_stat64_args {
syscallarg(netbsd32_charp) path;
syscallarg(linux32_stat64p) sp;
@@ -804,6 +837,20 @@ struct linux32_sys_clock_nanosleep_args {
};
check_syscall_args(linux32_sys_clock_nanosleep)
+struct linux32_sys_statfs64_args {
+ syscallarg(netbsd32_charp) path;
+ syscallarg(netbsd32_size_t) sz;
+ syscallarg(linux32_statfs64p) sp;
+};
+check_syscall_args(linux32_sys_statfs64)
+
+struct linux32_sys_fstatfs64_args {
+ syscallarg(int) fd;
+ syscallarg(netbsd32_size_t) sz;
+ syscallarg(linux32_statfs64p) sp;
+};
+check_syscall_args(linux32_sys_fstatfs64)
+
struct linux32_sys_tgkill_args {
syscallarg(int) tgid;
syscallarg(int) tid;
@@ -990,10 +1037,14 @@ int linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_a
int netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
+int netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *);
+
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 linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *);
+
int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
int compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
@@ -1008,6 +1059,8 @@ int linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, regis
int linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
+int linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *);
+
int linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
int linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
@@ -1022,8 +1075,12 @@ int linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args
int linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
+int linux32_sys_setdomainname(struct lwp *, const struct linux32_sys_setdomainname_args *, register_t *);
+
int linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
+int linux32_sys_modify_ldt(struct lwp *, const struct linux32_sys_modify_ldt_args *, register_t *);
+
int linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
@@ -1118,6 +1175,10 @@ int linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_arg
int linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
+int linux32_sys_truncate64(struct lwp *, const struct linux32_sys_truncate64_args *, register_t *);
+
+int linux32_sys_ftruncate64(struct lwp *, const struct linux32_sys_ftruncate64_args *, register_t *);
+
int linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
int linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
@@ -1182,6 +1243,10 @@ int linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres
int linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *);
+int linux32_sys_statfs64(struct lwp *, const struct linux32_sys_statfs64_args *, register_t *);
+
+int linux32_sys_fstatfs64(struct lwp *, const struct linux32_sys_fstatfs64_args *, register_t *);
+
int linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *);
int linux32_sys_set_robust_list(struct lwp *, const struct linux32_sys_set_robust_list_args *, register_t *);
diff --git a/sys/compat/linux32/arch/amd64/linux32_syscalls.c b/sys/compat/linux32/arch/amd64/linux32_syscalls.c
index 307e2389d4c..56e9d9f8021 100644
--- a/sys/compat/linux32/arch/amd64/linux32_syscalls.c
+++ b/sys/compat/linux32/arch/amd64/linux32_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_syscalls.c,v 1.59 2010/07/07 01:31:55 chs Exp $ */
+/* $NetBSD: linux32_syscalls.c,v 1.60 2010/11/02 18:15:39 chs Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.56 2010/07/07 01:30:35 chs Exp
+ * created from NetBSD: syscalls.master,v 1.57 2010/11/02 18:14:06 chs Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.59 2010/07/07 01:31:55 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.60 2010/11/02 18:15:39 chs Exp $");
#if defined(_KERNEL_OPT)
#include <sys/param.h>
@@ -133,10 +133,10 @@ const char *const linux32_syscallnames[] = {
/* 95 */ "fchown16",
/* 96 */ "getpriority",
/* 97 */ "netbsd32_setpriority",
- /* 98 */ "#98 (unimplemented profil)",
+ /* 98 */ "netbsd32_profil",
/* 99 */ "statfs",
/* 100 */ "fstatfs",
- /* 101 */ "#101 (unimplemented ioperm)",
+ /* 101 */ "ioperm",
/* 102 */ "socketcall",
/* 103 */ "#103 (unimplemented syslog)",
/* 104 */ "compat_50_netbsd32_setitimer",
@@ -145,7 +145,7 @@ const char *const linux32_syscallnames[] = {
/* 107 */ "lstat",
/* 108 */ "fstat",
/* 109 */ "olduname",
- /* 110 */ "#110 (unimplemented iopl)",
+ /* 110 */ "iopl",
/* 111 */ "#111 (unimplemented vhangup)",
/* 112 */ "#112 (unimplemented idle)",
/* 113 */ "#113 (unimplemented vm86old)",
@@ -156,9 +156,9 @@ const char *const linux32_syscallnames[] = {
/* 118 */ "netbsd32_fsync",
/* 119 */ "sigreturn",
/* 120 */ "clone",
- /* 121 */ "#121 (unimplemented setdomainname)",
+ /* 121 */ "setdomainname",
/* 122 */ "uname",
- /* 123 */ "#123 (unimplemented modify_ldt)",
+ /* 123 */ "modify_ldt",
/* 124 */ "#124 (unimplemented adjtimex)",
/* 125 */ "mprotect",
/* 126 */ "#126 (unimplemented sigprocmask)",
@@ -228,8 +228,8 @@ const char *const linux32_syscallnames[] = {
/* 190 */ "__vfork14",
/* 191 */ "ugetrlimit",
/* 192 */ "mmap2",
- /* 193 */ "#193 (unimplemented truncate64)",
- /* 194 */ "#194 (unimplemented ftruncate64)",
+ /* 193 */ "truncate64",
+ /* 194 */ "ftruncate64",
/* 195 */ "stat64",
/* 196 */ "lstat64",
/* 197 */ "fstat64",
@@ -305,8 +305,8 @@ const char *const linux32_syscallnames[] = {
/* 265 */ "clock_gettime",
/* 266 */ "clock_getres",
/* 267 */ "clock_nanosleep",
- /* 268 */ "#268 (unimplemented statfs64)",
- /* 269 */ "#269 (unimplemented fstatfs64)",
+ /* 268 */ "statfs64",
+ /* 269 */ "fstatfs64",
/* 270 */ "tgkill",
/* 271 */ "#271 (unimplemented utimes)",
/* 272 */ "#272 (unimplemented fadvise64_64)",
diff --git a/sys/compat/linux32/arch/amd64/linux32_sysent.c b/sys/compat/linux32/arch/amd64/linux32_sysent.c
index 419e0fe04ba..ed9782f853e 100644
--- a/sys/compat/linux32/arch/amd64/linux32_sysent.c
+++ b/sys/compat/linux32/arch/amd64/linux32_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_sysent.c,v 1.59 2010/07/07 01:31:55 chs Exp $ */
+/* $NetBSD: linux32_sysent.c,v 1.60 2010/11/02 18:15:39 chs Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.56 2010/07/07 01:30:35 chs Exp
+ * created from NetBSD: syscalls.master,v 1.57 2010/11/02 18:14:06 chs Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.59 2010/07/07 01:31:55 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.60 2010/11/02 18:15:39 chs Exp $");
#include <sys/param.h>
#include <sys/poll.h>
@@ -233,14 +233,14 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)linux32_sys_getpriority },/* 96 = getpriority */
{ ns(struct netbsd32_setpriority_args), 0,
(sy_call_t *)netbsd32_setpriority },/* 97 = netbsd32_setpriority */
- { 0, 0, 0,
- linux_sys_nosys }, /* 98 = unimplemented profil */
+ { ns(struct netbsd32_profil_args), 0,
+ (sy_call_t *)netbsd32_profil }, /* 98 = netbsd32_profil */
{ ns(struct linux32_sys_statfs_args), 0,
(sy_call_t *)linux32_sys_statfs }, /* 99 = statfs */
{ 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 linux_sys_ioperm_args), 0,
+ (sy_call_t *)linux_sys_ioperm }, /* 101 = ioperm */
{ ns(struct linux32_sys_socketcall_args), 0,
(sy_call_t *)linux32_sys_socketcall },/* 102 = socketcall */
{ 0, 0, 0,
@@ -257,8 +257,8 @@ struct sysent linux32_sysent[] = {
(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,
- linux_sys_nosys }, /* 110 = unimplemented iopl */
+ { ns(struct linux_sys_iopl_args), 0,
+ (sy_call_t *)linux_sys_iopl }, /* 110 = iopl */
{ 0, 0, 0,
linux_sys_nosys }, /* 111 = unimplemented vhangup */
{ 0, 0, 0,
@@ -279,12 +279,12 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)linux32_sys_sigreturn },/* 119 = sigreturn */
{ ns(struct linux32_sys_clone_args), 0,
(sy_call_t *)linux32_sys_clone }, /* 120 = clone */
- { 0, 0, 0,
- linux_sys_nosys }, /* 121 = unimplemented setdomainname */
+ { ns(struct linux32_sys_setdomainname_args), 0,
+ (sy_call_t *)linux32_sys_setdomainname },/* 121 = setdomainname */
{ ns(struct linux32_sys_uname_args), 0,
(sy_call_t *)linux32_sys_uname }, /* 122 = uname */
- { 0, 0, 0,
- linux_sys_nosys }, /* 123 = unimplemented modify_ldt */
+ { ns(struct linux32_sys_modify_ldt_args), 0,
+ (sy_call_t *)linux32_sys_modify_ldt },/* 123 = modify_ldt */
{ 0, 0, 0,
linux_sys_nosys }, /* 124 = unimplemented adjtimex */
{ ns(struct linux32_sys_mprotect_args), 0,
@@ -423,10 +423,10 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)linux32_sys_ugetrlimit },/* 191 = ugetrlimit */
{ ns(struct linux32_sys_mmap2_args), 0,
(sy_call_t *)linux32_sys_mmap2 }, /* 192 = mmap2 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 193 = unimplemented truncate64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 194 = unimplemented ftruncate64 */
+ { ns(struct linux32_sys_truncate64_args), 0,
+ (sy_call_t *)linux32_sys_truncate64 },/* 193 = truncate64 */
+ { ns(struct linux32_sys_ftruncate64_args), 0,
+ (sy_call_t *)linux32_sys_ftruncate64 },/* 194 = ftruncate64 */
{ ns(struct linux32_sys_stat64_args), 0,
(sy_call_t *)linux32_sys_stat64 }, /* 195 = stat64 */
{ ns(struct linux32_sys_lstat64_args), 0,
@@ -575,10 +575,10 @@ struct sysent linux32_sysent[] = {
(sy_call_t *)linux32_sys_clock_getres },/* 266 = clock_getres */
{ ns(struct linux32_sys_clock_nanosleep_args), 0,
(sy_call_t *)linux32_sys_clock_nanosleep },/* 267 = clock_nanosleep */
- { 0, 0, 0,
- linux_sys_nosys }, /* 268 = unimplemented statfs64 */
- { 0, 0, 0,
- linux_sys_nosys }, /* 269 = unimplemented fstatfs64 */
+ { ns(struct linux32_sys_statfs64_args), 0,
+ (sy_call_t *)linux32_sys_statfs64 },/* 268 = statfs64 */
+ { ns(struct linux32_sys_fstatfs64_args), 0,
+ (sy_call_t *)linux32_sys_fstatfs64 },/* 269 = fstatfs64 */
{ ns(struct linux32_sys_tgkill_args), 0,
(sy_call_t *)linux32_sys_tgkill }, /* 270 = tgkill */
{ 0, 0, 0,