Re: taskq_barrier(9)

2015-11-29 Thread Mark Kettenis
> Date: Mon, 30 Nov 2015 16:28:55 +1000 > From: David Gwynne > > while playing with some options around running an interfaces send > queue, i came up with the following. if you've deferred work to a > taskq and you're not reference counting, this can help you guarantee > that any work before a po

taskq_barrier(9)

2015-11-29 Thread David Gwynne
while playing with some options around running an interfaces send queue, i came up with the following. if you've deferred work to a taskq and you're not reference counting, this can help you guarantee that any work before a point has completed before proceeding. think of it like intr_barrier. i d

what approach for TRNG?

2015-11-29 Thread Devin Reade
A while ago a posted a dmesg for a TRNG USB device (the MoonBase Otago OneRNG) per . I'm looking at adding support for this device but haven't splunked too much into the OpenBSD kernel bef

Re: use ping6(8)'s engine in ping(8)

2015-11-29 Thread Sebastian Benoit
ok Florian Obser(flor...@openbsd.org) on 2015.11.29 15:57:34 +: > This shoves a round peg into a square hole with considerable force... > I was only concerned with moving the functionality over from ping6, > further cleanup will happen on top of this. > > OK? > > diff --git ping.c ping.c > i

Re: ping(8) / ping6(8) source address

2015-11-29 Thread Sebastian Benoit
ok Florian Obser(flor...@openbsd.org) on 2015.11.29 14:07:24 +: > Inspired by the traceroute / traceroute6 merge. > At least reduces the diff in the option parser :) > OK? > > diff --git ping/ping.c ping/ping.c > index f5ccaca..4944f77 100644 > --- ping/ping.c > +++ ping/ping.c > @@ -110,7 +

Re: Make bge(4) detachable

2015-11-29 Thread Bryan Vyhmeister
On Sun, Nov 29, 2015 at 06:37:45PM +0100, Mark Kettenis wrote: > Just in case I accidentally unplug he Thiunderbolt gadget... The > bge_stop() function gains a "softonly" argumentlike we introduced in > other network drivers. This along with the ppb.c patch allows the Apple Thunderbolt Ethernet a

Re: Make bge(4) detachable

2015-11-29 Thread Bob Beck
Jeez Mark, at this rate I'm going to have to buy you jeans and a black turtleneck to go with your Jesus computer... On Sun, Nov 29, 2015 at 10:37 AM, Mark Kettenis wrote: > Just in case I accidentally unplug he Thiunderbolt gadget... The > bge_stop() function gains a "softonly" argumentlike we

Make bge(4) detachable

2015-11-29 Thread Mark Kettenis
Just in case I accidentally unplug he Thiunderbolt gadget... The bge_stop() function gains a "softonly" argumentlike we introduced in other network drivers. ok? Index: if_bge.c === RCS file: /cvs/src/sys/dev/pci/if_bge.c,v retrievi

UTF-8 support for wc(1)

2015-11-29 Thread Ingo Schwarze
Hi, our wc(1) utility currently violates POSIX in two ways: 1. The -m option counts bytes instead of characters. The patch given below fixes that. 2. Word counting with -w only treats ASCII whitespace as word boundaries and regards two words joined by non-ASCII whitespace as one si

Re: Slow wsmouse down in console

2015-11-29 Thread Ulf Brosziewski
This looks nice. Maybe someone else who is more familiar with wsdisplay could also have a look at it? I made a test with a USB mouse and an ALPS Glidepoint, which worked well. Without the patch wsmoused is completely useless for that touchpad. Out of curiosity, I made another test with an Elante

use ping6(8)'s engine in ping(8)

2015-11-29 Thread Florian Obser
This shoves a round peg into a square hole with considerable force... I was only concerned with moving the functionality over from ping6, further cleanup will happen on top of this. OK? diff --git ping.c ping.c index 4944f77..a3a6fe3 100644 --- ping.c +++ ping.c @@ -147,8 +147,7 @@ unsigned long

Re: pledge for cribbage(6)

2015-11-29 Thread Theo Buehler
On Sun, Nov 29, 2015 at 03:00:13PM +0100, Theo Buehler wrote: > Fairly straightforward pledge for cribbage: > > It might fork-exec a pager ($PAGER or more(1)) in instructions() > afterwards only "stdio tty" is needed. I sent a slightly older version of the patch... Here's what I actually wanted

ping(8) / ping6(8) source address

2015-11-29 Thread Florian Obser
Inspired by the traceroute / traceroute6 merge. At least reduces the diff in the option parser :) OK? diff --git ping/ping.c ping/ping.c index f5ccaca..4944f77 100644 --- ping/ping.c +++ ping/ping.c @@ -110,7 +110,7 @@ int options; #defineF_SO_DEBUG 0x0040 /* 0x0

pledge for cribbage(6)

2015-11-29 Thread Theo Buehler
Fairly straightforward pledge for cribbage: It might fork-exec a pager ($PAGER or more(1)) in instructions() afterwards only "stdio tty" is needed. Index: cribbage/crib.c === RCS file: /var/cvs/src/games/cribbage/crib.c,v retrieving

move scorefile + pledge for robots(6)

2015-11-29 Thread Theo Buehler
Robots has a nicely implemented score file, so I decided not to touch it, except for moving to $HOME by default. Needs pledge("getpw") because of that. Index: robots/main.c === RCS file: /cvs/src/games/robots/main.c,v retrieving revi

Prefer LOGNAME over USER in snake(6) and tetris(6)

2015-11-29 Thread Theo Buehler
Prefer $LOGNAME over $USER, since the latter is deprecated, see environ(7). Pointed out by millert@ Fall back to getlogin() before defaulting to " ???". Index: snake/snake.6 === RCS file: /cvs/src/games/snake/snake.6,v retrieving re

Re: ppb diff for testing

2015-11-29 Thread Ossi Herrala
On Sat, Nov 28, 2015 at 02:02:57PM +0100, Mark Kettenis wrote: > The diff below teaches ppb(4) how to configure PCI bridges that are > left unconfigured by firmware. This happens for example on Apple > hardware, where devices connected through Thunderbolt are left > unconfigured. And since Thund