From: Andreas Jaeger Date: Sat, 29 Dec 2001 13:46:34 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~22226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9403ec5d23e7dc209361b3dbae2fdc184e1684aa;p=external%2Fglibc.git Update. 2001-12-29 Andreas Jaeger * 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. --- diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 2b55b8f..d41cb7a 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,12 @@ +2001-12-29 Andreas Jaeger + + * 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 * man/pthread_atfork.man: Adjust description of mutex handling diff --git a/linuxthreads/Examples/ex10.c b/linuxthreads/Examples/ex10.c index d89f4f4..8af1b6e 100644 --- a/linuxthreads/Examples/ex10.c +++ b/linuxthreads/Examples/ex10.c @@ -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 , 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 diff --git a/linuxthreads/Examples/ex13.c b/linuxthreads/Examples/ex13.c index af95358..cbc7a2b 100644 --- a/linuxthreads/Examples/ex13.c +++ b/linuxthreads/Examples/ex13.c @@ -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 , 2000. @@ -25,6 +25,9 @@ #include #include +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) { diff --git a/linuxthreads/Examples/ex15.c b/linuxthreads/Examples/ex15.c index f73b940..e953b23 100644 --- a/linuxthreads/Examples/ex15.c +++ b/linuxthreads/Examples/ex15.c @@ -5,6 +5,8 @@ #include #include +static void *worker (void *dummy) __attribute__ ((__noreturn__)); + static void * worker (void *dummy) { diff --git a/linuxthreads/Examples/ex9.c b/linuxthreads/Examples/ex9.c index 0c08741..dafb406 100644 --- a/linuxthreads/Examples/ex9.c +++ b/linuxthreads/Examples/ex9.c @@ -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 , 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