[patch] Close file descriptor before exiting ldd

2017-09-26 Thread Nan Xiao
Hi tech@, FYI, thanks! Best Regards Nan Xiao Index: ldd.c === RCS file: /cvs/src/libexec/ld.so/ldd/ldd.c,v retrieving revision 1.21 diff -u -p -r1.21 ldd.c --- ldd.c 2 Jul 2017 19:06:12 - 1.21 +++ ldd.c 27 Sep

Re: New: netctl(8) - cli network-location manager

2017-09-26 Thread Aaron Poffenberger
I should add, I thought about adding commands like rcctl's `get|getdef|set` commands to do full interface configuration (`set nwid wapname` or `set bssid `) but wanted to get feedback on the current approach before going to far down the rabbit hole. --Aaron * Aaron Poffenberger

ASCII Drawings in Manual Pages ?

2017-09-26 Thread Tom Smyth
Hello Lads, Ladies what is the consensus about ascii drawings for Manual pages ? eg for point to point adddressing could we include inet 10.3.4.5 0x 10.1.2.3 + | +-+ |

New: netctl(8) - cli network-location manager

2017-09-26 Thread Aaron Poffenberger
Attached is a cli utility to manage network locations. It's modeled after rcctl(8). It doesn't attempt to replace netstart(8) or ifconfig(8). It works with them by storing location information in a directory and symlinking the hostname.if files to the hostname.if for the selected location. At

Re: int32_t float word of M_PI_4

2017-09-26 Thread Mark Kettenis
Jan Stary schreef op 2017-09-27 00:45: The int32_t float word of M_PI_4 is 0x3f490fdb, not 0x3f490fd8. What bug are you trying to fix? On Sep 26 11:57:29, i...@darwinsys.com wrote: On 2017-09-26 11:41 AM, Jan Stary wrote: >double 0.785398, high word 0x3fe921fb >float 0.785398,

int32_t float word of M_PI_4

2017-09-26 Thread Jan Stary
The int32_t float word of M_PI_4 is 0x3f490fdb, not 0x3f490fd8. Jan On Sep 26 11:57:29, i...@darwinsys.com wrote: > On 2017-09-26 11:41 AM, Jan Stary wrote: > >double 0.785398, high word 0x3fe921fb > >float 0.785398, float word 0x3f490fdb > > > > In case of double, it's

Re: preliminary kabylake support for inteldrm

2017-09-26 Thread Base Pr1me
Sorry, have to send this from gmail right now. WOO, suspend works! I'll keep testing this week. On Tue, Sep 26, 2017 at 4:07 PM, Robert Nagy wrote: > > Hi > > This is an updated diff for preliminary kabylake support for 6.2, > this needs extensive testing on all inteldrm

Xr cos(3) in sin(3)

2017-09-26 Thread Jan Stary
Every trigonometric function's manpage references every other, with a single exception: sin(3) does not Xr cos 3. Jan Index: sin.3 === RCS file: /cvs/src/lib/libm/man/sin.3,v retrieving revision 1.16 diff -u -p -r1.16 sin.3

Re: preliminary kabylake support for inteldrm

2017-09-26 Thread Robert Nagy
Hi This is an updated diff for preliminary kabylake support for 6.2, this needs extensive testing on all inteldrm variants. This diff is also in snapshots now so please, test, test test! Thank you Index: sys/dev/pci/drm/i915_pciids.h

Re: delaying the start of ifstated in /etc/rc

2017-09-26 Thread Rob Pierce
On Wed, Aug 30, 2017 at 08:30:52PM -0400, Rob Pierce wrote: > Depending on the use case for ifstated, dependencies may exist with other > daemons for performing interface checks and/or external tests. For example, > one might use ifstated to check a dhcpd enabled interface, or connectivity to > a

Re: sin() implementation

2017-09-26 Thread Jimmy Hess
On Tue, Sep 26, 2017 at 6:27 AM, Jan Stary wrote: > s_sin.c normalizes the argument to [-pi/4, +pi/4]. > This is how |x| <= pi/4 is tested: > GET_HIGH_WORD(ix,x); > ix &= 0x7fff; > if(ix <= 0x3fe921fb) return __kernel_sin(x,z,0); > > Why is it done

Re: armv7 / H3 i2c gates+resets + quirk for >=sun6i-a31-i2c compat.

2017-09-26 Thread Mike Larkin
On Tue, Sep 26, 2017 at 07:14:45PM +0200, Patrick Wildt wrote: > On Tue, Sep 26, 2017 at 09:48:41AM -0700, Mike Larkin wrote: > > On Tue, Sep 26, 2017 at 03:08:40PM +0300, Artturi Alm wrote: > > > Hi, > > > > > > diff does add the quirk needed on sun6i-a31, and above including sun8i-h3, > > > for

Re: armv7 / H3 i2c gates+resets + quirk for >=sun6i-a31-i2c compat.

2017-09-26 Thread Patrick Wildt
On Tue, Sep 26, 2017 at 09:48:41AM -0700, Mike Larkin wrote: > On Tue, Sep 26, 2017 at 03:08:40PM +0300, Artturi Alm wrote: > > Hi, > > > > diff does add the quirk needed on sun6i-a31, and above including sun8i-h3, > > for which it does also add related gates+resets. > > > > -Artturi > > > >

Re: sin() implementation

2017-09-26 Thread Otto Moerbeek
On Tue, Sep 26, 2017 at 01:27:52PM +0200, Jan Stary wrote: > I picked sin() as an example while trying to walk though the implementation > of (pieces of) libm. If someone has the time for it, I have some questions. > > I understand the implementation originaly stems from Sun's libm of 1993. >

Re: armv7 / H3 i2c gates+resets + quirk for >=sun6i-a31-i2c compat.

