Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Jason McIntyre
On Thu, Dec 22, 2022 at 10:49:06PM -0500, Paul Tagliamonte wrote: > Index: include/tib.h > === > RCS file: /cvs/src/include/tib.h,v > retrieving revision 1.8 > diff -u -p -r1.8 tib.h > --- include/tib.h 14 Jul 2020 16:48:13 -

Re: hostctl: Change from fixed length to variable length

2022-12-26 Thread YASUOKA Masahiko
Hi, Sorry for separating emails. On Tue, 27 Dec 2022 11:58:34 +0900 (JST) YASUOKA Masahiko wrote: >> @@ -1115,12 +1116,19 @@ xs_kvop(void *xsc, int op, char *key, char *value, >> size_t valuelen) >> } >> /* FALLTHROUGH */ >> case XS_LIST: >> -for (i =

Re: hostctl: Change from fixed length to variable length

2022-12-26 Thread YASUOKA Masahiko
Hi, On Mon, 26 Dec 2022 13:37:45 +0900 (JST) Masato Asou wrote: > My new patch is not returned value length from ioctl() system call > when read the KEY's value. > > The hostctl command allocate 4k bytes memory for store the value. Then > read the value by ioctl() system call. If ioctl()

Re: macppc: ansify some code (fix clang 15 errors)

2022-12-26 Thread Todd C . Miller
On Tue, 27 Dec 2022 03:20:55 +0100, Jeremie Courreges-Anglas wrote: > This should fix warnings in the macppc build (kernel + bootloader) with > clang 15 (-Wdeprecated-non-prototype). Not build tested (no macppc > machine at hand) but should be safe. ok? OK millert@ - todd

Re: libsa: ansify some pxe code

2022-12-26 Thread Todd C . Miller
On Tue, 27 Dec 2022 03:11:58 +0100, Jeremie Courreges-Anglas wrote: > These functions trip up -Wdeprecated-non-prototype (clang 15). We'll > probably use -Wno-deprecated-non-prototype until zlib gets fixed > upstream but let's clean up the code first. > > zlib2ansi doesn't find other errors in

Re: LLVM 15: mismatched bound errors

2022-12-26 Thread Todd C . Miller
On Tue, 27 Dec 2022 01:47:25 +0100, Jeremie Courreges-Anglas wrote: > That's for the kernel part. libsa diff below, ok? Of course. OK millert@ - todd

macppc: ansify some code (fix clang 15 errors)

2022-12-26 Thread Jeremie Courreges-Anglas
This should fix warnings in the macppc build (kernel + bootloader) with clang 15 (-Wdeprecated-non-prototype). Not build tested (no macppc machine at hand) but should be safe. ok? Index: arch/macppc/dev/pm_direct.c === RCS file:

Re: gdb: fix build with clang 15

2022-12-26 Thread Jonathan Gray
On Tue, Dec 27, 2022 at 02:19:53AM +0100, Jeremie Courreges-Anglas wrote: > > > /usr/src/gnu/usr.bin/binutils/gdb/tui/tui-stack.c:359:16: error: incompatible > integer to pointer conversion passing 'CORE_ADDR' (aka 'unsigned long') to > parameter of type 'CORE_ADDR *' (aka 'unsigned long *')

libsa: ansify some pxe code

2022-12-26 Thread Jeremie Courreges-Anglas
These functions trip up -Wdeprecated-non-prototype (clang 15). We'll probably use -Wno-deprecated-non-prototype until zlib gets fixed upstream but let's clean up the code first. zlib2ansi doesn't find other errors in sys/arch/*clang archs* except for macppc (diff for that next). ok? Index:

Re: perl: fix build with clang 15

2022-12-26 Thread Jeremie Courreges-Anglas
On Mon, Dec 26 2022, Andrew Hewus Fresh wrote: > On Tue, Dec 27, 2022 at 02:22:43AM +0100, Jeremie Courreges-Anglas wrote: >> >> MD5.xs:375:21: error: mixing declarations and code is incompatible with >> standards before C99 [-Werror,-Wdeclaration-after-statement] >> unsigned char

Re: perl: fix build with clang 15

2022-12-26 Thread Andrew Hewus Fresh
On Tue, Dec 27, 2022 at 02:22:43AM +0100, Jeremie Courreges-Anglas wrote: > > MD5.xs:375:21: error: mixing declarations and code is incompatible with > standards before C99 [-Werror,-Wdeclaration-after-statement] > unsigned char *buf = (unsigned char *)(SvPV(ST(2), len)); > > The

perl: fix build with clang 15

2022-12-26 Thread Jeremie Courreges-Anglas
MD5.xs:375:21: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement] unsigned char *buf = (unsigned char *)(SvPV(ST(2), len)); The build system asks for -Werror *and* -Wdeclaration-after-statement so let's fix the

