Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f7ea5400 in mainline for uspace/lib/c/include/sys/time.h


Ignore:
Timestamp:
2012-08-15T17:52:09Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
16639bb
Parents:
9dec6d4
Message:

Replace the gmtime(), asctime() localtime() and ctime() with a new set of reentrant functions.
The former will be kept in the posix library for compatibility reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/sys/time.h

    r9dec6d4 rf7ea5400  
    8181
    8282extern time_t mktime(struct tm *tm);
    83 extern struct tm *gmtime(const time_t *timer);
    84 extern char *asctime(const struct tm *timeptr);
    85 extern struct tm *localtime(const time_t *timer);
    86 extern char *ctime(const time_t *timer);
     83extern int utctime2tm(const time_t time, struct tm *result);
     84extern int utctime2str(const time_t time, char *buf);
     85extern void tm2str(const struct tm *timeptr, char *buf);
     86extern int localtime2tm(const time_t time, struct tm *result);
     87extern int localtime2str(const time_t time, char *buf);
    8788extern double difftime(time_t time1, time_t time0);
    8889extern size_t strftime(char *restrict s, size_t maxsize,
Note: See TracChangeset for help on using the changeset viewer.