Commit Graph

282881 Commits

Author SHA1 Message Date
rillig
c4ab1f9b64 make(1): clarify what 'recently' means in the comments in dir.c 2020-11-14 06:15:11 +00:00
rillig
c42680b1fe make(1): fix typo in comments
This typo may have been influenced by all the '$' in the code.
2020-11-14 06:10:28 +00:00
rillig
c4b14f3d93 make(1): flatten Dir_InitCur 2020-11-14 06:08:24 +00:00
mrg
239922306a also check MKX11FONTS before installing fonts. 2020-11-14 04:32:44 +00:00
thorpej
ae873cf0eb malloc(9) -> kmem(9) 2020-11-14 02:23:04 +00:00
rillig
66c9f4a5a2 make(1): clean up preprocessor macros in InitVarMachine 2020-11-13 19:45:24 +00:00
martin
fe44212f38 Disable all entropy checks for now untill consensus has been found how
to properly deal with it.
2020-11-13 17:39:06 +00:00
sjg
10eef09835 Add new make unit-test 2020-11-13 17:19:06 +00:00
maya
e3ebb0d12b Needs bsd.own.mk for MKX11. 2020-11-13 09:56:53 +00:00
nia
f7f198978e ossaudio(3): Clone some useful behaviour from the Solaris kernel
Both SNDCTL_DSP_SPEED and SNDCTL_DSP_CHANNELS support a special value
0 to "query the configured value without changing it". In our case,
this actually means setting and querying the hardware rate.

I don't know if OSSv3 or FreeBSD or other implementations also do this.
But it seems safe and sensible to support.
2020-11-13 09:02:39 +00:00
rillig
ecb0e97ca6 make(1): in lint mode, check for ".else <cond>" 2020-11-13 09:01:59 +00:00
rillig
eb5fad2de4 make(1): add more tests for parsing .else with argument 2020-11-13 08:35:34 +00:00
maya
6769572389 add rcsid, make font conditional on MKX11. 2020-11-13 08:33:07 +00:00
rillig
cb6ce05fd8 make(1): flatten #ifdef in InitVarMachineArch
Without proper indentation, that chain of nested #ifndef directives was
really hard to read.
2020-11-13 08:21:37 +00:00
rillig
f8bb6cd7ea make(1): use bitset for IfState
Previously, the individual IfStates contained redundant information,
which was apparent in the documentation.  This led to expressions like
(state > ELSE_ACTIVE) that are hard to read since the reader has to look
up the order of the enum.

To avoid this, the state of an '.if' block is now encoded using a bitset,
encoding the properties of each state directly.  This replaces the
previous (state > ELSE_ACTIVE) with !(state & IFS_ACTIVE), which is
easier to understand.

No change in behavior.
2020-11-13 07:52:03 +00:00
rillig
7417acad48 make(1): replace large switch with if-else in Cond_EvalLine 2020-11-13 07:35:27 +00:00
rillig
b4169b94fb make(1): move the comment about ".else <cond>" to the correct place 2020-11-13 06:19:27 +00:00
msaitoh
869151f24e Fix a bug that some advertise speeds can't be set with hw.ixgN.advertise_speed
if both 2.5G and 5G are set. Fix the error message, too.
2020-11-13 05:53:36 +00:00
msaitoh
f98896607f Fix typo in a debug message. 2020-11-13 04:12:38 +00:00
macallan
bcc995cd81 add a rendering of the Liberation Mono font for console use 2020-11-13 01:03:39 +00:00
sjg
f35602449c Use explicit MAKEOBJDIR to avoid tripping over /usr/obj 2020-11-12 23:53:17 +00:00
sjg
aa03bcf7d6 Pass a writable flag to Main_SetObjdir to control writable check
For curdir and an explicit .OBJDIR target, we allow for
the directory to be read-only.
During InitObjdir we otherwise default to requiring objdir to be
writable - this can be controlled by env variable
MAKE_OBJDIR_CHECK_WRITABLE

Add unit-tests/objdir-writable

