Commit Graph

282862 Commits

Author SHA1 Message Date
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
riastradh
d8c777ca20 wg: Sprinkle #ifdef INET6. Avoid unconditional use of ip6 structs.
Fixes no-INET6 build.

Based on patch from Brad Spencer:

https://mail-index.NetBSD.org/current-users/2020/11/11/msg039883.html
2020-11-11 18:08:34 +00:00
christos
6ecf74c0f6 - use termios
- enable setgid games
- enable savedir
2020-11-11 17:11:19 +00:00
kamil
ec609ce1aa Fix the old leftover license note
Larry Wall: "I outgrew commercial-free licensing about 30 years ago."
2020-11-11 11:54:42 +00:00
rillig
6bf0c4df89 make(1): document non-obvious special case in EvalNotEmpty 2020-11-11 07:34:55 +00:00
rillig
e4a2f1c252 make(1): add tests demonstrating bugs in TryParseNumber and EvalNotEmpty 2020-11-11 07:30:11 +00:00
rillig
71ce322e40 make(1): add test to cover the If_Eval call in EvalNotEmpty 2020-11-11 07:13:42 +00:00
rillig
eb5347cdad make(1): fix line numbers in test cond-token-string 2020-11-11 07:10:19 +00:00
chs
b02dfdd14a kmem_cache_create()'s "name" parameter can be on the stack,
so make a copy of it rather than keeping a pointer to it.
2020-11-11 03:31:04 +00:00
christos
e8edee0bb7 remove error(1) comments 2020-11-10 23:32:33 +00:00
christos
17184abace Antivaxer support. 2020-11-10 23:03:22 +00:00
christos
b90df07acf can't have config.h and config.H in case-preserving but case-folding file-systems. 2020-11-10 22:56:49 +00:00
christos
ccdf7d95e3 don't segv if the terminal is too big. 2020-11-10 22:52:45 +00:00
christos
e123ae1b57 pray-tell where are you trying to write? 2020-11-10 22:52:32 +00:00
christos
e7d77274fb Time warp forward 34 years so that it compiles (but not work) 2020-11-10 22:42:19 +00:00
rillig
b60730135e make(1): remove unreachable code from CondParser_String
The code that has been removed was not reachable from after the Var_Parse
call.  All branches after the Var_Parse are either freed properly or
return the expanded value.
2020-11-10 22:25:38 +00:00
rillig
e0aa1a749c make(1): add more tests for parsing .if directives
The details of parsing are quite tricky and not documented in the manual
page.  Record the current behavior to be a little safer in future
refactorings.
2020-11-10 22:23:37 +00:00
kamil
994be4e978 Reintroduce the support of MKCATPAGES
Requested by <mrg>
2020-11-10 21:47:40 +00:00
rin
1f2a442547 Test (epp->ep_esch->es_emul != &emul_netbsd) instead of
(epp->ep_esch->es_emul == &emul_netbsd32) to determine whether curlwp is
running on COMPAT_NETBSD32 or not.

The former is possible even if COMPAT_NETBSD32 is not built in the main
kernel. Now, compat_netbsd32 module can work on !COMPAT_NETBSD32 kernel.

Discussed with pgoyette.

XXX
Apply similar fixes, i.e., drop ``#ifdef COMPAT_NETBSD32'' conditional
codes from the rest parts of MD codes for aarch64 and mips64.
2020-11-10 21:40:07 +00:00
rin
fb608a82f8 Stop turning on EABI flag to core files dumped by OABI binaries.
This seems a bug introduced in rev 1.5:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/arm/core_machdep.c#rev1.5
2020-11-10 21:38:03 +00:00