about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-04-02 04:38:23 +0200
committerrofl0r <retnyg@gmx.net>2013-04-02 04:58:14 +0200
commit47cf4919fc834a917185ace26dfd1c2ab760676d (patch)
tree550f769007141b9278c71182b6b6f3dd4720edde
parent82aad3a31726feb29981846886a17fceee605287 (diff)
downloadmusl-47cf4919fc834a917185ace26dfd1c2ab760676d.tar.gz
musl-47cf4919fc834a917185ace26dfd1c2ab760676d.tar.xz
musl-47cf4919fc834a917185ace26dfd1c2ab760676d.zip
re-add useconds_t
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.
-rwxr-xr-xarch/arm/bits/alltypes.h.sh1
-rwxr-xr-xarch/i386/bits/alltypes.h.sh1
-rwxr-xr-xarch/microblaze/bits/alltypes.h.sh1
-rwxr-xr-xarch/mips/bits/alltypes.h.sh1
-rwxr-xr-xarch/powerpc/bits/alltypes.h.sh1
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh1
-rw-r--r--include/sys/types.h1
-rw-r--r--include/unistd.h1
8 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh
index a531ee0f..abe782d9 100755
--- a/arch/arm/bits/alltypes.h.sh
+++ b/arch/arm/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh
index 13def835..579aa1af 100755
--- a/arch/i386/bits/alltypes.h.sh
+++ b/arch/i386/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/arch/microblaze/bits/alltypes.h.sh b/arch/microblaze/bits/alltypes.h.sh
index 2397c6cd..6ddd0823 100755
--- a/arch/microblaze/bits/alltypes.h.sh
+++ b/arch/microblaze/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/arch/mips/bits/alltypes.h.sh b/arch/mips/bits/alltypes.h.sh
index 2397c6cd..6ddd0823 100755
--- a/arch/mips/bits/alltypes.h.sh
+++ b/arch/mips/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/arch/powerpc/bits/alltypes.h.sh b/arch/powerpc/bits/alltypes.h.sh
index f3dac12a..417e2919 100755
--- a/arch/powerpc/bits/alltypes.h.sh
+++ b/arch/powerpc/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh
index bc9a3cc0..62e77ac9 100755
--- a/arch/x86_64/bits/alltypes.h.sh
+++ b/arch/x86_64/bits/alltypes.h.sh
@@ -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; };
 
diff --git a/include/sys/types.h b/include/sys/types.h
index 7378b60b..6ead8b6e 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -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>
 
diff --git a/include/unistd.h b/include/unistd.h
index 07e49e97..b9dc06d5 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -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>