Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153242781
D50519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
464 B
Referenced Files
None
Subscribers
None
D50519.diff
View Options
diff --git a/lib/libsys/open.2 b/lib/libsys/open.2
--- a/lib/libsys/open.2
+++ b/lib/libsys/open.2
@@ -464,6 +464,14 @@
.Xr fstatat 2
and related syscalls.
.Pp
+And in reverse, a file descriptor
+.Dv fd
+referencing vnode can be converted
+to the
+.Dv O_PATH
+type of descriptor by using the following call
+.Dl opath_fd = openat(fd, \[dq]\[dq], O_EMPTY_PATH | O_PATH);
+.Pp
If successful,
.Fn open
returns a non-negative integer, termed a file descriptor.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 12:41 AM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31815897
Default Alt Text
D50519.diff (464 B)
Attached To
Mode
D50519: open.2: add a note about conversion of a file descriptor into O_PATH
Attached
Detach File
Event Timeline
Log In to Comment