NetBSD/sys/compat/linux/linux_sysent.c

405 lines
12 KiB
C

/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.4 1995/04/07 22:23:28 fvdl Exp
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/linux/linux_types.h>
#include <machine/linux_machdep.h>
#include <compat/linux/linux_syscallargs.h>
int nosys();
int exit();
int linux_fork();
int read();
int write();
int linux_open();
int close();
int linux_waitpid();
int linux_creat();
int link();
int linux_unlink();
int linux_execve();
int linux_chdir();
int linux_time();
int linux_mknod();
int linux_chmod();
int linux_chown();
int linux_break();
int compat_43_lseek();
int getpid();
int setuid();
int getuid();
int linux_alarm();
int linux_pause();
int linux_utime();
int linux_access();
int sync();
int linux_kill();
int linux_rename();
int linux_mkdir();
int linux_rmdir();
int dup();
int linux_pipe();
int linux_times();
int linux_brk();
int setgid();
int getgid();
int linux_signal();
int geteuid();
int getegid();
int acct();
int linux_ioctl();
int linux_fcntl();
int setpgid();
int umask();
int chroot();
int dup2();
int getppid();
int getpgrp();
int setsid();
int linux_sigaction();
int linux_siggetmask();
int linux_sigsetmask();
int compat_43_setreuid();
int compat_43_setregid();
int linux_sigsuspend();
int linux_sigpending();
int compat_43_sethostname();
int compat_43_setrlimit();
int compat_43_getrlimit();
int getrusage();
int gettimeofday();
int settimeofday();
int getgroups();
int setgroups();
int linux_select();
int linux_symlink();
int compat_43_lstat();
int linux_readlink();
int linux_uselib();
int swapon();
int reboot();
int linux_readdir();
int linux_mmap();
int munmap();
int linux_truncate();
int compat_43_ftruncate();
int fchmod();
int fchown();
int getpriority();
int setpriority();
int profil();
int linux_statfs();
int linux_fstatfs();
int linux_socketcall();
int setitimer();
int getitimer();
int linux_stat();
int linux_lstat();
int linux_fstat();
int linux_wait4();
int linux_ipc();
int fsync();
int linux_sigreturn();
int compat_09_setdomainname();
int linux_uname();
int mprotect();
int linux_sigprocmask();
int linux_getpgid();
int fchdir();
int linux_llseek();
#define s(type) sizeof(type)
struct sysent linux_sysent[] = {
{ 0, 0,
nosys }, /* 0 = syscall */
{ 1, s(struct exit_args),
exit }, /* 1 = exit */
{ 0, 0,
linux_fork }, /* 2 = linux_fork */
{ 3, s(struct read_args),
read }, /* 3 = read */
{ 3, s(struct write_args),
write }, /* 4 = write */
{ 3, s(struct linux_open_args),
linux_open }, /* 5 = linux_open */
{ 1, s(struct close_args),
close }, /* 6 = close */
{ 3, s(struct linux_waitpid_args),
linux_waitpid }, /* 7 = linux_waitpid */
{ 2, s(struct linux_creat_args),
linux_creat }, /* 8 = linux_creat */
{ 2, s(struct link_args),
link }, /* 9 = link */
{ 1, s(struct linux_unlink_args),
linux_unlink }, /* 10 = linux_unlink */
{ 3, s(struct linux_execve_args),
linux_execve }, /* 11 = linux_execve */
{ 1, s(struct linux_chdir_args),
linux_chdir }, /* 12 = linux_chdir */
{ 1, s(struct linux_time_args),
linux_time }, /* 13 = linux_time */
{ 3, s(struct linux_mknod_args),
linux_mknod }, /* 14 = linux_mknod */
{ 2, s(struct linux_chmod_args),
linux_chmod }, /* 15 = linux_chmod */
{ 3, s(struct linux_chown_args),
linux_chown }, /* 16 = linux_chown */
{ 1, s(struct linux_break_args),
linux_break }, /* 17 = linux_break */
{ 0, 0,
nosys }, /* 18 = obsolete linux_ostat */
{ 3, s(struct compat_43_lseek_args),
compat_43_lseek }, /* 19 = compat_43_lseek */
{ 0, 0,
getpid }, /* 20 = getpid */
{ 0, 0,
nosys }, /* 21 = unimplemented linux_mount */
{ 0, 0,
nosys }, /* 22 = unimplemented linux_umount */
{ 1, s(struct setuid_args),
setuid }, /* 23 = setuid */
{ 0, 0,
getuid }, /* 24 = getuid */
{ 0, 0,
nosys }, /* 25 = unimplemented linux_stime */
{ 0, 0,
nosys }, /* 26 = unimplemented linux_ptrace */
{ 1, s(struct linux_alarm_args),
linux_alarm }, /* 27 = linux_alarm */
{ 0, 0,
nosys }, /* 28 = obsolete linux_ofstat */
{ 0, 0,
linux_pause }, /* 29 = linux_pause */
{ 2, s(struct linux_utime_args),
linux_utime }, /* 30 = linux_utime */
{ 0, 0,
nosys }, /* 31 = unimplemented linux_stty */
{ 0, 0,
nosys }, /* 32 = unimplemented linux_gtty */
{ 2, s(struct linux_access_args),
linux_access }, /* 33 = linux_access */
{ 0, 0,
nosys }, /* 34 = unimplemented linux_nice */
{ 0, 0,
nosys }, /* 35 = unimplemented linux_ftime */
{ 0, 0,
sync }, /* 36 = sync */
{ 2, s(struct linux_kill_args),
linux_kill }, /* 37 = linux_kill */
{ 2, s(struct linux_rename_args),
linux_rename }, /* 38 = linux_rename */
{ 1, s(struct linux_mkdir_args),
linux_mkdir }, /* 39 = linux_mkdir */
{ 1, s(struct linux_rmdir_args),
linux_rmdir }, /* 40 = linux_rmdir */
{ 1, s(struct dup_args),
dup }, /* 41 = dup */
{ 1, s(struct linux_pipe_args),
linux_pipe }, /* 42 = linux_pipe */
{ 1, s(struct linux_times_args),
linux_times }, /* 43 = linux_times */
{ 0, 0,
nosys }, /* 44 = unimplemented linux_prof */
{ 1, s(struct linux_brk_args),
linux_brk }, /* 45 = linux_brk */
{ 1, s(struct setgid_args),
setgid }, /* 46 = setgid */
{ 0, 0,
getgid }, /* 47 = getgid */
{ 2, s(struct linux_signal_args),
linux_signal }, /* 48 = linux_signal */
{ 0, 0,
geteuid }, /* 49 = geteuid */
{ 0, 0,
getegid }, /* 50 = getegid */
{ 1, s(struct acct_args),
acct }, /* 51 = acct */
{ 0, 0,
nosys }, /* 52 = unimplemented linux_phys */
{ 0, 0,
nosys }, /* 53 = unimplemented linux_lock */
{ 3, s(struct linux_ioctl_args),
linux_ioctl }, /* 54 = linux_ioctl */
{ 3, s(struct linux_fcntl_args),
linux_fcntl }, /* 55 = linux_fcntl */
{ 0, 0,
nosys }, /* 56 = unimplemented linux_mpx */
{ 2, s(struct setpgid_args),
setpgid }, /* 57 = setpgid */
{ 0, 0,
nosys }, /* 58 = unimplemented linux_ulimit */
{ 0, 0,
nosys }, /* 59 = unimplemented linux_oldolduname */
{ 1, s(struct umask_args),
umask }, /* 60 = umask */
{ 1, s(struct chroot_args),
chroot }, /* 61 = chroot */
{ 0, 0,
nosys }, /* 62 = unimplemented linux_ustat */
{ 2, s(struct dup2_args),
dup2 }, /* 63 = dup2 */
{ 0, 0,
getppid }, /* 64 = getppid */
{ 0, 0,
getpgrp }, /* 65 = getpgrp */
{ 0, 0,
setsid }, /* 66 = setsid */
{ 3, s(struct linux_sigaction_args),
linux_sigaction }, /* 67 = linux_sigaction */
{ 0, 0,
linux_siggetmask }, /* 68 = linux_siggetmask */
{ 1, s(struct linux_sigsetmask_args),
linux_sigsetmask }, /* 69 = linux_sigsetmask */
{ 2, s(struct compat_43_setreuid_args),
compat_43_setreuid }, /* 70 = compat_43_setreuid */
{ 2, s(struct compat_43_setregid_args),
compat_43_setregid }, /* 71 = compat_43_setregid */
{ 3, s(struct linux_sigsuspend_args),
linux_sigsuspend }, /* 72 = linux_sigsuspend */
{ 1, s(struct linux_sigpending_args),
linux_sigpending }, /* 73 = linux_sigpending */
{ 2, s(struct compat_43_sethostname_args),
compat_43_sethostname }, /* 74 = compat_43_sethostname */
{ 2, s(struct compat_43_setrlimit_args),
compat_43_setrlimit }, /* 75 = compat_43_setrlimit */
{ 2, s(struct compat_43_getrlimit_args),
compat_43_getrlimit }, /* 76 = compat_43_getrlimit */
{ 2, s(struct getrusage_args),
getrusage }, /* 77 = getrusage */
{ 2, s(struct gettimeofday_args),
gettimeofday }, /* 78 = gettimeofday */
{ 2, s(struct settimeofday_args),
settimeofday }, /* 79 = settimeofday */
{ 2, s(struct getgroups_args),
getgroups }, /* 80 = getgroups */
{ 2, s(struct setgroups_args),
setgroups }, /* 81 = setgroups */
{ 1, s(struct linux_select_args),
linux_select }, /* 82 = linux_select */
{ 2, s(struct linux_symlink_args),
linux_symlink }, /* 83 = linux_symlink */
{ 2, s(struct compat_43_lstat_args),
compat_43_lstat }, /* 84 = compat_43_lstat */
{ 3, s(struct linux_readlink_args),
linux_readlink }, /* 85 = linux_readlink */
{ 1, s(struct linux_uselib_args),
linux_uselib }, /* 86 = linux_uselib */
{ 1, s(struct swapon_args),
swapon }, /* 87 = swapon */
{ 1, s(struct reboot_args),
reboot }, /* 88 = reboot */
{ 3, s(struct linux_readdir_args),
linux_readdir }, /* 89 = linux_readdir */
{ 1, s(struct linux_mmap_args),
linux_mmap }, /* 90 = linux_mmap */
{ 2, s(struct munmap_args),
munmap }, /* 91 = munmap */
{ 2, s(struct linux_truncate_args),
linux_truncate }, /* 92 = linux_truncate */
{ 2, s(struct compat_43_ftruncate_args),
compat_43_ftruncate }, /* 93 = compat_43_ftruncate */
{ 2, s(struct fchmod_args),
fchmod }, /* 94 = fchmod */
{ 3, s(struct fchown_args),
fchown }, /* 95 = fchown */
{ 2, s(struct getpriority_args),
getpriority }, /* 96 = getpriority */
{ 3, s(struct setpriority_args),
setpriority }, /* 97 = setpriority */
{ 4, s(struct profil_args),
profil }, /* 98 = profil */
{ 2, s(struct linux_statfs_args),
linux_statfs }, /* 99 = linux_statfs */
{ 2, s(struct linux_fstatfs_args),
linux_fstatfs }, /* 100 = linux_fstatfs */
{ 0, 0,
nosys }, /* 101 = unimplemented linux_ioperm */
{ 2, s(struct linux_socketcall_args),
linux_socketcall }, /* 102 = linux_socketcall */
{ 0, 0,
nosys }, /* 103 = unimplemented linux_klog */
{ 3, s(struct setitimer_args),
setitimer }, /* 104 = setitimer */
{ 2, s(struct getitimer_args),
getitimer }, /* 105 = getitimer */
{ 2, s(struct linux_stat_args),
linux_stat }, /* 106 = linux_stat */
{ 2, s(struct linux_lstat_args),
linux_lstat }, /* 107 = linux_lstat */
{ 2, s(struct linux_fstat_args),
linux_fstat }, /* 108 = linux_fstat */
{ 0, 0,
nosys }, /* 109 = unimplemented linux_olduname */
{ 0, 0,
nosys }, /* 110 = unimplemented linux_iopl */
{ 0, 0,
nosys }, /* 111 = unimplemented linux_vhangup */
{ 0, 0,
nosys }, /* 112 = unimplemented linux_idle */
{ 0, 0,
nosys }, /* 113 = unimplemented linux_vm86 */
{ 4, s(struct linux_wait4_args),
linux_wait4 }, /* 114 = linux_wait4 */
{ 0, 0,
nosys }, /* 115 = unimplemented linux_swapoff */
{ 0, 0,
nosys }, /* 116 = unimplemented linux_sysinfo */
{ 5, s(struct linux_ipc_args),
linux_ipc }, /* 117 = linux_ipc */
{ 1, s(struct fsync_args),
fsync }, /* 118 = fsync */
{ 1, s(struct linux_sigreturn_args),
linux_sigreturn }, /* 119 = linux_sigreturn */
{ 0, 0,
nosys }, /* 120 = unimplemented linux_clone */
{ 2, s(struct compat_09_setdomainname_args),
compat_09_setdomainname }, /* 121 = compat_09_setdomainname */
{ 1, s(struct linux_uname_args),
linux_uname }, /* 122 = linux_uname */
{ 0, 0,
nosys }, /* 123 = unimplemented linux_modify_ldt */
{ 0, 0,
nosys }, /* 124 = unimplemented linux_adjtimex */
{ 3, s(struct mprotect_args),
mprotect }, /* 125 = mprotect */
{ 3, s(struct linux_sigprocmask_args),
linux_sigprocmask }, /* 126 = linux_sigprocmask */
{ 0, 0,
nosys }, /* 127 = unimplemented linux_create_module */
{ 0, 0,
nosys }, /* 128 = unimplemented linux_init_module */
{ 0, 0,
nosys }, /* 129 = unimplemented linux_delete_module */
{ 0, 0,
nosys }, /* 130 = unimplemented linux_get_kernel_syms */
{ 0, 0,
nosys }, /* 131 = unimplemented linux_quotactl */
{ 1, s(struct linux_getpgid_args),
linux_getpgid }, /* 132 = linux_getpgid */
{ 1, s(struct fchdir_args),
fchdir }, /* 133 = fchdir */
{ 0, 0,
nosys }, /* 134 = unimplemented linux_bdflush */
{ 0, 0,
nosys }, /* 135 = unimplemented linux_sysfs */
{ 0, 0,
nosys }, /* 136 = unimplemented linux_personality */
{ 0, 0,
nosys }, /* 137 = unimplemented linux_afs_syscall */
{ 0, 0,
nosys }, /* 138 = unimplemented linux_setfsuid */
{ 0, 0,
nosys }, /* 139 = unimplemented linux_getfsuid */
{ 5, s(struct linux_llseek_args),
linux_llseek }, /* 140 = linux_llseek */
};
int nlinux_sysent= sizeof(linux_sysent) / sizeof(linux_sysent[0]);