systbl.S
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:12k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* $Id: systbl.S,v 1.11 2000/03/13 21:57:35 davem Exp $
  2.  * systbl.S: System call entry point table for Solaris compatibility.
  3.  *
  4.  * Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  5.  * Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
  6.  */
  7. #include <asm/unistd.h>
  8. /* Fall back to sys_call_table32 entry */
  9. #define CHAIN(name) __NR_##name
  10. /* Pass pt_regs pointer as first argument */
  11. #define REGS(name) name+1
  12. /* Hack till all be implemented */
  13. #define solaris_getpmsg solaris_unimplemented
  14. #define solaris_hrtsys solaris_unimplemented
  15. #define solaris_msgsys solaris_unimplemented
  16. #define solaris_putpmsg solaris_unimplemented
  17. #define solaris_semsys solaris_unimplemented
  18.         .data
  19.         .align  1024
  20. .globl solaris_sys_table
  21. solaris_sys_table:
  22. .word solaris_unimplemented /* nosys 0 */
  23. .word CHAIN(exit) /* exit d 1 */
  24. .word CHAIN(fork) /* fork 2 */
  25. .word CHAIN(read) /* read dpd 3 */
  26. .word CHAIN(write) /* write dpd 4 */
  27. .word solaris_open /* open soo 5 */
  28. .word CHAIN(close) /* close d 6 */
  29. .word solaris_wait /* wait xxx 7 */
  30. .word CHAIN(creat) /* creat so 8 */
  31. .word CHAIN(link) /* link ss 9 */
  32. .word CHAIN(unlink) /* unlink s 10 */
  33. .word solaris_unimplemented /* exec sxx 11 */
  34. .word CHAIN(chdir) /* chdir s 12 */
  35. .word CHAIN(time) /* time 13 */
  36. .word solaris_mknod /* mknod sox 14 */
  37. .word CHAIN(chmod) /* chmod so 15 */ 
  38. .word CHAIN(chown) /* chown sdd 16 */
  39. .word solaris_brk /* brk/break x 17 */
  40. .word solaris_stat /* stat sp 18 */
  41. .word CHAIN(lseek) /* seek/lseek ddd 19 */
  42. .word solaris_getpid /* getpid 20 */
  43. .word solaris_unimplemented /* mount 21 */
  44. .word CHAIN(umount) /* umount s 22 */
  45. .word CHAIN(setuid) /* setuid d 23 */
  46. .word solaris_getuid /* getuid 24 */
  47. .word CHAIN(stime) /* stime d 25 */
  48. #if 0
  49. .word solaris_ptrace /* ptrace xdxx 26 */
  50. #else
  51. .word CHAIN(ptrace) /* ptrace xdxx 26 */
  52. #endif
  53. .word CHAIN(alarm) /* alarm d 27 */
  54. .word solaris_fstat /* fstat dp 28 */
  55. .word CHAIN(pause) /* pause 29 */
  56. .word CHAIN(utime) /* utime xx 30 */
  57. .word solaris_unimplemented /* stty 31 */
  58. .word solaris_unimplemented /* gtty 32 */
  59. .word solaris_access /* access so 33 */
  60. .word CHAIN(nice) /* nice d 34 */
  61. .word solaris_statfs /* statfs spdd 35 */
  62. .word CHAIN(sync) /* sync 36 */
  63. .word solaris_kill /* kill dd 37 */
  64. .word solaris_fstatfs /* fstatfs dpdd 38 */
  65. .word solaris_procids /* pgrpsys ddd 39 */
  66. .word solaris_unimplemented /* xenix 40 */
  67. .word CHAIN(dup) /* dup d 41 */
  68. .word CHAIN(pipe) /* pipe 42 */
  69. .word CHAIN(times) /* times p 43 */
  70. .word 44 /*CHAIN(profil)*/ /* prof xxxx 44 */
  71. .word solaris_unimplemented /* lock/plock 45 */
  72. .word CHAIN(setgid) /* setgid d 46 */
  73. .word solaris_getgid /* getgid 47 */
  74. .word solaris_sigfunc /* sigfunc xx 48 */
  75. .word REGS(solaris_msgsys) /* msgsys dxddd 49 */
  76. .word solaris_unimplemented /* syssun/3b 50 */
  77. .word CHAIN(acct) /* acct/sysacct x 51 */
  78. .word solaris_shmsys /* shmsys ddxo 52 */
  79. .word REGS(solaris_semsys) /* semsys dddx 53 */
  80. .word solaris_ioctl /* ioctl dxx 54 */
  81. .word solaris_unimplemented /* uadmin xxx 55 */
  82. .word solaris_unimplemented /* reserved:exch 56 */
  83. .word solaris_utssys /* utssys x 57 */
  84. .word CHAIN(fsync) /* fsync d 58 */
  85. .word CHAIN(execve) /* execv spp 59 */
  86. .word CHAIN(umask) /* umask o 60 */
  87. .word CHAIN(chroot) /* chroot s 61 */
  88. .word solaris_fcntl /* fcntl dxx 62 */
  89. .word solaris_ulimit /* ulimit xx 63 */
  90. .word solaris_unimplemented /* ? 64 */
  91. .word solaris_unimplemented /* ? 65 */
  92. .word solaris_unimplemented /* ? 66 */
  93. .word solaris_unimplemented /* ? 67 */
  94. .word solaris_unimplemented /* ? 68 */
  95. .word solaris_unimplemented /* ? 69 */
  96. .word solaris_unimplemented /* advfs 70 */
  97. .word solaris_unimplemented /* unadvfs 71 */
  98. .word solaris_unimplemented /* rmount 72 */
  99. .word solaris_unimplemented /* rumount 73 */
  100. .word solaris_unimplemented /* rfstart 74 */
  101. .word solaris_unimplemented /* ? 75 */
  102. .word solaris_unimplemented /* rdebug 76 */
  103. .word solaris_unimplemented /* rfstop 77 */
  104. .word solaris_unimplemented /* rfsys 78 */
  105. .word CHAIN(rmdir) /* rmdir s 79 */
  106. .word CHAIN(mkdir) /* mkdir so 80 */
  107. .word CHAIN(getdents) /* getdents dxd 81 */
  108. .word solaris_unimplemented /* libattach 82 */
  109. .word solaris_unimplemented /* libdetach 83 */
  110. .word CHAIN(sysfs) /* sysfs dxx 84 */
  111. .word solaris_getmsg /* getmsg dxxx 85 */
  112. .word solaris_putmsg /* putmsg dxxd 86 */
  113. .word CHAIN(poll) /* poll xdd 87 */
  114. .word solaris_lstat /* lstat sp 88 */
  115. .word CHAIN(symlink) /* symlink ss 89 */
  116. .word CHAIN(readlink) /* readlink spd 90 */
  117. .word CHAIN(setgroups) /* setgroups dp 91 */
  118. .word CHAIN(getgroups) /* getgroups dp 92 */
  119. .word CHAIN(fchmod) /* fchmod do 93 */
  120. .word CHAIN(fchown) /* fchown ddd 94 */
  121. .word solaris_sigprocmask /* sigprocmask dxx 95 */
  122. .word solaris_sigsuspend /* sigsuspend x 96 */
  123. .word solaris_sigaltstack /* sigaltstack xx 97 */
  124. .word solaris_sigaction /* sigaction dxx 98 */
  125. .word solaris_sigpending /* sigpending dd 99 */
  126. .word REGS(solaris_context) /* context 100 */
  127. .word solaris_unimplemented /* evsys 101 */
  128. .word solaris_unimplemented /* evtrapret 102 */
  129. .word solaris_statvfs /* statvfs sp 103 */
  130. .word solaris_fstatvfs /* fstatvfs dp 104 */
  131. .word solaris_unimplemented /* unknown 105 */
  132. .word solaris_unimplemented /* nfssys 106 */
  133. .word solaris_waitid /* waitid ddxd 107 */
  134. .word solaris_unimplemented /* sigsendsys ddd 108 */
  135. .word REGS(solaris_hrtsys) /* hrtsys xxx 109 */
  136. .word solaris_unimplemented /* acancel dxd 110 */
  137. .word solaris_unimplemented /* async 111 */
  138. .word solaris_unimplemented /* priocntlsys 112 */
  139. .word solaris_pathconf /* pathconf sd 113 */
  140. .word CHAIN(mincore) /* mincore d 114 */
  141. .word solaris_mmap /* mmap xxxxdx 115 */
  142. .word CHAIN(mprotect) /* mprotect xdx 116 */
  143. .word CHAIN(munmap) /* munmap xd 117 */
  144. .word solaris_fpathconf /* fpathconf dd 118 */
  145. .word CHAIN(fork) /* fork 119 */
  146. .word solaris_unimplemented /* fchdir d 120 */
  147. .word CHAIN(readv) /* readv dxd 121 */
  148. .word CHAIN(writev) /* writev dxd 122 */
  149. .word solaris_xstat /* xstat dsx 123 */
  150. .word solaris_lxstat /* lxstat dsx 124 */
  151. .word solaris_fxstat /* fxstat ddx 125 */
  152. .word solaris_xmknod /* xmknod dsox 126 */
  153. .word solaris_unimplemented /* syslocal d 127 */
  154. .word solaris_setrlimit /* setrlimit dp 128 */
  155. .word solaris_getrlimit /* getrlimit dp 129 */
  156. .word CHAIN(chown) /* lchown sdd 130 */
  157. .word solaris_unimplemented /* memcntl 131 */
  158. .word solaris_getpmsg /* getpmsg dxxxx 132 */
  159. .word solaris_putpmsg /* putpmsg dxxdd 133 */
  160. .word CHAIN(rename) /* rename ss 134 */
  161. .word solaris_utsname /* uname x 135 */
  162. .word solaris_unimplemented /* setegid 136 */
  163. .word solaris_sysconf /* sysconfig d 137 */
  164. .word solaris_unimplemented /* adjtime 138 */
  165. .word solaris_sysinfo /* systeminfo dsd 139 */
  166. .word solaris_unimplemented /* ? 140 */
  167. .word solaris_unimplemented /* seteuid 141 */
  168. .word solaris_unimplemented /* ? 142 */
  169. .word solaris_unimplemented /* ? 143 */
  170. .word solaris_unimplemented /* secsys dx 144 */
  171. .word solaris_unimplemented /* filepriv sdxd 145 */
  172. .word solaris_unimplemented /* procpriv dxd 146 */
  173. .word solaris_unimplemented /* devstat sdx 147 */
  174. .word solaris_unimplemented /* aclipc ddddx 148 */
  175. .word solaris_unimplemented /* fdevstat ddx 149 */
  176. .word solaris_unimplemented /* flvlfile ddx 150 */
  177. .word solaris_unimplemented /* lvlfile sdx 151 */
  178. .word solaris_unimplemented /* ? 152 */
  179. .word solaris_unimplemented /* fchroot d 153 */
  180. .word solaris_unimplemented /* lvlproc dx 154 */
  181. .word solaris_unimplemented /* ? 155 */
  182. .word solaris_gettimeofday /* gettimeofday x 156 */
  183. .word CHAIN(getitimer) /* getitimer dx 157 */
  184. .word CHAIN(setitimer) /* setitimer dxx 158 */
  185. .word solaris_unimplemented /* lwp-xxx 159 */
  186. .word solaris_unimplemented /* lwp-xxx 160 */
  187. .word solaris_unimplemented /* lwp-xxx 161 */
  188. .word solaris_unimplemented /* lwp-xxx 162 */
  189. .word solaris_unimplemented /* lwp-xxx 163 */
  190. .word solaris_unimplemented /* lwp-xxx 164 */
  191. .word solaris_unimplemented /* lwp-xxx 165 */
  192. .word solaris_unimplemented /* lwp-xxx 166 */
  193. .word solaris_unimplemented /* lwp-xxx 167 */
  194. .word solaris_unimplemented /* lwp-xxx 168 */
  195. .word solaris_unimplemented /* lwp-xxx 169 */
  196. .word solaris_unimplemented /* lwp-xxx 170 */
  197. .word solaris_unimplemented /* lwp-xxx 171 */
  198. .word solaris_unimplemented /* lwp-xxx 172 */
  199. .word solaris_pread /* pread dpdd 173 */
  200. .word solaris_pwrite /* pwrite dpdd 174 */
  201. .word REGS(solaris_llseek) /* llseek dLd 175 */
  202. .word solaris_unimplemented /* lwpself 176 */
  203. .word solaris_unimplemented /* lwpinfo 177 */
  204. .word solaris_unimplemented /* lwpprivate 178 */
  205. .word solaris_unimplemented /* processorbind 179 */
  206. .word solaris_unimplemented /* processorexbind 180 */
  207. .word solaris_unimplemented /*  181 */
  208. .word solaris_unimplemented /* sync_mailbox 182 */
  209. .word solaris_unimplemented /* prepblock 183 */
  210. .word solaris_unimplemented /* block 184 */
  211. .word solaris_acl /* acl sddp 185 */
  212. .word solaris_unimplemented /* unblock 186 */
  213. .word solaris_unimplemented /* cancelblock 187 */
  214. .word solaris_unimplemented /* ? 188 */
  215. .word solaris_unimplemented /* xxxxx 189 */
  216. .word solaris_unimplemented /* xxxxxe 190 */
  217. .word solaris_unimplemented /* 191 */
  218. .word solaris_unimplemented /* 192 */
  219. .word solaris_unimplemented /* 193 */
  220. .word solaris_unimplemented /* 194 */
  221. .word solaris_unimplemented /*  195 */
  222. .word solaris_unimplemented /*  196 */
  223. .word solaris_unimplemented /*  197 */
  224. .word solaris_unimplemented /*  198 */
  225. .word CHAIN(nanosleep) /* nanosleep dd 199 */
  226. .word solaris_facl /* facl dddp 200 */
  227. .word solaris_unimplemented /*  201 */
  228. .word CHAIN(setreuid) /* setreuid dd 202 */
  229. .word CHAIN(setregid) /* setregid dd 203 */
  230. .word solaris_unimplemented /*  204 */
  231. .word solaris_unimplemented /*  205 */
  232. .word solaris_unimplemented /*  206 */
  233. .word solaris_unimplemented /*  207 */
  234. .word solaris_unimplemented /*  208 */
  235. .word solaris_unimplemented /*  209 */
  236. .word solaris_unimplemented /*  210 */
  237. .word solaris_unimplemented /*  211 */
  238. .word solaris_unimplemented /*  212 */
  239. .word solaris_getdents64 /* getdents64 dpd 213 */
  240. .word REGS(solaris_mmap64) /* mmap64 xxxxdX 214 */
  241. .word solaris_stat64 /* stat64 sP 215 */
  242. .word solaris_lstat64 /* lstat64 sP 216 */
  243. .word solaris_fstat64 /* fstat64 dP 217 */
  244. .word solaris_statvfs64 /* statvfs64 sP 218 */
  245. .word solaris_fstatvfs64 /* fstatvfs64 dP 219 */
  246. .word solaris_setrlimit64 /* setrlimit64 dP 220 */
  247. .word solaris_getrlimit64 /* getrlimit64 dP 221 */
  248. .word CHAIN(pread) /* pread64 dpdD 222 */
  249. .word CHAIN(pwrite) /* pwrite64 dpdD 223 */
  250. .word CHAIN(creat) /* creat64 so 224 */
  251. .word solaris_open /* open64 soo 225 */
  252. .word solaris_unimplemented /*  226 */
  253. .word solaris_unimplemented /*  227 */
  254. .word solaris_unimplemented /*  228 */
  255. .word solaris_unimplemented /*  229 */
  256. .word solaris_socket /* socket ddd 230 */
  257. .word solaris_socketpair /* socketpair dddp 231 */
  258. .word solaris_bind /* bind dpd 232 */
  259. .word solaris_listen /* listen dd 233 */
  260. .word solaris_accept /* accept dpp 234 */
  261. .word solaris_connect /* connect dpd 235 */
  262. .word solaris_shutdown /* shutdown dd 236 */
  263. .word solaris_recv /* recv dpdd 237 */
  264. .word solaris_recvfrom /* recvfrom dpddpp 238 */
  265. .word solaris_recvmsg /* recvmsg dpd 239 */
  266. .word solaris_send /* send dpdd 240 */
  267. .word solaris_sendmsg /* sendmsg dpd 241 */
  268. .word solaris_sendto /* sendto dpddpd 242 */
  269. .word solaris_getpeername /* getpeername dpp 243 */
  270. .word solaris_getsockname /* getsockname dpp 244 */
  271. .word solaris_getsockopt /* getsockopt dddpp 245 */
  272. .word solaris_setsockopt /* setsockopt dddpp 246 */
  273. .word solaris_unimplemented /*  247 */
  274. .word solaris_ntp_gettime /* ntp_gettime p 248 */
  275. .word solaris_ntp_adjtime /* ntp_adjtime p 249 */
  276. .word solaris_unimplemented /*  250 */
  277. .word solaris_unimplemented /*  251 */
  278. .word solaris_unimplemented /*  252 */
  279. .word solaris_unimplemented /*  253 */
  280. .word solaris_unimplemented /*  254 */
  281. .word solaris_unimplemented /*  255 */