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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.0.142 with SMTP id 136mr19649201pga.148.1480622328761; Thu, 01 Dec 2016 11:58:48 -0800 (PST) X-Received: by 10.157.17.3 with SMTP id g3mr2765331ote.8.1480622328685; Thu, 01 Dec 2016 11:58:48 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!p16no922537qta.1!news-out.google.com!j8ni3446qtc.0!nntp.google.com!n6no923920qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Dec 2016 11:58:48 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:78:8e4f:8c01:226:c6ff:fe49:25ea; posting-account=3zVVBwoAAAC7BSMfgNP7DSbqU9urpt40 NNTP-Posting-Host: 2003:78:8e4f:8c01:226:c6ff:fe49:25ea References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT.Serial_Communications From: mario.blunk.gplus@gmail.com Injection-Date: Thu, 01 Dec 2016 19:58:48 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:32547 Date: 2016-12-01T11:58:48-08:00 List-Id: Hello out there ! I know this thread hasn't been active since years. The hardware flow contro= l issue may have a connection with what I discovered recently. I reported i= t to AdaCore in hope to get some help from them: The serial communication with /dev/ttyxxxx does not work if hardware flow c= ontrol is enabled (CRTSCTS). Since s-oscons.ads dictates a wrong integer fo= r this value, all bits in variable Current.c_cflag (in g-sercom.adb) flip t= o "one" when hardware flow control enabled, thus making all other bits in t= his "register" turn on. I found the correct number 16#80000000# by counter-checking with a C-progra= m which also confirmed the octal ! number specified in termbits.h (line 16= 1). The file s-oscons.ads has a wrong number in line 157 (see attached). As a makeshift I modified g-sercom.adb in line 237 (see attached) and use i= t as "self written" library. The os where I found the bug is Open Suse 42.xx Leap (64bit) (not older tha= n 1 year). In later distros OpenSuse 13.2 (32bit) also. What can I do to fix the bug in my run time libraries ? Cheers, Mario