Re: [patch] Reset sysload if sysctl call failed in usr.bin/top/machine.c

2018-05-24 Thread Nan Xiao
Hi Jeremie, Yes, you are right. I modify the code which assumes if sysctl successes, the sysload.fscale should not be 0. So this patch only handles sysctl function failed case: Index: machine.c === RCS file:

Re: smtpd.conf new grammar

2018-05-24 Thread Todd C. Miller
On Thu, 24 May 2018 16:38:17 -0400, Rupert Gallagher wrote: > It may solve some obscure technical problem, but is a horrible thing > to read and write. How about keeping the best of both worlds? Leave > the old beautiful PF-like syntax to humans, and translate it into > the newEgyptian(tm) on the

Re: smtpd.conf new grammar

2018-05-24 Thread Rupert Gallagher
On Thu, May 24, 2018 at 14:18, Gilles Chehade wrote: > In effect, instead of having: > accept from any for local deliver to mbox > > You will have: > action "my_action" mbox > match from any for local action "my_action" It may solve some obscure technical problem, but is a

in_ioctl: prepare further refactoring

2018-05-24 Thread Theo Buehler
The simple diff below will reduce the noise in an upcoming diff. As mpi mentioned a while ago, the goal is to merge the two big switches and to have only one case per ioctl, so we can start pushing the NET_LOCK() further down in this function. The point of moving SIOCSIFNETMASK up is that we

Add 'video' pledge

2018-05-24 Thread Landry Breuil
Hi, here's two simple diffs (one for the kernel, one for the pledge.2 manpage) that allow me to use my webcam again within firefox when pledged,, adding 'video' to the main process pledges. The kernel changes are similar to what was done for 'audio' pledge, and i took the ioctl list from the

Re: Unlock 16 network-related syscalls

2018-05-24 Thread Mathieu -
Mathieu - wrote: > Mathieu - wrote: > > Martin Pieuchot wrote: > > > On 23/05/18(Wed) 11:14, Hrvoje Popovski wrote: > > > > On 22.5.2018. 17:03, Theo Buehler wrote: > > > > > I applied the diff, made syscalls, then built and installed a new > > > > > kernel. With that, I ran into a reliable

Re: errors in usage.c - libusbhid

2018-05-24 Thread David Bern
While I was waiting for comments and feedback I came up with some improvements. The "logic" is still the same, but the execution is hopefully more sane. Index: usage.c === RCS file: /cvs/src/lib/libusbhid/usage.c,v retrieving

Re: Unlock 16 network-related syscalls

2018-05-24 Thread Mathieu -
Mathieu - wrote: > Martin Pieuchot wrote: > > On 23/05/18(Wed) 11:14, Hrvoje Popovski wrote: > > > On 22.5.2018. 17:03, Theo Buehler wrote: > > > > I applied the diff, made syscalls, then built and installed a new > > > > kernel. With that, I ran into a reliable complete lockup on my x230 by > > >

Re: dwiic(4) fix

2018-05-24 Thread Bobby Johnson
My iatp device works the same as before, good on boot, but fails reading main memory map, etc on resume. On Wed, May 23, 2018 at 11:18 PM, Mike Larkin wrote: > On Tue, May 22, 2018 at 05:43:01PM +0200, Mark Kettenis wrote: >> > Date: Mon, 21 May 2018 17:25:47 -0700 >> >

smtpd.conf new grammar

2018-05-24 Thread Gilles Chehade
Hi, I have just committed a major change in smtpd that'll require smtpd.conf to be rewritten before your update to the new code. The new grammar is not TOO different from the former one, a lot of stuff remains exactly identical, but the ruleset is now split into two parts: - a named action - a

Re: [patch] Reset sysload if sysctl call failed in usr.bin/top/machine.c

2018-05-24 Thread Jeremie Courreges-Anglas
On Tue, May 22 2018, Nan Xiao wrote: > Hi tech@, > > Below is the patch of resetting sysload if sysctl call failed in > usr.bin/top/machine.c, otherwise the memory of sysload is undetermined. > (The same process as uvmexp and bcstats). > > Index: machine.c >

Re: Speed up snmpwalk

2018-05-24 Thread Claudio Jeker
On Thu, May 24, 2018 at 01:39:28PM +0200, Jeremie Courreges-Anglas wrote: > > > [...] > > > So here's an updated diff that uses a timer to purge the cache after > > 5 seconds: > > LGTM except for... > > > > > Index: usr.sbin/snmpd/mib.c > >

Re: Speed up snmpwalk

2018-05-24 Thread Jeremie Courreges-Anglas
[...] > So here's an updated diff that uses a timer to purge the cache after > 5 seconds: LGTM except for... > > Index: usr.sbin/snmpd/mib.c > === > RCS file: /cvs/src/usr.sbin/snmpd/mib.c,v > retrieving revision 1.86 > diff -u

Re: Unlock 16 network-related syscalls

2018-05-24 Thread Hrvoje Popovski
On 23.5.2018. 15:29, Theo Buehler wrote: > On Wed, May 23, 2018 at 02:39:20PM +0200, Martin Pieuchot wrote: >> On 23/05/18(Wed) 11:14, Hrvoje Popovski wrote: >>> On 22.5.2018. 17:03, Theo Buehler wrote: I applied the diff, made syscalls, then built and installed a new kernel. With that,

Change CMakeLists.txt in LibreSSL to use target_include_directores

2018-05-24 Thread Cameron Palmer
It is beneficial for projects that depend on LibreSSL libraries and are built with CMake to use target_link_libraries and automatically receive the PUBLIC or INTERFACE headers without needing to specify include_directories. This patch changes the project to use target_include_directories and

a fun story about update-plist tweaks

2018-05-24 Thread Marc Espie
One of my usual mantra is "untested software doesn't work". Applies to everything including my own code. Case study: new update-plist has interesting heuristics to figure out where to put variables in lists. Specifically, for each entry, it keeps track of the original line from the old plist

Remove BACKWARDS flag from get_shell_command in ed(1)

2018-05-24 Thread Martijn van Duren
Since we accept "!" as a full command to system(3), I decided to do even more trimming than when BACKWARDS is not defined. This way we trim even more LoC and have one less error case. Note that running "!!" without a prior command adds an extra empty line if suppress diagnostics is not active,