C++程序  |  343行  |  15.13 KB

/*
 * This file is part of ltrace.
 * Copyright (C) 2006 Ian Wienand
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

	"restart_syscall",                 /* 0 */
	"exit",                            /* 1 */
	"fork",                            /* 2 */
	"read",                            /* 3 */
	"write",                           /* 4 */
	"open",                            /* 5 */
	"close",                           /* 6 */
	"7",                               /* 7 */
	"creat",                           /* 8 */
	"link",                            /* 9 */
	"unlink",                          /* 10 */
	"execve",                          /* 11 */
	"chdir",                           /* 12 */
	"time",                            /* 13 */
	"mknod",                           /* 14 */
	"chmod",                           /* 15 */
	"lchown",                          /* 16 */
	"17",                              /* 17 */
	"18",                              /* 18 */
	"lseek",                           /* 19 */
	"getpid",                          /* 20 */
	"mount",                           /* 21 */
	"umount",                          /* 22 */
	"setuid",                          /* 23 */
	"getuid",                          /* 24 */
	"stime",                           /* 25 */
	"ptrace",                          /* 26 */
	"alarm",                           /* 27 */
	"28",                              /* 28 */
	"pause",                           /* 29 */
	"utime",                           /* 30 */
	"31",                              /* 31 */
	"32",                              /* 32 */
	"access",                          /* 33 */
	"nice",                            /* 34 */
	"35",                              /* 35 */
	"sync",                            /* 36 */
	"kill",                            /* 37 */
	"rename",                          /* 38 */
	"mkdir",                           /* 39 */
	"rmdir",                           /* 40 */
	"dup",                             /* 41 */
	"pipe",                            /* 42 */
	"times",                           /* 43 */
	"44",                              /* 44 */
	"brk",                             /* 45 */
	"setgid",                          /* 46 */
	"getgid",                          /* 47 */
	"48",                              /* 48 */
	"geteuid",                         /* 49 */
	"getegid",                         /* 50 */
	"acct",                            /* 51 */
	"umount2",                         /* 52 */
	"53",                              /* 53 */
	"ioctl",                           /* 54 */
	"fcntl",                           /* 55 */
	"56",                              /* 56 */
	"setpgid",                         /* 57 */
	"58",                              /* 58 */
	"59",                              /* 59 */
	"umask",                           /* 60 */
	"chroot",                          /* 61 */
	"ustat",                           /* 62 */
	"dup2",                            /* 63 */
	"getppid",                         /* 64 */
	"getpgrp",                         /* 65 */
	"setsid",                          /* 66 */
	"sigaction",                       /* 67 */
	"68",                              /* 68 */
	"69",                              /* 69 */
	"setreuid",                        /* 70 */
	"setregid",                        /* 71 */
	"sigsuspend",                      /* 72 */
	"sigpending",                      /* 73 */
	"sethostname",                     /* 74 */
	"setrlimit",                       /* 75 */
	"getrlimit",                       /* 76 */
	"getrusage",                       /* 77 */
	"gettimeofday",                    /* 78 */
	"settimeofday",                    /* 79 */
	"getgroups",                       /* 80 */
	"setgroups",                       /* 81 */
	"select",                          /* 82 */
	"symlink",                         /* 83 */
	"84",                              /* 84 */
	"readlink",                        /* 85 */
	"uselib",                          /* 86 */
	"swapon",                          /* 87 */
	"reboot",                          /* 88 */
	"readdir",                         /* 89 */
	"mmap",                            /* 90 */
	"munmap",                          /* 91 */
	"truncate",                        /* 92 */
	"ftruncate",                       /* 93 */
	"fchmod",                          /* 94 */
	"fchown",                          /* 95 */
	"getpriority",                     /* 96 */
	"setpriority",                     /* 97 */
	"98",                              /* 98 */
	"statfs",                          /* 99 */
	"fstatfs",                         /* 100 */
	"101",                             /* 101 */
	"socketcall",                      /* 102 */
	"syslog",                          /* 103 */
	"setitimer",                       /* 104 */
	"getitimer",                       /* 105 */
	"stat",                            /* 106 */
	"lstat",                           /* 107 */
	"fstat",                           /* 108 */
	"109",                             /* 109 */
	"110",                             /* 110 */
	"vhangup",                         /* 111 */
	"112",                             /* 112 */
	"syscall",                         /* 113 */
	"wait4",                           /* 114 */
	"swapoff",                         /* 115 */
	"sysinfo",                         /* 116 */
	"ipc",                             /* 117 */
	"fsync",                           /* 118 */
	"sigreturn",                       /* 119 */
	"clone",                           /* 120 */
	"setdomainname",                   /* 121 */
	"uname",                           /* 122 */
	"123",                             /* 123 */
	"adjtimex",                        /* 124 */
	"mprotect",                        /* 125 */
	"sigprocmask",                     /* 126 */
	"127",                             /* 127 */
	"init_module",                     /* 128 */
	"delete_module",                   /* 129 */
	"130",                             /* 130 */
	"quotactl",                        /* 131 */
	"getpgid",                         /* 132 */
	"fchdir",                          /* 133 */
	"bdflush",                         /* 134 */
	"sysfs",                           /* 135 */
	"personality",                     /* 136 */
	"137",                             /* 137 */
	"setfsuid",                        /* 138 */
	"setfsgid",                        /* 139 */
	"_llseek",                         /* 140 */
	"getdents",                        /* 141 */
	"_newselect",                      /* 142 */
	"flock",                           /* 143 */
	"msync",                           /* 144 */
	"readv",                           /* 145 */
	"writev",                          /* 146 */
	"getsid",                          /* 147 */
	"fdatasync",                       /* 148 */
	"_sysctl",                         /* 149 */
	"mlock",                           /* 150 */
	"munlock",                         /* 151 */
	"mlockall",                        /* 152 */
	"munlockall",                      /* 153 */
	"sched_setparam",                  /* 154 */
	"sched_getparam",                  /* 155 */
	"sched_setscheduler",              /* 156 */
	"sched_getscheduler",              /* 157 */
	"sched_yield",                     /* 158 */
	"sched_get_priority_max",          /* 159 */
	"sched_get_priority_min",          /* 160 */
	"sched_rr_get_interval",           /* 161 */
	"nanosleep",                       /* 162 */
	"mremap",                          /* 163 */
	"setresuid",                       /* 164 */
	"getresuid",                       /* 165 */
	"166",                             /* 166 */
	"167",                             /* 167 */
	"poll",                            /* 168 */
	"nfsservctl",                      /* 169 */
	"setresgid",                       /* 170 */
	"getresgid",                       /* 171 */
	"prctl",                           /* 172 */
	"rt_sigreturn",                    /* 173 */
	"rt_sigaction",                    /* 174 */
	"rt_sigprocmask",                  /* 175 */
	"rt_sigpending",                   /* 176 */
	"rt_sigtimedwait",                 /* 177 */
	"rt_sigqueueinfo",                 /* 178 */
	"rt_sigsuspend",                   /* 179 */
	"pread64",                         /* 180 */
	"pwrite64",                        /* 181 */
	"chown",                           /* 182 */
	"getcwd",                          /* 183 */
	"capget",                          /* 184 */
	"capset",                          /* 185 */
	"sigaltstack",                     /* 186 */
	"sendfile",                        /* 187 */
	"188",                             /* 188 */
	"189",                             /* 189 */
	"vfork",                           /* 190 */
	"ugetrlimit",                      /* 191 */
	"mmap2",                           /* 192 */
	"truncate64",                      /* 193 */
	"ftruncate64",                     /* 194 */
	"stat64",                          /* 195 */
	"lstat64",                         /* 196 */
	"fstat64",                         /* 197 */
	"lchown32",                        /* 198 */
	"getuid32",                        /* 199 */
	"getgid32",                        /* 200 */
	"geteuid32",                       /* 201 */
	"getegid32",                       /* 202 */
	"setreuid32",                      /* 203 */
	"setregid32",                      /* 204 */
	"getgroups32",                     /* 205 */
	"setgroups32",                     /* 206 */
	"fchown32",                        /* 207 */
	"setresuid32",                     /* 208 */
	"getresuid32",                     /* 209 */
	"setresgid32",                     /* 210 */
	"getresgid32",                     /* 211 */
	"chown32",                         /* 212 */
	"setuid32",                        /* 213 */
	"setgid32",                        /* 214 */
	"setfsuid32",                      /* 215 */
	"setfsgid32",                      /* 216 */
	"getdents64",                      /* 217 */
	"pivot_root",                      /* 218 */
	"mincore",                         /* 219 */
	"madvise",                         /* 220 */
	"fcntl64",                         /* 221 */
	"222",                             /* 222 */
	"223",                             /* 223 */
	"gettid",                          /* 224 */
	"readahead",                       /* 225 */
	"setxattr",                        /* 226 */
	"lsetxattr",                       /* 227 */
	"fsetxattr",                       /* 228 */
	"getxattr",                        /* 229 */
	"lgetxattr",                       /* 230 */
	"fgetxattr",                       /* 231 */
	"listxattr",                       /* 232 */
	"llistxattr",                      /* 233 */
	"flistxattr",                      /* 234 */
	"removexattr",                     /* 235 */
	"lremovexattr",                    /* 236 */
	"fremovexattr",                    /* 237 */
	"tkill",                           /* 238 */
	"sendfile64",                      /* 239 */
	"futex",                           /* 240 */
	"sched_setaffinity",               /* 241 */
	"sched_getaffinity",               /* 242 */
	"io_setup",                        /* 243 */
	"io_destroy",                      /* 244 */
	"io_getevents",                    /* 245 */
	"io_submit",                       /* 246 */
	"io_cancel",                       /* 247 */
	"exit_group",                      /* 248 */
	"lookup_dcookie",                  /* 249 */
	"epoll_create",                    /* 250 */
	"epoll_ctl",                       /* 251 */
	"epoll_wait",                      /* 252 */
	"remap_file_pages",                /* 253 */
	"254",                             /* 254 */
	"255",                             /* 255 */
	"set_tid_address",                 /* 256 */
	"timer_create",                    /* 257 */
	"timer_settime",                   /* 258 */
	"timer_gettime",                   /* 259 */
	"timer_getoverrun",                /* 260 */
	"timer_delete",                    /* 261 */
	"clock_settime",                   /* 262 */
	"clock_gettime",                   /* 263 */
	"clock_getres",                    /* 264 */
	"clock_nanosleep",                 /* 265 */
	"statfs64",                        /* 266 */
	"fstatfs64",                       /* 267 */
	"tgkill",                          /* 268 */
	"utimes",                          /* 269 */
	"arm_fadvise64_64",                /* 270 */
	"pciconfig_iobase",                /* 271 */
	"pciconfig_read",                  /* 272 */
	"pciconfig_write",                 /* 273 */
	"mq_open",                         /* 274 */
	"mq_unlink",                       /* 275 */
	"mq_timedsend",                    /* 276 */
	"mq_timedreceive",                 /* 277 */
	"mq_notify",                       /* 278 */
	"mq_getsetattr",                   /* 279 */
	"waitid",                          /* 280 */
	"socket",                          /* 281 */
	"bind",                            /* 282 */
	"connect",                         /* 283 */
	"listen",                          /* 284 */
	"accept",                          /* 285 */
	"getsockname",                     /* 286 */
	"getpeername",                     /* 287 */
	"socketpair",                      /* 288 */
	"send",                            /* 289 */
	"sendto",                          /* 290 */
	"recv",                            /* 291 */
	"recvfrom",                        /* 292 */
	"shutdown",                        /* 293 */
	"setsockopt",                      /* 294 */
	"getsockopt",                      /* 295 */
	"sendmsg",                         /* 296 */
	"recvmsg",                         /* 297 */
	"semop",                           /* 298 */
	"semget",                          /* 299 */
	"semctl",                          /* 300 */
	"msgsnd",                          /* 301 */
	"msgrcv",                          /* 302 */
	"msgget",                          /* 303 */
	"msgctl",                          /* 304 */
	"shmat",                           /* 305 */
	"shmdt",                           /* 306 */
	"shmget",                          /* 307 */
	"shmctl",                          /* 308 */
	"add_key",                         /* 309 */
	"request_key",                     /* 310 */
	"keyctl",                          /* 311 */
	"semtimedop",                      /* 312 */
	"vserver",                         /* 313 */
	"ioprio_set",                      /* 314 */
	"ioprio_get",                      /* 315 */
	"inotify_init",                    /* 316 */
	"inotify_add_watch",               /* 317 */
	"inotify_rm_watch",                /* 318 */
	"mbind",                           /* 319 */
	"get_mempolicy",                   /* 320 */
	"set_mempolicy",                   /* 321 */