TianoCore EDK2
master
Loading...
Searching...
No Matches
ConstantTimeClock.c
Go to the documentation of this file.
1
20
#include <Base.h>
21
#include <
Library/BaseMemoryLib.h
>
22
23
typedef
int
time_t;
24
25
//
26
// Structures Definitions
27
//
28
struct
tm
{
29
int
tm_sec;
/* seconds after the minute [0-60] */
30
int
tm_min;
/* minutes after the hour [0-59] */
31
int
tm_hour;
/* hours since midnight [0-23] */
32
int
tm_mday;
/* day of the month [1-31] */
33
int
tm_mon;
/* months since January [0-11] */
34
int
tm_year;
/* years since 1900 */
35
int
tm_wday;
/* days since Sunday [0-6] */
36
int
tm_yday;
/* days since January 1 [0-365] */
37
int
tm_isdst;
/* Daylight Savings Time flag */
38
long
tm_gmtoff;
/* offset from CUT in seconds */
39
char
*tm_zone;
/* timezone abbreviation */
40
};
41
42
//
43
// -- Time Management Routines --
44
//
45
47
time_t
48
time (
49
time_t *timer
50
)
51
{
52
if
(timer !=
NULL
) {
53
*timer = 0;
54
}
55
56
return
0;
57
}
58
60
struct
tm
*
61
gmtime
(
62
const
time_t *timer
63
)
64
{
65
return
NULL
;
66
}
67
69
time_t
70
_time64
(
71
time_t *t
72
)
73
{
74
return
time
(t);
75
}
BaseMemoryLib.h
time
time_t time(time_t *)
Definition:
ConstantTimeClock.c:27
gmtime
struct tm * gmtime(const time_t *)
Definition:
ConstantTimeClock.c:39
NULL
#define NULL
Definition:
Base.h:319
_time64
time_t _time64(time_t *t)
Definition:
ConstantTimeClock.c:70
tm
Definition:
ConstantTimeClock.c:28
CryptoPkg
Library
BaseCryptLibMbedTls
SysCall
ConstantTimeClock.c
Generated on Fri Nov 15 2024 18:01:05 for TianoCore EDK2 by
1.9.6