Commit Graph

305891 Commits

Author SHA1 Message Date
mrg d9076a8b46 xdm(1) was renamed xdm(8) a long while ago. catch up location.
add support for section 8 X manuals.  amusingly, we already knew
to convert __adminmansuffix__ into "8", but not how to create
.8 from X .man.
2024-04-29 22:09:10 +00:00
andvar f1e8be7f86 Make dwiic_pci compile without ACPI option. 2024-04-29 21:29:48 +00:00
andvar af0f598536 ihidev(4): make driver compile with ACPI option disabled.
This change unlikely useful in practice, but adds consistency to already
available guards. Driver won't attach currently without ACPI.
2024-04-29 21:25:34 +00:00
tsutsui 801e66558a Check tc_waitbusy() before writing palette registers in topcat_setcolor().
This seems to make palette operations more stable on my HP360 with HP98543.
2024-04-29 17:47:27 +00:00
tsutsui edce15e3e0 Use proper planemask per a vaild number of planes. 2024-04-29 17:39:59 +00:00
tsutsui 64b0a54c74 Fix MD allocattr to return proper attributes what MI rasops(9) expects. 2024-04-29 17:25:11 +00:00
tsutsui 18c9e2cf5a Move a check of topcat(4) specific fb width quirks to topcat.c.
We need to check fb->planes but it's propbed in topcat.c after
common diofb_fbinquire() is called.

Also add a comment that it looks these 1 bpp and 4 bpp boards have
VRAM with sparse address layout and we have to handle
512 pixels per line with 1024 bytes per line.
2024-04-29 15:34:57 +00:00
tsutsui 894f332399 Increase DELAY() for waitbusy macroes as pre-wscons and 4.4BSD did.
It looks necessary for sane palette ops at least on HP98543 topcat
on 68030 HP 9000/360.
2024-04-29 14:58:32 +00:00
mlelstv 48873b00b6 In netbsd32___sigaction_sigtramp continue to use the compat module when
already locked for this process.

Needs pullup to netbsd-10.
2024-04-29 14:56:01 +00:00
tsutsui 749fb77252 Don't panic as a fatal error on receiving packets with invalid length.
Such errors could happen on aged and fragile 10BASE-2 hub etc.
2024-04-29 14:42:07 +00:00
skrll 7ea9409689 Whitespace 2024-04-29 07:33:32 +00:00
skrll 3ba1f41694 Ensure a user specified DBG isn't used for xxboot. 2024-04-29 07:31:18 +00:00
tsutsui b946453254 Use LINKS to create hard links to generate proper METALOG files.
Also use the default ${PROG} variable and "install" target.

Fixes PR port-hp300/58211.
Should be pulled up to netbsd-10 and netbsd-9.
2024-04-29 07:13:42 +00:00
maya acbe8419a2 Remove documentation for long removed -F option
Suggested by Robert Whitlock in PR bin/58177

I've sent this patch to the nvi maintainers but the response suggested
patching this downstream, as there would be no further releases of nvi.
2024-04-29 00:50:42 +00:00
riastradh 74e671ce55 cgdconfig(8): KNF in cgdconfig.c.
No functional change intended.
2024-04-29 00:28:18 +00:00
uwe 2f85358c65 execve(2): brush up markup 2024-04-28 23:10:26 +00:00
rillig 3646cc3155 time.3: clarify that *tloc is always set if tloc != NULL 2024-04-28 22:57:16 +00:00
rillig d1b0f9f059 setmode.3: fix typos 2024-04-28 22:43:30 +00:00
rillig a6f58d652c execve.2: fix typo in markup 2024-04-28 22:21:21 +00:00
rillig 6677adf2a3 tests/cd9660: add debug info to the file list 2024-04-28 18:55:04 +00:00
maya 3d0aa1dabf Bump bozohttpd version to today for mobile-friendly directory listing 2024-04-28 17:12:30 +00:00
riastradh 606bfddf18 linux_sync_file: Fix missing init/fini steps.
Noted by rjs@.

PR kern/58210
2024-04-28 15:35:39 +00:00
rillig adc3ee3bfc make: don't reallocate memory after evaluating an expression
When an expression is evaluated, the resulting text is short-lived in
almost all cases.  In particular, the compaction neither affects the
target names nor the global variable values, which are the prime
candidates for permanent memory usage.
2024-04-28 15:10:19 +00:00
rillig de973ec253 tests/cd9660: replace compressed blob with readable hexdump
This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB.  It's an ISO 9660 image though,
containing mostly null bytes.  Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.

