Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2005-2011, Google Inc. | 1 /* Copyright (c) 2005-2011, Google Inc. |
| 2 * All rights reserved. | 2 * All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 #ifndef SYS_CPLUSPLUS | 93 #ifndef SYS_CPLUSPLUS |
| 94 #ifdef __cplusplus | 94 #ifdef __cplusplus |
| 95 /* Some system header files in older versions of gcc neglect to properly | 95 /* Some system header files in older versions of gcc neglect to properly |
| 96 * handle being included from C++. As it appears to be harmless to have | 96 * handle being included from C++. As it appears to be harmless to have |
| 97 * multiple nested 'extern "C"' blocks, just add another one here. | 97 * multiple nested 'extern "C"' blocks, just add another one here. |
| 98 */ | 98 */ |
| 99 extern "C" { | 99 extern "C" { |
| 100 #endif | 100 #endif |
| 101 | 101 |
| 102 #include <errno.h> | 102 #include <errno.h> |
| 103 #ifndef _GNU_SOURCE | |
| 104 #define _GNU_SOURCE /* musl libc defines loff_t only with _GNU_SOURC */ | |
|
Mark Seaborn
2016/03/13 19:59:49
Typo: "SOURC"
I'm not sure that defining _GNU_SOU
| |
| 105 #endif | |
| 103 #include <fcntl.h> | 106 #include <fcntl.h> |
| 104 #include <sched.h> | 107 #include <sched.h> |
| 105 #include <signal.h> | 108 #include <signal.h> |
| 106 #include <stdarg.h> | 109 #include <stdarg.h> |
| 107 #include <stddef.h> | 110 #include <stddef.h> |
| 108 #include <stdint.h> | 111 #include <stdint.h> |
| 109 #include <string.h> | 112 #include <string.h> |
| 110 #include <sys/ptrace.h> | 113 #include <sys/ptrace.h> |
| 111 #include <sys/resource.h> | 114 #include <sys/resource.h> |
| 112 #include <sys/time.h> | 115 #include <sys/time.h> |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1048 #define __NR_move_pages 239 | 1051 #define __NR_move_pages 239 |
| 1049 #endif | 1052 #endif |
| 1050 /* End of aarch64 definitions */ | 1053 /* End of aarch64 definitions */ |
| 1051 #elif defined(__x86_64__) | 1054 #elif defined(__x86_64__) |
| 1052 #ifndef __NR_pread64 | 1055 #ifndef __NR_pread64 |
| 1053 #define __NR_pread64 17 | 1056 #define __NR_pread64 17 |
| 1054 #endif | 1057 #endif |
| 1055 #ifndef __NR_pwrite64 | 1058 #ifndef __NR_pwrite64 |
| 1056 #define __NR_pwrite64 18 | 1059 #define __NR_pwrite64 18 |
| 1057 #endif | 1060 #endif |
| 1061 #ifndef __NR_pread | |
| 1062 #define __NR_pread __NR_pread64 | |
|
Mark Seaborn
2016/03/13 19:59:49
Please explain what this fixes. What's your test
| |
| 1063 #endif | |
| 1064 #ifndef __NR_pwrite | |
| 1065 #define __NR_pwrite __NR_pwrite64 | |
| 1066 #endif | |
| 1058 #ifndef __NR_setresuid | 1067 #ifndef __NR_setresuid |
| 1059 #define __NR_setresuid 117 | 1068 #define __NR_setresuid 117 |
| 1060 #define __NR_getresuid 118 | 1069 #define __NR_getresuid 118 |
| 1061 #define __NR_setresgid 119 | 1070 #define __NR_setresgid 119 |
| 1062 #define __NR_getresgid 120 | 1071 #define __NR_getresgid 120 |
| 1063 #endif | 1072 #endif |
| 1064 #ifndef __NR_quotactl | 1073 #ifndef __NR_quotactl |
| 1065 #define __NR_quotactl 179 | 1074 #define __NR_quotactl 179 |
| 1066 #endif | 1075 #endif |
| 1067 #ifndef __NR_gettid | 1076 #ifndef __NR_gettid |
| (...skipping 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4028 # pragma pop_macro("fstat64") | 4037 # pragma pop_macro("fstat64") |
| 4029 # pragma pop_macro("lstat64") | 4038 # pragma pop_macro("lstat64") |
| 4030 #endif | 4039 #endif |
| 4031 | 4040 |
| 4032 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 4041 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
| 4033 } | 4042 } |
| 4034 #endif | 4043 #endif |
| 4035 | 4044 |
| 4036 #endif | 4045 #endif |
| 4037 #endif | 4046 #endif |
| OLD | NEW |