pledge: resolvpath() with relative path inside chroot

2016-03-13 Thread Sebastien Marie
Hi, The resolvpath() function in kern_pledge.c is used for wl_paths (whitelisted-paths). It permits to obtain a full resolved path (absolute and chroot-agnostic) from a path supplied by user in order to check it against list of whitelisted paths. The order of the operations inside the function i

Re: Optimizing chmod(1)

2016-03-13 Thread Philip Guenther
On Sun, Mar 13, 2016 at 9:11 PM, Michael McConville wrote: > It seems that chown(1) will write to a file even if it already has the > desired ownership. The below patch causes it to skip the write when > there would be no change. The best I could tell, the fts_read(3) and > fchownat(3) logic agree

Optimizing chmod(1)

2016-03-13 Thread Michael McConville
It seems that chown(1) will write to a file even if it already has the desired ownership. The below patch causes it to skip the write when there would be no change. The best I could tell, the fts_read(3) and fchownat(3) logic agree on whether to follow symlinks in all cases, so there's no need to e

rework vlan(4) multicast handling

2016-03-13 Thread David Gwynne
this refactors the multicast handling in vlan(4) a bit. the previous code had vlan_ether_purgemulti and vlan_ether_resetmulti, each of which does too many things. purgemulti would try and remove the multicast entries from the parent, and then free the local copies of the addresses. resetmulti woul

Re: spamd - blacklists

2016-03-13 Thread Michael McConville
hans wrote: > The link to "the place to search for blacklists" is dead. Might be better to replace it than to remove it. > Index: spamd.conf > === > RCS file: /cvs/src/etc/mail/spamd.conf,v > retrieving revision 1.4 > diff -u -p -r1.

multitouch support in wsmouse 3/3

2016-03-13 Thread Ulf Brosziewski
This patch adapts the synaptics driver to the changes described in 1/3 and 2/3. wsconsio.h defines alternative names for the ABSOLUTE_Z and ABSOLUTE_W events, namely WSCONS_EVENT_TOUCH_PRESSURE and WSCONS_EVENT_TOUCH_CONTACTS, and wsmouse uses the latter exclusively for the plain contact

Re: malloc: 1st small step in long way to multiple pools

2016-03-13 Thread Juan Francisco Cantero Hurtado
On Wed, Mar 09, 2016 at 10:06:15AM +0100, Otto Moerbeek wrote: > Hi, > > a future goal for malloc is to use multiple pools in threaded environments, > to reduce lock contention. > > This is a small first step towards that goal: move two globals to the > pool-specific struct dir_info. Currently t

Re: [PATCH] - '^\' misaligned in vi's 'viusage'

2016-03-13 Thread Martijn van Duren
Fixed, thanks. On 03/13/16 10:59, Raf Czlonka wrote: > Hi all, > > A superfluous character causes '^\' to be misaligned in vi's > 'viusage' command. > > Regards, > > Raf > > Index: usr.bin/vi/vi/v_cmd.c > === > RCS file: /cvs/src

multitouch support in wsmouse 2/3

2016-03-13 Thread Ulf Brosziewski
These diffs adapt the drivers that attach to wsmouse to its new interface. Most changes are fairly trivial and replace wsmouse_input calls with the WSMOUSE_INPUT/WSMOUSE_TOUCH macros. However, some cases may need a second thought. hidms, for example, now permits, at least in principle, to mix rela

multitouch support in wsmouse 1/3

2016-03-13 Thread Ulf Brosziewski
The diffs below are a rewrite of the input-processing part of wsmouse. It adds support for multitouch input. I have split the set of diffs into three parts and I will post part 2 and 3 in separate messages. Part 1 below contains all patches for wscons, part 2 is for the hardware drivers, part 3 i

Re: New scheduler for OpenBSD

2016-03-13 Thread Amit Kulkarni
On Sat, Mar 12, 2016 at 10:36 AM, Michal Mazurek wrote: > Gregor Best attempted to improve the scheduler in 2011: > http://comments.gmane.org/gmane.os.openbsd.tech/27059 > Here is another attempt, it takes up where the previous one left off. > > This is also mostly based on the main idea behind L

battlestar include patch

