Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2021 01:00:59 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ba6f5ed72edd - stable/13 - fcntl(2): be more precise about third arg type
Message-ID:  <202112130100.1BD10xJV010256@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba6f5ed72edd9c61ff313e8fb11f29ddcd438a35

commit ba6f5ed72edd9c61ff313e8fb11f29ddcd438a35
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-06 20:14:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-13 00:58:22 +0000

    fcntl(2): be more precise about third arg type
    
    (cherry picked from commit 97722455cce4f8398f6411eaaa80d595dcb5fb3c)
---
 lib/libc/sys/fcntl.2 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index c0a13ee6df18..d6d48f7a4797 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -53,7 +53,11 @@ Depending on the value of
 .Fa cmd ,
 .Fn fcntl
 can take an additional third argument
-.Fa "long arg" .
+.Fa arg .
+Unless otherwise noted below for a specific operation,
+.Fa arg
+has type
+.Vt int .
 .Bl -tag -width F_DUP2FD_CLOEXEC
 .It Dv F_DUPFD
 Return a new descriptor as follows:
@@ -286,7 +290,7 @@ and
 will fail and return
 .Dv EINVAL .
 .Pp
-Several commands are available for doing advisory file locking;
+Several operations are available for doing advisory file locking;
 they all operate on the following structure:
 .Bd -literal
 struct flock {
@@ -298,6 +302,10 @@ struct flock {
 	int	l_sysid;	/* remote system id or zero for local */
 };
 .Ed
+These advisory file locking operations take a pointer to
+.Vt struct flock
+as the third argument
+.Fa arg .
 The commands available for advisory record locking are as follows:
 .Bl -tag -width F_SETLKWX
 .It Dv F_GETLK



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112130100.1BD10xJV010256>