/freebsd2/sys/i386/linux/linux_sysent.c

https://github.com/deathmaker1/kame · C · 207 lines · 197 code · 3 blank · 7 comment · 0 complexity · 6f2e7b8a822c5b7cda3468d614423d98 MD5 · raw file

  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. #include <sys/types.h>
  8. #include <sys/param.h>
  9. #include <sys/systm.h>
  10. #include <sys/sysent.h>
  11. #include <sys/sysproto.h>
  12. #include <i386/linux/linux.h>
  13. #include <i386/linux/linux_proto.h>
  14. #ifdef COMPAT_43
  15. #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
  16. #else
  17. #define compat(n, name) 0, (sy_call_t *)nosys
  18. #endif
  19. /* The casts are bogus but will do for now. */
  20. struct sysent linux_sysent[] = {
  21. { 0, (sy_call_t *)linux_setup }, /* 0 = linux_setup */
  22. { 1, (sy_call_t *)exit }, /* 1 = exit */
  23. { 0, (sy_call_t *)linux_fork }, /* 2 = linux_fork */
  24. { 3, (sy_call_t *)read }, /* 3 = read */
  25. { 3, (sy_call_t *)write }, /* 4 = write */
  26. { 3, (sy_call_t *)linux_open }, /* 5 = linux_open */
  27. { 1, (sy_call_t *)close }, /* 6 = close */
  28. { 3, (sy_call_t *)linux_waitpid }, /* 7 = linux_waitpid */
  29. { 2, (sy_call_t *)linux_creat }, /* 8 = linux_creat */
  30. { 2, (sy_call_t *)link }, /* 9 = link */
  31. { 1, (sy_call_t *)linux_unlink }, /* 10 = linux_unlink */
  32. { 3, (sy_call_t *)linux_execve }, /* 11 = linux_execve */
  33. { 1, (sy_call_t *)linux_chdir }, /* 12 = linux_chdir */
  34. { 1, (sy_call_t *)linux_time }, /* 13 = linux_time */
  35. { 3, (sy_call_t *)linux_mknod }, /* 14 = linux_mknod */
  36. { 2, (sy_call_t *)linux_chmod }, /* 15 = linux_chmod */
  37. { 3, (sy_call_t *)linux_lchown }, /* 16 = linux_lchown */
  38. { 1, (sy_call_t *)linux_break }, /* 17 = linux_break */
  39. { 2, (sy_call_t *)linux_stat }, /* 18 = linux_stat */
  40. { 3, (sy_call_t *)linux_lseek }, /* 19 = linux_lseek */
  41. { 0, (sy_call_t *)getpid }, /* 20 = getpid */
  42. { 0, (sy_call_t *)linux_mount }, /* 21 = linux_mount */
  43. { 0, (sy_call_t *)linux_umount }, /* 22 = linux_umount */
  44. { 1, (sy_call_t *)setuid }, /* 23 = setuid */
  45. { 0, (sy_call_t *)getuid }, /* 24 = getuid */
  46. { 0, (sy_call_t *)linux_stime }, /* 25 = linux_stime */
  47. { 0, (sy_call_t *)linux_ptrace }, /* 26 = linux_ptrace */
  48. { 1, (sy_call_t *)linux_alarm }, /* 27 = linux_alarm */
  49. { 2, (sy_call_t *)linux_fstat }, /* 28 = linux_fstat */
  50. { 0, (sy_call_t *)linux_pause }, /* 29 = linux_pause */
  51. { 2, (sy_call_t *)linux_utime }, /* 30 = linux_utime */
  52. { 0, (sy_call_t *)linux_stty }, /* 31 = linux_stty */
  53. { 0, (sy_call_t *)linux_gtty }, /* 32 = linux_gtty */
  54. { 2, (sy_call_t *)linux_access }, /* 33 = linux_access */
  55. { 1, (sy_call_t *)linux_nice }, /* 34 = linux_nice */
  56. { 0, (sy_call_t *)linux_ftime }, /* 35 = linux_ftime */
  57. { 0, (sy_call_t *)sync }, /* 36 = sync */
  58. { 2, (sy_call_t *)linux_kill }, /* 37 = linux_kill */
  59. { 2, (sy_call_t *)linux_rename }, /* 38 = linux_rename */
  60. { 2, (sy_call_t *)linux_mkdir }, /* 39 = linux_mkdir */
  61. { 1, (sy_call_t *)linux_rmdir }, /* 40 = linux_rmdir */
  62. { 1, (sy_call_t *)dup }, /* 41 = dup */
  63. { 1, (sy_call_t *)linux_pipe }, /* 42 = linux_pipe */
  64. { 1, (sy_call_t *)linux_times }, /* 43 = linux_times */
  65. { 0, (sy_call_t *)linux_prof }, /* 44 = linux_prof */
  66. { 1, (sy_call_t *)linux_brk }, /* 45 = linux_brk */
  67. { 1, (sy_call_t *)setgid }, /* 46 = setgid */
  68. { 0, (sy_call_t *)getgid }, /* 47 = getgid */
  69. { 2, (sy_call_t *)linux_signal }, /* 48 = linux_signal */
  70. { 0, (sy_call_t *)geteuid }, /* 49 = geteuid */
  71. { 0, (sy_call_t *)getegid }, /* 50 = getegid */
  72. { 1, (sy_call_t *)acct }, /* 51 = acct */
  73. { 0, (sy_call_t *)linux_phys }, /* 52 = linux_phys */
  74. { 0, (sy_call_t *)linux_lock }, /* 53 = linux_lock */
  75. { 3, (sy_call_t *)linux_ioctl }, /* 54 = linux_ioctl */
  76. { 3, (sy_call_t *)linux_fcntl }, /* 55 = linux_fcntl */
  77. { 0, (sy_call_t *)linux_mpx }, /* 56 = linux_mpx */
  78. { 2, (sy_call_t *)setpgid }, /* 57 = setpgid */
  79. { 0, (sy_call_t *)linux_ulimit }, /* 58 = linux_ulimit */
  80. { 1, (sy_call_t *)linux_olduname }, /* 59 = linux_olduname */
  81. { 1, (sy_call_t *)umask }, /* 60 = umask */
  82. { 1, (sy_call_t *)chroot }, /* 61 = chroot */
  83. { 0, (sy_call_t *)linux_ustat }, /* 62 = linux_ustat */
  84. { 2, (sy_call_t *)dup2 }, /* 63 = dup2 */
  85. { 0, (sy_call_t *)getppid }, /* 64 = getppid */
  86. { 0, (sy_call_t *)getpgrp }, /* 65 = getpgrp */
  87. { 0, (sy_call_t *)setsid }, /* 66 = setsid */
  88. { 3, (sy_call_t *)linux_sigaction }, /* 67 = linux_sigaction */
  89. { 0, (sy_call_t *)linux_siggetmask }, /* 68 = linux_siggetmask */
  90. { 1, (sy_call_t *)linux_sigsetmask }, /* 69 = linux_sigsetmask */
  91. { 2, (sy_call_t *)setreuid }, /* 70 = setreuid */
  92. { 2, (sy_call_t *)setregid }, /* 71 = setregid */
  93. { 3, (sy_call_t *)linux_sigsuspend }, /* 72 = linux_sigsuspend */
  94. { 1, (sy_call_t *)linux_sigpending }, /* 73 = linux_sigpending */
  95. { 2, (sy_call_t *)osethostname }, /* 74 = osethostname */
  96. { 2, (sy_call_t *)osetrlimit }, /* 75 = osetrlimit */
  97. { 2, (sy_call_t *)ogetrlimit }, /* 76 = ogetrlimit */
  98. { 2, (sy_call_t *)getrusage }, /* 77 = getrusage */
  99. { 2, (sy_call_t *)gettimeofday }, /* 78 = gettimeofday */
  100. { 2, (sy_call_t *)settimeofday }, /* 79 = settimeofday */
  101. { 2, (sy_call_t *)getgroups }, /* 80 = getgroups */
  102. { 2, (sy_call_t *)setgroups }, /* 81 = setgroups */
  103. { 1, (sy_call_t *)linux_select }, /* 82 = linux_select */
  104. { 2, (sy_call_t *)linux_symlink }, /* 83 = linux_symlink */
  105. { 2, (sy_call_t *)ostat }, /* 84 = ostat */
  106. { 3, (sy_call_t *)linux_readlink }, /* 85 = linux_readlink */
  107. { 1, (sy_call_t *)linux_uselib }, /* 86 = linux_uselib */
  108. { 1, (sy_call_t *)swapon }, /* 87 = swapon */
  109. { 1, (sy_call_t *)reboot }, /* 88 = reboot */
  110. { 3, (sy_call_t *)linux_readdir }, /* 89 = linux_readdir */
  111. { 1, (sy_call_t *)linux_mmap }, /* 90 = linux_mmap */
  112. { 2, (sy_call_t *)munmap }, /* 91 = munmap */
  113. { 2, (sy_call_t *)linux_truncate }, /* 92 = linux_truncate */
  114. { 2, (sy_call_t *)oftruncate }, /* 93 = oftruncate */
  115. { 2, (sy_call_t *)fchmod }, /* 94 = fchmod */
  116. { 3, (sy_call_t *)fchown }, /* 95 = fchown */
  117. { 2, (sy_call_t *)getpriority }, /* 96 = getpriority */
  118. { 3, (sy_call_t *)setpriority }, /* 97 = setpriority */
  119. { 4, (sy_call_t *)profil }, /* 98 = profil */
  120. { 2, (sy_call_t *)linux_statfs }, /* 99 = linux_statfs */
  121. { 2, (sy_call_t *)linux_fstatfs }, /* 100 = linux_fstatfs */
  122. { 3, (sy_call_t *)linux_ioperm }, /* 101 = linux_ioperm */
  123. { 2, (sy_call_t *)linux_socketcall }, /* 102 = linux_socketcall */
  124. { 1, (sy_call_t *)linux_ksyslog }, /* 103 = linux_ksyslog */
  125. { 3, (sy_call_t *)linux_setitimer }, /* 104 = linux_setitimer */
  126. { 2, (sy_call_t *)linux_getitimer }, /* 105 = linux_getitimer */
  127. { 2, (sy_call_t *)linux_newstat }, /* 106 = linux_newstat */
  128. { 2, (sy_call_t *)linux_newlstat }, /* 107 = linux_newlstat */
  129. { 2, (sy_call_t *)linux_newfstat }, /* 108 = linux_newfstat */
  130. { 1, (sy_call_t *)linux_uname }, /* 109 = linux_uname */
  131. { 1, (sy_call_t *)linux_iopl }, /* 110 = linux_iopl */
  132. { 0, (sy_call_t *)linux_vhangup }, /* 111 = linux_vhangup */
  133. { 0, (sy_call_t *)linux_idle }, /* 112 = linux_idle */
  134. { 0, (sy_call_t *)linux_vm86 }, /* 113 = linux_vm86 */
  135. { 4, (sy_call_t *)linux_wait4 }, /* 114 = linux_wait4 */
  136. { 0, (sy_call_t *)linux_swapoff }, /* 115 = linux_swapoff */
  137. { 0, (sy_call_t *)linux_sysinfo }, /* 116 = linux_sysinfo */
  138. { 5, (sy_call_t *)linux_ipc }, /* 117 = linux_ipc */
  139. { 1, (sy_call_t *)fsync }, /* 118 = fsync */
  140. { 1, (sy_call_t *)linux_sigreturn }, /* 119 = linux_sigreturn */
  141. { 0, (sy_call_t *)linux_clone }, /* 120 = linux_clone */
  142. { 2, (sy_call_t *)setdomainname }, /* 121 = setdomainname */
  143. { 1, (sy_call_t *)linux_newuname }, /* 122 = linux_newuname */
  144. { 3, (sy_call_t *)linux_modify_ldt }, /* 123 = linux_modify_ldt */
  145. { 0, (sy_call_t *)linux_adjtimex }, /* 124 = linux_adjtimex */
  146. { 3, (sy_call_t *)mprotect }, /* 125 = mprotect */
  147. { 3, (sy_call_t *)linux_sigprocmask }, /* 126 = linux_sigprocmask */
  148. { 0, (sy_call_t *)linux_create_module }, /* 127 = linux_create_module */
  149. { 0, (sy_call_t *)linux_init_module }, /* 128 = linux_init_module */
  150. { 0, (sy_call_t *)linux_delete_module }, /* 129 = linux_delete_module */
  151. { 0, (sy_call_t *)linux_get_kernel_syms }, /* 130 = linux_get_kernel_syms */
  152. { 0, (sy_call_t *)linux_quotactl }, /* 131 = linux_quotactl */
  153. { 1, (sy_call_t *)linux_getpgid }, /* 132 = linux_getpgid */
  154. { 1, (sy_call_t *)fchdir }, /* 133 = fchdir */
  155. { 0, (sy_call_t *)linux_bdflush }, /* 134 = linux_bdflush */
  156. { 0, (sy_call_t *)nosys }, /* 135 = sysfs */
  157. { 1, (sy_call_t *)linux_personality }, /* 136 = linux_personality */
  158. { 0, (sy_call_t *)nosys }, /* 137 = afs_syscall */
  159. { 0, (sy_call_t *)nosys }, /* 138 = setfsuid */
  160. { 0, (sy_call_t *)nosys }, /* 139 = getfsuid */
  161. { 5, (sy_call_t *)linux_llseek }, /* 140 = linux_llseek */
  162. { 3, (sy_call_t *)linux_getdents }, /* 141 = linux_getdents */
  163. { 5, (sy_call_t *)linux_newselect }, /* 142 = linux_newselect */
  164. { 2, (sy_call_t *)flock }, /* 143 = flock */
  165. { 3, (sy_call_t *)linux_msync }, /* 144 = linux_msync */
  166. { 3, (sy_call_t *)readv }, /* 145 = readv */
  167. { 3, (sy_call_t *)writev }, /* 146 = writev */
  168. { 0, (sy_call_t *)nosys }, /* 147 = getsid */
  169. { 0, (sy_call_t *)nosys }, /* 148 = fdatasync */
  170. { 0, (sy_call_t *)nosys }, /* 149 = _sysctl */
  171. { 2, (sy_call_t *)mlock }, /* 150 = mlock */
  172. { 2, (sy_call_t *)munlock }, /* 151 = munlock */
  173. { 0, (sy_call_t *)nosys }, /* 152 = mlockall */
  174. { 0, (sy_call_t *)nosys }, /* 153 = munlockall */
  175. { 0, (sy_call_t *)nosys }, /* 154 = sched_setparam */
  176. { 0, (sy_call_t *)nosys }, /* 155 = sched_getparam */
  177. { 0, (sy_call_t *)nosys }, /* 156 = sched_setscheduler */
  178. { 0, (sy_call_t *)nosys }, /* 157 = sched_getscheduler */
  179. { 0, (sy_call_t *)nosys }, /* 158 = sched_yield */
  180. { 0, (sy_call_t *)nosys }, /* 159 = sched_get_priority_max */
  181. { 0, (sy_call_t *)nosys }, /* 160 = sched_get_priority_min */
  182. { 0, (sy_call_t *)nosys }, /* 161 = sched_rr_get_interval */
  183. { 0, (sy_call_t *)nosys }, /* 162 = nanosleep */
  184. { 4, (sy_call_t *)linux_mremap }, /* 163 = linux_mremap */
  185. { 0, (sy_call_t *)nosys }, /* 164 = setresuid */
  186. { 0, (sy_call_t *)nosys }, /* 165 = getresuid */
  187. { 0, (sy_call_t *)nosys }, /* 166 = new_vm86 */
  188. { 0, (sy_call_t *)nosys }, /* 167 = query_module */
  189. { 0, (sy_call_t *)nosys }, /* 168 = poll */
  190. { 0, (sy_call_t *)nosys }, /* 169 = nfsservctl */
  191. { 0, (sy_call_t *)nosys }, /* 170 = setresgid */
  192. { 0, (sy_call_t *)nosys }, /* 171 = getresgid */
  193. { 0, (sy_call_t *)nosys }, /* 172 = prctl */
  194. { 0, (sy_call_t *)nosys }, /* 173 = rt_sigreturn */
  195. { 0, (sy_call_t *)nosys }, /* 174 = rt_sigaction */
  196. { 0, (sy_call_t *)nosys }, /* 175 = rt_sigprocmask */
  197. { 0, (sy_call_t *)nosys }, /* 176 = rt_sigpending */
  198. { 0, (sy_call_t *)nosys }, /* 177 = rt_sigtimedwait */
  199. { 0, (sy_call_t *)nosys }, /* 178 = rt_sigqueueinfo */
  200. { 0, (sy_call_t *)nosys }, /* 179 = rt_sigsuspend */
  201. { 0, (sy_call_t *)nosys }, /* 180 = pread */
  202. { 0, (sy_call_t *)nosys }, /* 181 = pwrite */
  203. { 3, (sy_call_t *)linux_chown }, /* 182 = linux_chown */
  204. };