musl: add a few more glibc types to includes
[openwrt/openwrt.git] / toolchain / musl / include / sys / glibc-types.h
1 #ifndef __MUSL_GLIBC_TYPES_H
2 #define __MUSL_GLIBC_TYPES_H
3
4 #include <sys/cdefs.h>
5
6 /* Convenience types. */
7 typedef unsigned char __u_char;
8 typedef unsigned short int __u_short;
9 typedef unsigned int __u_int;
10 typedef unsigned long int __u_long;
11
12 /* Fixed-size types, underlying types depend on word size and compiler. */
13 typedef signed char __int8_t;
14 typedef unsigned char __uint8_t;
15 typedef signed short int __int16_t;
16 typedef unsigned short int __uint16_t;
17 typedef signed int __int32_t;
18 typedef unsigned int __uint32_t;
19 #if __WORDSIZE == 64
20 typedef signed long int __int64_t;
21 typedef unsigned long int __uint64_t;
22 #else
23 __extension__ typedef signed long long int __int64_t;
24 __extension__ typedef unsigned long long int __uint64_t;
25 #endif
26
27 #define __off64_t off_t
28 #define __loff_t off_t
29 typedef char *__caddr_t;
30 #define __locale_t locale_t
31
32 #define __gid_t gid_t
33 #define __uid_t uid_t
34
35 #endif