summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/lockf.3
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-09-12 00:53:38 +0000
committerbdrewery <bdrewery@FreeBSD.org>2013-09-12 00:53:38 +0000
commitb3237a11f6bed062af5f93c71908030b767e256c (patch)
tree80119352dfee4aa2457193163f658d4e3f7d0a92 /lib/libc/gen/lockf.3
parentd9412a6c2df8ef63cd5411ed888c7458f2929719 (diff)
downloadFreeBSD-src-b3237a11f6bed062af5f93c71908030b767e256c.zip
FreeBSD-src-b3237a11f6bed062af5f93c71908030b767e256c.tar.gz
Consistently reference file descriptors as "fd". 55 other manpages
used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij)
Diffstat (limited to 'lib/libc/gen/lockf.3')
-rw-r--r--lib/libc/gen/lockf.312
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/lockf.3 b/lib/libc/gen/lockf.3
index d9350d1..a4adcfa 100644
--- a/lib/libc/gen/lockf.3
+++ b/lib/libc/gen/lockf.3
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 19, 1997
+.Dd September 11, 2013
.Dt LOCKF 3
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.In unistd.h
.Ft int
-.Fn lockf "int filedes" "int function" "off_t size"
+.Fn lockf "int fd" "int function" "off_t size"
.Sh DESCRIPTION
The
.Fn lockf
@@ -52,7 +52,7 @@ either return an error value or block until the section becomes unlocked.
All the locks for a process are removed when the process terminates.
.Pp
The argument
-.Fa filedes
+.Fa fd
is an open file descriptor.
The file descriptor must have been opened either for write-only
.Dv ( O_WRONLY )
@@ -207,7 +207,7 @@ or
and the section is already locked by another process.
.It Bq Er EBADF
The argument
-.Fa filedes
+.Fa fd
is not a valid open file descriptor.
.Pp
The argument
@@ -217,7 +217,7 @@ is
or
.Dv F_TLOCK ,
and
-.Fa filedes
+.Fa fd
is not a valid file descriptor open for writing.
.It Bq Er EDEADLK
The argument
@@ -243,7 +243,7 @@ or
.Dv F_TEST .
.Pp
The argument
-.Fa filedes
+.Fa fd
refers to a file that does not support locking.
.It Bq Er ENOLCK
The argument
OpenPOWER on IntegriCloud