cleanup types stuff in headers, fix missing u_int*_t in sys/types.h
authorRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 14:38:00 +0000 (10:38 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 14:38:00 +0000 (10:38 -0400)
arch/i386/bits/alltypes.h.sh
arch/x86_64/bits/alltypes.h.sh
include/stdint.h
include/sys/types.h

index cbdbea0aae4c2b4aed1c693f738a72974eada067..4daaf98f94a09f5c2e61164198c83aaa6f04fb73 100755 (executable)
@@ -36,21 +36,10 @@ TYPEDEF unsigned short     uint16_t;
 TYPEDEF unsigned int       uint32_t;
 TYPEDEF unsigned long long uint64_t;
 
-TYPEDEF unsigned char      __uint8_t;
 TYPEDEF unsigned short     __uint16_t;
 TYPEDEF unsigned int       __uint32_t;
 TYPEDEF unsigned long long __uint64_t;
 
-TYPEDEF int8_t  int_least8_t;
-TYPEDEF int16_t int_least16_t;
-TYPEDEF int32_t int_least32_t;
-TYPEDEF int64_t int_least64_t;
-
-TYPEDEF uint8_t  uint_least8_t;
-TYPEDEF uint16_t uint_least16_t;
-TYPEDEF uint32_t uint_least32_t;
-TYPEDEF uint64_t uint_least64_t;
-
 TYPEDEF int8_t    int_fast8_t;
 TYPEDEF int       int_fast16_t;
 TYPEDEF int       int_fast32_t;
index 1d0abf9ce092c5c86f2407e0d80dda99c7527ffd..bcbb5ee1189eab79bb1e6e70031d76f1d2c9fef9 100755 (executable)
@@ -36,21 +36,10 @@ TYPEDEF unsigned short     uint16_t;
 TYPEDEF unsigned int       uint32_t;
 TYPEDEF unsigned long      uint64_t;
 
-TYPEDEF unsigned char      __uint8_t;
 TYPEDEF unsigned short     __uint16_t;
 TYPEDEF unsigned int       __uint32_t;
 TYPEDEF unsigned long      __uint64_t;
 
-TYPEDEF int8_t  int_least8_t;
-TYPEDEF int16_t int_least16_t;
-TYPEDEF int32_t int_least32_t;
-TYPEDEF int64_t int_least64_t;
-
-TYPEDEF uint8_t  uint_least8_t;
-TYPEDEF uint16_t uint_least16_t;
-TYPEDEF uint32_t uint_least32_t;
-TYPEDEF uint64_t uint_least64_t;
-
 TYPEDEF int8_t    int_fast8_t;
 TYPEDEF int       int_fast16_t;
 TYPEDEF int       int_fast32_t;
index 4d24fd2e435ccd45aae680112fc407d67bc77db2..8e187a5fd475625f88082f51f77a259390e1be52 100644 (file)
 
 #include <bits/alltypes.h>
 
+typedef int8_t  int_least8_t;
+typedef int16_t int_least16_t;
+typedef int32_t int_least32_t;
+typedef int64_t int_least64_t;
+
+typedef uint8_t  uint_least8_t;
+typedef uint16_t uint_least16_t;
+typedef uint32_t uint_least32_t;
+typedef uint64_t uint_least64_t;
+
 #if !defined __cplusplus || defined __STDC_LIMIT_MACROS
 
 #define INT8_MIN   (-1-0x7f)
index 5c6b2090b7fa67d4fff247c7f8618bd6adf3557f..72b4c5c12edf2b5980b6333903958b4c2bf88a7e 100644 (file)
@@ -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>