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 __PPC64LINUX_SYSCALLID_H__ 00033 #define __PPC64LINUX_SYSCALLID_H__ 00034 00035 namespace Onikiri { 00036 namespace PPC64Linux { 00037 00038 namespace SyscallID { 00039 const int syscall_id_exit = 1; 00040 const int syscall_id_read = 3; 00041 const int syscall_id_write = 4; 00042 const int syscall_id_open = 5; 00043 const int syscall_id_close = 6; 00044 00045 const int syscall_id_creat = 8; 00046 const int syscall_id_link = 9; 00047 const int syscall_id_unlink = 10; 00048 00049 const int syscall_id_chdir = 12; 00050 const int syscall_id_time = 13; 00051 00052 const int syscall_id_chmod = 15; 00053 const int syscall_id_lseek = 19; 00054 const int syscall_id_getpid = 20; 00055 00056 const int syscall_id_setuid = 23; 00057 const int syscall_id_getuid = 24; 00058 00059 const int syscall_id_utime = 30; 00060 const int syscall_id_access = 33; 00061 const int syscall_id_kill = 37; 00062 const int syscall_id_rename = 38; 00063 const int syscall_id_mkdir = 39; 00064 const int syscall_id_rmdir = 40; 00065 const int syscall_id_dup = 41; 00066 const int syscall_id_times = 43; 00067 const int syscall_id_brk = 45; 00068 const int syscall_id_setgid = 46; 00069 const int syscall_id_getgid = 47; 00070 const int syscall_id_geteuid = 49; 00071 const int syscall_id_getegid = 50; 00072 const int syscall_id_ioctl = 54; 00073 const int syscall_id_fcntl = 55; 00074 const int syscall_id_dup2 = 63; 00075 const int syscall_id_setreuid = 70; 00076 const int syscall_id_setregid = 71; 00077 const int syscall_id_setrlimit = 75; 00078 const int syscall_id_getrlimit = 76; 00079 const int syscall_id_getrusage = 77; 00080 const int syscall_id_gettimeofday = 78; 00081 const int syscall_id_readlink = 85; 00082 const int syscall_id_mmap = 90; 00083 const int syscall_id_munmap = 91; 00084 const int syscall_id_truncate = 92; 00085 const int syscall_id_ftruncate = 93; 00086 const int syscall_id_fchmod = 94; 00087 const int syscall_id_fchown = 95; 00088 const int syscall_id_stat = 106; 00089 const int syscall_id_lstat = 107; 00090 const int syscall_id_fstat = 108; 00091 const int syscall_id_uname = 122; 00092 const int syscall_id_mprotect = 125; 00093 const int syscall_id_sigprocmask = 126; 00094 00095 const int syscall_id_fchdir = 133; 00096 00097 const int syscall_id__llseek = 140; 00098 00099 const int syscall_id_readv = 145; 00100 const int syscall_id_writev = 146; 00101 00102 const int syscall_id_mremap = 163; 00103 const int syscall_id_rt_sigaction = 173; 00104 const int syscall_id_rt_sigprocmask = 174; 00105 00106 const int syscall_id_chown = 181; 00107 const int syscall_id_getcwd = 182; 00108 00109 const int syscall_id_madvise = 205; 00110 const int syscall_id_gettid = 207; 00111 const int syscall_id_tkill = 208; 00112 const int syscall_id_exit_group = 234; 00113 const int syscall_id_tgkill = 250; 00114 00115 } // namespace SyscallID 00116 00117 using namespace SyscallID; 00118 00119 } // namespace PPC64Linux 00120 } // namespace Onikiri 00121 00122 #endif