xref: /utopia/UTPA2-700.0.x/projects/tools/lint/aeon_include/sys/_types.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
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 #include <sys/lock.h>
13 
14 typedef long _off_t;
15 __extension__ typedef long long _off64_t;
16 
17 #if defined(__INT_MAX__) && __INT_MAX__ == 2147483647
18 typedef int _ssize_t;
19 #else
20 typedef long _ssize_t;
21 #endif
22 
23 #define __need_wint_t
24 #include <stddef.h>
25 
26 /* Conversion state information.  */
27 typedef struct
28 {
29   int __count;
30   union
31   {
32     wint_t __wch;
33     unsigned char __wchb[4];
34   } __value;		/* Value so far.  */
35 } _mbstate_t;
36 
37 typedef _LOCK_RECURSIVE_T _flock_t;
38 
39 /* Iconv descriptor type */
40 typedef void *_iconv_t;
41 
42 #endif	/* _SYS__TYPES_H */
43