]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mount_setattr.2: Rename 'dfd' to 'dirfd'
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 9 Aug 2021 21:29:42 +0000 (23:29 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 10 Aug 2021 01:29:39 +0000 (03:29 +0200)
'dirfd' is the name consistently used in other pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/mount_setattr.2

index ea0eb1957d12ede78c50f48bf30d122b22ac102f..acb5d42ea4a4f6678a3d7844c29c40a29b717eae 100644 (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[] = {