Changeset 3293a94 in mainline for uspace/lib/posix/time.h


Ignore:
Timestamp:
2012-04-23T22:40:02Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7719958
Parents:
4cade47 (diff), d3e3a71 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge libc time improvements from "time-helenos" branch

File:
1 edited

Legend:

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

    r4cade47 r3293a94  
    6363#endif
    6464
    65 #undef ASCTIME_BUF_LEN
    66 #define ASCTIME_BUF_LEN 26
    67 
    6865#undef CLOCK_REALTIME
    6966#define CLOCK_REALTIME ((posix_clockid_t) 0)
     
    8784extern void posix_tzset(void);
    8885
    89 /* Elapsed Time */
    90 extern double posix_difftime(time_t time1, time_t time0);
    91 
    9286/* Broken-down Time */
    93 extern time_t posix_mktime(struct tm *tm);
    94 extern struct tm *posix_gmtime(const time_t *timer);
    9587extern struct tm *posix_gmtime_r(const time_t *restrict timer,
    9688    struct tm *restrict result);
    97 extern struct tm *posix_localtime(const time_t *timer);
    9889extern struct tm *posix_localtime_r(const time_t *restrict timer,
    9990    struct tm *restrict result);
    10091
    10192/* Formatting Calendar Time */
    102 extern char *posix_asctime(const struct tm *timeptr);
    10393extern char *posix_asctime_r(const struct tm *restrict timeptr,
    10494    char *restrict buf);
    105 extern char *posix_ctime(const time_t *timer);
    10695extern char *posix_ctime_r(const time_t *timer, char *buf);
    107 extern size_t posix_strftime(char *restrict s, size_t maxsize,
    108     const char *restrict format, const struct tm *restrict tm);
    10996
    11097/* Clocks */
     
    131118        #define tzset posix_tzset
    132119
    133         #define difftime posix_difftime
    134 
    135         #define mktime posix_mktime
    136         #define gmtime posix_gmtime
    137120        #define gmtime_r posix_gmtime_r
    138         #define localtime posix_localtime
    139121        #define localtime_r posix_localtime_r
    140122
    141         #define asctime posix_asctime
    142123        #define asctime_r posix_asctime_r
    143         #define ctime posix_ctime
    144124        #define ctime_r posix_ctime_r
    145         #define strftime posix_strftime
    146125
    147126        #define clock_getres posix_clock_getres
Note: See TracChangeset for help on using the changeset viewer.