NetBSD Problem Report #9707
Received: (qmail 12789 invoked from network); 30 Mar 2000 06:09:43 -0000
Message-Id: <20000329021443.1920F7EF1@fish-dances.eterna.com.au>
Date: Wed, 29 Mar 2000 12:14:43 +1000 (EST)
From: mrg@cygnus.com
Reply-To: mrg@cygnus.com
To: gnats-bugs@gnats.netbsd.org
Subject: ping6(8) lies about using <sysexits.h>
X-Send-Pr-Version: 3.95
>Number: 9707
>Category: bin
>Synopsis: ping6(8) lies about using <sysexits.h>
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: itojun
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 29 22:12:00 +0000 2000
>Closed-Date: Thu May 18 13:22:11 +0000 2000
>Last-Modified: Thu May 18 13:22:11 +0000 2000
>Originator: matthew green
>Release: 20000220
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
System: NetBSD fish-dances.eterna.com.au 1.4T NetBSD 1.4T (_fish_) #10: Fri Mar 17 16:36:55 EST 2000 mrg@fish-dances.eterna.com.au:/var/_fish_ i386
>Description:
excerpt from ping6(8):
RETURN VALUES
The ping6 command returns an exit status of zero if at least one response
was heard from the specified host; a status of two if the transmission
was successful but no responses were received; or another value (from
<sysexits.h>) if an error occurred.
but in reality, the only calls to exit are as following and <sysexit.h>
is not even included.
ping6.c: exit(1);
ping6.c: exit(nreceived == 0);
ping6.c: exit(1);
ping6.c: exit(1);
additionally, there is no place that an exit status of 2 is used.
>How-To-Repeat:
read ping6(8). be curious why you can't get an exit status of 2 from
it. read ping6.c and see why.
>Fix:
not given. (fix program or docs).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->itojun
Responsible-Changed-By: fair
Responsible-Changed-When: Tue May 16 12:29:52 PDT 2000
Responsible-Changed-Why:
ping6 is presumably part of KAME...
State-Changed-From-To: open->closed
State-Changed-By: itojun
State-Changed-When: Thu May 18 06:21:58 PDT 2000
State-Changed-Why:
corrected.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.