Commit Graph

305977 Commits

Author SHA1 Message Date
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
nia df758d617b Remove modules set from the i386 install cd
It is not particularly useful to be able to load modules while
installing on i386, probably the most useful one is dtrace,
and this takes up about 20mb on a port that is already exceeding
CD limits. Most stuff you'd want to use while installing is already
in GENERIC.

The modules set is still available compressed for installing into
a target system, meaning modules are available after installation.

While here, add man set to the installation DVD, it's helpful to be able
to read e.g. the man page for fdisk when rescuing a system.
2024-04-26 17:36:32 +00:00
rillig 3a6d2122c6 dri: disable lint 2024-04-26 17:22:26 +00:00
rillig 4da1077ff7 make: in parallel mode, print the directory in which a job failed
When multiple targets run in parallel, the "stopped in" line may be
several lines away from the "Failed target" line, making them hard to
correlate.
2024-04-26 17:11:22 +00:00
rillig 58b62ac6a6 gallium: disable lint 2024-04-26 16:34:17 +00:00
rillig c4e31442c4 tests/cp: clean up
Replace the deprecated "eq:0" with "exit:0", remove redundant "-o empty"
and "-e empty".
2024-04-26 01:33:23 +00:00
nat 156a34ec6c Return early if PM data is not available.
This avoids random crashes on my Powerbook when using the mouse or keyboard.

The same was needed for the Powerbook 5xx/Duos (compile tested only).

XXX pullup-10, pullup-9, pullup-8.
2024-04-26 00:59:08 +00:00
rillig 4ce8b53a58 tests/cat: clean up
Multiple arguments to atf_set are joined by spaces, there's no need for
an extra space.

The exit status on success must be 0, so don't ignore it.

Remove the unnecessary shell wrapper, as no redirection is going on.
2024-04-26 00:57:15 +00:00
rillig 211f3bdea2 CHANGES: fix typo 2024-04-25 17:22:48 +00:00
nia 0c706886a9 remove redundant kernels and floppies from the space-starved i386 ISO 2024-04-25 11:56:51 +00:00
hannken 050294fac1 Increase length of set description to 40 characters so recent additions fit.
Ok: martin@

Fixes PR install/58188 "sysinst fails to display status of base32 set"
2024-04-25 11:25:08 +00:00
thorpej a5de3f67cd Add a match quirk to prevent matching any interface on SiPEED FPGA
development boards (e.g. Tang Nano 9K).  The FT2232s on these boards
are wired up only for JTAG.
2024-04-25 01:33:03 +00:00
rillig 9e59e5f95f makefs: fix out-of-bounds fsnode count in fsnode_sort
Found by running './makefs img.dat cd9660'.

While here, apply more KNF.
2024-04-24 21:59:39 +00:00
martin 0b28c28c5a Explicitly exclude VAX from new Mesa due to a gcc internal compiler error 2024-04-24 20:38:24 +00:00
martin 4c5f232623 Force old Mesa for all old X server builds 2024-04-24 19:14:39 +00:00