VSF Documented
timeb.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_SYS_TIMEB_H__
2#define __VSF_LINUX_SYS_TIMEB_H__
3
5
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "./types.h"
8#else
9# include <sys/types.h>
10#endif
11#include <time.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#if VSF_LINUX_CFG_WRAPPER == ENABLED
18#define ftime VSF_LINUX_WRAPPER(ftime)
19#endif
20
21struct timeb {
23 unsigned short millitm;
24 short timezone;
25 short dstflag;
26};
27
28#if VSF_LINUX_APPLET_USE_SYS_TIMEB == ENABLED
31
34# ifndef __VSF_APPLET__
36# endif
37#endif
38
39#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_TIMEB_LIB__))\
40 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_TIMEB == ENABLED
41
42#ifndef VSF_LINUX_APPLET_SYS_TIMEB_VPLT
43# if VSF_LINUX_USE_APPLET == ENABLED
44# define VSF_LINUX_APPLET_SYS_TIMEB_VPLT \
45 ((vsf_linux_sys_timeb_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_timeb_vplt))
46# else
47# define VSF_LINUX_APPLET_SYS_TIMEB_VPLT \
48 ((vsf_linux_sys_timeb_vplt_t *)vsf_vplt((void *)0))
49# endif
50#endif
51
52#define VSF_LINUX_APPLET_SYS_TIMEB_ENTRY(__NAME) \
53 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_TIMEB_VPLT, __NAME)
54#define VSF_LINUX_APPLET_SYS_TIMEB_IMP(...) \
55 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_TIMEB_VPLT, __VA_ARGS__)
56
57VSF_LINUX_APPLET_SYS_TIMEB_IMP(ftime, int, struct timeb *timebuf) {
59 return VSF_LINUX_APPLET_SYS_TIMEB_ENTRY(ftime)(timebuf);
60}
61
62#else // __VSF_APPLET__ && VSF_LINUX_APPLET_USE_SYS_TIMEB
63
64int ftime(struct timeb *timebuf);
65
66#endif // __VSF_APPLET__ && VSF_LINUX_APPLET_USE_SYS_TIMEB
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif
__TIME_T time_t
Definition types.h:122
Definition timeb.h:21
time_t time
Definition timeb.h:22
short dstflag
Definition timeb.h:25
short timezone
Definition timeb.h:24
unsigned short millitm
Definition timeb.h:23
Definition timeb.h:29
vsf_vplt_info_t info
Definition timeb.h:30
__VSF_VPLT_DECORATOR__ vsf_linux_sys_timeb_vplt_t vsf_linux_sys_timeb_vplt
Definition vsf_linux.c:4820
#define ftime
Definition timeb.h:18
Definition vsf_cfg.h:95
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165