Home | History | Annotate | Download | only in bionic
      1 /* Debugging
      2    TIME_64_DEBUG
      3    Define if you want debugging messages
      4 */
      5 /* #define TIME_64_DEBUG */
      6 
      7 
      8 /* INT_64_T
      9    A 64 bit integer type to use to store time and others.
     10    Must be defined.
     11 */
     12 #define INT_64_T                long long
     13 
     14 
     15 /* USE_TM64
     16    Should we use a 64 bit safe replacement for tm?  This will
     17    let you go past year 2 billion but the struct will be incompatible
     18    with tm.  Conversion functions will be provided.
     19 */
     20 /* #define USE_TM64 */
     21 
     22 
     23 /* Availability of system functions.
     24 
     25    HAS_GMTIME_R
     26    Define if your system has gmtime_r()
     27 
     28    HAS_LOCALTIME_R
     29    Define if your system has localtime_r()
     30 
     31    HAS_TIMEGM
     32    Define if your system has timegm(), a GNU extension.
     33 */
     34 #define HAS_GMTIME_R
     35 #define HAS_LOCALTIME_R
     36 #define HAS_TIMEGM
     37 
     38 
     39 /* Details of non-standard tm struct elements.
     40 
     41    HAS_TM_TM_GMTOFF
     42    True if your tm struct has a "tm_gmtoff" element.
     43    A BSD extension.
     44 
     45    HAS_TM_TM_ZONE
     46    True if your tm struct has a "tm_zone" element.
     47    A BSD extension.
     48 */
     49 #define HAS_TM_TM_GMTOFF
     50 #define HAS_TM_TM_ZONE
     51 
     52 
     53 /* USE_SYSTEM_LOCALTIME
     54    USE_SYSTEM_GMTIME
     55    Should we use the system functions if the time is inside their range?
     56    Your system localtime() is probably more accurate, but our gmtime() is
     57    fast and safe.
     58 */
     59 #define USE_SYSTEM_LOCALTIME
     60 /* #define USE_SYSTEM_GMTIME */
     61 
     62 
     63 /* SYSTEM_LOCALTIME_MAX
     64    SYSTEM_LOCALTIME_MIN
     65    SYSTEM_GMTIME_MAX
     66    SYSTEM_GMTIME_MIN
     67    Maximum and minimum values your system's gmtime() and localtime()
     68    can handle.  We will use your system functions if the time falls
     69    inside these ranges.
     70 */
     71 #define SYSTEM_LOCALTIME_MAX     2147483647
     72 #define SYSTEM_LOCALTIME_MIN    -2147483647
     73 #define SYSTEM_GMTIME_MAX        2147483647
     74 #define SYSTEM_GMTIME_MIN       -2147483647
     75 
     76