Changeset 8219eb9 in mainline for uspace/lib/posix
- Timestamp:
- 2012-04-23T22:14:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6cb995
- Parents:
- 5b3394c
- Location:
- uspace/lib/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/time.c
r5b3394c r8219eb9 383 383 * 384 384 * @param timeptr Broken-down time structure. 385 * @return Pointer to a statically allocated string.386 */387 char *posix_asctime(const struct tm *timeptr)388 {389 static char buf[ASCTIME_BUF_LEN];390 return posix_asctime_r(timeptr, buf);391 }392 393 /**394 * Converts broken-down time to a string in format395 * "Sun Jan 1 00:00:00 1970\n". (Obsolete)396 *397 * @param timeptr Broken-down time structure.398 385 * @param buf Buffer to store string to, must be at least ASCTIME_BUF_LEN 399 386 * bytes long. … … 436 423 return NULL; 437 424 } 438 return posix_asctime(loctime);425 return asctime(loctime); 439 426 } 440 427 -
uspace/lib/posix/time.h
r5b3394c r8219eb9 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) … … 98 95 99 96 /* Formatting Calendar Time */ 100 extern char *posix_asctime(const struct tm *timeptr);101 97 extern char *posix_asctime_r(const struct tm *restrict timeptr, 102 98 char *restrict buf); … … 133 129 #define localtime_r posix_localtime_r 134 130 135 #define asctime posix_asctime136 131 #define asctime_r posix_asctime_r 137 132 #define ctime posix_ctime
Note:
See TracChangeset
for help on using the changeset viewer.
