Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/time.h

    rd3e3a71 rf8b6d34c  
    6363#endif
    6464
     65#undef ASCTIME_BUF_LEN
     66#define ASCTIME_BUF_LEN 26
     67
    6568#undef CLOCK_REALTIME
    6669#define CLOCK_REALTIME ((posix_clockid_t) 0)
     
    8487extern void posix_tzset(void);
    8588
     89/* Elapsed Time */
     90extern double posix_difftime(time_t time1, time_t time0);
     91
    8692/* Broken-down Time */
     93extern time_t posix_mktime(struct tm *tm);
     94extern struct tm *posix_gmtime(const time_t *timer);
    8795extern struct tm *posix_gmtime_r(const time_t *restrict timer,
    8896    struct tm *restrict result);
     97extern struct tm *posix_localtime(const time_t *timer);
    8998extern struct tm *posix_localtime_r(const time_t *restrict timer,
    9099    struct tm *restrict result);
    91100
    92101/* Formatting Calendar Time */
     102extern char *posix_asctime(const struct tm *timeptr);
    93103extern char *posix_asctime_r(const struct tm *restrict timeptr,
    94104    char *restrict buf);
     105extern char *posix_ctime(const time_t *timer);
    95106extern char *posix_ctime_r(const time_t *timer, char *buf);
     107extern size_t posix_strftime(char *restrict s, size_t maxsize,
     108    const char *restrict format, const struct tm *restrict tm);
    96109
    97110/* Clocks */
     
    118131        #define tzset posix_tzset
    119132
     133        #define difftime posix_difftime
     134
     135        #define mktime posix_mktime
     136        #define gmtime posix_gmtime
    120137        #define gmtime_r posix_gmtime_r
     138        #define localtime posix_localtime
    121139        #define localtime_r posix_localtime_r
    122140
     141        #define asctime posix_asctime
    123142        #define asctime_r posix_asctime_r
     143        #define ctime posix_ctime
    124144        #define ctime_r posix_ctime_r
     145        #define strftime posix_strftime
    125146
    126147        #define clock_getres posix_clock_getres
Note: See TracChangeset for help on using the changeset viewer.