This commit is contained in:
itohy 1999-02-10 10:38:15 +00:00
parent 5af2655c9d
commit da0a919754
4 changed files with 58 additions and 54 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.1 1998/12/15 19:28:31 itohy Exp $ */
/* $NetBSD: linux_syscall.h,v 1.2 1999/02/10 10:38:15 itohy Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/12/15 19:25:41 itohy Exp
* created from NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -22,7 +22,7 @@
/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
#define LINUX_SYS_write 4
/* syscall: "open" ret: "int" args: "char *" "int" "int" */
/* syscall: "open" ret: "int" args: "const char *" "int" "int" */
#define LINUX_SYS_open 5
/* syscall: "close" ret: "int" args: "int" */
@ -31,31 +31,31 @@
/* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
#define LINUX_SYS_waitpid 7
/* syscall: "creat" ret: "int" args: "char *" "int" */
/* syscall: "creat" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_creat 8
/* syscall: "link" ret: "int" args: "char *" "char *" */
/* syscall: "link" ret: "int" args: "const char *" "const char *" */
#define LINUX_SYS_link 9
/* syscall: "unlink" ret: "int" args: "char *" */
/* syscall: "unlink" ret: "int" args: "const char *" */
#define LINUX_SYS_unlink 10
/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
#define LINUX_SYS_execve 11
/* syscall: "chdir" ret: "int" args: "char *" */
/* syscall: "chdir" ret: "int" args: "const char *" */
#define LINUX_SYS_chdir 12
/* syscall: "time" ret: "int" args: "linux_time_t *" */
#define LINUX_SYS_time 13
/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
#define LINUX_SYS_mknod 14
/* syscall: "chmod" ret: "int" args: "char *" "int" */
/* syscall: "chmod" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_chmod 15
/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
/* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
#define LINUX_SYS_chown 16
/* 17 is obsolete break */
@ -80,12 +80,12 @@
/* syscall: "pause" ret: "int" args: */
#define LINUX_SYS_pause 29
/* syscall: "utime" ret: "int" args: "char *" "struct linux_utimbuf *" */
/* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
#define LINUX_SYS_utime 30
/* 31 is obsolete stty */
/* 32 is obsolete gtty */
/* syscall: "access" ret: "int" args: "char *" "int" */
/* syscall: "access" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_access 33
/* syscall: "nice" ret: "int" args: "int" */
@ -98,13 +98,13 @@
/* syscall: "kill" ret: "int" args: "int" "int" */
#define LINUX_SYS_kill 37
/* syscall: "rename" ret: "int" args: "char *" "char *" */
/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
#define LINUX_SYS_rename 38
/* syscall: "mkdir" ret: "int" args: "char *" "int" */
/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
#define LINUX_SYS_mkdir 39
/* syscall: "rmdir" ret: "int" args: "char *" */
/* syscall: "rmdir" ret: "int" args: "const char *" */
#define LINUX_SYS_rmdir 40
/* syscall: "dup" ret: "int" args: "u_int" */
@ -216,16 +216,16 @@
/* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
#define LINUX_SYS_oldselect 82
/* syscall: "symlink" ret: "int" args: "char *" "char *" */
/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
#define LINUX_SYS_symlink 83
/* syscall: "oolstat" ret: "int" args: "char *" "struct stat43 *" */
/* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
#define LINUX_SYS_oolstat 84
/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
#define LINUX_SYS_readlink 85
/* syscall: "uselib" ret: "int" args: "char *" */
/* syscall: "uselib" ret: "int" args: "const char *" */
#define LINUX_SYS_uselib 86
/* syscall: "swapon" ret: "int" args: "char *" */
@ -243,7 +243,7 @@
/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
#define LINUX_SYS_munmap 91
/* syscall: "truncate" ret: "int" args: "char *" "long" */
/* syscall: "truncate" ret: "int" args: "const char *" "long" */
#define LINUX_SYS_truncate 92
/* syscall: "ftruncate" ret: "int" args: "int" "long" */
@ -264,7 +264,7 @@
/* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
#define LINUX_SYS_profil 98
/* syscall: "statfs" ret: "int" args: "char *" "struct linux_statfs *" */
/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
#define LINUX_SYS_statfs 99
/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
@ -279,10 +279,10 @@
/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
#define LINUX_SYS_getitimer 105
/* syscall: "stat" ret: "int" args: "char *" "struct linux_stat *" */
/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
#define LINUX_SYS_stat 106
/* syscall: "lstat" ret: "int" args: "char *" "struct linux_stat *" */
/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
#define LINUX_SYS_lstat 107
/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
@ -384,7 +384,7 @@
/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
#define LINUX_SYS_rt_sigsuspend 179
/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
/* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */
#define LINUX_SYS_lchown 182
#define LINUX_SYS_MAXSYSCALL 187

