Commit Graph

306407 Commits

Author SHA1 Message Date
rillig cd90f040db make: minimize local variables around a vfork call
Passing all relevant values as arguments allows to remove the 'volatile'
qualifiers.
2024-05-25 15:37:17 +00:00
martin f9eb578e4a More rump markers 2024-05-25 14:11:20 +00:00
riastradh 2fef80593e ucontext.h: Expose __UCONTEXT_SIZE to userland.
But don't expose __CTASSERT(__UCONTEXT_SIZE == sizeof(ucontext_t)) to
userland.

- __UCONTEXT_SIZE will be needed soon by libc and signal trampolines
  in order to version ucontext so we can safely expand it with
  architecture extensions.

- __CTASSERT is not safe to use in header files in arbitrary
  compilation environments (although in the NetBSD kernel build it is
  safe).  Exposing the __CTASSERT in a header file used by userland
  appears to have the side effect of breaking the Firefox build in
  rustc, though the mechanism isn't entirely clear.

Firefox/rustc discussion here:
https://mail-index.netbsd.org/pkgsrc-users/2024/05/18/msg039578.html

Let's see if this makes a difference -- if it works, great; if not,
maybe it will help us to narrow down what's happening with rustc and
Firefox.
2024-05-25 13:44:48 +00:00
rillig c05c85b7d7 make: fix some more memory leaks 2024-05-25 08:03:19 +00:00
tsutsui 3ba972454a Appease warnings on building tools/installboot on Cygwin. 2024-05-25 06:27:57 +00:00
rillig dd76681b7b make: fix a few more memory leaks 2024-05-25 00:00:25 +00:00
rillig 0ab57ba387 make: in -DCLEANUP mode, free variables and their values
The variables in the 3 scopes must be freed before the scopes themselves
are freed by Targ_End.

The test opt-m-include-dir creates a directory of the form '*.tmp', thus
it must be removed before attempting to only remove regular files of
this name.

POSIX requires setenv to copy the passed name and value, so there is no
need to keep that memory allocated any longer.
2024-05-24 23:02:46 +00:00
rillig e3cf24f959 make: remove dead code from HashTable_DeleteEntry 2024-05-24 22:54:07 +00:00
rillig 9755e146fc make: remove trailing whitespace 2024-05-24 22:52:24 +00:00
andvar a310e615a3 s/SO_ACCEPTFITLER/SO_ACCEPTFILTER/. 2024-05-24 21:55:13 +00:00
andvar 1d73fad095 s/onbord/onboard/ in comment. 2024-05-24 20:13:37 +00:00
andvar 1735e5d485 s/boradcast/broadcast/ in comment. 2024-05-24 20:09:09 +00:00
andvar d17abd87ec s/borad/board/ in comments. 2024-05-24 20:06:55 +00:00
rillig 8e4fd6997e pmax/kn230.h: fix typos and spacing in comments 2024-05-24 19:00:27 +00:00
roy 98af55aed4 dhcpcd-10.0.8 2024-05-24 16:10:21 +00:00
roy 76a8def0a9 Sync with dhcpcd-10.0.8 2024-05-24 16:09:09 +00:00
roy ed7347c8ff Update to dhcpcd-10.0.8 with the following fixes:
* Fixed compile without ARP
 * Fixed spelling of ADVERTISEMENT
2024-05-24 16:07:42 +00:00
ryoon c4cfd333d3 Move __UCONTEXT_SIZE inside _KERNEL like before
Fix pkgsrc/lang/rust runtime SIGILL error during pkgsrc/www/firefox build.
2024-05-24 13:50:30 +00:00
tsutsui 1de614c8d0 Remove installboot(8) calls against emips install media.
XXX: maybe we should also remove blindly copied bootxx binaries.
2024-05-24 13:26:35 +00:00
roy fbd3b54657 Note import of dhcpcd-10.0.7 2024-05-24 11:33:04 +00:00
roy 31430cea00 Sync with dhcpcd-10.0.7 2024-05-24 11:30:29 +00:00
roy 4dcbd9d51d Update to dhcpcd-10.0.7 with the following changes:
* DHCP: use request_time, fallback_time and ipv4ll_time rather than reboot timeout
* DHCP6: Wait for IRT to elapse before requesting advertisments
* DHCPv6: Don't re-INFORM if the RA changes
* privsep: Reduce fd use
* dhcpcd: Add support for arp persist defence
* Move dhcp(v4) packet size check earlier
* Define the Azure Endpoint and other site-specific options
* add RFC4191 support by @goertzenator in #297
* dhcpcd: Respect IPV6_PREFERRED_ONLY flag regardless of state
* Fix time_offset to be int to match RFC-2132
* hooks/30-hostname: Exit with 0 if setting hostname is not needed
2024-05-24 11:28:00 +00:00
tsutsui d01834fb75 Pull sharable src/usr.sbin/installboot/cd9660.c. 2024-05-24 10:13:44 +00:00
tsutsui 2e1ec38629 Fix tools build errors on Cygwin. 2024-05-24 09:59:42 +00:00
andvar cc8d93b4cd agrep(1): remove duplicated and obsolete imports.
dirent import is the only one which stays in the odd location.

