Browse Source

remove obsolete and useless useconds_t type

Rich Felker 14 years ago
parent
commit
5243e5f160
5 changed files with 4 additions and 7 deletions
  1. 0 1
      arch/i386/bits/alltypes.h.sh
  2. 0 1
      arch/x86_64/bits/alltypes.h.sh
  3. 2 3
      include/unistd.h
  4. 1 1
      src/unistd/ualarm.c
  5. 1 1
      src/unistd/usleep.c

+ 0 - 1
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 useconds_t;
 TYPEDEF int suseconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
 STRUCT timespec { time_t tv_sec; long tv_nsec; };

+ 0 - 1
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 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; };

+ 2 - 3
include/unistd.h

@@ -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
 

+ 1 - 1
src/unistd/ualarm.c

@@ -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;
 }

+ 1 - 1
src/unistd/usleep.c

@@ -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,