From ef4ba9be479b9fe03d41003e2a1b8e8f77375e6f Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Wed, 12 Mar 2008 15:48:59 +0000 Subject: [PATCH] Describe return values from pmc_ncpu() and pmc_npmc() better. --- lib/libpmc/pmc_capabilities.3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libpmc/pmc_capabilities.3 b/lib/libpmc/pmc_capabilities.3 index 7506454412b..97dc1a365e9 100644 --- a/lib/libpmc/pmc_capabilities.3 +++ b/lib/libpmc/pmc_capabilities.3 @@ -157,7 +157,10 @@ Functions .Fn pmc_ncpu and .Fn pmc_npmc -returns a positive integer if successful or -1 in case of an error. +returns a positive integer if successful; otherwise the value -1 is +returned and the global variable +.Va errno +is set to indicate the error. .Pp Functions .Fn pmc_capabilities ,