Page MenuHomeFreeBSD

D50519.diff
No OneTemporary

D50519.diff

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

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)

Event Timeline