🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #432

Re: mt reports absurd error message when pointed at a tty

#432
From: Guy Harris
Date: Mon, 01 Dec 1986 01:03
16 lines
1332 bytes
> Repeat-By:
> 	Run "mt -f /dev/tty stat".  You will draw the error message "not a
> 	typewriter", which is a patently absurd thing to say about /dev/tty.
> 	The same thing happens on Sun 3.0.

"Fixed in 4.3" (and SunOS 3.2).  It now says "Inappropriate ioctl for
device".  One more piece of UNIX tradition bites the dust....  (S5 returns
EINVAL in this case, and only returns ENOTTY if the object that the "ioctl"
is being performed on is not a character special file.  A case can be made
that this is the right thing to do, although 4.3BSD supports some "ioctl"s
that can be made on files other than character special files, as well as
supporting "ioctl"s on sockets.)
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy@sun.com (or guy@sun.arpa)
Technical Details
Message-ID: <9743@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!styx!ames!oliveb!sun!guy
References: <2496@phri.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!styx!ames!oliveb!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: comp.bugs.4bsd
Subject: Re: mt reports absurd error message when pointed at a tty
Message-ID: <9743@sun.uucp>
Date: Sun, 30-Nov-86 20:03:14 EST
Article-I.D.: sun.9743
Posted: Sun Nov 30 20:03:14 1986
Date-Received: Sun, 30-Nov-86 22:59:06 EST
References: <2496@phri.UUCP>
Distribution: net
Organization: Sun Microsystems, Inc.
Lines: 16
Summary: Fixed in 4.3BSD (and SunOS 3.2)