Rev 4874 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | #ifndef _MACHTYPES_H_ |
2 | #define _MACHTYPES_H_ |
||
3 | |||
4 | /* |
||
5 | * The following section is RTEMS specific and is needed to more |
||
6 | * closely match the types defined in the BSD machine/types.h. |
||
7 | * This is needed to let the RTEMS/BSD TCP/IP stack compile. |
||
8 | */ |
||
9 | #if defined(__rtems__) |
||
10 | #include |
||
11 | #endif |
||
12 | |||
13 | #define _CLOCK_T_ unsigned long /* clock() */ |
||
14 | #define _TIME_T_ long /* time() */ |
||
15 | #define _CLOCKID_T_ unsigned long |
||
16 | #define _TIMER_T_ unsigned long |
||
17 | |||
18 | #ifndef _HAVE_SYSTYPES |
||
19 | typedef long int __off_t; |
||
20 | typedef int __pid_t; |
||
21 | #ifdef __GNUC__ |
||
22 | __extension__ typedef long long int __loff_t; |
||
23 | #else |
||
24 | typedef long int __loff_t; |
||
25 | #endif |
||
26 | #endif |
||
27 | |||
6099 | serge | 28 | typedef long __suseconds_t; /* microseconds (signed) */ |
29 | |||
4349 | Serge | 30 | #endif /* _MACHTYPES_H_ */ |
31 |