(__lll_mutex_cond_lock): New function. (lll_mutex_cond_lock): Define.
[glibc/pb-stable.git] / include / time.h
blobdaf4c27495b5120339915810d4679799c2c61b84
1 #ifndef _TIME_H
2 #if defined __need_time_t || defined __need_clock_t || defined __need_timespec
3 # include <time/time.h>
4 #else
5 # include <time/time.h>
7 extern __typeof (strftime_l) __strftime_l;
8 libc_hidden_proto (__strftime_l)
9 extern __typeof (strptime_l) __strptime_l;
11 libc_hidden_proto (time)
12 libc_hidden_proto (asctime)
13 libc_hidden_proto (mktime)
14 libc_hidden_proto (timelocal)
15 libc_hidden_proto (localtime)
16 libc_hidden_proto (strftime)
17 libc_hidden_proto (strptime)
19 /* Now define the internal interfaces. */
20 struct tm;
22 /* Defined in mktime.c. */
23 extern const unsigned short int __mon_yday[2][13] attribute_hidden;
25 /* Defined in localtime.c. */
26 extern struct tm _tmbuf attribute_hidden;
28 /* Defined in tzset.c. */
29 extern char *__tzstring (const char *string);
31 /* Defined in tzset.c. */
32 extern size_t __tzname_cur_max attribute_hidden;
35 extern int __use_tzfile attribute_hidden;
37 extern void __tzfile_read (const char *file, size_t extra,
38 char **extrap);
39 extern void __tzfile_compute (time_t timer, int use_localtime,
40 long int *leap_correct, int *leap_hit,
41 struct tm *tp);
42 extern void __tzfile_default (const char *std, const char *dst,
43 long int stdoff, long int dstoff);
45 /* Subroutine of `mktime'. Return the `time_t' representation of TP and
46 normalize TP, given that a `struct tm *' maps to a `time_t' as performed
47 by FUNC. Keep track of next guess for time_t offset in *OFFSET. */
48 extern time_t __mktime_internal (struct tm *__tp,
49 struct tm *(*__func) (const time_t *,
50 struct tm *),
51 time_t *__offset);
52 extern struct tm *__localtime_r (__const time_t *__timer,
53 struct tm *__tp) attribute_hidden;
55 extern struct tm *__gmtime_r (__const time_t *__restrict __timer,
56 struct tm *__restrict __tp);
57 libc_hidden_proto (__gmtime_r)
59 /* Compute the `struct tm' representation of *T,
60 offset OFFSET seconds east of UTC,
61 and store year, yday, mon, mday, wday, hour, min, sec into *TP.
62 Return nonzero if successful. */
63 extern int __offtime (__const time_t *__timer,
64 long int __offset,
65 struct tm *__tp);
67 extern char *__asctime_r (__const struct tm *__tp, char *__buf);
68 extern void __tzset (void);
70 /* Prototype for the internal function to get information based on TZ. */
71 extern struct tm *__tz_convert (const time_t *timer, int use_localtime, struct tm *tp);
73 /* Return the maximum length of a timezone name.
74 This is what `sysconf (_SC_TZNAME_MAX)' does. */
75 extern long int __tzname_max (void);
77 extern int __nanosleep (__const struct timespec *__requested_time,
78 struct timespec *__remaining);
79 libc_hidden_proto(__nanosleep)
80 extern int __getdate_r (__const char *__string, struct tm *__resbufp);
83 /* Determine CLK_TCK value. */
84 extern int __getclktck (void);
85 #endif
86 #endif