Subject: misc/4369: fcntl() file locking doesn't behave as documented
To: None <firstname.lastname@example.org>
From: Peter Simons <email@example.com>
Date: 10/28/1997 09:54:10
>Synopsis: fcntl() file locking doesn't behave as documented
>Responsible: misc-bug-people (Misc Bug People)
>Arrival-Date: Tue Oct 28 01:05:03 1997
>Originator: Peter Simons
System: NetBSD ohura-main.cys.de 1.2.1 NetBSD 1.2.1 (OHURA) #3: Tue Aug 26 03:05:08 MET DST 1997 firstname.lastname@example.org:/usr/src/sys/arch/i386/compile/OHURA i386
The man file for fcntl() says that the routine would return
EACCES in case you're trying to lock an already locked file.
In fact, the returned code in errno is an EAGAIN, though.
Change the code or the man file. :-)