Remove accents from fortunes

2017-07-10 Thread Anthony J. Bentley
Hi, "Punctuation followed by backspace" hasn't been the right way to enter accents for a long time. ok? Index: Notes === RCS file: /cvs/src/games/fortune/Notes,v retrieving revision 1.3 diff -u -p -r1.3 Notes --- Notes 28 Sep

Re: urndis issues

2017-07-10 Thread Artturi Alm
On Sun, Jul 09, 2017 at 09:57:34AM +0300, Artturi Alm wrote: > Hi, > > anyone else having issues w/urndis(android)? > victim of circumstances, i have to rely on it at times during the summer. > When i plug phone into usb, and enable usb tethering or w/e it is called, > i never get ip on first try,

Re: Reduce pool cache items when there is no contention

2017-07-10 Thread David Gwynne
> On 5 Jul 2017, at 20:11, Visa Hankala wrote: > > The current pool cache code increases the number of items that can be > cached locally in response to lock contention. This patch adds a tweak > that lowers the number when contention does not occur. The idea is to > let resources be returned to

Re: Use getprogname(3) in style(9)

2017-07-10 Thread Ted Unangst
Matthew Martin wrote: > Since __progname is not exposed in stdlib.h, use getprogname(3) instead. > While here remove the useless cast. yes. i also removed the declaration a few lines above. > If this is ok, I'd like to also replace the uses of __progname > throughout the tree with getprogname().

Re: Use modesetting driver on i965 and up

2017-07-10 Thread Ted Unangst
Mark Kettenis wrote: > This diff has been in snaps for a while now. This matches what > several major Linux distros do. > > ok? for those of us who haven't memorized hex PCI IDs, can we add a comment indicating the codename of the cutoff? broadwell or skylake or whatever? everything becomes "old

Re: relayd ipv6 ttl check_icmp / check_tcp

2017-07-10 Thread Jeremie Courreges-Anglas
Kapetanakis Giannis writes: > On 10/07/17 17:22, Jeremie Courreges-Anglas wrote: >> Using -1 for IPV6_UNICAST_HOPS is correct. >> >> Note that you can also use -1 for IP_TTL on OpenBSD, sadly some systems >> out there don't support it. >> >>> comments? >> >> ok jca@ with the nits below. >> >>

armv7 small XXX fix

2017-07-10 Thread Artturi Alm
Hi, this does clutter my diffs, and the XXX comment is correct, currently used _C_LABEL() is nothing, and i find it's usage directly rather pointless/weird, this does atleast make x .globl, so there is benefit to the added characters in written code be it _C_LABEL() or C_OBJECT() instead of just t

Re: install.sub: Fix scrambled address list in v6_defroute()

2017-07-10 Thread Robert Peichaer
On Sun, Jul 09, 2017 at 09:42:32AM +0200, Klemens Nanni wrote: > On Wed, Jun 14, 2017 at 03:00:11AM +0200, Klemens Nanni wrote: > > Installing -current the other day showed a broken list when picking > > the IPv6 default route just like reported on bugs@ five days ago[1]. > 1:http://marc.info/?

Use getprogname(3) in style(9)

2017-07-10 Thread Matthew Martin
Since __progname is not exposed in stdlib.h, use getprogname(3) instead. While here remove the useless cast. If this is ok, I'd like to also replace the uses of __progname throughout the tree with getprogname(). Rationale for this is setprogname takes a const char *, which means __progname should

Re: libevent vs ktrace

2017-07-10 Thread Alexander Bluhm
On Sun, Jul 09, 2017 at 09:29:56PM -0400, Ted Unangst wrote: > i've found ktrace of libevent to be a little noisy and hard to read because it > always passes in a changes pointer to kevent, even with a count of 0. this is > just a tiny change to pass NULL in that case, so that kdump doesn't spit ou

Re: tee: Replace hand-rolled list with SLIST_*

