NetBSD Problem Report #7751
Received: (qmail 15125 invoked from network); 10 Jun 1999 14:47:47 -0000
Message-Id: <199906101445.XAA27428@ns1.kcn.ne.jp>
Date: Thu, 10 Jun 1999 23:45:50 +0900 (JST)
From: NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
Reply-To: nakayosh@kcn.ne.jp
To: gnats-bugs@gnats.netbsd.org
Subject: stty doesn't accept g-format data
X-Send-Pr-Version: 3.95
>Number: 7751
>Category: bin
>Synopsis: stty doesn't accept g-format data
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 10 07:50:02 +0000 1999
>Closed-Date: Thu Jun 10 14:59:04 +0000 1999
>Last-Modified: Thu Jun 10 14:59:59 +0000 1999
>Originator: NAKAJIMA Yoshihiro
>Release: NetBSD-current 19990609
>Organization:
>Environment:
System: NetBSD asura 1.4C NetBSD 1.4C (ASURA) #1: Thu Jun 10 22:12:58 JST 1999 nakayosh@asura:/usr/src/sys/arch/i386/compile/ASURA i386
>Description:
Stty doesn't accept g-format data.
In gfmt.c, there are the following descriptions:
: #ifdef BSD4_4
: if (CHK("ispeed")) {
: (void)sscanf(ep, "%ld", &tmp);
: tp->c_ispeed = tmp;
: continue;
: }
: #endif
But BSD4_4 isn't defined.
>How-To-Repeat:
: % stty `stty -g`
: stty: illegal gfmt1 option -- ispeed
>Fix:
diff -u src/bin/stty/gfmt.c.ORIG src/bin/stty/gfmt.c
--- src/bin/stty/gfmt.c.ORIG Wed Mar 3 21:05:19 1999
+++ src/bin/stty/gfmt.c Thu Jun 10 22:41:46 1999
@@ -42,6 +42,7 @@
#endif
#endif /* not lint */
+#include <sys/param.h> /* BSD4_4 */
#include <sys/types.h>
#include <err.h>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mrg
State-Changed-When: Thu Jun 10 07:59:04 PDT 1999
State-Changed-Why:
changed types.h to param.h as you only need one of these
>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.