mirror of https://github.com/mkerrisk/man-pages
membarrier.2: Clarify details of return value
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9eb5be29b8
commit
7a9c62ef10
|
@ -136,17 +136,15 @@ and
|
|||
.I errno
|
||||
is set appropriately.
|
||||
|
||||
For a given command, with flags argument set to 0, this system call is
|
||||
For a given command, with
|
||||
.I flags
|
||||
set to 0, this system call is
|
||||
guaranteed to always return the same value until reboot.
|
||||
Therefore, it
|
||||
is sufficient to handle errors in a program or library initialization
|
||||
function.
|
||||
Further calls with the same parameters will lead to the same
|
||||
result.
|
||||
Therefore, for flag argument set to 0, error handling is only
|
||||
required for the first calls to the
|
||||
.BR membarrier ()
|
||||
system call in an application.
|
||||
Further calls with the same arguments will lead to the same result.
|
||||
Therefore, with
|
||||
.I flags
|
||||
set to 0, error handling is required only for the first call to
|
||||
.BR membarrier ().
|
||||
|
||||
.SH ERRORS
|
||||
.TP
|
||||
|
|
Loading…
Reference in New Issue