Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document l_type usage explicitly; fixes PR misc...
details: https://anonhg.NetBSD.org/src/rev/614807ea5c18
branches: trunk
changeset: 509476:614807ea5c18
user: kleink <kleink%NetBSD.org@localhost>
date: Sat May 05 19:48:04 2001 +0000
description:
Document l_type usage explicitly; fixes PR misc/10325.
diffstat:
lib/libc/sys/fcntl.2 | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 2d248ff494e9 -r 614807ea5c18 lib/libc/sys/fcntl.2
--- a/lib/libc/sys/fcntl.2 Sat May 05 19:21:40 2001 +0000
+++ b/lib/libc/sys/fcntl.2 Sat May 05 19:48:04 2001 +0000
@@ -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 @@
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 @@
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)
Home |
Main Index |
Thread Index |
Old Index