VSF Documented
|
#include "../../vsf_linux_cfg.h"
#include "../../include/unistd.h"
#include "../../include/sys/time.h"
#include "../../include/simple_libc/time.h"
Data Structures | |
struct | vsf_linux_glibc_time_t |
Macros | |
#define | __VSF_LINUX_CLASS_INHERIT__ |
#define | SECONDS_PER_DAY (24 * 60 * 60) |
#define | SECONDS_PER_YEAR (365 * SECONDS_PER_DAY) |
#define | SECONDS_PER_4YEARS ((4 * 365 + 1) * SECONDS_PER_DAY) |
#define | IS_LEAP_YEAR(__Y) ((!((__Y) % 4) && ((__Y) % 100)) || !(((__Y) + 1900) % 400)) |
#define | LEAP_YEARS_SINCE(__Y) ((((__Y) - 1) / 4) - (((__Y) - 1) / 100) + (((__Y) + 299) / 400) - 17) |
Functions | |
vsf_systimer_tick_t | vsf_linux_timespec2tick (const struct timespec *ts) |
void | vsf_linux_tick2timespec (struct timespec *ts, vsf_systimer_tick_t tick) |
time_t | mktime (struct tm *tm) |
time_t | time (time_t *t) |
void | tzset (void) |
size_t | strftime (char *str, size_t maxsize, const char *format, const struct tm *tm) |
char * | strptime (const char *str, const char *format, struct tm *tm) |
char * | asctime_r (const struct tm *tm, char *buf) |
char * | asctime (const struct tm *tm) |
char * | ctime (const time_t *t) |
char * | ctime_r (const time_t *t, char *buf) |
struct tm * | gmtime_r (const time_t *timep, struct tm *result) |
struct tm * | gmtime (const time_t *timep) |
struct tm * | localtime_r (const time_t *timep, struct tm *result) |
struct tm * | localtime (const time_t *timep) |
int | nanosleep (const struct timespec *requested_time, struct timespec *remaining) |
clock_t | clock (void) |
int | clock_getres (clockid_t clockid, struct timespec *res) |
int | clock_gettime (clockid_t clockid, struct timespec *tp) |
int | clock_settime (clockid_t clockid, const struct timespec *ts) |
int | clock_nanosleep (clockid_t clockid, int flags, const struct timespec *request, struct timespec *remain) |
int | setitimer (int which, const struct itimerval *new_value, struct itimerval *old_value) |
int | getitimer (int which, struct itimerval *curr_value) |
int | timer_create (clockid_t clockid, struct sigevent *sevp, timer_t *timerid) |
int | timer_settime (timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec *old_value) |
int | timer_gettime (timer_t timerid, struct itimerspec *curr_value) |
int | timer_delete (timer_t timerid) |
int | timer_getoverrun (timer_t timerid) |
int | timespec_get (struct timespec *ts, int base) |
Variables | |
char * | tzname [2] = { "GMT", "GMT" } |
long | timezong = 0L |
int | daylight = 0 |
struct vsf_linux_glibc_time_t | __vsf_linux_glibc_time |
__VSF_VPLT_DECORATOR__ vsf_linux_libc_time_vplt_t | vsf_linux_libc_time_vplt |
#define __VSF_LINUX_CLASS_INHERIT__ |
#define SECONDS_PER_DAY (24 * 60 * 60) |
#define SECONDS_PER_YEAR (365 * SECONDS_PER_DAY) |
#define SECONDS_PER_4YEARS ((4 * 365 + 1) * SECONDS_PER_DAY) |
#define IS_LEAP_YEAR | ( | __Y | ) | ((!((__Y) % 4) && ((__Y) % 100)) || !(((__Y) + 1900) % 400)) |
#define LEAP_YEARS_SINCE | ( | __Y | ) | ((((__Y) - 1) / 4) - (((__Y) - 1) / 100) + (((__Y) + 299) / 400) - 17) |
vsf_systimer_tick_t vsf_linux_timespec2tick | ( | const struct timespec * | ts | ) |
void vsf_linux_tick2timespec | ( | struct timespec * | ts, |
vsf_systimer_tick_t | tick | ||
) |
void tzset | ( | void | ) |
char * strptime | ( | const char * | str, |
const char * | format, | ||
struct tm * | tm | ||
) |
char * asctime_r | ( | const struct tm * | tm, |
char * | buf | ||
) |
char * asctime | ( | const struct tm * | tm | ) |
char * ctime | ( | const time_t * | t | ) |
char * ctime_r | ( | const time_t * | t, |
char * | buf | ||
) |
clock_t clock | ( | void | ) |
int clock_nanosleep | ( | clockid_t | clockid, |
int | flags, | ||
const struct timespec * | request, | ||
struct timespec * | remain | ||
) |
int getitimer | ( | int | which, |
struct itimerval * | curr_value | ||
) |
int timer_settime | ( | timer_t | timerid, |
int | flags, | ||
const struct itimerspec * | new_value, | ||
struct itimerspec * | old_value | ||
) |
int timer_gettime | ( | timer_t | timerid, |
struct itimerspec * | curr_value | ||
) |
int timer_delete | ( | timer_t | timerid | ) |
int timer_getoverrun | ( | timer_t | timerid | ) |
int timespec_get | ( | struct timespec * | ts, |
int | base | ||
) |
char* tzname[2] = { "GMT", "GMT" } |
long timezong = 0L |
int daylight = 0 |
struct vsf_linux_glibc_time_t __vsf_linux_glibc_time |
__VSF_VPLT_DECORATOR__ vsf_linux_libc_time_vplt_t vsf_linux_libc_time_vplt |