summaryrefslogtreecommitdiff
path: root/libc/misc/time
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
commitafdecae49f81065952da43bb2629fcdb64aad535 (patch)
tree6812f3969a0dc88c8ef60bbbeb41e4a78c064cda /libc/misc/time
parentceca97e8eaee5878711eb2c2047859e4ced79be0 (diff)
Use internal versions
Diffstat (limited to 'libc/misc/time')
-rw-r--r--libc/misc/time/ftime.c2
-rw-r--r--libc/misc/time/time.c12
2 files changed, 12 insertions, 2 deletions
diff --git a/libc/misc/time/ftime.c b/libc/misc/time/ftime.c
index 24789c9eb..904763241 100644
--- a/libc/misc/time/ftime.c
+++ b/libc/misc/time/ftime.c
@@ -16,6 +16,8 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define gettimeofday __gettimeofday
+
#include <sys/timeb.h>
#include <sys/time.h>
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index 59b3ef641..85a96f003 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -130,6 +130,7 @@
*/
#define strnlen __strnlen
+#define gettimeofday __gettimeofday
#define _GNU_SOURCE
#include <stdio.h>
@@ -147,8 +148,15 @@
extern void __tzset (void) __THROW attribute_hidden;
+extern long int __strtol (__const char *__restrict __nptr,
+ char **__restrict __endptr, int __base)
+ __THROW __nonnull ((1)) __wur attribute_hidden;
+
#ifdef __UCLIBC_HAS_XLOCALE__
#include <xlocale.h>
+extern long int __strtol_l (__const char *__restrict __nptr,
+ char **__restrict __endptr, int __base,
+ __locale_t __loc) __THROW __nonnull ((1, 4)) __wur attribute_hidden;
extern int __strncasecmp_l (__const char *__s1, __const char *__s2,
size_t __n, __locale_t __loc)
__THROW __attribute_pure__ __nonnull ((1, 2, 4)) attribute_hidden;
@@ -1544,9 +1552,9 @@ char attribute_hidden *__UCXL(strptime)(const char *__restrict buf, const char *
__set_errno(0);
if (!ISSPACE(*buf)) { /* Signal an error if whitespace. */
#ifdef TIME_T_IS_UNSIGNED
- t = __XL(strtoul)(buf, &o, 10 __LOCALE_ARG);
+ t = __UCXL(strtoul)(buf, &o, 10 __LOCALE_ARG);
#else
- t = __XL(strtol)(buf, &o, 10 __LOCALE_ARG);
+ t = __UCXL(strtol)(buf, &o, 10 __LOCALE_ARG);
#endif
}
if ((o == buf) || errno) { /* Not a number or overflow. */