Part of PR bin/53513.
2024-05-24 07:52:45 +00:00
andvar 45e3b02ce0 agrep(1): rewrite binary check introduced with recursive search on rev 1.3 to
match more closely grep(1) implementation. Instead of opening and scanning
full file every time, check for the \0 symbol once the file buffer is filled up
for the first time.

Patch fixes stdin, adds binary check for it as well, and works more efficiently
(at the cost of not scanning the full file).

Also original implementation forgot to add break if binary file is detected,
causing duplicate binary matches in the output result.

Due to full file scans on each match instead of once for the specific file,
scans may have been considerably slow.

Fixes PR bin/53513

Needs pullups to netbsd-9,-10.

Thanks for the help from mlelstv and dh in reviewing and finalizing the patch.
2024-05-23 22:07:16 +00:00
tsutsui ec7170c331 Remove installboot(8) from emips miniroot too. 2024-05-23 15:00:43 +00:00
andvar 0fe2e3a1b4 s/separare/separate/ and s/separete/separate/ in comments. 2024-05-23 08:52:06 +00:00
andvar 19387f230c fix typos in comments. 2024-05-23 08:30:51 +00:00
pgoyette 1cce6ebaca s/and/an/ 2024-05-23 06:35:45 +00:00
skrll 6914ee8e71 Trailing whitespace. 2024-05-23 06:14:12 +00:00
skrll 47d1a346b9 sgimips: call mips_vector_init earlier to fix boot.
PR port-sgimips/58269
2024-05-23 06:11:14 +00:00
pgoyette 76ce3e0f3f Get the case right when reverting local changes 2024-05-23 06:10:03 +00:00
gutteridge 462b46f8ec Add mkubootimage to riscv tools 2024-05-23 02:50:47 +00:00
pgoyette a0c1e9831a Remove some more accidental local changes 2024-05-22 17:20:45 +00:00
tsutsui c745827c14 Also remove installboot(8) from emips install ramdisk. 2024-05-22 16:24:40 +00:00
riastradh 4efeea51c6 linux_xa: Delete and replace collision in xa_store as intended.
Don't free the colliding node that's still in the tree.

Noted by rjs@.
2024-05-22 15:59:25 +00:00
riastradh 48e3cda1b4 drm_gem.c: Enable drm_gem_fence_array_add now that we emulate xa. 2024-05-22 15:59:12 +00:00
riastradh c1ba05c351 drm_gem.c: Fix sense of assertion.
This is the opposite of WARN_ON.

Noted by rjs@.
2024-05-22 15:47:18 +00:00
tsutsui c1ac8e1a1f Remove no-op emips stuff.
It seems blindly copied and modified from pmax, but emips bootloader
can be specified by "Ml40x_2ace.plx" config file on the Giano simulator.
(not sure what on the real Xilinx ML401 board, but maybe hardcoded)
2024-05-22 15:42:42 +00:00
uwe d2ceb9fbdb uaudio.4: improve markup 2024-05-22 00:25:56 +00:00
uwe 61a71e7495 mkubootimage.1: improve markup 2024-05-22 00:02:46 +00:00
uwe 7d9f356046 mkubootimage.1: restore .Ed lost in previous 2024-05-21 23:31:21 +00:00
nia f5ded4340f eap(4): re-organize mixer controls to put classes first
some software (understandably) doesn't like it if you declare a
mixer node's child before the parent, notably ossxmix in pkgsrc
2024-05-21 22:47:11 +00:00
gutteridge e8de72e87c mkubootimage(1): adjust example output in man page
Refresh to show current output format (an additional field) and address
a "TODO" comment that's been there for over a decade.
2024-05-21 22:10:21 +00:00
tsutsui f5ffeae836 hp300 installcd is now bootable so mention it properly. 2024-05-21 15:35:18 +00:00
nia 802174f7f1 doc: recent (and not so recent) changes 2024-05-21 10:46:20 +00:00
nia 1341adf357 uaudio.4: update documentation reflecting initial uac2 support 2024-05-21 10:45:39 +00:00
andvar 6651fa84ea nix extra whitespace. 2024-05-21 08:04:20 +00:00
andvar 7d21103aa3 s/amout/amount/ in comments. 2024-05-21 07:29:40 +00:00