version 1.18, 2010/08/22 16:38:36
|
version 1.19, 2010/08/26 17:49:34
|
Line 241 localisation_courante(struct_processus *
|
Line 241 localisation_courante(struct_processus *
|
|
|
verrouillage_threads_concurrents(s_etat_processus); |
verrouillage_threads_concurrents(s_etat_processus); |
pid = fork(); |
pid = fork(); |
|
|
# ifdef OS2 |
|
if (pid == 0) |
|
{ |
|
sem_init(&semaphore_liste_threads, 0, 1); |
|
sem_init(&semaphore_gestionnaires_signaux, 0, 0); |
|
sem_init(&semaphore_gestionnaires_signaux_atomique, 0, 1); |
|
sem_init(&((*s_etat_processus).semaphore_fork), 0, 0); |
|
} |
|
# endif |
|
|
|
deverrouillage_threads_concurrents(s_etat_processus); |
deverrouillage_threads_concurrents(s_etat_processus); |
|
|
pthread_sigmask(SIG_SETMASK, &oldset, NULL); |
pthread_sigmask(SIG_SETMASK, &oldset, NULL); |
Line 814 tex_fprintf(struct_processus *s_etat_pro
|
Line 803 tex_fprintf(struct_processus *s_etat_pro
|
return(ios); |
return(ios); |
} |
} |
|
|
|
|
|
unsigned char * |
|
readline_wrapper(unsigned char *invite) |
|
{ |
|
unsigned char *chaine; |
|
unsigned char *i; |
|
|
|
chaine = readline(invite); |
|
printf("\r"); |
|
|
|
return(chaine); |
|
} |
|
|
|
|
#define fprintf NULL |
#define fprintf NULL |
#define printf NULL |
#define printf NULL |
|
|