From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3867 invoked by alias); 20 Jun 2003 12:21:23 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 1326 invoked from network); 20 Jun 2003 12:20:19 -0000 Received: from unknown (HELO r-rr.iij4u.or.jp) (210.130.0.76) by sources.redhat.com with SMTP; 20 Jun 2003 12:20:19 -0000 Received: from localhost (frgw.3in.ne.jp [210.251.121.226]) by r-rr.iij4u.or.jp (8.11.6+IIJ/8.11.6) with ESMTP id h5KCKGZ02364 for ; Fri, 20 Jun 2003 21:20:17 +0900 (JST) Message-Id: <200306201220.h5KCKGZ02364@r-rr.iij4u.or.jp> To: libc-hacker@sources.redhat.com Subject: [PATCH] SH portion of cancellation support in librt Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 20 Jun 2003 12:21:00 -0000 From: kaz Kojima X-Dispatcher: imput version 20000228(IM140) X-SW-Source: 2003-06/txt/msg00040.txt.bz2 Hi, Here is the SH portion of Jakub's patch for linuxthreads: . Regards, kaz -- 2003-06-20 Kaz Kojima * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Support cancellation in librt. diff -u3prN ORIG/libc/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h LOCAL/libc/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h --- ORIG/libc/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h Wed Apr 30 10:13:06 2003 +++ LOCAL/libc/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h Fri Jun 20 15:49:52 2003 @@ -23,7 +23,7 @@ # include #endif -#if !defined NOT_IN_libc || defined IS_IN_libpthread +#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt # define _IMM12 #-12 # define _IMM16 #-16 @@ -92,10 +92,13 @@ # define __local_enable_asynccancel __pthread_enable_asynccancel # define __local_disable_asynccancel __pthread_disable_asynccancel # define __local_multiple_threads __pthread_multiple_threads -# else +# elif !defined NOT_IN_libc # define __local_enable_asynccancel __libc_enable_asynccancel # define __local_disable_asynccancel __libc_disable_asynccancel # define __local_multiple_threads __libc_multiple_threads +# else +# define __local_enable_asynccancel __librt_enable_asynccancel +# define __local_disable_asynccancel __librt_disable_asynccancel # endif # define CENABLE \