Mail Archives: djgpp-workers/2000/12/04/06:13:13
On Sat, 2 Dec 2000, Peter J. Farley III wrote:
> So to use these enhanced functions, programmers will use 64-bit values
> in 64-bit structures that parallel the current 32-bit ones, right?
Yes.
> But
> since fcntl uses a vararg plist, they will *not* have to use fcntl64 to
> utilize the new functions, just pass an appropriate command and an
> flock64 structure to the existing fcntl.
Right. When using F_SETLK, the third argument to fcntl should be a
pointer to a struct flock; when using F_SETLK64, it should be a
pointer to a struct flock64.
> And the new flock function should also use these new arguments, to
> support 4GB files?
Correct.
- Raw text -