Try to make man page refelect reality. EINVAL for "operation" argument,

EOPNOTSUPP for an fd not talking about a v-node (file in man page).
Closes PR2602.
This commit is contained in:
phil 1997-07-17 18:20:48 +00:00
parent b1bfdee5fe
commit f7b40c4b07
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: flock.2,v 1.5 1995/02/27 12:32:32 cgd Exp $
.\" $NetBSD: flock.2,v 1.6 1997/07/17 18:20:48 phil Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -129,10 +129,18 @@ option was specified.
The argument
.Fa fd
is an invalid descriptor.
.It Bq Er EINVAL
.It Bq Er EOPNOTSUPP
The argument
.Fa fd
refers to an object other than a file.
.It Bq Er EINVAL
The argument
.Fa operation
does not include one of
.Dv LOCK_EX ,
.Dv LOCK_SH
or
.Dv LOCK_UN .
.El
.Sh SEE ALSO
.Xr open 2 ,