OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sys/types.h> // Include something that will define __GLIBC__. | 5 #include <sys/types.h> // Include something that will define __GLIBC__. |
| 6 #include "nacl_io/kernel_wrap.h" // IRT_EXT is turned on in this header. |
6 | 7 |
7 // The entire file is wrapped in this #if. We do this so this .cc file can be | 8 // The entire file is wrapped in this #if. We do this so this .cc file can be |
8 // compiled, even on a non-newlib build. | 9 // compiled, even on a non-newlib build. |
9 #if defined(__native_client__) && !defined(__GLIBC__) && !defined(__BIONIC__) | 10 #if !defined(NACL_IO_IRT_EXT) && defined(__native_client__) && \ |
10 | 11 !defined(__GLIBC__) && !defined(__BIONIC__) |
11 #include "nacl_io/kernel_wrap.h" | |
12 | 12 |
13 #include <dirent.h> | 13 #include <dirent.h> |
14 #include <errno.h> | 14 #include <errno.h> |
15 #include <irt.h> | 15 #include <irt.h> |
16 #include <irt_dev.h> | 16 #include <irt_dev.h> |
17 #include <sys/mman.h> | 17 #include <sys/mman.h> |
18 #include <sys/stat.h> | 18 #include <sys/stat.h> |
19 #include <sys/time.h> | 19 #include <sys/time.h> |
20 | 20 |
21 #include "nacl_io/kernel_intercept.h" | 21 #include "nacl_io/kernel_intercept.h" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 if (s_wrapped) { | 378 if (s_wrapped) { |
379 LOG_TRACE("kernel_wrap_uninit"); | 379 LOG_TRACE("kernel_wrap_uninit"); |
380 EXPAND_SYMBOL_LIST_OPERATION(USE_REAL) | 380 EXPAND_SYMBOL_LIST_OPERATION(USE_REAL) |
381 s_wrapped = false; | 381 s_wrapped = false; |
382 } | 382 } |
383 } | 383 } |
384 | 384 |
385 EXTERN_C_END | 385 EXTERN_C_END |
386 | 386 |
387 #endif // defined(__native_client__) && !defined(__GLIBC__) ... | 387 #endif // defined(__native_client__) && !defined(__GLIBC__) ... |
OLD | NEW |