Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102845496
D33277.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
970 B
Referenced Files
None
Subscribers
None
D33277.diff
View Options
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -53,7 +53,11 @@
.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 @@
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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 10:24 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14705703
Default Alt Text
D33277.diff (970 B)
Attached To
Mode
D33277: fcntl(2): add F_KINFO operation
Attached
Detach File
Event Timeline
Log In to Comment