convert rtadvd to libevent

2016-07-01 Thread Jeremie Courreges-Anglas
Custom timers go away, ra_timer_update's signature is simplified. The diff also includes the ctime changes proposed in a standalone diff. The rescheduling of the next RA in rs_input() is probably the least trivial part. Comments / oks? Index: Makefile ==

Re: xdm halt & reboot buttons

2016-07-01 Thread Alexander Hall
On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > > Hi Alexander, > > > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > > > 1. xmessage has an sometimes useful, but in general awful, interface. > > > >

Enable audio on G5 PowerMac9,1

2016-07-01 Thread Marcus Glocker
This diff makes audio work on my G5 PowerMac9,1: aoa0 at macobio0 offset 0x0: irq 28,11,12 audio0 at aoa0 Whether a hw reset is required by deq_reset() will be decided by i2s_gpio_init(). ok? Index: sys/arch/macppc/dev/aoa.c =

Re: patch to bin/cat/cat.c to align output between -be & -ne

2016-07-01 Thread Ingo Schwarze
Hi, Sevan Janiyan wrote on Mon, Jun 27, 2016 at 02:02:26AM +0100: > The attached patch amends bin/cat/cat.c so the output is the same aside > from blank lines being numbered or unnumbered, depending on whether cat > was invoked with -ne or -be. > > At present, when cat is invoked with -be, there

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
Hi Patrick, On 2016-07-01 Fri 10:38 AM |, patrick keshishian wrote: > > Only comment I (as a user) have, has to do with liking the > default look as-is. Same for me. It's not pretty, but it's in keeping with the rest of the landscape. Some CSS type guru could refashion the whole thing. > I like

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 18:01 PM |, Sebastien Marie wrote: > > It is the fact that xmessage would be run as root that worry me a bit. Good point Sebastien. > Now, as xmessage(1) would be only used to provide UI to user, it should > be possible to run it as _x11 (or other unpriviligied user). The usefu

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 14:22 PM |, Craig Skinner wrote: > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > Maybe just add a button or two to the xdm login panel instead? > > > > Good idea. I'll try to alter that instead Suggestions welcome! > Ugh,... that's beyond me. >From xdm(1),

Re: patch to bin/cat/cat.c to align output between -be & -ne

2016-07-01 Thread Ingo Schwarze
Hi, Sevan Janiyan wrote on Mon, Jun 27, 2016 at 02:02:26AM +0100: > The attached patch amends bin/cat/cat.c so the output is the same aside > from blank lines being numbered or unnumbered, depending on whether cat > was invoked with -ne or -be. > > At present, when cat is invoked with -be, there

Re: xdm halt & reboot buttons

2016-07-01 Thread patrick keshishian
On 7/1/16, Matthieu Herrb wrote: > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: >> Hi Alexander, >> >> On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: >> > >> > 1. xmessage has an sometimes useful, but in general awful, interface. >> >> Aye,... simple, in base & functional. >

syslogd: accept space-deliminated fields

2016-07-01 Thread Todd C. Miller
Linux, Net and Free also support space-deliminated fields. Maybe we should too... - todd Index: usr.sbin/syslogd/syslog.conf.5 === RCS file: /cvs/src/usr.sbin/syslogd/syslog.conf.5,v retrieving revision 1.33 diff -u -p -u -r1.33 sy

Re: xdm halt & reboot buttons

2016-07-01 Thread Sebastien Marie
On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > > If you spend some time providing a set of nice resouces for xmessages > and keep it minimalistic, I think we can include your suggestion. I've > been waiting for other comments. Personally I would be a bit reluctant to xmessage s

Re: mandoc.db(5) without SQLite

2016-07-01 Thread Theo Buehler
Initial tests confirm the comparisons in your post. There is one small problem I ran into: exprdump() in mansearch.c:745 accesses the only partially initialized struct expr *e. $ ./apropos Pa=apm/suspend 000200 1 0xd0d0d0d0d0d0d0d0 apm/suspend apmd(8/amd64) - Advanced Power Management daemon

