aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fixes alignment of blocksize field to be prettier ifMatt Jacob1999-03-101-7/+7
| | | | | | | | longest density code && density name is used. Obtained from: Ken Merry Notes: svn path=/head/; revision=44644
* Fix fstat compatibility by printing the address of the tcppcb instead ofDag-Erling Smørgrav1999-03-101-3/+7
| | | | | | | | | | that of the regular socket pcb for TCP sockets. PR: bin/9963 Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua> Notes: svn path=/head/; revision=44641
* Adds the '-p' option to make time(1) output POSIX.2 compliant.Ollivier Robert1999-03-102-21/+63
| | | | | | | | | | | | | Updates the manpage as well. I've rewritten the patch as it was for 2.2.7. It can probably be put into 3.1-STABLE as well. PR: bin/10515 Submitted by: Jens Schweikhardt <schweikh@noc.dfn.de> Notes: svn path=/head/; revision=44640
* get rid of space padding for compressionMatt Jacob1999-03-101-2/+2
| | | | Notes: svn path=/head/; revision=44618
* Restore \n at end of usage message.Garrett Wollman1999-03-081-2/+2
| | | | | | | Complained-about-by: charnier Notes: svn path=/head/; revision=44576
* Fix display of example usage.Guy Helmer1999-03-071-1/+2
| | | | | | | PR: docs/9833 Notes: svn path=/head/; revision=44562
* Oops, the test for "no-cpu" was inverted.Bruce Evans1999-03-071-2/+2
| | | | | | | Submitted by: Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp> Notes: svn path=/head/; revision=44543
* The magic "no-cpu" cpu number is 0xff. Don't misrepresent cpuBruce Evans1999-03-051-2/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=44487
* Fix the style of my previous commit.Joerg Wunsch1999-03-031-1/+1
| | | | | | | Submitted by: The Style Police[tm] Notes: svn path=/head/; revision=44447
* Increase the vector that's used to look for free pty's. We go throughJoerg Wunsch1999-03-031-1/+1
| | | | | | | | /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. Notes: svn path=/head/; revision=44445
* Make window(1) actually work again. It has been broken for quite someJoerg Wunsch1999-03-022-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=44431
* Print actual density code as well as string for density- I dunno about others,Matt Jacob1999-03-021-5/+10
| | | | | | | | but I sure remember 0x15 easier than 'ECMA 17'. Also handle density codes 0 (default) and 0x7f ('same') as special cases. Notes: svn path=/head/; revision=44397
* Improve error message wording when attempting to link to a non-existentAlexander Langer1999-03-021-2/+2
| | | | | | | | | | file on the local host. PR: 10042 Submitted by: Chris Costello <phoenix@calldei.com> Notes: svn path=/head/; revision=44392
* Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().Bill Paul1999-03-011-1/+17
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=44375
* Fix disorder introduced by me in the Euro part 2 locale commit.Warner Losh1999-03-011-15/+15
| | | | | | | | Submited by: bde (This was uncommitted for too long in my tree, but is well tested) Notes: svn path=/head/; revision=44363
* Make MACHINE_ARCH sensitive to the environment, as well as using theWarner Losh1999-03-011-4/+11
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=44362
* fix PRUNEPATHS assignmentAndrey A. Chernov1999-02-281-2/+2
| | | | Notes: svn path=/head/; revision=44339
* Deal with broken Web sites which return 302 responses rather than 404Garrett Wollman1999-02-233-17/+38
| | | | | | | | | and an error document when the requested resource does not exist. Grrr. Requested by: asami Notes: svn path=/head/; revision=44240
* Change the prompt for the office location field from "Location:"Guy Helmer1999-02-233-8/+13
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=44226
* Use `${CC} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl...' instead ofBruce Evans1999-02-171-5/+5
| | | | | | | | | | `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. Notes: svn path=/head/; revision=44100
* Fix off-by-one error.Bill Fenner1999-02-161-2/+2
| | | | Notes: svn path=/head/; revision=44091
* Re-enable doscmd build.Luoqi Chen1999-02-161-1/+2
| | | | Notes: svn path=/head/; revision=44090
* Look for aout X libraries at the right place.Luoqi Chen1999-02-161-4/+10
| | | | Notes: svn path=/head/; revision=44089
* back out obj/colldef PATH hack, it breaks cross-compiling per BruceAndrey A. Chernov1999-02-151-4/+1
| | | | | | | There is _BUILD_TOOLS hack for. Plase all targets under it. Notes: svn path=/head/; revision=44068
* Fixed bitrot in usage message and disordering of options in previous commit.Bruce Evans1999-02-151-7/+7
| | | | | | | | | | 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. Notes: svn path=/head/; revision=44067
* Fixed disordering of options in previous commit.Bruce Evans1999-02-151-4/+4
| | | | Notes: svn path=/head/; revision=44066
* Don't pass -static in ${LDFLAGS} to ld for building doscmd.kernel,Bruce Evans1999-02-151-2/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=44064
* Clean up some .Os macro uses: quotes are not needed, multiple argumentsBill Fenner1999-02-151-2/+2
| | | | | | | | don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name. Notes: svn path=/head/; revision=44060
* Remove couple of 'extern int errno'. (They turned to something funny whenDmitrij Tejblum1999-02-142-8/+2
| | | | | | | <errno.h> included). Notes: svn path=/head/; revision=44026
* Ignore errors from chflags. This makes it possible to make installworldDag-Erling Smørgrav1999-02-142-5/+5
| | | | | | | with DESTDIR set to an NFS-mounted file system. Notes: svn path=/head/; revision=43994
* syntax change: allow symbolic names as substitute first argAndrey A. Chernov1999-02-133-5/+6
| | | | | | | use this to substitute <ss> Notes: svn path=/head/; revision=43968
* syntax change: allow symbolic names as substitute first argAndrey A. Chernov1999-02-133-41/+39
| | | | Notes: svn path=/head/; revision=43967
* Add -z option to vmstat to dump data from the zone allocatorMatthew Dillon1999-02-132-12/+77
| | | | Notes: svn path=/head/; revision=43962
* substitute ssAndrey A. Chernov1999-02-122-4/+6
| | | | | | | Submitted by: "D. Rock" <rock@cs.uni-sb.de> Notes: svn path=/head/; revision=43944
* add more checks for substitutionAndrey A. Chernov1999-02-121-7/+13
| | | | | | | dissalow substituted character be ordered Notes: svn path=/head/; revision=43943
* fix EnglishAndrey A. Chernov1999-02-122-19/+26
| | | | | | | | detect recursive substitutions allow substituted character not present in the order Notes: svn path=/head/; revision=43940
* Merge from OpenBSD up to rev 1.7 (matches NetBSD rev 1.4):Eivind Eklund1999-02-121-10/+16
| | | | | | | Misc small cleanups. Notes: svn path=/head/; revision=43929
* Merge from OpenBSD up to rev 1.5 (matches NetBSD up to rev 1.3):Eivind Eklund1999-02-121-4/+3
| | | | | | | * Clean up waitpid parameter handling. Notes: svn path=/head/; revision=43928
* Back out the NetBSD .Nm changes - we don't have the requiredEivind Eklund1999-02-121-6/+6
| | | | | | | infrastructure, and I don't seem to find time to merge it. Notes: svn path=/head/; revision=43927
* Removed occurrences of consecutive repeated words (such as "the the").Alexander Langer1999-02-121-2/+2
| | | | Notes: svn path=/head/; revision=43920
* Don't use an arbitrary hardcoded value for nfds in select() calls.Dag-Erling Smørgrav1999-02-101-6/+8
| | | | | | | PR: bin/9986 Notes: svn path=/head/; revision=43851
* Fix vmstat display problems. The header printout wasn't quite right, andKenneth D. Merry1999-02-102-13/+10
| | | | | | | | | | | | 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> Notes: svn path=/head/; revision=43822
* Add a prioritization field to the devstat_add_entry() call so thatKenneth D. Merry1999-02-101-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=43819
* Added myself as maintainer.Wolfram Schneider1999-02-093-1/+11
| | | | Notes: svn path=/head/; revision=43805
* Include discrete ozfod as well as ozfod/zfod percentage.Matthew Dillon1999-02-081-7/+7
| | | | Notes: svn path=/head/; revision=43757
* If there are 4 or fewer disk devices, we have room to display additionalMatthew Dillon1999-02-082-5/+39
| | | | | | | | 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. Notes: svn path=/head/; revision=43756
* Make the ipx part of netstat work again.John Hay1999-02-061-5/+7
| | | | Notes: svn path=/head/; revision=43722
* Don't dump core when p_stat is not in the expected range. This isBill Fenner1999-02-061-3/+9
| | | | | | | | | 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. Notes: svn path=/head/; revision=43720
* Be nice when no swap is configured in systemMatthew Dillon1999-02-061-1/+11
| | | | Notes: svn path=/head/; revision=43698
* Make 'top' handle case w/ new swapper where no swap is configuredMatthew Dillon1999-02-061-2/+2
| | | | Notes: svn path=/head/; revision=43697