Re: arc4random unexpected results

2018-03-24 Thread Edgar Pettijohn
On 03/24/18 21:27, Mike Burns wrote: On 2018-03-24 21.05.56 -0500, Edgar Pettijohn wrote: #include #include #include int main(void) { uint32_t n = arc4random(); printf("arc4random %d\n", n); printf("abs %d\n", abs(n)); return 0; } Which is well and good. However, I g

Re: arc4random unexpected results

2018-03-24 Thread Mike Burns
On 2018-03-24 21.05.56 -0500, Edgar Pettijohn wrote: > #include > #include > #include > > int > main(void) > { > uint32_t n = arc4random(); > > printf("arc4random %d\n", n); > printf("abs %d\n", abs(n)); > > return 0; > } > > Which is well and good. However, I get the followi

Re: arc4random unexpected results

2018-03-24 Thread Theo de Raadt
Basic C. > Take this example program: > > #include > #include > #include > > int > main(void) > { > uint32_t n = arc4random(); > > printf("arc4random %d\n", n); > printf("abs %d\n", abs(n)); > > return 0; > } > > It gives the following warning when compiling: > > test.

arc4random unexpected results

2018-03-24 Thread Edgar Pettijohn
Take this example program: #include #include #include int main(void) { uint32_t n = arc4random(); printf("arc4random %d\n", n); printf("abs %d\n", abs(n)); return 0; } It gives the following warning when compiling: test.c:11:21: warning: taking the absolute value of unsign

[patch] autofs for OpenBSD

2018-03-24 Thread Tomohiro Kusumi
Hi This is the initial patch submission of autofs filesystem support for OpenBSD, which was originally written for FreeBSD and later ported to DragonFlyBSD and NetBSD. Autofs is a generic filesystem automounter filesystem, not limited to mounting NFS. This OpenBSD port actually started off with t

Re: acpicmos(4) adding support for SystemCMOS OperationRegions

2018-03-24 Thread Mike Larkin
On Sat, Mar 24, 2018 at 12:04:06PM +0100, Mark Kettenis wrote: > I have a HP laptop that unconditionally reads from a SystemCMOS > OperationRegion. That's a bug in the AML; it should check whether the > region is available before accessing it. But crashing is a bit harsh. > There have been a coup

[patch] 6.3 /etc/examples/relayd.conf

2018-03-24 Thread Matt Schwartz
Hi tech@, One more quick change to the TLS acceleration example in /etc/examples/relayd.conf. The man page recommends match header set "Keep-Alive" value "$TIMEOUT" while the example in /etc/examples/relayd.conf uses match request header set "Connection" value "close" This tripped me up once when

[patch] 6.3 relayd.conf(5) man page correction

2018-03-24 Thread Matt Schwartz
Hi tech@, One small correction to relayd.conf(5). In the examples section for TLS acceleration, the configuration option match hash "sessid" results in a syntax error. Diff below. Thanks, Matt Index: relayd.conf.5 === RCS file: /cvs

acpicmos(4) adding support for SystemCMOS OperationRegions

2018-03-24 Thread Mark Kettenis
I have a HP laptop that unconditionally reads from a SystemCMOS OperationRegion. That's a bug in the AML; it should check whether the region is available before accessing it. But crashing is a bit harsh. There have been a couple of reports of such crashes in the past. Diff below adds the missing

Re: iwm0 doesn't connect automatically after reboot

2018-03-24 Thread Stefan Sperling
On Sat, Mar 24, 2018 at 07:36:07AM +0100, Mischa wrote: > Hi All, > > I have been running the last couple of 6.3-beta snapshots on both a Lenovo > x270 with Intel 8265 and an apu2 with 7260. > On both machines iwm0 doesn't come up automatically after a reboot and I have > to issue /etc/netstat i