- This is a bug?
- both functions ought work equal? Why?
The POSIX
open function (which is provided by
FpOpen) does not deal with locking, however the
FileOpen API requires handling of locking. However on *nix locking is advisory, not mandatory like it is on Windows, thus you can't open a file that's been opened with
FileOpen with another
FileOpen, but with
FpOpen directly this locking mechanism isn't involved. If you want to have shared access to files using
FileOpen you need to pass
fmShareDenyNone as flag to the
FileOpen function.