wiz
207ba25b58
Bump date for previous.
2020-09-13 07:36:55 +00:00
mlelstv
ad2d0017d3
Document keyboard mode ioctls and let wsconsctl manage it.
2020-09-13 07:35:15 +00:00
rillig
6542651b33
make(1): add test for empty variable name in :@var@...@ modifier
2020-09-13 07:32:32 +00:00
rillig
89eba1ed39
make(1): reduce indentation in Compat_RunCommand
...
The while (1) had been there since the initial import on 1993-03-21, and
in all that time there had never been a good reason for having it.
2020-09-13 06:36:54 +00:00
rillig
d2428a10b1
make(1): remove #endif comments for very short blocks
2020-09-13 06:15:29 +00:00
rillig
f9ee8c199a
make(1): remove redundant VARARGS comments
...
These had been necessary at a time when the functions were declared with
"unknown parameter types".
On 1994-03-05, conditional support for function prototypes was added,
for those compilers that already supported this feature.
On 2002-06-15, the prototypes were made mandatory, and since then the
VARARGS comments had been completely redundant, or worse, simply wrong
(for ParseVErrorInternal).
2020-09-13 06:05:56 +00:00
mlelstv
edc4e8445d
Allow components to be specified by wedge name.
2020-09-13 06:04:53 +00:00
rillig
f605dcf5dd
make(1): consense documentation for Fatal
2020-09-13 05:56:32 +00:00
rillig
bc730628f1
make(1): improve implementation comment in Var_Parse
2020-09-13 05:55:39 +00:00
rillig
1bf447aedd
make(1): fix comments in test for the :M variable modifier
...
One mistake per sentence is pretty much, I must have been quite
unconcentrated.
The other commits from around that time are fine though.
2020-09-13 05:36:26 +00:00
isaki
baa8677bbf
Support audio descriptor for fstat(1).
...
sys/dev/audio/*.h: export only what we need for fstat.
2020-09-13 04:14:48 +00:00
kamil
0de11bbf9c
Currently restrict GCC TSan files to gcc=9
2020-09-13 03:43:16 +00:00
kamil
608062ee21
gcc(1): Install TSan for 64bit CPUs.
2020-09-13 03:03:57 +00:00
kamil
e94bb09cf6
Sync netbsd_syscall_hooks.h with LLVM r. 74760bb00fb9b78a
...
Update the syscall definitionss from a snapshot 2.5 years old to the
current one.
2020-09-13 03:00:12 +00:00
kamil
4b3dee3027
Build and install GCC TSan for 64-bit CPUs
2020-09-13 02:37:31 +00:00
rillig
cfc1011dce
make(1): fix assertion failure in Dir_Destroy in -DCLEANUP mode
...
When the openDirectories path list is cleaned up, each path from it is
first dequeued and then freed via Dir_Destroy. At this point, the path
is no longer in openDirectories, which triggered an assertion in
Lst_Remove, called by Dir_Destroy.
2020-09-12 23:12:44 +00:00
kamil
35d5e69e5a
Always link TSan runtime with librt and libm
...
With these changes, TSan/amd64 works.
2020-09-12 23:04:44 +00:00
kamil
999ae5b7da
Disable GetNamedMappingFd for NetBSD
...
Analogous logic is in LLVM rev. 74760bb00fb9b78a2fe122.
Removes undefined symbol linkage to shm_unlink and shm_open.
2020-09-12 22:52:24 +00:00
rillig
553707a5ee
make(1): add test for escaping dollars in the :M variable modifier
2020-09-12 22:35:43 +00:00
kamil
2f7e7363ca
Ignore unused functions in tsan_interceptors.cc
2020-09-12 22:24:22 +00:00
kamil
e654846f5f
Sync chunks of tsan_interceptors.cc with LLVM rev. 74760bb00fb9b78a2fe122
...
Sync tsan_interceptors.cc with upstream file tsan_interceptors_posix.cpp.
Changes:
- define fileno_unlocked() for NetBSD
- use defined __sanitizer_FILE for NetBSD
- handle symbol indirection for vfork and nanosleep
- delete sem_* API, currently moved to common code with sanitizers
- undef SANITIZER_INTERCEPT_PTHREAD_SIGMASK to fix build
- remove locally introduced SANITIZER_NETBSD
With these changes, TSan for GCC builds.
2020-09-12 22:23:57 +00:00
rillig
155601eb88
make(1): fix return type of ApplyModifier_Localtime
2020-09-12 22:12:17 +00:00
kamil
f6a496b345
Remove dead code block (from a local patch)
2020-09-12 21:30:36 +00:00
rillig
5a643a2a4e
make(1): move buffer from Var_Parse to ParseVarname
...
There's no reason to keep the buffer in memory after the variable name
has been parsed.
2020-09-12 20:03:37 +00:00
rillig
0c7959ba7a
make(1): reword variable invocation to variable expression
...
Variables are a passive thing. They cannot be invoked, they can only be
evaluated.
2020-09-12 19:41:20 +00:00
rillig
806157ea4e
make(1): extract ShortVarValue from Var_Parse
2020-09-12 19:33:02 +00:00
rillig
ff82a67733
make(1): extract ParseVarname from Var_Parse
...
This was an easy part since it affects only a few variables. 250 lines
for a single function is still quite a lot, so further refactorings will
follow.
2020-09-12 19:24:59 +00:00
rillig
4d7d4cbd25
make(1): rename local variable in Var_Subst
2020-09-12 19:15:20 +00:00
rillig
e9b14ba5d5
make(1): remove double negation in Var_Parse
2020-09-12 19:13:43 +00:00
rillig
3efb761560
make(1): clean up Var_Parse
2020-09-12 18:45:24 +00:00
rillig
ded615357f
make(1): rename local variables in Var_Parse
...
The main property of the former "str" is not being a string but pointing
at the start of the expression to be parsed.
The main property of the former "tstr" is not being a string but being
the moving pointer, the current parsing position. No idea what the "t"
in "tstr" stood for.
2020-09-12 18:39:37 +00:00
rillig
160db1bcad
make(1): rename Var_ParsePP back to Var_Parse
...
The migration to the "parsing position" pointer has been done.
2020-09-12 18:19:50 +00:00
macallan
14d389aff5
respond to keyboard brightness control PMF events
2020-09-12 18:12:53 +00:00
macallan
de38ddbcdc
send PMF events for keyboard brightness hotkeys on apple laptops
2020-09-12 18:10:37 +00:00
macallan
203e7dd86e
add event types for keyboard brightness control
2020-09-12 18:08:38 +00:00
rillig
ca6cff446a
make(1): migrate CondParser_String to Var_ParsePP
2020-09-12 18:04:45 +00:00
rillig
a24e6a839a
make(1): use correct character literals in TryParseNumber
2020-09-12 18:02:43 +00:00
rillig
1b82cb8766
make(1): add test for Infinity and NaN
...
Neither is recognized by the make parser, which is good since the main
task of make is dependency resolution and text processing, not
calculating.
2020-09-12 18:01:51 +00:00
rillig
3c08467d34
make(1): add tests for comparison tokens without whitespace
2020-09-12 17:47:24 +00:00
rillig
1dfbf55e58
make(1): clean up code in CondParser_String
...
The two parts of the for loop were not related in any way, which made
the code more confusing than necessary.
2020-09-12 17:14:40 +00:00
rillig
d4d05b9c2a
make(1): add typedef for signal handler
...
Without this typedef, both the declaration and the definition of
bmake_signal were as unreadable as the declaration in the signal(3)
manual page.
2020-09-12 16:46:24 +00:00
kamil
faf1dab69a
Restrict stic_xmap to the kernel namespace
...
Otherwise this header is not includable on ports without the definition
of NBPG. This fixes build of sanitizers. In practice only pmax might be
interested in using this device driver.
2020-09-12 16:44:41 +00:00
rillig
75e5493ba3
make(1): fix API of Targ_PrintNode
...
There was no need to export Targ_PrintNode at all. All the callers need
is a high-level API for printing a single node or a list of nodes. The
implementation detail that Targ_PrintNode was used as a callback to
Lst_ForEach should have never leaked into the API.
2020-09-12 16:38:19 +00:00
rillig
74f3fda8b2
make(1): remove unintended noinline from previous commit
2020-09-12 16:24:20 +00:00
rillig
81c4719295
make(1): fix trailing space in output of related node names (-dg2)
2020-09-12 16:22:32 +00:00
rillig
2d4cf7ec20
make(1): fix API for Targ_PrintCmd
...
The previous API was too low-level and not strictly typed.
2020-09-12 16:13:48 +00:00
jmcneill
0d54a9589a
Add HAVE_ACPI and HAVE_UEFI flags to bsd.own.mk and use them to
...
conditionally include ACPI and UEFI bits instead of relying on adhoc
MACHINE_ARCH tests.
2020-09-12 15:25:41 +00:00
rillig
46e01cf359
make(1): fix prototype of Suff_EndTransform
2020-09-12 15:21:25 +00:00
rillig
8c7f5b73b9
make(1): move PrintAddr to where it belongs
2020-09-12 15:15:51 +00:00
rillig
66b9293081
make(1): fix prototype of Compat_Make
2020-09-12 15:10:55 +00:00