Subject: lib/19030: man page of wait(2) is misleading
To: None <gnats-bugs@gnats.netbsd.org>
From: None <florence.henry@obspm.fr>
List: netbsd-bugs
Date: 11/12/2002 14:41:35
>Number:         19030
>Category:       lib
>Synopsis:       man page of wait(2) is misleading
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 12 14:42:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Florence HENRY
>Release:        NetBSD 1.6
>Organization:
>Environment:
NetBSD kiwi 1.6 NetBSD 1.6 (FLOKERN6) #1: Sat Sep 28 11:15:12 UTC 2002     root@kiwi:/usr/src/sys/arch/i386/compile/FLOKERN6 i386

>Description:
the wait(2) man page describes the usage of wait() that way :

pid_t wait(int *status);

Then, the macros WIFEXITED, WIFSIGNALED, WIFSTOPPED, WEXITSTATUS, WTERMSIG, WCOREDUMP and WSTOPSIG are described to work this way :

WIFEXITED(status)

whereas the "status" needed by WIFEXITED is not the pointer returned by wait() but the value pointed by the "status" pointer

a precision should be made
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: