This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-388-gfcafcd1


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  fcafcd162c843364dc2bb8d57bd239c41cfd122c (commit)
      from  6174537c24cfe324d6e8f5a2a421883df12b8b6a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=fcafcd162c843364dc2bb8d57bd239c41cfd122c

commit fcafcd162c843364dc2bb8d57bd239c41cfd122c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Sep 25 01:55:02 2017 +0200

    hurd: Fix exposition of s/gettimeofday through timespec_s/get
    
    conform/ISO11/time.h/linknamespace complains that using timespec_get exposes
    gettimeofday.
    
    conform/POSIX/time.h/linknamespace complains that using clock_settime
    exposes settimeofday.
    
    	* sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
    	__gettimeofday instead of gettimeofday.
    	* sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
    	instead of settimeofday.

diff --git a/ChangeLog b/ChangeLog
index 84b1937..87803bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,10 @@
 	* bits/socket.h: Likewise.
 	* support/resolv_test.c (server_thread_udp_process_one): Call recvfrom
 	instead of xrecvfrom, and ignore ECONNREFUSED errors.
+	* sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
+	__gettimeofday instead of gettimeofday.
+	* sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
+	instead of settimeofday.
 
 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/sysdeps/unix/clock_gettime.c b/sysdeps/unix/clock_gettime.c
index 5262066..c4cf493 100644
--- a/sysdeps/unix/clock_gettime.c
+++ b/sysdeps/unix/clock_gettime.c
@@ -79,7 +79,7 @@ static inline int
 realtime_gettime (struct timespec *tp)
 {
   struct timeval tv;
-  int retval = gettimeofday (&tv, NULL);
+  int retval = __gettimeofday (&tv, NULL);
   if (retval == 0)
     /* Convert into `timespec'.  */
     TIMEVAL_TO_TIMESPEC (&tv, tp);
@@ -103,7 +103,7 @@ __clock_gettime (clockid_t clock_id, struct timespec *tp)
     case CLOCK_REALTIME:
       {
 	struct timeval tv;
-	retval = gettimeofday (&tv, NULL);
+	retval = __gettimeofday (&tv, NULL);
 	if (retval == 0)
 	  TIMEVAL_TO_TIMESPEC (&tv, tp);
       }
diff --git a/sysdeps/unix/clock_settime.c b/sysdeps/unix/clock_settime.c
index e744cae..067e279 100644
--- a/sysdeps/unix/clock_settime.c
+++ b/sysdeps/unix/clock_settime.c
@@ -89,7 +89,7 @@ __clock_settime (clockid_t clock_id, const struct timespec *tp)
 	struct timeval tv;						      \
 	TIMESPEC_TO_TIMEVAL (&tv, tp);					      \
 									      \
-	retval = settimeofday (&tv, NULL);				      \
+	retval = __settimeofday (&tv, NULL);				      \
       } while (0)
 
 #ifdef SYSDEP_SETTIME

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                    |    4 ++++
 sysdeps/unix/clock_gettime.c |    4 ++--
 sysdeps/unix/clock_settime.c |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]