Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
	* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
	* sysdeps/generic/bits/time.h: Likewise.
	* sysdeps/mach/hurd/bits/time.h: Likewise.
	* sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
	* sysdeps/generic/bits/types.h: Likewise.
	* posix/sys/types.h: Define suseconds_t for X/Open.
  • Loading branch information
Ulrich Drepper committed Jul 17, 1999
1 parent e58f1a4 commit 57fb9b3
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 15 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Expand Up @@ -2,10 +2,16 @@

* sysdeps/unix/sysv/linux/bits/time.h (timeval): Use __suseconds_t
type for tv_usec element.
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
* sysdeps/unix/sysv/linux/bits/types.h: Define __suseconds_t.
* sysdeps/generic/bits/time.h: Likewise.
* sysdeps/mach/hurd/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/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.
* sysdeps/generic/bits/types.h: Likewise.
* posix/sys/types.h: Define suseconds_t for X/Open.

1999-07-15 Ulrich Drepper <drepper@cygnus.com>

Expand Down
4 changes: 2 additions & 2 deletions bits/time.h
@@ -1,5 +1,5 @@
/* System-dependent timing definitions. Stub version.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -40,7 +40,7 @@
struct timeval
{
__time_t tv_sec; /* Seconds. */
__time_t tv_usec; /* Microseconds. */
__suseconds_t tv_usec; /* Microseconds. */
};
# endif /* struct timeval */
#endif /* need timeval */
3 changes: 2 additions & 1 deletion bits/types.h
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,94,95,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -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 char *__caddr_t;
typedef long int __time_t;
typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __key_t; /* Type of an IPC key */

Expand Down
4 changes: 4 additions & 0 deletions posix/sys/types.h
Expand Up @@ -120,6 +120,10 @@ typedef __key_t key_t;
#define __need_time_t
#include <time.h>

#ifdef __USE_XOPEN
typedef __suseconds_t suseconds_t;
#endif

#define __need_size_t
#include <stddef.h>

Expand Down
4 changes: 2 additions & 2 deletions sysdeps/generic/bits/time.h
@@ -1,5 +1,5 @@
/* System-dependent timing definitions. Stub version.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -40,7 +40,7 @@
struct timeval
{
__time_t tv_sec; /* Seconds. */
__time_t tv_usec; /* Microseconds. */
__suseconds_t tv_usec; /* Microseconds. */
};
# endif /* struct timeval */
#endif /* need timeval */
3 changes: 2 additions & 1 deletion sysdeps/generic/bits/types.h
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,94,95,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -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 char *__caddr_t;
typedef long int __time_t;
typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __key_t; /* Type of an IPC key */

Expand Down
2 changes: 1 addition & 1 deletion sysdeps/mach/hurd/bits/time.h
Expand Up @@ -56,7 +56,7 @@ extern int __libc_clk_tck __P ((void)) __attribute__ ((const));
struct timeval
{
__time_t tv_sec; /* Seconds. */
__time_t tv_usec; /* Microseconds. */
__suseconds_t tv_usec; /* Microseconds. */
};
# endif /* struct timeval */
#endif /* need timeval */
6 changes: 3 additions & 3 deletions sysdeps/unix/sysv/linux/alpha/bits/time.h
@@ -1,5 +1,5 @@
/* System-dependent timing definitions. Linux/Alpha version.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -42,7 +42,7 @@
# endif /* bits/time.h */
#endif /* !__need_timeval */

#ifdef __need_timeval
#ifdef __need_timeval
# undef __need_timeval
# ifndef _STRUCT_TIMEVAL
# define _STRUCT_TIMEVAL 1
Expand All @@ -53,7 +53,7 @@
struct timeval
{
__time_t tv_sec; /* Seconds. */
__time_t tv_usec; /* Microseconds. */
__suseconds_t tv_usec; /* Microseconds. */
};
# endif /* struct timeval */
#endif /* need timeval */
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/alpha/bits/types.h
Expand Up @@ -76,6 +76,7 @@ typedef struct
typedef int __daddr_t; /* Type of a disk address. */
typedef char *__caddr_t; /* Type of a core address. */
typedef long int __time_t;
typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef long int __clock_t;
typedef int __key_t; /* Type of a SYSV IPC key. */
Expand Down
8 changes: 4 additions & 4 deletions sysdeps/unix/sysv/linux/bits/time.h
@@ -1,5 +1,5 @@
/* System-dependent timing definitions. Linux version.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -42,7 +42,7 @@
# endif /* bits/time.h */
#endif

#ifdef __need_timeval
#ifdef __need_timeval
# undef __need_timeval
# ifndef _STRUCT_TIMEVAL
# define _STRUCT_TIMEVAL 1
Expand All @@ -53,7 +53,7 @@
struct timeval
{
__time_t tv_sec; /* Seconds. */
__time_t tv_usec; /* Microseconds. */
__suseconds_t tv_usec; /* Microseconds. */
};
# endif /* struct timeval */
#endif /* need timeval */
#endif /* need timeval */
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/bits/types.h
Expand Up @@ -81,6 +81,7 @@ typedef struct
typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t;
typedef long int __time_t;
typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */

typedef long int __clock_t;
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/mips/bits/types.h
Expand Up @@ -81,6 +81,7 @@ typedef struct
typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t;
typedef long int __time_t;
typedef long int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */

typedef long int __clock_t;
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/sparc/bits/types.h
Expand Up @@ -98,6 +98,7 @@ typedef struct
typedef int __daddr_t; /* The type of a disk address. */
typedef char *__caddr_t;
typedef long int __time_t;
typedef int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */

typedef long int __clock_t;
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/sysv4/solaris2/bits/types.h
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,94,95,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -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 char *__caddr_t;
typedef long int __time_t;
typedef int __suseconds_t;
typedef long int __swblk_t; /* Type of a swap block maybe? */
typedef int __key_t; /* Type of an IPC key */

Expand Down

0 comments on commit 57fb9b3

Please sign in to comment.