projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3bb00f4
)
remove obsolete and useless useconds_t type
author
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Apr 2011 01:10:01 +0000
(21:10 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Apr 2011 01:10:01 +0000
(21:10 -0400)
arch/i386/bits/alltypes.h.sh
patch
|
blob
|
history
arch/x86_64/bits/alltypes.h.sh
patch
|
blob
|
history
include/unistd.h
patch
|
blob
|
history
src/unistd/ualarm.c
patch
|
blob
|
history
src/unistd/usleep.c
patch
|
blob
|
history
diff --git
a/arch/i386/bits/alltypes.h.sh
b/arch/i386/bits/alltypes.h.sh
index
c6201b9
..
cbdbea0
100755
(executable)
--- a/
arch/i386/bits/alltypes.h.sh
+++ b/
arch/i386/bits/alltypes.h.sh
@@
-68,7
+68,6
@@
TYPEDEF long long intmax_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
-TYPEDEF unsigned useconds_t;
TYPEDEF int suseconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
TYPEDEF int suseconds_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
d7ba25b
..
1d0abf9
100755
(executable)
--- a/
arch/x86_64/bits/alltypes.h.sh
+++ b/
arch/x86_64/bits/alltypes.h.sh
@@
-68,7
+68,6
@@
TYPEDEF long long intmax_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
-TYPEDEF long useconds_t;
TYPEDEF long suseconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
TYPEDEF long suseconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
diff --git
a/include/unistd.h
b/include/unistd.h
index
f819429
..
a356111
100644
(file)
--- a/
include/unistd.h
+++ b/
include/unistd.h
@@
-29,7
+29,6
@@
extern "C" {
#define __NEED_gid_t
#define __NEED_off_t
#define __NEED_pid_t
#define __NEED_gid_t
#define __NEED_off_t
#define __NEED_pid_t
-#define __NEED_useconds_t
#define __NEED_intptr_t
#include <bits/alltypes.h>
#define __NEED_intptr_t
#include <bits/alltypes.h>
@@
-152,8
+151,8
@@
int vhangup(void);
int chroot(const char *);
int getpagesize(void);
int sethostname(const char *, size_t);
int chroot(const char *);
int getpagesize(void);
int sethostname(const char *, size_t);
-int usleep(u
seconds_t
);
-u
seconds_t ualarm(useconds_t, useconds_t
);
+int usleep(u
nsigned
);
+u
nsigned ualarm(unsigned, unsigned
);
int setgroups(int, const gid_t []);
#endif
int setgroups(int, const gid_t []);
#endif
diff --git
a/src/unistd/ualarm.c
b/src/unistd/ualarm.c
index
be85303
..
1eb0869
100644
(file)
--- a/
src/unistd/ualarm.c
+++ b/
src/unistd/ualarm.c
@@
-2,7
+2,7
@@
#include "syscall.h"
/* FIXME: ?? */
#include "syscall.h"
/* FIXME: ?? */
-u
seconds_t ualarm(useconds_t useconds, useconds_t
interval)
+u
nsigned ualarm(unsigned useconds, unsigned
interval)
{
return -1;
}
{
return -1;
}
diff --git
a/src/unistd/usleep.c
b/src/unistd/usleep.c
index
e386901
..
ce1c814
100644
(file)
--- a/
src/unistd/usleep.c
+++ b/
src/unistd/usleep.c
@@
-1,7
+1,7
@@
#include <unistd.h>
#include <time.h>
#include <unistd.h>
#include <time.h>
-int usleep(u
seconds_t
useconds)
+int usleep(u
nsigned
useconds)
{
struct timespec tv = {
.tv_sec = useconds/1000000,
{
struct timespec tv = {
.tv_sec = useconds/1000000,