If the test is run, the ISO image is uncompressed, which takes several
minutes.  Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.
2024-04-28 14:39:22 +00:00
riastradh 07d71e6b54 tests/lib/Makefile: Hook up libstdc++. 2024-04-28 12:49:08 +00:00
skrll d5c87358ce Whitespace 2024-04-28 10:57:34 +00:00
skrll 5f7ff3e1b4 Fix some usb_syncmem calls and add some missing ones. 2024-04-28 08:55:03 +00:00
nia cb3e75584d i386: disable DRMKMS drivers in LEGACY kernel (this is for ISA) 2024-04-28 08:12:44 +00:00
nia 8db54db73e Turn off MKAMDGPUFIRMWARE on i386
It's too big for the i386 install media and not useful on either
pre-2012 hardware or the kinds of embedded systems where i386 still
thrived after 2012.

(The build of the kernel parts of amdgpu on i386 is nevertheless useful
for finding obscure bugs.)

"go for it" riastradh
2024-04-28 08:01:04 +00:00
skrll 7c35b706b8 Whitespace. 2024-04-28 07:52:52 +00:00
rillig d8f5b04c09 tests: replace deprecated '-s eq:...' with '-s exit:...' 2024-04-28 07:27:40 +00:00
riastradh 2a7fd23976 libstdc++: Add test for PR lib/58206, sync_with_stdio busted. 2024-04-28 01:21:26 +00:00
rillig c63a9c06a9 make: fix comment about forcing a use-after-free
The previous expression didn't cause any bug, as the modifier
':@VAR@loop@' changed the value of the expression, thus making the
expression independent from the variable value.

Instead, the variable needs to be deleted from within an indirect
modifier, and that modifier needs to evaluate to an empty string, thus
doing nothing and preserving the original expression value.
2024-04-27 21:26:23 +00:00
rillig c453a669e3 make: clean up, test .NOPATH
Trim down the comments in the archive module, as they mainly repeated
the code.  Trim down the binary code size in the archive module, as it
is rarely used.

In Var_Parse, delay two variable assignments until they are actually
needed.
2024-04-27 20:41:32 +00:00
rillig c639dd27e0 tests/make: test detection of static library files 2024-04-27 20:23:22 +00:00
rillig 1bf9200945 make: simplify freeing of lists 2024-04-27 17:33:46 +00:00
christos 01e711ac18 mention that we handle battery controls too. 2024-04-27 14:54:58 +00:00
christos b9306226a6 Expose a sysctl interface hw.acpi.thinkpad<M>.bat[<N>].<behavior> to control
some aspects of battery charging behavior on supported systems:

    charge_start
	threshold below which to start charging (in %, 0-99)

    charge_stop
	threshold above which to stop charging (in %, 1-100)

    force_discharge
	discharge while on AC power, e.g., for calibration

    charge_inhibit
	inhibit charging while on AC power

From Malte Dehling
2024-04-27 14:50:18 +00:00
christos 2c79d94601 thinkpad cosmetic patches (Malte Dehling) 2024-04-27 14:45:11 +00:00
tsutsui aa367d9f1e Disable dmf* and dmz* entries and add warns "not integrated yet."
Also note tty[EFGH]? have been used by MI wscons and new tty node names
should be assigned once dmf(4) is committed.

Ok'ed by ragge@ on port-vax@.
 https://mail-index.netbsd.org/port-vax/2024/02/13/msg004859.html
2024-04-27 14:42:21 +00:00
rillig fc7f5da782 lint: converting a null pointer to another pointer type is not narrowing 2024-04-27 12:46:37 +00:00
rillig 96381692fe lint: add query for conversion from void pointer to other pointer 2024-04-27 10:08:54 +00:00
rillig be319ce6a1 mips: fix syntax error in LDBL_MAX (since 2011) 2024-04-27 06:01:08 +00:00
christos 60ed0167fd Remove 0 initializations (since the softc is zalloc'ed) and the initial
refresh which will have no data.
2024-04-27 00:40:06 +00:00
christos 71e954c71c Add ${TOOL_DATE} (Jan-Benedict Glaw) 2024-04-26 22:07:32 +00:00
maya 07b58cb10b Create mobile-friendly directory listings
A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.

from D. Bohdan in PR bin/57962
2024-04-26 20:27:12 +00:00
christos f421508b22 PR/58202: Malte Dehling: Don't link libzfs 2024-04-26 18:21:25 +00:00
christos e052e61ba2 PR/58201: Malte Dehling: re-order sysmon initialization before acpi
registration, to avoid needing to call to acpi_deregister_notify on sysmon
failure.
2024-04-26 18:19:18 +00:00
christos fea798ae18 PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed 2024-04-26 18:06:02 +00:00
rillig 13890d5a3f BUILDING: fix typo 2024-04-26 17:38:44 +00:00