Ignore:
Timestamp:
Aug 2, 2010, 6:40:21 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.5: vendor update to 3.5.4

Location:
vendor/current/lib/util
Files:
2 edited

Legend:

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

    r414 r478  
    2828 */
    2929
    30 #ifndef TIME_T_MIN
    31 /* we use 0 here, because (time_t)-1 means error */
    32 #define TIME_T_MIN 0
    33 #endif
    34 
    3530#if (SIZEOF_LONG == 8)
    3631#define TIME_FIXUP_CONSTANT_INT 11644473600L
     
    4035
    4136
    42 
    43 /*
    44  * we use the INT32_MAX here as on 64 bit systems,
    45  * gmtime() fails with INT64_MAX
    46  */
    47 
    48 #ifndef TIME_T_MAX
    49 #define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t))
    50 #endif
    5137
    5238/**
  • vendor/current/lib/util/time.h

    r414 r478  
    2424#endif
    2525
     26#ifndef TIME_T_MIN
     27/* we use 0 here, because (time_t)-1 means error */
     28#define TIME_T_MIN 0
     29#endif
     30
     31/*
     32 * we use the INT32_MAX here as on 64 bit systems,
     33 * gmtime() fails with INT64_MAX
     34 */
     35#ifndef TIME_T_MAX
     36#define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t))
     37#endif
     38
     39
    2640/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30, 4 byte aligned */
    2741typedef uint64_t NTTIME;
Note: See TracChangeset for help on using the changeset viewer.