Commit Graph

2751 Commits

Author SHA1 Message Date
mjacob
541ee5a18f get rid of space padding for compression 1999-03-10 00:48:03 +00:00
wollman
bd6b0d4dcd Restore \n at end of usage message.
Complained-about-by: charnier
1999-03-08 19:16:14 +00:00
ghelmer
a3b72a6ff5 Fix display of example usage.
PR:		docs/9833
1999-03-07 19:24:39 +00:00
bde
01a9befa3a Oops, the test for "no-cpu" was inverted.
Submitted by:	Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp>
1999-03-07 06:55:47 +00:00
bde
79ceaf95c2 The magic "no-cpu" cpu number is 0xff. Don't misrepresent cpu
numbers as chars or use bogus casts in an attempt to unmisrepresnt
them.  In top, don't assume that 0xff is the only negative cpu
number when cpu numbers are (mis)represented.
1999-03-05 16:38:13 +00:00
joerg
6be72cc099 Fix the style of my previous commit.
Submitted by:	The Style Police[tm]
1999-03-03 14:02:50 +00:00
joerg
81e34f1a51 Increase the vector that's used to look for free pty's. We go through
/dev/ttypv right now, but window(1) was only looking up to ttypf,
causing an `Out of pseudo-terminals' when i just tried on freefall.
1999-03-03 12:08:49 +00:00
joerg
1288f941f7 Make window(1) actually work again. It has been broken for quite some
time now.

For whatever reason, the kernel seems to have generated SIGIOs
previously without an initial fcntl(...,F_SETOWN), but does no longer.
This caused window(1) to wait indefinitely for input.

Also, undo rev 1.3 of wwspawn.c, it was not well-thought, and
apparently not even tested at all.  The blindly (even in a nonsensical
place like the comment on top of the function) applied replacement of
vfork() by fork() totally ignored that window(1) *does* abuse the
feature of vfork() where a modification of the parent's address space
is possible (in this case, to notify the parent of an erred exec*).
Also, with vfork(), it is guaranteed that the parent is only woken up
after the exec*() happened, where the replacement by fork() made the
parent to almost always become runnable again before the child, in
which case the parent simply told `subprocess died'.  Unfortunately,
working around _this_ seems to be a lot more of redesign work compared
to little gained value, so i think relying on the specifics of vfork()
is the simpler way.

Submitted by:	Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
1999-03-02 19:08:09 +00:00
mjacob
eb53d4fbfc Print actual density code as well as string for density- I dunno about others,
but I sure remember 0x15 easier than 'ECMA 17'. Also handle density codes
0 (default) and 0x7f ('same') as special cases.
1999-03-02 06:27:59 +00:00
alex
0af144ae9f Improve error message wording when attempting to link to a non-existent
file on the local host.

PR:		10042
Submitted by:	Chris Costello <phoenix@calldei.com>
1999-03-02 04:14:33 +00:00
wpaul
edb6a1c40f Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().
Instead, treat the inability to retrieve a record from the server as a
match failure and let things take its course.

Part of the problem here is that NIS _is_ turned on, however the master
server is actually not an NIS server: it's an NIS+ server. And the client
is bound to an NIS+ replica server that's running in YP compat mode.
The code which tries to figure out of the user is local or NIS gets
confused by this.
1999-03-01 16:11:13 +00:00
imp
8787d79872 Fix disorder introduced by me in the Euro part 2 locale commit.
Submited by: bde
(This was uncommitted for too long in my tree, but is well tested)
1999-03-01 06:05:58 +00:00
imp
64427c6a72 Make MACHINE_ARCH sensitive to the environment, as well as using the
compiled in default in case it isn't defined.  This is needed to make
cross compilation work in some edge cases.  It also makes cross
compiling on FreeBSD other BSD's easier as well.

Obtained from: NetBSD, OpenBSD (predates the split)
1999-03-01 06:01:05 +00:00
ache
89cdd7ff46 fix PRUNEPATHS assignment 1999-02-28 20:40:19 +00:00
wollman
9c3b9cf062 Deal with broken Web sites which return 302 responses rather than 404
and an error document when the requested resource does not exist.  Grrr.

Requested by:	asami
1999-02-23 18:51:13 +00:00
ghelmer
cac37efcb9 Change the prompt for the office location field from "Location:"
to "Office Location:" to disambiguate what is expected.  Add a note
to the man page to indicate that the office location and office phone
fields are concatenated and printed with the heading "Office:" by
finger(1).  Swap the order of the home and office phone fields in the
man page to match the order of the fields in the editor.

If any programs interact with chpass(1) and expect "Location:" instead
of "Office Location:" as the prompt, either this change will have to be
reverted or the other programs will have to be changed.

