fcntl(2): be more precise about third arg type
Also use the term operation consistently, over the command. Reviewed by: emaste, jhb, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33277
This commit is contained in:
parent
e3044071de
commit
97722455cc
@ -53,7 +53,11 @@ Depending on the value of
|
|||||||
.Fa cmd ,
|
.Fa cmd ,
|
||||||
.Fn fcntl
|
.Fn fcntl
|
||||||
can take an additional third argument
|
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
|
.Bl -tag -width F_DUP2FD_CLOEXEC
|
||||||
.It Dv F_DUPFD
|
.It Dv F_DUPFD
|
||||||
Return a new descriptor as follows:
|
Return a new descriptor as follows:
|
||||||
@ -286,7 +290,7 @@ and
|
|||||||
will fail and return
|
will fail and return
|
||||||
.Dv EINVAL .
|
.Dv EINVAL .
|
||||||
.Pp
|
.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:
|
they all operate on the following structure:
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
struct flock {
|
struct flock {
|
||||||
@ -298,6 +302,10 @@ struct flock {
|
|||||||
int l_sysid; /* remote system id or zero for local */
|
int l_sysid; /* remote system id or zero for local */
|
||||||
};
|
};
|
||||||
.Ed
|
.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:
|
The commands available for advisory record locking are as follows:
|
||||||
.Bl -tag -width F_SETLKWX
|
.Bl -tag -width F_SETLKWX
|
||||||
.It Dv F_GETLK
|
.It Dv F_GETLK
|
||||||
|
Loading…
Reference in New Issue
Block a user