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

Side by Side Diff: src/trusted/service_runtime/include/sys/unistd.h

Issue 1163893003: Don't include <stdint.h> from within <machine/_types.h> (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.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 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * This file is based on the file "newlib/libc/include/sys/unistd.h" 8 * This file is based on the file "newlib/libc/include/sys/unistd.h"
9 * from newlib. 9 * from newlib.
10 */ 10 */
11 11
12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_ 12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_
13 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_ 13 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_
14 14
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 extern "C" { 16 extern "C" {
17 #endif 17 #endif
18 18
19 /* 19 /*
20 * We need this file in the service_runtime only to agree on enum values, 20 * We need this file in the service_runtime only to agree on enum values,
21 * therefore most of it should be compiled only for NaCl applications 21 * therefore most of it should be compiled only for NaCl applications
22 */ 22 */
23 #if defined(NACL_IN_TOOLCHAIN_HEADERS) 23 #if defined(NACL_IN_TOOLCHAIN_HEADERS)
24 #include <_ansi.h> 24 #include <_ansi.h>
25 #include <sys/types.h> 25 #include <sys/types.h>
26 #include <sys/_types.h> 26 #include <sys/_types.h>
27 #define __need_size_t 27 #define __need_size_t
28 #define __need_ptrdiff_t 28 #define __need_ptrdiff_t
29 #include <stddef.h> 29 #include <stddef.h>
30 #include <stdint.h>
30 31
31 extern char **environ; 32 extern char **environ;
32 33
33 void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn))); 34 void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn)));
34 35
35 int _EXFUN(access,(const char *__path, int __amode )); 36 int _EXFUN(access,(const char *__path, int __amode ));
36 unsigned _EXFUN(alarm, (unsigned __secs )); 37 unsigned _EXFUN(alarm, (unsigned __secs ));
37 int _EXFUN(chdir, (const char *__path )); 38 int _EXFUN(chdir, (const char *__path ));
38 int _EXFUN(chmod, (const char *__path, mode_t __mode )); 39 int _EXFUN(chmod, (const char *__path, mode_t __mode ));
39 #if !defined(__INSIDE_CYGWIN__) 40 #if !defined(__INSIDE_CYGWIN__)
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 #endif /* defined(NACL_IN_TOOLCHAIN_HEADERS) */ 373 #endif /* defined(NACL_IN_TOOLCHAIN_HEADERS) */
373 374
374 #ifndef __CYGWIN__ 375 #ifndef __CYGWIN__
375 # define MAXPATHLEN 1024 376 # define MAXPATHLEN 1024
376 #endif 377 #endif
377 378
378 #ifdef __cplusplus 379 #ifdef __cplusplus
379 } 380 }
380 #endif 381 #endif
381 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_ */ 382 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_UNISTD_H_ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/include/sys/dirent.h ('k') | src/untrusted/nacl/syscall_bindings_trampoline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698