Robert Drehmel
46f7e0d224
- 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
2003-01-31 15:16:52 +00:00
Matthew Dillon
48e3128b34
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.
2003-01-13 00:33:17 +00:00
Matthew Dillon
cd72f2180b
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.
2003-01-12 01:37:13 +00:00
Poul-Henning Kamp
42c43e6031
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.
2003-01-03 16:23:12 +00:00
Mike Barcroft
c48205f332
Back out rev 1.78; getbsize(3)'s original interface has been restored.
...
Approved by: markm
2002-12-30 18:19:19 +00:00
Mark Murray
84ee4a7c72
Adjust argument passed to getbsize().
2002-10-23 18:55:20 +00:00
Dag-Erling Smørgrav
eeebf53e24
Use struct xfile, not struct file.
2002-07-31 12:43:17 +00:00
Dag-Erling Smørgrav
5f9ab4b001
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
2002-05-28 06:52:21 +00:00
Dag-Erling Smørgrav
182a90e4ec
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
2002-05-28 06:37:27 +00:00
Dag-Erling Smørgrav
bf94613dfc
Oops, don't print /dev/ twice.
2002-05-28 05:45:56 +00:00
Dag-Erling Smørgrav
333eaaeda9
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
2002-05-28 05:42:32 +00:00
Dag-Erling Smørgrav
4418dbbd1a
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
2002-05-23 15:09:49 +00:00
Dag-Erling Smørgrav
d88b2458a5
Nits in previous commits.
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:58:07 +00:00
Dag-Erling Smørgrav
0cbfd1a525
Cull large amounts of dead code (deprecated since 1997)
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:53:04 +00:00
Dag-Erling Smørgrav
c9624363a8
ANSIfy.
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:48:25 +00:00
Dag-Erling Smørgrav
1dcc9c32aa
Staticize.
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:44:23 +00:00
Dag-Erling Smørgrav
d4a0c7a6b5
Whitespace cleanup.
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:42:17 +00:00
Dag-Erling Smørgrav
09941f75bd
Unbreak tty mode (cons was renamed to constty a while ago)
...
Sponsored by: DARPA, NAI Labs
2002-05-23 14:41:52 +00:00
Ian Dowse
72d12a7fae
Oops, remove references to NLOCKED and NWANTED, now that they no
...
longer exist.
2002-04-28 10:24:38 +00:00
Matthew Dillon
c72ccd014d
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
2001-10-23 01:21:29 +00:00
Peter Wemm
9119623471
Userland part of nfs client/server split and cleanup.
2001-09-18 23:34:44 +00:00
Ruslan Ermilov
3b7e5ccc6a
SECURITY: Drop `setgid kmem' bit as early as possible.
2001-08-31 16:26:37 +00:00
Thomas Moestl
6ed5918a25
Fix the third argument to sysctlbyname() to be of the type size_t *
...
(instead of int *).
MFC after: 2 days
2001-07-30 21:42:26 +00:00
Dima Dorfman
a0bdb67e40
Make the '-tn' flag combination print the major/minor numbers of the
...
line as documented intead of a full column of 0's.
2001-07-04 22:53:19 +00:00
Dima Dorfman
7309915e7a
Nuke unused variables.
2001-06-24 23:41:57 +00:00
Dima Dorfman
c01c5d5c46
Don't call printf without a format string (harmless in this case).
2001-06-17 02:01:43 +00:00
Ruslan Ermilov
0b381bf1fd
Remove vestiges of MFS.
2001-06-01 10:07:28 +00:00
Ruslan Ermilov
99d300a1ec
- 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.
2001-05-23 09:42:29 +00:00
Alfred Perlstein
b56b39ad4d
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.
2001-05-09 03:38:02 +00:00
Greg Lehey
60fb0ce365
Revert consequences of changes to mount.h, part 2.
...
Requested by: bde
2001-04-29 02:45:39 +00:00
Greg Lehey
06d71e32d8
Include necessary header files, in preparation for fixing breakage in
...
sys/mount.h.
Suggested by: phk
2001-04-23 08:13:18 +00:00
Assar Westerlund
26a2d90362
update to the current set of mnt_, ufs_ and nfs_ flags
...
also make man-page correspond to the code
2000-12-30 15:41:40 +00:00
Poul-Henning Kamp
88f9a60376
Use the MACRO API to <sys/queue.h>.
...
Submitted by: "Peter Avalos" <pavalos@theshell.com>
2000-12-30 14:19:07 +00:00
Kris Kennaway
bc488ed1ad
Constify
2000-11-27 08:18:58 +00:00
Peter Wemm
9ce6a2e6b5
Don't report TABLDISC - it "doesn't happen(TM)"
2000-01-29 16:45:28 +00:00
Peter Wemm
c447342094
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.
1999-12-29 05:07:58 +00:00
Philippe Charnier
73f2a3c2c8
Add extra columns for printing longer device name.
1999-12-05 20:04:56 +00:00
Philippe Charnier
7c0e6e50e1
Merge fprintf and exit into errx.
...
Use .Ev for environment variable.
1999-11-27 17:03:07 +00:00
Poul-Henning Kamp
0429e37ade
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
1999-11-20 10:00:46 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Poul-Henning Kamp
73fb8dcd42
VALIASED doesn't exist any more.
1999-08-26 15:49:54 +00:00
Poul-Henning Kamp
1bc52887fd
Add support for picking up ttys with sysctl(kern.ttys).
1999-08-08 19:44:00 +00:00
Peter Wemm
bf0e1ee370
Tidy up references to <sys/rlist.h> and support for the old swap management
...
that went away in January.
1999-05-11 14:32:18 +00:00
Matthew Dillon
c67ba15991
Fix formatting bug with [NFS swap] vs /dev/DEVNAME
1999-01-22 10:57:22 +00:00
Matthew Dillon
782f8687be
Make pstat use new kvm_getswapinfo() libkvm call.
1999-01-22 10:36:48 +00:00
Matthew Dillon
eedc343625
Update pstat -s to handle both old and new swapper.
...
Add pstat -ss to dump new swapper's radix tree.
1999-01-21 08:08:55 +00:00
Bruce Evans
f6f60773dd
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
Bruce Evans
78cda23056
Fixed printf format errors.
1998-07-06 20:28:08 +00:00
Bruce Evans
0b8a3ff790
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
John Dyson
5821aa7f1b
Make pstat.c compile, since in the new kernel code, VVMIO doesn't
...
exist anymore.
1998-01-06 05:33:28 +00:00