OpenVAS Scanner
7.0.1~git
|
Go to the documentation of this file.
38 #define uint32 uint32_t
48 ((time_t) 0 < (time_t) -1 ? (time_t) 0 \
49 : ~(time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1))
52 #define TIME_T_MAX LONG_MAX
55 #define NTTIME_INFINITY (NTTIME) 0x8000000000000000LL
57 #define TIME_FIXUP_CONSTANT_INT 11644473600LL
68 if (ts.tv_sec == 0 && ts.tv_nsec == 0)
75 *nt = 0x7fffffffffffffffLL;
78 if (ts.tv_sec == (time_t) -1)
86 d *= 1000 * 1000 * 10;
88 d += (ts.tv_nsec / 100);
104 gettimeofday (tval, NULL);
117 SIVAL (p, 0, nt & 0xFFFFFFFF);
118 SIVAL (p, 4, nt >> 32);
void GetTimeOfDay_ntlmssp(struct timeval *tval)
void put_long_date_timespec_ntlmssp(char *p, struct timespec ts)
Unix SMB/CIFS implementation. SMB Byte handling.
void unix_timespec_to_nt_time_ntlmssp(NTTIME *nt, struct timespec ts)
struct timeval timeval(unsigned long val)
#define SIVAL(buf, pos, val)
Unix SMB/CIFS implementation.
void put_long_date_ntlmssp(char *p, time_t t)
#define TIME_FIXUP_CONSTANT_INT