diff options
author | rofl0r <retnyg@gmx.net> | 2013-04-02 04:38:23 +0200 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2013-04-02 04:58:14 +0200 |
commit | 47cf4919fc834a917185ace26dfd1c2ab760676d (patch) | |
tree | 550f769007141b9278c71182b6b6f3dd4720edde | |
parent | 82aad3a31726feb29981846886a17fceee605287 (diff) | |
download | musl-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-x | arch/arm/bits/alltypes.h.sh | 1 | ||||
-rwxr-xr-x | arch/i386/bits/alltypes.h.sh | 1 | ||||
-rwxr-xr-x | arch/microblaze/bits/alltypes.h.sh | 1 | ||||
-rwxr-xr-x | arch/mips/bits/alltypes.h.sh | 1 | ||||
-rwxr-xr-x | arch/powerpc/bits/alltypes.h.sh | 1 | ||||
-rwxr-xr-x | arch/x86_64/bits/alltypes.h.sh | 1 | ||||
-rw-r--r-- | include/sys/types.h | 1 | ||||
-rw-r--r-- | include/unistd.h | 1 |
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> |