version 1.115, 2011/09/03 10:31:51
|
version 1.119, 2011/09/10 20:45:07
|
Line 25
|
Line 25
|
|
|
#ifndef __RPLCAS |
#ifndef __RPLCAS |
# define _GNU_SOURCE |
# define _GNU_SOURCE |
# define _POSIX_C_SOURCE 200112L |
# define _XOPEN_SOURCE 700 |
#endif |
#endif |
|
|
#define _REENTRANT |
#define _REENTRANT |
Line 311 union semun
|
Line 311 union semun
|
# define SIGABORT SIGTHR |
# define SIGABORT SIGTHR |
# endif |
# endif |
// Arręt d'un processus fils depuis autre chose que STOP |
// 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 |
# define SIGFABORT SIGINFO |
# else |
# else |
# define SIGFABORT SIGPOLL |
# define SIGFABORT SIGPOLL |
# endif |
# endif |
|
|
|
# define SIGTEST SIGILL |
|
|
// Nombre d'interruptions disponibles |
// Nombre d'interruptions disponibles |
# define d_NOMBRE_INTERRUPTIONS 64 |
# define d_NOMBRE_INTERRUPTIONS 64 |
#endif |
#endif |
Line 392 typedef unsigned char t_8_bits;
|
Line 394 typedef unsigned char t_8_bits;
|
extern jmp_buf contexte_processus; |
extern jmp_buf contexte_processus; |
extern jmp_buf contexte_thread; |
extern jmp_buf contexte_thread; |
|
|
|
extern int signal_test; |
|
|
|
extern pid_t pid_processus_pere; |
|
|
# ifdef SEMAPHORES_NOMMES |
# ifdef SEMAPHORES_NOMMES |
extern pthread_mutex_t mutex_sem; |
extern pthread_mutex_t mutex_sem; |
# endif |
# endif |
Line 434 typedef unsigned char t_8_bits;
|
Line 440 typedef unsigned char t_8_bits;
|
jmp_buf contexte_processus; |
jmp_buf contexte_processus; |
jmp_buf contexte_thread; |
jmp_buf contexte_thread; |
|
|
|
int signal_test; |
|
|
|
pid_t pid_processus_pere; |
|
|
# ifdef SEMAPHORES_NOMMES |
# ifdef SEMAPHORES_NOMMES |
pthread_mutex_t mutex_sem = PTHREAD_MUTEX_INITIALIZER; |
pthread_mutex_t mutex_sem = PTHREAD_MUTEX_INITIALIZER; |
# endif |
# endif |
Line 1849 typedef struct processus
|
Line 1859 typedef struct processus
|
# define RTLD_LOCAL 0 |
# define RTLD_LOCAL 0 |
# endif |
# endif |
|
|
|
int signal; |
|
pid_t origine_signal; |
|
logical1 signal_a_traiter; |
|
|
/* Contextes */ |
/* Contextes */ |
|
|
struct_liste_chainee *l_base_pile_contextes; |
struct_liste_chainee *l_base_pile_contextes; |
Line 2955 void retrait_thread_surveillance(struct_
|
Line 2969 void retrait_thread_surveillance(struct_
|
struct_descripteur_thread *s_argument_thread); |
struct_descripteur_thread *s_argument_thread); |
void rplcore(struct_processus *s_etat_processus); |
void rplcore(struct_processus *s_etat_processus); |
void scrutation_injection(struct_processus *s_etat_processus); |
void scrutation_injection(struct_processus *s_etat_processus); |
|
void scrutation_interruptions(struct_processus *s_etat_processus); |
void sf(struct_processus *s_etat_processus, unsigned char indice_drapeau); |
void sf(struct_processus *s_etat_processus, unsigned char indice_drapeau); |
void *surveillance_processus(void *argument); |
void *surveillance_processus(void *argument); |
void swap(void *variable_1, void *variable_2, unsigned long taille_octets); |
void swap(void *variable_1, void *variable_2, unsigned long taille_octets); |