diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-22 20:33:22 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-23 00:15:31 +0200 |
commit | 66f8070dd3a6a5c51c8e6d37deb7c52a9a717e1b (patch) | |
tree | a4201a369a93fe191a90a6a7d1e68b7585e8a072 /source3/include | |
parent | 1bb6e6758cffea967b6b8299553653cf4192f2e9 (diff) | |
download | samba-66f8070dd3a6a5c51c8e6d37deb7c52a9a717e1b.tar.gz samba-66f8070dd3a6a5c51c8e6d37deb7c52a9a717e1b.tar.bz2 samba-66f8070dd3a6a5c51c8e6d37deb7c52a9a717e1b.zip |
lib/util: move some timespec helpers from source3 to the toplevel
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Sep 23 00:15:31 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index d3ea6fc883..f6e7236664 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -463,22 +463,12 @@ time_t make_unix_date3(const void *date_ptr, int zone_offset); 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); -struct timespec convert_time_t_to_timespec(time_t t); -struct timespec convert_timeval_to_timespec(const struct timeval tv); -struct timeval convert_timespec_to_timeval(const struct timespec ts); -struct timespec timespec_current(void); -struct timespec timespec_min(const struct timespec *ts1, - const struct timespec *ts2); -int timespec_compare(const struct timespec *ts1, const struct timespec *ts2); -void round_timespec_to_sec(struct timespec *ts); -void round_timespec_to_usec(struct timespec *ts); struct timespec interpret_long_date(const char *p); void TimeInit(void); void get_process_uptime(struct timeval *ret_time); void get_startup_time(struct timeval *ret_time); 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_to_nt_time_abs(NTTIME *nt, time_t t); const char *time_to_asc(const time_t t); const char *display_time(NTTIME nttime); |