Changes in uspace/lib/posix/time.h [d3e3a71:f8b6d34c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/time.h
rd3e3a71 rf8b6d34c 63 63 #endif 64 64 65 #undef ASCTIME_BUF_LEN 66 #define ASCTIME_BUF_LEN 26 67 65 68 #undef CLOCK_REALTIME 66 69 #define CLOCK_REALTIME ((posix_clockid_t) 0) … … 84 87 extern void posix_tzset(void); 85 88 89 /* Elapsed Time */ 90 extern double posix_difftime(time_t time1, time_t time0); 91 86 92 /* Broken-down Time */ 93 extern time_t posix_mktime(struct tm *tm); 94 extern struct tm *posix_gmtime(const time_t *timer); 87 95 extern struct tm *posix_gmtime_r(const time_t *restrict timer, 88 96 struct tm *restrict result); 97 extern struct tm *posix_localtime(const time_t *timer); 89 98 extern struct tm *posix_localtime_r(const time_t *restrict timer, 90 99 struct tm *restrict result); 91 100 92 101 /* Formatting Calendar Time */ 102 extern char *posix_asctime(const struct tm *timeptr); 93 103 extern char *posix_asctime_r(const struct tm *restrict timeptr, 94 104 char *restrict buf); 105 extern char *posix_ctime(const time_t *timer); 95 106 extern 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); 96 109 97 110 /* Clocks */ … … 118 131 #define tzset posix_tzset 119 132 133 #define difftime posix_difftime 134 135 #define mktime posix_mktime 136 #define gmtime posix_gmtime 120 137 #define gmtime_r posix_gmtime_r 138 #define localtime posix_localtime 121 139 #define localtime_r posix_localtime_r 122 140 141 #define asctime posix_asctime 123 142 #define asctime_r posix_asctime_r 143 #define ctime posix_ctime 124 144 #define ctime_r posix_ctime_r 145 #define strftime posix_strftime 125 146 126 147 #define clock_getres posix_clock_getres
Note:
See TracChangeset
for help on using the changeset viewer.