| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #include <sys/resource.h> | 111 #include <sys/resource.h> |
| 112 #include <sys/time.h> | 112 #include <sys/time.h> |
| 113 #include <sys/types.h> | 113 #include <sys/types.h> |
| 114 #include <sys/syscall.h> | 114 #include <sys/syscall.h> |
| 115 #include <unistd.h> | 115 #include <unistd.h> |
| 116 #include <linux/unistd.h> | 116 #include <linux/unistd.h> |
| 117 #include <endian.h> | 117 #include <endian.h> |
| 118 | 118 |
| 119 #ifdef __mips__ | 119 #ifdef __mips__ |
| 120 /* Include definitions of the ABI currently in use. */ | 120 /* Include definitions of the ABI currently in use. */ |
| 121 #ifdef __ANDROID__ |
| 122 /* Android doesn't have sgidefs.h, but does have asm/sgidefs.h, |
| 123 * which has the definitions we need. |
| 124 */ |
| 125 #include <asm/sgidefs.h> |
| 126 #else |
| 121 #include <sgidefs.h> | 127 #include <sgidefs.h> |
| 122 #endif | 128 #endif |
| 123 #endif | 129 #endif |
| 130 #endif |
| 124 | 131 |
| 125 /* The Android NDK's <sys/stat.h> #defines these macros as aliases | 132 /* The Android NDK's <sys/stat.h> #defines these macros as aliases |
| 126 * to their non-64 counterparts. To avoid naming conflict, remove them. */ | 133 * to their non-64 counterparts. To avoid naming conflict, remove them. */ |
| 127 #ifdef __ANDROID__ | 134 #ifdef __ANDROID__ |
| 128 /* These are restored by the corresponding #pragma pop_macro near | 135 /* These are restored by the corresponding #pragma pop_macro near |
| 129 * the end of this file. */ | 136 * the end of this file. */ |
| 130 # pragma push_macro("stat64") | 137 # pragma push_macro("stat64") |
| 131 # pragma push_macro("fstat64") | 138 # pragma push_macro("fstat64") |
| 132 # pragma push_macro("lstat64") | 139 # pragma push_macro("lstat64") |
| 133 # undef stat64 | 140 # undef stat64 |
| (...skipping 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4021 # pragma pop_macro("fstat64") | 4028 # pragma pop_macro("fstat64") |
| 4022 # pragma pop_macro("lstat64") | 4029 # pragma pop_macro("lstat64") |
| 4023 #endif | 4030 #endif |
| 4024 | 4031 |
| 4025 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 4032 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
| 4026 } | 4033 } |
| 4027 #endif | 4034 #endif |
| 4028 | 4035 |
| 4029 #endif | 4036 #endif |
| 4030 #endif | 4037 #endif |
| OLD | NEW |