]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Sat, 29 Dec 2001 13:46:34 +0000 (13:46 +0000)
committerAndreas Jaeger <aj@suse.de>
Sat, 29 Dec 2001 13:46:34 +0000 (13:46 +0000)
2001-12-29  Andreas Jaeger  <aj@suse.de>

* Examples/ex9.c: Add noreturn attribute for thread.
* Examples/ex10.c: Likewise.
* Examples/ex13.c (thread_start): Likewise.
* Examples/ex15.c (worker): Likewise.

* Examples/ex18.c: Include unistd.h for prototype of sleep.

linuxthreads/ChangeLog
linuxthreads/Examples/ex10.c
linuxthreads/Examples/ex13.c
linuxthreads/Examples/ex15.c
linuxthreads/Examples/ex9.c

index 2b55b8fcfba7b3cab63e1453a36d40f57c067d28..d41cb7af0113c666a0cf9135f5295a49e44cf3ae 100644 (file)
@@ -1,3 +1,12 @@
+2001-12-29  Andreas Jaeger  <aj@suse.de>
+
+       * Examples/ex9.c: Add noreturn attribute for thread.
+       * Examples/ex10.c: Likewise.
+       * Examples/ex13.c (thread_start): Likewise.
+       * Examples/ex15.c (worker): Likewise.
+
+       * Examples/ex18.c: Include unistd.h for prototype of sleep.
+
 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
 
        * man/pthread_atfork.man: Adjust description of mutex handling
index d89f4f469d698ea49a68c49d61e2e6d4d11a2365..8af1b6e1cacd5f843b0ac8528c5ede141685b7ca 100644 (file)
@@ -1,5 +1,5 @@
 /* Tests for pthread_mutex_timedlock function.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    Contributed by Kaz Kylheku <kaz@ashi.footprints.net>, 2000.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@
 #define NUM_ITERS   50
 #define TIMEOUT_NS  100000000L
 
-static void *thread (void *);
+static void *thread (void *)  __attribute__ ((__noreturn__));
 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
 
 int
index af9535829784eda63d4c4755571ffec0995b70b2..cbc7a2b2bda96a1788f5809e9c0f03a6e9e3319c 100644 (file)
@@ -1,5 +1,5 @@
 /* Test for Pthreads/mutexes.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kurt Garloff <garloff@suse.de>, 2000.
 
@@ -25,6 +25,9 @@
 #include <string.h>
 #include <unistd.h>
 
+static void *thread_start (void *ptr) __attribute__ ((__noreturn__));
+
+
 struct thr_ctrl
 {
   pthread_mutex_t mutex;
@@ -58,7 +61,6 @@ pthr_cond_signal_mutex (pthread_cond_t * cond, pthread_mutex_t * mut)
     printf ("mutex_unlock: %s\n", strerror (err));
 }
 
-
 static void *
 thread_start (void *ptr)
 {
index f73b940949f2b3bb6d2b13ea3adbd871500c5421..e953b231d739047899680ed5dbe8f1728f92a611 100644 (file)
@@ -5,6 +5,8 @@
 #include <pthread.h>
 #include <unistd.h>
 
+static void *worker (void *dummy) __attribute__ ((__noreturn__));
+
 static void *
 worker (void *dummy)
 {
index 0c087410035d4272b1055645a363ed0e4a984ffc..dafb4065de389612893601f2af9dac4672663781 100644 (file)
@@ -1,5 +1,5 @@
 /* Tests for pthread_barrier_* functions.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    Contributed by Kaz Kylheku <kaz@ashi.footprints.net>, 2000.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,7 @@
 #define NUM_THREADS 10
 #define NUM_ITERS   500
 
-static void *thread (void *);
+static void *thread (void *)  __attribute__ ((__noreturn__));
 static pthread_barrier_t barrier;
 
 int