History log of /freebsd-10.0-release/usr.sbin/pstat/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


225847 28-Sep-2011 ed

Get rid of major/minor number distinction.

As of FreeBSD 6, devices can only be opened through devfs. These device
nodes don't have major and minor numbers anymore. The st_rdev field in
struct stat is simply based a copy of st_ino.

Simply display device numbers as hexadecimal, using "%#jx". This is
allowed by POSIX, since it explicitly states things like the following
(example taken from ls(1)):

"If the file is a character special or block special file, the
size of the file may be replaced with implementation-defined
information associated with the device in question."

This makes the output of these commands more compact. For example, ls(1)
now uses approximately four columns less. While there, simplify the
column length calculation from ls(1) by calling snprintf() with a NULL
buffer.

Don't be afraid; if needed one can still obtain individual major/minor
numbers using stat(1).


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


196244 15-Aug-2009 stas

- Avoid overflowing the swap size counters in human-readable mode
by introducing the new CONVERT_BLOCKS macro which operates on
sizes already converted to number of blocks. With this macro
it is not longer needed to perform needless multiplication by
blocksize just to divide on it later in CONVERT macro.

Approved by: re (kib)
MFC after: 1 week


194014 11-Jun-2009 stas

- Make pstat(8) WARNS=6 safe.
- While here, eliminate the check for len > 0 in ttymode_sysctl
as the code is able to handle this case well.

Reviewed by: ed (initial version)


193982 11-Jun-2009 ed

Correct my previous commit to pstat(8).

Not only mark the strings inside the array as const, but do the same for
the elements of the array itself.

Submitted by: Christoph Mallon


193978 11-Jun-2009 ed

Make most of pstat(8) build with WARNS=6.

There is still an issue with the nlists, which I'm not quite sure how to
solve, so I'm leaving WARNS set to 3 right now.


188487 11-Feb-2009 ed

Serialize write() calls on TTYs.

Just like the old TTY layer, the current MPSAFE TTY layer does not make
any attempt to serialize calls of write(). Data is copied into the
kernel in 256 (TTY_STACKBUF) byte chunks. If a write() call occurs at
the same time, the data may interleave. This is especially likely when
the TTY starts blocking, because the output queue reaches the high
watermark.

I've implemented this by adding a new flag, TTY_BUSY_OUT, which is used
to mark a TTY as having a thread stuck in write(). Because I don't want
non-blocking processes to be possibly blocked by a sleeping thread, I'm
still allowing it to bypass the protection. According to this message,
the Linux kernel returns EAGAIN in such cases, but I think that's a
little too restrictive:

http://kerneltrap.org/index.php?q=mailarchive/linux-kernel/2007/5/2/85418/thread

PR: kern/118287


188147 05-Feb-2009 ed

Don't leave the console TTY constantly open.

When we leave the console TTY constantly open, we never reset the
termios attributes. This causes output processing, echoing, etc. not to
be reset to the proper values when going into single user mode after the
system has booted. It also causes nl-to-crnl-conversion not to take
place during shutdown, which causes a `staircase effect'.

This patch adds a new TTY flag, TF_OPENED_CONS, which is set when the
TTY is opened through /dev/console. Because the flags are only used by
the kernel and the pstat(8) utility, I've decided to renumber the TTY
flags. This shouldn't be an issue, because the TTY layer is not yet part
of a stable release.

Reported by: Mark Atkinson <atkin901 yahoo com>
Tested by: sepotvin


184522 01-Nov-2008 ed

Clamp the values of t_column to 5 digits in `pstat -t' and `show all ttys'.

We often run into these very high column numbers when we run curses
applications, because they don't print any newlines. This messes up the
table output of `pstat -t'. If these numbers get really high, they
aren't of any use to the reader anyway. Convert them to `99999' when
they run out of bounds.


183276 22-Sep-2008 ed

Introduce a hooks layer for the MPSAFE TTY layer.

One of the features that prevented us from fixing some of the TTY
consumers to work once again, was an interface that allowed consumers to
do the following:

