summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Only indent once for continuation lines when not lining up withbde2004-02-122-3/+5
| | | | | | | | | | | | | | parentheses if the continuation indent is exactly half of the main indent. Indenting one contination indent for every level of parentheses gives bad results in most cases and is not what is done in about 90% of properly hand-formatted KNF code (sys/kern/*.c, nvi/common/*.c). The main advantage of the non-default KNF options -nlp -ci4 is that continuation lines don't accidentally line up with the next main indentation level or march to the right, and increasing their indentation defeats this. This behaviour change is limited to when the continuation indent is exactly half of the main indent to avoid adding yet another option.
* Add some presidential birthdays.wes2004-02-101-8/+23
|
* Add my birthday (for those interested)mlaier2004-02-101-0/+1
| | | | Approved by: bms (mentor)
* Added an option -ldi<N> to control indentation of local variable names.bde2004-02-094-4/+27
| | | | | | | | | | | | The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF indentation for locals (none)). The indentation for globals also applies to struct member names in local declatations. The indentation of variable names in multi-line declarations is broken in various ways and this commit gives some new variations. indent.1: Also clarified the description of -di<N>.
* Only use tabs to indent variable names if the declaration indent isbde2004-02-091-8/+8
| | | | | | | | nonzero (so that the 1-char indentation given by -di0 is never rendered by a tab). Removed garbage commented out code for setting the indentation of variable names.
* Backed out a part of previous commit that wasn;t mentioned in the logbde2004-02-091-2/+1
| | | | | message and wasn't quite ready (it avoided indenting the names of local variables).
* Fixed tab lossage in indented variable names. The -diN option wasbde2004-02-091-6/+22
| | | | | | | worse than useless because it caused things like mangling of "^int\tfoo" to "int foo" (this for N = 8). This quick fix breaks the invariant that characters between s_code and e_code have width 1, but nothing seems to depend on this.
* Fixed misformatting of "struct foo *bar" in function parameter lists. Itbde2004-02-091-8/+11
| | | | | | | | | | was mangled to "struct foo * bar". There should be an option to control this, but no space is normal. This finishes fixing the bugs in rev.1.4. indent(1) still doesn't really understand types in parameter lists. It thinks keywords inside parentheses are for casts or sizeofs. This works accidentally for scalar types and this quick fix makes it work similarly but not so accidentally for struct/union/enum types.
* Expanded the size of the keyword table from 100 to 1000 entries so thatbde2004-02-091-1/+3
| | | | | | | | | | the number of typedef-names is not so limited. Same as in rev.1.4. Added the "const" and "volatile" to the keyword table. Rev.1.4 added these but they were misclassified so they were not formatted as types. indent still doesn't really understand them. E.g., it mangles "char * const *foo" and "char *const *foo". This change mainly stops it mangling "char const foo" to "char<declaration-indent>const foo".
* Backed out rev.1.4 and 1.7 so they they can be implemented and committedbde2004-02-091-18/+5
| | | | | | | | | | | | | properly. Of the 3 changes mentioned in the log message for rev.1.4, the first (implementing -[n]fcb) was correct but didn't touch this file, the second (no-space-after-sizeof) was not actually done (it is the default and is controlled by the undcoumented -[n]bs options), and the third (no-space-after 'struct foo *') was very buggy and was reduced to wrong comments and other style bugs by backing out the main part of it in rev.1.6. Rev.1.4 had 2 changes which were not mentioned in its commit log: expand specials[] so that more than -83 typedef-names can be specified (this was the one working change in rev.1.4), and add "const" and "volatile" to specials[] (this was buggy).
* - Demangle usage().ru2004-02-071-10/+9
| | | | - Require the "directory" argument with the -d option.
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-0511-22/+23
|
* Added missing DPADD.ru2004-02-051-1/+1
|
* printed statistics about source address selection rules.ume2004-02-051-0/+25
| | | | Obtained from: KAME
* stops program if kvm_read fails.ume2004-02-051-2/+3
| | | | Obtained from: KAME
* - support hmac-ripemd160.ume2004-02-051-1/+10
| | | | | | - support AES XCBC MAC/AES counter mode. Obtained from: KAME
* print stats on SPD cache lookups.ume2004-02-051-0/+5
| | | | Obtained from: KAME
* - %d is 12 chars, not 10. use NI_MAX* where appropriate.ume2004-02-051-67/+52
| | | | | | | | - goodbye RC5. - use %llu directly. - KNF. Obtained from: KAME
* Removed unnecessary dependencies on librpcsvc.ru2004-02-042-6/+0
| | | | Prodded by: des
* Put libdevstat before libkvm, because the former depends on the latter.ru2004-02-042-4/+4
|
* Add myself.josef2004-02-031-0/+1
| | | | Approved by: simon(mentor)
* Add my birthday.le2004-02-031-0/+1
| | | | Approved by: joerg (mentor)
* Fixed style of assignments.ru2004-02-021-2/+2
|
* GC (now unused here) -lcrypt.ru2004-02-021-2/+2
|
* Back out LANG printing changes. POSIX is unclear in this place, butache2004-02-021-10/+11
| | | | other systems do that in the old way.
* Fix printout case when LANG is overwritten by LC_ALLache2004-02-011-11/+10
|
* Remove the inadvertant HTML additions to this man page.wes2004-01-281-4/+4
| | | | | | These appear to have been inserted in the PR text by gnatsweb. Noticed by: des (maintainer)
* Add NO_BLUETOOTH knob to the build processemax2004-01-281-0/+2
| | | | | Requested by: phk Reviewed by: imp (mentor), ru
* Back out part of 1.21, since it breaks `script interactive-program`. Thiscperciva2004-01-271-2/+1
| | | | | | | | | re-breaks non-interactive portupgrade (or at least old versions of portupgrade); I'll see if I can put together a solution which avoids breaking anything later. Approved by: rwatson (mentor) Noticed by: Stefan Farfeleder, Joshua Goodall
* Fix ~/.hushlogin handling.fjoe2004-01-261-3/+4
| | | | | PR: 61354 Submitted by: Eugeny Grosbein <eugen (at) kuzbass.ru>
* New -e flag, modifies the behavior of the -u uid flag to use thedds2004-01-262-4/+16
| | | | | | effective user id, instead of the real user id. MFC after: 2 weeks
* Revert changes of rev 1.55; replace with strong encouragement towes2004-01-261-87/+14
| | | | | | read fetch(3) as well. Requested by: des (maintainer)
* Previous commit did the reverse of what the log message said (and ofdes2004-01-261-1/+1
| | | | what I intended to do). Really remove my middle name.
* Fixed a bug that previous revision has introduced -- we missedru2004-01-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the double quotes ("" and '') as a separate argument. Reported by: ache The fix in this and previous revisions combined is functionally equivalent to the below patch against rev. 1.27 but the code is now much easier to follow: %%% Index: str.c =================================================================== RCS file: /home/ncvs/src/usr.bin/make/str.c,v retrieving revision 1.27 diff -u -r1.27 str.c --- str.c 28 Oct 2002 23:33:57 -0000 1.27 +++ str.c 25 Jan 2004 12:09:21 -0000 @@ -168,7 +168,7 @@ inquote = (char) ch; /* Don't miss "" or '' */ if (start == NULL && p[1] == inquote) { - start = t + 1; + start = t; break; } } %%%
* I don't normally use my middle name, so remove it from attributions indes2004-01-251-3/+3
| | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
* Fix section number in cross reference.tjr2004-01-231-1/+1
|
* Document fetch(1) environment variables in fetch(1) man page, instead ofwes2004-01-231-12/+108
| | | | | | | taking lazy users on the arduous journey through SEE ALSO to fetch(3). PR: docs/61759 Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* Fix SYNOPSIS of manual page, clustering no-arg options correctly.sheldonh2004-01-222-4/+2
| | | | Sync usage with manpage.
* Two fixes for script(1):cperciva2004-01-221-11/+22
| | | | | | | | | | | | | 1. Don't do tty stuff to stdin if stdin isn't a tty. 2. When running in non-interactive mode, don't select(2) on the standard input. This un-breaks non-interactive portupgrade. PR: bin/59036 [1] PR: bin/56166, bin/57414, ports/57415, ports/60534 [2] MFC after: 7 days Approved by: rwatson (mentor)
* Serial murderers shouldn't commit suicide. (killall shouldcperciva2004-01-221-0/+4
| | | | | | | avoid killing itself.) PR: bin/46107 Submitted by: stacey <stacey_@starwhack.net>
* Fixed broken logic when parsing double quotes.ru2004-01-221-14/+5
| | | | | PR: bin/61673 MFC after: 1 month
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-222-2/+2
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Two fixes here:cperciva2004-01-221-2/+4
| | | | | | | | | | | 1. If fgets fails, don't go into an infinite cpu-intensive loop. Instead, check to see if the terminal still exists, and sleep(1) otherwise. 2. When we check to see if the terminal still exists, make sure we're not mislead by EINTR. This could have been a security issue, but fortunately the current implementation of tcgetattr doesn't EINTR. PR: bin/60758 Approved by: rwatson (mentor)
* Add my birthday.philip2004-01-211-0/+1
| | | | Approved by: njl (mentor)
* Revert previous commit, ru has ideas how to better document thisschweikh2004-01-211-9/+1
| | | | elsewhere.
* Use a larger field for the size in blocks; the current width (4 digits)des2004-01-201-1/+1
| | | | is only good for 5 MB.
* Document __MAKE_CONF and its default, /etc/make.conf.schweikh2004-01-191-1/+9
| | | | MFC-After: 2 weeks
* Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, makecharnier2004-01-184-21/+39
| | | | | | | | | | a new function dup_shell() to replace ok_shell() and make it unconditionnally strdup() its result to make the caller's code simplier. Change ok_shell() to just return an integer value suitable for tests (it was used mainly for that purpose). Do not use strdup() in the caller's code but rely on dup_shell() that will do the job for us. PR: bin/2442
* o -m flags contructs case sensitive RE, not case insensitive.maxim2004-01-181-1/+1
| | | | MFC after: 1 week
* o Sync usage() and man page synopsis with reality.maxim2004-01-182-9/+3
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud