Commit Graph

9978 Commits

Author SHA1 Message Date
wiz
8d19dcbd2b Whitespace. 2008-10-30 08:44:18 +00:00
sjg
9bb1d7525f Update the modification date 2008-10-30 00:40:42 +00:00
sjg
b3afe166ae Add some examples of how to use :? 2008-10-29 23:30:08 +00:00
christos
7bd2da510f bye old vi! 2008-10-29 16:49:33 +00:00
sjg
16d084a837 If Parse_Error is called after curFile is invalid, set it to a dummy
to avoid seg-fault.  Also the NULL filename will cause ParseVErrorInternal
to skip trying to report file and line number info.

If CondToken is called outside the context of a .if etc, variables in
the expression being parsed will already be expanded, so allow for
an unqouted number to jump us back into the compare logic.
This allows ${${SomeNumber:U42} > 0:?True:False} to work anywhere.

Job_Finish should process postCommands if it has commands or children.
2008-10-29 15:37:08 +00:00
ahoka
4a0fb013e5 Increase last_space only after we wrote the line, so we
don't end up with a trailing space at the end of almost every line.
2008-10-29 01:31:09 +00:00
christos
f0fa6bf8e1 pass lint. 2008-10-28 14:01:46 +00:00
hubertf
11236c9878 Make sshd find the xauth program, even with the new /usr/X11R7.
OK'd by christos@
2008-10-27 08:27:04 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb
89799ead73 Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-25 22:23:55 +00:00
apb
125b7c8cbb In shell scripts run during the build, add a SED variable, defaulting
to "sed".  SED=${TOOL_SED:Q} should be passed in the environment to
override this.
2008-10-25 22:18:15 +00:00
apb
675ed64522 Send debugging output to stderr by default, not to stderr.
If you really want debugging to stdout, specify "-dFstdout"
in MAKEFLAGS or on the command line.

Discussed in tech-userlevel.
2008-10-22 15:04:49 +00:00
matt
5331076d97 NFS hash tables no longer exist. 2008-10-22 11:36:58 +00:00
apb
296f525d9f When building as a host tool, do not add ${LIBM} to DPADD, but do add
"-lm" to LDADD as usual.  We do assume that the host system has a -lm
library, but we can't assume that the library is in /usr/lib/libm.a.
2008-10-20 18:16:54 +00:00
ad
eb1a865124 Don't complain about a missing 'file-system' directive. File system code
can be provided by modules.
2008-10-20 11:02:18 +00:00
wiz
1f8562f538 Fix three variable names.
From Todd T. Fries via Jason McIntyre.
2008-10-20 08:37:25 +00:00
apb
cd5c0f944d In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.
2008-10-19 22:10:04 +00:00
apb
f3f295c281 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:23 +00:00
apb
e0bccb6c18 During the tools build (from src/tools/awk/Makefile),
src/tools/Makefile.host changes .CURDIR back and forth between
src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
bsd.info.mk here leads to the obj dir being created at the wrong time,
while .CURDIR is src/usr.bin/awk.  Work around the problem by not
including bsd.info.mk when MKINFO=no.
2008-10-19 19:42:23 +00:00
wiz
dc9d42b1fd Spelling and whitespace and punctuation nits. 2008-10-19 17:57:19 +00:00
wiz
bcb1e574cb Add missing dot before macro. 2008-10-19 16:59:08 +00:00
apb
3bf9f42fd4 Always make the debugging output unbuffered; in addition, if debugging
is enabled but debugging output is not directed to stdout, then make
stdout line buffered.

Previously, the code to make debug output unbuffered applied only if
debugging to a file, not if debugging to stdout or stderr.  Making
stdout line buffered when debugging was suggested by Steven Bellovin.
2008-10-19 08:30:10 +00:00
apb
56ce706140 Document how "-dF[+]filename" works. 2008-10-18 14:36:40 +00:00
apb
1dd3e3655e Allow optional "+" in "-dF[+]filename" even if the filename is "stdout"
or "stderr".  Previously, the "+" was alowed only for real file names,
but it's easier to write the documentation if the "+" is always allowed.
2008-10-18 14:35:32 +00:00
ginsbach
06ec28991b More or less a complete rewrite. The man page now better matches reality. 2008-10-17 21:11:27 +00:00
ginsbach
b4822afab9 WARNS=3 2008-10-17 20:42:47 +00:00
apb
4de4994446 Fix a bug in which which(1) would check only the first element of the
path for all args except the first.  So "which cp vi" found /bin/cp
using the first entry in the path, but failed to find /usr/bin/vi
using the second entry in the path, although "whereis cp vi" worked.
Restoring the ":" was done in the wrong place.

