VSF Documented
time.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./stddef.h"
#include "../sys/types.h"
#include "../signal.h"

Go to the source code of this file.

Data Structures

struct  tm
 
struct  timespec
 
struct  itimerspec
 
struct  timespec64
 
struct  itimerspec64
 
struct  vsf_linux_libc_time_vplt_t
 

Macros

#define clock_gettime   VSF_LINUX_LIBC_WRAPPER(clock_gettime)
 
#define clock_settime   VSF_LINUX_LIBC_WRAPPER(clock_settime)
 
#define clock_getres   VSF_LINUX_LIBC_WRAPPER(clock_getres)
 
#define clock_nanosleep   VSF_LINUX_LIBC_WRAPPER(clock_nanosleep)
 
#define timer_create   VSF_LINUX_LIBC_WRAPPER(timer_create)
 
#define timer_settime   VSF_LINUX_LIBC_WRAPPER(timer_settime)
 
#define timer_gettime   VSF_LINUX_LIBC_WRAPPER(timer_gettime)
 
#define timer_delete   VSF_LINUX_LIBC_WRAPPER(timer_delete)
 
#define timer_getoverrun   VSF_LINUX_LIBC_WRAPPER(timer_getoverrun)
 
#define nanosleep   VSF_LINUX_LIBC_WRAPPER(nanosleep)
 
#define clock
 
#define timespec_get   VSF_LINUX_LIBC_WRAPPER(timespec_get)
 
#define strftime   VSF_LINUX_LIBC_WRAPPER(strftime)
 
#define strptime   VSF_LINUX_LIBC_WRAPPER(strptime)
 
#define tzset
 
#define timegm   VSF_LINUX_LIBC_WRAPPER(timegm)
 
#define TIMER_ABSTIME   1
 

Typedefs

typedef struct vsf_linux_libc_time_vplt_t vsf_linux_libc_time_vplt_t
 

Functions

int clock_gettime (clockid_t clockid, struct timespec *ts)
 
int clock_settime (clockid_t clockid, const struct timespec *ts)
 
int clock_getres (clockid_t clockid, struct timespec *res)
 
int clock_nanosleep (clockid_t clockid, int flags, const struct timespec *request, struct timespec *remain)
 
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_getoverrun (timer_t timerid)
 
int timer_delete (timer_t timerid)
 
time_t time (time_t *t)
 
double difftime (time_t time1, time_t time2)
 
char * asctime (const struct tm *tm)
 
char * asctime_r (const struct tm *tm, char *buf)
 
char * ctime (const time_t *t)
 
char * ctime_r (const time_t *t, char *buf)
 
struct tmgmtime (const time_t *t)
 
struct tmgmtime_r (const time_t *t, struct tm *result)
 
time_t timegm (struct tm *tm)
 
struct tmlocaltime (const time_t *t)
 
struct tmlocaltime_r (const time_t *t, struct tm *result)
 
time_t mktime (struct tm *tm)
 
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)
 
int nanosleep (const struct timespec *requested_time, struct timespec *remaining)
 
int timespec_get (struct timespec *ts, int base)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_libc_time_vplt_t vsf_linux_libc_time_vplt
 
char * tzname [2]
 
long timezong
 
int daylight
 

Macro Definition Documentation

◆ clock_gettime

#define clock_gettime   VSF_LINUX_LIBC_WRAPPER(clock_gettime)

◆ clock_settime

#define clock_settime   VSF_LINUX_LIBC_WRAPPER(clock_settime)

◆ clock_getres

#define clock_getres   VSF_LINUX_LIBC_WRAPPER(clock_getres)

◆ clock_nanosleep

#define clock_nanosleep   VSF_LINUX_LIBC_WRAPPER(clock_nanosleep)

◆ timer_create

#define timer_create   VSF_LINUX_LIBC_WRAPPER(timer_create)

◆ timer_settime

#define timer_settime   VSF_LINUX_LIBC_WRAPPER(timer_settime)

◆ timer_gettime

#define timer_gettime   VSF_LINUX_LIBC_WRAPPER(timer_gettime)

◆ timer_delete

#define timer_delete   VSF_LINUX_LIBC_WRAPPER(timer_delete)

◆ timer_getoverrun

#define timer_getoverrun   VSF_LINUX_LIBC_WRAPPER(timer_getoverrun)

◆ nanosleep

#define nanosleep   VSF_LINUX_LIBC_WRAPPER(nanosleep)

◆ clock

clock_t clock
Value:
#define VSF_LINUX_LIBC_WRAPPER(__api)
Definition stddef.h:18
#define clock
Definition time.h:43

◆ timespec_get

#define timespec_get   VSF_LINUX_LIBC_WRAPPER(timespec_get)

◆ strftime

#define strftime   VSF_LINUX_LIBC_WRAPPER(strftime)

◆ strptime

#define strptime   VSF_LINUX_LIBC_WRAPPER(strptime)

◆ tzset

void tzset
Value:
#define tzset
Definition time.h:47

◆ timegm

#define timegm   VSF_LINUX_LIBC_WRAPPER(timegm)

◆ TIMER_ABSTIME

#define TIMER_ABSTIME   1

Typedef Documentation

◆ vsf_linux_libc_time_vplt_t

typedef struct vsf_linux_libc_time_vplt_t vsf_linux_libc_time_vplt_t

Function Documentation

◆ clock_gettime()

int clock_gettime ( clockid_t clockid,
struct timespec * ts )

◆ clock_settime()

int clock_settime ( clockid_t clockid,
const struct timespec * ts )

◆ clock_getres()

int clock_getres ( clockid_t clockid,
struct timespec * res )

◆ clock_nanosleep()

int clock_nanosleep ( clockid_t clockid,
int flags,
const struct timespec * request,
struct timespec * remain )

◆ timer_create()

int timer_create ( clockid_t clockid,
struct sigevent * sevp,
timer_t * timerid )

◆ timer_settime()

int timer_settime ( timer_t timerid,
int flags,
const struct itimerspec * new_value,
struct itimerspec * old_value )

◆ timer_gettime()

int timer_gettime ( timer_t timerid,
struct itimerspec * curr_value )

◆ timer_getoverrun()

int timer_getoverrun ( timer_t timerid)

◆ timer_delete()

int timer_delete ( timer_t timerid)

◆ time()

time_t time ( time_t * t)

◆ difftime()

double difftime ( time_t time1,
time_t time2 )

◆ asctime()

char * asctime ( const struct tm * tm)

◆ asctime_r()

char * asctime_r ( const struct tm * tm,
char * buf )

◆ ctime()

char * ctime ( const time_t * t)

◆ ctime_r()

char * ctime_r ( const time_t * t,
char * buf )

◆ gmtime()

struct tm * gmtime ( const time_t * t)

◆ gmtime_r()

struct tm * gmtime_r ( const time_t * t,
struct tm * result )

◆ timegm()

time_t timegm ( struct tm * tm)

◆ localtime()

struct tm * localtime ( const time_t * t)

◆ localtime_r()

struct tm * localtime_r ( const time_t * t,
struct tm * result )

◆ mktime()

time_t mktime ( struct tm * tm)

◆ strftime()

size_t strftime ( char * str,
size_t maxsize,
const char * format,
const struct tm * tm )

◆ strptime()

char * strptime ( const char * str,
const char * format,
struct tm * tm )

◆ nanosleep()

int nanosleep ( const struct timespec * requested_time,
struct timespec * remaining )

◆ timespec_get()

int timespec_get ( struct timespec * ts,
int base )

Variable Documentation

◆ vsf_linux_libc_time_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_libc_time_vplt_t vsf_linux_libc_time_vplt
extern

◆ tzname

char* tzname[2]
extern

◆ timezong

long timezong
extern

◆ daylight

int daylight
extern
Generated from commit: vsfteam/vsf@ceb53fd