mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
time: move uint64s_nt_time_to_unix_abs() to lib/time.c
Guenther
This commit is contained in:
parent
fa803ce183
commit
58f54f180f
@ -1234,6 +1234,7 @@ bool nt_time_equals(const NTTIME *nt1, const NTTIME *nt2);
|
|||||||
void TimeInit(void);
|
void TimeInit(void);
|
||||||
void get_process_uptime(struct timeval *ret_time);
|
void get_process_uptime(struct timeval *ret_time);
|
||||||
time_t nt_time_to_unix_abs(const NTTIME *nt);
|
time_t nt_time_to_unix_abs(const NTTIME *nt);
|
||||||
|
time_t uint64s_nt_time_to_unix_abs(const uint64_t *src);
|
||||||
void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts);
|
void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts);
|
||||||
void unix_to_nt_time_abs(NTTIME *nt, time_t t);
|
void unix_to_nt_time_abs(NTTIME *nt, time_t t);
|
||||||
bool null_mtime(time_t mtime);
|
bool null_mtime(time_t mtime);
|
||||||
|
@ -1325,6 +1325,13 @@ time_t nt_time_to_unix_abs(const NTTIME *nt)
|
|||||||
return (time_t)d;
|
return (time_t)d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time_t uint64s_nt_time_to_unix_abs(const uint64_t *src)
|
||||||
|
{
|
||||||
|
NTTIME nttime;
|
||||||
|
nttime = *src;
|
||||||
|
return nt_time_to_unix_abs(&nttime);
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
Put a 8 byte filetime from a struct timespec. Uses GMT.
|
Put a 8 byte filetime from a struct timespec. Uses GMT.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -84,13 +84,6 @@ static void display_account_info(uint32_t rid,
|
|||||||
pdb_encode_acct_ctrl(r->acct_flags, NEW_PW_FORMAT_SPACE_PADDED_LEN));
|
pdb_encode_acct_ctrl(r->acct_flags, NEW_PW_FORMAT_SPACE_PADDED_LEN));
|
||||||
}
|
}
|
||||||
|
|
||||||
static time_t uint64s_nt_time_to_unix_abs(const uint64 *src)
|
|
||||||
{
|
|
||||||
NTTIME nttime;
|
|
||||||
nttime = *src;
|
|
||||||
return nt_time_to_unix_abs(&nttime);
|
|
||||||
}
|
|
||||||
|
|
||||||
static NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
|
static NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
|
||||||
struct lsa_BinaryString *r,
|
struct lsa_BinaryString *r,
|
||||||
struct netr_AcctLockStr **str_p)
|
struct netr_AcctLockStr **str_p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user