aboutsummaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-14 09:14:45 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-14 09:14:45 +0000
commit29886719b5e20f210f9f0133ca381ca995dbc1e0 (patch)
treea87c9185f905db16f4259f3d1f89d8eae26cc346 /include/sys
parentf9663bd4bb9a62951965e62c5e959f0044ea8596 (diff)
downloadglibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.zip
glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.gz
glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.bz2
Update.
* 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.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/time.h b/include/sys/time.h
index 0350573..634fe8a 100644
--- a/include/sys/time.h
+++ b/include/sys/time.h
@@ -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