.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
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
is specified in
.IR flags ,
then the mount properties of the mount identified by
-.I dfd
+.I dirfd
are changed.
.PP
The
.I path
is the empty string,
change the mount properties on
-.I dfd
+.I dirfd
itself.
.TP
.B AT_RECURSIVE
.SH ERRORS
.TP
.B EBADF
-.I dfd
+.I dirfd
is not a valid file descriptor.
.TP
.B EBADF
.TP
.B EINVAL
The path specified via the
-.I dfd
+.I dirfd
and
.I path
arguments to
#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[] = {