aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-2/+2
| | | | Notes: svn path=/head/; revision=81462
* mdoc(7) police: fixed the "new sentence" bogons.Ruslan Ermilov2001-08-101-1/+1
| | | | Notes: svn path=/head/; revision=81458
* mdoc(7) police: protect trailing full stops of abbreviationsRuslan Ermilov2001-08-106-7/+7
| | | | | | | with a trailing zero-width space: `e.g.\&'. Notes: svn path=/head/; revision=81449
* mdoc(7) police: removed (now gratuitous) .Xo/.Xc brackets.Ruslan Ermilov2001-08-101-18/+6
| | | | Notes: svn path=/head/; revision=81429
* mdoc(7) police: spelling, punctuation and markup nits.Ruslan Ermilov2001-08-101-10/+12
| | | | Notes: svn path=/head/; revision=81418
* mdoc(7) police: compute the exact tag width.Ruslan Ermilov2001-08-101-1/+1
| | | | Notes: svn path=/head/; revision=81416
* Document how to cancel a scheduled shutdown.Dima Dorfman2001-08-091-0/+12
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=81345
* fixing a bug in test mode (growfs -N)Christoph Herrmann2001-08-082-35/+75
| | | | | | | | | Submitted by: Chris Boltwood <chris@hiendmedia.com> Reviewed by: tomsoft MFC after: 5 days Notes: svn path=/head/; revision=81311
* Add mention of /var/run/dmesg.boot.Sheldon Hearn2001-08-081-0/+7
| | | | | | | | Yes, this isn't really the right place for it. No, it really can't remain undocumented. Notes: svn path=/head/; revision=81306
* can not -> cannotSheldon Hearn2001-08-081-1/+1
| | | | Notes: svn path=/head/; revision=81298
* Move all the prototypes to one place.Dima Dorfman2001-08-071-3/+2
| | | | Notes: svn path=/head/; revision=81258
* Introduce a force option, MD_FORCE, that instructs the driver toDima Dorfman2001-08-072-0/+9
| | | | | | | | | | | | | | | | | | | bypass some extra anti-foot-shooting measures. Currently, its only effect is to allow detaching a device while it's still open (e.g., mounted). This is useful for testing how the system reacts to a disk suddenly going away, which can happen with some removeable media. At this point, the force option is only checked on detach, so it would've been possible to allow the option to be passed with the MDIOCDETACH operation. This was not done to allow the possibility of having the force flag influence other tests in the future, which may not necessarily deal with detaching the device. Reviewed by: sobomax Approved by: phk Notes: svn path=/head/; revision=81257
* mdoc(7) police:Ruslan Ermilov2001-08-0711-80/+66
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Spelling.Stephen McKay2001-08-071-2/+2
| | | | Notes: svn path=/head/; revision=81229
* printed current sequence number of the SA. accordingly, changedHajimu UMEMOTO2001-08-061-2/+2
| | | | | | | | | | | into sadb_x_sa2_sequence from sadb_x_sa2_reserved3 in the sadb_x_sa2 structure. Also the output of setkey is changed. sequence number of the sadb is replaced to the end of the output. Obtained from: KAME Notes: svn path=/head/; revision=81215
* Fixed one more breakage introduced in 1.103 cleanup.Ruslan Ermilov2001-08-061-1/+2
| | | | | | | | | | | | ICMP types were reported incorrectly: # ipfw add allow icmp from any to any icmptypes 0,8 PR: bin/29185 Submitted by: Mike Durian <durian@boogie.com> Notes: svn path=/head/; revision=81199
* Fix a number of bugs and annoyances in fdisk, many of which wereIan Dowse2001-08-052-148/+192
| | | | | | | | | | | | | | | | | | | | | | | pointed out by bde: - Ask for user confirmation before adjusting to a head/cylinder boundary (only when running interactively), and separate this adjustment from the automatic calculation of c/h/s parameters. - In sanitize_partition, don't change any values in the slice until we know that the automatic adjustment will succeed. - When auto-adjusting, ignore unused slices and give an appropriate error for other zero-size slices depending on the cause. - Change dos() to do all of the c/h/s calculations for a whole slice; this fixes a bug where the ending c/h/s of an unused slice was set incorrectly. - When changing the active slice, detect the currently active slice number instead of always defaulting to slice 4. - Call fflush(stdout) before calling fgets(). - Test for fgets() returning NULL so we don't loop on EOF. Reviewed by: bde Notes: svn path=/head/; revision=81164
* Add some features to libdevstat, and overhaul the interface a bit:Thomas Moestl2001-08-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 1.) prefix all functions in the library with devstat_ (compatability functions are available for all functions that were chaned in an incompatible way, but are deprecated). 2.) Add a pointer to a kvm_t as the first argument to functions that used to get their information via sysctl; they behave the same as before when NULL is passed as this argument, otherwise, the information is obtained via libkvm using the supplied handle. 3.) Add a new function, devstat_compute_statistics(), that is intended to replace the old compute_stats() function. It offers more statistics data, and has a more flexible interface. libdevstat does now require libkvm; a library depedency is added, so that libkvm only needs to be explicitely specified for statically linked programs. The library major version number is bumped. Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>, ken (3) Reviewed by: ken Notes: svn path=/head/; revision=81133
* Document the deprecated `-w' option in the COMPATIBILITY section.Yaroslav Tykhiy2001-08-021-0/+4
| | | | Notes: svn path=/head/; revision=81045
* MFS: in HISTORY section, fix release number of first appearanceSheldon Hearn2001-08-012-2/+2
| | | | Notes: svn path=/head/; revision=80898
* style(9)David E. O'Brien2001-08-011-1/+1
| | | | Notes: svn path=/head/; revision=80856
* This is actually making its enterance in FreeBSD 4.4.David E. O'Brien2001-08-011-1/+1
| | | | Notes: svn path=/head/; revision=80836
* Since the ``-w'' sysctl(8) option has been deprecated,Yaroslav Tykhiy2001-07-301-1/+1
| | | | | | | don't mention it in the manpages. Notes: svn path=/head/; revision=80634
* Document -X.Dima Dorfman2001-07-301-0/+3
| | | | | | | Submitted by: kris Notes: svn path=/head/; revision=80608
* Nuke my e-mail address since it seems out of place here.Dima Dorfman2001-07-302-3/+2
| | | | Notes: svn path=/head/; revision=80607
* Add KOI8-U tablesAndrey A. Chernov2001-07-282-1/+61
| | | | | | | Submitted by: Olexander Kunytsa <kunia@istc.kiev.ua> Notes: svn path=/head/; revision=80519
* ifconfig if0 netmask xxx.xxx.xxx.0 didn't change the netmask.Hajimu UMEMOTO2001-07-261-1/+3
| | | | | | | | PR: bin/28833 MFC after: 3 days Notes: svn path=/head/; revision=80392
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. TheSheldon Hearn2001-07-262-2/+2
| | | | | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms> Notes: svn path=/head/; revision=80381
* Fix a stupid bug which resulted in a blank line in the status output ifBrooks Davis2001-07-251-8/+4
| | | | | | | | | WEP is supported, but not keys are set. MFC after: 3 days Notes: svn path=/head/; revision=80315
* sprintf -> snprintfKris Kennaway2001-07-241-1/+2
| | | | | | | | Obtained from: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80277
* s/adress/address/Kris Kennaway2001-07-231-2/+2
| | | | | | | | Inspired by: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80203
* Fix some bugs and general brain damage in mounttab:Ian Dowse2001-07-221-4/+3
| | | | | | | | | | | | | | | | | | | | | | | - Declare mtabhead as an extern in mounttab.h and define it only in mounttab.c. - Remove shared global `verbose' and instead pass it as a parameter. - Remove the `mtabp' argument to read_mtab(). It served no purpose whatsoever, although read_mtab() did use it as a temporary local variable. - Don't check for impossible conditions when parsing mounttab, and do detect zero-length fields. - Correctly test for strtoul() failures - just testing ERANGE is wrong. - Include a field name in syslog errors, and avoid passing NULL to a syslog %s field. - Don't test if arrays are NULL. - If there are duplicates when writing out mounttab, keep the last entry instead of the first, as it will have a later timestamp. - Fix a few formatting issues. Update rpc.umntall and umount to match the mounttab interface changes. Notes: svn path=/head/; revision=80146
* Error messaging in ipfw(8) was out of hand, almost 50 lines of usageCrist J. Clark2001-07-221-109/+114
| | | | | | | | | | | | | | | | | information for any command line error, the actual error message almost always (and sometimes irretrievably) lost scrolling off the top of the screen. Now just print the error. Give ipfw(8) no arguments for the old usage summary. Thanks to Lyndon Nerenberg <lyndon@orthanc.ab.ca> for the patch and PR, but I had already done this when ru pointed out the PR. PR: bin/28729 Approved by: ru MFC after: 1 week Notes: svn path=/head/; revision=80132
* Include the remote hostname in RPC-related warning messages. ExitIan Dowse2001-07-221-25/+24
| | | | | | | | | | | | | | | | | | | | | immediately if a host specified by the -h flag cannot be parsed instead of attempting to unmount all NFS filesystems, which was bad. Add a missing return statement at the end of checkname(); this could result in a non-zero exit status in some cases even if the unmount succeeded. Group two separate NFS-related operations into one block to make it more obvious that a variable (hostp) is not dereferenced when uninitialised. Initialise it to NULL anyway to avoid a warning. Pass in the read_mtab()'s bogus argument as NULL instead of messing with a local variable to achieve the same effect. A later commit will clean up this mounttab interface. Notes: svn path=/head/; revision=80118
* Change the foreground mount behaviour so that we keep retryingIan Dowse2001-07-212-7/+26
| | | | | | | | | | | | | forever by default. This matches what mount_nfs did before revision 1.40, and it is the generally expected behaviour for NFS mounts. Document the current defaults near the start of the man page and mention the options that can be used to change them. Discussed on: -hackers Notes: svn path=/head/; revision=80086
* Dike out the IPX bits if RELEASE_CRUNCH is defined.David E. O'Brien2001-07-212-2/+23
| | | | Notes: svn path=/head/; revision=80057
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-8/+11
| | | | | | | | 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. Notes: svn path=/head/; revision=80029
* Since revision 1.40/1.41, the default behaviour for mount_nfs isIan Dowse2001-07-192-12/+20
| | | | | | | | | | | | | | | | | | | | to give up after one attempt unless a background mount is requested. Background mounts would retry 10000 times (at least 7 days) before giving up. For some situations such as diskless terminals, an NFS filesystem may be critical to the boot process, so neither the "try once" nor background mounts are appropiate. To cater for this situation, unbreak the -R (retry count) parameter so that it also works in the non-background case. Interpret a zero retry count as "retry forever". The defaults are now "try once" for non-background mounts and "retry forever" for background mounts; both can be overridden via -R. Add a description of this behaviour to the manpage. Notes: svn path=/head/; revision=80006
* Document "-F".David E. O'Brien2001-07-191-0/+7
| | | | Notes: svn path=/head/; revision=79978
* Change exit return value to better match fsck_ffs(8).David E. O'Brien2001-07-191-1/+1
| | | | Notes: svn path=/head/; revision=79977
* Recognize the "-F" option which requests whether the filesystem needs toDavid E. O'Brien2001-07-191-1/+5
| | | | | | | | | | be cleaned immediately in foreground, or if its cleaning can be deferred to background. Submitted by: Maxime Henrion <mux@qualys.com> Notes: svn path=/head/; revision=79976
* Use MD_NAME and MDCTL_NAME constants where appropriate.Dima Dorfman2001-07-181-1/+2
| | | | Notes: svn path=/head/; revision=79863
* fdisk(8): document the default for -b, add xref to boot0cfg(8).Ruslan Ermilov2001-07-182-0/+6
| | | | | | | | | boot0cfg(8): add FILES section. Reviewed by: rnordier Notes: svn path=/head/; revision=79850
* Sort options in DESCRIPTION.Dima Dorfman2001-07-151-14/+14
| | | | Notes: svn path=/head/; revision=79762
* Bump date for addition of -D.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79761
* Set WARNS=2 on programs which compile cleanly.Dima Dorfman2001-07-154-0/+4
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79758
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* Remove whitespace at EOL.Dima Dorfman2001-07-1549-356/+356
| | | | Notes: svn path=/head/; revision=79754
* Constify, de-register-ify, and set WARNS=2.Dima Dorfman2001-07-152-12/+15
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79750
* Constify, de-register-ify, __unused-ify, and set WARNS=2.Dima Dorfman2001-07-152-10/+12
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79749