version 1.1, 2010/01/26 15:22:44
|
version 1.14, 2010/08/26 19:07:39
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.9 |
RPL/2 (R) version 4.0.19 |
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 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
/* |
/* |
Line 716 instruction_lock(struct_processus *s_eta
|
Line 716 instruction_lock(struct_processus *s_eta
|
|
|
struct flock lock; |
struct flock lock; |
|
|
|
struct_descripteur_fichier *fichier; |
|
|
struct_objet *s_objet_argument_1; |
struct_objet *s_objet_argument_1; |
struct_objet *s_objet_argument_2; |
struct_objet *s_objet_argument_2; |
|
|
Line 811 instruction_lock(struct_processus *s_eta
|
Line 813 instruction_lock(struct_processus *s_eta
|
|
|
free(chaine); |
free(chaine); |
|
|
if ((descripteur = descripteur_fichier(s_etat_processus, |
if ((fichier = descripteur_fichier(s_etat_processus, |
(struct_fichier *) (*s_objet_argument_2).objet)) == NULL) |
(struct_fichier *) (*s_objet_argument_2).objet)) == NULL) |
{ |
{ |
return; |
return; |
} |
} |
|
|
|
descripteur = (*fichier).descripteur_c; |
|
|
if (fcntl(fileno(descripteur), F_SETLK, &lock) == -1) |
if (fcntl(fileno(descripteur), F_SETLK, &lock) == -1) |
{ |
{ |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |