Bruce Evans e2f03b0df0 Speed up ttnread() in the !(ICANON | ISIG) case by copying to user space
through a temporary buffer instead of one character at a time.  The old
method takes about 6 usec/char on a 486DX2/66.  This is larger than than
the combined interrupt and PIO overhead for a 16550!

This change was first implemented in 1.1.5.  It was rewritten for 2.1.
The clist access functions allow a simpler implementation at some cost
in correctness and speed.  There needs to be an ungetc() function to
recover from EFAULT, and it wastes time to copy through a temporary
buffer.

Don't snoop on single characters that weren't read due to EFAULT.
Rewrite a snoop comment in my approximation to English.

Undo bogus exportation of ttnread().
1995-04-15 21:04:58 +00:00
..
1995-04-15 06:54:13 +00:00
1994-08-02 07:55:43 +00:00
1995-02-24 08:51:34 +00:00
1994-08-02 07:55:43 +00:00
1995-03-25 12:07:31 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1994-09-13 14:47:38 +00:00
1995-02-27 19:47:53 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1995-04-09 06:02:46 +00:00
1994-11-12 01:47:43 +00:00
1994-11-12 01:47:43 +00:00
1995-04-09 06:02:46 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00