summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Add an entry for myself.jcamou2005-03-021-0/+1
| | | | Approved by: trhodes (mentor)
* Use the LST_FOREACH macro instead of the Lst_ForEach function. Thisharti2005-03-021-18/+24
| | | | saves function calls and reduces void casting.
* Make sure the length variable is initialized to 0 before passingharti2005-03-015-12/+18
| | | | | | | | it to Var_Parse(). Patch: 7.85 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Split out ParseModifiers from VarParseLong.harti2005-03-011-590/+603
| | | | | Patch: 7.84 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* VarParseLong: Create new else block for haveModifier. Move the callharti2005-03-011-37/+49
| | | | | | | | | to VarExpand down into the branches of the if as well as cleanup code. Eliminate code that is now obviously dead. Patch: 7.83 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Add myself to the calendar.flz2005-03-011-0/+1
| | | | | | Feel free to send presents :) Approved by: pav (mentor)
* Reverse a condition so that the else clause can be changedharti2005-03-011-39/+38
| | | | | | | | to a fallthrough. Patch: 7.82 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* VarParseLong: Move the initialisation of dynamic up which savesharti2005-02-281-3/+7
| | | | | | | | | an else clause. Move the assignment to the lengthPtr down to just before the return statements. Patch: 7.81 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Buf_GetAll wants a pointer as its second argument, not a boolean -harti2005-02-281-1/+1
| | | | | | replace FALSE by NULL. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Don't modify the input string in VarParseLong(). It is notharti2005-02-281-15/+6
| | | | | | | | | necessary to NUL-terminated it, because we know the lengths from the pointers. Patch: 7.80 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Add my birthday.barner2005-02-271-0/+1
| | | | Approved by: arved (mentor)
* Make the format of LC_COLLATE files architecture independent.ru2005-02-271-9/+23
|
* Fix two cut'n'paste'os which violated format of NLS catalogsphantom2005-02-271-4/+2
|
* Fix build on sparc64.ru2005-02-271-2/+2
|
* Remove unused now stuff, also set WARNS to 8phantom2005-02-273-898/+1
|
* Bring in NetBSD's improvements and cleanups to NLS subsystem, makingphantom2005-02-271-123/+708
| | | | | | | | | | | | | | | | | | | | | | | | it type and endian clean. Also following changes were done: . Remove of outdated support for generating of include files for NLS catalogs being generated. . Integrate my old code optimizations . ANSI'fy prototypes . Remove duplicate defines, and cleanup includes . Remove first (unused) argument from error() function . Const'ify (gencat now WARNS=8 clean) . Convert corrupt() and nomem() functions to macros . Add *temporary* note what '-new' command line argument is deprecated now (instead of exiting with error message) WARNING: format of generated .cat files is changed! XXX: re-add support for *updating* of .cat files, NetBSD has this functionality disabled Obtained from: NetBSD (mostly)
* Zero out the entire "struct __collate_st_chain_pri", or garbageru2005-02-271-12/+8
| | | | | | | | appears in LC_COLLATE files (due to alignment). An alternative would be to bump STR_LEN to 16. (This is in preparation to make LC_COLLATE files architecture independent.)
* MFC 1.22: Fix -0 vs -L/-I processing, mainly so that 'xargs -0 -I []' willgad2005-02-271-2/+9
| | | | | | | do something sensible (namely: treat then '\0' as the EOL character, when deciding what "a line" is for -N). Note that -I implies -N. MFC after: 3 days
* Make the format of LC_CTYPE files architecture independent byru2005-02-263-82/+78
| | | | | | | | | | | | | introducing the disk formats for _RuneLocale and friends. The disk formats do not have (useless) pointers and have 32-bit quantities instead of rune_t and long. (htonl(3) only works with 32-bit quantities, so there's no loss). Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x would be trivial (verified), but we no longer provide pre-5.3 source upgrades and this is the first commit to actually break it.)
* Major clean up and split the Var_Parse monster function into threeharti2005-02-261-676/+714
| | | | | | | | | functions: one for the single letter variables, one for the others and one that does the recursive expansion. Patches: 7.68-7.79 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fix mismerge.trhodes2005-02-261-1/+1
| | | | Noticed by: tjr
* Change the return value of Var_Subst to return a Buffer insteadharti2005-02-259-88/+182
| | | | | | | | of a char *. Patch: 7.49 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fix a typo in my last commit.sem2005-02-241-1/+1
| | | | Reported by: ceri
* Put my birthday into the pool.sem2005-02-241-0/+1
| | | | Sorry guys, USSR idiosyncrasy.
* Var_Parse: Separate different error states by introducing an else blockharti2005-02-241-64/+54
| | | | | | | | | | | | after a return. Move assignments to {freePtr, dynamic, start} closer to the return statements to clarify which variables are actually used for communication between the losely coupled blocks of the code. Clear up an if-expression to make common structures of the conditions clearer. Use strchr instead of switch statements to check for a character beeing a member of a set. Patches: 7-62.2, 7-62.3, 7-64, 7-65.1, 7-65.2 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Push assignments to just before the returns from the function toharti2005-02-241-16/+18
| | | | | | | get it clearer what variables are actually needed. Patches: 7.62.2, 7.62.3 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Fix wording of a comment.harti2005-02-241-1/+1
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Replace the calls to Lst_ForEach with the new LST_FOREACH macro andharti2005-02-242-9/+24
| | | | | fix the prototype for Compat_RunCommand to take the actual argument types instead of void *.
* 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.
OpenPOWER on IntegriCloud