Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 1995 23:02:08 +0400 (MSD)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" <ache@astral.msk.su>
To:        bde@ZETA.ORG.AU, terry@cs.weber.edu
Cc:        hackers@freebsd.org, harry@hgac.com, jkh@violet.berkeley.edu
Subject:   Re: dial up at > 9600 baud
Message-ID:  <oWmu-4mSP1@astral.msk.su>
In-Reply-To: <199507241714.DAA25914@godzilla.zeta.org.au>; from Bruce Evans at Tue, 25 Jul 1995 03:14:55 %2B1000
References:  <199507241714.DAA25914@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199507241714.DAA25914@godzilla.zeta.org.au> Bruce Evans
    writes:

>>>The Linux driver has (had?) some optional support to help getty handle
>>>this.  After the last close of cuaa, sleeping opens of ttyd return
>>>EAGAIN.  This gives getty a chance to send the AT command.

>>Does EAGAIN allowed on open by POSIX?

>No.  "... opening a terminal device file with the  O_NONBLOCK flag clear
>shall cause the process to block until the terminal device is ready and
>available.  The CLOCAL flag can also affect open()."  [Opening terminal
>device files with O_NONBLOCK set is supposed to always work if the file
>permissions allow it.  We probably break this by returning EBUSY for 
>some exclusive access and bidirectional cases.]

Maybe we should allow open and return EBUSY on ioctls or writes?

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
FidoNet: 2:5020/230.3    : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?oWmu-4mSP1>