2017-07-10 Thread Klemens Nanni
On Mon, Jul 10, 2017 at 07:49:10PM +0200, Alexander Bluhm wrote: > On Sun, Jul 02, 2017 at 04:29:39AM +0200, Klemens Nanni wrote: > > No functional change or bugfix but queue(3) is the for a reason. That > > way the code even is a tad clearer to me (and two lines shorter). > > > > Feedback/OK? >

Re: [PATCH] etc/ksh.kshrc - unify command substitution

2017-07-10 Thread Raf Czlonka
On Mon, Jul 10, 2017 at 06:48:25PM BST, Robert Peichaer wrote: > On Fri, Jul 07, 2017 at 05:47:46AM +0100, Raf Czlonka wrote: > > Hi all, > > > > I've noticed that etc/ksh.kshrc uses both types of command substitution > > `command` and $(command). The below diff unifies it and uses > > $(command)

Re: Allowing devices to set a minimum wait time at power down/reboot

2017-07-10 Thread Stefan Fritsch
On Sun, 9 Jul 2017, Mark Kettenis wrote: > > there are some open issues that usb devices do not flush their caches fast > > enough (at least on some boards). And my mail about shortening the wait > > times in reboot(8) brought up that issue again. > > > > My suggestion would be to have a global

Use modesetting driver on i965 and up

2017-07-10 Thread Mark Kettenis
This diff has been in snaps for a while now. This matches what several major Linux distros do. ok? Index: xserver/hw/xfree86/common/xf86pciBus.c === RCS file: /cvs/xenocara/xserver/hw/xfree86/common/xf86pciBus.c,v retrieving revisi

Re: [PATCH] etc/ksh.kshrc - unify command substitution

2017-07-10 Thread Robert Peichaer
On Fri, Jul 07, 2017 at 05:47:46AM +0100, Raf Czlonka wrote: > Hi all, > > I've noticed that etc/ksh.kshrc uses both types of command substitution > `command` and $(command). The below diff unifies it and uses > $(command) notation consistently. > > While there: > > - remove ':' (null utility) f

Re: tee: Replace hand-rolled list with SLIST_*

2017-07-10 Thread Alexander Bluhm
On Sun, Jul 02, 2017 at 04:29:39AM +0200, Klemens Nanni wrote: > No functional change or bugfix but queue(3) is the for a reason. That > way the code even is a tad clearer to me (and two lines shorter). > > Feedback/OK? You do too much in this diff: 1. convert list to SLIST 2. make fp a global va

Re: Let inteldrm(4) publish a backlight property

2017-07-10 Thread Mark Kettenis
> Date: Mon, 10 Jul 2017 12:23:08 +0200 > From: Marcus MERIGHI > > mark.kette...@xs4all.nl (Mark Kettenis), 2017.07.09 (Sun) 23:41 (CEST): > > Diff below publishes a "Backlight" property that can be used to get > > and set the backlight associated with a particular output. This > > property can

Re: rip router advertisement processing and solicitation sending out of kernel

2017-07-10 Thread Florian Obser
On Mon, Jul 10, 2017 at 04:55:53PM +0200, Alexander Bluhm wrote: > On Mon, Jul 10, 2017 at 08:04:26AM +, Florian Obser wrote: > > I think it's time... > > Great, no default router, no prefix list! > > Does slaacd support on-link detection? I don't know if it worked > before, it could be impl

Re: relayd ipv6 ttl check_icmp / check_tcp

2017-07-10 Thread Kapetanakis Giannis
On 10/07/17 17:22, Jeremie Courreges-Anglas wrote: > Using -1 for IPV6_UNICAST_HOPS is correct. > > Note that you can also use -1 for IP_TTL on OpenBSD, sadly some systems > out there don't support it. > >> comments? > > ok jca@ with the nits below. > > It would be nice to factor this out in a

Re: rip router advertisement processing and solicitation sending out of kernel

