Commit Graph

283759 Commits

Author SHA1 Message Date
christos
53f65f3d12 fix comment 2020-12-13 18:12:29 +00:00
rillig
6d3aa3c8ae make(1): demonstrate wrong error handling in compat mode 2020-12-13 17:44:31 +00:00
christos
ae9ebf6f0f Improve previous: generated names end with .[[:digits:]] so look for that
instead.
2020-12-13 16:50:47 +00:00
rillig
61121a11fe make(1): add comments for strange error handling in Compat_Run 2020-12-13 16:47:19 +00:00
rillig
a65a89393b make(1): extract InitSignals from Compat_Run 2020-12-13 16:32:57 +00:00
rillig
edc3918f88 make(1): extract MakeBeginNode from Compat_Run
The comment "execute the commands" had once been correct but not
anymore.  Since a few years, not only the commands of the .BEGIN and
.END nodes are executed, instead the nodes are made as usual, including
their dependencies.
2020-12-13 16:30:08 +00:00
rillig
67ff6c82cb make(1): extract UseShell from Compat_RunCommand 2020-12-13 16:14:40 +00:00
martin
77641d430c Add atppc* at acpi? 2020-12-13 08:23:52 +00:00
martin
52a4e4b878 Add missing include 2020-12-13 08:20:56 +00:00
isaki
b363aa9429 Revise comments. 2020-12-13 05:47:08 +00:00
isaki
5c048e8c4c Fix a return value of audiopoll().
fo_poll is expected to return revents rather than errno on error.
2020-12-13 05:44:09 +00:00
isaki
459e45cd9b Avoid a dead lock in audiodetach, since rev 1.63.
audio_unlink() must be called without exlock held (and
audio_mixer_destroy() must be called with exlock held).
This makes unplugging during playing/recording work (again).
Reported by Julian Coleman on current-users:
 http://mail-index.netbsd.org/current-users/2020/12/10/msg040050.html
2020-12-13 05:29:19 +00:00
isaki
ef5b725085 Add missing newline. 2020-12-13 05:21:12 +00:00
sjg
a39ab01a94 Prune job debug output that may appear out of order.
A race between child and parent means that we cannot
guarantee whether all child output is seen before we call
JobClosePipes, thus intervening debug output can appear
before or after the last child output.
2020-12-13 05:13:38 +00:00
rillig
2eebef5d2b make(1): remove dead code from GetVarnamesToUnexport
Now that the parsing of the directives is unified and strict, there is
no need anymore for the dispatched functions to check for unknown
directives.  These functions don't even get the information to decide
that since this decision is already done.
2020-12-13 02:15:49 +00:00
sjg
aefb247373 Avoid noise when csh does not exist 2020-12-13 02:09:55 +00:00
sjg
5f5af6046f Ensure we have a value for .MAKE.UID 2020-12-13 02:09:33 +00:00
rillig
e774dc5acc make(1): replace *line with line[0]
Since a line is not an iterator and since the expression *line typically
means "the current element", not "the first character", replacing *line
with line[0] more directly expresses the idea of accessing the first
character of a string.
2020-12-13 02:01:43 +00:00
rillig
40711a6e7b make(1): clean up comment for ParseDirective 2020-12-13 01:51:08 +00:00
rillig
b506ce346a make(1): clean up Var_Export 2020-12-13 01:41:12 +00:00
rillig
80fcd08175 make(1): replace bitset VarExportFlags with enum VarExportMode
The previous flags were not combined at all.
2020-12-13 01:33:17 +00:00
rillig
b02ee7708d make(1): adjust timestamps in unit tests
These could not be known before the previous commit.
2020-12-13 01:10:22 +00:00
rillig
f00bc469bf make(1): error out on misspelled directives
Before, make accepted misspellings like .warnings, .export-literally and
a few others, all of which are unlikely to occur in practice.  See the
test directive-misspellings.mk for further details.
2020-12-13 01:07:54 +00:00
rillig
7b010c3449 make(1): add test for misspelled directives
This test allows the other directive-* tests to focus on the purpose of
the individual directive, allowing these tests to continue after
parsing, without errors.
2020-12-13 00:46:25 +00:00
roy
fccfea72eb t_ossaudio was installed for clang, so remove gcc marking 2020-12-13 00:37:43 +00:00
roy
3728077580 diffutils: execl requires a NULL sentinel 2020-12-13 00:04:40 +00:00
rillig
6188dab3ce make(1): reduce indentation of ParseDirective 2020-12-12 21:35:21 +00:00
rillig
ffcddf1eb1 make(1): eliminate boolean argument of Var_Export 2020-12-12 21:20:30 +00:00
rillig
63402ea177 make(1): extract ExportVarsExpand from Var_Export 2020-12-12 20:00:51 +00:00
rillig
d32acaa90f make(1): fix undefined behavior when exporting ${:U } 2020-12-12 19:39:34 +00:00
rillig
32590eee1b make(1): extract ExportVars from Var_Export 2020-12-12 19:31:17 +00:00
rillig
ab1d2fd5b0 make(1): remove redundant call to strlen in Str_Words 2020-12-12 19:13:47 +00:00
rillig
bd57be24af make(1): rename Var_ExportVars to Var_ReexportVars 2020-12-12 18:53:53 +00:00
christos
b98337e278 Use the NetBSD-specific back-end. 2020-12-12 18:45:11 +00:00
christos
d95e80469e Add a NetBSD-specific back-end. (riastradh@) 2020-12-12 18:44:38 +00:00
christos
9050a28947 Be more clear and don't rely on cur being the first member. 2020-12-12 18:41:13 +00:00
uwe
ae95c1c5e7 vfs_cache - do not write outside allocated memory.
In cache_cpu_init allocate struct nchcpu, not struct nchstats_percpu.
cache_update_stats expects the former (that contains two percpu
structs).  Stat updates where smashing whatever was in the next pool
allocation.

Reported by martin@ as crashes in ptyfs on Krups.
2020-12-12 18:35:59 +00:00
christos
e84e9f5696 Don't try to memcpy (size_t)-1 bytes! 2020-12-12 18:19:34 +00:00
rillig
6f740ba472 make(1): error out on misspelled .export directives 2020-12-12 18:11:42 +00:00
rillig
2997f3b2f1 make(1): error out on misspelled .unexport-env 2020-12-12 18:00:18 +00:00
rillig
dc6cc25fbe make(1): add number of uncovered lines to coverage report 2020-12-12 16:54:20 +00:00
jmcneill
0eb6f089ee Add support for decoding Platform Communications Channel Tables ("PCCT"). 2020-12-12 16:08:39 +00:00
rillig
e7e184a2e8 make(1): add target test-coverage 2020-12-12 16:06:27 +00:00
rillig
e667d310c7 make(1): add test for a shell with error control
None of the predefined shells has error control, and the corresponding
code had not been covered by the existing unit tests.
2020-12-12 15:06:11 +00:00
rillig
9b6628dd29 make(1): clean up comments around JobPrintSpecials 2020-12-12 13:13:34 +00:00
rillig
322623ce41 make(1): rename ParseRunOptions to ParseCommandFlags 2020-12-12 12:56:56 +00:00
rillig
51a24315f9 make(1): extract ShellWriter_ErrOn from JobPrintCommand
It had been conceptually wrong to modify cmdFlags.echo just to suppress
echoing while enabling error checking.

Now the code in JobPrintCommand speaks for itself and no longer needs
any comments.  The few lines at the end have the sole purpose of
restoring the default state (echo + errChk) in the shell file.
2020-12-12 12:54:58 +00:00
rillig
52b5fecfcb make(1): fix typo in comment of JobPrintCommand 2020-12-12 12:28:06 +00:00
rillig
8538421bd4 make(1): reduce number of test cases in sh-flags.mk
The field job->echo is initialized in JobStart (and in JobOpenTmpFile).
After that, it is not modified anymore.  Therefore it is not necessary
to run these test cases redundantly.

The field job->ignerr, on the other hand, is modified later on.  For
these cases, the many remaining test cases are still needed.
2020-12-12 12:19:18 +00:00
rillig
c9c491710a make(1): demonstrate that -s and .SILENT have the same effect 2020-12-12 12:13:12 +00:00