--- rpl/src/rpl.h 2011/09/03 10:31:51 1.115 +++ rpl/src/rpl.h 2011/09/09 12:23:25 1.118 @@ -25,7 +25,7 @@ #ifndef __RPLCAS # define _GNU_SOURCE -# define _POSIX_C_SOURCE 200112L +# define _XOPEN_SOURCE 700 #endif #define _REENTRANT @@ -311,12 +311,14 @@ union semun # define SIGABORT SIGTHR # endif // Arręt d'un processus fils depuis autre chose que STOP -# if defined(Darwin) || defined(OpenBSD) +# if defined(Darwin) || defined(OpenBSD) || defined(NetBSD) # define SIGFABORT SIGINFO # else # define SIGFABORT SIGPOLL # endif +# define SIGTEST SIGILL + // Nombre d'interruptions disponibles # define d_NOMBRE_INTERRUPTIONS 64 #endif @@ -392,6 +394,8 @@ typedef unsigned char t_8_bits; extern jmp_buf contexte_processus; extern jmp_buf contexte_thread; + extern int signal_test; + # ifdef SEMAPHORES_NOMMES extern pthread_mutex_t mutex_sem; # endif @@ -434,6 +438,8 @@ typedef unsigned char t_8_bits; jmp_buf contexte_processus; jmp_buf contexte_thread; + int signal_test; + # ifdef SEMAPHORES_NOMMES pthread_mutex_t mutex_sem = PTHREAD_MUTEX_INITIALIZER; # endif