- `Sniff' incoming data, which is used by the snp(4) driver.

- Take direct control of the input and output paths of a TTY, which is
used by ng_tty(4), ppp(4), sl(4), etc.

There's no practical advantage in committing a hooks layer without
having any consumers. In P4 there is a preliminary port of snp(4) and
thompsa@ is busy porting ng_tty(4) to this interface. I already want to
have it in the tree, because this may stimulate others to work on the
remaining modules.

Discussed with: thompsa
Obtained from: //depot/projects/mpsafetty/...


181939 20-Aug-2008 ed

Fix a small typo in the pstat(8) manual page.

The second LOW column of the pstat(8) command refers to the low
watermark of the output queue.


181905 20-Aug-2008 ed

Integrate the new MPSAFE TTY layer to the FreeBSD operating system.

The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

The old TTY layer has a driver model that is not abstract enough to
make it friendly to use. A good example is the output path, where the
device drivers directly access the output buffers. This means that an
in-kernel PPP implementation must always convert network buffers into
TTY buffers.

If a PPP implementation would be built on top of the new TTY layer
(still needs a hooks layer, though), it would allow the PPP
implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

With the old TTY layer, it isn't entirely safe to destroy TTY's from
the system. This implementation has a two-step destructing design,
where the driver first abandons the TTY. After all threads have left
the TTY, the TTY layer calls a routine in the driver, which can be
used to free resources (unit numbers, etc).

The pts(4) driver also implements this feature, which means
posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

One of the major improvements is the per-TTY mutex, which is expected
to improve scalability when compared to the old Giant locking.
Another change is the unbuffered copying to userspace, which is both
used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from: //depot/projects/mpsafetty/...
Approved by: philip (ex-mentor)
Discussed: on the lists, at BSDCan, at the DevSummit
Sponsored by: Snow B.V., the Netherlands
dcons(4) fixed by: kan


180559 16-Jul-2008 ed

Remove OTTYDISC, NETLDISC and NTTYDISC definitions.

When I ported most applications away from <sgtty.h>, I noticed none of
them were actually using these definitions. I kept them in place,
because I didn't want to touch tools like pstat(8) and stty(1).

In preparation for the MPSAFE TTY layer, remove these definitions. This
doesn't have any impact with respect to binary compatibility (see
tty_conf.c).

We couldn now add an #error to <sys/ioctl_compat.h> when included
outside the kernel. Unfortunately, kdump's mkioctls includes this file
unconditionally.

Approved by: philip (mentor)


178987 14-May-2008 remko

Fix pstat behaviour when using coredumps. The reference to tp was
incorrect and should have been poining to &tty, tp is a virtual
address from the coredump, while we should obtain the address through
the tty struct.

Approved by: imp (mentor, implicit trivial changes)
MFC after: 1 week
Submitted by: Ed Schouten (ed at 80836 dot nl)


171195 04-Jul-2007 scf

Significantly reduce the memory leak as noted in BUGS section for
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.

Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.

Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().

New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.

Bump __FreeBSD_version to 700050 due to API change.

PR: kern/99826
Approved by: wes
Approved by: re (kensmith)


169177 01-May-2007 ache

Back out all POSIXified *env() changes.

Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.

Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.


169134 30-Apr-2007 ache

Preparing for upcoming POSIXed putenv() rewrite:
don't allow const as putenv() arg, dup it


168292 03-Apr-2007 ru

- Recognize -g and -m in pstat(8) too.
- Document -g and -m support in swapinfo(8).

Reviewed by: markm


168227 01-Apr-2007 markm

Add -m (megabytes) and -g (gigabytes) options. I'm tired of being told
I can't do this.

MFC: 1 month


166696 14-Feb-2007 jhb

Another crashdump fix: nfiles was renamed to openfiles in 5.x.

MFC after: 3 days


152558 17-Nov-2005 rwatson

Print (total - used) as the amount of available swap for a swap device
when printing swapinfo output, rather than (total), as that is (strictly
speaking) more accurate.

Pointed out by: Rob <spamrefuse at yahoo dot com>
MFC after: 3 days


144841 09-Apr-2005 stefanf

Remove unused variables.


143936 21-Mar-2005 keramida

Use a designator for initializing only one member of the nlist
structs, making pstat WARNS=3 clean on i386, sparc64 and amd64.

Bump WARNS level to 3.

Approved by: sam, pjd


143929 21-Mar-2005 keramida

- Add a -h flag to pstat to print swap sizes in "human readable"
format, with humanize_number(3).

- Move the common parts of the code that prints the sizes for a single
swap device and the total to a single function to avoid repeating
the humanize_number() stuff all over the place.

- Change the type of CONVERT() from intmax_t to int64_t, since this
makes calling humanize_number() easier but cast the values to
intmax_t before printing them, to make use of the %jd format that
printf() supports.

- Document the new -h flag in the manpage and bump its date.

Approved by: pjd
Useful tips: brooks
MFC after: 2 weeks


140442 18-Jan-2005 ru

Sort sections.


138129 27-Nov-2004 das

Don't include sys/user.h merely for its side-effect of recursively
including other headers.


137579 11-Nov-2004 dds

Corrected the description of the -t output columns to reflect reality.

MFC after: 2 weeks


133249 07-Aug-2004 imp

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)


131531 03-Jul-2004 ru

Eliminated double whitespace.


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


130267 09-Jun-2004 phk

Update kvm mode to match kernel changes.


127449 26-Mar-2004 ru

-N without -M is pointless.


127447 26-Mar-2004 ru

Update information of how pstat(8) accesses the running system.


126643 05-Mar-2004 markm

Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).

There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.

Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".

Tested on: i386 sparc64


118278 31-Jul-2003 phk

Remove options processing for dumping swapdevice radix map.


118275 31-Jul-2003 phk

When dumping swap information, drop the "Type" field which displays
a constant string of little information these days.

This removes the need to #include <vm/swap_pager.h> which is due to
become a kernel only include file.


115882 05-Jun-2003 phk

Report NODEV devices as <NFSfile>


114601 03-May-2003 obrien

Use __FBSDID over rcsid[]. Protect copyright[] where needed.


113091 04-Apr-2003 obrien

style.Makefile(5)


110148 31-Jan-2003 robert

- Modernize the format of the open file showing mode output:
. Print the column headers centered (except for the left-aligned
TYPE header) using a different header for architectures where
sizeof(uintptr_t) is not four.
. Consistently do not print a '0x' prefix for hexadecimal values.
. Separate columns by a single space character.
. Pad the columns presenting an address or offset enough to hold
their respective largest value.
. Do not restrict the output to unknown file types, inodes and
sockets; allow displaying of pipes, fifos, kqueues and crypto file
descriptors too.
- Shorten an overly long line by removing a cast of printf's return
value to void.

PR: alpha/45240
Tested on: i386, sparc64, alpha


109153 13-Jan-2003 dillon

Bow to the whining masses and change a union back into void *. Retain
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.


109123 12-Jan-2003 dillon

Change struct file f_data to un_data, a union of the correct struct
pointer types, and remove a huge number of casts from code using it.

Change struct xfile xf_data to xun_data (ABI is still compatible).

If we need to add a #define for f_data and xf_data we can, but I don't
think it will be necessary. There are no operational changes in this
commit.


108602 03-Jan-2003 phk

Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.


108457 30-Dec-2002 mike

Back out rev 1.78; getbsize(3)'s original interface has been restored.

Approved by: markm


105811 23-Oct-2002 markm

Adjust argument passed to getbsize().


101044 31-Jul-2002 des

Use struct xfile, not struct file.


99968 14-Jul-2002 charnier

The .Nm utility


97378 28-May-2002 des

If unable to retrive maxfiles / openfiles, fail rather than print garbage.
Gratuitously rename a couple of variables.
Remove unused macros.
Add NAI copyright.

Sponsored by: DARPA, NAI Labs


97375 28-May-2002 des

Remove the code that was disabled in a recent commit; it is of very limited
use and has been broken in -CURRENT for a long time.
Clean up unneeded entries in the nlist array.
Implement kvm-backed ttymode (which we never had before). Incomplete as we
do not (yet?) print the correct device, sid or pgid.

Sponsored by: DARPA, NAI Labs


97368 28-May-2002 des

Oops, don't print /dev/ twice.


97367 28-May-2002 des

struct tty -> struct xtty. Reenable some previously disable code, but
temporarily disable some rarely-used code that needs more work.

Sponsored by: DARPA, NAI Labs


97176 23-May-2002 des

Un-kmemize. Portions of the tty mode code have been temporarily disabled;
everything else, including dead kernel support, works just like before.

Sponsored by: DARPA, NAI Labs


97174 23-May-2002 des

Nits in previous commits.

Sponsored by: DARPA, NAI Labs


97173 23-May-2002 des

Cull large amounts of dead code (deprecated since 1997)

Sponsored by: DARPA, NAI Labs


97172 23-May-2002 des

ANSIfy.

Sponsored by: DARPA, NAI Labs


97171 23-May-2002 des

Staticize.

Sponsored by: DARPA, NAI Labs


97170 23-May-2002 des

Whitespace cleanup.

Sponsored by: DARPA, NAI Labs


97169 23-May-2002 des

Unbreak tty mode (cons was renamed to constty a while ago)

Sponsored by: DARPA, NAI Labs


96247 09-May-2002 joe

Replace /kernel with /boot/kernel/kernel.

PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


95615 28-Apr-2002 iedowse

Oops, remove references to NLOCKED and NWANTED, now that they no
longer exist.


85339 23-Oct-2001 dillon

Change the vnode list under the mount point from a LIST to a TAILQ
in preparation for an implementation of limiting code for kern.maxvnodes.

MFC after: 3 days


83653 18-Sep-2001 peter

Userland part of nfs client/server split and cleanup.


82664 31-Aug-2001 ru

SECURITY: Drop `setgid kmem' bit as early as possible.


