diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-11 10:38:00 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-11 10:38:00 -0400 |
commit | 28bde3b78746c4f773600c415fbc740efec4e311 (patch) | |
tree | a79ebafff04991f1ee27ae0876e9e22cece2f362 /include/sys | |
parent | dae17a1aaf25d8333e729173d86659066607d87d (diff) | |
download | musl-28bde3b78746c4f773600c415fbc740efec4e311.tar.gz musl-28bde3b78746c4f773600c415fbc740efec4e311.tar.bz2 musl-28bde3b78746c4f773600c415fbc740efec4e311.tar.xz musl-28bde3b78746c4f773600c415fbc740efec4e311.zip |
cleanup types stuff in headers, fix missing u_int*_t in sys/types.h
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/types.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/sys/types.h b/include/sys/types.h index 5c6b2090..72b4c5c1 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -23,12 +23,9 @@ extern "C" { #define __NEED_int32_t #define __NEED_int64_t -#define __NEED_u_int8_t -#define __NEED_u_int16_t -#define __NEED_u_int32_t -#define __NEED_u_int64_t - -#define __NEED_register_t +#define __NEED___uint16_t +#define __NEED___uint32_t +#define __NEED___uint64_t #define __NEED_blkcnt_t #define __NEED_fsblkcnt_t @@ -37,7 +34,6 @@ extern "C" { #define __NEED_id_t #define __NEED_key_t #define __NEED_clock_t -#define __NEED_useconds_t #define __NEED_suseconds_t #define __NEED_blksize_t @@ -57,6 +53,11 @@ extern "C" { #include <bits/alltypes.h> +typedef unsigned char u_int8_t; +typedef __uint16_t u_int16_t; +typedef __uint32_t u_int32_t; +typedef __uint64_t u_int64_t; + #ifdef _GNU_SOURCE typedef unsigned long caddr_t; typedef unsigned char u_char; @@ -65,6 +66,7 @@ typedef unsigned u_int, uint; typedef unsigned long u_long, ulong; typedef long long quad_t; typedef unsigned long long u_quad_t; +typedef long register_t; #include <endian.h> #include <sys/select.h> #include <sys/sysmacros.h> |