From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d6dd8bdc1749e44 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-30 10:31:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!freenix!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Is There Non Blocking IO Routines For ADA under unix? Date: Wed, 30 Oct 2002 12:30:50 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3dc0133f_4@corp.newsgroups.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1036002662 44513 137.194.161.2 (30 Oct 2002 18:31:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 30 Oct 2002 18:31:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:30237 Date: 2002-10-30T12:30:50-06:00 ----- Original Message ----- From: "Rick Beaver" Newsgroups: comp.lang.ada To: Sent: Wednesday, October 30, 2002 11:34 AM Subject: Is There Non Blocking IO Routines For ADA under unix? > Hi, I am attempting to write a terminal emulator to debug serial ports. > I would like to use ADA/GNAT under FreeBSD. I could use C but what is the > fun in that? Any suggestion for non blocking code? I have, for several years, now, used the terminal characteristic types and subprograms in the florist library. This allows full control of the terminal characteristics binding (if memory serves me correctly) to the tcsetattr and tcgetattr functions of the C runtime. This approach has provided flawless performance at up to 256,000 bps. The POSIX packages (libflorist) only supports setting Baud Rates of up to 38,400, but the devices I was using (a PCMCIA modem implementing tactical protocols) supported setting the baud rate with a command issued at the start-up baud rate of 9600.