From ab3c2887d53865f3918fe3e5da13f8ead0b6c90d Mon Sep 17 00:00:00 2001 From: Mystery Man Date: Tue, 20 May 2003 13:38:10 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'V9_2_0_1mdk'. --- .../dietlibc/libpthread/pthread_setcanceltype.c | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 mdk-stage1/dietlibc/libpthread/pthread_setcanceltype.c (limited to 'mdk-stage1/dietlibc/libpthread/pthread_setcanceltype.c') diff --git a/mdk-stage1/dietlibc/libpthread/pthread_setcanceltype.c b/mdk-stage1/dietlibc/libpthread/pthread_setcanceltype.c deleted file mode 100644 index 03d1f53de..000000000 --- a/mdk-stage1/dietlibc/libpthread/pthread_setcanceltype.c +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include - -#include -#include "thread_internal.h" - -int pthread_setcanceltype(int type, int *oldtype) -{ - _pthread_descr thread; - - __THREAD_INIT(); - - if ((type==PTHREAD_CANCEL_DEFERRED) || (type==PTHREAD_CANCEL_ASYNCHRONOUS)) - { - thread = __thread_self(); - - if (oldtype) *oldtype = thread->canceltype; - thread->canceltype = type; - - return 0; - } - - (*(__errno_location()))=EINVAL; - return -1; -} -- cgit v1.2.1