summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Sort sections.ru2005-01-1843-345/+345
|
* Oops... Remove the line leaked in the last commit which is notdelphij2005-01-171-1/+0
| | | | intended to be there...
* WARNS=6 cleanup:delphij2005-01-172-17/+18
| | | | | | | - Initialize everything in the struct array, not only the mentioned ones - Unconditionally initialize hs to 0 to avoid repeatly doing so - Cast to unsigned int when comparing to unsigned variables.
* WARNS=6 cleanup:delphij2005-01-172-4/+9
| | | | | | | - signed/unsigned conform. - Better initialization of nlist[]. I think we should have something like NLIST_NULL instead of the current (ugly) form...
* Added the EXIT STATUS section where appropriate.ru2005-01-1723-36/+27
|
* Remove \n at the end of err(3) stringscharnier2005-01-161-7/+5
|
* Fix arguments syntax.pjd2005-01-1514-123/+81
| | | | | Manual pages fixes by: ru MFC after: 3 days
* Eliminate macro calls inside literal displays.ru2005-01-151-3/+3
|
* Fixed display type.ru2005-01-151-1/+1
|
* Fixed display types.ru2005-01-151-5/+5
|
* Markup nits.ru2005-01-151-16/+14
|
* Markup fixes.ru2005-01-152-19/+27
|
* Deprecate unmaintainable uses of strncmp to implement abbreviations.brooks2005-01-151-60/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit replaces those with two new functions that simplify the code and produce warnings that the syntax is deprecated. A small number of sensible abbreviations may be explicitly added based on user feedback. There were previously three types of strncmp use in ipfw: - Most commonly, strncmp(av, "string", sizeof(av)) was used to allow av to match string or any shortened form of it. I have replaced this with a new function _substrcmp(av, "string") which returns 0 if av is a substring of "string", but emits a warning if av is not exactly "string". - The next type was two instances of strncmp(av, "by", 2) which allowed the abbreviation of bytes to "by", "byt", etc. Unfortunately, it also supported "bykHUygh&*g&*7*ui". I added a second new function _substrcmp2(av, "by", "bytes") which acts like the strncmp did, but complains if the user doesn't spell out the word "bytes". - There is also one correct use of strncmp to match "table(" which might have another token after it without a space. Since I changed all the lines anyway, I also fixed the treatment of strncmp's return as a boolean in many cases. I also modified a few strcmp cases as well to be fully consistent.
* Improve readability for the recently introduced changes by havingdelphij2005-01-141-4/+4
| | | | | | their sizeof(*p) instead of explicitlly specifying their types. Suggested by: nectar
* Use a better name than underscore-tmpfile for better representationdelphij2005-01-141-5/+5
| | | | | | of the meaning. Suggested by: stefanf
* 64-bit clean + WARNS=6:delphij2005-01-142-22/+27
| | | | | | | | | | | | | | | | | - Convert the (char *) cast+cast backs magic to memcpy(3). Without this, the resulting code is potentially risky with higher optimization levels. - Avoid same name when calling local variables, as well as global symbols. This reduces confusion for both human and compiler. - Add necessary casts, consts - Use new style function defination. - Minor style.Makefile(5) tweak - Bump WARNS?= from 0 to 6 ** for the aout code: changes are intentionally limited to ease maintaince.
* Connect SHSEC GEOM class to the build.pjd2005-01-112-0/+2
|
* Introduce a new GEOM class - SHSEC. It provides sharing secret betweenpjd2005-01-113-0/+435
| | | | | | | | the given providers. Without even one of the configured components there should be no way to get the secret. Supported by: WHEEL Sp. z o.o. http://www.wheel.pl
* Make WARNS=6 happy with our init(8):delphij2005-01-112-25/+40
| | | | | | | | | - Use more ``const''s where suitable. - Define strk() as a static function in global scope. This avoids the "nested extern declaration" warnings. - Use static initialization of strings, rather than referring string constants through char *. - Bump WARNS from 0 to 6.
* Scheduled mdoc(7) sweep.ru2005-01-1011-49/+62
|
* Initialize "he" in DoFile, so savecore(8) is WARNS=6 clean.delphij2005-01-102-2/+2
| | | | Bump WARNS accordingly.
* Fix build on all (hopefully) 64 bit architectures.trhodes2005-01-091-1/+1
| | | | | Noticed by: tinderbox Tested on: panther
* Use static const char and bump WARNS.trhodes2005-01-082-2/+2
|
* Remove unused variable.trhodes2005-01-081-1/+0
|
* Cast to intmax_t when using %jd format.pjd2005-01-081-1/+1
| | | | MFC after: 3 days
* Fix the derivation of the GEOM name from the specified device name byrse2005-01-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | complementing the existing special case of a not existing /dev prefix with the recognition of an already existing /dev prefix. This implicitly solves the following two issues related to working on GEOM devices /dev/foo/bar (which have the GEOM provider name "foo/bar") with the expected commands like "bsdlabel /dev/foo/bar": 1. the error "Geom not found" when trying to write or edit the BSD label (because previously the incorrect GEOM name "bar" instead of "foo/bar" was derived from "/dev/foo/bar"). 2. the multiple times reported "magically introduced" partition offset of 63 blocks and the resulting errors like "partition extends past end of unit" and "partition c doesn't start at 0!". This implicitly resulted because bsdlabel(8) determines the "MBR offset" via GEOM and (intentionally) silently falls back to an offset of 0 if it could not be queried (which is the case if the name was incorrectly derived). Usually (at least on PCs) the offset for the first slice is 63 blocks and bsdlabel(8) automatically subtracts them from the absolute offsets in the read on-disk BSD label, resulting in the display of an effective offset of 0. If the GEOM query fails, the assumed offset of 0 is subtracted and an incorrect effective offset of 63 is displayed and tried to be worked upon. Reviewed by: pjd MFC after: 1 week
* Link a couple of missing manpagesguido2005-01-071-0/+2
| | | | | Submitted by: Hideyuki KURASHINA <rushani@FreeBSD.org> MFC after: 1 week
* Write some bit mask limits in hex rather than decimal so they look lessbrooks2005-01-071-2/+2
| | | | magic.
* The badsect(8) utility uses atol(), which doesn't allow very good errorrwatson2005-01-031-1/+4
| | | | | | | | | | checking and only recognizes numbers in base 10. The attached patch checks errno after strtol() and uses a base of 0 to allow octal, or hex sector numbers too. PR: 73112 Submitted by: keramida MFC after: 2 weeks
* The ffsinfo utility uses atol() to parse numeric values out of optargrwatson2005-01-031-3/+10
| | | | | | | | | | | | | | strings. This isn't necessarily a bug, but it can be slightly inconvenient, because atol() doesn't know how to parse hexadecimal or octal numbers and at least one of the options of ffsinfo(8) would be easier to use if it did. Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.: orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff / PR: 73110 Submitted by: keramida MFC after: 2 weeks
* Remove cross reference to uustat(1), which is no longer in the baserwatson2005-01-021-1/+0
| | | | | | | tree. MFC after: 3 days Submitted by: bkoenig at cs dot tu-berlin dot de
* Fix special status reporting. Prior to the reorg there wassam2004-12-317-18/+44
| | | | | | | | | | | | | | | | | | | | | | | special-purpose code to display status for an interface for state that was not address-oriented. This status reporting was merged in to the address-oriented status reporting but did not work for link address reporting (as discovered with fwip interfaces). Correct this mis-merge and eliminate the bogus kludge that was used for link-level address reporting. o add an af_other_status method for an address family for reporting status of things like media, vlan, etc. o call the af_other_status methods after reporting address status for an interface o special-case link address status; when reporting all status for an interface invoke it specially prior to reporting af_other_status methods (since it requires the sockaddr_dl that is passed in to status separately from the rtmsg address state) o correct the calling convention for link address status; don't cast types, construct the proper parameter This fixes ifconfig on fwip interfaces.
* o accept deftxkey as a synonym for weptxkey since that is what issam2004-12-311-1/+11
| | | | | | | printed for status (allows cut&paste) o accept undef for the deftxkey/weptxkey so you can reset state Requested by: phk
* recognize atheros information elementssam2004-12-311-0/+2
|
* Fix typos.brueffer2004-12-301-3/+3
| | | | | PR: 75616 Submitted by: n-kogane@syd.odn.ne.jp
* Clearer va-args usage.obrien2004-12-301-4/+3
| | | | Submitted by: bde
* Detect if class name is '-h' or 'help' and if it is, show general helppjd2004-12-281-0/+6
| | | | | | | | | message, i.e.: geom: usage: geom <class> <command> [options] PR: bin/71537 Submitted by: bugghy <bugghy@phenix.rootshell.be> MFC after: 5 days
* Rewrite piece of code which I committed some time ago that allows topjd2004-12-271-1/+5
| | | | | | | | | show file name for 'mdconfig -l -u <x>' command. This allows to preserve API/ABI compatibility with version 0 (that's why I changed version number back to 0) and will allow to merge this change to RELENG_5. MFC after: 5 days
* Fix typo.josef2004-12-261-1/+1
| | | | Noticed by: clement
* Cross-reference ffsinfo(8).jkoshy2004-12-261-0/+1
|
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-251-0/+1
| | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-221-0/+1
| | | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Add version change history. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* 'forget' command takes device names, not provider names.pjd2004-12-221-1/+1
|
* NOINET6 -> NO_INET6ru2004-12-211-1/+1
|
* NOSHARED -> NO_SHAREDru2004-12-219-9/+9
|
* NOATM -> NO_ATMru2004-12-211-1/+1
|
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-216-6/+6
| | | | OK'ed by: core
* Mark mknod(8) as deprecated. Add text in the 'COMPATIBILITY' sectionjkoshy2004-12-171-1/+26
| | | | | | describing the changes in device management since FreeBSD 4.0. Reviewed by: ru
* Back the warnings down from 9 to 6, since that is the highest we have. Ifobrien2004-12-131-1/+1
| | | | we added a WARNS 7 level, it shouldn't be assumed this code will pass it.
* Do not pass random bits as mount arguments.phk2004-12-121-0/+1
|
OpenPOWER on IntegriCloud