00001 // 00002 // Copyright (c) 2005-2008 Kenichi Watanabe. 00003 // Copyright (c) 2005-2008 Yasuhiro Watari. 00004 // Copyright (c) 2005-2008 Hironori Ichibayashi. 00005 // Copyright (c) 2008-2009 Kazuo Horio. 00006 // Copyright (c) 2009-2013 Naruki Kurata. 00007 // Copyright (c) 2005-2013 Ryota Shioya. 00008 // Copyright (c) 2005-2013 Masahiro Goshima. 00009 // 00010 // This software is provided 'as-is', without any express or implied 00011 // warranty. In no event will the authors be held liable for any damages 00012 // arising from the use of this software. 00013 // 00014 // Permission is granted to anyone to use this software for any purpose, 00015 // including commercial applications, and to alter it and redistribute it 00016 // freely, subject to the following restrictions: 00017 // 00018 // 1. The origin of this software must not be misrepresented; you must not 00019 // claim that you wrote the original software. If you use this software 00020 // in a product, an acknowledgment in the product documentation would be 00021 // appreciated but is not required. 00022 // 00023 // 2. Altered source versions must be plainly marked as such, and must not be 00024 // misrepresented as being the original software. 00025 // 00026 // 3. This notice may not be removed or altered from any source 00027 // distribution. 00028 // 00029 // 00030 00031 00032 #ifndef __ALPHALINUX_SYSCALLID_H__ 00033 #define __ALPHALINUX_SYSCALLID_H__ 00034 00035 namespace Onikiri { 00036 namespace AlphaLinux { 00037 00038 namespace SyscallID { 00039 const int syscall_id_osf_syscall = 0; 00040 const int syscall_id_exit = 1; 00041 const int syscall_id_fork = 2; 00042 const int syscall_id_read = 3; 00043 const int syscall_id_write = 4; 00044 00045 const int syscall_id_close = 6; 00046 00047 const int syscall_id_link = 9; 00048 const int syscall_id_unlink = 10; 00049 00050 const int syscall_id_chdir = 12; 00051 const int syscall_id_fchdir = 13; 00052 00053 const int syscall_id_chmod = 15; 00054 const int syscall_id_chown = 16; 00055 const int syscall_id_brk = 17; 00056 00057 const int syscall_id_lseek = 19; 00058 const int syscall_id_getxpid = 20; 00059 00060 const int syscall_id_setuid = 23; 00061 const int syscall_id_getxuid = 24; 00062 00063 const int syscall_id_access = 33; 00064 00065 const int syscall_id_sync = 36; 00066 const int syscall_id_kill = 37; 00067 00068 const int syscall_id_setpgid = 39; 00069 00070 const int syscall_id_dup = 41; 00071 00072 const int syscall_id_open = 45; 00073 00074 const int syscall_id_getxgid = 47; 00075 const int syscall_id_osf_sigprocmask = 48; 00076 00077 const int syscall_id_ioctl = 54; 00078 00079 const int syscall_id_symlink = 57; 00080 const int syscall_id_readlink = 58; 00081 const int syscall_id_execve = 59; 00082 const int syscall_id_umask = 60; 00083 00084 const int syscall_id_vfork = 66; 00085 const int syscall_id_stat = 67; 00086 const int syscall_id_lstat = 68; 00087 00088 const int syscall_id_mmap = 71; 00089 const int syscall_id_munmap = 73; 00090 const int syscall_id_mprotect = 74; 00091 00092 const int syscall_id_getgroups = 79; 00093 const int syscall_id_setgroups = 80; 00094 00095 const int syscall_id_fstat = 91; 00096 const int syscall_id_fcntl = 92; 00097 const int syscall_id_osf_select = 93; 00098 const int syscall_id_osf_gettimeofday = 116; 00099 const int syscall_id_osf_getrusage = 117; 00100 00101 const int syscall_id_readv = 120; 00102 const int syscall_id_writev = 121; 00103 const int syscall_id_osf_settimeofday = 122; 00104 00105 const int syscall_id_fchown = 123; 00106 const int syscall_id_fchmod = 124; 00107 const int syscall_id_setreuid = 126; 00108 const int syscall_id_setregid = 127; 00109 00110 const int syscall_id_rename = 128; 00111 const int syscall_id_truncate = 129; 00112 const int syscall_id_ftruncate = 130; 00113 const int syscall_id_flock = 131; 00114 00115 const int syscall_id_mkdir = 136; 00116 const int syscall_id_rmdir = 137; 00117 00118 const int syscall_id_getrlimit = 144; 00119 const int syscall_id_setrlimit = 145; 00120 00121 const int syscall_id_osf_pid_block = 153; 00122 const int syscall_id_osf_pid_unblock = 154; 00123 00124 const int syscall_id_sigaction = 156; 00125 00126 const int syscall_id_getpgid = 233; 00127 const int syscall_id_getsid = 234; 00128 00129 const int syscall_id_osf_getsysinfo = 256; 00130 const int syscall_id_osf_setsysinfo = 257; 00131 00132 const int syscall_id_times = 323; 00133 00134 const int syscall_id_uname = 339; 00135 const int syscall_id_nanosleep = 340; 00136 const int syscall_id_mremap = 341; 00137 00138 const int syscall_id_setresuid = 343; 00139 const int syscall_id_getresuid = 344; 00140 00141 const int syscall_id_rt_sigaction = 352; 00142 const int syscall_id_rt_sigprocmask = 353; 00143 00144 const int syscall_id_select = 358; 00145 const int syscall_id_gettimeofday = 359; 00146 const int syscall_id_settimeofday = 360; 00147 00148 const int syscall_id_utimes = 363; 00149 const int syscall_id_getrusage = 364; 00150 00151 const int syscall_id_getcwd = 367; 00152 00153 const int syscall_id_gettid = 378; 00154 00155 const int syscall_id_exit_group = 405; 00156 00157 const int syscall_id_tgkill = 424; 00158 00159 const int syscall_id_stat64 = 425; 00160 const int syscall_id_lstat64 = 426; 00161 const int syscall_id_fstat64 = 427; 00162 00163 } // namespace SyscallID 00164 00165 using namespace SyscallID; 00166 00167 } // namespace AlphaLinux 00168 } // namespace Onikiri 00169 00170 #endif