version 1.37, 2008/09/21 16:59:46 |
version 1.38, 2009/01/11 03:04:12 |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
char *asctime(const struct tm *); |
char *asctime(const struct tm *); |
clock_t clock(void); |
clock_t clock(void); |
char *ctime(const time_t *); |
#ifndef __LIBC12_SOURCE__ |
double difftime(time_t, time_t); |
char *ctime(const time_t *) __RENAME(__ctime50); |
struct tm *gmtime(const time_t *); |
double difftime(time_t, time_t) __RENAME(__difftime50); |
struct tm *localtime(const time_t *); |
struct tm *gmtime(const time_t *) __RENAME(__gmtime50); |
time_t mktime(struct tm *); |
struct tm *localtime(const time_t *) __RENAME(__locatime50); |
|
time_t time(time_t *) __RENAME(__time50); |
|
time_t mktime(struct tm *) __RENAME(__mktime50); |
|
#endif |
size_t strftime(char * __restrict, size_t, const char * __restrict, |
size_t strftime(char * __restrict, size_t, const char * __restrict, |
const struct tm * __restrict) |
const struct tm * __restrict) |
__attribute__((__format__(__strftime__, 3, 0))); |
__attribute__((__format__(__strftime__, 3, 0))); |
time_t time(time_t *); |
|
|
|
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ |
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ |
defined(_NETBSD_SOURCE) |
defined(_NETBSD_SOURCE) |
Line 113 long __sysconf(int); |
|
Line 115 long __sysconf(int); |
|
#endif |
#endif |
|
|
extern __aconst char *tzname[2]; |
extern __aconst char *tzname[2]; |
void tzset(void); |
#ifndef __LIBC12_SOURCE__ |
|
void tzset(void) __RENAME(__tzset50); |
|
#endif |
|
|
/* |
/* |
* X/Open Portability Guide >= Issue 4 |
* X/Open Portability Guide >= Issue 4 |
Line 132 char *strptime(const char * __restrict, |
|
Line 136 char *strptime(const char * __restrict, |
|
#include <sys/time.h> /* XXX for struct timespec */ |
#include <sys/time.h> /* XXX for struct timespec */ |
struct sigevent; |
struct sigevent; |
struct itimerspec; |
struct itimerspec; |
int clock_getres(clockid_t, struct timespec *); |
#ifndef __LIBC12_SOURCE__ |
int clock_gettime(clockid_t, struct timespec *); |
int clock_getres(clockid_t, struct timespec *) |
int clock_settime(clockid_t, const struct timespec *); |
__RENAME(__clock_getres50); |
int nanosleep(const struct timespec *, struct timespec *); |
int clock_gettime(clockid_t, struct timespec *) |
|
__RENAME(__clock_gettime50); |
|
int clock_settime(clockid_t, const struct timespec *) |
|
__RENAME(__clock_settime50); |
|
int nanosleep(const struct timespec *, struct timespec *) |
|
__RENAME(__nanosleep50); |
|
int timer_gettime(timer_t, struct itimerspec *) __RENAME(__timer_gettime50); |
|
int timer_settime(timer_t, int, const struct itimerspec * __restrict, |
|
struct itimerspec * __restrict) __RENAME(__timer_settime50); |
|
#endif |
int timer_create(clockid_t, struct sigevent * __restrict, |
int timer_create(clockid_t, struct sigevent * __restrict, |
timer_t * __restrict); |
timer_t * __restrict); |
int timer_delete(timer_t); |
int timer_delete(timer_t); |
int timer_getoverrun(timer_t); |
int timer_getoverrun(timer_t); |
int timer_gettime(timer_t, struct itimerspec *); |
|
int timer_settime(timer_t, int, const struct itimerspec * __restrict, |
|
struct itimerspec * __restrict); |
|
#endif /* _POSIX_C_SOURCE >= 199309 || _XOPEN_SOURCE >= 500 || ... */ |
#endif /* _POSIX_C_SOURCE >= 199309 || _XOPEN_SOURCE >= 500 || ... */ |
|
|
#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ |
#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ |
defined(_REENTRANT) || defined(_NETBSD_SOURCE) |
defined(_REENTRANT) || defined(_NETBSD_SOURCE) |
char *asctime_r(const struct tm * __restrict, char * __restrict); |
char *asctime_r(const struct tm * __restrict, char * __restrict); |
char *ctime_r(const time_t *, char *); |
#ifndef __LIBC12_SOURCE__ |
struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict); |
char *ctime_r(const time_t *, char *) __RENAME(__ctime_r50); |
struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict); |
struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict) |
|
__RENAME(__gmtime_r50); |
|
struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict) |
|
__RENAME(__localtime_r50); |
|
#endif |
#endif |
#endif |
|
|
#if defined(_NETBSD_SOURCE) |
#if defined(_NETBSD_SOURCE) |
time_t time2posix(time_t); |
#ifndef __LIBC12_SOURCE__ |
time_t posix2time(time_t); |
time_t time2posix(time_t) __RENAME(__time2posix50); |
time_t timegm(struct tm *); |
time_t posix2time(time_t) __RENAME(__posix2time50); |
time_t timeoff(struct tm *, long); |
time_t timegm(struct tm *) __RENAME(__timegm50); |
time_t timelocal(struct tm *); |
time_t timeoff(struct tm *, long) __RENAME(__timeoff50); |
void tzsetwall(void); |
time_t timelocal(struct tm *) __RENAME(__timelocal50); |
struct tm *offtime(const time_t *, long); |
struct tm *offtime(const time_t *, long) __RENAME(__offtime50); |
|
#endif |
|
#ifndef __LIBC12_SOURCE__ |
|
void tzsetwall(void) __RENAME(__tzsetwall50); |
|
#endif |
#endif /* _NETBSD_SOURCE */ |
#endif /* _NETBSD_SOURCE */ |
|
|
__END_DECLS |
__END_DECLS |