This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance patch to termios code


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]