Subject: misc/4369: fcntl() file locking doesn't behave as documented
To: None <gnats-bugs@gnats.netbsd.org>
From: Peter Simons <simons@ohura-main.cys.de>
List: netbsd-bugs
Date: 10/28/1997 09:54:10
>Number: 4369
>Category: misc
>Synopsis: fcntl() file locking doesn't behave as documented
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 28 01:05:03 1997
>Last-Modified:
>Originator: Peter Simons
>Organization:
>Release: 1.2
>Environment:
System: NetBSD ohura-main.cys.de 1.2.1 NetBSD 1.2.1 (OHURA) #3: Tue Aug 26 03:05:08 MET DST 1997 root@ohura-main.cys.de:/usr/src/sys/arch/i386/compile/OHURA i386
>Description:
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.
>How-To-Repeat:
>Fix:
Change the code or the man file. :-)
>Audit-Trail:
>Unformatted: