Re: [fpc-pascal] File region locking unde Linux

2009-05-04 Thread Jonas Maebe
On 04 May 2009, at 09:35, ajv wrote: Thank you very much for the research you have done on this subject. I was unaware of the power of strace, I have never used this application, I will go into it. I see your name in the referred bug, I think you are the maintainer of this subject? Not re

Re: [fpc-pascal] File region locking unde Linux

2009-05-04 Thread ajv
Dear Jonas Maebe, Thank you very much for the research you have done on this subject. I was unaware of the power of strace, I have never used this application, I will go into it. I see your name in the referred bug, I think you are the maintainer of this subject? Do I have to report this as a

Re: [fpc-pascal] File region locking unde Linux

2009-05-03 Thread Jonas Maebe
On 03 May 2009, at 14:51, Jonas Maebe wrote: On 03 May 2009, at 14:09, ajv wrote: With Region Do Begin l_type := F_WRLCK; l_whence := SEEK_SET; l_start := 10; l_len:= 20 End; If FpFcntl (F, F_SETLK, Region) = -1 Then WriteLn ('unable to apply writelock'

Re: [fpc-pascal] File region locking unde Linux

2009-05-03 Thread Jonas Maebe
On 03 May 2009, at 14:09, ajv wrote: With Region Do Begin l_type := F_WRLCK; l_whence := SEEK_SET; l_start := 10; l_len:= 20 End; If FpFcntl (F, F_SETLK, Region) = -1 Then WriteLn ('unable to apply writelock'); // <-- OK Sleep (2);

[fpc-pascal] File region locking unde Linux

2009-05-03 Thread ajv
I have a problem with file region locking under Linux. First I start setup to create a file and writelock range 10..30 -- program setup; {$mode delphi}{$H+} Usescthreads, Classes, SysUtils, BaseUnix; Const Fn = '/home/anthon