From 7a9c62ef10617215e72ed4959123526d3f7f40bf Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 15 Dec 2015 16:15:39 +0100 Subject: [PATCH] membarrier.2: Clarify details of return value Signed-off-by: Michael Kerrisk --- man2/membarrier.2 | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/man2/membarrier.2 b/man2/membarrier.2 index 74a973ae8..62fc6db62 100644 --- a/man2/membarrier.2 +++ b/man2/membarrier.2 @@ -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