2 #if defined __need_time_t || defined __need_clock_t || defined __need_timespec
3 # include <time/time.h>
5 # include <time/time.h>
7 /* Now define the internal interfaces. */
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 *,
17 extern struct tm
*__localtime_r
__P ((__const
time_t *__timer
,
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
,
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
));