diff options
author | bde <bde@FreeBSD.org> | 1998-03-07 15:36:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-03-07 15:36:29 +0000 |
commit | ab37e4723bce19187dad7e0b6f58bb0940032588 (patch) | |
tree | e9d95fa1b9dd666ce7c0730bf4977e8f3c166395 /usr.sbin | |
parent | 5bf363454e7e3df02636b0ab1023fafd9fb38236 (diff) | |
download | FreeBSD-src-ab37e4723bce19187dad7e0b6f58bb0940032588.zip FreeBSD-src-ab37e4723bce19187dad7e0b6f58bb0940032588.tar.gz |
Set the input and output buffer sizes and the input buffer watermarks
dynamically depending on the line speed(s). This should give the old
sizes and watermarks until drivers are changed.
Display the input watermarks in pstat and sicontrol.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 10 | ||||
-rw-r--r-- | usr.sbin/sicontrol/sicontrol.c | 8 |
2 files changed, 11 insertions, 7 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 7fc3f08..d5a26a6 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95"; #endif static const char rcsid[] = - "$Id: pstat.c,v 1.33 1997/11/12 05:42:33 julian Exp $"; + "$Id: pstat.c,v 1.34 1998/01/06 05:33:28 dyson Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -727,7 +727,8 @@ kinfo_vnodes(avnodes) return ((struct e_vnode *)vbuf); } -char hdr[]=" LINE RAW CAN OUT HWT LWT COL STATE SESS PGID DISC\n"; +char hdr[] = +" LINE RAW CAN OUT IHWT LWT OHWT LWT COL STATE SESS PGID DISC\n"; int ttyspace = 128; void @@ -894,8 +895,9 @@ ttyprt(tp, line) else (void)printf("%7s ", name); (void)printf("%2d %3d ", tp->t_rawq.c_cc, tp->t_canq.c_cc); - (void)printf("%3d %4d %3d %7d ", tp->t_outq.c_cc, - tp->t_hiwat, tp->t_lowat, tp->t_column); + (void)printf("%3d %4d %3d %4d %3d %7d ", tp->t_outq.c_cc, + tp->t_ihiwat, tp->t_ilowat, tp->t_ohiwat, tp->t_olowat, + tp->t_column); for (i = j = 0; ttystates[i].flag; i++) if (tp->t_state&ttystates[i].flag) state[j++] = ttystates[i].val; diff --git a/usr.sbin/sicontrol/sicontrol.c b/usr.sbin/sicontrol/sicontrol.c index eb93819..cda0346 100644 --- a/usr.sbin/sicontrol/sicontrol.c +++ b/usr.sbin/sicontrol/sicontrol.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: sicontrol.c,v 1.7 1997/10/15 06:43:54 charnier Exp $"; #endif /* not lint */ #include <ctype.h> @@ -488,8 +488,10 @@ char **av; printf("\tt_dev 0x%x\n", TTY.t_dev); /* dev_t t_dev */ printf("\tt_flags 0x%x\n", TTY.t_flags); /* int t_flags */ printf("\tt_state 0x%x\n", TTY.t_state); /* int t_state */ - printf("\tt_hiwat %d.\n", TTY.t_hiwat); /* short t_hiwat */ - printf("\tt_lowat %d.\n", TTY.t_lowat); /* short t_lowat */ + printf("\tt_ihiwat %d.\n", TTY.t_ihiwat); /* int t_ihiwat */ + printf("\tt_ilowat %d.\n", TTY.t_ilowat); /* int t_ilowat */ + printf("\tt_ohiwat %d.\n", TTY.t_ohiwat); /* int t_ohiwat */ + printf("\tt_olowat %d.\n", TTY.t_olowat); /* int t_olowat */ printf("\tt_iflag 0x%x\n", TTY.t_iflag); /* t_iflag */ printf("\tt_oflag 0x%x\n", TTY.t_oflag); /* t_oflag */ printf("\tt_cflag 0x%x\n", TTY.t_cflag); /* t_cflag */ |