285702 Commits

Author SHA1 Message Date
rin
e0b51b0024 Add missing endutent.3 to MAN. 2021-02-26 04:28:14 +00:00
christos
af5f2d14c6 put back line accidentally removed. 2021-02-26 03:19:34 +00:00
christos
9b5d8227e3 Add utmp man pages 2021-02-26 03:08:25 +00:00
christos
64f644717c PR/56012: Kouichi Hashikawa: getutent(3) man page is missing 2021-02-26 03:05:01 +00:00
rin
b55bfb6bcb Misc cleanups:
- built-in regex is required only when ${USE_WIDECHAR} == "yes"

- -DUSE_WIDECHAR cpp flag should be determined by ${USE_WIDECHAR},
  not ${USE_BUILTIN_REGEX}

- reduce .if -- .endif block for clarity
2021-02-26 02:54:21 +00:00
christos
e0ecd16b50 PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops. 2021-02-26 02:45:43 +00:00
thorpej
31c71552cd Declare oeacpufeat once, in powerpc/oea/cpu_subr.c, rather than in
N different locore.S files.
2021-02-26 02:18:55 +00:00
simonb
2bf5a48652 Drop 64-bit default stack sizes back to 4MB. 2021-02-26 02:18:29 +00:00
simonb
d6f97feb7b Say what 1UL<<39 (MAXDSIZ value) is in the comment. 2021-02-26 02:01:16 +00:00
simonb
d7f8c64324 Use a valuely human readable number for MAXTSIZ. 2021-02-26 01:48:20 +00:00
nat
37857f2468 Also free assocated mbufs. 2021-02-26 01:38:44 +00:00
christos
b1db991946 Put back local regex (thanks Rin) 2021-02-26 00:41:56 +00:00
christos
d2bbb37090 Adjust for conditional NLS 2021-02-25 22:37:36 +00:00
christos
67f076ea41 add missing _ 2021-02-25 21:59:27 +00:00
christos
fdd5a50616 we don't need the extra copy wide-regex anymore. 2021-02-25 21:56:35 +00:00
christos
6bde3cc411 fix NLS compilation 2021-02-25 21:47:46 +00:00
rin
e609961ea2 Oops, forgot to commit this. One more adjust for amiga/boot ver 3.1.
Shuold fix build.
2021-02-25 21:46:55 +00:00
christos
e37fce9162 Add glue to disable locale code in order to be smaller. 2021-02-25 21:28:40 +00:00
christos
bb0dab52f7 Add regcomp.c and regexec.c so that we get a version that does not use NLS
and brings in all the locale code.
2021-02-25 21:24:00 +00:00
macallan
e91c9dc379 more node name adjustments
also, pass sensor names if we can find them
now we find and currectly use the hard drive temperature sensor on my iMac G5
2021-02-25 20:51:10 +00:00
macallan
bd5b38cd99 deal with node name inconsistencies between PowerMac10,x and 8,x
Now we find fans and iic devices on iMac G5
2021-02-25 20:49:08 +00:00
macallan
402650d203 match Geforce FX5200 Go found in some iMac G5 models 2021-02-25 19:11:44 +00:00
christos
ccd77ba5a7 protect MIN from re-definition 2021-02-25 13:42:16 +00:00
christos
142620627d Add reallocarray; this is used by the new regex code and we don't want to
convert it to reallocarr so the code is kept similar with the original from
FreeBSD.
2021-02-25 13:41:58 +00:00
rin
486b89c051 For ramdisk image, generate only 2 pairs of pty devices, instead of 16,
in order to save space further.
2021-02-25 07:58:39 +00:00
rin
b15419e6c4 For SMALLPROG, do not compile in IPv6 support unless SMALLPROG_INET6 is
defined, as in the same manner as other utilities.
2021-02-25 07:55:53 +00:00
rin
96f4ee7d70 Adjust manpage for amiga/boot ver 3.1.
Bump date.
2021-02-25 03:44:27 +00:00
rin
fe456cec99 Adjust for amiga/boot ver 3.1.
Bump date.
2021-02-25 03:43:57 +00:00
rin
1ee4efdda5 Adjust for amiga/boot ver 3.1. 2021-02-25 03:42:59 +00:00
rin
5446b18b12 Add FFSv2 support for primary- and second-stage boot loaders.
Rename primary-stage boot for FFSv1 (and ustarfs) to bootxx_ffsv1 for clarity.

Bump version to 3.1.
2021-02-25 03:42:14 +00:00
rin
852abe035b For upcoming FFSv2 support for boot.amiga, dynamically scale its size,
instead of fixing to 32KB.

Old 32KB limit comes from

(1) all R_68K_PC16 symbols get relocated, and

(2) all values in our relocation table for R_68K_32 symbols fit within
    16-bit integer.

(1) is already checked in the code. Assertion for (2) is added, but this
limit is satisfied with sufficient margin at the moment. If it is not the
case in the future, we may need to change format for relocation table.
2021-02-25 03:40:27 +00:00
rillig
2632d6d7a1 tests/libcurses: add test for '\b' in addch
Just to ensure that addch and addstr behave the same, after the recent
fix for handling '\t'.
2021-02-25 01:07:43 +00:00
rillig
e9c1f91ac6 tests/libcurses: use common style for parse error messages 2021-02-25 00:50:10 +00:00
rillig
fecd441893 tests/libcurses: use common syntax for accessing array elements
Writing *(p+1) is needlessly confusing, even though it adds a little
symmetry between *p and *(p+1).  Still, one of these expressions has
parentheses, the other doesn't, which breaks the symmetry.

Wrap overly long code line.

It's confusing to refer to the digits after the backslash once with
index 0 to 2, and the other time with index 1 to 3.
2021-02-25 00:42:00 +00:00
rillig
fede2462fc tests/libcurses: reduce indentation
No functional change.
2021-02-25 00:32:44 +00:00
rillig
91f6e103ad libcurses: ensure that '\b' in handled correctly in addstr
Just to ensure that the recent fix for '\t' handling in addstr/addch
didn't introduce another bug.
2021-02-25 00:26:57 +00:00
rillig
166112aa2a libcurses: prevent unknown escpae sequences in tests
Before, '\b' was interpreted as a simple 'b', which is confusing for C
programmers.  Same for '\a'.  There is absolutely no reason to escape
letters, so fail early in these cases.

The '\h' in the test addchstr was obviously a typo that was easy to
detect, if only the compiler had been strict enough from the very
beginning.

The code is wider than 80 characters, same as the code that parses octal
escape sequences a few lines above it.  This code will be refactored to
use less indentation in a follow-up commit.
2021-02-25 00:25:31 +00:00
christos
0cd1e61982 remove casts 2021-02-24 18:18:53 +00:00
christos
2cf99de680 reduce casts 2021-02-24 18:13:21 +00:00
thorpej
25f0c675e7 - Fix a comment.
- rename ofwsrsave to clsrsave; we're saving / restoring the client's
  (i.e. kernel's) SRs there, not the firmware's.
2021-02-24 17:35:39 +00:00
thorpej
b4b0bdf371 Don't save the firmware's copy of SPRG[0-3], and don't fiddle with
SPRG[0-3] in the firmware trampoline.  Section 7.1 of the OpenFirmware
PowerPC CPU bindings says that firmware "client interface shall not modify"
when in virtual-mode, and "client interface shall preserve" in real-mode.

This is important because in vritual-mode, DSI exceptions will land in
the kernel's DSI exception handler, and that handler depends on the
kernel's SPRG0 value (it contains the pointer to the cpu_info for that
CPU).

Additionally, in the firmware trampoline, point curcpu at an empty
ofw_battable.  This ensures that the DSI exception handler won't
load a BAT register with a kernel block translation that clobbers
a segment translation owned by the firmware.  Eventually, this ofw_battable
might contain some of the larger translations owned by the firmware.
2021-02-24 16:53:00 +00:00
thorpej
7d632b8ba4 Add a provision for a per-cpu battable. Each CPU starts with the global
one, but this allows CPUs to temporarily switch to an alternate battable
if needed.
2021-02-24 16:42:38 +00:00
wiz
2b21efb927 Restore NetBSD RCS Ids. 2021-02-24 09:10:12 +00:00
simonb
cc23757df8 Add comments for the PR_WANTED and PR_PHINPAGE flags, remove unused
PR_LOGGING flag.
2021-02-24 06:11:38 +00:00
mrg
28b89fac77 skip redzone on pools with the allocation (including all overhead)
on anything greater than half the pool pagesize.

this stops 4KiB being used per allocation from the kmem-02048 pool,
and 64KiB per allocation from the buf32k pool.

we're still wasting 1/4 of space for overhead on eg, the buf1k or
kmem-01024 pools.  however, including overhead costs, the amount of
useless space (not used by consumer or overhead) reduces from 47%
to 18%, so this is far less bad overall.


there are a couple of ideas on solving this less ugly:

- pool redzones are enabled with DIAGNOSTIC kernels, which is
  defined as being "fast, cheap".  this is not cheap (though it
  is relatively fast if you don't run out of memory) so it does
  not really belong here as is, but DEBUG or a special option
  would work for it.

- if we increase the "pool page" size for these pools, such that
  the overhead over pool page is reduced to 5% or less, we can
  have redzones for more allocations without using more space.


also, see this thread:

https://mail-index.netbsd.org/tech-kern/2021/02/23/msg027130.html
2021-02-24 05:36:02 +00:00
christos
5e019a0a0d minimal fix to match the library code (really make the constants unsigned
instead)
2021-02-24 02:33:56 +00:00
mrg
0f07f15626 fix sparc build: db_expr_t is larger than a pointer. 2021-02-24 01:46:57 +00:00
christos
1ee269c3a2 sync with FreeBSD:
- NLS support
    - GNU extensions
    - bug fixes
2021-02-23 22:14:59 +00:00
rillig
d251e04261 make: document the history of bugs in "cmdline overrides global"
For performance reasons, the implementation of the simple rule "cmdline
overrides global" grew into code that is much more complicated than a
straight-forward implementation.  This added complexity made it easy for
bugs to sneak in.
2021-02-23 21:59:31 +00:00
mrg
c5fcfabc85 update the list of prefixes/regions/towns in ireland. from:
https://en.wikipedia.org/wiki/Telephone_numbers_in_the_Republic_of_Ireland

(i got a call from letterkenny!)
2021-02-23 21:59:04 +00:00