njn | c616819 | 2004-11-29 13:54:10 +0000 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | This file is part of Valgrind, an extensible x86 protected-mode |
| 4 | emulator for monitoring program execution on x86-Unixes. |
| 5 | |
| 6 | Copyright (C) 2000-2004 Julian Seward |
| 7 | jseward@acm.org |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or |
| 10 | modify it under the terms of the GNU General Public License as |
| 11 | published by the Free Software Foundation; either version 2 of the |
| 12 | License, or (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, but |
| 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with this program; if not, write to the Free Software |
| 21 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 22 | 02111-1307, USA. |
| 23 | |
| 24 | The GNU General Public License is contained in the file COPYING. |
| 25 | */ |
| 26 | |
| 27 | #ifndef __AMD64_LINUX_VKI_UNISTD_H_ |
| 28 | #define __AMD64_LINUX_VKI_UNISTD_H_ |
| 29 | |
| 30 | // From linux-2.6.9/include/asm-x86_64/unistd.h |
| 31 | |
| 32 | #define __NR_read 0 |
| 33 | #define __NR_write 1 |
| 34 | #define __NR_open 2 |
| 35 | #define __NR_close 3 |
| 36 | #define __NR_stat 4 |
| 37 | #define __NR_fstat 5 |
| 38 | #define __NR_lstat 6 |
| 39 | #define __NR_poll 7 |
| 40 | |
| 41 | #define __NR_lseek 8 |
| 42 | #define __NR_mmap 9 |
| 43 | #define __NR_mprotect 10 |
| 44 | #define __NR_munmap 11 |
| 45 | #define __NR_brk 12 |
| 46 | #define __NR_rt_sigaction 13 |
| 47 | #define __NR_rt_sigprocmask 14 |
| 48 | #define __NR_rt_sigreturn 15 |
| 49 | |
| 50 | #define __NR_ioctl 16 |
| 51 | #define __NR_pread64 17 |
| 52 | #define __NR_pwrite64 18 |
| 53 | #define __NR_readv 19 |
| 54 | #define __NR_writev 20 |
| 55 | #define __NR_access 21 |
| 56 | #define __NR_pipe 22 |
| 57 | #define __NR_select 23 |
| 58 | |
| 59 | #define __NR_sched_yield 24 |
| 60 | #define __NR_mremap 25 |
| 61 | #define __NR_msync 26 |
| 62 | #define __NR_mincore 27 |
| 63 | #define __NR_madvise 28 |
| 64 | #define __NR_shmget 29 |
| 65 | #define __NR_shmat 30 |
| 66 | #define __NR_shmctl 31 |
| 67 | |
| 68 | #define __NR_dup 32 |
| 69 | #define __NR_dup2 33 |
| 70 | #define __NR_pause 34 |
| 71 | #define __NR_nanosleep 35 |
| 72 | #define __NR_getitimer 36 |
| 73 | #define __NR_alarm 37 |
| 74 | #define __NR_setitimer 38 |
| 75 | #define __NR_getpid 39 |
| 76 | |
| 77 | #define __NR_sendfile 40 |
| 78 | #define __NR_socket 41 |
| 79 | #define __NR_connect 42 |
| 80 | #define __NR_accept 43 |
| 81 | #define __NR_sendto 44 |
| 82 | #define __NR_recvfrom 45 |
| 83 | #define __NR_sendmsg 46 |
| 84 | #define __NR_recvmsg 47 |
| 85 | |
| 86 | #define __NR_shutdown 48 |
| 87 | #define __NR_bind 49 |
| 88 | #define __NR_listen 50 |
| 89 | #define __NR_getsockname 51 |
| 90 | #define __NR_getpeername 52 |
| 91 | #define __NR_socketpair 53 |
| 92 | #define __NR_setsockopt 54 |
| 93 | #define __NR_getsockopt 55 |
| 94 | |
| 95 | #define __NR_clone 56 |
| 96 | #define __NR_fork 57 |
| 97 | #define __NR_vfork 58 |
| 98 | #define __NR_execve 59 |
| 99 | #define __NR_exit 60 |
| 100 | #define __NR_wait4 61 |
| 101 | #define __NR_kill 62 |
| 102 | #define __NR_uname 63 |
| 103 | |
| 104 | #define __NR_semget 64 |
| 105 | #define __NR_semop 65 |
| 106 | #define __NR_semctl 66 |
| 107 | #define __NR_shmdt 67 |
| 108 | #define __NR_msgget 68 |
| 109 | #define __NR_msgsnd 69 |
| 110 | #define __NR_msgrcv 70 |
| 111 | #define __NR_msgctl 71 |
| 112 | |
| 113 | #define __NR_fcntl 72 |
| 114 | #define __NR_flock 73 |
| 115 | #define __NR_fsync 74 |
| 116 | #define __NR_fdatasync 75 |
| 117 | #define __NR_truncate 76 |
| 118 | #define __NR_ftruncate 77 |
| 119 | #define __NR_getdents 78 |
| 120 | #define __NR_getcwd 79 |
| 121 | |
| 122 | #define __NR_chdir 80 |
| 123 | #define __NR_fchdir 81 |
| 124 | #define __NR_rename 82 |
| 125 | #define __NR_mkdir 83 |
| 126 | #define __NR_rmdir 84 |
| 127 | #define __NR_creat 85 |
| 128 | #define __NR_link 86 |
| 129 | #define __NR_unlink 87 |
| 130 | |
| 131 | #define __NR_symlink 88 |
| 132 | #define __NR_readlink 89 |
| 133 | #define __NR_chmod 90 |
| 134 | #define __NR_fchmod 91 |
| 135 | #define __NR_chown 92 |
| 136 | #define __NR_fchown 93 |
| 137 | #define __NR_lchown 94 |
| 138 | #define __NR_umask 95 |
| 139 | |
| 140 | #define __NR_gettimeofday 96 |
| 141 | #define __NR_getrlimit 97 |
| 142 | #define __NR_getrusage 98 |
| 143 | #define __NR_sysinfo 99 |
| 144 | #define __NR_times 100 |
| 145 | #define __NR_ptrace 101 |
| 146 | #define __NR_getuid 102 |
| 147 | #define __NR_syslog 103 |
| 148 | |
| 149 | /* at the very end the stuff that never runs during the benchmarks */ |
| 150 | #define __NR_getgid 104 |
| 151 | #define __NR_setuid 105 |
| 152 | #define __NR_setgid 106 |
| 153 | #define __NR_geteuid 107 |
| 154 | #define __NR_getegid 108 |
| 155 | #define __NR_setpgid 109 |
| 156 | #define __NR_getppid 110 |
| 157 | #define __NR_getpgrp 111 |
| 158 | |
| 159 | #define __NR_setsid 112 |
| 160 | #define __NR_setreuid 113 |
| 161 | #define __NR_setregid 114 |
| 162 | #define __NR_getgroups 115 |
| 163 | #define __NR_setgroups 116 |
| 164 | #define __NR_setresuid 117 |
| 165 | #define __NR_getresuid 118 |
| 166 | #define __NR_setresgid 119 |
| 167 | |
| 168 | #define __NR_getresgid 120 |
| 169 | #define __NR_getpgid 121 |
| 170 | #define __NR_setfsuid 122 |
| 171 | #define __NR_setfsgid 123 |
| 172 | #define __NR_getsid 124 |
| 173 | #define __NR_capget 125 |
| 174 | #define __NR_capset 126 |
| 175 | |
| 176 | #define __NR_rt_sigpending 127 |
| 177 | #define __NR_rt_sigtimedwait 128 |
| 178 | #define __NR_rt_sigqueueinfo 129 |
| 179 | #define __NR_rt_sigsuspend 130 |
| 180 | #define __NR_sigaltstack 131 |
| 181 | #define __NR_utime 132 |
| 182 | #define __NR_mknod 133 |
| 183 | |
| 184 | #define __NR_uselib 134 |
| 185 | #define __NR_personality 135 |
| 186 | |
| 187 | #define __NR_ustat 136 |
| 188 | #define __NR_statfs 137 |
| 189 | #define __NR_fstatfs 138 |
| 190 | #define __NR_sysfs 139 |
| 191 | |
| 192 | #define __NR_getpriority 140 |
| 193 | #define __NR_setpriority 141 |
| 194 | #define __NR_sched_setparam 142 |
| 195 | #define __NR_sched_getparam 143 |
| 196 | #define __NR_sched_setscheduler 144 |
| 197 | #define __NR_sched_getscheduler 145 |
| 198 | #define __NR_sched_get_priority_max 146 |
| 199 | #define __NR_sched_get_priority_min 147 |
| 200 | #define __NR_sched_rr_get_interval 148 |
| 201 | |
| 202 | #define __NR_mlock 149 |
| 203 | #define __NR_munlock 150 |
| 204 | #define __NR_mlockall 151 |
| 205 | #define __NR_munlockall 152 |
| 206 | |
| 207 | #define __NR_vhangup 153 |
| 208 | |
| 209 | #define __NR_modify_ldt 154 |
| 210 | |
| 211 | #define __NR_pivot_root 155 |
| 212 | |
| 213 | #define __NR__sysctl 156 |
| 214 | |
| 215 | #define __NR_prctl 157 |
| 216 | #define __NR_arch_prctl 158 |
| 217 | |
| 218 | #define __NR_adjtimex 159 |
| 219 | |
| 220 | #define __NR_setrlimit 160 |
| 221 | |
| 222 | #define __NR_chroot 161 |
| 223 | |
| 224 | #define __NR_sync 162 |
| 225 | |
| 226 | #define __NR_acct 163 |
| 227 | |
| 228 | #define __NR_settimeofday 164 |
| 229 | |
| 230 | #define __NR_mount 165 |
| 231 | #define __NR_umount2 166 |
| 232 | |
| 233 | #define __NR_swapon 167 |
| 234 | #define __NR_swapoff 168 |
| 235 | |
| 236 | #define __NR_reboot 169 |
| 237 | |
| 238 | #define __NR_sethostname 170 |
| 239 | #define __NR_setdomainname 171 |
| 240 | |
| 241 | #define __NR_iopl 172 |
| 242 | #define __NR_ioperm 173 |
| 243 | |
| 244 | #define __NR_create_module 174 |
| 245 | #define __NR_init_module 175 |
| 246 | #define __NR_delete_module 176 |
| 247 | #define __NR_get_kernel_syms 177 |
| 248 | #define __NR_query_module 178 |
| 249 | |
| 250 | #define __NR_quotactl 179 |
| 251 | |
| 252 | #define __NR_nfsservctl 180 |
| 253 | |
| 254 | #define __NR_getpmsg 181 /* reserved for LiS/STREAMS */ |
| 255 | #define __NR_putpmsg 182 /* reserved for LiS/STREAMS */ |
| 256 | |
| 257 | #define __NR_afs_syscall 183 /* reserved for AFS */ |
| 258 | |
| 259 | #define __NR_tuxcall 184 /* reserved for tux */ |
| 260 | |
| 261 | #define __NR_security 185 |
| 262 | |
| 263 | #define __NR_gettid 186 |
| 264 | |
| 265 | #define __NR_readahead 187 |
| 266 | #define __NR_setxattr 188 |
| 267 | #define __NR_lsetxattr 189 |
| 268 | #define __NR_fsetxattr 190 |
| 269 | #define __NR_getxattr 191 |
| 270 | #define __NR_lgetxattr 192 |
| 271 | #define __NR_fgetxattr 193 |
| 272 | #define __NR_listxattr 194 |
| 273 | #define __NR_llistxattr 195 |
| 274 | #define __NR_flistxattr 196 |
| 275 | #define __NR_removexattr 197 |
| 276 | #define __NR_lremovexattr 198 |
| 277 | #define __NR_fremovexattr 199 |
| 278 | #define __NR_tkill 200 |
| 279 | #define __NR_time 201 |
| 280 | #define __NR_futex 202 |
| 281 | #define __NR_sched_setaffinity 203 |
| 282 | #define __NR_sched_getaffinity 204 |
| 283 | #define __NR_set_thread_area 205 |
| 284 | #define __NR_io_setup 206 |
| 285 | #define __NR_io_destroy 207 |
| 286 | #define __NR_io_getevents 208 |
| 287 | #define __NR_io_submit 209 |
| 288 | #define __NR_io_cancel 210 |
| 289 | #define __NR_get_thread_area 211 |
| 290 | #define __NR_lookup_dcookie 212 |
| 291 | #define __NR_epoll_create 213 |
| 292 | #define __NR_epoll_ctl_old 214 |
| 293 | #define __NR_epoll_wait_old 215 |
| 294 | #define __NR_remap_file_pages 216 |
| 295 | #define __NR_getdents64 217 |
| 296 | #define __NR_set_tid_address 218 |
| 297 | #define __NR_restart_syscall 219 |
| 298 | #define __NR_semtimedop 220 |
| 299 | #define __NR_fadvise64 221 |
| 300 | #define __NR_timer_create 222 |
| 301 | #define __NR_timer_settime 223 |
| 302 | #define __NR_timer_gettime 224 |
| 303 | #define __NR_timer_getoverrun 225 |
| 304 | #define __NR_timer_delete 226 |
| 305 | #define __NR_clock_settime 227 |
| 306 | #define __NR_clock_gettime 228 |
| 307 | #define __NR_clock_getres 229 |
| 308 | #define __NR_clock_nanosleep 230 |
| 309 | #define __NR_exit_group 231 |
| 310 | #define __NR_epoll_wait 232 |
| 311 | #define __NR_epoll_ctl 233 |
| 312 | #define __NR_tgkill 234 |
| 313 | #define __NR_utimes 235 |
| 314 | #define __NR_vserver 236 |
| 315 | #define __NR_vserver 236 |
| 316 | #define __NR_mbind 237 |
| 317 | #define __NR_set_mempolicy 238 |
| 318 | #define __NR_get_mempolicy 239 |
| 319 | #define __NR_mq_open 240 |
| 320 | #define __NR_mq_unlink 241 |
| 321 | #define __NR_mq_timedsend 242 |
| 322 | #define __NR_mq_timedreceive 243 |
| 323 | #define __NR_mq_notify 244 |
| 324 | #define __NR_mq_getsetattr 245 |
| 325 | #define __NR_kexec_load 246 |
| 326 | #define __NR_waitid 247 |
| 327 | |
| 328 | |
| 329 | #endif /* __AMD64_LINUX_VKI_UNISTD_H_ */ |