Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 6 Oct 2004 18:09:57 +0000 (18:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 6 Oct 2004 18:09:57 +0000 (18:09 +0000)
* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
(do_test): Use %p instead of 0x%08X to print a pointer.

* malloc/malloc.c: Include stdio-common/_itoa.h.

ChangeLog
malloc/malloc.c
nptl/allocatestack.c
nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c
nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
nptl/tst-clock2.c
posix/tst-getaddrinfo2.c

index 952dfa3cd7f75c0c0d0fce7c74ec3671234e74bf..796971037fb9047586a9b4338586ef4b5ee0415f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
 2004-10-06  Jakub Jelinek  <jakub@redhat.com>
 
-       * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
-       (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
+       * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
+       (do_test): Use %p instead of 0x%08X to print a pointer.
+
+       * malloc/malloc.c: Include stdio-common/_itoa.h.
 
 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
 
index a41171490a7a5df6968721505951e9039ae1439f..ad6009a198b660ad73dabfe13ff207a6b838f78f 100644 (file)
 
 #include <malloc-machine.h>
 
+#ifdef _LIBC
+#include <stdio-common/_itoa.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 242da0a5a1f489ff0b2b333d3eb287d5592b0073..d4f3188f5375a6d28c79d50f5134fb24c547becd 100644 (file)
@@ -772,8 +772,8 @@ __reclaim_stacks (void)
 
 #if HP_TIMING_AVAIL
 /* Find a thread given the thread ID.  */
-struct pthread *
 attribute_hidden
+struct pthread *
 __find_thread_by_id (pid_t tid)
 {
   struct pthread *result = NULL;
index 67350c21512de513c6d5a7ebc2e77d4dcbfc6be1..c435eff30795c2582fa0f1488a421ac44772142f 100644 (file)
@@ -19,8 +19,7 @@
 
 #include <setjmp.h>
 #include <stddef.h>
-#include <pthread-functions.h>
-#include <pthreaddef.h>
+#include <pthreadP.h>
 
 extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
 #pragma weak __pthread_cleanup_upto
index f7d88f20e6b5526df0e3c290937bbf4f0b75ad5f..36886f58a47cffc6855aa2e08176c1f4a6a90c92 100644 (file)
@@ -1,5 +1,5 @@
 /* Clean up stack frames unwound by longjmp.  Linux/s390 version.
-   Copyright (C) 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004 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,8 +19,7 @@
 
 #include <setjmp.h>
 #include <stddef.h>
-#include <pthread-functions.h>
-#include <pthreaddef.h>
+#include <pthreadP.h>
 
 extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
 #pragma weak __pthread_cleanup_upto
index 03c2ef8106dc0b4c62de2ef37e024ca64af3e92b..92fb08c951cf44b19f7c184ca7abfc44f727ff85 100644 (file)
@@ -100,7 +100,7 @@ typedef union
     __extension__ unsigned long long int __wakeup_seq;
     __extension__ unsigned long long int __woken_seq;
     void *__mutex;
-    int __nwaiters;
+    unsigned int __nwaiters;
     unsigned int __broadcast_seq;
   } __data;
   char __size[__SIZEOF_PTHREAD_COND_T];
index fd216b2ba14cf5ff4aa7cf7b4a12a12ad361c01e..bca40956e20d3659804b24f88a6740d93ee058cd 100644 (file)
@@ -58,6 +58,14 @@ do_test (void)
 #if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
 # define N 10
 
+# if _POSIX_THREAD_CPUTIME == 0
+  if (sysconf (_SC_THREAD_CPUTIME) < 0)
+    {
+      puts ("_POSIX_THREAD_CPUTIME option not available");
+      return 0;
+    }
+# endif
+
   if (pthread_barrier_init (&b2, NULL, 2) != 0
       || pthread_barrier_init (&bN, NULL, N + 1) != 0)
     {
index b0bce5925ced7bfc339fa3cc96eb941c3240fb53..13edca0a34f2981337d8b6a0d76ee03cced6f7c7 100644 (file)
@@ -2,6 +2,8 @@
 #include <errno.h>
 #include <netdb.h>
 #include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 #include <sys/socket.h>
 
 static int
@@ -47,7 +49,7 @@ do_test (void)
       if (err)
         {
           printf ("FAIL getaddrinfo IPv4 socktype 0,513: "
-                  "fam %d alen %d addr 0x%08X addr/fam %d "
+                  "fam %d alen %d addr %p addr/fam %d "
                   "addr/port %d H[%d]\n",
                   pai->ai_family, pai->ai_addrlen, psin,
                   psin ? psin->sin_family : 0,