2017-07-10 Thread Alexander Bluhm
On Mon, Jul 10, 2017 at 08:04:26AM +, Florian Obser wrote: > I think it's time... Great, no default router, no prefix list! Does slaacd support on-link detection? I don't know if it worked before, it could be implemented later, and I don't mind if we loose it. Just asking out of curiosity.

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Todd T. Fries
; ~/.ssh/config; awk '{sub(",.*$","",$1);print $1}' ~/.ssh/known_hosts)|sort -u) Thanks! Penned by Ingo Schwarze on 20170710 8:22.48, we have: | Hi, | | Bryan Steele wrote on Mon, Jul 10, 2017 at 08:21:19AM -0400: | | > Instead of relying on the win

Re: warning when building make(1)

2017-07-10 Thread Marc Espie
On Mon, Jul 10, 2017 at 05:14:18PM +0800, Michael W. Bombardieri wrote: > Hi, > > The function build_target_group() produces two warnings when make is > built with CDIAGFLAGS. > > parse.c:1462: warning: ISO C90 forbids mixed declarations and code > parse.c:1462: warning: 'gn2' may be used uniniti

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Landry Breuil
On Mon, Jul 10, 2017 at 04:04:47PM +0200, Ingo Schwarze wrote: > Hi, > > Bryan Steele wrote on Mon, Jul 10, 2017 at 09:38:32AM -0400: > > > This was a feature added last year by nicm@, not touching emacs.c > > at all.. > > edit.c is a helper file containing common utilities for emacs.c > and vi.

Re: relayd ipv6 ttl check_icmp / check_tcp

2017-07-10 Thread Jeremie Courreges-Anglas
Kapetanakis Giannis writes: > On 04/07/17 23:56, Sebastian Benoit wrote: >> Florian Obser(flor...@openbsd.org) on 2017.07.04 19:27:15 +: >>> On Fri, Jun 23, 2017 at 01:52:52PM +0300, Kapetanakis Giannis wrote: Hi, Using relayd's redirect/forward on ipv6 addresses I discovered p

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Raf Czlonka
On Mon, Jul 10, 2017 at 03:00:04PM BST, Alexander Bluhm wrote: > On Mon, Jul 10, 2017 at 02:19:45PM +0100, Raf Czlonka wrote: > > AFAIK, the '\' is optional with a final &&, ||, etc. no? > > Yes, but other lines have it, too. I wanted to be consistent. Right, I see. Consistency is good - I like

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Ingo Schwarze
Hi, Bryan Steele wrote on Mon, Jul 10, 2017 at 09:38:32AM -0400: > This was a feature added last year by nicm@, not touching emacs.c > at all.. edit.c is a helper file containing common utilities for emacs.c and vi.c. So it is also misdocumented. It is only documented for emacs mode, but vi mo

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Alexander Bluhm
On Mon, Jul 10, 2017 at 02:19:45PM +0100, Raf Czlonka wrote: > AFAIK, the '\' is optional with a final &&, ||, etc. no? Yes, but other lines have it, too. I wanted to be consistent.

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Bryan Steele
On Mon, Jul 10, 2017 at 03:22:48PM +0200, Ingo Schwarze wrote: > Hi, > > Bryan Steele wrote on Mon, Jul 10, 2017 at 08:21:19AM -0400: > > > Instead of relying on the window manager, why not add it to your > > shell? > > > > https://deftly.net/posts/2017-05-01-openbsd-ksh-tab-complete.html > > >

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Ingo Schwarze
Hi, Bryan Steele wrote on Mon, Jul 10, 2017 at 08:21:19AM -0400: > Instead of relying on the window manager, why not add it to your > shell? > > https://deftly.net/posts/2017-05-01-openbsd-ksh-tab-complete.html > > set -A complete_ssh $(awk '!/\*/ && /^Host /{print $2}' ~/.ssh/config) > > I'

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Raf Czlonka
On Mon, Jul 10, 2017 at 12:20:54PM BST, Alexander Bluhm wrote: > On Sun, Jul 09, 2017 at 10:53:34AM +0100, Raf Czlonka wrote: > > I've enabled accounting recently and have noticed these messages > > in the daily(8) email: > > I have also noticed this, but ignored the problem after three days :-)

