logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wlock - Tests or sets a file with POSIX-fcntl() write-locks

Author

wlock has been written by Ulli Horlacher (framstag@belwue.de>.

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 ]

See Also