Reviewed by: christos rillig
2020-11-12 23:35:21 +00:00
rillig
a3a0dc2a39 make(1): add test for missing check on .endif with arguments 2020-11-12 22:40:11 +00:00
maya
b8e4133b8f Hook up font-liberation-ttf to the build.
license ok'd by board.
2020-11-12 22:28:02 +00:00
rillig
cbcbd89e47 make(1): improve readability of IfState documentation
The words "None" and "One" looked and sounded too similar.
2020-11-12 22:27:55 +00:00
joerg
a5e6526bbc Avoid common symbols. Use __dead. 2020-11-12 22:23:16 +00:00
christos
a7e74f3dc5 Don't use static buffers to store format strings; this is a multi-threaded
program and if we print from multiple threads we can end up overwriting the
formats while printf is formating and that can end up in tears.
2020-11-12 22:11:03 +00:00
rillig
2e199e776f make(1): avoid race condition in test opt-debug-jobs
Thanks sjg for finding this and suggesting the fix.
2020-11-12 21:54:52 +00:00
rillig
50e09e5492 make(1): rename local variable in Cond_EvalLine
A variable called line is not supposed to be a moving target, that's what
the name p is reserved for.
2020-11-12 20:16:20 +00:00
rillig
0a1e46e5f9 make(1): remove complicated code to find the definition for plain .if 2020-11-12 20:06:37 +00:00
rillig
c27d210cef make(1): document IfState in more detail 2020-11-12 20:01:27 +00:00
rillig
d0d92c5376 make(1): move test for missing space after .if to correct file 2020-11-12 19:46:36 +00:00
rillig
4890da5730 make(1): add test for missing space after .if directive 2020-11-12 19:45:24 +00:00
christos
ddcfec6c59 eliminate direct use of _res for threaded programs. 2020-11-12 19:43:18 +00:00
nia
a42fc114cd Revert addition of pthread dependency on sqlite.
It is less trivial than expected and introduced some surprising breakage.
2020-11-12 17:53:43 +00:00
kardel
4794d48d5e PR kern/55779:
restore non-desctructive guarantee of ip_mforward() mbuf
argument. This avoids generation invalid UDP checksums
on multicast packets in ip_output().

XXX the root cause of the misguided fix in 2008 should be
XXX investigated
2020-11-12 13:13:45 +00:00
simonb
2ca802e8e6 Note better kern.maxfiles defaults. 2020-11-12 12:19:46 +00:00
jmcneill
f9f913ad06 Fix typo in comment 2020-11-12 11:28:39 +00:00
rillig
725deb8a73 make(1): clean up Cond_EvalLine
The constant MAXIF was not a maximum but an initial capacity.  Inline it
to remove the misleading name.  Likewise, MAXIF_BUMP was an unnecessary
and wrong name.

Rename the enum since it only describes a single state, not multiple.

Rename the stack of states since it describes multiple states, not one.

Add markers where to add the missing error messages for unknown
directives or extraneous cond, such as in ".else cond" or ".endif cond".
2020-11-12 08:12:07 +00:00
simonb
4b09633862 Set a better default for MAXFILES on larger RAM machines if not
otherwise specified the kernel config file.  Arbitary numbers are
20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or
more.

TODO: Adjust this and other values totally dynamically.
2020-11-12 07:44:01 +00:00
rin
087e008143 One more catch up with ``aarch64 is not mips'' change.
Fix evbarm-aarch64 build.
2020-11-12 02:15:56 +00:00
rin
aac12b9de3 If neither COMPAT_NETBSD32 nor MODULAR is defined, there's
no chance for lwp to be running under COMPAT_NETBSD32.

Suggested by mrg.
2020-11-12 01:03:22 +00:00
rin
0733428e32 pq3pci_msi_claim(): remove KASSERT that is valid when allocating MSI
vectors, while apparently invalid when freeing them.
2020-11-12 00:44:22 +00:00
rillig
8003683249 make(1): fix tests varmod-defined and varmod-loop regarding dollars
Some derived versions of NetBSD's make set .MAKE.SAVE_DOLLARS to no.  In
these versions, running the tests would fail.  Therefore better set
.MAKE.SAVE_DOLLARS to yes explicitly as far as necessary.

Suggested by sjg.
2020-11-12 00:40:55 +00:00
rin
c3a83ebd05 Oops, forget to commit local change necessary to support nvme(4) on RB800;
provide pci_intr_setattr(9) (no-op).
2020-11-12 00:37:51 +00:00
rillig
783b4a1a49 make(1): add test for unhandled parse error in :? variable modifier 2020-11-12 00:29:55 +00:00
christos
f5001bc688 Comment out debugging build (it still randomly crashes though) pointed out
by wiz
2020-11-11 20:04:02 +00:00
christos
80a97e389b Add /var/games/warp 2020-11-11 19:56:09 +00:00
christos
29ab367558 use strchr, strrchr, random, more lint removal, savefile in /var/games/warp
not /usr/share/games/warp...
2020-11-11 19:55:33 +00:00
christos
b853388890 no need for -lcompat 2020-11-11 19:54:53 +00:00