version 1.6, 2010/03/06 18:29:07
|
version 1.12, 2010/04/21 13:45:48
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.12 |
RPL/2 (R) version 4.0.15 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 1017 instruction_open(struct_processus *s_eta
|
Line 1017 instruction_open(struct_processus *s_eta
|
"\"file name\" } \"protection\" } OPEN\n"); |
"\"file name\" } \"protection\" } OPEN\n"); |
printf(" { \"sockettype\" { \"name\" \"local name\" } } OPEN\n"); |
printf(" { \"sockettype\" { \"name\" \"local name\" } } OPEN\n"); |
printf(" { \"sockettype\" \"socketdomain\" \"protection\" } OPEN\n"); |
printf(" { \"sockettype\" \"socketdomain\" \"protection\" } OPEN\n"); |
|
printf(" \"/semaphore\" OPEN\n"); |
|
|
printf(" File type : NEW/OLD/REPLACE/UNKNOWN/SCRATCH\n"); |
printf(" File type : NEW/OLD/REPLACE/UNKNOWN/SCRATCH\n"); |
printf(" File access : SEQUENTIAL/DIRECT/KEYED\n"); |
printf(" File access : SEQUENTIAL/DIRECT/KEYED\n"); |
Line 2649 instruction_open(struct_processus *s_eta
|
Line 2650 instruction_open(struct_processus *s_eta
|
} |
} |
|
|
if (((type_acces != 'I') && (position_clef != 0)) || |
if (((type_acces != 'I') && (position_clef != 0)) || |
((type_acces == 'I') && (position_clef == 0))) |
((type_acces == 'I') && (position_clef == 0) && |
|
((type_ouverture == 'N') || (type_ouverture == 'R') || |
|
(type_ouverture == 'S')))) |
{ |
{ |
liberation(s_etat_processus, s_objet_argument); |
liberation(s_etat_processus, s_objet_argument); |
|
|
Line 2820 instruction_open(struct_processus *s_eta
|
Line 2823 instruction_open(struct_processus *s_eta
|
} |
} |
else |
else |
{ |
{ |
|
if (position_clef == 0) |
|
{ |
|
free(nom); |
|
|
|
liberation(s_etat_processus, s_objet_argument); |
|
liberation(s_etat_processus, s_objet_resultat); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_parametre_fichier; |
|
return; |
|
} |
|
|
if (initialisation_fichier_acces_indexe( |
if (initialisation_fichier_acces_indexe( |
s_etat_processus, sqlite, |
s_etat_processus, sqlite, position_clef, |
(format == 'N') ? d_faux : d_vrai) |
(format == 'N') ? d_faux : d_vrai) |
!= d_absence_erreur) |
!= d_absence_erreur) |
{ |
{ |
Line 3056 instruction_open(struct_processus *s_eta
|
Line 3071 instruction_open(struct_processus *s_eta
|
} |
} |
else |
else |
{ |
{ |
|
if (position_clef == 0) |
|
{ |
|
free(nom); |
|
|
|
liberation(s_etat_processus, s_objet_argument); |
|
liberation(s_etat_processus, s_objet_resultat); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_parametre_fichier; |
|
return; |
|
} |
|
|
if (initialisation_fichier_acces_indexe( |
if (initialisation_fichier_acces_indexe( |
s_etat_processus, sqlite, |
s_etat_processus, sqlite, position_clef, |
(format == 'N') ? d_faux : d_vrai) |
(format == 'N') ? d_faux : d_vrai) |
!= d_absence_erreur) |
!= d_absence_erreur) |
{ |
{ |
Line 3154 instruction_open(struct_processus *s_eta
|
Line 3181 instruction_open(struct_processus *s_eta
|
} |
} |
else |
else |
{ |
{ |
|
if (position_clef == 0) |
|
{ |
|
free(nom); |
|
|
|
liberation(s_etat_processus, |
|
s_objet_argument); |
|
liberation(s_etat_processus, |
|
s_objet_resultat); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_parametre_fichier; |
|
return; |
|
} |
|
|
if (initialisation_fichier_acces_indexe( |
if (initialisation_fichier_acces_indexe( |
s_etat_processus, sqlite, |
s_etat_processus, sqlite, position_clef, |
(format == 'N') ? d_faux : d_vrai) |
(format == 'N') ? d_faux : d_vrai) |
!= d_absence_erreur) |
!= d_absence_erreur) |
{ |
{ |
Line 3309 instruction_open(struct_processus *s_eta
|
Line 3350 instruction_open(struct_processus *s_eta
|
} |
} |
} |
} |
else |
else |
{ |
{ |
|
if (position_clef == 0) |
|
{ |
|
free(nom); |
|
|
|
liberation(s_etat_processus, s_objet_argument); |
|
liberation(s_etat_processus, s_objet_resultat); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_parametre_fichier; |
|
return; |
|
} |
|
|
if (initialisation_fichier_acces_indexe( |
if (initialisation_fichier_acces_indexe( |
s_etat_processus, sqlite, |
s_etat_processus, sqlite, position_clef, |
(format == 'N') ? d_faux : d_vrai) |
(format == 'N') ? d_faux : d_vrai) |
!= d_absence_erreur) |
!= d_absence_erreur) |
{ |
{ |
Line 4029 instruction_open(struct_processus *s_eta
|
Line 4082 instruction_open(struct_processus *s_eta
|
strcpy((*((struct_socket *) (*s_objet_resultat).objet)). |
strcpy((*((struct_socket *) (*s_objet_resultat).objet)). |
type, "ROBUST DATAGRAM"); |
type, "ROBUST DATAGRAM"); |
break; |
break; |
|
|
|
default : |
|
BUG(1, printf("type_socket=%c\n", type_socket)); |
|
break; |
} |
} |
|
|
if ((protection != 'N') && ((type_socket != 'S') && |
if ((protection != 'N') && ((type_socket != 'S') && |