NetBSD Problem Report #1625
From gnats Thu Oct 12 05:59:10 1995
Received: from idefix.dachau.marco.de (idefix.dachau.marco.de [192.54.39.5]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with SMTP id FAA19326 for <gnats-bugs@gnats.netbsd.org>; Thu, 12 Oct 1995 05:59:04 -0400
Message-Id: <199510120959.KAA00573@robin.dachau.marco.de>
Date: Thu, 12 Oct 1995 10:59:38 +0100
From: Matthias Pfaller <leo@robin.dachau.marco.de>
Reply-To: leo@robin.dachau.marco.de
To: gnats-bugs@gnats.netbsd.org
Subject: ibcs2 fails to support TCSBRK
X-Send-Pr-Version: 3.2
>Number: 1625
>Category: port-i386
>Synopsis: ibcs2 fails to support TCSBRK
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 17 14:26:10 +0000 1995
>Closed-Date: Wed Jan 10 01:38:38 +0000 1996
>Last-Modified: Wed Jan 10 01:39:02 +0000 1996
>Originator: Matthias Pfaller
>Release: 95/08/26
>Organization:
leo@dachau.marco.de in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany tel: +49 8131 516142
>Environment:
System: NetBSD robin 1.0A NetBSD 1.0A (ROBIN) #10: Thu Oct 12 10:34:15 MET 1995 leo@robin:/usr/src/sys/arch/i386/compile/ROBIN i386
>Description:
The compat-ibcs2 system fails to support TCSBRK.
>How-To-Repeat:
Try sending a break from an ibcs2 application.
>Fix:
The following fix seems to work for our applications:
--- ibcs2_ioctl.c.orig Wed Mar 15 12:31:23 1995
+++ ibcs2_ioctl.c Wed Oct 11 11:00:53 1995
@@ -430,8 +437,20 @@
}
case IBCS2_TCSBRK:
- DPRINTF(("ibcs2_ioctl(%d): TCSBRK ", p->p_pid));
- return ENOSYS;
+ {
+ int t;
+ t = (int) SCARG(uap, data);
+ t = (t ? t : 1) * hz * 4;
+ t /= 10;
+ if (error = (*ctl)(fp, TIOCSBRK, (caddr_t)0, p))
+ return error;
+ error = tsleep((caddr_t)&t, PZERO | PCATCH, "ibcs2_tcsbrk", t);
+ if (error == EINTR || error == ERESTART) {
+ (*ctl)(fp, TIOCCBRK, (caddr_t)0, p);
+ return EINTR;
+ } else
+ return (*ctl)(fp, TIOCCBRK, (caddr_t)0, p);
+ }
case IBCS2_TCXONC:
DPRINTF(("ibcs2_ioctl(%d): TCXONC ", p->p_pid));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Tue Jan 9 20:38:38 EST 1996
State-Changed-Why:
Duplicate of PR 1623.
>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.