View File

@ -1,12 +1,15 @@
/* $NetBSD: linux_syscallargs.h,v 1.1 1998/12/15 19:28:31 itohy Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.2 1999/02/10 10:38:15 itohy Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/12/15 19:25:41 itohy Exp
* created from NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
#define _LINUX_SYS__SYSCALLARGS_H_
#ifdef syscallarg
#undef syscallarg
#endif
@ -24,7 +27,7 @@
}
struct linux_sys_open_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
};
@ -36,22 +39,22 @@ struct linux_sys_waitpid_args {
};
struct linux_sys_creat_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) mode;
};
struct linux_sys_unlink_args {
syscallarg(char *) path;
syscallarg(const char *) path;
};
struct linux_sys_execve_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
};
struct linux_sys_chdir_args {
syscallarg(char *) path;
syscallarg(const char *) path;
};
struct linux_sys_time_args {
@ -59,18 +62,18 @@ struct linux_sys_time_args {
};
struct linux_sys_mknod_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
};
struct linux_sys_chmod_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) mode;
};
struct linux_sys_chown_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
@ -80,12 +83,12 @@ struct linux_sys_alarm_args {
};
struct linux_sys_utime_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(struct linux_utimbuf *) times;
};
struct linux_sys_access_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) flags;
};
@ -99,17 +102,17 @@ struct linux_sys_kill_args {
};
struct linux_sys_rename_args {
syscallarg(char *) from;
syscallarg(char *) to;
syscallarg(const char *) from;
syscallarg(const char *) to;
};
struct linux_sys_mkdir_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) mode;
};
struct linux_sys_rmdir_args {
syscallarg(char *) path;
syscallarg(const char *) path;
};
struct linux_sys_pipe_args {
@ -176,18 +179,18 @@ struct linux_sys_oldselect_args {
};
struct linux_sys_symlink_args {
syscallarg(char *) path;
syscallarg(char *) to;
syscallarg(const char *) path;
syscallarg(const char *) to;
};
struct linux_sys_readlink_args {
syscallarg(char *) name;
syscallarg(const char *) name;
syscallarg(char *) buf;
syscallarg(int) count;
};
struct linux_sys_uselib_args {
syscallarg(char *) path;
syscallarg(const char *) path;
};
struct linux_sys_readdir_args {
@ -201,7 +204,7 @@ struct linux_sys_old_mmap_args {
};
struct linux_sys_truncate_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(long) length;
};
@ -212,7 +215,7 @@ struct linux_sys_fchown_args {
};
struct linux_sys_statfs_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(struct linux_statfs *) sp;
};
@ -227,12 +230,12 @@ struct linux_sys_socketcall_args {
};
struct linux_sys_stat_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(struct linux_stat *) sp;
};
struct linux_sys_lstat_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(struct linux_stat *) sp;
};
@ -355,7 +358,7 @@ struct linux_sys_rt_sigsuspend_args {
};
struct linux_sys_lchown_args {
syscallarg(char *) path;
syscallarg(const char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
};
@ -505,3 +508,4 @@ int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
int linux_sys_rt_queueinfo __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
int linux_sys_lchown __P((struct proc *, void *, register_t *));
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscalls.c,v 1.1 1998/12/15 19:28:31 itohy Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.2 1999/02/10 10:38:15 itohy Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/12/15 19:25:41 itohy Exp
* created from NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp
*/
#if defined(_KERNEL) && !defined(_LKM)

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_sysent.c,v 1.1 1998/12/15 19:28:31 itohy Exp $ */
/* $NetBSD: linux_sysent.c,v 1.2 1999/02/10 10:38:16 itohy Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.1 1998/12/15 19:25:41 itohy Exp
* created from NetBSD: syscalls.master,v 1.2 1999/02/10 10:36:26 itohy Exp
*/
#include "opt_compat_netbsd.h"