PR:		docs/7533
1999-02-23 02:41:26 +00:00
bde
cc82d3efe0 Use `${CC} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl...' instead of
`ld ... <fudged ${LDFLAGS}>' to invoke the linker.  This gets the
flags and standard library paths right without complications.
Unfortunately, it doesn't help for the X11 library paths -- cc
only appends /aout for standard library paths.
1999-02-17 13:48:07 +00:00
fenner
f3e30dacf9 Fix off-by-one error. 1999-02-16 19:05:09 +00:00
luoqi
e1352d91b3 Re-enable doscmd build. 1999-02-16 17:57:25 +00:00
luoqi
8074f143de Look for aout X libraries at the right place. 1999-02-16 14:57:58 +00:00
ache
164b54fbd5 back out obj/colldef PATH hack, it breaks cross-compiling per Bruce
There is _BUILD_TOOLS hack for. Plase all targets under it.
1999-02-15 15:11:07 +00:00
bde
9e450d21be Fixed bitrot in usage message and disordering of options in previous commit.
I'm not sure why we have `mvstat -z'.  `sysctl vm.zone' gives more
information.  OTOH, `sysctl vm.zone' shouldn't return ASCII data,
and reporting of memory use should be integrated, at least as an
option.
1999-02-15 14:15:28 +00:00
bde
4cd21ac75e Fixed disordering of options in previous commit. 1999-02-15 13:57:18 +00:00
bde
400a6ca1d5 Don't pass -static in ${LDFLAGS} to ld for building doscmd.kernel,
since it means -s (strip), and static linkage is forced correctly
anyway.  Other things in ${LDFLAGS} are still bogusly passed to ld.
This only affects the aout case.
1999-02-15 12:36:21 +00:00
fenner
1fff269456 Clean up some .Os macro uses: quotes are not needed, multiple arguments
don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental"
isn't an OS name.
1999-02-15 08:34:14 +00:00
dt
d17e2b0643 Remove couple of 'extern int errno'. (They turned to something funny when
<errno.h> included).
1999-02-14 22:22:54 +00:00
des
e158dd910e Ignore errors from chflags. This makes it possible to make installworld
with DESTDIR set to an NFS-mounted file system.
1999-02-14 13:56:15 +00:00
ache
8359a77c52 syntax change: allow symbolic names as substitute first arg
use this to substitute <ss>
1999-02-13 14:15:25 +00:00
ache
4ecd2d2e40 syntax change: allow symbolic names as substitute first arg 1999-02-13 14:14:47 +00:00
dillon
1ff9917e47 Add -z option to vmstat to dump data from the zone allocator 1999-02-13 09:59:24 +00:00
ache
652b6fba36 substitute ss
Submitted by: "D. Rock" <rock@cs.uni-sb.de>
1999-02-12 21:14:41 +00:00
ache
c655d5380b add more checks for substitution
dissalow substituted character be ordered
1999-02-12 20:56:49 +00:00
ache
1c697612c0 fix English
detect recursive substitutions
allow substituted character not present in the order
1999-02-12 20:39:06 +00:00
eivind
ae7d0768a4 Merge from OpenBSD up to rev 1.7 (matches NetBSD rev 1.4):
Misc small cleanups.
1999-02-12 15:06:55 +00:00
eivind
789d08be6a Merge from OpenBSD up to rev 1.5 (matches NetBSD up to rev 1.3):
* Clean up waitpid parameter handling.
1999-02-12 14:42:31 +00:00
eivind
e4dfcc3fca Back out the NetBSD .Nm changes - we don't have the required
infrastructure, and I don't seem to find time to merge it.
1999-02-12 13:24:45 +00:00
alex
95c394b70e Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
des
dae0ad8f7b Don't use an arbitrary hardcoded value for nfds in select() calls.
PR:		bin/9986
1999-02-10 18:08:51 +00:00
ken
10cc51ce30 Fix vmstat display problems. The header printout wasn't quite right, and
the display wrapped around.

This decreases the default maximum number of disks shown to 2, so things
don't wrap around so easily.  Also, it fixes the header display issues.

Submitted by:	Bruce Evans <bde@FreeBSD.ORG>
1999-02-10 00:46:27 +00:00
ken
542b263658 Add a prioritization field to the devstat_add_entry() call so that
peripheral drivers can determine where in the devstat(9) list they are
inserted.

This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and
any ports that depend on the devstat code, since the size of the devstat
structure has changed.  The devstat version number has been incremented as
well to reflect the change.

This sorts devices in the devstat list in "more interesting" to "less
interesting" order.  So, for instance, da devices are now more important
than floppy drives, and so will appear before floppy drives in the default
output from systat, iostat, vmstat, etc.

The order of devices is, for now, kept in a central table in devicestat.h.
If individual drivers were able to make a meaningful decision on what
priority they should be at attach time, we could consider splitting the
priority information out into the various drivers.  For now, though, they
have no way of knowing that, so it's easier to put them in an easy to find
table.

Also, move the checkversion() call in vmstat(8) to a more logical place.

Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and
for putting up with the long time it has taken me to commit it.  Bruce did
object somewhat to the central priority table (he would rather the
priorities be distributed in each driver), so his objection is duly noted
here.

Reviewed by:	bde, obrien
1999-02-10 00:04:13 +00:00
wosch
09f406ace9 Added myself as maintainer. 1999-02-09 17:23:03 +00:00
dillon
224065be12 Include discrete ozfod as well as ozfod/zfod percentage. 1999-02-08 02:39:45 +00:00
dillon
a7037f5e36 If there are 4 or fewer disk devices, we have room to display additional
VM statistics.  zfod is moved and %slo-z ( percentage of zero-fills that
    were slow, i.e. not pre-zero'd ), and number of pages freed per second.
1999-02-08 02:11:52 +00:00
jhay
735c50d2ba Make the ipx part of netstat work again. 1999-02-06 19:12:48 +00:00
fenner
0ed6b55b80 Don't dump core when p_stat is not in the expected range. This is
only likely to happen when you have a kernel<>userland mismatch,
but it's really annoying when top dumps core and leaves the terminal
in a mangled state; it's much nicer to print nicely formatted gibberish.
1999-02-06 16:58:50 +00:00
dillon
83476feade Be nice when no swap is configured in system 1999-02-06 06:43:56 +00:00
dillon
949435a52d Make 'top' handle case w/ new swapper where no swap is configured 1999-02-06 06:33:55 +00:00
mjacob
c82debf4c1 Print relative (mt_fileno, mt_blkno) position, if known.
Print driver state if not NIL.
1999-02-05 02:46:21 +00:00
mjacob
0561fcb7e1 finally document new commands 1999-02-05 02:45:08 +00:00
fenner
44f9119dc9 Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this. 1999-02-05 01:01:17 +00:00