80676 30-Jul-2001 tmm

Fix the third argument to sysctlbyname() to be of the type size_t *
(instead of int *).

MFC after: 2 days


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


79537 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79259 04-Jul-2001 dd

Make the '-tn' flag combination print the major/minor numbers of the
line as documented intead of a full column of 0's.


78737 24-Jun-2001 dd

Nuke unused variables.


78378 17-Jun-2001 dd

Don't call printf without a format string (harmless in this case).


77656 03-Jun-2001 schweikh

Fix a grammar bogon and removed whitespace at EOL.
MFC after: 1 week


77575 01-Jun-2001 ru

Remove vestiges of MFS.


77031 23-May-2001 ru

- FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file
systems were repo-copied from sys/miscfs to sys/fs.

- Renamed the following file systems and their modules:
fdesc -> fdescfs, portal -> portalfs, union -> unionfs.

- Renamed corresponding kernel options:
FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS.

- Install header files for the above file systems.

- Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland
Makefiles.


76393 09-May-2001 alfred

Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and
Kirk finally has ditched them. While I'm here also ditch FSHLOCK.


76117 29-Apr-2001 grog

Revert consequences of changes to mount.h, part 2.

Requested by: bde


75854 23-Apr-2001 grog

Include necessary header files, in preparation for fixing breakage in
sys/mount.h.

