sys/sched.h: conceal schedstate_percpu definition from userspace

2023-10-29 Thread Scott Cheloha
struct schedstate_percpu contains clockintr pointers. struct clockintr is not defined int userspace, so we need to conceal the schedstate_percpu definition from userspace. Nothing in base userspace currently uses the struct. I think we should leave in place for now. Something might depend

Interest in patches for changing /usr/games/* to use $XDG_* directories?

2023-10-29 Thread Tim Chase
Howdy, There was discussion on Reddit[1] asking about how to get various games to use alternate directories for the various files, particularly the FreeDesktop.org $XDG_* directory layout. These mostly break down into a couple categories: - save-games in $XDG_DATA_HOME - configuration in

Re: snmpd: Move SNMPv2-SMI::snmpV2 to application_internal.c

2023-10-29 Thread Martijn van Duren
On Sun, 2023-10-29 at 20:11 +0100, Martijn van Duren wrote: > Similar reasoning and questions as the move of SNMPv2-MIB::snmp. > This moves SNMP-FRAMEWORK-MIB::snmpEngine and > SNMP-USER-BASED-SM-MIB::usmStats from mib.c to application_internal.c, > under SNMPv2-SMI::snmpV2. The reason for this

Re: azalia: use HDMI as second fallback

2023-10-29 Thread Peter Hessler
Yes please! On 2023 Oct 29 (Sun) at 14:55:09 +0100 (+0100), Christopher Zimmermann wrote: :Hi, : :for me azalia HDMI audio playback works fine. According to [1] it had or :still has problems. For machines where the default audio should not be :(possibly broken) rsnd/0, but rsnd/1 this can be

snmpd: Move SNMPv2-MIB::system to application_internal.c

2023-10-29 Thread Martijn van Duren
This one is a little more involved than the previous 2. Since the snmpd.conf's system variables are stored inside a 'struct oid', I want to move these into their own struct inside 'struct snmpd'. If we also move mib_tree to smi.c we can completely remove mib.c As stated in my previous mail, this

snmpd: Move SNMPv2-SMI::snmpV2 to application_internal.c

2023-10-29 Thread Martijn van Duren
Similar reasoning and questions as the move of SNMPv2-MIB::snmp. This moves SNMP-FRAMEWORK-MIB::snmpEngine and SNMP-USER-BASED-SM-MIB::usmStats from mib.c to application_internal.c, under SNMPv2-SMI::snmpV2. The reason for this broader umbrella is that other backends have no business fiddling

snmpd: Move SNMPv2-MIB::snmp to application_internal.c

2023-10-29 Thread Martijn van Duren
I think the subject says it all. I'm not a 100% convinced that appl_internal_snmp() should live in application_internal.c, maybe snmpe.c, where these metrics are set is a better place. But since things come from mib.c, let's keep it simply here and we can always shuffle the deckchairs later.

snmpd: introduce application_internal.c

2023-10-29 Thread Martijn van Duren
In my quest to move away from the old code of mps.c and mib.c, here's the next step: Introduce a new application_internal.c. This is basically a very simplified version of the libagentx interface. We register a region at a certain point with application.c, and use an internal database of objects

Re: Removing syscall(2) from libc and kernel

2023-10-29 Thread Theo de Raadt
Here's the newest version of all 3 diffs: - kernel diff, can be tested alone - userland diff, can be tested alone - syscalls.master cleanup, would happen afterwards, and conflicts a bit. the ports team has repaired a majority of the syscall fallout in non-go programs. The effort for go is still

vmd(8) vionet: adapt zero-copy approach from vioblk

2023-10-29 Thread Dave Voutila
Recently, I rewrote parts of the emulated virtio block device in vmd(8) to fix issues found bringing up NetBSD as a guest. In the process, the rewrite introduced the chance to do zero-copy transfers for raw block devices. The diff below brings that design to the virtio network device. In summary:

azalia: use HDMI as second fallback

2023-10-29 Thread Christopher Zimmermann
Hi, for me azalia HDMI audio playback works fine. According to [1] it had or still has problems. For machines where the default audio should not be (possibly broken) rsnd/0, but rsnd/1 this can be configured in sndiod or AUDIODEVICE. This diff would attach azalia even when there are only