Logo Search packages:      
Sourcecode: likewise-open version File versions  Download package

time.c File Reference


Detailed Description

time handling functions

Definition in file time.c.

#include "includes.h"

Go to the source code of this file.

Defines

#define NTTIME_INFINITY   (NTTIME)0x8000000000000000LL
#define TIME_T_MAX   (~ (time_t) 0 - TIME_T_MIN)
#define TIME_T_MIN

Functions

time_t cli_make_unix_date (struct cli_state *cli, const void *date_ptr)
time_t cli_make_unix_date2 (struct cli_state *cli, const void *date_ptr)
time_t cli_make_unix_date3 (struct cli_state *cli, const void *date_ptr)
void cli_put_dos_date (struct cli_state *cli, char *buf, int offset, time_t unixdate)
void cli_put_dos_date2 (struct cli_state *cli, char *buf, int offset, time_t unixdate)
void cli_put_dos_date3 (struct cli_state *cli, char *buf, int offset, time_t unixdate)
struct timespec convert_time_t_to_timespec (time_t t)
uint32 convert_time_t_to_uint32 (time_t t)
time_t convert_timespec_to_time_t (struct timespec ts)
struct timeval convert_timespec_to_timeval (const struct timespec ts)
struct timespec convert_timeval_to_timespec (const struct timeval tv)
time_t convert_uint32_to_time_t (uint32 u)
char * current_timestring (bool hires)
const char * display_time (NTTIME nttime)
void dos_filetime_timespec (struct timespec *tsp)
time_t generalized_to_unix_time (const char *str)
struct timespec get_atimespec (const SMB_STRUCT_STAT *pst)
time_t get_create_time (const SMB_STRUCT_STAT *st, bool fake_dirs)
struct timespec get_create_timespec (const SMB_STRUCT_STAT *st, bool fake_dirs)
struct timespec get_ctimespec (const SMB_STRUCT_STAT *pst)
struct timespec get_mtimespec (const SMB_STRUCT_STAT *pst)
void get_process_uptime (struct timeval *ret_time)
int get_server_zone_offset (void)
time_t get_time_t_max (void)
int get_time_zone (time_t t)
void GetTimeOfDay (struct timeval *tval)
char * http_timestring (time_t t)
static void interpret_dos_date (uint32_t date, int *year, int *month, int *day, int *hour, int *minute, int *second)
struct timespec interpret_long_date (const char *p)
static uint32_t make_dos_date (time_t unixdate, int zone_offset)
static uint16_t make_dos_date1 (struct tm *t)
static uint16_t make_dos_time1 (struct tm *t)
static time_t make_unix_date (const void *date_ptr, int zone_offset)
static time_t make_unix_date2 (const void *date_ptr, int zone_offset)
static time_t make_unix_date3 (const void *date_ptr, int zone_offset)
bool nt_time_equals (const NTTIME *nt1, const NTTIME *nt2)
bool nt_time_is_set (const NTTIME *nt)
bool nt_time_is_zero (const NTTIME *nt)
const char * nt_time_string (TALLOC_CTX *mem_ctx, NTTIME nt)
time_t nt_time_to_unix (NTTIME nt)
time_t nt_time_to_unix_abs (const NTTIME *nt)
struct timespec nt_time_to_unix_timespec (NTTIME *nt)
NTTIME nttime_from_string (const char *s)
bool null_mtime (time_t mtime)
bool null_nttime (NTTIME t)
bool null_time (time_t t)
bool null_timespec (struct timespec ts)
time_t pull_dos_date (const uint8_t *date_ptr, int zone_offset)
time_t pull_dos_date2 (const uint8_t *date_ptr, int zone_offset)
time_t pull_dos_date3 (const uint8_t *date_ptr, int zone_offset)
void push_dos_date (uint8_t *buf, int offset, time_t unixdate, int zone_offset)
void push_dos_date2 (uint8_t *buf, int offset, time_t unixdate, int zone_offset)
void push_dos_date3 (uint8_t *buf, int offset, time_t unixdate, int zone_offset)
static void put_dos_date (char *buf, int offset, time_t unixdate, int zone_offset)
static void put_dos_date2 (char *buf, int offset, time_t unixdate, int zone_offset)
static void put_dos_date3 (char *buf, int offset, time_t unixdate, int zone_offset)
void put_long_date (char *p, time_t t)
void put_long_date_timespec (char *p, struct timespec ts)
void set_atimespec (SMB_STRUCT_STAT *pst, struct timespec ts)
void set_ctimespec (SMB_STRUCT_STAT *pst, struct timespec ts)
void set_mtimespec (SMB_STRUCT_STAT *pst, struct timespec ts)
int set_server_zone_offset (time_t t)
time_t srv_make_unix_date (const void *date_ptr)
time_t srv_make_unix_date2 (const void *date_ptr)
time_t srv_make_unix_date3 (const void *date_ptr)
void srv_put_dos_date (char *buf, int offset, time_t unixdate)
void srv_put_dos_date2 (char *buf, int offset, time_t unixdate)
void srv_put_dos_date3 (char *buf, int offset, time_t unixdate)
const char * time_to_asc (const time_t t)
void TimeInit (void)
int timespec_compare (const struct timespec *ts1, const struct timespec *ts2)
struct timespec timespec_current (void)
struct timespec timespec_min (const struct timespec *ts1, const struct timespec *ts2)
char * timestring (TALLOC_CTX *mem_ctx, time_t t)
struct timeval timeval_add (const struct timeval *tv, uint32_t secs, uint32_t usecs)
int timeval_compare (const struct timeval *tv1, const struct timeval *tv2)
struct timeval timeval_current (void)
struct timeval timeval_current_ofs (uint32_t secs, uint32_t usecs)
double timeval_elapsed (const struct timeval *tv)
double timeval_elapsed2 (const struct timeval *tv1, const struct timeval *tv2)
bool timeval_expired (const struct timeval *tv)
bool timeval_is_zero (const struct timeval *tv)
struct timeval timeval_max (const struct timeval *tv1, const struct timeval *tv2)
struct timeval timeval_min (const struct timeval *tv1, const struct timeval *tv2)
struct timeval timeval_set (uint32_t secs, uint32_t usecs)
struct timeval timeval_sum (const struct timeval *tv1, const struct timeval *tv2)
NTTIME timeval_to_nttime (const struct timeval *tv)
struct timeval timeval_until (const struct timeval *tv1, const struct timeval *tv2)
struct timeval timeval_zero (void)
static int tm_diff (struct tm *a, struct tm *b)
void unix_timespec_to_nt_time (NTTIME *nt, struct timespec ts)
void unix_to_nt_time (NTTIME *nt, time_t t)
void unix_to_nt_time_abs (NTTIME *nt, time_t t)
int64_t usec_time_diff (struct timeval *tv1, struct timeval *tv2)

Variables

int extra_time_offset = 0
static int server_zone_offset
static struct timeval start_time_hires


Generated by  Doxygen 1.6.0   Back to index