| 92 |
#include <sys/timespec.h> |
#include <sys/timespec.h> |
| 93 |
#endif /* __POSIX_VISIBLE >= 199309 */ |
#endif /* __POSIX_VISIBLE >= 199309 */ |
| 94 |
|
|
| 95 |
|
/* These macros are also in sys/time.h. */ |
| 96 |
|
#if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 |
| 97 |
|
#define CLOCK_REALTIME 0 |
| 98 |
|
#ifdef __BSD_VISIBLE |
| 99 |
|
#define CLOCK_VIRTUAL 1 |
| 100 |
|
#define CLOCK_PROF 2 |
| 101 |
|
#endif |
| 102 |
|
#define CLOCK_MONOTONIC 4 |
| 103 |
|
#endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */ |
| 104 |
|
|
| 105 |
|
#if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112 |
| 106 |
|
#if __BSD_VISIBLE |
| 107 |
|
#define TIMER_RELTIME 0x0 /* relative timer */ |
| 108 |
|
#endif |
| 109 |
|
#define TIMER_ABSTIME 0x1 /* absolute timer */ |
| 110 |
|
#endif /* !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112 */ |
| 111 |
|
|
| 112 |
struct tm { |
struct tm { |
| 113 |
int tm_sec; /* seconds after the minute [0-60] */ |
int tm_sec; /* seconds after the minute [0-60] */ |
| 114 |
int tm_min; /* minutes after the hour [0-59] */ |
int tm_min; /* minutes after the hour [0-59] */ |
| 132 |
clock_t clock(void); |
clock_t clock(void); |
| 133 |
char *ctime(const time_t *); |
char *ctime(const time_t *); |
| 134 |
double difftime(time_t, time_t); |
double difftime(time_t, time_t); |
| 135 |
|
/* XXX missing: getdate() */ |
| 136 |
struct tm *gmtime(const time_t *); |
struct tm *gmtime(const time_t *); |
| 137 |
struct tm *localtime(const time_t *); |
struct tm *localtime(const time_t *); |
| 138 |
time_t mktime(struct tm *); |
time_t mktime(struct tm *); |
| 148 |
int clock_getres(clockid_t, struct timespec *); |
int clock_getres(clockid_t, struct timespec *); |
| 149 |
int clock_gettime(clockid_t, struct timespec *); |
int clock_gettime(clockid_t, struct timespec *); |
| 150 |
int clock_settime(clockid_t, const struct timespec *); |
int clock_settime(clockid_t, const struct timespec *); |
| 151 |
|
/* XXX missing: clock_nanosleep() */ |
| 152 |
int nanosleep(const struct timespec *, struct timespec *); |
int nanosleep(const struct timespec *, struct timespec *); |
| 153 |
#endif /* __POSIX_VISIBLE >= 199309 */ |
#endif /* __POSIX_VISIBLE >= 199309 */ |
| 154 |
|
|
| 165 |
#endif |
#endif |
| 166 |
|
|
| 167 |
#if __BSD_VISIBLE |
#if __BSD_VISIBLE |
| 168 |
char *timezone(int, int); |
char *timezone(int, int); /* XXX XSI conflict */ |
| 169 |
void tzsetwall(void); |
void tzsetwall(void); |
| 170 |
time_t timelocal(struct tm * const); |
time_t timelocal(struct tm * const); |
| 171 |
time_t timegm(struct tm * const); |
time_t timegm(struct tm * const); |