Subject: file-locking with fcntl() "broken"?
To: None <port-i386@NetBSD.ORG>
From: Peter Simons <simons@rhein.de>
List: port-i386
Date: 10/25/1997 17:46:53
-----BEGIN PGP SIGNED MESSAGE-----

Hi,

while writing some file locking code with fcntl() on NetBSD/i386 1.2,
I was astonished to realize that fcntl does not set errno to EACCES if
the file is locked already, as documented in the man page, but sets it
to EAGAIN.

While I think both return codes in errno are sane, fcntl() should
certainly set these things the way it is documented. :-)

Is this a known bug? Did I misunderstand something? Should I file a
PR?

	-peter

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQCVAwUBNFIifA9HL1s0103BAQGs3QP/WR3mNax4GOVTD/mqnt6+7lGRWahMShU5
15jCq+Pa5yHuT5jFFgjEfnB9OJgqWhi5ZqlpOcFRZZ36WYR/namMelNZCDJKM8VS
rQucQltwcf56dHg10dpbhsLwkEgbj8GwAMokne+gKTpYP1eL1bd9T2inOBPCDfey
Ys4cCgap2xs=
=LuDZ
-----END PGP SIGNATURE-----