version 1.3, 2011/12/05 19:49:41
|
version 1.7, 2012/03/01 10:14:07
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.5 |
RPL/2 (R) version 4.1.7 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 131 instruction_poll(struct_processus *s_eta
|
Line 131 instruction_poll(struct_processus *s_eta
|
if ((*s_objet_argument_3).type == SCK) |
if ((*s_objet_argument_3).type == SCK) |
{ |
{ |
s_poll.fd = (*((struct_socket *) |
s_poll.fd = (*((struct_socket *) |
(*s_objet_argument_1).objet)).socket; |
(*s_objet_argument_3).objet)).socket; |
} |
} |
else |
else |
{ |
{ |
s_poll.fd = (*((struct_fichier *) |
s_poll.fd = (*((struct_fichier *) |
(*s_objet_argument_1).objet)).descripteur; |
(*s_objet_argument_3).objet)).descripteur; |
} |
} |
|
|
if ((*s_objet_argument_2).type != LST) |
if ((*s_objet_argument_2).type != LST) |
Line 219 instruction_poll(struct_processus *s_eta
|
Line 219 instruction_poll(struct_processus *s_eta
|
return; |
return; |
} |
} |
|
|
if ((s_objet_resultat = allocation(s_etat_processus, INT)) == NULL) |
|
{ |
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
|
return; |
|
} |
|
|
|
do |
do |
{ |
{ |
drapeau = d_vrai; |
drapeau = d_vrai; |
Line 255 instruction_poll(struct_processus *s_eta
|
Line 249 instruction_poll(struct_processus *s_eta
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_3); |
liberation(s_etat_processus, s_objet_argument_3); |
liberation(s_etat_processus, s_objet_resultat); |
|
|
|
(*s_etat_processus).erreur_execution = |
(*s_etat_processus).erreur_execution = |
d_ex_erreur_acces_fichier; |
d_ex_erreur_acces_fichier; |
Line 292 instruction_poll(struct_processus *s_eta
|
Line 285 instruction_poll(struct_processus *s_eta
|
} |
} |
} while(drapeau == d_faux); |
} while(drapeau == d_faux); |
|
|
|
if ((s_objet_resultat = allocation(s_etat_processus, INT)) == NULL) |
|
{ |
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
|
return; |
|
} |
|
|
if (ios > 0) |
if (ios > 0) |
{ |
{ |
// Sortie sur un événement |
// Sortie sur un événement |