gdb: fix build with clang 15

2022-12-26 Thread Jeremie Courreges-Anglas
/usr/src/gnu/usr.bin/binutils/gdb/tui/tui-stack.c:359:16: error: incompatible integer to pointer conversion passing 'CORE_ADDR' (aka 'unsigned long') to parameter of type 'CORE_ADDR *' (aka 'unsigned long *') [-Wint-conversion] , (CORE_ADDR) NULL)

Re: Size reduction experiments for LLVM-built sparc64 kernel

2022-12-26 Thread Jeremie Courreges-Anglas
On Sun, Dec 25 2022, Koakuma wrote: > Some weekend updates: > > 1. The clang-built kernels seem to be working well enough that I could >complete building a (GCC-built) userland. That's good to know, I think I haven't tested that after we moved to llvm 13. > 2. I tried a larger set of LLVM

Re: LLVM 15: mismatched bound errors

2022-12-26 Thread Jeremie Courreges-Anglas
On Sat, Dec 24 2022, Patrick Wildt wrote: > On Thu, Dec 22, 2022 at 01:14:57AM +0100, Patrick Wildt wrote: >> On Tue, Dec 20, 2022 at 05:48:41PM -0700, Todd C. Miller wrote: >> > On Tue, 20 Dec 2022 23:44:08 +0100, Patrick Wildt wrote: >> > >> > > clang complains when the function is declared

Re: LLVM 15: mismatched bound errors

2022-12-26 Thread Jeremie Courreges-Anglas
On Thu, Dec 22 2022, Todd C. Miller wrote: > On Thu, 22 Dec 2022 02:08:42 +0100, Jeremie Courreges-Anglas wrote: > >> https://github.com/jcourreges/openbsd-src/commit/4862df383ccb8a8e03d5c11b4f >> b739b6a3a5a7c7 >> >> Sadly making the size available in the declaration doesn't seem to be >>

Re: LLVM 15: mismatched bound errors

2022-12-26 Thread Jeremie Courreges-Anglas
On Sat, Dec 24 2022, Patrick Wildt wrote: > On Thu, Dec 22, 2022 at 01:14:57AM +0100, Patrick Wildt wrote: >> On Tue, Dec 20, 2022 at 05:48:41PM -0700, Todd C. Miller wrote: >> > On Tue, 20 Dec 2022 23:44:08 +0100, Patrick Wildt wrote: >> > >> > > clang complains when the function is declared

Re: Machine after unhibernate *sometimes* won't suspend/hibernate again or dim screen

