From owner-freebsd-hackers Mon Jul 24 10:19:09 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id KAA28122 for hackers-outgoing; Mon, 24 Jul 1995 10:19:09 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id KAA28116 for ; Mon, 24 Jul 1995 10:19:02 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id DAA25914; Tue, 25 Jul 1995 03:14:55 +1000 Date: Tue, 25 Jul 1995 03:14:55 +1000 From: Bruce Evans Message-Id: <199507241714.DAA25914@godzilla.zeta.org.au> To: ache@astral.msk.su, bde@zeta.org.au, terry@cs.weber.edu Subject: Re: dial up at > 9600 baud Cc: hackers@freebsd.org, harry@hgac.com, jkh@violet.berkeley.edu Sender: hackers-owner@freebsd.org Precedence: bulk >>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.] Bruce