Also fix a bug in which an arg beginning with "/" would cause all
subsequent args to be ignored.  A "break" should have been "continue".
Add comments to all break and continue statements saying what they are
intended to do.

Also add braces around the body of a for loop which contained only one
multi-line statement.
2008-10-17 10:53:26 +00:00
dholland
3b398d5c25 Adjust previous; apb@ points out that _PATH_TMP is provided by compat_defs.h;
thus, this shouldn't need a paranoid fallback definition.
And, use _PATH_TMP also in the second place that was using a hardwired "/tmp".
2008-10-16 05:41:13 +00:00
dholland
36c1b19ba1 Fix ridiculously small filename buffer for temporary file and resulting
truncation if $TMPDIR is set; also, fix an error path to not leave the
temporary file behind. From Gao Ya'nan in PR 39746.
While here, use _PATH_TMP instead of a hardwired "/tmp".
2008-10-16 05:35:01 +00:00
dyoung
47db387b04 Do not descend into docs/ unless MKDOC != no. 2008-10-13 18:11:54 +00:00
dholland
96ee89a3c5 Fix wrong memset; PR bin/39733 from Henning Petersen. 2008-10-13 14:00:37 +00:00
dholland
3251535c47 Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721. 2008-10-09 07:18:15 +00:00
lukem
a1e399536b WARNS=4 2008-10-08 03:55:18 +00:00
lukem
e9415a55f8 use a const struct hash pointer 2008-10-08 03:55:05 +00:00
lukem
9cec53beb4 Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.
2008-10-07 10:03:47 +00:00
lukem
84d42cdace Fail with a non-zero exit code if deleting a non-existant key.
Fixes bug introduced in rev 1.15, and reported in PR 39710 from Juan RP.

Don't display various warnings in delete if -q.
Suggested in PR 39710.

Add some sanity enforcing abort()s.
2008-10-07 01:32:51 +00:00
joerg
bd681a4d7e Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.
2008-10-06 22:09:21 +00:00
dholland
b458f98fad If the parser scrapes up something it thinks is positionally a month, but
is numerically out of range, do something reasonable instead of crashing.
PR bin/39627.
2008-09-30 05:51:41 +00:00
dholland
d65073510e Use off_t, not __off_t. 2008-09-30 04:03:37 +00:00
lukem
b88214a09b update copyrights 2008-09-30 03:41:53 +00:00
dholland
c92bbe4462 Don't accidentally treat "long double" as "long". PR bin/39639. 2008-09-27 20:04:24 +00:00
matt
c58ed3675c Add the complex types to the floating point promotion rules. 2008-09-27 02:30:46 +00:00
matt
2ded04cde2 Add a missing label for LCOMPLEX 2008-09-26 23:51:04 +00:00
matt
9364aa71ae Teach lint about long double _Complex (C99) 2008-09-26 22:52:24 +00:00
hubertf
4841b75981 sign over my copyright to TNF 2008-09-22 13:10:25 +00:00
wiz
ccc14bc16a Sort options. Uppercase GNU. 2008-09-21 16:46:01 +00:00
joerg
d5b2c9a825 Update patch to the version used by DragonFly and derived from OpenBSD.
Major changes are:
- better detection of double applied patches
- rejects remain unified diffs for unified patches
- far less limitations, e.g. patch lines may be arbitrary long

This addresses PR standards/11220 by changing patch -b behavior to be
POSIX compliant. Old behavior can be obtained using --suffix, which
works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
2008-09-19 18:33:34 +00:00
perry
5a047c798a Add a -r flag that is an alias for -E, for compatibility with gnu sed. 2008-09-16 13:32:04 +00:00
christos
dcfa7f5149 handle SI_NOINFO 2008-09-12 20:46:42 +00:00
christos
a5ae52b986 When returning an unknown code, return the code number not NULL 2008-09-12 20:44:40 +00:00