Line | |
---|
1 | /* ANSI C namespace clean utility typedefs */ |
---|
2 | |
---|
3 | /* This file defines various typedefs needed by the system calls that support |
---|
4 | the C library. Basically, they're just the POSIX versions with an '_' |
---|
5 | prepended. This file lives in the `sys' directory so targets can provide |
---|
6 | their own if desired (or they can put target dependant conditionals here). |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _SYS__TYPES_H |
---|
10 | #define _SYS__TYPES_H |
---|
11 | |
---|
12 | typedef long _off_t; |
---|
13 | __extension__ typedef long long _off64_t; |
---|
14 | |
---|
15 | typedef long _fpos_t; |
---|
16 | __extension__ typedef long long _fpos64_t; |
---|
17 | |
---|
18 | #if defined(__INT_MAX__) && __INT_MAX__ == 2147483647 |
---|
19 | typedef int _ssize_t; |
---|
20 | #else |
---|
21 | typedef long _ssize_t; |
---|
22 | #endif |
---|
23 | |
---|
24 | #define __need_wint_t |
---|
25 | #include <stddef.h> |
---|
26 | |
---|
27 | /* Conversion state information. */ |
---|
28 | typedef struct |
---|
29 | { |
---|
30 | int __count; |
---|
31 | union |
---|
32 | { |
---|
33 | wint_t __wch; |
---|
34 | unsigned char __wchb[4]; |
---|
35 | } __value; /* Value so far. */ |
---|
36 | } _mbstate_t; |
---|
37 | |
---|
38 | struct __flock_mutex_t_tmp; |
---|
39 | typedef struct |
---|
40 | { |
---|
41 | int __a; |
---|
42 | int __b; |
---|
43 | struct |
---|
44 | { |
---|
45 | long int __c1; |
---|
46 | int __c2; |
---|
47 | } __c; |
---|
48 | int __d; |
---|
49 | struct __flock_mutex_t_tmp * __e; |
---|
50 | } __flock_mutex_t; |
---|
51 | |
---|
52 | typedef struct { __flock_mutex_t mutex; } _flock_t; |
---|
53 | |
---|
54 | #endif /* _SYS__TYPES_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.