Commit Graph

11762 Commits

Author SHA1 Message Date
joerg
7b1c18b0f7 Maintain nalias and nterm on the fly. 2012-05-31 21:01:06 +00:00
joerg
18604821d3 One more strdup -> estrdup. 2012-05-31 20:40:05 +00:00
joerg
cff379a94b Use e* from util.h. 2012-05-31 20:38:19 +00:00
joerg
2b5ab40700 Replace linear lookup with hash table, reducing runtime by 60%. 2012-05-31 20:10:06 +00:00
joerg
974fdf3721 Use queue(3) 2012-05-31 19:56:32 +00:00
joerg
968a666e92 Prefer __printflike. 2012-05-31 19:00:41 +00:00
sjg
4c3de88126 Don't pass debug flags etc. to unit-tests 2012-05-30 21:54:23 +00:00
sjg
b420f1eb56 An empty command is quietly ignored in jobs mode, but causes a failure
in compat mode.  Just skip it.
2012-05-30 21:42:04 +00:00
sjg
26b0dda80a In meta mode, level 0 can legitimately see > 64 nested .if's 2012-05-21 06:30:02 +00:00
christos
ec88541aff - use __dead consistently.
- more clang build.
2012-05-19 00:02:44 +00:00
sjg
35fdcec3af Avoid nested extern declaration warnings 2012-05-18 02:28:16 +00:00
seanb
90cfd29599 - Use _exit() instead of exit() in signal handler since
the latter isn't signal safe.
2012-05-15 17:51:51 +00:00
wiz
dc304d1ec0 Add EXIT STATUS section and bump date.
From Bug Hunting.
2012-05-14 21:14:14 +00:00
njoly
2178b4237c Small typo in macro. 2012-05-13 17:08:31 +00:00
wiz
309c96cfa6 Full list of changes:
- remove spurious white space;
- punctuation;
- new sentence, new line;
- decapitalization;
- for the non-superuser example command lines, use a consistent
  shell prompt character.

From Bug Hunting.
2012-05-13 15:50:41 +00:00
wiz
06b206851a Bump date for previous. 2012-05-12 21:42:38 +00:00
dholland
853ab96025 Remove traces of -D option, which no longer does anything. 2012-05-12 19:53:21 +00:00
wiz
67717ff652 Remove trailing whitespace. 2012-05-12 15:17:15 +00:00
reed
42346787b7 Change or add history. I checked the 1bsd archives and this first
appeared in 1BSD (before it was known as 1BSD). I looked at code and
later sccs history to confirm.  In the case of rewritten code, we are
not consistent in manpages indicating that history.
2012-05-12 14:52:57 +00:00
reed
420833fa21 Clarify description of -s switch. 2012-05-12 14:42:12 +00:00
christos
8a981eca3c Don't use the cache when building nodes that might have changed since the
last exec.
2012-05-10 19:53:26 +00:00
christos
b3f77d243b dead for sigint 2012-05-10 01:25:24 +00:00
wiz
4739fc03e4 Adapt to repository move of dist from external/bsd/bzip2 to
external/bsd/bzip2/dist.
2012-05-07 08:51:47 +00:00
wiz
3815d29a7f Finish move of bzip2 from dist/bzip2 to external/bsd/bzip2. 2012-05-07 00:35:25 +00:00
joerg
a9992047e4 Consistently short cut the pattern loop on mismatches.
Don't assign 1 conditionally, if unconditional works as well.
2012-05-06 22:32:05 +00:00
joerg
0fe4b4b06b Remove matchall handling for now, it doesn't work correctly and as such,
it is a premature optimisation.
2012-05-06 22:27:00 +00:00
joerg
40b375f194 Make the matchall case a full short cut. 2012-05-06 21:56:08 +00:00
dholland
1d1104dd8c rest of previous.
BQS: 1. dholland: 0.
2012-05-05 21:16:16 +00:00
dholland
f88a50da82 typo in comment 2012-05-05 20:48:51 +00:00
jnemeth
a8f4028e66 Update all variable days
- religious holidays taken from Wikipedia where available
- floating days (i.e. X day of Y month) taken from cal(1)
- NetBSD releases taken from http://www.netbsd.org/releases/formal.html#history
  - hopefully somebody will update this for the 6.0 release

Hopefully, these days will be correct for the first year of NetBSD 6.0.
2012-05-05 01:29:56 +00:00
christos
5942983d76 set close on exec for all opened files. 2012-04-29 23:50:22 +00:00
para
308636e770 remove malloc(9) output function from vmstat
it is not required and working any more
2012-04-29 16:23:56 +00:00
christos
6d6339ce42 document _machine 2012-04-29 03:46:43 +00:00
wiz
e8c42d35c6 Add some noreturn attributes for clang. 2012-04-29 01:26:56 +00:00
wiz
70c9435fd5 Sync usage with SYNOPSIS. 2012-04-27 06:30:48 +00:00
christos
ed9eb31642 support the LOG_CONS/LOG_NDELAY. 2012-04-26 21:11:24 +00:00
christos
3d8af4cc0a Fix wrong loop index leading to infinite loop
ifdef(`FOO',
# FOO
)
XXX: Pullup to 6.
2012-04-25 18:23:58 +00:00
sjg
f3251c8ae2 Fix handling of -dF+/tmp/file 2012-04-24 20:35:04 +00:00
sjg
26aa697a51 Var* are generally very liberal with memory, with the expectation
that none of it persists for long.
This isn't always true - for example a long running .for loop.

Buf_DestroyCompact() is used by Var_Subst(), rather than Buf_Destroy().
If it looks like we can save BUF_COMPACT_LIMIT (128) or more bytes,
call realloc.  This can reduce memory consumption by about 20%
Setting BUF_COMPACT_LIMIT to 0 dissables this.
2012-04-24 20:26:58 +00:00
sjg
845789be8d Restore previous behavior - supressing duplicate entries in
.MAKE.MAKEFILES - it is more efficient.
2012-04-24 20:12:16 +00:00
christos
0827265996 no more KRB5_DEPRECATED 2012-04-24 16:52:26 +00:00
christos
39d6d02b14 last commit before I nuke the old code. 2012-04-24 16:51:19 +00:00
christos
769f2e22f8 move more of the compat code in the compat block. 2012-04-24 16:12:44 +00:00
christos
d3fb120e97 don't abuse the instance variable 2012-04-23 21:09:27 +00:00
christos
08935f4cd9 make kerberos work again:
1. make notickets external
2. don't use the tty as part of the credential cache, since pts/1 will not work.
3. Attempt to use the newer functions, but punt for now since it does not work yet.
2012-04-23 20:57:04 +00:00
christos
0c647c7841 remove obsolete comment. 2012-04-23 20:54:40 +00:00
christos
925babedcc fix the USE_KERBEROS=no USE_PAM=no build. 2012-04-23 18:27:15 +00:00
christos
dbd9f683e7 centralize error function processing. 2012-04-23 15:07:02 +00:00
martin
6192dc18bf trimusername (which does not exist) probably was meant to be called
trimloginname (which does exist, at least)
2012-04-23 09:27:36 +00:00
christos
0dfe19f4d3 - fix non pam build
- merge duplicated error code
- fix opt struct leak
2012-04-22 23:43:51 +00:00