version 1.113, 2011/08/30 14:19:28
|
version 1.117, 2011/09/08 15:24:25
|
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 |
Line 389 typedef unsigned char t_8_bits;
|
Line 389 typedef unsigned char t_8_bits;
|
|
|
extern jmp_buf contexte; |
extern jmp_buf contexte; |
extern jmp_buf contexte_initial; |
extern jmp_buf contexte_initial; |
|
extern jmp_buf contexte_processus; |
|
extern jmp_buf contexte_thread; |
|
|
# ifdef SEMAPHORES_NOMMES |
# ifdef SEMAPHORES_NOMMES |
extern pthread_mutex_t mutex_sem; |
extern pthread_mutex_t mutex_sem; |
Line 429 typedef unsigned char t_8_bits;
|
Line 431 typedef unsigned char t_8_bits;
|
|
|
jmp_buf contexte; |
jmp_buf contexte; |
jmp_buf contexte_initial; |
jmp_buf contexte_initial; |
|
jmp_buf contexte_processus; |
|
jmp_buf contexte_thread; |
|
|
# ifdef SEMAPHORES_NOMMES |
# ifdef SEMAPHORES_NOMMES |
pthread_mutex_t mutex_sem = PTHREAD_MUTEX_INITIALIZER; |
pthread_mutex_t mutex_sem = PTHREAD_MUTEX_INITIALIZER; |
Line 1798 typedef struct processus
|
Line 1802 typedef struct processus
|
|
|
struct_liste_chainee *l_base_pile; |
struct_liste_chainee *l_base_pile; |
struct_liste_chainee *l_base_pile_last; |
struct_liste_chainee *l_base_pile_last; |
struct_liste_chainee *l_base_pile_undo; |
|
|
|
unsigned long hauteur_pile_operationnelle; |
unsigned long hauteur_pile_operationnelle; |
|
|
Line 2060 typedef struct processus
|
Line 2063 typedef struct processus
|
|
|
/* Traitement des erreurs */ |
/* Traitement des erreurs */ |
|
|
|
unsigned int compteur_violation_d_acces; |
unsigned int erreur_compilation; |
unsigned int erreur_compilation; |
unsigned int erreur_execution; |
unsigned int erreur_execution; |
unsigned int erreur_systeme; |
unsigned int erreur_systeme; |
Line 2771 void instruction_t_vers_l(struct_process
|
Line 2775 void instruction_t_vers_l(struct_process
|
|
|
void instruction_ucase(struct_processus *s_etat_processus); |
void instruction_ucase(struct_processus *s_etat_processus); |
void instruction_uchol(struct_processus *s_etat_processus); |
void instruction_uchol(struct_processus *s_etat_processus); |
void instruction_undo(struct_processus *s_etat_processus); |
|
void instruction_unlock(struct_processus *s_etat_processus); |
void instruction_unlock(struct_processus *s_etat_processus); |
void instruction_unprotect(struct_processus *s_etat_processus); |
void instruction_unprotect(struct_processus *s_etat_processus); |
void instruction_until(struct_processus *s_etat_processus); |
void instruction_until(struct_processus *s_etat_processus); |