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. | |
7 | 6 |
8 // The entire file is wrapped in this #if. We do this so this .cc file can be | 7 // The entire file is wrapped in this #if. We do this so this .cc file can be |
9 // compiled, even on a non-glibc build. | 8 // compiled, even on a non-glibc build. |
10 #if !defined(NACL_IO_IRT_EXT) && defined(__native_client__) && \ | 9 #if defined(__native_client__) && defined(__GLIBC__) |
11 defined(__GLIBC__) | 10 |
| 11 #include "nacl_io/kernel_wrap.h" |
12 | 12 |
13 #include <alloca.h> | 13 #include <alloca.h> |
14 #include <assert.h> | 14 #include <assert.h> |
15 #include <dirent.h> | 15 #include <dirent.h> |
16 #include <errno.h> | 16 #include <errno.h> |
17 #include <irt.h> | 17 #include <irt.h> |
18 #include <irt_syscalls.h> | 18 #include <irt_syscalls.h> |
19 #include <nacl_stat.h> | 19 #include <nacl_stat.h> |
20 #include <string.h> | 20 #include <string.h> |
21 #include <sys/stat.h> | 21 #include <sys/stat.h> |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 if (s_wrapped) { | 656 if (s_wrapped) { |
657 LOG_TRACE("kernel_wrap_uninit"); | 657 LOG_TRACE("kernel_wrap_uninit"); |
658 EXPAND_SYMBOL_LIST_OPERATION(USE_REAL) | 658 EXPAND_SYMBOL_LIST_OPERATION(USE_REAL) |
659 s_wrapped = false; | 659 s_wrapped = false; |
660 } | 660 } |
661 } | 661 } |
662 | 662 |
663 EXTERN_C_END | 663 EXTERN_C_END |
664 | 664 |
665 #endif // defined(__native_client__) && defined(__GLIBC__) | 665 #endif // defined(__native_client__) && defined(__GLIBC__) |
OLD | NEW |