2017-09-26 Thread Mike Larkin
On Tue, Sep 26, 2017 at 03:08:40PM +0300, Artturi Alm wrote: > Hi, > > diff does add the quirk needed on sun6i-a31, and above including sun8i-h3, > for which it does also add related gates+resets. > > -Artturi > what bug does this fix? > > diff --git a/sys/dev/fdt/sxiccmu_clocks.h

Re: sin() implementation

2017-09-26 Thread Otto Moerbeek
On Tue, Sep 26, 2017 at 06:21:16PM +0200, Jan Stary wrote: > These (diff below) seem to be obvious typos in k_sin.c, > but only in comments. The comment that says > > if x < 2^-27 (hx<0x3e40), return x with inexact if x!=0 > > also puzzles me a bit: what the code does is > >

Re: sin() implementation

2017-09-26 Thread Jan Stary
On Sep 26 17:41:17, h...@stare.cz wrote: > > > s_sin.c normalizes the argument to [-pi/4, +pi/4]. > > > This is how |x| <= pi/4 is tested: > > > > > > GET_HIGH_WORD(ix,x); > > > ix &= 0x7fff; > > > if(ix <= 0x3fe921fb) return __kernel_sin(x,z,0); > > > > > > Why is it done like that?

Re: sin() implementation

2017-09-26 Thread Jan Stary
These (diff below) seem to be obvious typos in k_sin.c, but only in comments. The comment that says if x < 2^-27 (hx<0x3e40), return x with inexact if x!=0 also puzzles me a bit: what the code does is GET_HIGH_WORD(ix,x); ix &= 0x7fff; /*

Re: sin() implementation

2017-09-26 Thread Jan Stary
> > s_sin.c normalizes the argument to [-pi/4, +pi/4]. > > This is how |x| <= pi/4 is tested: > > > > GET_HIGH_WORD(ix,x); > > ix &= 0x7fff; > > if(ix <= 0x3fe921fb) return __kernel_sin(x,z,0); > > > > Why is it done like that? Is it faster or more portable > > or in any way

Re: sin() implementation

2017-09-26 Thread Jan Stary
On Sep 26 13:27:52, h...@stare.cz wrote: > I picked sin() as an example while trying to walk though the implementation > of (pieces of) libm. If someone has the time for it, I have some questions. > > I understand the implementation originaly stems from Sun's libm of 1993. > (As does that of

armv7 / H3 i2c gates+resets + quirk for >=sun6i-a31-i2c compat.

2017-09-26 Thread Artturi Alm
Hi, diff does add the quirk needed on sun6i-a31, and above including sun8i-h3, for which it does also add related gates+resets. -Artturi diff --git a/sys/dev/fdt/sxiccmu_clocks.h b/sys/dev/fdt/sxiccmu_clocks.h index 8b25ac42bd4..f82613e0125 100644 --- a/sys/dev/fdt/sxiccmu_clocks.h +++

sin() implementation

2017-09-26 Thread Jan Stary
I picked sin() as an example while trying to walk though the implementation of (pieces of) libm. If someone has the time for it, I have some questions. I understand the implementation originaly stems from Sun's libm of 1993. (As does that of FreeBSD and NetBSD.) It has been tweaked over the

Re: pfctl always prints warning when flushes ruleset

2017-09-26 Thread Alexandr Nedvedicky
Hello Mike, > > Please make sure a pfctl regress doesn't run into issues with this > diff. Otherwise OK mikeb. > the regress/src/sbin/pfctl did not spot any issues. will commit my change later today. thanks a lot regards sasha

Re: pfctl can do a better job when handling ioctl(2) errors

2017-09-26 Thread Alexandr Nedvedicky
Hello Mike, thanks for looking at it. > > Can you please reverse the check so that adding conditions is possible > and the default is in the 'else' branch, i.e. > > if (errno == EINVAL) > errx(1, "Anchor '%s' not found.\n", anchorname); > else >

Re: pfctl can do a better job when handling ioctl(2) errors

2017-09-26 Thread Mike Belopuhov
On Tue, Sep 26, 2017 at 11:37 +0200, Alexandr Nedvedicky wrote: > Hello, > > whenever administrator asks pfctl to modify/remove anchor, which does not > exist, the pfctl(8) prints warning 'pfctl: DIOCGETRULES: Invalid argument'. > Few users on Solaris wants pfctl(8) to be more helpful. > > The

Re: pfctl always prints warning when flushes ruleset

2017-09-26 Thread Mike Belopuhov
On Tue, Sep 26, 2017 at 11:15 +0200, Alexandr Nedvedicky wrote: > Hello, > > few users on Solaris don't like to read warning 'Anchor or Ruleset' does not > exist: > > # echo 'pass' |pfctl -a foo -f - > # pfctl -a foo -Fa > rules cleared > pfctl: Anchor or Ruleset does not exist.

pfctl can do a better job when handling ioctl(2) errors

2017-09-26 Thread Alexandr Nedvedicky
Hello, whenever administrator asks pfctl to modify/remove anchor, which does not exist, the pfctl(8) prints warning 'pfctl: DIOCGETRULES: Invalid argument'. Few users on Solaris wants pfctl(8) to be more helpful. The 'Invalid Argument' (EINVAL) is returned when particular anchor is not found.

pfctl always prints warning when flushes ruleset

2017-09-26 Thread Alexandr Nedvedicky
Hello, few users on Solaris don't like to read warning 'Anchor or Ruleset' does not exist: # echo 'pass' |pfctl -a foo -f - # pfctl -a foo -Fa rules cleared pfctl: Anchor or Ruleset does not exist. # the commands above did work well, the 'pfctl: Anchor ...' warning message