Mail Archives: djgpp-workers/2000/12/01/09:35:28
> Anyone out there who can tell how does fcntl locking support files larger
> than 2GB on Unix or GNU/Linux systems?
On Solaris, an except of the man page of fcntl:
The following commands are available for advisory record
locking. Record locking is supported for regular files, and
may be supported for other files.
F_GETLK Get the first lock which blocks the lock
description pointed to by the third argument,
arg, taken as a pointer to type struct flock,
defined in <fcntl.h>. The information
retrieved overwrites the information passed
to fcntl() in the structure flock. If no
lock is found that would prevent this lock
from being created, then the structure will
be left unchanged except for the lock type
which will be set to F_UNLCK.
F_GETLK64 Equivalent to F_GETLK, but takes a struct
flock64 argument rather than a struct flock
argument.
Likewise for F_SETLK and F_SETLKW.
Right,
MartinS
- Raw text -