Xenomai API
2.5.6.1
|
00001 /* 00002 * Written by Gilles Chanteperdrix <[email protected]>. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of the 00007 * License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 00020 #ifndef _POSIX_SIG_H 00021 #define _POSIX_SIG_H 00022 00023 #include <posix/thread.h> 00024 00025 #define SIGACTION_FLAGS (SA_ONESHOT|SA_NOMASK|SA_SIGINFO) 00026 00027 typedef struct { 00028 siginfo_t info; 00029 xnpholder_t link; 00030 00031 #define link2siginfo(iaddr) \ 00032 ((pse51_siginfo_t *)(((char *)iaddr) - offsetof(pse51_siginfo_t, link))) 00033 00034 } pse51_siginfo_t; 00035 00036 /* Must be called with nklock lock, irqs off returns non zero if rescheduling 00037 needed. */ 00038 int pse51_sigqueue_inner(pthread_t thread, pse51_siginfo_t *si); 00039 00040 void pse51_sigunqueue(pthread_t thread, pse51_siginfo_t *si); 00041 00042 void pse51_signal_init_thread(pthread_t new, const pthread_t parent); 00043 00044 void pse51_signal_cleanup_thread(pthread_t zombie); 00045 00046 void pse51_signal_handle_request(pthread_t thread); 00047 00048 void pse51_signal_pkg_init(void); 00049 00050 void pse51_signal_pkg_cleanup(void); 00051 00052 #endif /* !_POSIX_SIG_H */