This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Performance patch to termios code
- From: Paul Sheer <psheer at icon dot co dot za>
- To: Jonathan Larmour <jlarmour at redhat dot com>, ecos-discuss at sources dot redhat dot com
- Date: Fri, 11 Jan 2002 11:14:24 +0200
- Subject: Re: [ECOS] Performance patch to termios code
- References: <200201101547.g0AFlKd19308@mail.redhat.com> <3C3DFEB9.2B5555F7@redhat.com>
- Reply-to: psheer at icon dot co dot za
>
> The termios driver only supports MIN=0,TIME=0 for non-canonical mode.
> It looks like you are trying to implement MIN>0, TIME=0.
no, this is NOT what i am trying to implement at all.
> But if so, this patch
> will break the MIN=0 case. With MIN=0,TIME=0
> "the minimum of either the number of bytes requested or the number
> of bytes currently available shall be returned without waiting
> for more bytes to be input" according to the
> standard.
Then my patch is correct, because it returns the number of bytes
available without waiting. Without my patch "OR THE NUMBER OF
BYTES CURRENTLY AVAILABLE" is not implemented.
-paul
Paul Sheer Consulting IT Services . . . Tel . . . +27 21 761 7224
Email . . . psheer@icon.co.za . . . . . . Pager . . . 088 0057245
Linux development, cryptography, recruitment, support, training
http://www.icon.co.za/~psheer . . . . http://rute.sourceforge.net
L I N U X . . . . . . . . . . . . The Choice of a GNU Generation