1 #if defined __need_time_t || defined __need_clock_t || defined __need_timespec
2 # include <time/time.h>
4 # include <time/time.h>
6 /* Now define the internal interfaces. */
9 /* Subroutine of `mktime'. Return the `time_t' representation of TP and
10 normalize TP, given that a `struct tm *' maps to a `time_t' as performed
11 by FUNC. Keep track of next guess for time_t offset in *OFFSET. */
12 extern time_t __mktime_internal
__P ((struct tm
*__tp
,
13 struct tm
*(*__func
) (const time_t *,
16 extern struct tm
*__localtime_r
__P ((__const
time_t *__timer
,
19 /* Compute the `struct tm' representation of *T,
20 offset OFFSET seconds east of UTC,
21 and store year, yday, mon, mday, wday, hour, min, sec into *TP.
22 Return nonzero if successful. */
23 extern int __offtime
__P ((__const
time_t *__timer
,
27 extern char *__asctime_r
__P ((__const
struct tm
*__tp
, char *__buf
));
28 extern void __tzset
__P ((void));
30 /* Return the maximum length of a timezone name.
31 This is what `sysconf (_SC_TZNAME_MAX)' does. */
32 extern long int __tzname_max
__P ((void));
34 extern int __nanosleep
__P ((__const
struct timespec
*__requested_time
,
35 struct timespec
*__remaining
));
36 extern int __getdate_r
__P ((__const
char *__string
, struct tm
*__resbufp
));