Re: nicer uvm_swap

2014-12-22 Thread Ted Unangst
On Tue, Dec 23, 2014 at 08:26, Mark Kettenis wrote: >> Date: Mon, 22 Dec 2014 21:19:40 -0500 >> From: Ted Unangst >> >> @@ -1723,11 +1706,9 @@ uvm_swap_io(struct vm_page **pps, int st >> * now allocate a buf for the i/o. >> * [make sure we don't put the pagedaemon to sleep...] >>

tmux.1: document missing command key bindings

2014-12-22 Thread Theo Buehler
A few default command key bindings are missing in the table of the tmux manual: Index: tmux.1 === RCS file: /cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.411 diff -u -p -r1.411 tmux.1 --- tmux.1 9 Dec 2014 19:23:35 -

Re: nicer uvm_swap

2014-12-22 Thread Mark Kettenis
> Date: Mon, 22 Dec 2014 21:19:40 -0500 > From: Ted Unangst > > @@ -1723,11 +1706,9 @@ uvm_swap_io(struct vm_page **pps, int st >* now allocate a buf for the i/o. >* [make sure we don't put the pagedaemon to sleep...] >*/ > - s = splbio(); > pflag = (async || cur

Re: pool_allocator_nointr is a lie

2014-12-22 Thread Ted Unangst
On Tue, Dec 23, 2014 at 14:03, David Gwynne wrote: > but we can build a truth on the lie. > > how about this? > > there's probably some fuzz with this diff cos i pulled it out of a > bigger one. I think we can wait a bit and see where it's actually needed. I'd rather rename the original than cre

pool_allocator_nointr is a lie

2014-12-22 Thread David Gwynne
but we can build a truth on the lie. how about this? there's probably some fuzz with this diff cos i pulled it out of a bigger one. Index: sys/pool.h === RCS file: /cvs/src/sys/sys/pool.h,v retrieving revision 1.55 diff -u -p -r1.55

nicer uvm_swap

2014-12-22 Thread Ted Unangst
I don't like these macros, they obscure the code. We can use pool_setipl instead of doing the dance ourselves. The bufpool is already setipl, we don't need to dance at all. We should zero the buf. Index: uvm_swap.c === RCS file: /cv

Re: idle pool page gc

2014-12-22 Thread David Gwynne
On Mon, Dec 22, 2014 at 10:54:16AM -0500, Ted Unangst wrote: > On Mon, Dec 22, 2014 at 14:59, Mike Belopuhov wrote: > > 1) how is it different from what we have now? > > > > 2) why can't you do it when you pool_put? > > Right now, if you allocate a bunch of things, then free them, the > pages won

Re: permuate lines in random

2014-12-22 Thread Theo de Raadt
> On Mon, 22 Dec 2014, Ted Unangst wrote: > > > I would like to generate a permutation of some lines. We have random, > > which is vageuly similar. This adds a -p option to instead permute > > instead of randomly select. > > > + for (j = numlines; j > 1; j--) { > > + size_t s = arc4ra

Re: permuate lines in random

2014-12-22 Thread Damien Miller
On Mon, 22 Dec 2014, Ted Unangst wrote: > I would like to generate a permutation of some lines. We have random, > which is vageuly similar. This adds a -p option to instead permute > instead of randomly select. > + for (j = numlines; j > 1; j--) { > + size_t s = arc4random_uniform

permuate lines in random

2014-12-22 Thread Ted Unangst
I would like to generate a permutation of some lines. We have random, which is vageuly similar. This adds a -p option to instead permute instead of randomly select. Index: random.6 === RCS file: /cvs/src/games/random/random.6,v retrie

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread Ingo Schwarze
Tim Howe wrote on Mon, Dec 22, 2014 at 10:22:49AM -0800: >> From: Jason McIntyre >> Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) >> To: source-chan...@cvs.openbsd.org >> Subject: CVS: cvs.openbsd.org: src >> >> CVSROOT:/cvs >> Module name:src >> Changes by: j...@cvs.openbsd.org

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread Tim Howe
On Mon, 22 Dec 2014 03:29:13 -0500 thev...@openmailbox.org wrote: > >From: Jason McIntyre > >Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) > >To: source-chan...@cvs.openbsd.org > >Subject: CVS: cvs.openbsd.org: src > > > >CVSROOT:/cvs > >Module name:src > >Changes by: j...@cvs.openb

tahoe is dead

2014-12-22 Thread Ted Unangst
There's no OpenBSD tahoe on the ftp sites. Index: gprof.c === RCS file: /cvs/src/usr.bin/gprof/gprof.c,v retrieving revision 1.20 diff -u -p -r1.20 gprof.c --- gprof.c 26 Nov 2014 18:34:51 - 1.20 +++ gprof.c 22 Dec 20

Re: idle pool page gc

2014-12-22 Thread Ted Unangst
On Mon, Dec 22, 2014 at 14:59, Mike Belopuhov wrote: > 1) how is it different from what we have now? > > 2) why can't you do it when you pool_put? Right now, if you allocate a bunch of things, then free them, the pages won't be freed because the timestamp is new. But you've already freed everythi

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread thevoid
doing some grep, under /usr/share/man there are 99 'a hex' and only 2 'an hex'. $ grep -i 'an hex' man*/* man3p/Math::BigRat.3p:Create a BigRat from an hexadecimal, binary or octal number man3p/OpenBSD::md5.3p:\&print $md5\->stringize # provides an hex representation i have a number of pack

Re: Simplify wsmoused 2

2014-12-22 Thread Alexandr Shadchin
On Mon, Dec 22, 2014 at 06:05:48PM +0400, Vadim Zhukov wrote: > 22 дек. 2014 г. 17:03 пользователь "Vadim Zhukov" > написал: > > > > 22 дек. 2014 г. 16:26 пользователь "Alexandr Shadchin" < > alexandr.shadc...@gmail.com> написал: > > > > > > > > On Mon, Dec 22, 2014 at 04:37:22PM +0400, Vadim Zhuk

Re: Simplify wsmoused 2

2014-12-22 Thread Vadim Zhukov
22 дек. 2014 г. 17:03 пользователь "Vadim Zhukov" написал: > > 22 дек. 2014 г. 16:26 пользователь "Alexandr Shadchin" < alexandr.shadc...@gmail.com> написал: > > > > > On Mon, Dec 22, 2014 at 04:37:22PM +0400, Vadim Zhukov wrote: > > > 22 дек. 2014 г. 15:02 пользователь "Alexandr Shadchin" < > > >

Re: Simplify wsmoused 2

2014-12-22 Thread Vadim Zhukov
22 дек. 2014 г. 16:26 пользователь "Alexandr Shadchin" < alexandr.shadc...@gmail.com> написал: > > On Mon, Dec 22, 2014 at 04:37:22PM +0400, Vadim Zhukov wrote: > > 22 дек. 2014 г. 15:02 пользователь "Alexandr Shadchin" < > > alexandr.shadc...@gmail.com> написал: > > > > > > On Mon, Dec 22, 2014 at

Re: idle pool page gc

2014-12-22 Thread Mike Belopuhov
On 22 December 2014 at 06:43, David Gwynne wrote: > this introduces a global gc task that loops over all the pools > looking for pages that havent been used for a very long time so > they can be freed. > > this is the simplest way of doing this without introducing per pool > timeouts/tasks which i

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread thevoid
On Mon, 22 Dec 2014 05:16:21 -0500 "STeve Andre'" wrote: > On 12/22/14 05:02, thev...@openmailbox.org wrote: > > On Mon, 22 Dec 2014 08:53:04 + Jason McIntyre > > wrote: > >> On Mon, Dec 22, 2014 at 03:29:13AM -0500, thev...@openmailbox.org wrote: > From: Jason McIntyre > Date: Th

Re: Simplify wsmoused 2

2014-12-22 Thread Alexandr Shadchin
On Mon, Dec 22, 2014 at 04:37:22PM +0400, Vadim Zhukov wrote: > 22 дек. 2014 г. 15:02 пользователь "Alexandr Shadchin" < > alexandr.shadc...@gmail.com> написал: > > > > On Mon, Dec 22, 2014 at 03:52:39PM +0400, Vadim Zhukov wrote: > > > 22 дек. 2014 г. 14:40 пользователь "Alexandr Shadchin" < > > >

Re: Simplify wsmoused 2

2014-12-22 Thread Vadim Zhukov
22 дек. 2014 г. 15:02 пользователь "Alexandr Shadchin" < alexandr.shadc...@gmail.com> написал: > > On Mon, Dec 22, 2014 at 03:52:39PM +0400, Vadim Zhukov wrote: > > 22 дек. 2014 г. 14:40 пользователь "Alexandr Shadchin" < > > alexandr.shadc...@gmail.com> написал: > > > > > > Convert atoi -> strtonu

Re: Simplify wsmoused 2

2014-12-22 Thread Alexandr Shadchin
On Mon, Dec 22, 2014 at 03:52:39PM +0400, Vadim Zhukov wrote: > 22 дек. 2014 г. 14:40 пользователь "Alexandr Shadchin" < > alexandr.shadc...@gmail.com> написал: > > > > Convert atoi -> strtonum. Plus more detailed error messages. > > > > OK ? > > > > -- > > Alexandr Shadchin > > > > Index: wsmoused

Re: Simplify wsmoused 1

2014-12-22 Thread Vadim Zhukov
Looks fine. -- Vadim Zhukov 22 дек. 2014 г. 14:35 пользователь "Alexandr Shadchin" < alexandr.shadc...@gmail.com> написал: > Remove function mouse_map. This function is redundant. > > OK ? > > -- > Alexandr Shadchin > > Index: wsmoused.c > =

Re: Simplify wsmoused 2

2014-12-22 Thread Vadim Zhukov
22 дек. 2014 г. 14:40 пользователь "Alexandr Shadchin" < alexandr.shadc...@gmail.com> написал: > > Convert atoi -> strtonum. Plus more detailed error messages. > > OK ? > > -- > Alexandr Shadchin > > Index: wsmoused.c > === > RCS file:

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread STeve Andre'
On 12/22/14 05:02, thev...@openmailbox.org wrote: On Mon, 22 Dec 2014 08:53:04 + Jason McIntyre wrote: On Mon, Dec 22, 2014 at 03:29:13AM -0500, thev...@openmailbox.org wrote: From: Jason McIntyre Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) To: source-chan...@cvs.openbsd.org Subject: CVS:

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread Craig Skinner
On 2014-12-22 Mon 19:34 PM |, Christopher Vance wrote: > Whether a or an is appropriate will depend on whether the h is pronounced. > In England (i.e. where the English language comes from) h is often a silent letter. 76% of people born in England since 1982 still do not pronounce it: http://en.

Simplify wsmoused 2

2014-12-22 Thread Alexandr Shadchin
Convert atoi -> strtonum. Plus more detailed error messages. OK ? -- Alexandr Shadchin Index: wsmoused.c === RCS file: /cvs/src/usr.sbin/wsmoused/wsmoused.c,v retrieving revision 1.34 diff -u -p -r1.34 wsmoused.c --- wsmoused.c 22

Simplify wsmoused 1

2014-12-22 Thread Alexandr Shadchin
Remove function mouse_map. This function is redundant. OK ? -- Alexandr Shadchin Index: wsmoused.c === RCS file: /cvs/src/usr.sbin/wsmoused/wsmoused.c,v retrieving revision 1.33 diff -u -p -r1.33 wsmoused.c --- wsmoused.c 21 Dec 2

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread thevoid
On Mon, 22 Dec 2014 08:53:04 + Jason McIntyre wrote: > On Mon, Dec 22, 2014 at 03:29:13AM -0500, thev...@openmailbox.org wrote: > > >From: Jason McIntyre > > >Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) > > >To: source-chan...@cvs.openbsd.org > > >Subject: CVS: cvs.openbsd.org: src > > > > >

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread Jason McIntyre
On Mon, Dec 22, 2014 at 03:29:13AM -0500, thev...@openmailbox.org wrote: > >From: Jason McIntyre > >Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) > >To: source-chan...@cvs.openbsd.org > >Subject: CVS: cvs.openbsd.org: src > > > >CVSROOT:/cvs > >Module name:src > >Changes by: j...@cvs

Re: [source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread Christopher Vance
Whether a or an is appropriate will depend on whether the h is pronounced. On Monday, 22 December 2014, wrote: > >From: Jason McIntyre > > >Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) > >To: source-chan...@cvs.openbsd.org > >Subject: CVS: cvs.openbsd.org: src > > > >CVSROOT:/cvs > >Modu

[source-changes] relayd.conf.5 (an hex -> a hex)

2014-12-22 Thread thevoid
>From: Jason McIntyre >Date: Thu, 18 Dec 2014 14:26:09 -0700 (MST) >To: source-chan...@cvs.openbsd.org >Subject: CVS: cvs.openbsd.org: src > >CVSROOT:/cvs >Module name:src >Changes by: j...@cvs.openbsd.org 2014/12/18 14:26:09 > >Modified files: >usr.sbin/relayd: relayd.