diff options
Diffstat (limited to 'usr/src/man/man3c/lockf.3c')
-rw-r--r-- | usr/src/man/man3c/lockf.3c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/src/man/man3c/lockf.3c b/usr/src/man/man3c/lockf.3c index 3b698f60a7..818dab24a2 100644 --- a/usr/src/man/man3c/lockf.3c +++ b/usr/src/man/man3c/lockf.3c @@ -1,4 +1,5 @@ '\" te +.\" Copyright 2015 Joyent, Inc. .\" Copyright 1989 AT&T Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. @@ -7,9 +8,9 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH LOCKF 3C "May 27, 2014" +.TH LOCKF 3C "Feb 16, 2015" .SH NAME -lockf \- record locking on files +lockf \- POSIX-style record locking on files .SH SYNOPSIS .LP .nf @@ -22,7 +23,7 @@ lockf \- record locking on files .sp .LP The \fBlockf()\fR function allows sections of a file to be locked; advisory or -mandatory write locks depending on the mode bits of the file (see +mandatory write locks depending on the mode bits of the file (see \fBchmod\fR(2)). Calls to \fBlockf()\fR from other threads that attempt to lock the locked file section will either return an error value or be put to sleep until the resource becomes unlocked. All the locks for a process are removed @@ -54,10 +55,10 @@ All other values of \fIfunction\fR are reserved for future extensions and will result in an error if not implemented. .sp .LP -\fBF_TEST\fR is used to detect if a lock by another process is present on the -specified section. \fBF_LOCK\fR and \fBF_TLOCK\fR both lock a section of a file -if the section is available. \fBF_ULOCK\fR removes locks from a section of the -file. +\fBF_TEST\fR is used to detect if a lock by another process or open file handle +is present on the specified section. \fBF_LOCK\fR and \fBF_TLOCK\fR both lock +a section of a file if the section is available. \fBF_ULOCK\fR removes locks +from a section of the file. .sp .LP The \fIsize\fR argument is the number of contiguous bytes to be locked or |