Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc

Issue 1245663004: [NaCl SDK] Re-land "Added support for NaCl IO to use the IRT Extension API." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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__) ...
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_wrap_irt_ext.c ('k') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698