Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 RTEMS/NaCl specific and is needed to more |
|
Mark Seaborn
2013/11/20 18:42:25
I'm not sure saying it's NaCl-specific is really a
Sam Clegg
2013/11/23 01:37:50
Done.
| |
| 30 * closely match the types defined in the BSD sys/types.h. | 30 * closely match the types defined in 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 516 #endif | 516 #endif |
| 517 } pthread_rwlockattr_t; | 517 } pthread_rwlockattr_t; |
| 518 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ | 518 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ |
| 519 #endif /* __CYGWIN__ */ | 519 #endif /* __CYGWIN__ */ |
| 520 | 520 |
| 521 #endif /* !__need_inttypes */ | 521 #endif /* !__need_inttypes */ |
| 522 | 522 |
| 523 #undef __need_inttypes | 523 #undef __need_inttypes |
| 524 | 524 |
| 525 #endif /* _SYS_TYPES_H */ | 525 #endif /* _SYS_TYPES_H */ |
| OLD | NEW |