[PLEASE TEST] acpi(4): acpi_sleep(): tsleep(9) -> tsleep_nsec(9)

2020-03-15 Thread Scott Cheloha
Hi, This is a straightforward ticks-to-milliseconds conversion, but IIRC pirofti@ wanted me to get some tests before committing it. The only users of acpi_sleep() are (a) acpitz(4) and (b) any AML code that uses AMLOP_SLEEP. AMLOP_SLEEP seems to trigger just before a suspend. I don't know when

macppc pdisk: keep Mac OS 9 drivers

2020-03-15 Thread George Koehler
Hello tech, This diff solves a problem with pdisk(8): it is disabling the Mac OS 9 drivers on the disk. I use pdisk(8) to share a disk with Mac OS 9 and OpenBSD macppc. After pdisk(8) disabled my drivers, my Mac OS 9 boot got stuck at the blinking '?' on the floppy icon. I fixed it by booting a

Re: hppa: heartbeat: timeout_add(9) -> timeout_add_usec(9)

2020-03-15 Thread Scott Cheloha
On Tue, Jan 21, 2020 at 08:06:14PM -0600, Scott Cheloha wrote: > On Mon, Dec 23, 2019 at 01:23:28PM -0600, Scott Cheloha wrote: > > 1/16 seconds is exactly 62500 microseconds. > > > > ok? > > 1mo bump. 3 month bump. After pondering this for many months I've decided using SEC_TO_NSEC(9) is bette

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread 0xef967c36
On Sun, Mar 15, 2020 at 07:32:52PM +0100, Martijn van Duren wrote: > tl;dr new diff below Check with: OPTS=r- ./getopt-test-MvD2 -r- getopt-test-MvD2: unknown option -- - #U- | With the unpatched code, my patch, and the original 44BSD, it's: OPTS=r- ./getopt-test-O -r- {./getopt-test-O} <->

Re: unbound 1.10.0

2020-03-15 Thread Stuart Henderson
On 2020/03/15 19:05, Renaud Allard wrote: > > > On 15/03/2020 17:36, Stuart Henderson wrote: > > Lots of churn again.. most of the new + are related to the new rpz and > > serve-stale support. I've been running it for a few days with my usual > > setup with no problems, haven't tried the new thin

Re: macppc kernel and clang

2020-03-15 Thread rgc
On Sat, Mar 14, 2020 at 11:33:37PM -0400, George Koehler wrote: > After the diff, I put my dmesg; my iMac G3 isn't GENERIC.MP and > doesn't have radeondrm. --George > i've been using your ppc_mftb() patch on both clang ang gcc compiled kernel ... for SP though and there seems to be no issues at

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread Martijn van Duren
tl;dr new diff below On 3/15/20 11:21 AM, 0xef967...@gmail.com wrote: > On Sun, Mar 15, 2020 at 09:30:22AM +0100, Martijn van Duren wrote: >>> --- lib/libc/stdlib/getopt_long.c~ >>> +++ lib/libc/stdlib/getopt_long.c >>> @@ -418,15 +418,8 @@ >>> } >>> >>> if ((optchar = (int)*place++) ==

Re: [patch] smtpd: fix for ctype casts

2020-03-15 Thread Todd C . Miller
Committed, thanks. - todd

Re: unbound 1.10.0

2020-03-15 Thread Renaud Allard
On 15/03/2020 17:36, Stuart Henderson wrote: Lots of churn again.. most of the new + are related to the new rpz and serve-stale support. I've been running it for a few days with my usual setup with no problems, haven't tried the new things yet. Anyone want to test? I have had a lot of stalli

Re: Improve handling of IPv6 SLAAC renumbering scenarios

2020-03-15 Thread Denis Fondras
On Sat, Mar 14, 2020 at 12:54:20PM -0300, Fernando Gont wrote: > Folks, > > This improves IPv6 SLAAC handling of renumbering scenarios. At the time of > this writing, this doesn't follow the spec, but is the right thing. > > Essentially, PIOs will employ these default values: > Preferred Lifetime

Re: [patch] smtpd: fix for ctype casts

2020-03-15 Thread Todd C . Miller
On Sun, 15 Mar 2020 16:09:36 +0100, Hiltjo Posthuma wrote: > Below is a patch which adds some missing casts: Looks good to me. - todd

Re: [patch] smtpd: fix for ctype casts

2020-03-15 Thread Hiltjo Posthuma
On Tue, Feb 25, 2020 at 12:09:19AM +0100, Joerg Jung wrote: > > > On 24. Feb 2020, at 20:31, Todd C. Miller wrote: > > > > I have a mostly-identical patch in my tree, though I tried to improve > > readability a bit. > > ok jung@ > > > - todd > > > > Index: usr.sbin/smtpd/mta_session.c > > ===

Re: smtpd: use CRLF in local enqueuer

2020-03-15 Thread Todd C . Miller
On Sun, 15 Mar 2020 13:29:46 +0100, Eric Faurot wrote: > This diff makes the local enqueuer use CRLF line ending during the > SMTP dialog, as required by the protocol. Looks good, one comment inline. - todd > Index: enqueue.c > ==

smtpd: use CRLF in local enqueuer

2020-03-15 Thread Eric Faurot
This diff makes the local enqueuer use CRLF line ending during the SMTP dialog, as required by the protocol. Eric. Index: enqueue.c === RCS file: /cvs/src/usr.sbin/smtpd/enqueue.c,v retrieving revision 1.117 diff -u -p -r1.117 enqueu

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread 0xef967c36
On Sun, Mar 15, 2020 at 12:21:02PM +0200, 0xef967...@gmail.com wrote: > On Sun, Mar 15, 2020 at 09:30:22AM +0100, Martijn van Duren wrote: > > > --- lib/libc/stdlib/getopt_long.c~ > > > +++ lib/libc/stdlib/getopt_long.c > > > @@ -418,15 +418,8 @@ > > > } > > > > > > if ((optchar = (int)*place

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread 0xef967c36
On Sun, Mar 15, 2020 at 12:21:02PM +0200, 0xef967...@gmail.com wrote: > Notice that OpenBSD's getopt(3) explicitly allows to use "-" as an > option character, and there may be a /separate/ bug related to that, > but my patch doesn't change or affect it in any way. In case it's not clear what I'm t

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread 0xef967c36
On Sun, Mar 15, 2020 at 09:30:22AM +0100, Martijn van Duren wrote: > > --- lib/libc/stdlib/getopt_long.c~ > > +++ lib/libc/stdlib/getopt_long.c > > @@ -418,15 +418,8 @@ > > } > > > > if ((optchar = (int)*place++) == (int)':' || > > - (optchar == (int)'-' && *place != '\0') || > > -

Re: bug? in getopt(3) / possible [PATCH]

2020-03-15 Thread Martijn van Duren
On 3/12/20 2:40 AM, 0xef967...@gmail.com wrote: > $ cat > opts.c <<'EOT' && cc -Wall -W opts.c -o opts > #include > #include > int main(int ac, char **av){ > int c, i; > while((c = getopt(ac, av, "q")) != -1) > if(c != '?' && c != ':') printf("OPT %c\n", c); >