Suggested by: phk


75167 04-Apr-2001 ru

mdoc(7) police: you don't need to use enclose macros for blocks of text.


74976 29-Mar-2001 dd

Note that the -v option is not supported. Don't remove the actual
text because the code is still in pstat.c, and may be reincarnated at
some point.

PR: 26054
Approved by: nik


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


72126 07-Feb-2001 ru

mdoc(7) police: Change -filled displays (which just happen
to be the same as -ragged in the current implementation) to
-ragged. With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.


71152 17-Jan-2001 ru

mdoc(7) police: compact a few lists for better output.


71127 16-Jan-2001 ben

Ooops, the -M and -N flags were already documented, though not very clearly.
Remove the old description in favour of the new description which lists the
-M and -N flags along with all the other flags. This is consistent with the
manual pages for ps, netstat, iostat, etc.


71126 16-Jan-2001 ben

document -M and -N flags.

PR: 24323
Submitted by: Jesse Monroy <opentrax@email.com>


70511 30-Dec-2000 assar

update to the current set of mnt_, ufs_ and nfs_ flags
also make man-page correspond to the code


70510 30-Dec-2000 phk

Use the MACRO API to <sys/queue.h>.

Submitted by: "Peter Avalos" <pavalos@theshell.com>


70403 27-Dec-2000 ru

Prepare for mdoc(7)NG.


69260 27-Nov-2000 kris

Constify


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


56854 29-Jan-2000 peter

Don't report TABLDISC - it "doesn't happen(TM)"


55206 29-Dec-1999 peter

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.


54163 05-Dec-1999 charnier

Add extra columns for printing longer device name.


53762 27-Nov-1999 charnier

Merge fprintf and exit into errx.
Use .Ev for environment variable.


53452 20-Nov-1999 phk

struct mountlist and struct mount.mnt_list have no business being
a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively.

This removes ugly mp != (void*)&mountlist comparisons.

Requested by: phk
Submitted by: Jake Burkholder jake@checker.org
PR: 14967


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


50409 26-Aug-1999 phk

