| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALLS_H_ | 7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALLS_H_ |
| 8 #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALLS_H_ 1 | 8 #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALLS_H_ 1 |
| 9 | 9 |
| 10 /* Definitions of Linux syscall numbers. */ | 10 /* Definitions of Linux syscall numbers. */ |
| 11 | 11 |
| 12 #if defined(__i386__) | 12 #if defined(__i386__) |
| 13 | 13 |
| 14 # define __NR_exit 1 | 14 # define __NR_exit 1 |
| 15 # define __NR_read 3 | 15 # define __NR_read 3 |
| 16 # define __NR_write 4 | 16 # define __NR_write 4 |
| 17 # define __NR_open 5 | 17 # define __NR_open 5 |
| 18 # define __NR_close 6 | 18 # define __NR_close 6 |
| 19 # define __NR_link 9 | 19 # define __NR_link 9 |
| 20 # define __NR_unlink 10 | 20 # define __NR_unlink 10 |
| 21 # define __NR_chdir 12 | 21 # define __NR_chdir 12 |
| 22 # define __NR_chmod 15 | 22 # define __NR_chmod 15 |
| 23 # define __NR_getpid 20 |
| 23 # define __NR_access 33 | 24 # define __NR_access 33 |
| 24 # define __NR_rename 38 | 25 # define __NR_rename 38 |
| 25 # define __NR_mkdir 39 | 26 # define __NR_mkdir 39 |
| 26 # define __NR_rmdir 40 | 27 # define __NR_rmdir 40 |
| 27 # define __NR_dup 41 | 28 # define __NR_dup 41 |
| 28 # define __NR_pipe 42 | 29 # define __NR_pipe 42 |
| 29 # define __NR_ioctl 54 | 30 # define __NR_ioctl 54 |
| 30 # define __NR_dup2 63 | 31 # define __NR_dup2 63 |
| 31 # define __NR_gettimeofday 78 | 32 # define __NR_gettimeofday 78 |
| 32 # define __NR_symlink 83 | 33 # define __NR_symlink 83 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 67 |
| 67 # define __NR_exit 1 | 68 # define __NR_exit 1 |
| 68 # define __NR_read 3 | 69 # define __NR_read 3 |
| 69 # define __NR_write 4 | 70 # define __NR_write 4 |
| 70 # define __NR_open 5 | 71 # define __NR_open 5 |
| 71 # define __NR_close 6 | 72 # define __NR_close 6 |
| 72 # define __NR_link 9 | 73 # define __NR_link 9 |
| 73 # define __NR_unlink 10 | 74 # define __NR_unlink 10 |
| 74 # define __NR_chdir 12 | 75 # define __NR_chdir 12 |
| 75 # define __NR_chmod 15 | 76 # define __NR_chmod 15 |
| 77 # define __NR_getpid 20 |
| 76 # define __NR_access 33 | 78 # define __NR_access 33 |
| 77 # define __NR_rename 38 | 79 # define __NR_rename 38 |
| 78 # define __NR_mkdir 39 | 80 # define __NR_mkdir 39 |
| 79 # define __NR_rmdir 40 | 81 # define __NR_rmdir 40 |
| 80 # define __NR_dup 41 | 82 # define __NR_dup 41 |
| 81 # define __NR_pipe 42 | 83 # define __NR_pipe 42 |
| 82 # define __NR_ioctl 54 | 84 # define __NR_ioctl 54 |
| 83 # define __NR_dup2 63 | 85 # define __NR_dup2 63 |
| 84 # define __NR_gettimeofday 78 | 86 # define __NR_gettimeofday 78 |
| 85 # define __NR_symlink 83 | 87 # define __NR_symlink 83 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 111 # define __NR_shutdown 293 | 113 # define __NR_shutdown 293 |
| 112 # define __NR_sendmsg 296 | 114 # define __NR_sendmsg 296 |
| 113 # define __NR_recvmsg 297 | 115 # define __NR_recvmsg 297 |
| 114 # define __NR_ARM_set_tls 0xf0005 | 116 # define __NR_ARM_set_tls 0xf0005 |
| 115 | 117 |
| 116 #else | 118 #else |
| 117 # error Unsupported architecture | 119 # error Unsupported architecture |
| 118 #endif | 120 #endif |
| 119 | 121 |
| 120 #endif | 122 #endif |
| OLD | NEW |