UPDATE: net/wifind 0.5 -> 0.7

2017-09-15 Thread Ray Lai
Hi ports, Attached is a diff to update wifind to 0.7. This release merges changes from and fixes bugs reported by qbit, iandarwin, and kpcyrd: - support percentage-based signal strength reporting (iwm) - support for interface descriptions - don't die if we don't have an existing hostname.if - don

Re: Improve the accuracy of the TSC frequency calibration - Updated Patch

2017-09-15 Thread Jonathan Gray
On Thu, Sep 14, 2017 at 03:41:25PM +0200, Reyk Floeter wrote: > > On Fri, Aug 25, 2017 at 12:43:44PM +0200, Mike Belopuhov wrote: > > On Fri, Aug 25, 2017 at 00:40 -0700, Mike Larkin wrote: > > > On Thu, Aug 24, 2017 at 12:39:33PM +0800, Adam Steen wrote: > > > > On Thu, Aug 24, 2017 at 2:35 AM, M

Mention start, stop, restart, reload, and check in rcctl.8

2017-09-15 Thread George Brown
Arguably these options are fairly obvious but I was prompted by the fact that "check" is not mentioned in the man page and this differs from the nomenclature of "status" often used in other systems. This is the first time I've sent a diff so I've gone for minimal change only mentioning these in th

Re: Mention start, stop, restart, reload, and check in rcctl.8

2017-09-15 Thread Antoine Jacoutot
On Fri, Sep 15, 2017 at 10:16:22AM +0100, George Brown wrote: > Arguably these options are fairly obvious but I was prompted by the fact > that "check" is not mentioned in the man page and this differs from the > nomenclature of "status" often used in other systems. > > This is the first time I've

Re: sysctl_int(), sysctl_struct() & MP work

2017-09-15 Thread Alexander Bluhm
On Wed, Sep 13, 2017 at 10:33:01AM +0200, Martin Pieuchot wrote: > diff -u -p -r1.512 if.c > --- net/if.c 22 Aug 2017 15:02:34 - 1.512 > +++ net/if.c 13 Sep 2017 08:28:27 - > @@ -2666,10 +2666,14 @@ ifpromisc(struct ifnet *ifp, int pswitch > return ((*ifp->if_ioctl)(ifp, SIOCSI

ptrace, copyin, uvm fault errno

2017-09-15 Thread Alexander Bluhm
On Sat, Sep 09, 2017 at 04:31:47PM -0700, Philip Guenther wrote: > Currently on amd64, the copyin(9) family of calls will pass through the > return value of uvm_fault() and thus return not just EFAULT but possibly > EACCES, ENOMEM, and EIO. Since the return value of those functions is > usually

Re: ptrace, copyin, uvm fault errno

2017-09-15 Thread Theo de Raadt
> On Sat, Sep 09, 2017 at 04:31:47PM -0700, Philip Guenther wrote: > > Currently on amd64, the copyin(9) family of calls will pass through the > > return value of uvm_fault() and thus return not just EFAULT but possibly > > EACCES, ENOMEM, and EIO. Since the return value of those functions is >

Re: ptrace, copyin, uvm fault errno

2017-09-15 Thread Philip Guenther
On Fri, Sep 15, 2017 at 10:45 AM, Theo de Raadt wrote: > > On Sat, Sep 09, 2017 at 04:31:47PM -0700, Philip Guenther wrote: > > > Currently on amd64, the copyin(9) family of calls will pass through the > > > return value of uvm_fault() and thus return not just EFAULT but > possibly > > > EACCES,

Re: elf.h

2017-09-15 Thread Karel Gardas
Hi, below is last version of my attempt to migrate elf_abi.h to elf.h. This version solves devel/libdwarf and devel/valgrind failures reported on ports@ by Christian Weisgerber Thanks, Karel ? .cvsignore Index: distrib/sets/lists/comp/mi ==

Re: ptrace, copyin, uvm fault errno

2017-09-15 Thread Alexander Bluhm
Fine, then let's change it to EFAULT. OK bluhm@

Re: magic.5: Add missing types

2017-09-15 Thread Klemens Nanni
On Tue, Jul 25, 2017 at 08:54:15PM +, Klemens Nanni wrote: > On Tue, Jul 25, 2017 at 09:43:48PM +0100, Stuart Henderson wrote: > > On 2017/07/25 20:57, Klemens Nanni wrote: > > > I didn't touch the manual's first sentence mentioning file(1)'s version > > > since nicm@ reimplemented file(1) with

syslogd close at EAGAIN

2017-09-15 Thread Alexander Bluhm
Hi, syslogd tries to ignore EAGAIN for tty. Unfortunately it closes the file descriptor before checking the errno. So f_file contains a bad file descriptor that may be reused at the next open. I think f_file should not be closed if the errno is EAGAIN. If I move the close down, f_file is overw