mount_setattr.2: Rename 'dfd' to 'dirfd'

'dirfd' is the name consistently used in other pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-08-09 23:29:42 +02:00
parent 91ce7d5f0a
commit 30397d7dd0
1 changed files with 15 additions and 15 deletions

View File

@ -34,7 +34,7 @@ mount_setattr \- change mount properties of a mount or mount tree
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
.BI "int syscall(SYS_mount_setattr, int " dfd ", const char *" path ,
.BI "int syscall(SYS_mount_setattr, int " dirfd ", const char *" path ,
.BI " unsigned int " flags ", struct mount_attr *" attr \
", size_t " size );
.fi
@ -53,9 +53,9 @@ If
is a relative pathname,
then it is interpreted relative to
the directory referred to by the file descriptor
.IR dfd .
.IR dirfd .
If
.I dfd
.I dirfd
is the special value
.BR AT_FDCWD ,
then
@ -69,7 +69,7 @@ is the empty string and
is specified in
.IR flags ,
then the mount properties of the mount identified by
.I dfd
.I dirfd
are changed.
.PP
The
@ -122,7 +122,7 @@ If
.I path
is the empty string,
change the mount properties on
.I dfd
.I dirfd
itself.
.TP
.B AT_RECURSIVE
@ -579,7 +579,7 @@ is set to indicate the cause of the error.
.SH ERRORS
.TP
.B EBADF
.I dfd
.I dirfd
is not a valid file descriptor.
.TP
.B EBADF
@ -593,7 +593,7 @@ but the mount still holds files open for writing.
.TP
.B EINVAL
The path specified via the
.I dfd
.I dirfd
and
.I path
arguments to
@ -873,24 +873,24 @@ with a structure which has every byte nonzero
#include <unistd.h>
static inline int
mount_setattr(int dfd, const char *path, unsigned int flags,
mount_setattr(int dirfd, const char *path, unsigned int flags,
struct mount_attr *attr, size_t size)
{
return syscall(SYS_mount_setattr, dfd, path, flags, attr, size);
return syscall(SYS_mount_setattr, dirfd, path, flags, attr, size);
}
static inline int
open_tree(int dfd, const char *filename, unsigned int flags)
open_tree(int dirfd, const char *filename, unsigned int flags)
{
return syscall(SYS_open_tree, dfd, filename, flags);
return syscall(SYS_open_tree, dirfd, filename, flags);
}
static inline int
move_mount(int from_dfd, const char *from_pathname,
int to_dfd, const char *to_pathname, unsigned int flags)
move_mount(int from_dirfd, const char *from_pathname,
int to_dirfd, const char *to_pathname, unsigned int flags)
{
return syscall(SYS_move_mount, from_dfd, from_pathname,
to_dfd, to_pathname, flags);
return syscall(SYS_move_mount, from_dirfd, from_pathname,
to_dirfd, to_pathname, flags);
}
static const struct option longopts[] = {