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