Subject: Re: New experimental ioctl's for serial driver
To: None <tech-kern@NetBSD.ORG>
From: Alan Barrett <>
List: tech-kern
Date: 03/16/1996 16:00:59
On Fri, 23 Feb 1996, der Mouse wrote:
> How about using a bit in the minor device number to mean
> "first-open-state device", and have that device support nothing but the
> usual tty-state getting and setting ioctls, and have them affect the
> first-open state rather than the active state?
> Then you just "stty -f /dev/fty04 raw -echo -echonl" or some such to
> modify the first-open state of /dev/tty04.

FreeBSD does almost exactly that.  It seems to work OK, and I think it's
rather elegant.

--apb (Alan Barrett)