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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,19ff5e2b428c1797,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-17 17:42:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!news!news.he.net!newsxfer.visi.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news-east.rr.com!cyclone-west.rr.com!news.rr.com!news-west.rr.com!lsnws01.we.mediaone.net!cyclone-LA3.rr.com!typhoon.san.rr.com.POSTED!not-for-mail From: jmanghan@dt088n7d.san.rr.com (Jeetendra Manghani) Newsgroups: comp.lang.ada Subject: Posix/serial/baud_rate issue Organization: A poorly-installed InterNetNews site Message-ID: <9bik19$6m8$1@dt088n7d.san.rr.com> Date: Wed, 18 Apr 2001 00:39:22 GMT NNTP-Posting-Host: 204.210.17.125 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 987554362 204.210.17.125 (Tue, 17 Apr 2001 17:39:22 PDT) NNTP-Posting-Date: Tue, 17 Apr 2001 17:39:22 PDT Xref: supernews.google.com comp.lang.ada:6962 Date: 2001-04-18T00:39:22+00:00 List-Id: Hello, I posted a while back about ada packages that aid in serial programming. Someone showed me some packages, POSIX_IO, and POSIX_TERMINAL_FUNCTIONS. Well, now I get an error when trying to set the baud rate for some reason. I open a port and then "Get_terminal_characteristics", use "Define_Input_Baud_Rate" with POSIX_TERMINAL_FUNCTIONS.B38400 as the baud_rate, and then do a "Set_Terminal_Characteristics". This gives me an error 22, which is EINVAL (Invalid_Argument). Is the "Define" function overwriting the TERMINAL_CHARACTERISTICS structure? I'd think not since that parameter is a "in out" param. Any ideas what I may be doing wrong? Thanks, Jee