Fix ISO C11 definitions in time.h
This commit is contained in:
parent
7724defcf8
commit
7a270350a9
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-25 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
* time/time.h: TIME_UTC must be a macro.
|
||||||
|
Make timespec_get available for ISO C11 only as well.
|
||||||
|
|
||||||
2012-02-24 Ulrich Drepper <drepper@gmail.com>
|
2012-02-24 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
|
* stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
|
||||||
|
|
19
time/time.h
19
time/time.h
|
@ -179,10 +179,7 @@ typedef __pid_t pid_t;
|
||||||
|
|
||||||
# ifdef __USE_ISOC11
|
# ifdef __USE_ISOC11
|
||||||
/* Time base values for timespec_get. */
|
/* Time base values for timespec_get. */
|
||||||
enum
|
# define TIME_UTC 1
|
||||||
{
|
|
||||||
TIME_UTC = 1
|
|
||||||
};
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -362,13 +359,6 @@ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
# ifdef __USE_ISOC11
|
|
||||||
/* Set TS to calendar time based in time base BASE. */
|
|
||||||
extern int timespec_get (struct timespec *__ts, int __base)
|
|
||||||
__THROW __nonnull ((1));
|
|
||||||
# endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Create new per-process timer using CLOCK_ID. */
|
/* Create new per-process timer using CLOCK_ID. */
|
||||||
extern int timer_create (clockid_t __clock_id,
|
extern int timer_create (clockid_t __clock_id,
|
||||||
struct sigevent *__restrict __evp,
|
struct sigevent *__restrict __evp,
|
||||||
|
@ -391,6 +381,13 @@ extern int timer_getoverrun (timer_t __timerid) __THROW;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
|
# ifdef __USE_ISOC11
|
||||||
|
/* Set TS to calendar time based in time base BASE. */
|
||||||
|
extern int timespec_get (struct timespec *__ts, int __base)
|
||||||
|
__THROW __nonnull ((1));
|
||||||
|
# endif
|
||||||
|
|
||||||
|
|
||||||
# ifdef __USE_XOPEN_EXTENDED
|
# ifdef __USE_XOPEN_EXTENDED
|
||||||
/* Set to one of the following values to indicate an error.
|
/* Set to one of the following values to indicate an error.
|
||||||
1 the DATEMSK environment variable is null or undefined,
|
1 the DATEMSK environment variable is null or undefined,
|
||||||
|
|
Loading…
Reference in New Issue