version 1.1, 2011/12/05 19:35:54
|
version 1.3, 2011/12/05 19:49:41
|
Line 38
|
Line 38
|
void |
void |
instruction_poll(struct_processus *s_etat_processus) |
instruction_poll(struct_processus *s_etat_processus) |
{ |
{ |
|
int erreur; |
int ios; |
int ios; |
int timeout; |
int timeout; |
|
|
Line 76 instruction_poll(struct_processus *s_eta
|
Line 77 instruction_poll(struct_processus *s_eta
|
printf(" Usage:\n\n"); |
printf(" Usage:\n\n"); |
} |
} |
|
|
printf(" FILE { \"POLLIN\" \"POLLOUT\" } TIMEOUT POLL\n"); |
printf(" FILE { \"POLLIN\" \"POLLOUT\" } TIMEOUT POLL\n\n"); |
printf(" 3: %s, %s\n", d_SCK, d_FCH); |
printf(" 3: %s, %s\n", d_SCK, d_FCH); |
printf(" 2: %s\n", d_LST); |
printf(" 2: %s\n", d_LST); |
printf(" 1: %s, %s\n", d_INT, d_REL); |
printf(" 1: %s, %s\n", d_INT, d_REL); |
Line 108 instruction_poll(struct_processus *s_eta
|
Line 109 instruction_poll(struct_processus *s_eta
|
if (depilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
if (depilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
&s_objet_argument_2) == d_erreur) |
&s_objet_argument_2) == d_erreur) |
{ |
{ |
liberation(s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
|
|
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
return; |
return; |
Line 117 instruction_poll(struct_processus *s_eta
|
Line 118 instruction_poll(struct_processus *s_eta
|
if (depilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
if (depilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
&s_objet_argument_3) == d_erreur) |
&s_objet_argument_3) == d_erreur) |
{ |
{ |
liberation(s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
|
|
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
return; |
return; |
Line 175 instruction_poll(struct_processus *s_eta
|
Line 176 instruction_poll(struct_processus *s_eta
|
{ |
{ |
s_poll.events |= POLLIN; |
s_poll.events |= POLLIN; |
} |
} |
else (strcmp(registre, "POLLOUT") == 0) |
else if (strcmp(registre, "POLLOUT") == 0) |
{ |
{ |
s_poll.events |= POLLOUT; |
s_poll.events |= POLLOUT; |
} |
} |