OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // The Chromium build system defines __linux__ even for native client builds, | 5 // The Chromium build system defines __linux__ even for native client builds, |
6 // so guard against __native_client__ being defined as well. | 6 // so guard against __native_client__ being defined as well. |
7 #if defined(WIN32) || (defined(__linux__) && !defined(__native_client__)) | 7 #if defined(WIN32) || (defined(__linux__) && !defined(__native_client__)) |
8 | 8 |
9 #include <errno.h> | 9 #include <errno.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 int flags, | 41 int flags, |
42 int fd, | 42 int fd, |
43 off_t offset) { | 43 off_t offset) { |
44 return ENOSYS; | 44 return ENOSYS; |
45 } | 45 } |
46 | 46 |
47 int _real_munmap(void* addr, size_t length) { | 47 int _real_munmap(void* addr, size_t length) { |
48 return ENOSYS; | 48 return ENOSYS; |
49 } | 49 } |
50 | 50 |
51 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) { | 51 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) { |
52 return ENOSYS; | 52 return ENOSYS; |
53 } | 53 } |
54 | 54 |
55 int _real_open_resource(const char* file, int* fd) { | 55 int _real_open_resource(const char* file, int* fd) { |
56 return ENOSYS; | 56 return ENOSYS; |
57 } | 57 } |
58 | 58 |
59 int _real_read(int fd, void* buf, size_t count, size_t* nread) { | 59 int _real_read(int fd, void* buf, size_t count, size_t* nread) { |
60 *nread = count; | 60 *nread = count; |
61 return 0; | 61 return 0; |
(...skipping 26 matching lines...) Expand all Loading... |
88 // so guard against __native_client__ being defined as well. | 88 // so guard against __native_client__ being defined as well. |
89 #if defined(__linux__) && !defined(__native_client__) | 89 #if defined(__linux__) && !defined(__native_client__) |
90 | 90 |
91 void kernel_wrap_init() { | 91 void kernel_wrap_init() { |
92 } | 92 } |
93 | 93 |
94 void kernel_wrap_uninit() { | 94 void kernel_wrap_uninit() { |
95 } | 95 } |
96 | 96 |
97 #endif | 97 #endif |
OLD | NEW |