Document l_type usage explicitly; fixes PR misc/10325.

This commit is contained in:
kleink 2001-05-05 19:48:04 +00:00
parent 1f64ac01a4
commit f020111f1c
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: fcntl.2,v 1.18 1999/12/02 21:42:36 kleink Exp $
.\" $NetBSD: fcntl.2,v 1.19 2001/05/05 19:48:04 kleink Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@ -33,7 +33,7 @@
.\"
.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94
.\"
.Dd January 12, 1994
.Dd May 5, 2001
.Dt FCNTL 2
.Os
.Sh NAME
@ -190,7 +190,9 @@ in the
structure.
If no lock is found that would prevent this lock from being created,
the structure is left unchanged by this function call except for the
lock type which is set to
lock type
.Fa l_type ,
which is set to
.Dv F_UNLCK .
.It Dv F_SETLK
Set or clear a file segment lock according to the lock description
@ -199,6 +201,8 @@ pointed to by the third argument,
taken as a pointer to a
.Fa "struct flock"
(see above).
As specified by the value of
.Fa l_type ,
.Dv F_SETLK
is used to establish shared (or read) locks
.Dv (F_RDLCK)