Revision tags: release/2.1.5_cvs |
|
#
e0c95ed9 |
| 31-Aug-1996 |
Bruce Evans <bde@FreeBSD.org> |
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
|
#
14c0cc3d |
| 28-Aug-1996 |
Bruce Evans <bde@FreeBSD.org> |
Fixed a wrong comment. Did tsleep() ever return the networking errno ETIMEDOUT?
|
#
c23670e2 |
| 12-Jun-1996 |
Gary Palmer <gpalmer@FreeBSD.org> |
Clean up -Wunused warnings.
Reviewed by: bde
|
#
e911eafc |
| 02-May-1996 |
Poul-Henning Kamp <phk@FreeBSD.org> |
removed: CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG
Major macro cleanup.
|
#
edbfedac |
| 11-Mar-1996 |
Peter Wemm <peter@FreeBSD.org> |
Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all files are off the vendor branch, so this should not change anything.
A "U" marker generally means that the file was not chang
Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all files are off the vendor branch, so this should not change anything.
A "U" marker generally means that the file was not changed in between the 4.4Lite and Lite-2 releases, and does not need a merge. "C" generally means that there was a change. [note new unused (in this form) syscalls.conf, to be 'cvs rm'ed]
show more ...
|
#
b75356e1 |
| 11-Mar-1996 |
Jeffrey Hsu <hsu@FreeBSD.org> |
From Lite2: proc LIST changes. Reviewed by: david & bde
|
#
4bd49128 |
| 02-Mar-1996 |
Peter Wemm <peter@FreeBSD.org> |
Add more options into the conf/options and i386/conf/options.i386 files and the #include hooks so that 'make depend' is more useful. This covers most of the options I regularly use (but not all) and
Add more options into the conf/options and i386/conf/options.i386 files and the #include hooks so that 'make depend' is more useful. This covers most of the options I regularly use (but not all) and some other easy ones.
show more ...
|
Revision tags: release/2.1.0_cvs |
|
#
6a1441a3 |
| 16-Dec-1995 |
Bruce Evans <bde@FreeBSD.org> |
Oops, the last commit missed one change from 200 to OBUFSIZ + 100.
|
#
247b5337 |
| 15-Dec-1995 |
Bruce Evans <bde@FreeBSD.org> |
Changed the maximum output queue count from (TTMAXHIWAT + 200) to (TTMAXHIWAT + OBUFSIZ + 100) in case someone changes OBUFSIZ. 200 was to allow 100 above high water for ordinary writes and another
Changed the maximum output queue count from (TTMAXHIWAT + 200) to (TTMAXHIWAT + OBUFSIZ + 100) in case someone changes OBUFSIZ. 200 was to allow 100 above high water for ordinary writes and another 100 for kernel printfs.
Increased the reserved output queue count from 512 to the maximum output queue count. This prevents exhaustion of clists and increases the output throughput for 8 cy lines by almost a factor of 2 (on a system where there aren't many other open ttys so clists become exhausted after about 4 active lines (or earlier if TTMAXHIWAT is increased :-]).
ttwrite() behaves very badly when clists are exhausted: (1) it sleeps on lbolt instead of on TSA_OLOWAT(tp). This could be fixed adequately by sleeping on TSA_OLOWAT(tp). The nonzero reserved count guaratees that space will become available independent of other ttys, and a reserved count of 512 is barely enough for efficiency. (2) it drops output if space runs out in the middle of special output processing. This is too hard to fix without hardening the reserved count. The watermark processing guarantees that space doesn't run out only if the advertised space is guaranteed.
Increasing the reserved output queue count defeats the point of dynamic allocation of clists. Previously, about 2K of memory per tty was reserved (the raw queue was already reserved). Now, about 3.5K is reserved. Reserving everything would take a whole 0.5K more.
show more ...
|
#
a59db23b |
| 15-Dec-1995 |
Bruce Evans <bde@FreeBSD.org> |
Disabled the sleep in ttyflush(). It can't work in general because ttyflush() might be called from an interrupt handler. This fixes panics in IXOFF mode at the cost of more failures to send the STA
Disabled the sleep in ttyflush(). It can't work in general because ttyflush() might be called from an interrupt handler. This fixes panics in IXOFF mode at the cost of more failures to send the START character to exit from IXOFF mode.
show more ...
|
#
947803d7 |
| 14-Dec-1995 |
Bruce Evans <bde@FreeBSD.org> |
Restored unused function ttrstrt(). It would be used if the low level drivers supported inter-character delays.
|
#
87b6de2b |
| 14-Dec-1995 |
Poul-Henning Kamp <phk@FreeBSD.org> |
A Major staticize sweep. Generates a couple of warnings that I'll deal with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
|
#
6ba9ebce |
| 13-Dec-1995 |
Julian Elischer <julian@FreeBSD.org> |
devsw tables are now arrays of POINTERS to struct [cb]devsw seems to work hre just fine though I can't check every file that changed due to limmited h/w, however I've checked enught to be petty happ
devsw tables are now arrays of POINTERS to struct [cb]devsw seems to work hre just fine though I can't check every file that changed due to limmited h/w, however I've checked enught to be petty happy withe hte code..
WARNING... struct lkm[mumble] has changed so it might be an idea to recompile any lkm related programs
show more ...
|
#
efeaf95a |
| 07-Dec-1995 |
David Greenman <dg@FreeBSD.org> |
Untangled the vm.h include file spaghetti.
|
#
bb1140a9 |
| 31-Oct-1995 |
Bruce Evans <bde@FreeBSD.org> |
Fixed initialization of TS_CONNECTED bit in t_state. It wasn't set in open() when CLOCAL is set unless carrier is present.
Fixed initialization of line discipline. It lived across opens. Lines tha
Fixed initialization of TS_CONNECTED bit in t_state. It wasn't set in open() when CLOCAL is set unless carrier is present.
Fixed initialization of line discipline. It lived across opens. Lines that started with the wrong discipline probably didn't work at all, because TS_ISOPEN is only set by TTYDISC.
show more ...
|
#
e7c89b42 |
| 10-Sep-1995 |
Bruce Evans <bde@FreeBSD.org> |
Fix wakeups for TIOCDRAINWAIT. The conditional wakeups introduced in rev 1.59 defeated the point of doing the wakeups (having reduced timeouts take effect immediately).
|
#
af2a00bb |
| 02-Aug-1995 |
Andrey A. Chernov <ache@FreeBSD.org> |
Check for valid speed values in pty drive Check for negative speed values in tty drive Back out valid speed values checking from tty drive Suggested by: bde
|
#
271381b3 |
| 02-Aug-1995 |
Andrey A. Chernov <ache@FreeBSD.org> |
Optimize a bit valid speed search using fact that speed table sorted Submitted by: Obtained from:
|
#
7a82fc78 |
| 02-Aug-1995 |
Andrey A. Chernov <ache@FreeBSD.org> |
Check for valid speeds in TIOCSET* and return EINVAL for incorrect values instead of setting garbadge.
|
#
19829865 |
| 01-Aug-1995 |
Bruce Evans <bde@FreeBSD.org> |
Obtained from: partly from ancient patches of mine via 1.1.5
Change all short variables in `struct tty' to int. Shorts were only right on ancient systems with ints optimized for vaxness over effici
Obtained from: partly from ancient patches of mine via 1.1.5
Change all short variables in `struct tty' to int. Shorts were only right on ancient systems with ints optimized for vaxness over efficiency.
show more ...
|
#
35b46c17 |
| 01-Aug-1995 |
Bruce Evans <bde@FreeBSD.org> |
Obtained from: partly from ancient patches of mine via 1.1.5
Handle MDMBUF a little better. Prepare to handle 4 different kinds of output flow control.
|
#
f91307e2 |
| 31-Jul-1995 |
Bruce Evans <bde@FreeBSD.org> |
Obtained from: an ancient patch of mine via 1.1.5
Clear PENDIN when input is flushed so that the handling of future input doesn't get pessimized.
|
#
9fa18570 |
| 31-Jul-1995 |
Bruce Evans <bde@FreeBSD.org> |
Obtained from: partly from ancient patches of mine via 1.1.5
Introduce TS_CONNECTED and TS_ZOMBIE states. TS_CONNECTED is set while a connection is established. It is set while (TS_CARR_ON or CLOC
Obtained from: partly from ancient patches of mine via 1.1.5
Introduce TS_CONNECTED and TS_ZOMBIE states. TS_CONNECTED is set while a connection is established. It is set while (TS_CARR_ON or CLOCAL is set) and TS_ZOMBIE is clear. TS_ZOMBIE is set for on to off transitions of TS_CARR_ON that occur when CLOCAL is clear and is cleared for off to on transitions of CLOCAL. I/o can only occur while TS_CONNECTED is set. TS_ZOMBIE prevents further i/o.
Split the input-event sleep address TSA_CARR_ON(tp) into TSA_CARR_ON(tp) and TSA_HUP_OR_INPUT(tp). The former address is now used only for off to on carrier transitions and equivalent CLOCAL transitions. The latter is used for all input events, all carrier transitions and certain CLOCAL transitions. There are some harmless extra wakeups for rare connection- related events. Previously there were too many extra wakeups for non-rare input events.
Drivers now call l_modem() instead of setting TS_CARR_ON directly to handle even the initial off to on transition of carrier. They should always have done this. l_modem() now handles TS_CONNECTED and TS_ZOMBIE as well as TS_CARR_ON.
gnu/isdn/iitty.c: Set TS_CONNECTED for first open ourself to go with bogusly setting CLOCAL.
i386/isa/syscons.c, i386/isa/pcvt/pcvt_drv.c: We fake carrier, so don't also fake CLOCAL.
kern/tty.c: Testing TS_CONNECTED instead of TS_CARR_ON fixes TIOCCONS forgetting to test CLOCAL. TS_ISOPEN was tested instead, but that broke when we disabled the clearing of TS_ISOPEN for certain transitions of CLOCAL.
Testing TS_CONNECTED fixes ttyselect() returning false success for output to devices in state !TS_CARR_ON && !CLOCAL.
Optimize the other selwakeup() call (this is not related to the other changes).
kern/tty_pty.c: ptcopen() can be declared in traditional C now that dev_t isn't short.
show more ...
|
#
177af312 |
| 31-Jul-1995 |
Bruce Evans <bde@FreeBSD.org> |
Assorted cosmetic changes:
Make more functions static.
tty.c: Use tcflag_t (u_long) and cc_t instead of u_char and int/long.
Don't record values that are only evaluated once.
Compare ints using i
Assorted cosmetic changes:
Make more functions static.
tty.c: Use tcflag_t (u_long) and cc_t instead of u_char and int/long.
Don't record values that are only evaluated once.
Compare ints using imin(), not min(). min() is for comparing u_ints. Old versions of tty.c used the type-safe but multiple-evaluation-unsafe macro MIN(). The args are apparently never negative; otherwise this change would be non-cosmetic.
Don't repeat the loop test in ttywait().
tty.h: Improve English in and formatting of comments.
show more ...
|
#
f3b37f91 |
| 31-Jul-1995 |
Bruce Evans <bde@FreeBSD.org> |
Improve input flow control.
Use input buffer watermarks of TTYHOG-512 (high) and (high)*7/8 (low) instead of TTYHOG/2 (high) and TTYHOG/5 (low) to agree with some drivers. 512 is magic and some thi
Improve input flow control.
Use input buffer watermarks of TTYHOG-512 (high) and (high)*7/8 (low) instead of TTYHOG/2 (high) and TTYHOG/5 (low) to agree with some drivers. 512 is magic and some things depended on TTYHOG/2 >= TTYHOG-512 to work; now they depend on the 512 magic not changing and TTYHOG-512 being significantly larger than 0. This should be handled in ttsetwater().
Separate the decision about whether to do input flow control from doing it. ttyblock() now just starts input flow control (hardware and/or software) and there is a new function ttyunblock() to stop it. The decisions are the same except for the watermark changes and allowing for input expansion for PARMRK.
When flushing input, try harder at first to send a start character if required, but give up if the first attempt fails.
cy.c, rc.c, sio.c: Simplify: let ttyinput() handle input flow control if it is not being bypassed. Use ttyblock() to start flow control otherwise.
rc.c: Use same input flow control test as elsewhere: test in a more efficient order and start flow control at >= highwater instead of at > highwater.
show more ...
|