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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.0.81 with SMTP id 78mr13058074ita.19.1519774423472; Tue, 27 Feb 2018 15:33:43 -0800 (PST) X-Received: by 10.157.46.5 with SMTP id q5mr726897otb.10.1519774423326; Tue, 27 Feb 2018 15:33:43 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!w142no466149ita.0!news-out.google.com!a2ni1226ite.0!nntp.google.com!o66no464032ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Feb 2018 15:33:43 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=135.23.128.254; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 135.23.128.254 References: <6c0d9514-97e0-4c5e-9b7d-b247c2ca0ced@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: open a file non-blocking ? From: patrick@spellingbeewinnars.org Injection-Date: Tue, 27 Feb 2018 23:33:43 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:50695 Date: 2018-02-27T15:33:43-08:00 List-Id: Hi Again Dmitry This is a very interesting post. I new about GNAT.Serial_Communications but I hadn't looked at the sources in a while. I wasn't really impressed when I read it the first time but I am now. It binds to fcntl and it opens with O_NDELAY, which is similar to O_NONBLOCK. There is a post here about the difference: https://mail.python.org/pipermail/python-list/1999-May/013687.html This serial package also gives code examples that could be used with any device to avoid blocking. Thanks again! -Patrick