Subject: lib/28571: sa_stacks(2) description on return value is incorrect
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 12/07/2004 14:42:00
>Number: 28571
>Category: lib
>Synopsis: sa_stacks(2) description on return value is incorrect
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 07 14:42:00 +0000 2004
>Originator: ITOH Yasufumi
>Release: NetBSD 2.0_RC5
>Organization:
>Environment:
System: NetBSD zun.my.domain 2.0_RC5 NetBSD 2.0_RC5 (ZUN) #1: Wed Nov 24 16:19:56 JST 2004 itohy@zun.my.domain:/usr/src/sys/arch/i386/compile/ZUN i386
Architecture: i386
Machine: i386
>Description:
The manual page of sa_stacks(2) says
RETURN VALUES
sa_stacks() returns zero on success. Otherwise, a value
of -1 is returned and errno is set to indicate the error.
In reality, the sa_stacks(2) function returns the number of the
stacks actually used.
>How-To-Repeat:
See sa_stacks.2 and kern_sa.c.
>Fix:
I think the code is correct --- document is incorrect.