Re: hppa: switch to clockintr(9)

2022-12-03 Thread Philip Guenther
On Sat, Dec 3, 2022 at 5:43 PM Scott Cheloha wrote: > On Sun, Nov 06, 2022 at 07:42:49PM +, Scott Cheloha wrote: > > This patch switches hppa to clockintr(9). > > > > kettenis@ has tested it on his B2000, which is not MP. > > > > It probably needs testing on an MP hppa machine. I am uncertai

userspace: remove vestigial '?' cases from getopt(3) loops

2022-12-03 Thread Scott Cheloha
There are nearly a hundred vestigial question mark cases in the top-level getopt(3) loops of various programs. You know, this: switch (ch) { /* ... */ case '?': default: usage(); } All of them are redundant and can be handled by the "defaul

Re: hppa: switch to clockintr(9)

2022-12-03 Thread Scott Cheloha
On Sun, Nov 06, 2022 at 07:42:49PM +, Scott Cheloha wrote: > This patch switches hppa to clockintr(9). > > kettenis@ has tested it on his B2000, which is not MP. > > It probably needs testing on an MP hppa machine. I am uncertain how > common these things are. > > Notes: > > - hppa machine

riscv64: print SBI vendor/version

2022-12-03 Thread Jeremie Courreges-Anglas
With the diff below we get more details about the SBI version running on the machine. My Unmatched machine has OpenBSD version 0.9 but upstream has released 1.1 since, it implements v0.2 of the SBI spec but 0.3 and 1.0 have been released since. I suspect this information could be useful for new

Re: lld patch needed to build ports/lang/gcc/{8,11} on riscv64

2022-12-03 Thread Jeremie Courreges-Anglas
On Fri, Sep 09 2022, Jeremie Courreges-Anglas wrote: > When building ports-gcc on riscv64 I get this kind of error: > > --8<-- > ld: error: relocation refers to a symbol in a discarded section: .LEHB30 defined in .libs/libcp1.o referenced by connection.hh:72 (/usr/ports/pobj/gcc-8.

Re: Use `ps_mtx' mutex(9) to protect `ps_ucred' and unlock setuid(2), ...

2022-12-03 Thread Vitaliy Makkoveev
On Thu, Dec 01, 2022 at 10:50:03PM +0300, Vitaliy Makkoveev wrote: > On Thu, Dec 01, 2022 at 11:28:59AM -0800, Philip Guenther wrote: > > On Thu, Dec 1, 2022 at 10:31 AM Vitaliy Makkoveev wrote: > > ... > > > > > --- sys/sys/sysctl.h7 Nov 2022 14:25:44 - 1.231 > > > +++ sys/sys/sysc

Re: Some ENTRY_NB for libc/arch/i386

2022-12-03 Thread Jeremie Courreges-Anglas
On Sat, Dec 03 2022, Theo Buehler wrote: > A while ago I added ENTRY_NB to i386 to fix some warnings in libm. Turns > out that libc also has a few of them on i386, diff below fixes the > > warning: bcopy changed binding to STB_WEAK > > for bcmp, bzero, bcopy, brk, sbrk. > > http://bluhm.genua.de/r

Re: Some ENTRY_NB for libc/arch/i386

2022-12-03 Thread Todd C . Miller
On Sat, 03 Dec 2022 17:46:40 +0100, Theo Buehler wrote: > A while ago I added ENTRY_NB to i386 to fix some warnings in libm. Turns > out that libc also has a few of them on i386, diff below fixes the > > warning: bcopy changed binding to STB_WEAK > > for bcmp, bzero, bcopy, brk, sbrk. > > http://b

Some ENTRY_NB for libc/arch/i386

2022-12-03 Thread Theo Buehler
A while ago I added ENTRY_NB to i386 to fix some warnings in libm. Turns out that libc also has a few of them on i386, diff below fixes the warning: bcopy changed binding to STB_WEAK for bcmp, bzero, bcopy, brk, sbrk. http://bluhm.genua.de/regress/results/2022-12-02T15%3A17%3A04Z/setup-ot4.log i

Re: lladdr support for netstart/hostname.if

2022-12-03 Thread Klemens Nanni
On Thu, Dec 01, 2022 at 06:53:30PM -0800, Andrew Hewus Fresh wrote: > How about this adjustment to the man page? Reads fine, although it doesn't explain which file type wins. > > Index: share/man/man5/hostname.if.5 > === > RCS file: