Changeset 3293a94 in mainline for uspace/lib/posix/time.h
- Timestamp:
- 2012-04-23T22:40:02Z (12 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/time.h
r4cade47 r3293a94 63 63 #endif 64 64 65 #undef ASCTIME_BUF_LEN66 #define ASCTIME_BUF_LEN 2667 68 65 #undef CLOCK_REALTIME 69 66 #define CLOCK_REALTIME ((posix_clockid_t) 0) … … 87 84 extern void posix_tzset(void); 88 85 89 /* Elapsed Time */90 extern double posix_difftime(time_t time1, time_t time0);91 92 86 /* Broken-down Time */ 93 extern time_t posix_mktime(struct tm *tm);94 extern struct tm *posix_gmtime(const time_t *timer);95 87 extern struct tm *posix_gmtime_r(const time_t *restrict timer, 96 88 struct tm *restrict result); 97 extern struct tm *posix_localtime(const time_t *timer);98 89 extern struct tm *posix_localtime_r(const time_t *restrict timer, 99 90 struct tm *restrict result); 100 91 101 92 /* Formatting Calendar Time */ 102 extern char *posix_asctime(const struct tm *timeptr);103 93 extern char *posix_asctime_r(const struct tm *restrict timeptr, 104 94 char *restrict buf); 105 extern char *posix_ctime(const time_t *timer);106 95 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);109 96 110 97 /* Clocks */ … … 131 118 #define tzset posix_tzset 132 119 133 #define difftime posix_difftime134 135 #define mktime posix_mktime136 #define gmtime posix_gmtime137 120 #define gmtime_r posix_gmtime_r 138 #define localtime posix_localtime139 121 #define localtime_r posix_localtime_r 140 122 141 #define asctime posix_asctime142 123 #define asctime_r posix_asctime_r 143 #define ctime posix_ctime144 124 #define ctime_r posix_ctime_r 145 #define strftime posix_strftime146 125 147 126 #define clock_getres posix_clock_getres
Note:
See TracChangeset
for help on using the changeset viewer.