1 /* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically generated. 5 * created from Id: syscalls.master,v 1.2 1996/03/04 20:58:47 peter Exp 6 */ 7 8 #include <sys/types.h> 9 #include <sys/param.h> 10 #include <sys/systm.h> 11 #include <sys/sysent.h> 12 #include <sys/sysproto.h> 13 #include <i386/linux/linux.h> 14 #include <i386/linux/linux_proto.h> 15 16 #ifdef COMPAT_43 17 #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name) 18 #else 19 #define compat(n, name) 0, (sy_call_t *)nosys 20 #endif 21 22 /* The casts are bogus but will do for now. */ 23 struct sysent linux_sysent[] = { 24 { 0, (sy_call_t *)linux_setup }, /* 0 = linux_setup */ 25 { 1, (sy_call_t *)exit }, /* 1 = exit */ 26 { 0, (sy_call_t *)linux_fork }, /* 2 = linux_fork */ 27 { 3, (sy_call_t *)read }, /* 3 = read */ 28 { 3, (sy_call_t *)write }, /* 4 = write */ 29 { 3, (sy_call_t *)linux_open }, /* 5 = linux_open */ 30 { 1, (sy_call_t *)close }, /* 6 = close */ 31 { 3, (sy_call_t *)linux_waitpid }, /* 7 = linux_waitpid */ 32 { 2, (sy_call_t *)linux_creat }, /* 8 = linux_creat */ 33 { 2, (sy_call_t *)link }, /* 9 = link */ 34 { 1, (sy_call_t *)linux_unlink }, /* 10 = linux_unlink */ 35 { 3, (sy_call_t *)linux_execve }, /* 11 = linux_execve */ 36 { 1, (sy_call_t *)linux_chdir }, /* 12 = linux_chdir */ 37 { 1, (sy_call_t *)linux_time }, /* 13 = linux_time */ 38 { 3, (sy_call_t *)linux_mknod }, /* 14 = linux_mknod */ 39 { 2, (sy_call_t *)linux_chmod }, /* 15 = linux_chmod */ 40 { 3, (sy_call_t *)linux_chown }, /* 16 = linux_chown */ 41 { 1, (sy_call_t *)linux_break }, /* 17 = linux_break */ 42 { 2, (sy_call_t *)linux_stat }, /* 18 = linux_stat */ 43 { 3, (sy_call_t *)linux_lseek }, /* 19 = linux_lseek */ 44 { 0, (sy_call_t *)getpid }, /* 20 = getpid */ 45 { 0, (sy_call_t *)linux_mount }, /* 21 = linux_mount */ 46 { 0, (sy_call_t *)linux_umount }, /* 22 = linux_umount */ 47 { 1, (sy_call_t *)setuid }, /* 23 = setuid */ 48 { 0, (sy_call_t *)getuid }, /* 24 = getuid */ 49 { 0, (sy_call_t *)linux_stime }, /* 25 = linux_stime */ 50 { 0, (sy_call_t *)linux_ptrace }, /* 26 = linux_ptrace */ 51 { 1, (sy_call_t *)linux_alarm }, /* 27 = linux_alarm */ 52 { 2, (sy_call_t *)linux_fstat }, /* 28 = linux_fstat */ 53 { 0, (sy_call_t *)linux_pause }, /* 29 = linux_pause */ 54 { 2, (sy_call_t *)linux_utime }, /* 30 = linux_utime */ 55 { 0, (sy_call_t *)linux_stty }, /* 31 = linux_stty */ 56 { 0, (sy_call_t *)linux_gtty }, /* 32 = linux_gtty */ 57 { 2, (sy_call_t *)linux_access }, /* 33 = linux_access */ 58 { 0, (sy_call_t *)linux_nice }, /* 34 = linux_nice */ 59 { 0, (sy_call_t *)linux_ftime }, /* 35 = linux_ftime */ 60 { 0, (sy_call_t *)sync }, /* 36 = sync */ 61 { 2, (sy_call_t *)linux_kill }, /* 37 = linux_kill */ 62 { 2, (sy_call_t *)linux_rename }, /* 38 = linux_rename */ 63 { 2, (sy_call_t *)linux_mkdir }, /* 39 = linux_mkdir */ 64 { 1, (sy_call_t *)linux_rmdir }, /* 40 = linux_rmdir */ 65 { 1, (sy_call_t *)dup }, /* 41 = dup */ 66 { 1, (sy_call_t *)linux_pipe }, /* 42 = linux_pipe */ 67 { 1, (sy_call_t *)linux_times }, /* 43 = linux_times */ 68 { 0, (sy_call_t *)linux_prof }, /* 44 = linux_prof */ 69 { 1, (sy_call_t *)linux_brk }, /* 45 = linux_brk */ 70 { 1, (sy_call_t *)setgid }, /* 46 = setgid */ 71 { 0, (sy_call_t *)getgid }, /* 47 = getgid */ 72 { 2, (sy_call_t *)linux_signal }, /* 48 = linux_signal */ 73 { 0, (sy_call_t *)geteuid }, /* 49 = geteuid */ 74 { 0, (sy_call_t *)getegid }, /* 50 = getegid */ 75 { 1, (sy_call_t *)acct }, /* 51 = acct */ 76 { 0, (sy_call_t *)linux_phys }, /* 52 = linux_phys */ 77 { 0, (sy_call_t *)linux_lock }, /* 53 = linux_lock */ 78 { 3, (sy_call_t *)linux_ioctl }, /* 54 = linux_ioctl */ 79 { 3, (sy_call_t *)linux_fcntl }, /* 55 = linux_fcntl */ 80 { 0, (sy_call_t *)linux_mpx }, /* 56 = linux_mpx */ 81 { 2, (sy_call_t *)setpgid }, /* 57 = setpgid */ 82 { 0, (sy_call_t *)linux_ulimit }, /* 58 = linux_ulimit */ 83 { 1, (sy_call_t *)linux_olduname }, /* 59 = linux_olduname */ 84 { 1, (sy_call_t *)umask }, /* 60 = umask */ 85 { 1, (sy_call_t *)chroot }, /* 61 = chroot */ 86 { 0, (sy_call_t *)linux_ustat }, /* 62 = linux_ustat */ 87 { 2, (sy_call_t *)dup2 }, /* 63 = dup2 */ 88 { 0, (sy_call_t *)getppid }, /* 64 = getppid */ 89 { 0, (sy_call_t *)getpgrp }, /* 65 = getpgrp */ 90 { 0, (sy_call_t *)setsid }, /* 66 = setsid */ 91 { 3, (sy_call_t *)linux_sigaction }, /* 67 = linux_sigaction */ 92 { 0, (sy_call_t *)linux_siggetmask }, /* 68 = linux_siggetmask */ 93 { 1, (sy_call_t *)linux_sigsetmask }, /* 69 = linux_sigsetmask */ 94 { 2, (sy_call_t *)setreuid }, /* 70 = setreuid */ 95 { 2, (sy_call_t *)setregid }, /* 71 = setregid */ 96 { 3, (sy_call_t *)linux_sigsuspend }, /* 72 = linux_sigsuspend */ 97 { 1, (sy_call_t *)linux_sigpending }, /* 73 = linux_sigpending */ 98 { 2, (sy_call_t *)osethostname }, /* 74 = osethostname */ 99 { 2, (sy_call_t *)osetrlimit }, /* 75 = osetrlimit */ 100 { 2, (sy_call_t *)ogetrlimit }, /* 76 = ogetrlimit */ 101 { 2, (sy_call_t *)getrusage }, /* 77 = getrusage */ 102 { 2, (sy_call_t *)gettimeofday }, /* 78 = gettimeofday */ 103 { 2, (sy_call_t *)settimeofday }, /* 79 = settimeofday */ 104 { 2, (sy_call_t *)getgroups }, /* 80 = getgroups */ 105 { 2, (sy_call_t *)setgroups }, /* 81 = setgroups */ 106 { 1, (sy_call_t *)linux_select }, /* 82 = linux_select */ 107 { 2, (sy_call_t *)linux_symlink }, /* 83 = linux_symlink */ 108 { 2, (sy_call_t *)ostat }, /* 84 = ostat */ 109 { 3, (sy_call_t *)linux_readlink }, /* 85 = linux_readlink */ 110 { 1, (sy_call_t *)linux_uselib }, /* 86 = linux_uselib */ 111 { 1, (sy_call_t *)swapon }, /* 87 = swapon */ 112 { 1, (sy_call_t *)reboot }, /* 88 = reboot */ 113 { 3, (sy_call_t *)linux_readdir }, /* 89 = linux_readdir */ 114 { 1, (sy_call_t *)linux_mmap }, /* 90 = linux_mmap */ 115 { 2, (sy_call_t *)munmap }, /* 91 = munmap */ 116 { 2, (sy_call_t *)linux_truncate }, /* 92 = linux_truncate */ 117 { 2, (sy_call_t *)oftruncate }, /* 93 = oftruncate */ 118 { 2, (sy_call_t *)fchmod }, /* 94 = fchmod */ 119 { 3, (sy_call_t *)fchown }, /* 95 = fchown */ 120 { 2, (sy_call_t *)getpriority }, /* 96 = getpriority */ 121 { 3, (sy_call_t *)setpriority }, /* 97 = setpriority */ 122 { 4, (sy_call_t *)profil }, /* 98 = profil */ 123 { 2, (sy_call_t *)linux_statfs }, /* 99 = linux_statfs */ 124 { 2, (sy_call_t *)linux_fstatfs }, /* 100 = linux_fstatfs */ 125 { 3, (sy_call_t *)linux_ioperm }, /* 101 = linux_ioperm */ 126 { 2, (sy_call_t *)linux_socketcall }, /* 102 = linux_socketcall */ 127 { 1, (sy_call_t *)linux_ksyslog }, /* 103 = linux_ksyslog */ 128 { 3, (sy_call_t *)linux_setitimer }, /* 104 = linux_setitimer */ 129 { 2, (sy_call_t *)linux_getitimer }, /* 105 = linux_getitimer */ 130 { 2, (sy_call_t *)linux_newstat }, /* 106 = linux_newstat */ 131 { 2, (sy_call_t *)linux_newlstat }, /* 107 = linux_newlstat */ 132 { 2, (sy_call_t *)linux_newfstat }, /* 108 = linux_newfstat */ 133 { 1, (sy_call_t *)linux_uname }, /* 109 = linux_uname */ 134 { 1, (sy_call_t *)linux_iopl }, /* 110 = linux_iopl */ 135 { 0, (sy_call_t *)linux_vhangup }, /* 111 = linux_vhangup */ 136 { 0, (sy_call_t *)linux_idle }, /* 112 = linux_idle */ 137 { 0, (sy_call_t *)linux_vm86 }, /* 113 = linux_vm86 */ 138 { 4, (sy_call_t *)linux_wait4 }, /* 114 = linux_wait4 */ 139 { 0, (sy_call_t *)linux_swapoff }, /* 115 = linux_swapoff */ 140 { 0, (sy_call_t *)linux_sysinfo }, /* 116 = linux_sysinfo */ 141 { 5, (sy_call_t *)linux_ipc }, /* 117 = linux_ipc */ 142 { 1, (sy_call_t *)fsync }, /* 118 = fsync */ 143 { 1, (sy_call_t *)linux_sigreturn }, /* 119 = linux_sigreturn */ 144 { 0, (sy_call_t *)linux_clone }, /* 120 = linux_clone */ 145 { 2, (sy_call_t *)setdomainname }, /* 121 = setdomainname */ 146 { 1, (sy_call_t *)linux_newuname }, /* 122 = linux_newuname */ 147 { 3, (sy_call_t *)linux_modify_ldt }, /* 123 = linux_modify_ldt */ 148 { 0, (sy_call_t *)linux_adjtimex }, /* 124 = linux_adjtimex */ 149 { 3, (sy_call_t *)mprotect }, /* 125 = mprotect */ 150 { 3, (sy_call_t *)linux_sigprocmask }, /* 126 = linux_sigprocmask */ 151 { 0, (sy_call_t *)linux_create_module }, /* 127 = linux_create_module */ 152 { 0, (sy_call_t *)linux_init_module }, /* 128 = linux_init_module */ 153 { 0, (sy_call_t *)linux_delete_module }, /* 129 = linux_delete_module */ 154 { 0, (sy_call_t *)linux_get_kernel_syms }, /* 130 = linux_get_kernel_syms */ 155 { 0, (sy_call_t *)linux_quotactl }, /* 131 = linux_quotactl */ 156 { 1, (sy_call_t *)linux_getpgid }, /* 132 = linux_getpgid */ 157 { 1, (sy_call_t *)fchdir }, /* 133 = fchdir */ 158 { 0, (sy_call_t *)linux_bdflush }, /* 134 = linux_bdflush */ 159 { 0, (sy_call_t *)nosys }, /* 135 = sysfs */ 160 { 1, (sy_call_t *)linux_personality }, /* 136 = linux_personality */ 161 { 0, (sy_call_t *)nosys }, /* 137 = afs_syscall */ 162 { 0, (sy_call_t *)nosys }, /* 138 = setfsuid */ 163 { 0, (sy_call_t *)nosys }, /* 139 = getfsuid */ 164 { 5, (sy_call_t *)linux_llseek }, /* 140 = linux_llseek */ 165 { 3, (sy_call_t *)linux_getdents }, /* 141 = linux_getdents */ 166 { 5, (sy_call_t *)linux_newselect }, /* 142 = linux_newselect */ 167 { 2, (sy_call_t *)flock }, /* 143 = flock */ 168 { 3, (sy_call_t *)linux_msync }, /* 144 = linux_msync */ 169 { 3, (sy_call_t *)readv }, /* 145 = readv */ 170 { 3, (sy_call_t *)writev }, /* 146 = writev */ 171 }; 172