|
|
c6d234 |
Introduce prototype-style function definitions for architecture-specific
|
|
|
c6d234 |
gettimeofday implementations.
|
|
|
c6d234 |
|
|
|
c6d234 |
Upstream did this as part of:
|
|
|
c6d234 |
|
|
|
c6d234 |
commit 97554e4382e5d85eccf146b58f85aaad7e3d687c
|
|
|
c6d234 |
Author: Adhemerval Zanella <adhemerval.zanella@linaro.com>
|
|
|
c6d234 |
Date: Fri Apr 17 11:48:51 2015 -0300
|
|
|
c6d234 |
|
|
|
c6d234 |
Consolidate gettimeofday across aarch64/s390/tile
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c b/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
c6d234 |
index 90d115577bad42ec..0a43a1bf94432006 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
c6d234 |
@@ -27,9 +27,7 @@
|
|
|
c6d234 |
putting it into *tv and *tz. If tz is null, *tz is not filled.
|
|
|
c6d234 |
Returns 0 on success, -1 on errors. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gettimeofday (tv, tz)
|
|
|
c6d234 |
- struct timeval *tv;
|
|
|
c6d234 |
- struct timezone *tz;
|
|
|
c6d234 |
+__gettimeofday (struct timeval *tv, struct timezone *tz)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/gettimeofday.c b/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
c6d234 |
index d897e1a6b68c069a..10777d17828fa9d0 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
c6d234 |
@@ -28,9 +28,7 @@
|
|
|
c6d234 |
Returns 0 on success, -1 on errors. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gettimeofday (tv, tz)
|
|
|
c6d234 |
- struct timeval *tv;
|
|
|
c6d234 |
- struct timezone *tz;
|
|
|
c6d234 |
+__gettimeofday (struct timeval *tv, struct timezone *tz)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
|
|
|
c6d234 |
}
|