re-add useconds_t
authorrofl0r <retnyg@gmx.net>
Tue, 2 Apr 2013 02:38:23 +0000 (04:38 +0200)
committerrofl0r <retnyg@gmx.net>
Tue, 2 Apr 2013 02:58:14 +0000 (04:58 +0200)
this type was removed back in 5243e5f1606a9c6fcf01414e ,
because it was removed from the XSI specs.
however some apps use it.
since it's in the POSIX reserved namespace, we can expose it
unconditionally.

arch/arm/bits/alltypes.h.sh
arch/i386/bits/alltypes.h.sh
arch/microblaze/bits/alltypes.h.sh
arch/mips/bits/alltypes.h.sh
arch/powerpc/bits/alltypes.h.sh
arch/x86_64/bits/alltypes.h.sh
include/sys/types.h
include/unistd.h

index a531ee0..abe782d 100755 (executable)
@@ -61,6 +61,7 @@ TYPEDEF double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index 13def83..579aa1a 100755 (executable)
@@ -74,6 +74,7 @@ TYPEDEF long double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index 2397c6c..6ddd082 100755 (executable)
@@ -61,6 +61,7 @@ TYPEDEF double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index 2397c6c..6ddd082 100755 (executable)
@@ -61,6 +61,7 @@ TYPEDEF double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index f3dac12..417e291 100755 (executable)
@@ -61,6 +61,7 @@ TYPEDEF double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index bc9a3cc..62e77ac 100755 (executable)
@@ -60,6 +60,7 @@ TYPEDEF double double_t;
 
 TYPEDEF long time_t;
 TYPEDEF long suseconds_t;
+TYPEDEF unsigned useconds_t;
 STRUCT timeval { time_t tv_sec; long tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };
 
index 7378b60..6ead8b6 100644 (file)
@@ -52,6 +52,7 @@ extern "C" {
 #define __NEED_pthread_spinlock_t
 #define __NEED_pthread_key_t
 #define __NEED_pthread_once_t
+#define __NEED_useconds_t
 
 #include <bits/alltypes.h>
 
index 07e49e9..b9dc06d 100644 (file)
@@ -24,6 +24,7 @@ extern "C" {
 #define __NEED_off_t
 #define __NEED_pid_t
 #define __NEED_intptr_t
+#define __NEED_useconds_t
 
 #include <bits/alltypes.h>