From: Norton Allen <allen@huarp.harvard.edu>
To: "Åke Rehnman" <ake.rehnman@gmail.com>, cygwin@cygwin.com
Subject: Re: Setting termios VMIN > 0 and VTIME > 0 on non blocking file
Date: Wed, 11 Mar 2020 21:08:03 -0400 [thread overview]
Message-ID: <f9d8744b-9271-9cbe-d79e-6a61b837d94d@huarp.harvard.edu> (raw)
In-Reply-To: <5541b350-9992-a0cf-ca77-43a0df83c0a8@gmail.com>
On 3/11/2020 9:04 PM, Åke Rehnman via Cygwin wrote:
>
> On 2020-03-11 22:55, Brian Inglis wrote:
>> VMIN > 0 || VTIME > 0 implies blocking; O_NONBLOCK implies SIGIO
>> delivery; see:
>> https://www.tldp.org/HOWTO/pdf/Serial-Programming-HOWTO.pdf
>> https://www.cmrr.umn.edu/~strupp/serial.html
>> https://en.wikibooks.org/wiki/Serial_Programming/termios
>>
>> also read the man pages carefully and *assume* nothing; functions
>> should work
>> *exactly* as documented: there be dragons!
>>
> According to https://www.cmrr.umn.edu/~strupp/serial.html "*Timeouts
> are ignored in canonical input mode or when the/NDELAY/option is set
> on the file via/open/or/fcntl/."*
>
> This leads me to believe the current cygwin implementation is not
> correct. Changing the VMIN and VTIME should have no effect on the
> read() behavior if the file was opened with O_NOBLOCK.
> **
Correct me if I am wrong, but O_NDELAY is not the same as O_NONBLOCK
next prev parent reply other threads:[~2020-03-12 1:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1473.1583981776.15804.cygwin@cygwin.com>
2020-03-11 20:48 ` Åke Rehnman
2020-03-11 21:55 ` Brian Inglis
2020-03-12 1:01 ` Norton Allen
2020-03-12 1:04 ` Åke Rehnman
2020-03-12 1:08 ` Norton Allen [this message]
2020-03-12 1:39 ` Åke Rehnman
2020-03-12 8:05 ` Thomas Dickey
2020-03-12 11:01 ` Åke Rehnman
2020-03-12 19:48 ` Achim Gratz
2020-03-12 11:40 ` Corinna Vinschen
2020-03-12 13:32 ` Åke Rehnman
2020-03-12 14:13 ` Corinna Vinschen
2020-03-12 16:42 ` Åke Rehnman
2020-03-13 10:02 ` Corinna Vinschen
2020-03-12 14:20 ` Åke Rehnman
2020-03-12 14:44 ` Corinna Vinschen
2020-03-12 15:08 ` Corinna Vinschen
2020-03-12 17:04 ` Åke Rehnman
2020-03-13 10:12 ` Corinna Vinschen
2020-03-14 10:23 ` Åke Rehnman
2020-03-14 10:36 ` Åke Rehnman
2020-03-16 9:35 ` Corinna Vinschen
2020-03-17 12:16 ` Corinna Vinschen
2020-03-17 15:54 ` Åke Rehnman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f9d8744b-9271-9cbe-d79e-6a61b837d94d@huarp.harvard.edu \
--to=allen@huarp.harvard.edu \
--cc=ake.rehnman@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).