This commit is contained in:
manu 2005-11-04 16:57:03 +00:00
parent e7609e6478
commit 78ad642708
4 changed files with 34 additions and 15 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.6 2005/10/18 19:08:51 joerg Exp $ */
/* $NetBSD: linux_syscall.h,v 1.7 2005/11/04 16:57:03 manu Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2005/10/18 18:37:44 joerg Exp
* created from NetBSD: syscalls.master,v 1.7 2005/11/04 16:51:56 manu Exp
*/
/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
@ -457,6 +457,9 @@
/* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
#define LINUX_SYS_ioperm 173
/* syscall: "gettid" ret: "pid_t" args: */
#define LINUX_SYS_gettid 186
/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
#define LINUX_SYS_setxattr 188
@ -496,6 +499,9 @@
/* syscall: "time" ret: "int" args: "linux_time_t *" */
#define LINUX_SYS_time 201
/* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct timespec *" "int *" "int" */
#define LINUX_SYS_futex 202
/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
#define LINUX_SYS_getdents64 217

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.6 2005/10/18 19:08:51 joerg Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.7 2005/11/04 16:57:03 manu Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2005/10/18 18:37:44 joerg Exp
* created from NetBSD: syscalls.master,v 1.7 2005/11/04 16:51:56 manu Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -607,6 +607,15 @@ struct linux_sys_time_args {
syscallarg(linux_time_t *) t;
};
struct linux_sys_futex_args {
syscallarg(int *) uaddr;
syscallarg(int) op;
syscallarg(int) val;
syscallarg(const struct timespec *) timeout;
syscallarg(int *) uaddr2;
syscallarg(int) val3;
};
struct linux_sys_getdents64_args {
syscallarg(int) fd;
syscallarg(struct linux_dirent64 *) dent;
@ -948,6 +957,8 @@ int linux_sys_iopl(struct lwp *, void *, register_t *);
int linux_sys_ioperm(struct lwp *, void *, register_t *);
int linux_sys_gettid(struct lwp *, void *, register_t *);
int linux_sys_setxattr(struct lwp *, void *, register_t *);
int linux_sys_lsetxattr(struct lwp *, void *, register_t *);
@ -974,6 +985,8 @@ int linux_sys_fremovexattr(struct lwp *, void *, register_t *);
int linux_sys_time(struct lwp *, void *, register_t *);
int linux_sys_futex(struct lwp *, void *, register_t *);
int linux_sys_getdents64(struct lwp *, void *, register_t *);
int linux_sys_set_tid_address(struct lwp *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.6 2005/10/18 19:08:51 joerg Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.7 2005/11/04 16:57:03 manu Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2005/10/18 18:37:44 joerg Exp
* created from NetBSD: syscalls.master,v 1.7 2005/11/04 16:51:56 manu Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.6 2005/10/18 19:08:51 joerg Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.7 2005/11/04 16:57:03 manu Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -220,7 +220,7 @@ const char *const linux_syscallnames[] = {
"#183 (unimplemented afs_syscall)", /* 183 = unimplemented afs_syscall */
"#184 (unimplemented tuxcall)", /* 184 = unimplemented tuxcall */
"#185 (unimplemented security)", /* 185 = unimplemented security */
"#186 (unimplemented gettid)", /* 186 = unimplemented gettid */
"gettid", /* 186 = gettid */
"#187 (unimplemented readahead)", /* 187 = unimplemented readahead */
"setxattr", /* 188 = setxattr */
"lsetxattr", /* 189 = lsetxattr */
@ -236,7 +236,7 @@ const char *const linux_syscallnames[] = {
"fremovexattr", /* 199 = fremovexattr */
"#200 (unimplemented tkill)", /* 200 = unimplemented tkill */
"time", /* 201 = time */
"#202 (unimplemented futex)", /* 202 = unimplemented futex */
"futex", /* 202 = futex */
"#203 (unimplemented sched_setaffinity)", /* 203 = unimplemented sched_setaffinity */
"#204 (unimplemented sched_getaffinity)", /* 204 = unimplemented sched_getaffinity */
"#205 (unimplemented set_thread_area)", /* 205 = unimplemented set_thread_area */

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.6 2005/10/18 19:08:51 joerg Exp $ */
/* $NetBSD: linux_sysent.c,v 1.7 2005/11/04 16:57:03 manu Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2005/10/18 18:37:44 joerg Exp
* created from NetBSD: syscalls.master,v 1.7 2005/11/04 16:51:56 manu Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.6 2005/10/18 19:08:51 joerg Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.7 2005/11/04 16:57:03 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -408,7 +408,7 @@ struct sysent linux_sysent[] = {
{ 0, 0, 0,
linux_sys_nosys }, /* 185 = unimplemented security */
{ 0, 0, 0,
linux_sys_nosys }, /* 186 = unimplemented gettid */
linux_sys_gettid }, /* 186 = gettid */
{ 0, 0, 0,
linux_sys_nosys }, /* 187 = unimplemented readahead */
{ 5, s(struct linux_sys_setxattr_args), 0,
@ -439,8 +439,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 200 = unimplemented tkill */
{ 1, s(struct linux_sys_time_args), 0,
linux_sys_time }, /* 201 = time */
{ 0, 0, 0,
linux_sys_nosys }, /* 202 = unimplemented futex */
{ 6, s(struct linux_sys_futex_args), 0,
linux_sys_futex }, /* 202 = futex */
{ 0, 0, 0,
linux_sys_nosys }, /* 203 = unimplemented sched_setaffinity */
{ 0, 0, 0,