summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat/pstat.c
Commit message (Collapse)AuthorAgeFilesLines
* - Modernize the format of the open file showing mode output:robert2003-01-311-10/+23
| | | | | | | | | | | | | | | | | | . 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
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-131-1/+1
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-121-1/+1
| | | | | | | | | | 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.
* Make struct swblock kernel only, to make vm/swap_pager.h userland includable.phk2003-01-031-1/+1
| | | | | 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.
* Back out rev 1.78; getbsize(3)'s original interface has been restored.mike2002-12-301-8/+6
| | | | Approved by: markm
* Adjust argument passed to getbsize().markm2002-10-231-6/+8
|
* Use struct xfile, not struct file.des2002-07-311-26/+15
|
* If unable to retrive maxfiles / openfiles, fail rather than print garbage.des2002-05-281-33/+21
| | | | | | | | Gratuitously rename a couple of variables. Remove unused macros. Add NAI copyright. Sponsored by: DARPA, NAI Labs
* Remove the code that was disabled in a recent commit; it is of very limiteddes2002-05-281-101/+55
| | | | | | | | | 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
* Oops, don't print /dev/ twice.des2002-05-281-1/+1
|
* struct tty -> struct xtty. Reenable some previously disable code, butdes2002-05-281-35/+43
| | | | | | temporarily disable some rarely-used code that needs more work. Sponsored by: DARPA, NAI Labs
* Un-kmemize. Portions of the tty mode code have been temporarily disabled;des2002-05-231-82/+146
| | | | | | everything else, including dead kernel support, works just like before. Sponsored by: DARPA, NAI Labs
* Nits in previous commits.des2002-05-231-3/+3
| | | | Sponsored by: DARPA, NAI Labs
* Cull large amounts of dead code (deprecated since 1997)des2002-05-231-451/+4
| | | | Sponsored by: DARPA, NAI Labs
* ANSIfy.des2002-05-231-61/+40
| | | | Sponsored by: DARPA, NAI Labs
* Staticize.des2002-05-231-50/+50
| | | | Sponsored by: DARPA, NAI Labs
* Whitespace cleanup.des2002-05-231-6/+6
| | | | Sponsored by: DARPA, NAI Labs
* Unbreak tty mode (cons was renamed to constty a while ago)des2002-05-231-1/+1
| | | | Sponsored by: DARPA, NAI Labs
* Oops, remove references to NLOCKED and NWANTED, now that they noiedowse2002-04-281-4/+0
| | | | longer exist.
* Change the vnode list under the mount point from a LIST to a TAILQdillon2001-10-231-2/+2
| | | | | | in preparation for an implementation of limiting code for kern.maxvnodes. MFC after: 3 days
* Userland part of nfs client/server split and cleanup.peter2001-09-181-8/+2
|
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-311-0/+1
|
* Fix the third argument to sysctlbyname() to be of the type size_t *tmm2001-07-301-1/+2
| | | | | | (instead of int *). MFC after: 2 days
* Make the '-tn' flag combination print the major/minor numbers of thedd2001-07-041-1/+1
| | | | line as documented intead of a full column of 0's.
* Nuke unused variables.dd2001-06-241-1/+0
|
* Don't call printf without a format string (harmless in this case).dd2001-06-171-2/+2
|
* Remove vestiges of MFS.ru2001-06-011-4/+2
|
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileru2001-05-231-1/+1
| | | | | | | | | | | | | | | 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.
* Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while andalfred2001-05-091-10/+0
| | | | Kirk finally has ditched them. While I'm here also ditch FSHLOCK.
* Revert consequences of changes to mount.h, part 2.grog2001-04-291-2/+0
| | | | Requested by: bde
* Include necessary header files, in preparation for fixing breakage ingrog2001-04-231-0/+2
| | | | | | sys/mount.h. Suggested by: phk
* update to the current set of mnt_, ufs_ and nfs_ flagsassar2000-12-301-11/+37
| | | | also make man-page correspond to the code
* Use the MACRO API to <sys/queue.h>.phk2000-12-301-4/+4
| | | | Submitted by: "Peter Avalos" <pavalos@theshell.com>
* Constifykris2000-11-271-1/+1
|
* Don't report TABLDISC - it "doesn't happen(TM)"peter2000-01-291-3/+0
|
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | 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.
* Add extra columns for printing longer device name.charnier1999-12-051-3/+3
|
* Merge fprintf and exit into errx.charnier1999-11-271-2/+1
| | | | Use .Ev for environment variable.
* struct mountlist and struct mount.mnt_list have no business beingphk1999-11-201-3/+3
| | | | | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* VALIASED doesn't exist any more.phk1999-08-261-3/+1
|
* Add support for picking up ttys with sysctl(kern.ttys).phk1999-08-081-62/+12
|
* Tidy up references to <sys/rlist.h> and support for the old swap managementpeter1999-05-111-2/+1
| | | | that went away in January.
* Fix formatting bug with [NFS swap] vs /dev/DEVNAMEdillon1999-01-221-3/+3
|
* Make pstat use new kvm_getswapinfo() libkvm call.dillon1999-01-221-344/+77
|
* Update pstat -s to handle both old and new swapper.dillon1999-01-211-75/+285
| | | | Add pstat -ss to dump new swapper's radix tree.
* Increased column widths for tty input watermark fields so that watermarksbde1998-08-191-9/+10
| | | | | | | | | 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.
* Fixed printf format errors.bde1998-07-061-8/+8
|
* Set the input and output buffer sizes and the input buffer watermarksbde1998-03-071-4/+6
| | | | | | | 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.
* Make pstat.c compile, since in the new kernel code, VVMIO doesn'tdyson1998-01-061-2/+2
| | | | exist anymore.
OpenPOWER on IntegriCloud