summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add better mdoc(7) mark up, clean up wording, better describe the effectstrhodes2005-02-231-6/+23
| | | | | | | | of some arguments. PR: 47705 Based on a patch submitted by: Gary W. Swearingen <swear@attbi.com> Glanced at by: simon
* Use the LST_FOREACH macro instead of the Lst_ForEach functionharti2005-02-231-40/+25
| | | | | and so get rid of the ForExec helper function by inlining it into For_Run.
* Style: fix indent, use tabs instead of space+tab for aligning things.harti2005-02-231-147/+159
| | | | Add a couple of comments.
* Fix the indendation of some multi-line comments.harti2005-02-231-22/+22
| | | | Noted by: Max Okumoto <okumoto@ucsd.edu>
* Add endianness support to cap_mkdb(1), useful for cross builds.ru2005-02-223-7/+37
|
* Add CARP (Common Address Redundancy Protocol), which allows multipleglebius2005-02-223-0/+50
| | | | | | | | | | | | | hosts to share an IP address, providing high availability and load balancing. Original work on CARP done by Michael Shalayeff, with many additions by Marco Pfatschbacher and Ryan McBride. FreeBSD port done solely by Max Laier. Patch by: mlaier Obtained from: OpenBSD (mickey, mcbride)
* Fix the prototypes by addings some constness. This should have beenharti2005-02-221-2/+2
| | | | committed together with the commit to dir.c:1.48.
* Use the new LST_FOREACH macro throughout the file and replace calls toharti2005-02-221-70/+20
| | | | Lst_ForEach and Lst_Find.
* Invent the LST_FOREACH macro for looping through a list. In contrastharti2005-02-221-0/+4
| | | | | | | to the Lst_ForEach function this macro reduces the number of function calls per invocation by N + 1 (where N is the number of list elements) and increases code locality thereby increasing readability and (maybe) performance.
* Fix an overflow when calculating the number of kilobytes from theps2005-02-212-2/+2
| | | | | | number of pages. Obtained from: Yahoo!
* Style: fix indendation to be 8 and use tabulators. Fix lines longer thanharti2005-02-211-693/+717
| | | | | 80 characters and slightly reorder functions to get rid of static prototypes.
* Forgot to set *freePtr to FALSE in another place.harti2005-02-211-0/+1
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fix a bug in handling archive members: when a member was not foundharti2005-02-211-15/+11
| | | | | | | | when looking into an already hashed archive, the code tried to use the name shortened to the maximum length allowed for the archive. Unfortunately it passed a buffer of junk to the hashing routine when the name actually wasn't too long. Theoretically this could lead to a false positive.
* Fixate the hash bucket size to 4K. We were using the default,ru2005-02-191-3/+12
| | | | | | | | | which is stat.st_blksize (i.e., PAGE_SIZE). This change causes the .db files that were cross-compiled on another platform to be identical to the natively built ones. Tested on: alpha->amd64 build
* simply ignore unknown address family.ume2005-02-191-3/+1
| | | | MFC after: 1 week
* teach IPv6 to `systat -netstat'.ume2005-02-191-29/+122
| | | | | Tested by: kuriyama MFC after: 1 week
* Support correct programming environment name for amd64.wollman2005-02-181-1/+1
| | | | MFC after: 3 days
* Document the --null, --one-file-system, and -I options.kientzle2005-02-181-5/+34
| | | | Clarify that -T can be used in 'x' mode as well as 'c' mode.
* Push the assignments of some variables down into the sub-blocks whereharti2005-02-181-4/+16
| | | | | | | it is actually needed. This makes clear in which subblocks the variables are not needed and which can easier be split out. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Push down variables into local scope in Var_Parse to make theirharti2005-02-181-7/+6
| | | | | | liveness clear for splitting up this monster function. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Add myself to the calendarhq2005-02-171-0/+1
|
* Whitespace cleanup: substitute mixed tabs and spaces by canonicalharti2005-02-171-16/+17
| | | | whitespace and line up some variable definitions.
* Move error case to begin of if-else chain. Do not needless initializeharti2005-02-171-14/+19
| | | | | | | startc, but only at the place where the initialisation is needed. Remove a needless else. Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
* Fix two typos in comments.harti2005-02-171-2/+2
| | | | Submitted by: ru & Max Okumoto <okumoto@ucsd.edu>
* Sort out the error case that a single '$' was passed a little bitharti2005-02-171-6/+11
| | | | | | earlier instead of mixing its handling with other cases. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Mostly stylistic issues: move a variable into local scope, makeharti2005-02-161-36/+48
| | | | | | condition positive and fix long lines. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Better version of the patch in 1.117: bring a variable into local scopeharti2005-02-161-10/+15
| | | | | | | to prepare for function splitting and slightly reorganise the code in anticipation of Var_Subst returning a Buffer. Submitted by: Max Okumoto <okumoto@ucsd.edu> (with slight changes)
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-1/+1
| | | | socklen_t * argument.
* Expand contractions.ru2005-02-135-6/+6
|
* Expand *n't contractions.ru2005-02-1335-49/+49
|
* New order after _netcat has been changed to _nc: sort the list.delphij2005-02-131-1/+1
| | | | | Submitted by: ru Pointy hat to: me
* Back out the previous commit. There is an obvious bug in it.harti2005-02-131-12/+10
| | | | Pointy hat to: harti
* Spell the variable as underscore plus their possible value, to followdelphij2005-02-131-2/+2
| | | | | | the style nearby. Submitted by: ru
* Forgotten to commit this file during the last commit. Connect nc(1)delphij2005-02-131-0/+5
| | | | to build.
* Stylistic fixes: push variable into a local context (this part is goingharti2005-02-111-10/+12
| | | | | | | | to be split out into a function soon). Also there is no need to write back the colon that we have NUL-ed - the string is going to be freed anyway. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Convert several instances of negative logic to positive logic.harti2005-02-111-85/+84
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Buffers are already NUL-terminated so there is no need to explicitely addharti2005-02-101-1/+0
| | | | | | a NULL. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Mostly stylistic nits in preparation for splitting up Var_Parse:harti2005-02-101-15/+19
| | | | | | | | use a more consistent style with regard to *str and str[0]; simplify code by introducing a temporary variable; shift a break around and add braces where appropriate. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fixed usage().ru2005-02-101-2/+3
|
* Require at least one argument.ru2005-02-102-10/+6
|
* Let the buffer just use the default size by specifying 0 as the sizeharti2005-02-101-1/+1
| | | | | | instead of specifying the default size explicitely. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Mark the modification of the input string (which should really be const)harti2005-02-101-1/+1
| | | | | | with a comment. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Style nits:harti2005-02-101-7/+13
| | | | | | | | Move some assignments nearer to where they actually used. Convert a loop from a for() to a while() to make it clearer and add braces to the long body of it. Split assignment from variable declaration. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Describe a pre-condition of Var_Parse().harti2005-02-101-0/+3
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Remove a comment that's not actual anymore.harti2005-02-101-3/+0
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fix spacing by converting mixes of space and tab to tab. Also add a numberharti2005-02-104-41/+46
| | | | | | of empty lines in appropriate places. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Initialise the status variable. W_SETTERMSIG uses its value.harti2005-02-101-0/+1
| | | | Submitted by: stefanf
* Lst_Append returns void, so the other case of the ? statementharti2005-02-101-1/+1
| | | | | | should also be void. Submitted by: stefanf
* back out 1.7 changes, unneeded and possibly wrong.alfred2005-02-101-9/+6
|
* Turn K&R functions into prototypes.stefanf2005-02-101-17/+6
|
OpenPOWER on IntegriCloud