Many thanks Przemek.
Brgds,
Viktor
On Sun, Feb 22, 2009 at 11:51 AM, Przemyslaw Czerpak <[email protected]>wrote:
> On Sat, 21 Feb 2009, Szak�ts Viktor wrote:
>
> Hi,
>
> > I've run into a problem on Linux/Darwin, this code behaves differently:
> > PROC MAIN()
> > dbCreate( "test.dbf", {{ "ID", "C", 10, 0 }})
> > dbUseArea( .T., NIL, "test.dbf", "w_TEST", .T., .T. ) /* SHARED,
> READONLY
> > */
> > ? FLock()
> > Clipper on Windows: .T.
> > Harbour on Windows: .T.
> > Harbour on Linux: .F.
> > Harbour on Darwin: .F.
> > If I remove the READONLY flag, it works the same way on all above.
> > Is this normal platform difference, or something Harbour related?
>
> In POSIX systems it's not possible to set exclusive (write) lock on files
> open in read only mode.
> FLOCK/RLOCK need exclusive locks.
>
> best regards,
> Przemek
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour