1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* 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.
This commit is contained in:
Ulrich Drepper
1999-08-18 01:18:34 +00:00
parent 56c55d5d4a
commit 7707af891e
10 changed files with 29 additions and 3 deletions

View File

@ -1,5 +1,15 @@
1999-08-17 Ulrich Drepper <drepper@cygnus.com> 1999-08-17 Ulrich Drepper <drepper@cygnus.com>
* 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.
* dirent/dirent.h (telldir): Change return type to long int. * dirent/dirent.h (telldir): Change return type to long int.
* sysdeps/generic/telldir.c: Likewise. * sysdeps/generic/telldir.c: Likewise.
* sysdeps/mach/hurd/telldir.c: Likewise. * sysdeps/mach/hurd/telldir.c: Likewise.

View File

@ -80,6 +80,7 @@ typedef unsigned int __id_t; /* General type for IDs. */
typedef long int __daddr_t; /* The type of a disk address. */ typedef long int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef int __useconds_t;
typedef long int __suseconds_t; typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __key_t; /* Type of an IPC key */ typedef long int __key_t; /* Type of an IPC key */

View File

@ -121,6 +121,10 @@ typedef __key_t key_t;
#include <time.h> #include <time.h>
#ifdef __USE_XOPEN #ifdef __USE_XOPEN
# ifndef __useconds_t_defined
typedef __useconds_t useconds_t;
# define __useconds_t_defined
# endif
typedef __suseconds_t suseconds_t; typedef __suseconds_t suseconds_t;
#endif #endif

View File

@ -224,6 +224,11 @@ typedef __off64_t off64_t;
# define __off64_t_defined # define __off64_t_defined
# endif # endif
# ifndef __useconds_t_defined
typedef __useconds_t useconds_t;
# define __useconds_t_defined
# endif
# ifndef __pid_t_defined # ifndef __pid_t_defined
typedef __pid_t pid_t; typedef __pid_t pid_t;
# define __pid_t_defined # 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 microseconds. If INTERVAL is nonzero, when the alarm goes off, the
timer is reset to go off every INTERVAL microseconds thereafter. timer is reset to go off every INTERVAL microseconds thereafter.
Returns the number of microseconds remaining before the alarm. */ Returns the number of microseconds remaining before the alarm. */
extern unsigned int ualarm __P ((unsigned int __value, extern __useconds_t ualarm __P ((__useconds_t __value,
unsigned int __interval)); __useconds_t __interval));
/* Sleep USECONDS microseconds, or until a signal arrives that is not blocked /* Sleep USECONDS microseconds, or until a signal arrives that is not blocked
or ignored. */ or ignored. */
extern void usleep __P ((unsigned int __useconds)); extern void usleep __P ((__useconds_t __useconds));
#endif #endif

View File

@ -80,6 +80,7 @@ typedef unsigned int __id_t; /* General type for IDs. */
typedef long int __daddr_t; /* The type of a disk address. */ typedef long int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef int __useconds_t;
typedef long int __suseconds_t; typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __key_t; /* Type of an IPC key */ typedef long int __key_t; /* Type of an IPC key */

View File

@ -76,6 +76,7 @@ typedef struct
typedef int __daddr_t; /* Type of a disk address. */ typedef int __daddr_t; /* Type of a disk address. */
typedef char *__caddr_t; /* Type of a core address. */ typedef char *__caddr_t; /* Type of a core address. */
typedef long int __time_t; typedef long int __time_t;
typedef int __useconds_t;
typedef long int __suseconds_t; typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __clock_t; typedef long int __clock_t;

View File

@ -82,6 +82,7 @@ typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef long int __suseconds_t; typedef long int __suseconds_t;
typedef int __useconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __clock_t; typedef long int __clock_t;

View File

@ -82,6 +82,7 @@ typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef long int __suseconds_t; typedef long int __suseconds_t;
typedef int __useconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __clock_t; typedef long int __clock_t;

View File

@ -98,6 +98,7 @@ typedef struct
typedef int __daddr_t; /* The type of a disk address. */ typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef int __useconds_t;
typedef int __suseconds_t; typedef int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */

View File

@ -79,6 +79,7 @@ typedef unsigned int __id_t; /* General type for IDs. */
typedef long int __daddr_t; /* The type of a disk address. */ typedef long int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t; typedef char *__caddr_t;
typedef long int __time_t; typedef long int __time_t;
typedef int __useconds_t;
typedef int __suseconds_t; typedef int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */ typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef int __key_t; /* Type of an IPC key */ typedef int __key_t; /* Type of an IPC key */