version 1.75, 2013/03/10 17:01:05
|
version 1.77, 2013/03/11 15:41:06
|
Line 1310 instruction_write(struct_processus *s_et
|
Line 1310 instruction_write(struct_processus *s_et
|
if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
== 'S') |
== 'S') |
{ |
{ |
|
if ((*s_objet_argument_2).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_2, (*((struct_fichier *) |
s_objet_argument_2, (*((struct_fichier *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
Line 1344 instruction_write(struct_processus *s_et
|
Line 1354 instruction_write(struct_processus *s_et
|
else if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
else if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
== 'D') |
== 'D') |
{ |
{ |
|
if ((*s_objet_argument_2).type != INT) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
|
if (depilement(s_etat_processus, &((*s_etat_processus) |
|
.l_base_pile), &s_objet_argument_3) == d_erreur) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
|
return; |
|
} |
|
|
|
if ((*s_objet_argument_3).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_3); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_2, (*((struct_fichier *) |
s_objet_argument_2, (*((struct_fichier *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
Line 1357 instruction_write(struct_processus *s_et
|
Line 1395 instruction_write(struct_processus *s_et
|
} |
} |
else // Fichiers indexés |
else // Fichiers indexés |
{ |
{ |
|
if ((*s_objet_argument_2).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_2, (*((struct_fichier *) |
s_objet_argument_2, (*((struct_fichier *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
Line 1597 instruction_write(struct_processus *s_et
|
Line 1645 instruction_write(struct_processus *s_et
|
* Sockets non formatées |
* Sockets non formatées |
*/ |
*/ |
|
|
chaine = NULL; |
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_socket *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite, d_faux)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
} |
} |
else |
else |
{ |
{ |