summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of a NULL dereference when oid is too long.ssouhlal2005-01-251-1/+2
| | | | | | Reviewed by: keramida Approved by: grehan (mentor) MFC after: 1 week
* - Make WARNS?= 6 cleanssouhlal2005-01-252-2/+4
| | | | | | - Add WARNS?= 6 Approved by: stefanf, grehan (mentor)
* Use new style declarations instead of K&R ones.delphij2005-01-251-10/+5
|
* Use modern style defination for main() and move a externdelphij2005-01-252-4/+6
| | | | | | declaration to global section. Bump WARNS?= to 6
* Code style tweaks: Use static and const where suitable.delphij2005-01-251-7/+6
|
* The kernel specified in main() of reboot(8) will be initializeddelphij2005-01-252-5/+5
| | | | | | | | | | | | | with -k option and never be used without kflag. This confuses gcc because we set "kflag" at the same time with "kernel", but the logic is not that apparant for gcc. Since we can initialize "kernel" to NULL then know if "k" option is set through determining whether it is still NULL, don't try to have gcc to guess why we are connecting "kflag" with "kernel" and use "kernel" directly in place of kflag. Bump WARNS?= from 2 to 6
* spell "file system" correctlycharnier2005-01-241-1/+1
| | | | Approved by: ru
* Bring back WARNS to 3 for arm until I figure out how to make gcc happy.cognet2005-01-241-0/+4
|
* Allow to specify device size in bytes.pjd2005-01-222-2/+4
| | | | MFC after: 1 week
* Document -l and -n options in usage().ru2005-01-221-0/+2
|
* Polish previous revision:ru2005-01-221-6/+12
| | | | | | - Bump document date. - Spell "file system" properly. - Add missing markup bits.
* Add an option to suppress the creation of the .snap directory inwes2005-01-214-32/+60
| | | | | | | | the new filesystem. This is intended for memory and vnode filesystems that will never be fsck'ed or dumped. Obtained from: St. Bernard Software RAPID MFC after: 2 weeks
* Improved error checking for existence of a .snap directory towes2005-01-212-18/+29
| | | | | | | | generate snapshots in when -L is requested. If the .snap directory does not exist, or is not a directory, issue a warning and revert to the non- live behavior. Obtained from: St. Bernard Software RAPID
* Fixed xrefs.ru2005-01-211-2/+2
|
* Use the standard section name.ru2005-01-181-3/+3
|
* Don't print extra " via ", if we have already printed one. While here,glebius2005-01-181-4/+6
| | | | | | | slightly style brackets. PR: misc/75297 MFC after: 1 week
* 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
|
OpenPOWER on IntegriCloud