NetBSD Problem Report #735
From gnats Tue Jan 17 21:38:24 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id VAA00937 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 17 Jan 1995 21:38:24 -0800
Message-Id: <199501180528.XAA00619@slip-1-51.ots.utexas.edu>
Date: Tue, 17 Jan 1995 23:28:24 -0600
From: VaX#n8 <vax@ccwf.cc.utexas.edu>
Reply-To: vax@ccwf.cc.utexas.edu
To: gnats-bugs@NetBSD.ORG
Subject: DTR not being cleared on i386 port
X-Send-Pr-Version: 3.2
>Number: 735
>Category: port-i386
>Synopsis: dtr isn't cleared in i386/com.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 17 21:50:05 +0000 1995
>Closed-Date: Fri Jan 12 22:06:55 +0000 1996
>Last-Modified: Fri Jan 12 22:07:35 +0000 1996
>Originator: VaX#n8
>Release: <NetBSD-current source date> 16 Jan 1995
>Organization:
>Environment:
i486/DX2-66 NetBSD-current
System: NetBSD slip-1-51.ots.utexas.edu 1.0A NetBSD 1.0A (LINKDEAD) #0: Tue Jan 17 22:29:58 CST 1995 bashroot@slip-8-16.ots.utexas.edu:/mnt/sd0e/src/sys/arch/i386/compile/LINKDEAD i386
>Description:
The DTR line is forced high by the TIOCSDTR ioctl command, but is not
lowered with the TIOCCDTR ioctl command.
>How-To-Repeat:
#include <err.h>
#include <fcntl.h>
#include <termios.h>
main()
{
int fd;
if ((fd = open("/dev/tty01", O_RDWR | O_NONBLOCK)) < 0)
err(1, "/dev/tty01");
if (ioctl(fd, TIOCSDTR, 0) < 0) err(1, "TIOCSDTR");
if (ioctl(fd, TIOCCDTR, 0) < 0) err(1, "TIOCCDTR");
}
>Fix:
Not sure. The com.c code appears fairly clear;
case TIOCSDTR:
outb(iobase + com_mcr, sc->sc_mcr |= (MCR_DTR | MCR_RTS));
break;
case TIOCCDTR:
outb(iobase + com_mcr, sc->sc_mcr &= ~(MCR_DTR | MCR_RTS));
break;
So where are these ioctl's documented anyway? (Aside from the source,
which was suprisingly readable I might add :)
--
MAIL TO THIS ADDRESS: vax@ccwf.cc.utexas.edu
Ask me about BSD Unix for your PC for FREE! (NetBSD) - Yes, it runs fast!
Victimless crimes are a figment of the state's collective imagination.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Fri Jan 12 17:06:55 EST 1996
State-Changed-Why:
This has never been reproducible.
>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.