aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Now that there are no users of Lst_ForEach and Lst_ForEachFrom are leftHartmut Brandt2005-03-162-89/+3
| | | | | | | delete these two macros and all the associated stuff. Notes: svn path=/head/; revision=143704
* Replace Lst_ForEach by LST_FOREACH.Hartmut Brandt2005-03-162-43/+12
| | | | Notes: svn path=/head/; revision=143703
* Replace another bunch of Lst_ForEachs by LST_FOREACHs and simplify code.Hartmut Brandt2005-03-161-144/+98
| | | | Notes: svn path=/head/; revision=143694
* Dike out another kvm indiscretion.Poul-Henning Kamp2005-03-161-0/+2
| | | | Notes: svn path=/head/; revision=143689
* Fix a comment.Hartmut Brandt2005-03-161-3/+1
| | | | Notes: svn path=/head/; revision=143685
* Get rid of another bunch of Lst_ForEach in favour of LST_FOREACH andHartmut Brandt2005-03-161-204/+109
| | | | | | | simplify code accordingly. Notes: svn path=/head/; revision=143684
* Ups. Revert the last commits. These have been committed by accident.Hartmut Brandt2005-03-154-460/+429
| | | | Notes: svn path=/head/; revision=143657
* modifier_M: instead of going through the string twice to compute theHartmut Brandt2005-03-155-450/+470
| | | | | | | | | | | size of the buffer we need, just allocate the possible maximum. Patch: 7.117 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143656
* Style: Move a variable from a local scope up to the begin of the function.Hartmut Brandt2005-03-151-41/+38
| | | | | | | | | | | | Rename result variable so common code becomes more visible. Rename freePtr to freeResult to make clear what pointer must be freed. Patch: 7.116, 7.116a Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143653
* Dike out unwarranted si_udev fondling.Poul-Henning Kamp2005-03-151-1/+2
| | | | Notes: svn path=/head/; revision=143651
* Get rid of a number of Lst_ForEach calls in favour of LST_FOREACHHartmut Brandt2005-03-151-69/+26
| | | | | | | and simplify the printing functions. Notes: svn path=/head/; revision=143650
* VarParseLong: move the detection of the modifier separator ':' intoHartmut Brandt2005-03-151-19/+23
| | | | | | | | | | | | the loop. Add a comment why the 'consumed' variable is updated. Rename lengthPtr to consumed. Patch: 7.115 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143649
* Yet another version of passing the last line to ParseFinishLine().Hartmut Brandt2005-03-151-2/+2
| | | | | | | | | | It turns out that some ports use the obscure feature of spreading a dependency block across multiple include files. While this seems bad style, allow it for now and call said function only at end of all input to process the really last line of everything. Notes: svn path=/head/; revision=143647
* Get rid of another Lst_ForEach in favour of LST_FOREACH. Get ridHartmut Brandt2005-03-141-70/+38
| | | | | | | of the now unused struct LstSrc and collapes two functions into one. Notes: svn path=/head/; revision=143600
* ParseModifier(): rename rw_str to value and reindent cleanup section.Hartmut Brandt2005-03-141-70/+72
| | | | | | | | | | | | | ParseRestModifier() and ParseRestEnd(): move advancement of ptr to remove a confusing calculation. VarParseLong(): cleanup calculation of consumed. Patch: 7.114 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143599
* Move the creation of a Src structure into its own function.Hartmut Brandt2005-03-141-43/+33
| | | | Notes: svn path=/head/; revision=143567
* Split off two function from VarParseLong to handle modifiers and theHartmut Brandt2005-03-141-172/+221
| | | | | | | | | | | | actual variable lookup. Consistently rename lengthPtr to consumed. Update a number of comments to match the code. Patch: 7.111-113 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143566
* Convert a couple of other uses of Lst_ForEach to LST_FOREACH andHartmut Brandt2005-03-141-48/+40
| | | | | | | simplify code. Notes: svn path=/head/; revision=143556
* A handful of minor portability and style improvements.Tim Kientzle2005-03-143-15/+16
| | | | Notes: svn path=/head/; revision=143545
* Style correction: one tab after #define.Tim Kientzle2005-03-141-46/+47
| | | | Notes: svn path=/head/; revision=143544
* Re-unbreak the distfile target.Tim Kientzle2005-03-131-3/+4
| | | | | | | | | | Also, reduce the WARNS level to 5 since different build environments end up using different Yacc skeletons. The BSD one does not predeclare yyparse, the FSF one does, so it's not really possible to consistently enforce both -Wmissing-prototypes and -Wredundant-decls. Notes: svn path=/head/; revision=143543
* Fix a compile warning, fix the build.Tim Kientzle2005-03-131-1/+1
| | | | Notes: svn path=/head/; revision=143539
* "make depend" with .y files is trickier than it looks. <sigh>Tim Kientzle2005-03-131-3/+2
| | | | Notes: svn path=/head/; revision=143537
* Brain-o. Missing quote.Tim Kientzle2005-03-131-1/+1
| | | | Notes: svn path=/head/; revision=143536
* Add --newer-ctime, --newer-mtime, --newer-ctime-than, and --newer-mtime-thanTim Kientzle2005-03-139-38/+1066
| | | | | | | | | | switches to support selecting files by time of modification. Special thanks to: Steven M. Bellovin, Rich $alz, and Jim Berets, authors of the public-domain getdate.y date-parsing code. Notes: svn path=/head/; revision=143528
* Remove an unused #define. md5's with and without this commit match.Ceri Davies2005-03-131-1/+0
| | | | | | | Approved by: murray (mentor) Notes: svn path=/head/; revision=143524
* Add --strip-components option, per bin/77666.Tim Kientzle2005-03-135-2/+72
| | | | | | | Thanks to: Sangwoo Shim Notes: svn path=/head/; revision=143486
* Use socklen_t where appropriate.Stefan Farfeleder2005-03-111-1/+2
| | | | Notes: svn path=/head/; revision=143415
* Simplify the print routines by using LST_FOREACH instead of Lst_ForEachHartmut Brandt2005-03-113-63/+65
| | | | | | | | | and inlining the small printing utility functions. Create a function that can be used to produce printable representations of flag words. Notes: svn path=/head/; revision=143414
* Remove leading underscores from the pathname defines. All identifiersHartmut Brandt2005-03-113-25/+29
| | | | | | | | with leading underscore followed by an uppercase letter are in the implementation namespace. Notes: svn path=/head/; revision=143412
* Remove the leading underscore from structure tags. All identifiersHartmut Brandt2005-03-112-5/+5
| | | | | | | with a leading underscore are in the implementation namespace. Notes: svn path=/head/; revision=143411
* Style: Fix indentation.Hartmut Brandt2005-03-111-1062/+1074
| | | | Notes: svn path=/head/; revision=143407
* Call ParseFinishLine() also for the last line in a file. ThisHartmut Brandt2005-03-111-0/+3
| | | | | | | | | | | | | | | | | patch differs from the previous one in that it calls the function only when a real file hits EOF. The bodies of .for loops are also handled as files, but for these we don't want to end a dependency block on the 'EOF' as in: foo: do-this .for ... do-something .endfor do-more Notes: svn path=/head/; revision=143405
* Back out the last commit. It turns out that this breaks more thanHartmut Brandt2005-03-111-3/+0
| | | | | | | it fixes. This should fix the buildworld breakage. Notes: svn path=/head/; revision=143401
* Constify Var_Dump and simplify it by inlining VarPrintVar.Hartmut Brandt2005-03-102-15/+9
| | | | Notes: svn path=/head/; revision=143377
* Call ParseFinishLine() for the last line of a file too.Hartmut Brandt2005-03-101-0/+3
| | | | Notes: svn path=/head/; revision=143375
* Reorganize Suff_EndTransform to be called only for nodes forHartmut Brandt2005-03-103-44/+40
| | | | | | | which it is needed (transforms). Notes: svn path=/head/; revision=143372
* Style: fix function style before working on it (mainly intendation).Hartmut Brandt2005-03-101-30/+30
| | | | Notes: svn path=/head/; revision=143353
* Add limits on the number of elements in the sack scoreboard bothPaul Saab2005-03-091-0/+1
| | | | | | | | | | | per-connection and globally. This eliminates potential DoS attacks where SACK scoreboard elements tie up too much memory. Submitted by: Raja Mukerji (raja at moselle dot com). Reviewed by: Mohan Srinivasan (mohans at yahoo-inc dot com). Notes: svn path=/head/; revision=143339
* Add myself.Roman Bogorodskiy2005-03-091-0/+1
| | | | | | | Approved by: krion (mentor) Notes: svn path=/head/; revision=143329
* Implement a new macro LST_NEXT which is like Lst_Succ but doesn't checkHartmut Brandt2005-03-091-0/+1
| | | | | | | for its argument to be non-NULL. Notes: svn path=/head/; revision=143328
* Split SuffExpandChildren into three functions: one that skipsHartmut Brandt2005-03-091-178/+189
| | | | | | | | | variables and expands archive specifications, one that expands wild cards and a driver that loops over the children list and expands each child if necessary replacing it with it's expansions. Notes: svn path=/head/; revision=143327
* Fix dubious C code construct.Stefan Farfeleder2005-03-091-1/+1
| | | | Notes: svn path=/head/; revision=143318
* Var_Subst() cannot return NULL so there is no reason to checkHartmut Brandt2005-03-091-103/+90
| | | | | | | for it. Notes: svn path=/head/; revision=143312
* Style: fix indentation of SuffExpandChildren before working on it.Hartmut Brandt2005-03-081-172/+188
| | | | Notes: svn path=/head/; revision=143297
* Use Buf_Peel to get rid of a local variable.Hartmut Brandt2005-03-081-4/+3
| | | | Notes: svn path=/head/; revision=143292
* Use the Buf_Peel function to get to the string contained into aHartmut Brandt2005-03-081-5/+1
| | | | | | | buffer without using an extra local variable. Notes: svn path=/head/; revision=143291
* Remove useless local prototypes.Hartmut Brandt2005-03-081-4/+0
| | | | Notes: svn path=/head/; revision=143290
* Style: fix indentation.Hartmut Brandt2005-03-081-479/+489
| | | | Notes: svn path=/head/; revision=143289
* Use the new Buf_Peel function to simplify things.Hartmut Brandt2005-03-081-30/+9
| | | | | | | Remove an unused struct definition. Notes: svn path=/head/; revision=143288