From 89e3fcba7083f00f82f462c4d6c3c332478e3383 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 8 Oct 2002 13:03:07 +0000 Subject: 2002-10-07 Joel Sherrill * libc/include/pthread.h: Define PTHREAD_CANCELED. --- newlib/ChangeLog | 4 ++++ newlib/libc/include/pthread.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'newlib') diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d82ca5d..f6167e0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,9 @@ 2002-10-07 Joel Sherrill + * libc/include/pthread.h: Define PTHREAD_CANCELED. + +2002-10-07 Joel Sherrill + * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s, libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this compile with current GNU tools. diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index af5d32c..05ff38b 100644 --- a/newlib/libc/include/pthread.h +++ b/newlib/libc/include/pthread.h @@ -258,6 +258,8 @@ int _EXFUN(pthread_key_delete, (pthread_key_t key)); #define PTHREAD_CANCEL_DEFERRED 0 #define PTHREAD_CANCEL_ASYNCHRONOUS 1 +#define PTHREAD_CANCELED ((void *) -1) + int _EXFUN(pthread_cancel, (pthread_t thread)); /* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ -- cgit v1.1