ldomctl/ldom.conf: iodevice: accept NACs as well

2022-09-18 Thread Klemens Nanni
Assignable PCIe devices have a root complex path and a more descriptive I/O slot path; example output from a T4-2: # ldomctl list-io PATH NAME /@400/@2/@0/@8 /SYS/MB/PCIE0 /@500/@2/@0/@a /SYS/MB/PCIE1 ... /@400/@2/@0/@e

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Florian Obser
On 2022-09-18 01:55 -04, Paul Janzen wrote: > The recent change to grdc(6), to display additional information if TZ is > set, has a few issues. > > 1. Time zone offset incorrectly reported in Newfoundland. > > Some time zones have offsets of 30 or 45 minutes. The displayed time > offset is

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Paul Janzen
The recent change to grdc(6), to display additional information if TZ is set, has a few issues. 1. Time zone offset incorrectly reported in Newfoundland. Some time zones have offsets of 30 or 45 minutes. The displayed time offset is currently truncated to the closest hour. (Australia/Eucla is

wsmouse(4): Apple-like multi-touch buttons

2022-09-18 Thread Tobias Heider
Hi, the diff below adds a new mouse type WSMOUSE_TYPE_APPLE which emulates Apples touchpad behaviour. Instead of mapping soft-buttons to an area on the pad, the different mouse buttons are mapped to single-finger, two-finger and three-finger clicks as is the default in macos. The diff enables

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Theo de Raadt
Paul Janzen wrote: > Yeah, I know with pledge() you can't do testing like > TZ=:/home/pjanzen/dev/usr/share/zoneinfo/testing/2022/America/Kentucky/Monticello > any more, even though that's a perfectly cromulent and functional TZ on my > system otherwise. So for the time being, probably any TZ

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Florian Obser
I'm happy with that, let's do this then - fix the offset calculation - output tm->tm_zone in addition to TZ to be able to spot typos. OK? diff --git grdc.c grdc.c index 66e5eee79e6..05b1ff1ea87 100644 --- grdc.c +++ grdc.c @@ -185,9 +185,12 @@ main(int argc, char *argv[])

Re: wsmouse(4): Apple-like multi-touch buttons

2022-09-18 Thread Tobias Heider
On Sun, Sep 18, 2022 at 02:21:06PM +0200, Tobias Heider wrote: > Hi, > > the diff below adds a new mouse type WSMOUSE_TYPE_APPLE which emulates Apples > touchpad behaviour. Instead of mapping soft-buttons to an area on the pad, > the different mouse buttons are mapped to single-finger,

ldomctl: download: add -s to select afterwards

2022-09-18 Thread Klemens Nanni
The T4-2 firmware does NOT select newly downloaded configurations, so I have to run # ldomctl download config-try-3-with-this-feature [... wait... sometimes it hangs and needs ^C + rerun...] # ldomctl select config-try-3-with-this-feature The following is much more

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Paul Janzen
> I disagree with the full-featured support of tzset() for all TZ paths. > > and, of course your private Monticello file is corrupt TZ file, which > exercises > a secret bug in the libc/time parser of the file, and you rely upon it to take > over control of this program, and other programs. > >

Re: grdc: show timezone when TZ is set

2022-09-18 Thread David Goerger
Sunday, 20220918 13:38+, Florian Obser wrote: I'm happy with that, let's do this then - fix the offset calculation - output tm->tm_zone in addition to TZ to be able to spot typos. I like the overall diff (thanks!), but one minor formatting nit is that I believe it's more common under

SSH_USER_AUTH

2022-09-18 Thread Joerg Sonnenberger
Hello, does anyone still know the motivation for SSH_USER_AUTH pointing to a file with the data instead of containing it directly? It makes the use a bit more annoying and the only argument I can come up with is not putting up to about 4KB into the environment. Joerg

Re: iostat's four drives by default

2022-09-18 Thread Jan Stary
Better diff: remove the comment as well. Index: iostat.8 === RCS file: /cvs/src/usr.sbin/iostat/iostat.8,v retrieving revision 1.28 diff -u -p -r1.28 iostat.8 --- iostat.817 Sep 2022 11:39:09 - 1.28 +++ iostat.818

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Theo de Raadt
Paul Janzen wrote: > My issues with the time system are (a) it has to "just work", so it flees > to UTC the instant something goes wrong, but never makes available any > status as to whether the asked-for time zone is the one returned, except > for (b) my program aborts if I'm pledged and I go

iostat's four drives by default

2022-09-18 Thread Jan Stary
By default, iostat displays the first for drives. It would be less surprising if it displayed all drives. It seems that the reason to display four is that it fits into the 80 columns (that is, with -d; otherwise, the cpu and tty display make the line overflow anyway). Jan Index:

www: macppc, sparc64: remove hifn(4), safe(4), ubsec(4) links

2022-09-18 Thread Klemens Nanni
Those drivers were removed with the 7.1 release already. OK? Index: macppc.html === RCS file: /cvs/www/macppc.html,v retrieving revision 1.278 diff -u -p -r1.278 macppc.html --- macppc.html 1 Aug 2022 15:58:31 - 1.278 +++

Re: ifconfig, wireguard output less verbose, unless -A or

2022-09-18 Thread Mikolaj Kucharski
Kind reminder. Below diff at https://marc.info/?l=openbsd-tech=166256415030704=2 On Wed, Sep 07, 2022 at 03:25:58PM +, Mikolaj Kucharski wrote: > Hi. > > I didn't get a lof of feedback on this on the code level, however > got some intput on manual page changes. At the end of the email is >

Re: grdc: show timezone when TZ is set

2022-09-18 Thread Steffen Nurpmeso
David Goerger wrote in : |Sunday, 20220918 13:38+, Florian Obser wrote: |>I'm happy with that, let's do this then |>- fix the offset calculation |>- output tm->tm_zone in addition to TZ to be able to spot typos. | |I like the overall diff (thanks!), but one minor fo

ldomd: MAKEDEV: crank vdsp to 24

2022-09-18 Thread Klemens Nanni
With eight domains and two or more disks per domain it is easy to exceed the current number of 16 virtual disks. I pass at least one miniroot and one root/data disk to every guest, one domain has additional disk for softraid testing... >16 already. Feedback? OK? (for after release) Index:

Re: hidmt: clickpad detection

2022-09-18 Thread Lucas Raab
On Tue, Sep 13, 2022 at 11:06:33PM +0200, Ulf Brosziewski wrote: > The diff below improves the way hidmt identifies clickpads, and > addresses the problems described in > https://marc.info/?l=openbsd-tech=165296530618617=2 > and > https://marc.info/?l=openbsd-tech=165980534415586=2 > > If

Re: SSH_USER_AUTH

2022-09-18 Thread Darren Tucker
On Mon, 19 Sept 2022 at 04:36, Joerg Sonnenberger wrote: > does anyone still know the motivation for SSH_USER_AUTH pointing to a > file with the data instead of containing it directly? Authentication data is sensitive and a process's environment variables can be inspected by any other process on