VALIASED doesn't exist any more.


49539 08-Aug-1999 phk

Add support for picking up ttys with sysctl(kern.ttys).


47018 11-May-1999 peter

Tidy up references to <sys/rlist.h> and support for the old swap management
that went away in January.


43049 22-Jan-1999 dillon

Fix formatting bug with [NFS swap] vs /dev/DEVNAME


43046 22-Jan-1999 dillon

Make pstat use new kvm_getswapinfo() libkvm call.


42955 21-Jan-1999 dillon

Update pstat -s to handle both old and new swapper.
Add pstat -ss to dump new swapper's radix tree.


38429 19-Aug-1998 bde

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.


37450 06-Jul-1998 bde

Fixed printf format errors.


34185 07-Mar-1998 bde

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.


32596 17-Jan-1998 bde

VVMIO -> VOBJBUF as in pstat.c.


32287 06-Jan-1998 dyson

Make pstat.c compile, since in the new kernel code, VVMIO doesn't
exist anymore.


31132 12-Nov-1997 julian

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.


30585 19-Oct-1997 dg

"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).


30243 09-Oct-1997 charnier

Use err(3). Add usage().
Default source of tables (-M) is /dev/mem, not /dev/kmem.


28944 30-Aug-1997 peter

Update to include some of the newer vnode flags and remove some stale ones.


27412 15-Jul-1997 peter

Previous commit to remove -I/sys broke 'make world', miscfs/union/*.h is
not (yet?) installed in /usr/include.


27362 13-Jul-1997 guido

Remove -I/sys


24428 31-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


24382 29-Mar-1997 bde

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.


24265 25-Mar-1997 peter

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


23687 11-Mar-1997 peter

Merge Lite2 changes


22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

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.


19217 27-Oct-1996 alex

Fix a typo, putput --> output.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


19055 20-Oct-1996 joerg

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!


18570 29-Sep-1996 bde

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.


17797 23-Aug-1996 mpp

Use the .Bx macro where appropriate.


16934 03-Jul-1996 mpp

Document the -i backward compatibility option (same as -v).

Submitted by: Faried Nawaz


15983 29-May-1996 smpatel

Enable the -M and -N options of swapinfo, as advertised in the usage line.


15693 09-May-1996 jkh

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>


15279 17-Apr-1996 joerg

Mention swapinfo as .Nm, so it will be referenced by mkwhatis.


14524 11-Mar-1996 hsu

From Lite2: file LIST changes.


14372 04-Mar-1996 dyson

Fix pstat to sync up with recent changes with swap space allocation.


13511 20-Jan-1996 mpp

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>


11915 29-Oct-1995 phk

#include <sys/user.h>
I belive make world will work again now.


11285 06-Oct-1995 bde

Document SESS, fix PGRP (now PGID), and document some more STATE flags.
Submitted by: clemc@locus.com and edited by me.


10964 22-Sep-1995 peter

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.


10032 11-Aug-1995 dg

Do the mountlist traversal the way it was done in 4.4-Lite2.


10031 11-Aug-1995 jkh

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.


9621 21-Jul-1995 bde

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.


9620 21-Jul-1995 bde

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


9336 27-Jun-1995 dfr

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>


8857 30-May-1995 rgrimes

Remove trailing whitespace.


8507 14-May-1995 phk

Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.


8505 14-May-1995 dg

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


8495 13-May-1995 phk

Make pstat act like swapinfo if so invoked.


8335 07-May-1995 ache

Add FreeBSD-specific TS_* states


8332 07-May-1995 ache

Enable sio driver and upcoming rc driver
Add more line disciplines


8122 28-Apr-1995 sos

Corrected variable names for syscons support.


5251 28-Dec-1994 ats

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.


4114 03-Nov-1994 ache

Fix for 'pstat -t' works on vtys
Submitted by: jhay@mikom.csir.co.za


3494 10-Oct-1994 dg

Clean up after last commit: get rid of some unused variables.


3492 10-Oct-1994 dg

Rewrote swap code to work with our swap layout. Much of the code stolen
from swapinfo.c.


3453 09-Oct-1994 dg

#if 0'd out the meat of the swap code until I get a chance to rewrite it.


1863 05-Aug-1994 wollman

Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).


1856 05-Aug-1994 dg

Converted 'vmunix' to 'kernel'.


1554 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1553,
which included commits to RCS files with non-trunk default branches.