open.2: update description for O_PATH

- Add fstatfs(), fchdir(), fchroot(), extattr_*_fd(), cap_*_get(),
  cap_*_limit() to the list of syscalls that can take an O_PATH fd.
- Remove readlinkat() from the list, since it is already discussed
  in the first few lines of the paragraph.  It was originally added
  to the list when readlinkat() adds support for non-dir fd with
  an empty relative path (as if with AT_EMPTY_PATH), however,
  such use case is also discussed in the next paragraph.
- Add funlinkat() to the list, since it accepts an extra fd
  (of the file to be unlinked), which is worth extra mentioning.
- Fix a syntax issue which causes a bogus space to be rendered
  before a closing parentheses.

Signed-off-by: CismonX <admin@cismon.net>

Reviewed by:	markj, jhb
MFC after:	2 weeks
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1564
This commit is contained in:
CismonX
2025-01-03 18:52:34 +08:00
committed by Mark Johnston
parent 813f244b27
commit c814172896
+13 -1
View File
@@ -393,7 +393,12 @@ but advisory locking is not allowed
.It Xr dup 2 .It Xr dup 2
.It Xr close 2 .It Xr close 2
.It Xr fstat 2 .It Xr fstat 2
.It Xr fstatfs 2
.It Xr fchdir 2
.It Xr fchroot 2
.It Xr fexecve 2 .It Xr fexecve 2
.It Xr funlinkat 2
can be passed as the third argument
.It Dv SCM_RIGHTS .It Dv SCM_RIGHTS
can be passed over a can be passed over a
.Xr unix 4 .Xr unix 4
@@ -403,9 +408,16 @@ message
.It Xr kqueue 2 .It Xr kqueue 2
only with only with
.Dv EVFILT_VNODE .Dv EVFILT_VNODE
.It Xr readlinkat 2
.It Xr __acl_get_fd 2 .It Xr __acl_get_fd 2
.It Xr __acl_aclcheck_fd 2 .It Xr __acl_aclcheck_fd 2
.It Xr extattr 2
.It Xr capsicum 4
can be passed to
.Fn cap_*_limit
and
.Fn cap_*_get
system calls (such as
.Xr cap_rights_limit 2 ) .
.El .El
.Pp .Pp
Other operations like Other operations like