armv7 static vectors

2017-07-10 Thread Artturi Alm
Hi, this diff does seem bigger than it is, because this does move the exception handler entrys from arm/exceptions.S to arm/vectors.S, while removing a round of useless indirection that was needed more before VBAR, which can be found supported even on some V6ses w/extensions(ARM11), so this is no

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Bryan Steele
On Mon, Jul 10, 2017 at 07:59:15AM +0100, Stuart Henderson wrote: > On 2017/07/10 00:56, Todd T. Fries wrote: > > What are our options to replace it with equivalent functionality should you > > feel the need to march on without it? > > ssh `cut -d' ' -f1 .ssh/known_hosts | dmenu` Instead of relyi

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Alexander Bluhm
On Mon, Jul 10, 2017 at 10:46:06AM +0100, Craig Skinner wrote: > newsyslog(8) can rotate these & has worked well for me on multiple > servers for the last 2 years: > http://marc.info/?l=openbsd-tech&m=144049218130267 With that the rotated acct is called acct.bak. This is not nice. You fiddle wit

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Alexander Bluhm
On Sun, Jul 09, 2017 at 10:53:34AM +0100, Raf Czlonka wrote: > I've enabled accounting recently and have noticed these messages > in the daily(8) email: I have also noticed this, but ignored the problem after three days :-) > These could be silenced by a simply testing if a particular file > exis

Re: Let inteldrm(4) publish a backlight property

2017-07-10 Thread Marcus MERIGHI
mark.kette...@xs4all.nl (Mark Kettenis), 2017.07.09 (Sun) 23:41 (CEST): > Diff below publishes a "Backlight" property that can be used to get > and set the backlight associated with a particular output. This > property can easily be exported by the X11 graphics drivers trough the > RandR protocol.

Re: [PATCH] etc/daily - handle purging accounting records a bit better

2017-07-10 Thread Craig Skinner
Hi Raf/all, On Sun, 9 Jul 2017 10:53:34 +0100 Raf Czlonka wrote: > > I've enabled accounting recently and have noticed these messages > in the daily(8) email: > > Day 1: > > Purging accounting records: > mv: /var/account/acct.2: No such file or directory > mv: /var/account/acc

warning when building make(1)

2017-07-10 Thread Michael W. Bombardieri
Hi, The function build_target_group() produces two warnings when make is built with CDIAGFLAGS. parse.c:1462: warning: ISO C90 forbids mixed declarations and code parse.c:1462: warning: 'gn2' may be used uninitialized in this function This patch attempts to silence the warnings. - Michael Ind

Re: relayd/ctl alternative control socket

2017-07-10 Thread Kapetanakis Giannis
On 23/06/17 11:07, Kapetanakis Giannis wrote: > On 23/06/17 04:43, David Gwynne wrote: >> >>> On 23 Jun 2017, at 01:15, Kapetanakis Giannis >>> wrote: >>> >>> Hi, >>> >>> Here is a patch for using alternative control socket for relayd and >>> relayctl. >>> It's based on ospfd. I would like for t

rip router advertisement processing and solicitation sending out of kernel

2017-07-10 Thread Florian Obser
I think it's time... I kept nd6_ra_input for source link layer address option processing like nd6_rs_input. Tests, OKs? net/if.c| 10 - netinet6/in6.c | 16 - netinet6/in6_ifattach.c |7 +- netinet6/in6_var.h |3 - netinet6/nd6.c | 372 +--

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Stuart Henderson
On 2017/07/10 00:56, Todd T. Fries wrote: > What are our options to replace it with equivalent functionality should you > feel the need to march on without it? ssh `cut -d' ' -f1 .ssh/known_hosts | dmenu`