summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-03 17:10:35 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-03 17:10:35 +0000
commit2e4581e4fba917f1779cd0a010a45698586c190a (patch)
treeeae590620510f87f2ca7063afee31a5ec38df30c
parent5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e (diff)
downloadglibc-2e4581e4fba917f1779cd0a010a45698586c190a.tar.gz
glibc-2e4581e4fba917f1779cd0a010a45698586c190a.tar.xz
glibc-2e4581e4fba917f1779cd0a010a45698586c190a.zip
Update.
2000-09-03  Ulrich Drepper  <drepper@redhat.com>

	* time/sys/time.h (gettimeofday): Move restrict for tz parameter
	to the typedefs of __timezone_ptr_t.
	Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.

2000-09-02  Jakub Jelinek  <jakub@redhat.com>

	* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
	the loop.

2000-09-01  H.J. Lu  <hjl@gnu.org>

	* Makeconfig (built-program-cmd): Don't use the dynamic linker
	to run a binary if it is in $(tests-static).

	* Rules (binaries-static): Add $(tests-static).
-rw-r--r--ChangeLog18
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/manager.c6
-rw-r--r--nss/nss_files/files-hosts.c1
-rw-r--r--time/sys/time.h6
5 files changed, 30 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 5033b24f73..3edfbc9410 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2000-09-03  Ulrich Drepper  <drepper@redhat.com>
+
+	* time/sys/time.h (gettimeofday): Move restrict for tz parameter
+	to the typedefs of __timezone_ptr_t.
+	Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
+
+2000-09-02  Jakub Jelinek  <jakub@redhat.com>
+
+	* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
+	the loop.
+
+2000-09-01  H.J. Lu  <hjl@gnu.org>
+
+	* Makeconfig (built-program-cmd): Don't use the dynamic linker
+	to run a binary if it is in $(tests-static).
+
+	* Rules (binaries-static): Add $(tests-static).
+
 2000-09-02  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 54ee1cff8b..0a256fc041 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-03  Mark Kettenis  <kettenis@gnu.org>
+
+	* manager.c (pthread_exited): Correctly report event as TD_REAP
+	instead of TD_DEATH.  Fix comments.
+
 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* spinlock.h (testandset): Add cast to avoid warning.
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c
index 6531775458..37f426759f 100644
--- a/linuxthreads/manager.c
+++ b/linuxthreads/manager.c
@@ -737,15 +737,15 @@ static void pthread_exited(pid_t pid)
       /* If we have to signal this event do it now.  */
       if (th->p_report_events)
 	{
-	  /* See whether TD_DEATH is in any of the mask.  */
+	  /* See whether TD_REAP is in any of the mask.  */
 	  int idx = __td_eventword (TD_REAP);
 	  uint32_t mask = __td_eventmask (TD_REAP);
 
 	  if ((mask & (__pthread_threads_events.event_bits[idx]
 		       | th->p_eventbuf.eventmask.event_bits[idx])) != 0)
 	    {
-	      /* Yep, we have to signal the death.  */
-	      th->p_eventbuf.eventnum = TD_DEATH;
+	      /* Yep, we have to signal the reapage.  */
+	      th->p_eventbuf.eventnum = TD_REAP;
 	      th->p_eventbuf.eventdata = th;
 	      __pthread_last_event = th;
 
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c
index 7f4e778c7e..4cd0cd2a43 100644
--- a/nss/nss_files/files-hosts.c
+++ b/nss/nss_files/files-hosts.c
@@ -200,6 +200,7 @@ _nss_files_get##name##_r (proto,					      \
 		      bufferend = (__stpcpy (bufferend,			      \
 					     tmp_result_buf.h_aliases[cnt])   \
 				   + 1);				      \
+		      ++cnt;						      \
 		    }							      \
 									      \
 		  if (cnt < newaliases)					      \
diff --git a/time/sys/time.h b/time/sys/time.h
index a753912299..12389fb815 100644
--- a/time/sys/time.h
+++ b/time/sys/time.h
@@ -55,9 +55,9 @@ struct timezone
   };
 
 #if defined __USE_GNU || defined __USE_BSD
-typedef struct timezone *__timezone_ptr_t;
+typedef struct timezone *__restrict __timezone_ptr_t;
 #else
-typedef void *__timezone_ptr_t;
+typedef void *__restrict __timezone_ptr_t;
 #endif
 
 /* Get the current time of day and timezone information,
@@ -66,7 +66,7 @@ typedef void *__timezone_ptr_t;
    NOTE: This form of timezone information is obsolete.
    Use the functions and variables declared in <time.h> instead.  */
 extern int gettimeofday (struct timeval *__restrict __tv,
-			 __timezone_ptr_t __restrict __tz) __THROW;
+			 __timezone_ptr_t __tz) __THROW;
 
 /* Set the current time of day and timezone information.
    This call is restricted to the super-user.  */