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.
|
||||
The
|
||||
.I size
|
||||
of the
|
||||
.I value
|
||||
must be specified.
|
||||
argument specifies the size (in bytes) of
|
||||
.IR value .
|
||||
.PP
|
||||
.BR lsetxattr ()
|
||||
is identical to
|
||||
|
@ -93,15 +92,16 @@ binary data of specified length.
|
|||
.PP
|
||||
The
|
||||
.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
|
||||
specifies a pure create, which fails if the named
|
||||
attribute exists already.
|
||||
.B XATTR_REPLACE
|
||||
specifies a pure replace operation, which fails if the
|
||||
named attribute does not already exist.
|
||||
By default (no flags), the extended attribute will be created if
|
||||
need be, or will simply replace the value if the attribute exists.
|
||||
By default (no flags),
|
||||
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
|
||||
On success, zero is returned.
|
||||
On failure, \-1 is returned and
|
||||
|
|
Loading…
Reference in New Issue