This commit is contained in:
jdolecek 2000-12-12 19:03:10 +00:00
parent daff00c255
commit c3dd514d84
8 changed files with 116 additions and 46 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.26 2000/12/11 03:09:10 mycroft Exp $ */
/* $NetBSD: linux_syscall.h,v 1.27 2000/12/12 19:03:10 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.47 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.48 2000/12/12 19:01:59 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -476,5 +476,20 @@
/* syscall: "__vfork14" ret: "int" args: */
#define LINUX_SYS___vfork14 190
/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
#define LINUX_SYS_truncate64 193
/* syscall: "ftruncate64" ret: "int" args: "const char *" "off_t" */
#define LINUX_SYS_ftruncate64 194
/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
#define LINUX_SYS_stat64 195
/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
#define LINUX_SYS_lstat64 196
/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
#define LINUX_SYS_fstat64 197
#define LINUX_SYS_MAXSYSCALL 218
#define LINUX_SYS_NSYSENT 256

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.26 2000/12/11 03:09:10 mycroft Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.27 2000/12/12 19:03:10 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.47 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.48 2000/12/12 19:01:59 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -503,6 +503,21 @@ struct linux_sys_sigaltstack_args {
syscallarg(struct linux_sigaltstack *) oss;
};
struct linux_sys_stat64_args {
syscallarg(const char *) path;
syscallarg(struct linux_stat64 *) sp;
};
struct linux_sys_lstat64_args {
syscallarg(const char *) path;
syscallarg(struct linux_stat64 *) sp;
};
struct linux_sys_fstat64_args {
syscallarg(int) fd;
syscallarg(struct linux_stat64 *) sp;
};
/*
* System call prototypes.
*/
@ -660,4 +675,9 @@ int linux_sys_chown(struct proc *, void *, register_t *);
int sys___getcwd(struct proc *, void *, register_t *);
int linux_sys_sigaltstack(struct proc *, void *, register_t *);
int sys___vfork14(struct proc *, void *, register_t *);
int sys_truncate(struct proc *, void *, register_t *);
int sys_ftruncate(struct proc *, void *, register_t *);
int linux_sys_stat64(struct proc *, void *, register_t *);
int linux_sys_lstat64(struct proc *, void *, register_t *);
int linux_sys_fstat64(struct proc *, void *, register_t *);
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscalls.c,v 1.27 2000/12/11 03:09:10 mycroft Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.28 2000/12/12 19:03:10 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.47 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.48 2000/12/12 19:01:59 jdolecek Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -218,11 +218,11 @@ const char *const linux_syscallnames[] = {
"__vfork14", /* 190 = __vfork14 */
"#191 (unimplemented getrlimit)", /* 191 = unimplemented getrlimit */
"#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */
"#193 (unimplemented truncate64)", /* 193 = unimplemented truncate64 */
"#194 (unimplemented ftruncate64)", /* 194 = unimplemented ftruncate64 */
"#195 (unimplemented stat64)", /* 195 = unimplemented stat64 */
"#196 (unimplemented lstat64)", /* 196 = unimplemented lstat64 */
"#197 (unimplemented fstat64)", /* 197 = unimplemented fstat64 */
"truncate64", /* 193 = truncate64 */
"ftruncate64", /* 194 = ftruncate64 */
"stat64", /* 195 = stat64 */
"lstat64", /* 196 = lstat64 */
"fstat64", /* 197 = fstat64 */
"#198 (unimplemented lchown)", /* 198 = unimplemented lchown */
"#199 (unimplemented getuid)", /* 199 = unimplemented getuid */
"#200 (unimplemented getgid)", /* 200 = unimplemented getgid */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_sysent.c,v 1.26 2000/12/11 03:09:11 mycroft Exp $ */
/* $NetBSD: linux_sysent.c,v 1.27 2000/12/12 19:03:10 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.47 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.48 2000/12/12 19:01:59 jdolecek Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -411,16 +411,16 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 191 = unimplemented getrlimit */
{ 0, 0,
sys_nosys }, /* 192 = unimplemented mmap2 */
{ 0, 0,
sys_nosys }, /* 193 = unimplemented truncate64 */
{ 0, 0,
sys_nosys }, /* 194 = unimplemented ftruncate64 */
{ 0, 0,
sys_nosys }, /* 195 = unimplemented stat64 */
{ 0, 0,
sys_nosys }, /* 196 = unimplemented lstat64 */
{ 0, 0,
sys_nosys }, /* 197 = unimplemented fstat64 */
{ 2, s(struct sys_truncate_args),
sys_truncate }, /* 193 = truncate64 */
{ 2, s(struct sys_ftruncate_args),
sys_ftruncate }, /* 194 = ftruncate64 */
{ 2, s(struct linux_sys_stat64_args),
linux_sys_stat64 }, /* 195 = stat64 */
{ 2, s(struct linux_sys_lstat64_args),
linux_sys_lstat64 }, /* 196 = lstat64 */
{ 2, s(struct linux_sys_fstat64_args),
linux_sys_fstat64 }, /* 197 = fstat64 */
{ 0, 0,
sys_nosys }, /* 198 = unimplemented lchown */
{ 0, 0,

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.22 2000/12/09 12:27:00 jdolecek Exp $ */
/* $NetBSD: linux_syscall.h,v 1.23 2000/12/12 19:03:46 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.22 2000/12/12 19:02:00 jdolecek Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -462,4 +462,19 @@
/* syscall: "__vfork14" ret: "int" args: */
#define LINUX_SYS___vfork14 190
/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
#define LINUX_SYS_truncate64 193
/* syscall: "ftruncate64" ret: "int" args: "const char *" "off_t" */
#define LINUX_SYS_ftruncate64 194
/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
#define LINUX_SYS_stat64 195
/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
#define LINUX_SYS_lstat64 196
/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
#define LINUX_SYS_fstat64 197
#define LINUX_SYS_MAXSYSCALL 218

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.22 2000/12/09 12:27:00 jdolecek Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.23 2000/12/12 19:03:46 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.22 2000/12/12 19:02:00 jdolecek Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -474,6 +474,21 @@ struct linux_sys_sigaltstack_args {
syscallarg(struct linux_sigaltstack *) oss;
};
struct linux_sys_stat64_args {
syscallarg(const char *) path;
syscallarg(struct linux_stat64 *) sp;
};
struct linux_sys_lstat64_args {
syscallarg(const char *) path;
syscallarg(struct linux_stat64 *) sp;
};
struct linux_sys_fstat64_args {
syscallarg(int) fd;
syscallarg(struct linux_stat64 *) sp;
};
/*
* System call prototypes.
*/
@ -638,4 +653,9 @@ int linux_sys_lchown(struct proc *, void *, register_t *);
int sys___getcwd(struct proc *, void *, register_t *);
int linux_sys_sigaltstack(struct proc *, void *, register_t *);
int sys___vfork14(struct proc *, void *, register_t *);
int sys_truncate(struct proc *, void *, register_t *);
int sys_ftruncate(struct proc *, void *, register_t *);
int linux_sys_stat64(struct proc *, void *, register_t *);
int linux_sys_lstat64(struct proc *, void *, register_t *);
int linux_sys_fstat64(struct proc *, void *, register_t *);
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscalls.c,v 1.23 2000/12/09 12:27:00 jdolecek Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.24 2000/12/12 19:03:46 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.22 2000/12/12 19:02:00 jdolecek Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -237,11 +237,11 @@ const char *const linux_syscallnames[] = {
"__vfork14", /* 190 = __vfork14 */
"#191 (unimplemented getrlimit)", /* 191 = unimplemented getrlimit */
"#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */
"#193 (unimplemented truncate64)", /* 193 = unimplemented truncate64 */
"#194 (unimplemented ftruncate64)", /* 194 = unimplemented ftruncate64 */
"#195 (unimplemented stat64)", /* 195 = unimplemented stat64 */
"#196 (unimplemented lstat64)", /* 196 = unimplemented lstat64 */
"#197 (unimplemented fstat64)", /* 197 = unimplemented fstat64 */
"truncate64", /* 193 = truncate64 */
"ftruncate64", /* 194 = ftruncate64 */
"stat64", /* 195 = stat64 */
"lstat64", /* 196 = lstat64 */
"fstat64", /* 197 = fstat64 */
"#198 (unimplemented lchown)", /* 198 = unimplemented lchown */
"#199 (unimplemented getuid)", /* 199 = unimplemented getuid */
"#200 (unimplemented getgid)", /* 200 = unimplemented getgid */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_sysent.c,v 1.22 2000/12/09 12:27:01 jdolecek Exp $ */
/* $NetBSD: linux_sysent.c,v 1.23 2000/12/12 19:03:46 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.21 2000/12/09 12:23:36 jdolecek Exp
* created from NetBSD: syscalls.master,v 1.22 2000/12/12 19:02:00 jdolecek Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -436,16 +436,16 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 191 = unimplemented getrlimit */
{ 0, 0,
sys_nosys }, /* 192 = unimplemented mmap2 */
{ 0, 0,
sys_nosys }, /* 193 = unimplemented truncate64 */
{ 0, 0,
sys_nosys }, /* 194 = unimplemented ftruncate64 */
{ 0, 0,
sys_nosys }, /* 195 = unimplemented stat64 */
{ 0, 0,
sys_nosys }, /* 196 = unimplemented lstat64 */
{ 0, 0,
sys_nosys }, /* 197 = unimplemented fstat64 */
{ 2, s(struct sys_truncate_args),
sys_truncate }, /* 193 = truncate64 */
{ 2, s(struct sys_ftruncate_args),
sys_ftruncate }, /* 194 = ftruncate64 */
{ 2, s(struct linux_sys_stat64_args),
linux_sys_stat64 }, /* 195 = stat64 */
{ 2, s(struct linux_sys_lstat64_args),
linux_sys_lstat64 }, /* 196 = lstat64 */
{ 2, s(struct linux_sys_fstat64_args),
linux_sys_fstat64 }, /* 197 = fstat64 */
{ 0, 0,
sys_nosys }, /* 198 = unimplemented lchown */
{ 0, 0,