diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-04-14 09:14:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-04-14 09:14:45 +0000 |
commit | 29886719b5e20f210f9f0133ca381ca995dbc1e0 (patch) | |
tree | a87c9185f905db16f4259f3d1f89d8eae26cc346 /sysdeps | |
parent | f9663bd4bb9a62951965e62c5e959f0044ea8596 (diff) | |
download | glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.gz glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.tar.xz glibc-29886719b5e20f210f9f0133ca381ca995dbc1e0.zip |
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 'sysdeps')
-rw-r--r-- | sysdeps/generic/gettimeofday.c | 5 | ||||
-rw-r--r-- | sysdeps/mach/gettimeofday.c | 5 | ||||
-rw-r--r-- | sysdeps/posix/gettimeofday.c | 4 | ||||
-rw-r--r-- | sysdeps/unix/common/syscalls.list | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/aix/gettimeofday.c | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/gettimeofday.S | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/gettimeofday.S | 1 |
7 files changed, 19 insertions, 6 deletions
diff --git a/sysdeps/generic/gettimeofday.c b/sysdeps/generic/gettimeofday.c index 03e705db7c..f4a170c9e7 100644 --- a/sysdeps/generic/gettimeofday.c +++ b/sysdeps/generic/gettimeofday.c @@ -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> diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c index 06268c9d04..7eb60c4b59 100644 --- a/sysdeps/mach/gettimeofday.c +++ b/sysdeps/mach/gettimeofday.c @@ -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) diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c index b33b9d6d7e..28f75b0bcc 100644 --- a/sysdeps/posix/gettimeofday.c +++ b/sysdeps/posix/gettimeofday.c @@ -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) diff --git a/sysdeps/unix/common/syscalls.list b/sysdeps/unix/common/syscalls.list index 2b06b73a33..fbe915cebd 100644 --- a/sysdeps/unix/common/syscalls.list +++ b/sysdeps/unix/common/syscalls.list @@ -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 diff --git a/sysdeps/unix/sysv/aix/gettimeofday.c b/sysdeps/unix/sysv/aix/gettimeofday.c index 031a84ebb6..a0105ae080 100644 --- a/sysdeps/unix/sysv/aix/gettimeofday.c +++ b/sysdeps/unix/sysv/aix/gettimeofday.c @@ -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) diff --git a/sysdeps/unix/sysv/linux/alpha/gettimeofday.S b/sysdeps/unix/sysv/linux/alpha/gettimeofday.S index 22f3bb7bc2..60d642a125 100644 --- a/sysdeps/unix/sysv/linux/alpha/gettimeofday.S +++ b/sysdeps/unix/sysv/linux/alpha/gettimeofday.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.S b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.S index 4978416e0a..3f1615579c 100644 --- a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.S +++ b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.S @@ -38,4 +38,5 @@ L(pseudo_end): ret PSEUDO_END(__gettimeofday) +strong_alias (__gettimeofday, __gettimeofday_internal) weak_alias (__gettimeofday, gettimeofday) |