--- rpl/src/rpl.h 2011/11/26 13:05:03 1.145 +++ rpl/src/rpl.h 2011/11/30 09:28:38 1.147 @@ -338,6 +338,7 @@ union semun // SIGTSTP // SIGCONT // SIGPIPE +// SIGUSR2 : utilisé pour faire un execve du processus sur lui-même # define SIGTEST SIGUSR1 @@ -2192,6 +2193,12 @@ typedef struct processus struct_liste_chainee *liste_mutexes; pthread_mutex_t protection_liste_mutexes; +/* Pointeurs nécessaire à RESTART */ + + int argv; + char *argc[]; + char *envp[]; + /* Gestion optimisée de la mémoire */ double estimation_taille_pile_tampon; @@ -3008,7 +3015,8 @@ complex16 sommation_vecteur_complexe(com */ #ifndef RPLARGS -int rplinit(int argc, char *argv[], unsigned char ***resultats, char *rpl_home); +int rplinit(int argc, char *argv[], char *envp[], + unsigned char ***resultats, char *rpl_home); #endif /* @@ -3121,6 +3129,8 @@ logical1 caracteristiques_fichier(struct unsigned long *unite); logical1 controle(struct_processus *s_etat_processus, unsigned char *fichier, unsigned char *type, unsigned char *somme_candidate); +logical1 controle_integrite(struct_processus *s_etat_processus, + unsigned char *executable_candidat, unsigned char *executable); logical1 creation_variable(struct_processus *s_etat_processus, struct_variable *s_variable, unsigned char autorisation_creation_variable_statique,