1*53ee8cc1Swenshuai.xi /* Signal handling function for threaded programs. 2*53ee8cc1Swenshuai.xi Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. 3*53ee8cc1Swenshuai.xi This file is part of the GNU C Library. 4*53ee8cc1Swenshuai.xi 5*53ee8cc1Swenshuai.xi The GNU C Library is free software; you can redistribute it and/or 6*53ee8cc1Swenshuai.xi modify it under the terms of the GNU Lesser General Public License as 7*53ee8cc1Swenshuai.xi published by the Free Software Foundation; either version 2.1 of the 8*53ee8cc1Swenshuai.xi License, or (at your option) any later version. 9*53ee8cc1Swenshuai.xi 10*53ee8cc1Swenshuai.xi The GNU C Library is distributed in the hope that it will be useful, 11*53ee8cc1Swenshuai.xi but WITHOUT ANY WARRANTY; without even the implied warranty of 12*53ee8cc1Swenshuai.xi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13*53ee8cc1Swenshuai.xi Lesser General Public License for more details. 14*53ee8cc1Swenshuai.xi 15*53ee8cc1Swenshuai.xi You should have received a copy of the GNU Lesser General Public 16*53ee8cc1Swenshuai.xi License along with the GNU C Library; see the file COPYING.LIB. If not, 17*53ee8cc1Swenshuai.xi write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18*53ee8cc1Swenshuai.xi Boston, MA 02111-1307, USA. */ 19*53ee8cc1Swenshuai.xi 20*53ee8cc1Swenshuai.xi #ifndef _BITS_SIGTHREAD_H 21*53ee8cc1Swenshuai.xi #define _BITS_SIGTHREAD_H 1 22*53ee8cc1Swenshuai.xi 23*53ee8cc1Swenshuai.xi #if !defined _SIGNAL_H && !defined _PTHREAD_H 24*53ee8cc1Swenshuai.xi # error "Never include this file directly. Use <pthread.h> instead" 25*53ee8cc1Swenshuai.xi #endif 26*53ee8cc1Swenshuai.xi 27*53ee8cc1Swenshuai.xi /* Functions for handling signals. */ 28*53ee8cc1Swenshuai.xi 29*53ee8cc1Swenshuai.xi /* Modify the signal mask for the calling thread. The arguments have 30*53ee8cc1Swenshuai.xi the same meaning as for sigprocmask(2). */ 31*53ee8cc1Swenshuai.xi extern int pthread_sigmask (int __how, 32*53ee8cc1Swenshuai.xi __const __sigset_t *__restrict __newmask, 33*53ee8cc1Swenshuai.xi __sigset_t *__restrict __oldmask)__THROW; 34*53ee8cc1Swenshuai.xi 35*53ee8cc1Swenshuai.xi /* Send signal SIGNO to the given thread. */ 36*53ee8cc1Swenshuai.xi extern int pthread_kill (pthread_t __threadid, int __signo) __THROW; 37*53ee8cc1Swenshuai.xi 38*53ee8cc1Swenshuai.xi #endif /* bits/sigthread.h */ 39