dholland
d05d2aa5a7
Expose less of the parser state outside str.c.
2013-08-10 23:54:41 +00:00
sjg
7f708505a0
ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.
...
Consume up to next newline, and issue a parse warning.
If no newline found before P_end, carry on as before.
2013-08-10 21:20:03 +00:00
dholland
3c77b25ade
punctuation usage
2013-08-10 20:59:27 +00:00
sjg
ac8c620987
Move the call to Job_SetPrefix() to Job_Init() so that
...
makefiles have had a chance to set .MAKE.JOB.PREFIX
2013-08-04 16:48:15 +00:00
sjg
bd8f3e806f
Allow an empty .MAKE.JOB.PREFIX to supress output of --- job --- tokens
2013-07-30 19:09:57 +00:00
joerg
349a581e92
Mark the dead.
2013-07-30 15:10:04 +00:00
pgoyette
d96eb15780
fferentiate zegrep and zfgrep by their basename only, so they can be
...
invoked with a pathname (ie, /usr/bin/z{e,f}grep).
OK wiz@
2013-07-25 12:25:23 +00:00
wiz
a5684d07dd
Use Mt for email addresses.
2013-07-20 21:39:55 +00:00
uwe
2a44517182
Constify some more.
2013-07-19 05:05:59 +00:00
uwe
4e29a793cc
Spell "keywords" without space. Fix couple of typos.
2013-07-19 04:59:46 +00:00
uwe
6a118683e9
manual_find_buildkeyword() - now that we control the format string, we
...
may use asterisk precision specification instead of temporary
modifying the _build string itself.
2013-07-19 04:55:05 +00:00
uwe
6fed3e8105
Fix manual_find_buildkeyword() to not use non-literal printf format.
2013-07-19 04:18:10 +00:00
uwe
fd25be260e
Use -Wno-format-nonliteral instead of blanket -Wno-format.
2013-07-19 04:17:02 +00:00
matt
c9855651f8
Add stub port for evbcf which has enough to do a distribution build.
2013-07-18 22:08:59 +00:00
matt
105794b79c
Use ${MACHINE_CPU} == "m68k"
2013-07-18 21:11:47 +00:00
matt
611b1a73a0
Make sure fdformat is on m68k (even sun2)
2013-07-18 21:03:07 +00:00
uwe
887d84a8cf
Don't access memory outside the array if tmpdirlen == 0.
2013-07-18 16:33:31 +00:00
christos
f75400a6b8
use -Wno-format and revert "fixstring"
2013-07-18 16:28:52 +00:00
christos
532207c739
Set the string to NUL instread of providing an new empty string (from uwe)
2013-07-18 16:01:25 +00:00
christos
ef965bff9b
WARNS=6
...
- fix cast qual issues
- don't use snprintf on a user-provided buffer
2013-07-18 15:39:08 +00:00
sjg
11a6c9d08b
From bmake: move decl of pwd nearer to where it is used so the whole
...
thing can be ifdef'd out without causing unused variable errors.
2013-07-18 15:31:49 +00:00
uwe
a2ec5e5863
Revert previous; other errors from WARNS=3 obscured the error in jump().
2013-07-18 04:05:32 +00:00
uwe
d7a42acd68
Constify jump() arguments appropriately.
2013-07-18 04:02:31 +00:00
uwe
e0d6c9b51f
Move manstate::pagerlen so that its "length of the above" comment makes sense.
2013-07-18 03:48:22 +00:00
uwe
3403b722b4
whatis.db is no more, so don't mention its location in FILES.
2013-07-18 03:40:31 +00:00
uwe
db23d137fa
Remove unnecessary line wrap.
2013-07-18 03:38:25 +00:00
sjg
af0aba95fb
When a var is set in the CMD context, it prevents the same name
...
being set in GLOBAL context. We should also delete any such
variable in GLOBAL context, else make -V will show the wrong value.
2013-07-16 20:00:56 +00:00
sjg
7217d3f346
Fix unit-tests to cope with recent change to progname
2013-07-16 19:59:28 +00:00
christos
b294e9655c
WARNS=6
2013-07-16 17:48:22 +00:00
christos
17cdc7e70d
use bmake_foo instead of efoo()
2013-07-16 14:22:13 +00:00
christos
4f413ffa5d
More gmake compatibility:
...
1. add -w flag to print Entering and Leaving directory name the the beginning
and the end of processing.
2. export MAKELEVEL=$((MAKELEVEL + 1)) only in the child environment.
3. when printing error messages, prefix them with the program name [$MAKELEVEL]
for $MAKELEVEL > 0
4. if $MAKEFLAGS consists only of letters assume it is a set of flags (as
allowed by posix), convert them to -f -l -a -g -s, so that they get parsed
properly.
With those fixes gmake -> bmake -> gmake -> bmake etc. works as expected.
2013-07-16 14:00:53 +00:00
christos
76db28c1cd
Make this work again like gmake. sjg: see the test program.
2013-07-15 20:33:11 +00:00
joerg
2a9957221e
Fix description of hex encoding.
2013-07-15 18:46:47 +00:00
sjg
3eb72d30de
For .MAKE.LEVEL.ENV use VAR_CMD so updates are ignored
2013-07-09 18:44:41 +00:00
sjg
b834173368
Set .MAKE.LEVEL.ENV to the name of the env variable used to communicate
...
the recursion level to sub-makes.
2013-07-09 18:13:14 +00:00
sjg
58ba636624
If using gmake's MAKELEVEL; use it the same way
2013-07-06 18:19:17 +00:00
sjg
db7ba27731
If commandShell hasErrCtl is true, set shellErrFlag for use by
...
CompatRunCommand() so that behavior in jobs and compat mode
remains consistent.
2013-07-05 22:14:56 +00:00
joerg
c664b621d8
Swap order of _CITRUS_LC_MONETARY_SYM_INT_N_CS_PRECEDES and
...
_CITRUS_LC_MONETARY_SYM_INT_P_SEP_BY_SPACE to match data files.
2013-07-04 11:36:17 +00:00
riastradh
a7f90b2fd2
Fix races in /dev/u?random initialization and accounting.
...
- Push /dev/random `information-theoretic' accounting into cprng(9).
- Use percpu(9) for the per-CPU CPRNGs.
- Use atomics with correct memory barriers for lazy CPRNG creation.
- Remove /dev/random file kmem grovelling from fstat(1).
2013-07-01 15:22:00 +00:00
christos
865e3e8f40
PR/47973: Justin Cormack: build uses <sys/signal.h> not in POSIX
2013-06-29 15:19:32 +00:00
mlelstv
9adb142f7d
Change to home directory only after setting the full user context
...
to avoid issues with NFS or other user-mapped mounts that don't
give root the privilege to chdir there.
2013-06-29 05:08:35 +00:00
christos
8e33b891d8
prevent re-entry race and crash
2013-06-28 17:36:18 +00:00
joerg
9e69720425
Fix violations of the sequence point rule.
2013-06-28 15:04:35 +00:00
wiz
a87a4e005d
Prefer Aq to \*[Lt] etc.
2013-06-28 10:13:18 +00:00
jdf
eb2a9790dd
* adjust indentation of list block
...
* fix capitalization
* remove superfluous word ('The')
Patch supplied by Bug Hunting.
2013-06-27 21:55:10 +00:00
agc
6a34c4426f
fix a typo
2013-06-26 20:20:36 +00:00
wiz
46ad464f12
Remove trailing whitespace.
2013-06-25 07:08:10 +00:00
sjg
adfd644b2f
Add .MAKE.META.IGNORE_PATHS to facilitate local additions to the paths
...
which should be ignored by meta_oodate().
2013-06-25 00:20:54 +00:00
sjg
8d830c54ea
Ignore any files in /proc/
2013-06-24 21:16:02 +00:00
riastradh
6290b0987e
Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).
...
rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.
Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).
rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.
cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking. (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
2013-06-23 02:35:23 +00:00