wlock - Tests or sets a file with POSIX-fcntl() write-locks
Contents
Description
ThisprogramsetsortestsadvisorylocksconformingtoPOSIXfcntl() call. You may specify optionaly a
program to start it within the lock context.
Name
wlock - Tests or sets a file with POSIX-fcntl() write-locks
Options
These options are accepted. If a program is provided as argument wlock will start it.
-s Sets the lock.
-t Test the lock (default).
-v Verbose output.
-bbegin
The lock starts at byte #begin.
-llength
The lock will be length bytes long.
-aseconds
The lock is active for seconds (default=86400).
Return Values
0 In test mode this means that the file is locked. In set mode it indicates the succesful creation
of the lockfile
1 The file is not locked. Only available in testmode.
2 Some error has occurred.
See Also
sendfile(1). 19 March 1998 WLOCK(1)
Synopsis
wlock [ -s [-aseconds ]] [ -t] [ -v] [ -bbegin ] [ -llength ] file
or
wlock [ -s ] [ -v] [ -bbegin ] [ -llength ] fileprogram [ arguments ]
