Update.
[glibc.git] / include / time.h
blob2659e6271766fa0f6e902cacf2aeac98db1512a4
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 /* Now define the internal interfaces. */
8 struct tm;
10 /* Subroutine of `mktime'. Return the `time_t' representation of TP and
11 normalize TP, given that a `struct tm *' maps to a `time_t' as performed
12 by FUNC. Keep track of next guess for time_t offset in *OFFSET. */
13 extern time_t __mktime_internal __P ((struct tm *__tp,
14 struct tm *(*__func) (const time_t *,
15 struct tm *),
16 time_t *__offset));
17 extern struct tm *__localtime_r __P ((__const time_t *__timer,
18 struct tm *__tp));
20 /* Compute the `struct tm' representation of *T,
21 offset OFFSET seconds east of UTC,
22 and store year, yday, mon, mday, wday, hour, min, sec into *TP.
23 Return nonzero if successful. */
24 extern int __offtime __P ((__const time_t *__timer,
25 long int __offset,
26 struct tm *__tp));
28 extern char *__asctime_r __P ((__const struct tm *__tp, char *__buf));
29 extern void __tzset __P ((void));
31 /* Return the maximum length of a timezone name.
32 This is what `sysconf (_SC_TZNAME_MAX)' does. */
33 extern long int __tzname_max __P ((void));
35 extern int __nanosleep __P ((__const struct timespec *__requested_time,
36 struct timespec *__remaining));
37 extern int __getdate_r __P ((__const char *__string, struct tm *__resbufp));
38 #endif
39 #endif