This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

define PTHREAD_CANCELED in pthread.h


Hi,

pthread.h didn't define PTHREAD_CANCELED which is required.
I am surprised no one ever noticed. :>


2002-10-07      Joel Sherrill <joel@OARcorp.com>

        * libc/include/pthread.h: Define PTHREAD_CANCELED.
 

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985
2002-10-07	Joel Sherrill <joel@OARcorp.com>

	* libc/include/pthread.h: Define PTHREAD_CANCELED.

Index: newlib-cvs-20020822/libc/include/pthread.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/pthread.h,v
retrieving revision 1.2
diff -u -r1.2 pthread.h
--- newlib-cvs-20020822/libc/include/pthread.h	20 Jun 2002 19:51:19 -0000	1.2
+++ newlib-cvs-20020822/libc/include/pthread.h	22 Aug 2002 17:15:15 -0000
@@ -258,6 +258,8 @@
 #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 */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]