diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-29 00:50:10 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-29 00:50:10 +0000 |
commit | d24608f995e83aa4ac5557cd1a084cac55a71a3c (patch) | |
tree | bd85ca3d38df362786a2ff156f8efd0c8d628f74 /libc/misc/time/time.c | |
parent | 57eac0f84b7fe02eee8607eff91051eeef6e74ba (diff) |
Hiding again
Diffstat (limited to 'libc/misc/time/time.c')
-rw-r--r-- | libc/misc/time/time.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index 67add6845..e1e86db91 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -131,6 +131,7 @@ #define _uintmaxtostr __libc__uintmaxtostr #define strnlen __strnlen +#define memcpy __memcpy #define _GNU_SOURCE #include <stdio.h> @@ -224,15 +225,21 @@ extern struct tm *__time_localtime_tzi(const time_t *__restrict timer, extern time_t _time_mktime_tzi(struct tm *timeptr, int store_on_success, rule_struct *tzi) attribute_hidden; +extern char *__asctime (__const struct tm *__tp) attribute_hidden; + +extern char *__asctime_r (__const struct tm *__restrict __tp, + char *__restrict __buf) attribute_hidden; + /**********************************************************************/ #ifdef L_asctime static char __time_str[26]; -char *asctime(const struct tm *__restrict ptm) +char attribute_hidden *__asctime(const struct tm *ptm) { - return asctime_r(ptm, __time_str); + return __asctime_r(ptm, __time_str); } +strong_alias(__asctime,asctime) #endif /**********************************************************************/ @@ -300,7 +307,7 @@ static const unsigned char at_data[] = { ' ', '?', '?', '?', '?', '\n', 0 }; -char *asctime_r(register const struct tm *__restrict ptm, +char attribute_hidden *__asctime_r(register const struct tm *__restrict ptm, register char *__restrict buffer) { int tmp; @@ -374,6 +381,7 @@ char *asctime_r(register const struct tm *__restrict ptm, return buffer - 8; } +strong_alias(__asctime_r,asctime_r) #endif /**********************************************************************/ @@ -448,7 +456,7 @@ clock_t clock(void) char *ctime(const time_t *clock) { /* ANSI/ISO/SUSv3 say that ctime is equivalent to the following. */ - return asctime(localtime(clock)); + return __asctime(localtime(clock)); } #endif @@ -459,7 +467,7 @@ char *ctime_r(const time_t *clock, char *buf) { struct tm xtm; - return asctime_r(localtime_r(clock, &xtm), buf); + return __asctime_r(localtime_r(clock, &xtm), buf); } #endif |