Re: syslogd: prevent writing empty fields to console

2016-07-01 Thread Alexander Bluhm
OK bluhm@ On Fri, Jul 01, 2016 at 07:20:25AM -0600, Todd C. Miller wrote: > If syslogd encounters an error while processing syslog.conf the > error message goes to the console since logging has not been setup > yet. > > However, in this case, neither f->f_lasttime nor f->f_prevhost are > set. Th

Re: Update perl to 5.20.3

2016-07-01 Thread Alexander Bluhm
On Wed, Jun 29, 2016 at 09:38:08AM -0700, Andrew Fresh wrote: > Unfortunately due to reasons, I won't be getting perl 5.22 in before > OpenBSD 6.0. However, I'd like to see if it's possible to get updated > to the latest in the 5.20 branch, 5.20.3. I would like to see the latest Perl bugfix relea

Re: acpicbkbd

2016-07-01 Thread Mark Kettenis
> Date: Fri, 1 Jul 2016 09:18:41 -0500 > From: joshua stein > > Small ACPI driver for controlling the keyboard backlight on some > Chromebooks with wsconsctl. ok kettenis@ > Index: sys/arch/amd64/conf/GENERIC > === > RCS file: /cvs

Re: acpicbkbd

2016-07-01 Thread Brandon Mercer
On Fri, Jul 01, 2016 at 09:18:41AM -0500, joshua stein wrote: > Small ACPI driver for controlling the keyboard backlight on some > Chromebooks with wsconsctl. > This has been working for me for several days now. OK bmercer@ FWIW. > Index: sys/arch/amd64/conf/GENERIC > ==

acpicbkbd

2016-07-01 Thread joshua stein
Small ACPI driver for controlling the keyboard backlight on some Chromebooks with wsconsctl. Index: sys/arch/amd64/conf/GENERIC === RCS file: /cvs/src/sys/arch/amd64/conf/GENERIC,v retrieving revision 1.422 diff -u -p -u -p -r1.422 G

Re: xdm halt & reboot buttons

2016-07-01 Thread Matthieu Herrb
On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > Hi Alexander, > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > 1. xmessage has an sometimes useful, but in general awful, interface. > > Aye,... simple, in base & functional. > > The prettiness factor can be cosmeti

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
Hi Alexander, On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > 1. xmessage has an sometimes useful, but in general awful, interface. Aye,... simple, in base & functional. The prettiness factor can be cosmetically altered with Xmessage* lines in /etc/X11/xdm/Xresources. See '! xmessage re

syslogd: prevent writing empty fields to console

2016-07-01 Thread Todd C. Miller
If syslogd encounters an error while processing syslog.conf the error message goes to the console since logging has not been setup yet. However, in this case, neither f->f_lasttime nor f->f_prevhost are set. This results in 15 NUL bytes and two space characters preceding the actual message on the

Re: syslogd: log errno for open failures

2016-07-01 Thread Gilles Chehade
On Fri, Jul 01, 2016 at 06:47:18AM -0600, Todd C. Miller wrote: > The priv_open_* functions set errno on failure. It is passed in > the message from the privileged process on error. Otherwise, all > that is logged is the file name which is not too helpful. > > There's still an issue where the me

syslogd: log errno for open failures

2016-07-01 Thread Todd C. Miller
The priv_open_* functions set errno on failure. It is passed in the message from the privileged process on error. Otherwise, all that is logged is the file name which is not too helpful. There's still an issue where the message logged to the console is preceded by 15 NUL bytes but that can be fi

ART/SRP regression

2016-07-01 Thread Martin Pieuchot
Last change reworking art_walk() introduced a regression leading to a of-by-one in rtable_walk(). You can trigger it by running the route(8) regress test 5: # cd /usr/src/regress/sbin/route && make rttest 5 # route -T5 -n show Routing tables Internet: DestinationGatewayFlags

Re: mandoc.db(5) without SQLite

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 05:28 AM |, Ingo Schwarze wrote: > > Any thoughts? Wow!