2016-03-13 Thread Edgar Pettijohn
Index: dayfile.c === RCS file: /cvs/src/games/battlestar/dayfile.c,v retrieving revision 1.12 diff -u -p -u -r1.12 dayfile.c --- dayfile.c22 Nov 2009 09:16:02 -1.12 +++ dayfile.c13 Mar 2016 16:13:48 - @@ -30,6 +30,

backgammon include patch

2016-03-13 Thread Edgar Pettijohn
i'm really surprised that this saved 20s in build time. i guess its worthwhile. Index: backgammon/extra.c === RCS file: /cvs/src/games/backgammon/backgammon/extra.c,v retrieving revision 1.8 diff -u -p -u -r1.8 extra.c --- backgamm

Re: New scheduler for OpenBSD

2016-03-13 Thread Martin Pieuchot
On 12/03/16(Sat) 17:36, Michal Mazurek wrote: > [...] > Some notes: > > Chrome is still not very usable. Are you wanting to improve the browser experience on OpenBSD? If that's your goal then I'd suggest you to start by analysing how the browsers behave. My personal analysis makes me believe t

spamd - blacklists

2016-03-13 Thread hans
The link to "the place to search for blacklists" is dead. Jan Index: spamd.conf === RCS file: /cvs/src/etc/mail/spamd.conf,v retrieving revision 1.4 diff -u -p -r1.4 spamd.conf --- spamd.conf 14 May 2012 16:58:46 -

Re: nologin(8) overhaul

2016-03-13 Thread Benjamin Baier
Ping? Also #include could be omitted, because it gets pulled in by unistd.h. On Sun, 6 Mar 2016 16:14:14 +0100 Benjamin Baier wrote: > A /usr/bin/false vs. /sbin/nologin argument led me to nologin(8) so > here are some suggestions. > > - de-lint > - return instead of exit() > - no need to tell

Re: malloc: 1st small step in long way to multiple pools

2016-03-13 Thread Jonathan Armani
On Wed, Mar 09, 2016 at 10:06:15AM +0100, Otto Moerbeek wrote: > Hi, > > a future goal for malloc is to use multiple pools in threaded environments, > to reduce lock contention. > > This is a small first step towards that goal: move two globals to the > pool-specific struct dir_info. Currently t

Re: malloc: 1st small step in long way to multiple pools

2016-03-13 Thread Stuart Henderson
On 2016/03/09 10:06, Otto Moerbeek wrote: > Hi, > > a future goal for malloc is to use multiple pools in threaded environments, > to reduce lock contention. > > This is a small first step towards that goal: move two globals to the > pool-specific struct dir_info. Currently there's only a single

move vlan protocol definitions to if_ether.h

2016-03-13 Thread David Gwynne
vlans are a standard part of ethernet now, it makes sense to me to keep all the protocol level stuff in a single place. ok? Index: net/if_vlan_var.h === RCS file: /cvs/src/sys/net/if_vlan_var.h,v retrieving revision 1.32 diff -u -p -

Re: remove 'returns no value' from man pages

2016-03-13 Thread Marc Espie
On Sat, Mar 12, 2016 at 01:18:18PM -0800, Michael McConville wrote: > Marc Espie wrote: > > On Fri, Mar 11, 2016 at 05:18:52PM -0800, Michael McConville wrote: > > > This is specified only irregularly, and people who don't know what a > > > void return type means are beyond help anyway. > > > > >

queue.3, tree.3 - SEE ALSO

2016-03-13 Thread Michal Mazurek
Refer to tree.3 from queue.3, and the other way around. Index: share/man/man3/queue.3 === RCS file: /cvs/src/share/man/man3/queue.3,v retrieving revision 1.63 diff -u -p -r1.63 queue.3 --- share/man/man3/queue.3 19 Nov 2015 13:38

[PATCH] - '^\' misaligned in vi's 'viusage'

2016-03-13 Thread Raf Czlonka
Hi all, A superfluous character causes '^\' to be misaligned in vi's 'viusage' command. Regards, Raf Index: usr.bin/vi/vi/v_cmd.c === RCS file: /cvs/src/usr.bin/vi/vi/v_cmd.c,v retrieving revision 1.4 diff -u -p -r1.4 v_cmd.c ---