diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-14 04:57:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-14 04:57:27 +0000 |
commit | 91bc38d09ce2df68d5f03e88df144243907437da (patch) | |
tree | 0c388abd7c33a8fb5ebe894bc2fffb8d42646798 /time/time.h | |
parent | 8de72f531eb4d63481115e91d144731c5326bc79 (diff) | |
download | glibc-91bc38d09ce2df68d5f03e88df144243907437da.tar glibc-91bc38d09ce2df68d5f03e88df144243907437da.tar.gz glibc-91bc38d09ce2df68d5f03e88df144243907437da.tar.bz2 glibc-91bc38d09ce2df68d5f03e88df144243907437da.zip |
Update.
2000-08-12 Andreas Jaeger <aj@suse.de>
* include/features.h (__STDC_ISO_10646__): Define.
Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
* include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
* locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
for revision 6 and up).
* posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
including <time.h>.
* time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
to get definitions of just these types.
* signal/signal.h: Define thread signal handling functions also for
POSIX95.
* sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
POSIX95.
* sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
* sysvipc/sys/shm.h: Define pid_t for XPG.
* wcsmbs/wchar.h: Make the various wide char string and stream
functions available for the respective XPG versions.
Diffstat (limited to 'time/time.h')
-rw-r--r-- | time/time.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/time/time.h b/time/time.h index 08a4a98b7b..47e4d8c5be 100644 --- a/time/time.h +++ b/time/time.h @@ -73,6 +73,28 @@ typedef __time_t time_t; #endif /* time_t not defined and <time.h> or need time_t. */ #undef __need_time_t +#if !defined __clockid_t_defined && (defined _TIME_H || defined __need_clockid_t) +# define __clockid_t_defined 1 + +# include <bits/types.h> + +/* Clock ID used in clock and timer functions. */ +typedef __clockid_t clockid_t; + +#endif /* clockid_t not defined and <time.h> or need clockid_t. */ +#undef __clockid_time_t + +#if !defined __timer_t_defined && (defined _TIME_H || defined __need_timer_t) +# define __timer_t_defined 1 + +# include <bits/types.h> + +/* Timer ID returned by `timer_create'. */ +typedef __timer_t timer_t; + +#endif /* timer_t not defined and <time.h> or need timer_t. */ +#undef __need_timer_t + #if !defined __timespec_defined && \ ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_timespec) @@ -115,12 +137,6 @@ struct tm #ifdef __USE_POSIX199309 -/* Clock ID used in clock and timer functions. */ -typedef __clockid_t clockid_t; - -/* Timer ID returned by `timer_create'. */ -typedef __timer_t timer_t; - /* POSIX.1b structure for timer start values and intervals. */ struct itimerspec { |