mirror of https://github.com/mkerrisk/man-pages
setxattr.2: Minor rewordings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
5232e869b2
commit
736703bde2
|
@ -61,9 +61,8 @@ and associated with the given
|
||||||
in the filesystem.
|
in the filesystem.
|
||||||
The
|
The
|
||||||
.I size
|
.I size
|
||||||
of the
|
argument specifies the size (in bytes) of
|
||||||
.I value
|
.IR value .
|
||||||
must be specified.
|
|
||||||
.PP
|
.PP
|
||||||
.BR lsetxattr ()
|
.BR lsetxattr ()
|
||||||
is identical to
|
is identical to
|
||||||
|
@ -93,15 +92,16 @@ binary data of specified length.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I flags
|
.I flags
|
||||||
argument can be used to refine the semantics of the operation.
|
argument can be used to modify the semantics of the operation.
|
||||||
.B XATTR_CREATE
|
.B XATTR_CREATE
|
||||||
specifies a pure create, which fails if the named
|
specifies a pure create, which fails if the named
|
||||||
attribute exists already.
|
attribute exists already.
|
||||||
.B XATTR_REPLACE
|
.B XATTR_REPLACE
|
||||||
specifies a pure replace operation, which fails if the
|
specifies a pure replace operation, which fails if the
|
||||||
named attribute does not already exist.
|
named attribute does not already exist.
|
||||||
By default (no flags), the extended attribute will be created if
|
By default (no flags),
|
||||||
need be, or will simply replace the value if the attribute exists.
|
the extended attribute will be created if it does not exist,
|
||||||
|
or the value will be replaced if the attribute already exists.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
On success, zero is returned.
|
On success, zero is returned.
|
||||||
On failure, \-1 is returned and
|
On failure, \-1 is returned and
|
||||||
|
|
Loading…
Reference in New Issue