Commit Graph

51 Commits

Author SHA1 Message Date
bde
4f9cf53f2a Increased column widths for tty input watermark fields so that watermarks
for 11520-byte buffers for 115200 bps are displayed properly.

Fixed my recent printf format error fixes.  %p is almost unusable
in tables, since its width and format are unknown/machine-dependent.
Use %8lx and cast pointers to (u_long)(void*).  This is still quite
broken, e.g., for machines with 64-bit pointers.
1998-08-19 01:32:28 +00:00
bde
91d0197e22 Fixed printf format errors. 1998-07-06 20:28:08 +00:00
bde
0e5d258a33 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.
1998-03-07 15:36:29 +00:00
bde
9b227c83b9 VVMIO -> VOBJBUF as in pstat.c. 1998-01-17 16:58:55 +00:00
dyson
f17a0b9a02 Make pstat.c compile, since in the new kernel code, VVMIO doesn't
exist anymore.
1998-01-06 05:33:28 +00:00
julian
ac07cf2063 Reviewed by: various.
Ever since I first say the way the mount flags were used I've hated the
fact that modes, and events, internal and exported, and short-term
and long term flags are all thrown together. Finally it's annoyed me enough..
This patch to the entire FreeBSD tree adds a second mount flag word
to the mount struct. it is not exported to userspace. I have moved
some of the non exported flags over to this word. this means that we now
have 8 free bits in the mount flags. There are another two that might
well move over, but which I'm not sure about.
The only user visible change would have been in pstat -v, except
that davidg has disabled it anyhow.
I'd still like to move the state flags and the 'command' flags
apart from each other.. e.g. MNT_FORCE really doesn't have the
same semantics as MNT_RDONLY, but that's left  for another day.
1997-11-12 05:42:33 +00:00
dg
6587419322 "Fixed" pstat -T by avoiding the vnode stats. Disabled pstat -v since
we no longer support that sysctl (in my opinion, pstat -v is a security
hole in any case).
1997-10-19 18:41:23 +00:00
charnier
7cf76a30e2 Use err(3). Add usage().
Default source of tables (-M) is /dev/mem, not /dev/kmem.
1997-10-09 07:22:08 +00:00
peter
18758c40e7 Update to include some of the newer vnode flags and remove some stale ones. 1997-08-30 20:18:49 +00:00
peter
c837b57568 Previous commit to remove -I/sys broke 'make world', miscfs/union/*.h is
not (yet?) installed in /usr/include.
1997-07-15 07:03:00 +00:00
guido
5d0f6e11e4 Remove -I/sys 1997-07-13 11:51:42 +00:00
imp
15c4d207bc compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
bde
eb895393d0 Removed `#define KERNEL'. This was a hack-around for nfs.h being broken
in the Lite2 merge to not export some nfs constants.  It started causing
warnings when I added a kernel-only #define for DIRBLKSIZ.

Removed `#define NFS'.  This was an old, bad interface for telling
<sys/mount.h> to export nfs stuff.
1997-03-29 12:50:41 +00:00
peter
c599221790 - update MNT_* flags to match lite2 properly. get rid of old #if 0 flags
that are gone, add new missing ones.
- don't dereference kernel relative pointers in user space for() loops, it
doesn't work real well.
1997-03-25 15:48:14 +00:00
peter
69febf94b4 Merge Lite2 changes 1997-03-11 13:00:41 +00:00
peter
32d6b795de Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
alex
96a2ffcea1 Fix a typo, putput --> output.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-10-27 23:12:48 +00:00
joerg
c11c0cfa92 Make pstat -s (aka. sswapinfo) print ``[NFS]'' as opposed to
``/dev/??'' for NFS swap.

I had a hard time to figure out whether it's possible to print the
actual mounted swap file, but i failed to get any information.  If
anybody knows how to get ``192.168.0.1:/swap.192.168.0.3'' instead,
please step forward!
1996-10-20 12:54:55 +00:00
bde
f6b36255b3 Include <fcntl.h> so that this doesn't depend on the KERNEL version
of <sys/file.h> including <sys/fcntl.h>.  Only the !KERNEL version
of <sys/file.h> will do that when I unspam the kernel headers.
1996-09-29 19:25:10 +00:00
mpp
2370082340 Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
mpp
c65ad2d348 Document the -i backward compatibility option (same as -v).
Submitted by:	Faried Nawaz
1996-07-03 02:11:39 +00:00
smpatel
1c80bb6275 Enable the -M and -N options of swapinfo, as advertised in the usage line. 1996-05-29 19:57:25 +00:00
jkh
ae4437e149 Properly free up resources allocated in swapmode(). This is not quite
the patch submitted by Philippe Charnier since he wasn't actually freeing
the resources early enough (an earlier return could be invoked, leaving
the resources still allocated), but he definitely pointed it out.  Merci,
Philippe!
Suggested-By: Philippe Charnier <charnier@lirmm.fr>
1996-05-09 07:13:16 +00:00
joerg
639a966853 Mention swapinfo as .Nm, so it will be referenced by mkwhatis. 1996-04-17 20:50:44 +00:00
hsu
99e932d8a9 From Lite2: file LIST changes. 1996-03-11 05:41:43 +00:00
dyson
797ae8c58b Fix pstat to sync up with recent changes with swap space allocation. 1996-03-04 12:40:29 +00:00
mpp
0f9c3c7f7d Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>
1996-01-20 07:29:11 +00:00
phk
76d099946b #include <sys/user.h>
I belive make world will work again now.
1995-10-29 09:57:50 +00:00
bde
6fc1aab2ad Document SESS, fix PGRP (now PGID), and document some more STATE flags.
Submitted by:	clemc@locus.com and edited by me.
1995-10-06 20:58:24 +00:00
peter
49527e5dc1 Add support for the "si" Specialix driver in "pstat -t"
The si driver is different to the others in that the _si_tty symbol
is a pointer, not the base of an array.
1995-09-22 20:01:34 +00:00
dg
c287635749 Do the mountlist traversal the way it was done in 4.4-Lite2. 1995-08-11 23:40:31 +00:00
jkh
1ff87a0448 Since the mountlist is now a circular queue, adjust the names of the
queue members used and also add a check to see when we've wrapped
around again.
1995-08-11 20:49:26 +00:00
bde
c3bba36154 Document new tty states TS_CONNECTED, TS_SO_OLOWAT, TS_SO_OCOMPLETE,
TS_CAR_OFLOW, TS_CTS_OFLOW, TS_DSR_OFLOW and TS_ZOMBIE.

Document old tty states TS_ASLEEP and TS_TTSTOP more completely.

Document old tty states TS_ASYNC and TS_TBLOCK.

Document not so old tty states TS_CAN_BYPASS_L_RINT and TS_SNOOP.

Don't document nonexistent state TS_HUPCL.

Document the current line disciplines instead of prehistoric ones.
1995-07-21 17:03:34 +00:00
bde
5e07f6d51d Support cy driver. All tty drivers require namelist stuff here or they
won't get reported.  The pcvt, cx and iitty drivers aren't supported.

Report new tty states TS_CONNECTED, TS_SO_OLOWAT, TS_SO_OCOMPLETE,
TS_CAR_OFLOW, TS_CTS_OFLOW, TS_DSR_OFLOW and TS_ZOMBIE if they are
defined.

Report old tty states TS_WOPEN and TS_ASLEEP only if they are defined.

Report not so old tty states TS_CAN_BYPASS_L_RINT and TS_SNOOP only
if they are defined (instead of if __FreeBSD__ is defined).
1995-07-21 17:02:29 +00:00
dfr
654515d655 Changes to support version 3 of the NFS protocol.
The version 2 support has been tested (client+server) against FreeBSD-2.0,
IRIX 5.3 and FreeBSD-current (using a loopback mount).  The version 2 support
is stable AFAIK.
The version 3 support has been tested with a loopback mount and minimally
against an IRIX 5.3 server.  It needs more testing and may have problems.
I have patched amd to support the new variable length filehandles although
it will still only use version 2 of the protocol.

Before booting a kernel with these changes, nfs clients will need to at least
build and install /usr/sbin/mount_nfs.  Servers will need to build and
install /usr/sbin/mountd.

NFS diskless support is untested.

Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
1995-06-27 11:07:30 +00:00
rgrimes
5a145b5eb1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
phk
7ba69a8961 Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
1995-05-14 03:37:40 +00:00
dg
46feb52111 Updated to work with Poul-Henning's recent changes to the swap device
table.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:08:35 +00:00
phk
60ed258da2 Make pstat act like swapinfo if so invoked. 1995-05-13 17:25:23 +00:00
ache
3f87cef065 Add FreeBSD-specific TS_* states 1995-05-07 23:19:53 +00:00
ache
01df25d7a8 Enable sio driver and upcoming rc driver
Add more line disciplines
1995-05-07 22:15:46 +00:00
sos
4eaa8c72ac Corrected variable names for syscons support. 1995-04-28 09:08:18 +00:00
ats
11875150fb Submitted by: John Capo
Bogus pstat usage message from pstat:
usage: pstat -Tfnstv [system] [-M core] [-N system]

[system] is not mentioned in the man page and I don't
see where it is used in the code either.
Added also a [] around the first options to show them as optional, ATS.
1994-12-28 00:47:03 +00:00
ache
9255659301 Fix for 'pstat -t' works on vtys
Submitted by: jhay@mikom.csir.co.za
1994-11-03 11:41:34 +00:00
dg
46f1b78864 Clean up after last commit: get rid of some unused variables. 1994-10-10 05:19:11 +00:00
dg
fc0817892f Rewrote swap code to work with our swap layout. Much of the code stolen
from swapinfo.c.
1994-10-10 02:33:50 +00:00
dg
6430169f0c #if 0'd out the meat of the swap code until I get a chance to rewrite it. 1994-10-09 07:42:32 +00:00
wollman
f19a26b912 Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
dg
17e7606224 Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00