File locking

Michalis Kabrianis kabrianis at hellug.gr
Sat Aug 26 14:00:44 EEST 2000


On 26-Aug-99 Mavroyanopoulos Nikos wrote:
> On Wed, Aug 25, 1999 at 06:36:34PM +0300, Bassoukos Tassos wrote:
> 
>> Katarxhn, as arxisoume apo ta apla, giati me mperdepses ligo: xwris kernel
>> modification den yparxei 'mandatory' locking, dhladh ena non-locking-aware
>> programma mporei kallista na paei kai na grapsei panw se locked
>> arxeia/perioxes arxeiwn, kai sy to mono pou mporeis na kaneis einai na
>> alla3eis ta permissions tou arxeiou se -w[0] ... 
> 
> Sto /usr/src/linux/Documentation/mandatory.txt perigrafei ton tropo
> gia mandatory locking. Stin flock pragmati den yparxei mandatory, alla
> stis fcntl/lockf prepei na doulevei.
> 

Fobamai oti ayto to implementation pou perigrafetai ekei mesa, den einai kai
poly portable (ews katholou tha elega), pragma pou me endiaferei para poly. Ase
de pou i Perl, otan blepei mia flock() prospathei na brei tin flock(), tin
fcntl() i tin lockf() me ayti ti seira, sto systima sou. An brei kapoia,
stamataei na psaxnei. An den brei kamia bgazei minima lathous. H oli ypothesi
einai oti mporeis na kaleseis tin flock i tin fcntl alla oxi tin lockf apo perl
(ektos an kati mou ksefyge sta manuals, pou tha ta ksanakoitaksw).

Einai kalo pantws na kseroume oti gia linux-programmata se C mporei na ginei
mandatory locking.

>> Tassos
>> -- 
>> Bassoukos Tassos   +30 31 996011 / +30 93 7109954
>>  Computer Shaman and Informatics Thaumaturge
> 
> -- 
> Nikos Mavroyanopoulos
> mailto:nmav at hellug.gr
> I'm not rude, I'm "attitudinally challenged".
> --

Michalis Kabrianis
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list