VSF Documented
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
time.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./types.h"
#include <time.h>

Go to the source code of this file.

Data Structures

struct  timeval
 
struct  timezone
 
struct  itimerval
 
struct  vsf_linux_sys_time_vplt_t
 

Macros

#define getitimer   VSF_LINUX_WRAPPER(getitimer)
 
#define setitimer   VSF_LINUX_WRAPPER(setitimer)
 
#define gettimeofday   VSF_LINUX_WRAPPER(gettimeofday)
 
#define settimeofday   VSF_LINUX_WRAPPER(settimeofday)
 
#define utimes   VSF_LINUX_WRAPPER(utimes)
 
#define __SUSECONDS_T   long int
 
#define timerisset(__tvp)   ((__tvp)->tv_sec || (tvp__tvp->tv_usec)
 
#define timerclear(__tvp)   ((__tvp)->tv_sec = (__tvp)->tv_usec = 0)
 
#define timercmp(__a, __b, __op)
 
#define timeradd(__a, __b, __result)
 
#define timersub(__a, __b, __result)
 

Typedefs

typedef __SUSECONDS_T suseconds_t
 
typedef struct vsf_linux_sys_time_vplt_t vsf_linux_sys_time_vplt_t
 

Enumerations

enum  {
  ITIMER_REAL = 0 ,
  ITIMER_VIRTUAL = 1 ,
  ITIMER_PROF = 2 ,
  ITIMER_NUM = 3
}
 

Functions

int gettimeofday (struct timeval *tv, struct timezone *tz)
 
int settimeofday (const struct timeval *tv, const struct timezone *tz)
 
int getitimer (int which, struct itimerval *curr_value)
 
int setitimer (int which, const struct itimerval *new_value, struct itimerval *old_value)
 
int futimes (int fd, const struct timeval tv[2])
 
int utimes (const char *filename, const struct timeval times[2])
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_sys_time_vplt_t vsf_linux_sys_time_vplt
 

Macro Definition Documentation

◆ getitimer

#define getitimer   VSF_LINUX_WRAPPER(getitimer)

◆ setitimer

#define setitimer   VSF_LINUX_WRAPPER(setitimer)

◆ gettimeofday

#define gettimeofday   VSF_LINUX_WRAPPER(gettimeofday)

◆ settimeofday

#define settimeofday   VSF_LINUX_WRAPPER(settimeofday)

◆ utimes

#define utimes   VSF_LINUX_WRAPPER(utimes)

◆ __SUSECONDS_T

#define __SUSECONDS_T   long int

◆ timerisset

#define timerisset (   __tvp)    ((__tvp)->tv_sec || (tvp__tvp->tv_usec)

◆ timerclear

#define timerclear (   __tvp)    ((__tvp)->tv_sec = (__tvp)->tv_usec = 0)

◆ timercmp

#define timercmp (   __a,
  __b,
  __op 
)
Value:
(((__a)->tv_sec == (__b)->tv_sec) ? \
((__a)->tv_usec __op (__b)->tv_usec) : ((__a)->tv_sec __op (__b)->tv_sec))

◆ timeradd

#define timeradd (   __a,
  __b,
  __result 
)
Value:
do { \
(__result)->tv_sec = (__a)->tv_sec + (__b)->tv_sec; \
(__result)->tv_usec = (__a)->tv_usec + (__b)->tv_usec; \
if ((__result)->tv_usec >= 1000000) { \
++(__result)->tv_sec; \
(__result)->tv_usec -= 1000000; \
} \
} while (0)

◆ timersub

#define timersub (   __a,
  __b,
  __result 
)
Value:
do { \
(__result)->tv_sec = (__a)->tv_sec - (__b)->tv_sec; \
(__result)->tv_usec = (__a)->tv_usec - (__b)->tv_usec; \
if ((__result)->tv_usec < 0) { \
--(__result)->tv_sec; \
(__result)->tv_usec += 1000000; \
} \
} while (0)

Typedef Documentation

◆ suseconds_t

◆ vsf_linux_sys_time_vplt_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ITIMER_REAL 
ITIMER_VIRTUAL 
ITIMER_PROF 
ITIMER_NUM 

Function Documentation

◆ gettimeofday()

int gettimeofday ( struct timeval tv,
struct timezone tz 
)

◆ settimeofday()

int settimeofday ( const struct timeval tv,
const struct timezone tz 
)

◆ getitimer()

int getitimer ( int  which,
struct itimerval curr_value 
)

◆ setitimer()

int setitimer ( int  which,
const struct itimerval new_value,
struct itimerval old_value 
)

◆ futimes()

int futimes ( int  fd,
const struct timeval  tv[2] 
)

◆ utimes()

int utimes ( const char *  filename,
const struct timeval  times[2] 
)

Variable Documentation

◆ vsf_linux_sys_time_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_sys_time_vplt_t vsf_linux_sys_time_vplt
extern