Re: socket splicing thread

2014-11-03 Thread David Gwynne
> On 4 Nov 2014, at 09:50, Alexander Bluhm wrote: > > On Thu, Oct 30, 2014 at 09:55:35PM -0400, Ted Unangst wrote: >> On Thu, Oct 30, 2014 at 22:10, Alexander Bluhm wrote: >>> + >>> + /* Avoid user land starvation. */ >>> + yield(); >> >> I think this is the responsibility of the taskq thre

use siphash for in_pcb hash key lookups

2014-11-03 Thread David Gwynne
this uses siphash to protect the in_pcb hashes. this is pretty much a textbook example of what siphash should be used for. tests? ok? Index: conf/files === RCS file: /cvs/src/sys/conf/files,v retrieving revision 1.583 diff -u -p -r1.

ECDSA - GOST support in LibreSSL

2014-11-03 Thread rozhuk . im
Hi! I have a working code for DSA - GOST and ECDSA. Differences between GOST and ECDSA minimal. Could you add support GOST LibreSSL. I can help as much. http://netlab.linkpc.net/download/software/SDK/core/include/ecdsa.h

Re: socket splicing thread

2014-11-03 Thread Alexander Bluhm
On Thu, Oct 30, 2014 at 09:55:35PM -0400, Ted Unangst wrote: > On Thu, Oct 30, 2014 at 22:10, Alexander Bluhm wrote: > > + > > + /* Avoid user land starvation. */ > > + yield(); > > I think this is the responsibility of the taskq thread, not the > individual task. I am not sure about this. W

major improvements to bcd

2014-11-03 Thread Ted Unangst
First, don't truncate long lines (at least when read from stdin). Continue printing more cards as necessary. Second, this fixes a crash on "invalid" input. Now you can generate a series of random cards by running cat /dev/random | bcd Index: bcd.c =

Re: em(4) fix for Intel I218 chip

2014-11-03 Thread Claudio Jeker
On Sun, Oct 12, 2014 at 09:53:28PM +0200, Claudio Jeker wrote: > This seems to be enough to help em(4) in modern laptops like the X240 to > no longer generate watchdog timeouts on high throughput. > This should only affect I218 but tests on different em(4) devices would > not hurt. > I will commi

Re: deobfuscate disk subr gpt

2014-11-03 Thread patrick keshishian
On Mon, Nov 03, 2014 at 11:56:25AM -0500, Ted Unangst wrote: > On Sat, Nov 01, 2014 at 22:45, Ted Unangst wrote: > > Pull out a few common subexpressions. I think this makes the code > > easier to read. Some byte swaps are left, when they are only used once. > > > > Then use mallocarray for bounds

Re: remove audio support in linux emulation

2014-11-03 Thread Paul Irofti
On Fri, Oct 31, 2014 at 08:00:53PM +0100, Alexandre Ratchov wrote: > I believe there are no recent binary-only programs that could use > audio in linux emulation. I couldn't find a single example, and > there are no examples in replies to my e-mail to misc@: > > https://marc.info/?l=openbsd-misc&m

important canfield(6) diff

2014-11-03 Thread Ted Unangst
Use knuth shuffle instead of silly shuffle. Index: canfield.c === RCS file: /cvs/src/games/canfield/canfield/canfield.c,v retrieving revision 1.13 diff -u -p -r1.13 canfield.c --- canfield.c 29 Aug 2013 20:22:11 - 1.13 +++ c

Re: deobfuscate disk subr gpt

2014-11-03 Thread Ted Unangst
On Sat, Nov 01, 2014 at 22:45, Ted Unangst wrote: > Pull out a few common subexpressions. I think this makes the code > easier to read. Some byte swaps are left, when they are only used once. > > Then use mallocarray for bounds checking. > > Also observe the following: > + if (ghsize

Re: mg(1) and no-tab-mode

2014-11-03 Thread Jason McIntyre
On Mon, Nov 03, 2014 at 02:08:33PM +0200, Kaspars Bankovskis wrote: > Hi, > > I was just mislead by mg(1) manpage, which mentions no-tab-mode as an > available command. But you get it only if you look at source and > manually compile with -DNOTAB. > > Last time the topic was touched here: > http:

mg(1) and no-tab-mode

2014-11-03 Thread Kaspars Bankovskis
Hi, I was just mislead by mg(1) manpage, which mentions no-tab-mode as an available command. But you get it only if you look at source and manually compile with -DNOTAB. Last time the topic was touched here: http://marc.info/?l=openbsd-tech&m=133727367821401&w=2 > no-tab-mode looks a bit buggy.

tmux: handle C-w in copy mode search prompt

2014-11-03 Thread Theo Buehler
The editing facilities in the search prompt in tmux's copy mode are kept to a minimum. However, since deleting to the beginning of the prompt with `C-u' and deleting the previous letter with `C-h' work as usual, I would have expected that `C-w' would work as well and delete to the beginning of the