Subject: Re: port-pmax/2545: ultrix tty-aware binaries clobber NetBSD/pmax susp, dsusp
To: None <jonathan@DSG.Stanford.EDU>
From: Frank van der Linden <frank@fwi.uva.nl>
List: port-pmax
Date: 06/13/1996 14:01:00
Quoting Jonathan Stone,
> Running Ultrix binaries that touch the tty state seems to clobber
> the susp and dsusp characters.
[...]
> I'm not sure. I don't see anything in the Ultrix-compat code that
> would be doing this. My very best guess is that it's a bug in the
> mi emulation library's handling of 4.3bsd-style tty ioctls;
> but I could be completely wrong.
The following lines in ultrix_ioctl.c look awfully wrong to me (239-240):
bt->c_cc[VSUSP] = EMUL_TO_NATIVE_CC(st->c_cc[112]);
bt->c_cc[VDSUSP] = EMUL_TO_NATIVE_CC(st->c_cc[113]);
That should be 12 and 13 (or better: they should be #defined someplace).
- Frank