Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 14 Apr 2002 09:14:45 +0000 (09:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 14 Apr 2002 09:14:45 +0000 (09:14 +0000)
* include/sys/time.h: Declare __gettimeofday_internal and define
__gettimeofday macro if not NOT_IN_libc.
* sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
* sysdeps/mach/gettimeofday.c: Likewise.
* sysdeps/posix/gettimeofday.c: Likewise.
* sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
* sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.

ChangeLog
include/sys/time.h
sysdeps/generic/gettimeofday.c
sysdeps/mach/gettimeofday.c
sysdeps/posix/gettimeofday.c
sysdeps/unix/common/syscalls.list
sysdeps/unix/sysv/aix/gettimeofday.c
sysdeps/unix/sysv/linux/alpha/gettimeofday.S
sysdeps/unix/sysv/linux/x86_64/gettimeofday.S

index 8228fea..4bf1eea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
 
+       * include/sys/time.h: Declare __gettimeofday_internal and define
+       __gettimeofday macro if not NOT_IN_libc.
+       * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
+       * sysdeps/mach/gettimeofday.c: Likewise.
+       * sysdeps/posix/gettimeofday.c: Likewise.
+       * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
+       * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
+       * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
+
        * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
        and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
        Remove __lstat and __fstat inline functions.
index 0350573..634fe8a 100644 (file)
@@ -4,6 +4,8 @@
 /* Now document the internal interfaces.  */
 extern int __gettimeofday (struct timeval *__tv,
                           struct timezone *__tz);
+extern int __gettimeofday_internal (struct timeval *__tv,
+                                   struct timezone *__tz);
 extern int __settimeofday (__const struct timeval *__tv,
                           __const struct timezone *__tz);
 extern int __adjtime (__const struct timeval *__delta,
@@ -14,4 +16,9 @@ extern int __setitimer (enum __itimer_which __which,
                        __const struct itimerval *__restrict __new,
                        struct itimerval *__restrict __old);
 extern int __utimes (__const char *__file, const struct timeval __tvp[2]);
+
+#ifndef NOT_IN_libc
+# define __gettimeofday(tv, tz) INTUSE(__gettimeofday) (tv, tz)
+#endif
+
 #endif
index 03e705d..f4a170c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,8 @@
 #include <errno.h>
 #include <sys/time.h>
 
+#undef __gettimeofday
+
 /* Get the current time of day and timezone information,
    putting it into *TV and *TZ.  If TZ is NULL, *TZ is not filled.
    Returns 0 on success, -1 on errors.  */
@@ -32,5 +34,6 @@ __gettimeofday (tv, tz)
 }
 stub_warning (gettimeofday)
 
+INTDEF(__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
 #include <stub-tag.h>
index 06268c9..7eb60c4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1995,1996,1997,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995-1997,2001,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@
 #include <sys/time.h>
 #include <mach.h>
 
+#undef __gettimeofday
+
 /* Get the current time of day and timezone information,
    putting it into *TV and *TZ.  If TZ is NULL, *TZ is not filled.
    Returns 0 on success, -1 on errors.  */
@@ -42,4 +44,5 @@ __gettimeofday (tv, tz)
   return 0;
 }
 
+INTDEF(__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index b33b9d6..28f75b0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 94, 95, 96, 97, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -26,6 +26,7 @@
 #define __tzname       tzname
 #endif
 
+#undef __gettimeofday
 
 /* Get the current time of day and timezone information,
    putting it into *TV and *TZ.  If TZ is NULL, *TZ is not filled.
@@ -73,4 +74,5 @@ __gettimeofday (tv, tz)
   return 0;
 }
 
+INTDEF(__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index 2b06b73..fbe915c 100644 (file)
@@ -6,7 +6,7 @@ fchown          -       fchown          i:iii   __fchown        fchown
 ftruncate      -       ftruncate       i:ii    __ftruncate     ftruncate
 getpgid                -       getpgrp         i:i     __getpgid       getpgid
 getrusage      -       getrusage       i:ip    __getrusage     getrusage
-gettimeofday   -       gettimeofday    i:PP    __gettimeofday  gettimeofday
+gettimeofday   -       gettimeofday    i:PP    __gettimeofday  gettimeofday __gettimeofday_internal
 settimeofday   -       settimeofday    i:PP    __settimeofday  settimeofday
 setpgid                -       setpgrp         i:ii    __setpgid       setpgid
 setregid       -       setregid        i:ii    __setregid      setregid
index 031a84e..a0105ae 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 95, 96, 97, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,95,96,97,2001,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -26,6 +26,8 @@
 # define __tzname      tzname
 #endif
 
+#undef __gettimeofday
+
 extern int rtc_upper (void);
 extern int rtc_lower (void);
 
@@ -92,4 +94,5 @@ __gettimeofday (tv, tz)
   return 0;
 }
 
+INTDEF(__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index 22f3bb7..60d642a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -109,3 +109,4 @@ default_symbol_version (__gettimeofday_tv64p, gettimeofday, GLIBC_2.1)
 #else
 weak_alias (__gettimeofday, gettimeofday)
 #endif
+strong_alias(GETTIMEOFDAY, __gettimeofday_internal)
index 4978416..3f16155 100644 (file)
@@ -38,4 +38,5 @@ L(pseudo_end):
        ret
 PSEUDO_END(__gettimeofday)
 
+strong_alias (__gettimeofday, __gettimeofday_internal)
 weak_alias (__gettimeofday, gettimeofday)