Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/util/time.h

    r478 r740  
    22   Unix SMB/CIFS implementation.
    33   time utility functions
    4    
     4
     5   Copyright (C) Andrew Tridgell                1992-2004
     6   Copyright (C) Stefan (metze) Metzmacher      2002
     7   Copyright (C) Jeremy Allison                 2007
     8   Copyright (C) Andrew Bartlett                2011
     9
    510   This program is free software; you can redistribute it and/or modify
    611   it under the terms of the GNU General Public License as published by
     
    5257
    5358/**
     59a wrapper to preferably get the monotonic time
     60**/
     61_PUBLIC_ void clock_gettime_mono(struct timespec *tp);
     62
     63/**
     64a wrapper to preferably get the monotonic time in s
     65**/
     66_PUBLIC_ time_t time_mono(time_t *t);
     67
     68/**
    5469interpret an 8 byte "filetime" structure to a time_t
    5570It's originally in "100ns units since jan 1st 1601"
     
    110125
    111126/**
     127 Return a date and time as a string (optionally with microseconds)
     128
     129 format is %Y/%m/%d %H:%M:%S if strftime is available
     130**/
     131
     132char *timeval_string(TALLOC_CTX *ctx, const struct timeval *tp, bool hires);
     133
     134/**
     135 Return the current date and time as a string (optionally with microseconds)
     136
     137 format is %Y/%m/%d %H:%M:%S if strftime is available
     138**/
     139char *current_timestring(TALLOC_CTX *ctx, bool hires);
     140
     141/**
    112142return a HTTP/1.0 time string
    113143**/
     
    116146/**
    117147 Return the date and time as a string
     148
     149 format is %a %b %e %X %Y %Z
    118150**/
    119151_PUBLIC_ char *timestring(TALLOC_CTX *mem_ctx, time_t t);
     
    143175*/
    144176_PUBLIC_ int64_t usec_time_diff(const struct timeval *tv1, const struct timeval *tv2);
     177
     178/**
     179  return (tp1 - tp2) in nanoseconds
     180*/
     181_PUBLIC_ int64_t nsec_time_diff(const struct timespec *tp1, const struct timespec *tp2);
    145182
    146183/**
Note: See TracChangeset for help on using the changeset viewer.