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

Side by Side Diff: newlib/libc/include/sys/types.h

Issue 79003002: Include more of sys/types.h and sys/signal.h under NaCl (Closed) Base URL: http://git.chromium.org/native_client/nacl-newlib.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « newlib/libc/include/sys/signal.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* unified sys/types.h: 1 /* unified sys/types.h:
2 start with sef's sysvi386 version. 2 start with sef's sysvi386 version.
3 merge go32 version -- a few ifdefs. 3 merge go32 version -- a few ifdefs.
4 h8300hms, h8300xray, and sysvnecv70 disagree on the following types: 4 h8300hms, h8300xray, and sysvnecv70 disagree on the following types:
5 5
6 typedef int gid_t; 6 typedef int gid_t;
7 typedef int uid_t; 7 typedef int uid_t;
8 typedef int dev_t; 8 typedef int dev_t;
9 typedef int ino_t; 9 typedef int ino_t;
10 typedef int mode_t; 10 typedef int mode_t;
11 typedef int caddr_t; 11 typedef int caddr_t;
12 12
13 however, these aren't "reasonable" values, the sysvi386 ones make far 13 however, these aren't "reasonable" values, the sysvi386 ones make far
14 more sense, and should work sufficiently well (in particular, h8300 14 more sense, and should work sufficiently well (in particular, h8300
15 doesn't have a stat, and the necv70 doesn't matter.) -- eichin 15 doesn't have a stat, and the necv70 doesn't matter.) -- eichin
16 */ 16 */
17 17
18 #ifndef _SYS_TYPES_H 18 #ifndef _SYS_TYPES_H
19 19
20 #include <_ansi.h> 20 #include <_ansi.h>
21 21
22 #ifndef __INTTYPES_DEFINED__ 22 #ifndef __INTTYPES_DEFINED__
23 #define __INTTYPES_DEFINED__ 23 #define __INTTYPES_DEFINED__
24 24
25 #include <machine/_types.h> 25 #include <machine/_types.h>
26 26
27 #if defined(__rtems__) || defined(__XMK__) 27 #if defined(__rtems__) || defined(__XMK__) || defined(__native_client__)
28 /* 28 /*
29 * The following section is RTEMS specific and is needed to more 29 * The following section is needed to more closely match the types defined in
30 * closely match the types defined in the BSD sys/types.h. 30 * the BSD sys/types.h.
31 * This is needed to let the RTEMS/BSD TCP/IP stack compile. 31 * This is needed to let the BSD TCP/IP stack compile.
32 */ 32 */
33 33
34 /* deprecated */ 34 /* deprecated */
35 #if ___int8_t_defined 35 #if ___int8_t_defined
36 typedef __uint8_t u_int8_t; 36 typedef __uint8_t u_int8_t;
37 #endif 37 #endif
38 #if ___int16_t_defined 38 #if ___int16_t_defined
39 typedef __uint16_t u_int16_t; 39 typedef __uint16_t u_int16_t;
40 #endif 40 #endif
41 #if ___int32_t_defined 41 #if ___int32_t_defined
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 #endif 517 #endif
518 } pthread_rwlockattr_t; 518 } pthread_rwlockattr_t;
519 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ 519 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */
520 #endif /* __CYGWIN__ */ 520 #endif /* __CYGWIN__ */
521 521
522 #endif /* !__need_inttypes */ 522 #endif /* !__need_inttypes */
523 523
524 #undef __need_inttypes 524 #undef __need_inttypes
525 525
526 #endif /* _SYS_TYPES_H */ 526 #endif /* _SYS_TYPES_H */
OLDNEW
« no previous file with comments | « newlib/libc/include/sys/signal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698