From 9eb5be29b86cba4471579697e3f85e4ab7558841 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 15 Dec 2015 16:11:06 +0100 Subject: [PATCH] membarrier.2: Clarify return value for MEMBARRIER_CMD_QUERY Signed-off-by: Michael Kerrisk --- man2/membarrier.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man2/membarrier.2 b/man2/membarrier.2 index 586293513..74a973ae8 100644 --- a/man2/membarrier.2 +++ b/man2/membarrier.2 @@ -126,7 +126,11 @@ The pair ordering is detailed as (O: ordered, X: not ordered): sys_membarrier() O O O .SH RETURN VALUE -On success, this system call returns zero. +On success, the +.B MEMBARRIER_CMD_QUERY +operation returns a bit mask of supported commands and the +.B MEMBARRIER_CMD_SHARED +operation returns zero. On error, \-1 is returned, and .I errno