1 struct syscall_info { 2 int num_params; 3 const char *name; 4 }; 5 6 struct syscall_info syscall_info_table[]={ 7 { 0, "setup" }, /* 0 */ 8 { 1, "_exit" }, /* 1 */ 9 { 0, "fork" }, /* 2 */ 10 { 3, "read" }, /* 3 */ 11 { 3, "write" }, /* 4 */ 12 { 3, "open" }, /* 5 */ 13 { 1, "close" }, /* 6 */ 14 { 3, "waitpid" }, /* 7 */ 15 { 2, "creat" }, /* 8 */ 16 { 2, "link" }, /* 9 */ 17 { 1, "unlink" }, /* 10 */ 18 { 3, "execve" }, /* 11 */ 19 { 1, "chdir" }, /* 12 */ 20 { 1, "time" }, /* 13 */ 21 { 3, "mknod" }, /* 14 */ 22 { 2, "chmod" }, /* 15 */ 23 { 3, "lchown" }, /* 16 */ 24 { 0, "break" }, /* 17 */ 25 { 2, "oldstat" }, /* 18 */ 26 { 3, "lseek" }, /* 19 */ 27 { 0, "getpid" }, /* 20 */ 28 { 5, "mount" }, /* 21 */ 29 { 1, "oldumount" }, /* 22 */ 30 { 1, "setuid" }, /* 23 */ 31 { 0, "getuid" }, /* 24 */ 32 { 1, "stime" }, /* 25 */ 33 { 4, "ptrace" }, /* 26 */ 34 { 1, "alarm" }, /* 27 */ 35 { 2, "oldfstat" }, /* 28 */ 36 { 0, "pause" }, /* 29 */ 37 { 2, "utime" }, /* 30 */ 38 { 2, "stty" }, /* 31 */ 39 { 2, "gtty" }, /* 32 */ 40 { 2, "access" }, /* 33 */ 41 { 1, "nice" }, /* 34 */ 42 { 0, "ftime" }, /* 35 */ 43 { 0, "sync" }, /* 36 */ 44 { 2, "kill" }, /* 37 */ 45 { 2, "rename" }, /* 38 */ 46 { 2, "mkdir" }, /* 39 */ 47 { 1, "rmdir" }, /* 40 */ 48 { 1, "dup" }, /* 41 */ 49 { 1, "pipe" }, /* 42 */ 50 { 1, "times" }, /* 43 */ 51 { 0, "prof" }, /* 44 */ 52 { 1, "brk" }, /* 45 */ 53 { 1, "setgid" }, /* 46 */ 54 { 0, "getgid" }, /* 47 */ 55 { 3, "signal" }, /* 48 */ 56 { 0, "geteuid" }, /* 49 */ 57 { 0, "getegid" }, /* 50 */ 58 { 1, "acct" }, /* 51 */ 59 { 2, "umount" }, /* 52 */ 60 { 0, "lock" }, /* 53 */ 61 { 3, "ioctl" }, /* 54 */ 62 { 3, "fcntl" }, /* 55 */ 63 { 0, "mpx" }, /* 56 */ 64 { 2, "setpgid" }, /* 57 */ 65 { 2, "ulimit" }, /* 58 */ 66 { 1, "oldolduname" }, /* 59 */ 67 { 1, "umask" }, /* 60 */ 68 { 1, "chroot" }, /* 61 */ 69 { 2, "ustat" }, /* 62 */ 70 { 2, "dup2" }, /* 63 */ 71 { 0, "getppid" }, /* 64 */ 72 { 0, "getpgrp" }, /* 65 */ 73 { 0, "setsid" }, /* 66 */ 74 { 3, "sigaction" }, /* 67 */ 75 { 0, "siggetmask" }, /* 68 */ 76 { 1, "sigsetmask" }, /* 69 */ 77 { 2, "setreuid" }, /* 70 */ 78 { 2, "setregid" }, /* 71 */ 79 { 3, "sigsuspend" }, /* 72 */ 80 { 1, "sigpending" }, /* 73 */ 81 { 2, "sethostname" }, /* 74 */ 82 { 2, "setrlimit" }, /* 75 */ 83 { 2, "getrlimit" }, /* 76 */ 84 { 2, "getrusage" }, /* 77 */ 85 { 2, "gettimeofday" }, /* 78 */ 86 { 2, "settimeofday" }, /* 79 */ 87 { 2, "getgroups" }, /* 80 */ 88 { 2, "setgroups" }, /* 81 */ 89 { 1, "oldselect" }, /* 82 */ 90 { 2, "symlink" }, /* 83 */ 91 { 2, "oldlstat" }, /* 84 */ 92 { 3, "readlink" }, /* 85 */ 93 { 1, "uselib" }, /* 86 */ 94 { 1, "swapon" }, /* 87 */ 95 { 3, "reboot" }, /* 88 */ 96 { 3, "readdir" }, /* 89 */ 97 { 6, "old_mmap" }, /* 90 */ 98 { 2, "munmap" }, /* 91 */ 99 { 2, "truncate" }, /* 92 */ 100 { 2, "ftruncate" }, /* 93 */ 101 { 2, "fchmod" }, /* 94 */ 102 { 3, "fchown" }, /* 95 */ 103 { 2, "getpriority" }, /* 96 */ 104 { 3, "setpriority" }, /* 97 */ 105 { 4, "profil" }, /* 98 */ 106 { 2, "statfs" }, /* 99 */ 107 { 2, "fstatfs" }, /* 100 */ 108 { 3, "ioperm" }, /* 101 */ 109 { 2, "socketcall" }, /* 102 */ 110 { 3, "syslog" }, /* 103 */ 111 { 3, "setitimer" }, /* 104 */ 112 { 2, "getitimer" }, /* 105 */ 113 { 2, "stat" }, /* 106 */ 114 { 2, "lstat" }, /* 107 */ 115 { 2, "fstat" }, /* 108 */ 116 { 1, "olduname" }, /* 109 */ 117 { 1, "iopl" }, /* 110 */ 118 { 0, "vhangup" }, /* 111 */ 119 { 0, "idle" }, /* 112 */ 120 { 1, "vm86old" }, /* 113 */ 121 { 4, "wait4" }, /* 114 */ 122 { 1, "swapoff" }, /* 115 */ 123 { 1, "sysinfo" }, /* 116 */ 124 { 5, "ipc" }, /* 117 */ 125 { 1, "fsync" }, /* 118 */ 126 { 1, "sigreturn" }, /* 119 */ 127 { 2, "clone" }, /* 120 */ 128 { 2, "setdomainname" }, /* 121 */ 129 { 1, "uname" }, /* 122 */ 130 { 3, "modify_ldt" }, /* 123 */ 131 { 1, "adjtimex" }, /* 124 */ 132 { 3, "mprotect" }, /* 125 */ 133 { 3, "sigprocmask" }, /* 126 */ 134 { 2, "create_module" }, /* 127 */ 135 { 2, "init_module" }, /* 128 */ 136 { 1, "delete_module" }, /* 129 */ 137 { 1, "get_kernel_syms"}, /* 130 */ 138 { 4, "quotactl" }, /* 131 */ 139 { 1, "getpgid" }, /* 132 */ 140 { 1, "fchdir" }, /* 133 */ 141 { 0, "bdflush" }, /* 134 */ 142 { 3, "sysfs" }, /* 135 */ 143 { 1, "personality" }, /* 136 */ 144 { 5, "afs_syscall" }, /* 137 */ 145 { 1, "setfsuid" }, /* 138 */ 146 { 1, "setfsgid" }, /* 139 */ 147 { 5, "_llseek" }, /* 140 */ 148 { 3, "getdents" }, /* 141 */ 149 { 5, "select" }, /* 142 */ 150 { 2, "flock" }, /* 143 */ 151 { 3, "msync" }, /* 144 */ 152 { 3, "readv" }, /* 145 */ 153 { 3, "writev" }, /* 146 */ 154 { 1, "getsid" }, /* 147 */ 155 { 1, "fdatasync" }, /* 148 */ 156 { 1, "_sysctl" }, /* 149 */ 157 { 1, "mlock" }, /* 150 */ 158 { 2, "munlock" }, /* 151 */ 159 { 2, "mlockall" }, /* 152 */ 160 { 1, "munlockall" }, /* 153 */ 161 { 0, "sched_setparam"}, /* 154 */ 162 { 2, "sched_getparam"}, /* 155 */ 163 { 3, "sched_setscheduler"}, /* 156 */ 164 { 1, "sched_getscheduler"}, /* 157 */ 165 { 0, "sched_yield"}, /* 158 */ 166 { 1, "sched_get_priority_max"}, /* 159 */ 167 { 1, "sched_get_priority_min"}, /* 160 */ 168 { 2, "sched_rr_get_interval"}, /* 161 */ 169 { 2, "nanosleep" }, /* 162 */ 170 { 4, "mremap" }, /* 163 */ 171 { 3, "setresuid" }, /* 164 */ 172 { 3, "getresuid" }, /* 165 */ 173 { 5, "vm86" }, /* 166 */ 174 { 5, "query_module" }, /* 167 */ 175 { 3, "poll" }, /* 168 */ 176 { 3, "nfsservctl" }, /* 169 */ 177 { 3, "setresgid" }, /* 170 */ 178 { 3, "getresgid" }, /* 171 */ 179 { 5, "prctl" }, /* 172 */ 180 { 1, "rt_sigreturn" }, /* 173 */ 181 { 4, "rt_sigaction" }, /* 174 */ 182 { 4, "rt_sigprocmask"}, /* 175 */ 183 { 2, "rt_sigpending" }, /* 176 */ 184 { 4, "rt_sigtimedwait"}, /* 177 */ 185 { 3, "rt_sigqueueinfo"}, /* 178 */ 186 { 2, "rt_sigsuspend" }, /* 179 */ 187 188 { 5, "pread" }, /* 180 */ 189 { 5, "pwrite" }, /* 181 */ 190 { 3, "chown" }, /* 182 */ 191 { 2, "getcwd" }, /* 183 */ 192 { 2, "capget" }, /* 184 */ 193 { 2, "capset" }, /* 185 */ 194 { 2, "sigaltstack" }, /* 186 */ 195 { 4, "sendfile" }, /* 187 */ 196 { 5, "SYS_188" }, /* 188 */ 197 { 5, "SYS_189" }, /* 189 */ 198 { 0, "vfork" }, /* 190 */ 199 { 5, "getrlimit" }, /* 191 */ 200 { 6, "mmap2" }, /* 192 */ 201 { 5, "truncate64" }, /* 193 */ 202 { 5, "ftruncate64" }, /* 194 */ 203 { 2, "stat64" }, /* 195 */ 204 { 2, "lstat64" }, /* 196 */ 205 { 2, "fstat64" }, /* 197 */ 206 { 3, "lchown32" }, /* 198 */ 207 { 0, "getuid32" }, /* 199 */ 208 209 { 0, "getgid32" }, /* 200 */ 210 { 0, "geteuid32" }, /* 201 */ 211 { 0, "getegid32" }, /* 202 */ 212 { 2, "setreuid32" }, /* 203 */ 213 { 2, "setregid32" }, /* 204 */ 214 { 2, "getgroups32" }, /* 205 */ 215 { 2, "setgroups32" }, /* 206 */ 216 { 3, "fchown32" }, /* 207 */ 217 { 3, "setresuid32" }, /* 208 */ 218 { 3, "getresuid32" }, /* 209 */ 219 { 3, "setresgid32" }, /* 210 */ 220 { 3, "getsetgid32" }, /* 211 */ 221 { 3, "chown32" }, /* 212 */ 222 { 1, "setuid32" }, /* 213 */ 223 { 1, "setgid32" }, /* 214 */ 224 { 1, "setfsuid32" }, /* 215 */ 225 { 1, "setfsgid32" }, /* 216 */ 226 { 2, "pivot_root" }, /* 217 */ 227 { 3, "mincore" }, /* 218 */ 228 { 3, "madvise" }, /* 219 */ 229 { 4, "getdents64" }, /* 220 */ 230 { 3, "fcntl64" }, /* 221 */ 231 { 4, "SYS_222" }, /* 222 */ 232 { 4, "SYS_223" }, /* 223 */ 233 { 4, "SYS_224" }, /* 224 */ 234 { 5, "SYS_225" }, /* 225 */ 235 { 5, "SYS_226" }, /* 226 */ 236 { 5, "SYS_227" }, /* 227 */ 237 { 5, "SYS_228" }, /* 228 */ 238 { 5, "SYS_229" }, /* 229 */ 239 { 8, "socket_subcall"}, /* 230 */ 240 { 3, "socket" }, /* 231 */ 241 { 3, "bind" }, /* 232 */ 242 { 3, "connect" }, /* 233 */ 243 { 2, "listen" }, /* 234 */ 244 { 3, "accept" }, /* 235 */ 245 { 3, "getsockname" }, /* 236 */ 246 { 3, "getpeername" }, /* 237 */ 247 { 4, "socketpair" }, /* 238 */ 248 { 4, "send" }, /* 239 */ 249 { 4, "recv" }, /* 240 */ 250 { 6, "sendto" }, /* 241 */ 251 { 6, "recvfrom" }, /* 242 */ 252 { 2, "shutdown" }, /* 243 */ 253 { 5, "setsockopt" }, /* 244 */ 254 { 5, "getsockopt" }, /* 245 */ 255 { 5, "sendmsg" }, /* 246 */ 256 { 5, "recvmsg" }, /* 247 */ 257 { 5, "SYS_248" }, /* 248 */ 258 { 5, "SYS_249" }, /* 249 */ 259 { 4, "ipc_subcall" }, /* 250 */ 260 { 4, "semop" }, /* 251 */ 261 { 4, "semget" }, /* 252 */ 262 { 4, "semctl" }, /* 253 */ 263 { 4, "ipc_subcall" }, /* 254 */ 264 { 4, "ipc_subcall" }, /* 255 */ 265 { 4, "ipc_subcall" }, /* 256 */ 266 { 4, "ipc_subcall" }, /* 257 */ 267 { 4, "ipc_subcall" }, /* 258 */ 268 { 4, "ipc_subcall" }, /* 259 */ 269 { 4, "ipc_subcall" }, /* 260 */ 270 { 4, "msgsnd" }, /* 261 */ 271 { 4, "msgrcv" }, /* 262 */ 272 { 4, "msgget" }, /* 263 */ 273 { 4, "msgctl" }, /* 264 */ 274 { 4, "ipc_subcall" }, /* 265 */ 275 { 4, "ipc_subcall" }, /* 266 */ 276 { 4, "ipc_subcall" }, /* 267 */ 277 { 4, "ipc_subcall" }, /* 268 */ 278 { 4, "ipc_subcall" }, /* 269 */ 279 { 4, "ipc_subcall" }, /* 270 */ 280 { 4, "shmat" }, /* 271 */ 281 { 4, "shmdt" }, /* 272 */ 282 { 4, "shmget" }, /* 273 */ 283 { 4, "shmctl" }, /* 274 */ 284 { 5, "SYS_275" }, /* 275 */ 285 { 5, "SYS_276" }, /* 276 */ 286 { 5, "SYS_277" }, /* 277 */ 287 { 5, "SYS_278" }, /* 278 */ 288 { 5, "SYS_279" }, /* 279 */ 289 { 8, "socket_subcall"}, /* 280 */ 290 { 3, "socket" }, /* 281 */ 291 { 3, "bind" }, /* 282 */ 292 { 3, "connect" }, /* 283 */ 293 { 2, "listen" }, /* 284 */ 294 { 3, "accept" }, /* 285 */ 295 { 3, "getsockname" }, /* 286 */ 296 { 3, "getpeername" }, /* 287 */ 297 { 4, "socketpair" }, /* 288 */ 298 { 4, "send" }, /* 289 */ 299 { 4, "recv" }, /* 290 */ 300 { 6, "sendto" }, /* 291 */ 301 { 6, "recvfrom" }, /* 292 */ 302 { 2, "shutdown" }, /* 293 */ 303 { 5, "setsockopt" }, /* 294 */ 304 { 5, "getsockopt" }, /* 295 */ 305 { 5, "sendmsg" }, /* 296 */ 306 { 5, "recvmsg" }, /* 297 */ 307 { 5, "SYS_298" }, /* 298 */ 308 { 5, "SYS_299" }, /* 299 */ 309 }; 310 311 #define NUM_SYSCALL_INFO_ENTRIES (sizeof(syscall_info_table)/sizeof(struct syscall_info)) 312