From 7707af891e521bc7c77db974bfdbeacd85ee5269 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Aug 1999 01:18:34 +0000 Subject: Update. * posix/sys/types.h: Define type useconds_t if not done already. * posix/unistd.h: Likewise. Use this in ualarm and usleep declarations. * sysdeps/generic/bits/types.h: Define type __useconds_t. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise. * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise. --- posix/sys/types.h | 4 ++++ posix/unistd.h | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'posix') diff --git a/posix/sys/types.h b/posix/sys/types.h index be37340025..7a0b3828c3 100644 --- a/posix/sys/types.h +++ b/posix/sys/types.h @@ -121,6 +121,10 @@ typedef __key_t key_t; #include #ifdef __USE_XOPEN +# ifndef __useconds_t_defined +typedef __useconds_t useconds_t; +# define __useconds_t_defined +# endif typedef __suseconds_t suseconds_t; #endif diff --git a/posix/unistd.h b/posix/unistd.h index d8800b7b3b..343703023b 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -224,6 +224,11 @@ typedef __off64_t off64_t; # define __off64_t_defined # endif +# ifndef __useconds_t_defined +typedef __useconds_t useconds_t; +# define __useconds_t_defined +# endif + # ifndef __pid_t_defined typedef __pid_t pid_t; # define __pid_t_defined @@ -371,12 +376,12 @@ extern unsigned int sleep __P ((unsigned int __seconds)); microseconds. If INTERVAL is nonzero, when the alarm goes off, the timer is reset to go off every INTERVAL microseconds thereafter. Returns the number of microseconds remaining before the alarm. */ -extern unsigned int ualarm __P ((unsigned int __value, - unsigned int __interval)); +extern __useconds_t ualarm __P ((__useconds_t __value, + __useconds_t __interval)); /* Sleep USECONDS microseconds, or until a signal arrives that is not blocked or ignored. */ -extern void usleep __P ((unsigned int __useconds)); +extern void usleep __P ((__useconds_t __useconds)); #endif -- cgit v1.2.3