[2052] in Athena Bugs
flock(2) man page
daemon@ATHENA.MIT.EDU (Michael S. Shanzer)
Thu Apr 6 16:40:15 1989
Date: Thu, 6 Apr 89 16:39:49 EDT
From: Michael S. Shanzer <shanzer@WOMBAT.MIT.EDU>
Reply-To: shanzer@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
[from the flock(2) man page]
ERRORS
The flock call fails if:
[EWOULDBLOCK] The file is locked and the LOCK_NB
option was specified.
[EBADF] The argument fd is an invalid descrip-
tor.
[EINVAL] The argument fd refers to an object
other than a file.
errno also get set to EINVAL if the "operation" is not valid...
Mike