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

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

Issue 608913003: Added support for NaCl IO to use the IRT Extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize all interfaces on init Created 6 years, 2 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-glibc build. 9 // compiled, even on a non-glibc build.
9 #if defined(__native_client__) && defined(__GLIBC__) 10 #if !defined(NACL_IO_IRT_EXT) && defined(__native_client__) && \
10 11 defined(__GLIBC__)
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
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__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698