NetBSD Problem Report #25

From gnats  Tue Oct 12 14:35:36 1993
Received: from localhost (jtc@localhost) by sun-lamp.cs.berkeley.edu (8.3/8.3) id OAA02872; Tue, 12 Oct 1993 14:35:36 -0700
Message-Id: <199310122135.OAA02872@sun-lamp.cs.berkeley.edu>
Date: Tue, 12 Oct 1993 14:35:36 -0700
From: jtc@sun-lamp.cs.berkeley.edu
Reply-To: jtc@sun-lamp.cs.berkeley.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: getopt(3) should be prototyped in <unistd.h>
X-Send-Pr-Version: 3.01.5

>Number:         25
>Category:       lib
>Synopsis:       getopt(3) should be prototyped in <unistd.h>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 12 14:50:07 +0000 1993
>Closed-Date:    Thu Oct 21 10:37:30 +0000 1993
>Last-Modified:  Mon Oct 13 07:35:31 +0000 2014
>Originator:     J.T. Conklin
>Release:        NetBSD-0.9
>Organization:
Winning Strategies, Inc.
>Environment:

System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP#6 i386

>Description:
	In SysV, XPG3, & POSIX.2 getopt(3) is specified to live in <unistd.h>,
	not <stdlib.h>.  

>How-To-Repeat:

>Fix:
	The getopt(), optind, opterr, and optarg declarations should be 
	moved from <stdlib.h> to <unistd.h>.  The related SysV getsubopt()
	function to should probably moved at the same time.
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Oct 21 10:37:30 1993
State-Changed-Why:
Added getopt and getsubopt prototypes to <unistd.h>

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.