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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return -1; | 71 return -1; |
72 | 72 |
73 *nwrote = rtn; | 73 *nwrote = rtn; |
74 return 0; | 74 return 0; |
75 } | 75 } |
76 | 76 |
77 void _real_exit(int status) { | 77 void _real_exit(int status) { |
78 exit(status); | 78 exit(status); |
79 } | 79 } |
80 | 80 |
| 81 int _real_getcwd(char* pathname, size_t len) { |
| 82 return ENOSYS; |
| 83 } |
| 84 |
81 #endif | 85 #endif |
82 | 86 |
83 // The Chromium build system defines __linux__ even for native client builds, | 87 // The Chromium build system defines __linux__ even for native client builds, |
84 // so guard against __native_client__ being defined as well. | 88 // so guard against __native_client__ being defined as well. |
85 #if defined(__linux__) && !defined(__native_client__) | 89 #if defined(__linux__) && !defined(__native_client__) |
86 | 90 |
87 void kernel_wrap_init() { | 91 void kernel_wrap_init() { |
88 } | 92 } |
89 | 93 |
90 void kernel_wrap_uninit() { | 94 void kernel_wrap_uninit() { |
91 } | 95 } |
92 | 96 |
93 #endif | 97 #endif |
OLD | NEW |