2022-12-26 Thread Mike Larkin
On Sun, Dec 25, 2022 at 11:57:24PM -0600, Abel Abraham Camarillo Ojeda wrote: > # apmd -d > battery status: high. external power status: not connected. estimated > battery life 97% (223 minutes life time estimate) > can't disable driver messages, error: Inappropriate ioctl for device > apmevent

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Jason McIntyre
On Fri, Dec 23, 2022 at 10:33:43AM -0500, Paul Tagliamonte wrote: > Index: usr.bin/mg/search.c > === > RCS file: /cvs/src/usr.bin/mg/search.c,v > retrieving revision 1.48 > diff -u -p -r1.48 search.c > --- usr.bin/mg/search.c 20

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Jason McIntyre
On Fri, Dec 23, 2022 at 10:33:43AM -0500, Paul Tagliamonte wrote: > Index: usr.bin/make/arch.c > === > RCS file: /cvs/src/usr.bin/make/arch.c,v > retrieving revision 1.91 > diff -u -p -r1.91 arch.c > --- usr.bin/make/arch.c 13

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Jason McIntyre
On Fri, Dec 23, 2022 at 10:33:43AM -0500, Paul Tagliamonte wrote: > Index: usr.bin/find/function.c > === > RCS file: /cvs/src/usr.bin/find/function.c,v > retrieving revision 1.50 > diff -u -p -r1.50 function.c > ---

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Jason McIntyre
On Fri, Dec 23, 2022 at 10:33:43AM -0500, Paul Tagliamonte wrote: > On Fri, Dec 23, 2022 at 03:03:15PM +, Stuart Henderson wrote: > > > -struct itype *void_it; /* no type is emited > > > for void */ > > > +struct itype *void_it; /* no type

Re: ksh.1: Add a missing Ns

2022-12-26 Thread Jason McIntyre
On Mon, Dec 26, 2022 at 12:11:20PM -0500, Josiah Frentsos wrote: > Index: ksh.1 > === fixed, thanks. jmc > RCS file: /cvs/src/bin/ksh/ksh.1,v > retrieving revision 1.217 > diff -u -p -r1.217 ksh.1 > --- ksh.1 13 Sep 2022

Re: ksh.1: Add a missing Ns

2022-12-26 Thread Josiah Frentsos
Index: ksh.1 === RCS file: /cvs/src/bin/ksh/ksh.1,v retrieving revision 1.217 diff -u -p -r1.217 ksh.1 --- ksh.1 13 Sep 2022 20:26:26 - 1.217 +++ ksh.1 26 Dec 2022 17:10:37 - @@ -2713,9 +2713,7 @@ Exit status

Re: only open /dev/vmm once in vmd(8)

2022-12-26 Thread Mischa
Hi Dave, Applied the patch on top of the previous two you provided and all looks good. Running four proper VMs (installed 7.2, with different amount of memory allocated, one of them with rpki-client) and booted ~40 with just bsd.rd. Some log messages I am seeing, which I didn't see/notice

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Stuart Henderson
On 2022/12/26 11:25, Theo Buehler wrote: > On Mon, Dec 26, 2022 at 07:18:45AM -0300, Crystal Kolipe wrote: > > On Mon, Dec 26, 2022 at 07:34:04AM +, Jason McIntyre wrote: > > > On Thu, Dec 22, 2022 at 10:49:06PM -0500, Paul Tagliamonte wrote: > > > > > > hi. i've committed the parts of this

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Crystal Kolipe
On Mon, Dec 26, 2022 at 11:25:22AM +0100, Theo Buehler wrote: > On Mon, Dec 26, 2022 at 07:18:45AM -0300, Crystal Kolipe wrote: > > On Mon, Dec 26, 2022 at 07:34:04AM +, Jason McIntyre wrote: > > > On Thu, Dec 22, 2022 at 10:49:06PM -0500, Paul Tagliamonte wrote: > > > > > > hi. i've

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Theo Buehler
On Mon, Dec 26, 2022 at 07:18:45AM -0300, Crystal Kolipe wrote: > On Mon, Dec 26, 2022 at 07:34:04AM +, Jason McIntyre wrote: > > On Thu, Dec 22, 2022 at 10:49:06PM -0500, Paul Tagliamonte wrote: > > > > hi. i've committed the parts of this diff relating to libssl. > > jmc > > > > >

Re: [patch(es)] fix a few typos in /src

2022-12-26 Thread Crystal Kolipe
On Mon, Dec 26, 2022 at 07:34:04AM +, Jason McIntyre wrote: > On Thu, Dec 22, 2022 at 10:49:06PM -0500, Paul Tagliamonte wrote: > > hi. i've committed the parts of this diff relating to libssl. > jmc > > > === > > Index:

Re: Machine after unhibernate *sometimes* won't suspend/hibernate again or dim screen

2022-12-26 Thread Mike Larkin
On Mon, Dec 26, 2022 at 12:51:05AM -0600, Abel Abraham Camarillo Ojeda wrote: > On Mon, Dec 26, 2022 at 12:08 AM Mike Larkin wrote: > > > On Sun, Dec 25, 2022 at 11:39:29PM -0600, Abel Abraham Camarillo Ojeda > > wrote: > > > On Sun, Dec 25, 2022 at 9:46 PM Mike Larkin wrote: > > > > > > > On