aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-08-09 23:29:42 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-10 03:29:39 +0200
commit30397d7dd0c8d6fef493df4fe9c367c3633a4983 (patch)
tree1ba092de87debf73ec492003c770a20842727fb4
parent91ce7d5f0a791ff8efa00a5caa9b471114bf2993 (diff)
downloadman-pages-30397d7dd0c8d6fef493df4fe9c367c3633a4983.tar.gz
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>
-rw-r--r--man2/mount_setattr.230
1 files changed, 15 insertions, 15 deletions
diff --git a/man2/mount_setattr.2 b/man2/mount_setattr.2
index ea0eb1957d..acb5d42ea4 100644
--- a/man2/mount_setattr.2
+++ b/man2/mount_setattr.2
@@ -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[] = {