Ignore:
Timestamp:
Jan 17, 2005, 9:07:48 AM (21 years ago)
Author:
bird
Message:

Added time64_t and a few 64-bit time functions for dealing better with over/underflows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/time.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1787 r1788  
    9393#endif
    9494
     95#ifndef _TIME64_T_DECLARED              /* bird: LIBC */
     96typedef __int64_t       time64_t;       /* bird: LIBC */
     97#define _TIME64_T_DECLARED              /* bird: LIBC */
     98#endif                                  /* bird: LIBC */
     99
    95100#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: EMX */
    96101typedef __size_t        size_t;
     
    145150struct tm *gmtime(const time_t *);
    146151struct tm *localtime(const time_t *);
     152struct tm *_localtime64_r(const time64_t *, struct tm *); /* bird: LIBC */
    147153time_t mktime(struct tm *);
     154time64_t _mktime64(struct tm *); /* bird: LIBC  */
    148155size_t strftime(char * __restrict, size_t, const char * __restrict,
    149156    const struct tm * __restrict);
     
    165172char *ctime_r(const time_t *, char *);
    166173struct tm *gmtime_r(const time_t *, struct tm *);
     174struct tm *_gmtime64_r(const time64_t *, struct tm *); /* bird: LIBC */
    167175struct tm *localtime_r(const time_t *, struct tm *);
    168176#endif
Note: See TracChangeset for help on using the changeset viewer.