remove obsolete and useless useconds_t type
authorRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 01:10:01 +0000 (21:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 01:10:01 +0000 (21:10 -0400)
arch/i386/bits/alltypes.h.sh
arch/x86_64/bits/alltypes.h.sh
include/unistd.h
src/unistd/ualarm.c
src/unistd/usleep.c

index c6201b9dc2e9fae35c13fa00516ac815c0be0867..cbdbea0aae4c2b4aed1c693f738a72974eada067 100755 (executable)
@@ -68,7 +68,6 @@ TYPEDEF long long          intmax_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; };
index d7ba25bb7ef1f55cc6627d5e58a4f5c25c75e7fa..1d0abf9ce092c5c86f2407e0d80dda99c7527ffd 100755 (executable)
@@ -68,7 +68,6 @@ TYPEDEF long long          intmax_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; };
index f819429e8d008cd22809df8c26d93d0ddb8c90fb..a35611140f0cc54964ce4ddeb739aeb74af8290b 100644 (file)
@@ -29,7 +29,6 @@ extern "C" {
 #define __NEED_gid_t
 #define __NEED_off_t
 #define __NEED_pid_t
-#define __NEED_useconds_t
 #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 usleep(useconds_t);
-useconds_t ualarm(useconds_t, useconds_t);
+int usleep(unsigned);
+unsigned ualarm(unsigned, unsigned);
 int setgroups(int, const gid_t []);
 #endif
 
index be853035b647cf219b1a57c44bdf6cda870d7e7d..1eb086923eef4fd89b1851acad074e6269c53548 100644 (file)
@@ -2,7 +2,7 @@
 #include "syscall.h"
 
 /* FIXME: ?? */
-useconds_t ualarm(useconds_t useconds, useconds_t interval)
+unsigned ualarm(unsigned useconds, unsigned interval)
 {
        return -1;
 }
index e386901719be1a38a777b8a5bf9889d29f254d62..ce1c814453f87deab85b9f5bcaeea029bd9be64e 100644 (file)
@@ -1,7 +1,7 @@
 #include <unistd.h>
 #include <time.h>
 
-int usleep(useconds_t useconds)
+int usleep(unsigned useconds)
 {
        struct timespec tv = {
                .tv_sec = useconds/1000000,