mirror of https://github.com/mkerrisk/man-pages
mount_setattr.2: Rename 'path' to 'pathname'
For consistency with other pages Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
73434f4003
commit
5a9ebeba72
|
@ -34,7 +34,7 @@ mount_setattr \- change 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 " dirfd ", const char *" path ,
|
.BI "int syscall(SYS_mount_setattr, int " dirfd ", const char *" pathname ,
|
||||||
.BI " unsigned int " flags ", struct mount_attr *" attr \
|
.BI " unsigned int " flags ", struct mount_attr *" attr \
|
||||||
", size_t " size );
|
", size_t " size );
|
||||||
.fi
|
.fi
|
||||||
|
@ -49,7 +49,7 @@ The
|
||||||
.BR mount_setattr ()
|
.BR mount_setattr ()
|
||||||
system call changes the mount properties of a mount or an entire mount tree.
|
system call changes the mount properties of a mount or an entire mount tree.
|
||||||
If
|
If
|
||||||
.I path
|
.I pathname
|
||||||
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
|
||||||
|
@ -59,11 +59,11 @@ If
|
||||||
is the special value
|
is the special value
|
||||||
.BR AT_FDCWD ,
|
.BR AT_FDCWD ,
|
||||||
then
|
then
|
||||||
.I path
|
.I pathname
|
||||||
is interpreted relative to
|
is interpreted relative to
|
||||||
the current working directory of the calling process.
|
the current working directory of the calling process.
|
||||||
If
|
If
|
||||||
.I path
|
.I pathname
|
||||||
is the empty string and
|
is the empty string and
|
||||||
.B AT_EMPTY_PATH
|
.B AT_EMPTY_PATH
|
||||||
is specified in
|
is specified in
|
||||||
|
@ -113,12 +113,12 @@ is
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I flags
|
.I flags
|
||||||
argument can be used to alter the path resolution behavior.
|
argument can be used to alter the pathname resolution behavior.
|
||||||
The supported values are:
|
The supported values are:
|
||||||
.TP
|
.TP
|
||||||
.B AT_EMPTY_PATH
|
.B AT_EMPTY_PATH
|
||||||
If
|
If
|
||||||
.I path
|
.I pathname
|
||||||
is the empty string,
|
is the empty string,
|
||||||
change the mount properties on
|
change the mount properties on
|
||||||
.I dirfd
|
.I dirfd
|
||||||
|
@ -421,10 +421,10 @@ The caller tried to change the mount to
|
||||||
but the mount still holds files open for writing.
|
but the mount still holds files open for writing.
|
||||||
.TP
|
.TP
|
||||||
.B EINVAL
|
.B EINVAL
|
||||||
The path specified via the
|
The pathname specified via the
|
||||||
.I dirfd
|
.I dirfd
|
||||||
and
|
and
|
||||||
.I path
|
.I pathname
|
||||||
arguments to
|
arguments to
|
||||||
.BR mount_setattr ()
|
.BR mount_setattr ()
|
||||||
isn't a mount point.
|
isn't a mount point.
|
||||||
|
@ -868,10 +868,10 @@ with a structure which has every byte nonzero
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
mount_setattr(int dirfd, const char *path, unsigned int flags,
|
mount_setattr(int dirfd, const char *pathname, unsigned int flags,
|
||||||
struct mount_attr *attr, size_t size)
|
struct mount_attr *attr, size_t size)
|
||||||
{
|
{
|
||||||
return syscall(SYS_mount_setattr, dirfd, path, flags, attr, size);
|
return syscall(SYS_mount_setattr, dirfd, pathname, flags, attr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
Loading…
Reference in New Issue