about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-05-04 00:56:16 +0000
committerUlrich Drepper <drepper@redhat.com>2000-05-04 00:56:16 +0000
commit160016c945d49cfe43f6d34aa077ea04309c983b (patch)
treeba021bf4a09d36d0669c84f7349ec5a4da4c80c5
parente7da8489b97e84cabd9ba9e0d682aef8d3bc5980 (diff)
downloadglibc-160016c945d49cfe43f6d34aa077ea04309c983b.tar.gz
glibc-160016c945d49cfe43f6d34aa077ea04309c983b.tar.xz
glibc-160016c945d49cfe43f6d34aa077ea04309c983b.zip
Update.
2000-05-03  Ulrich Drepper  <drepper@redhat.com>

	* string/bits/string2.h: Declare __strdup and __strndup if necessary.
	Reported by Bruno Haible.

2000-04-29  Bruno Haible  <haible@clisp.cons.org>

	* manual/arith.texi: Remove @w from @itemize.
-rw-r--r--ChangeLog9
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/join.c4
-rw-r--r--string/bits/string2.h3
4 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 191ed09f1e..3ea00f3674 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-05-03  Ulrich Drepper  <drepper@redhat.com>
+
+	* string/bits/string2.h: Declare __strdup and __strndup if necessary.
+	Reported by Bruno Haible.
+
+2000-04-29  Bruno Haible  <haible@clisp.cons.org>
+
+	* manual/arith.texi: Remove @w from @itemize.
+
 2000-05-02  Andreas Jaeger  <aj@suse.de>
 
 	* conform/data/tar.h-data: Add some checks for specific values.
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index ccc38ebd71..6072abc81c 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-29  Bruno Haible  <clisp.cons.org>
+
+	* join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
+	for eventmask larger than 1 word.
+
 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
 
 	* Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
diff --git a/linuxthreads/join.c b/linuxthreads/join.c
index 5a97b17f97..2716d799c1 100644
--- a/linuxthreads/join.c
+++ b/linuxthreads/join.c
@@ -45,8 +45,8 @@ void pthread_exit(void * retval)
       uint32_t mask = __td_eventmask (TD_DEATH);
 
       if ((mask & (__pthread_threads_events.event_bits[idx]
-		   | THREAD_GETMEM(self,
-				   p_eventbuf.eventmask).event_bits[idx]))
+		   | THREAD_GETMEM_NC(self,
+				      p_eventbuf.eventmask.event_bits[idx])))
 	  != 0)
 	{
 	  /* Yep, we have to signal the death.  */
diff --git a/string/bits/string2.h b/string/bits/string2.h
index b42987e763..223c36e8df 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -1188,6 +1188,7 @@ __strsep_g (char **__s, __const char *__reject)
 
 # ifndef _HAVE_STRING_ARCH_strdup
 
+extern char *__strdup (__const char *__string) __THROW __attribute_malloc__;
 #  define __strdup(s) \
   (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s)	      \
 		  ? (((__const char *) (s))[0] == '\0'			      \
@@ -1206,6 +1207,8 @@ __strsep_g (char **__s, __const char *__reject)
 
 # ifndef _HAVE_STRING_ARCH_strndup
 
+extern char *__strndup (__const char *__string, size_t __n)
+     __THROW __attribute_malloc__;
 #  define __strndup(s, n) \
   (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s)	      \
 		  ? (((__const char *) (s))[0] == '\0'			      \