svn commit: r318516 - head/cddl/contrib/opensolaris/lib/libzpool/common

2017-05-18 Thread Alexander Motin
Author: mav Date: Fri May 19 05:12:58 2017 New Revision: 318516 URL: https://svnweb.freebsd.org/changeset/base/318516 Log: Fix time handling in cv_timedwait_hires(). pthread_cond_timedwait() receives absolute time, not relative. Passing wrong time there caused two threads of zdb to spin

svn commit: r318515 - head/lib/libc/stdlib

2017-05-18 Thread Xin LI
Author: delphij Date: Fri May 19 04:59:12 2017 New Revision: 318515 URL: https://svnweb.freebsd.org/changeset/base/318515 Log: The current qsort(3) implementation ignores the sizes of partitions, and always perform recursion on the left partition, then use a tail call to handle the right

svn commit: r318514 - head/lib/libc/stdlib

2017-05-18 Thread Xin LI
Author: delphij Date: Fri May 19 04:44:14 2017 New Revision: 318514 URL: https://svnweb.freebsd.org/changeset/base/318514 Log: Use size_t. Inspired by: OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11 Modified: head/lib/libc/stdlib/qsort.c Modified: head/lib/libc/stdlib/qsort.c

svn commit: r318512 - head/sys/net

2017-05-18 Thread Sepherosa Ziehau
Author: sephe Date: Fri May 19 01:42:31 2017 New Revision: 318512 URL: https://svnweb.freebsd.org/changeset/base/318512 Log: net/vlan: Revert 305177 Miss read the parentheses. Reported by: oleg@ Reviewed by: hps@ MFC after:3 days Sponsored by: Microsoft Modified:

svn commit: r318511 - head/sys/netpfil/ipfw

2017-05-18 Thread Don Lewis
Author: truckman Date: Fri May 19 01:23:06 2017 New Revision: 318511 URL: https://svnweb.freebsd.org/changeset/base/318511 Log: The result of right shifting a negative signed value is implementation defined. On machines without arithmetic shift instructions, zero bits may be shifted in

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Sepherosa Ziehau
Oh, my fault. I will revert it. On Thu, May 18, 2017 at 11:11 PM, Hans Petter Selasky wrote: > On 05/18/17 17:00, Oleg Bulyzhin wrote: >> >> On Thu, May 18, 2017 at 04:25:01PM +0200, Hans Petter Selasky wrote: >>> >>> On 05/18/17 16:04, Oleg Bulyzhin wrote: On Thu,

svn commit: r318508 - head/cddl/usr.sbin/dtrace/tests/tools

2017-05-18 Thread Mark Johnston
Author: markj Date: Fri May 19 00:25:09 2017 New Revision: 318508 URL: https://svnweb.freebsd.org/changeset/base/318508 Log: Remove the EXFAIL annotation for tests which pass as of r309596. Reported by: bdrewery Sponsored by: Dell EMC Isilon Modified:

svn commit: r318502 - head/bin/sh

2017-05-18 Thread Jilles Tjoelker
Author: jilles Date: Thu May 18 22:10:04 2017 New Revision: 318502 URL: https://svnweb.freebsd.org/changeset/base/318502 Log: sh: Keep output buffer across builtins. Allocating and deallocating repeatedly the 1024-byte buffer for stdout from builtins costs CPU time for little or no

svn commit: r318501 - head/bin/sh

2017-05-18 Thread Jilles Tjoelker
Author: jilles Date: Thu May 18 21:44:14 2017 New Revision: 318501 URL: https://svnweb.freebsd.org/changeset/base/318501 Log: sh: Ensure memout.bufsize matches allocated buffer, if it exists. Modified: head/bin/sh/eval.c head/bin/sh/output.c Modified: head/bin/sh/eval.c

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Eric van Gyzen
On 05/18/2017 16:34, Ian Lepore wrote: > On Thu, 2017-05-18 at 23:29 +0200, Baptiste Daroussin wrote: >> On Thu, May 18, 2017 at 03:27:49PM -0600, Ian Lepore wrote: >>> >>> On Thu, 2017-05-18 at 23:24 +0200, Baptiste Daroussin wrote: On Thu, May 18, 2017 at 09:48:25AM -0700, John Baldwin

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Baptiste Daroussin
On Thu, May 18, 2017 at 03:34:38PM -0600, Ian Lepore wrote: > On Thu, 2017-05-18 at 23:29 +0200, Baptiste Daroussin wrote: > > On Thu, May 18, 2017 at 03:27:49PM -0600, Ian Lepore wrote: > > > > > > On Thu, 2017-05-18 at 23:24 +0200, Baptiste Daroussin wrote: > > > > > > > > On Thu, May 18, 2017

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Ian Lepore
On Thu, 2017-05-18 at 23:29 +0200, Baptiste Daroussin wrote: > On Thu, May 18, 2017 at 03:27:49PM -0600, Ian Lepore wrote: > > > > On Thu, 2017-05-18 at 23:24 +0200, Baptiste Daroussin wrote: > > > > > > On Thu, May 18, 2017 at 09:48:25AM -0700, John Baldwin wrote: > > > > > > > > > > > > On

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Baptiste Daroussin
On Thu, May 18, 2017 at 03:27:49PM -0600, Ian Lepore wrote: > On Thu, 2017-05-18 at 23:24 +0200, Baptiste Daroussin wrote: > > On Thu, May 18, 2017 at 09:48:25AM -0700, John Baldwin wrote: > > > > > > On Thursday, May 18, 2017 03:09:32 PM Baptiste Daroussin wrote: > > > > > > > > On Thu, May 18,

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Ian Lepore
On Thu, 2017-05-18 at 23:24 +0200, Baptiste Daroussin wrote: > On Thu, May 18, 2017 at 09:48:25AM -0700, John Baldwin wrote: > > > > On Thursday, May 18, 2017 03:09:32 PM Baptiste Daroussin wrote: > > > > > > On Thu, May 18, 2017 at 02:56:31AM -0700, Rodney W. Grimes wrote: > > > > > > > > > >

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Baptiste Daroussin
On Thu, May 18, 2017 at 09:48:25AM -0700, John Baldwin wrote: > On Thursday, May 18, 2017 03:09:32 PM Baptiste Daroussin wrote: > > On Thu, May 18, 2017 at 02:56:31AM -0700, Rodney W. Grimes wrote: > > > > Author: ngie > > > > Date: Thu May 18 06:25:39 2017 > > > > New Revision: 318441 > > > >

svn commit: r318481 - head/usr.bin/resizewin

2017-05-18 Thread Edward Tomasz Napierala
Author: trasz Date: Thu May 18 19:42:19 2017 New Revision: 318481 URL: https://svnweb.freebsd.org/changeset/base/318481 Log: Language fixes. Submitted by: wblock MFC after:2 weeks Modified: head/usr.bin/resizewin/resizewin.1 Modified: head/usr.bin/resizewin/resizewin.1

Re: svn commit: r318474 - head/usr.sbin/makefs

2017-05-18 Thread Ed Maste
On 18 May 2017 at 13:55, Ed Maste wrote: > Author: emaste > Date: Thu May 18 17:55:33 2017 > New Revision: 318474 > URL: https://svnweb.freebsd.org/changeset/base/318474 > > Log: > makefs: drop WARNS back to 2 > > GCC warns about additional signed comparision issues

svn commit: r318479 - head/sys/dev/drm2/ttm

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:37:19 2017 New Revision: 318479 URL: https://svnweb.freebsd.org/changeset/base/318479 Log: Don't bother enqueuing a page immediately before freeing it. No functional change intended. MFC after:1 week Modified:

svn commit: r318478 - in head/sys: compat/linuxkpi/common/src dev/drm2/ttm

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:35:14 2017 New Revision: 318478 URL: https://svnweb.freebsd.org/changeset/base/318478 Log: Fix a few uses of kern_yield() in the TTM and the LinuxKPI. kern_yield(0) effectively causes the calling thread to be rescheduled immediately since it resets the

svn commit: r318476 - head/sys/kern

2017-05-18 Thread Mark Johnston
Author: markj Date: Thu May 18 18:24:11 2017 New Revision: 318476 URL: https://svnweb.freebsd.org/changeset/base/318476 Log: Avoid open-coding PRI_UNCHANGED. MFC after:1 week Modified: head/sys/kern/kern_fail.c Modified: head/sys/kern/kern_fail.c

svn commit: r318474 - head/usr.sbin/makefs

2017-05-18 Thread Ed Maste
Author: emaste Date: Thu May 18 17:55:33 2017 New Revision: 318474 URL: https://svnweb.freebsd.org/changeset/base/318474 Log: makefs: drop WARNS back to 2 GCC warns about additional signed comparision issues compared to Clang. Drop WARNS for now until the underlying issue is fixed.

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Warner Losh
On Thu, May 18, 2017 at 3:56 AM, Rodney W. Grimes wrote: >> Author: ngie >> Date: Thu May 18 06:25:39 2017 >> New Revision: 318441 >> URL: https://svnweb.freebsd.org/changeset/base/318441 >> >> Log: >> Handle the cron.d entry for MK_AT in cron conditionally >> >>

svn commit: r318471 - in head/usr.bin/indent: . tests

2017-05-18 Thread Piotr Pawel Stefaniak
Author: pstef Date: Thu May 18 17:15:58 2017 New Revision: 318471 URL: https://svnweb.freebsd.org/changeset/base/318471 Log: indent(1): Support binary integer literals. This was done by Romain Tartière for PR123553. I initially thought that it would break code like this: #define b00101010

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread John Baldwin
On Thursday, May 18, 2017 03:09:32 PM Baptiste Daroussin wrote: > On Thu, May 18, 2017 at 02:56:31AM -0700, Rodney W. Grimes wrote: > > > Author: ngie > > > Date: Thu May 18 06:25:39 2017 > > > New Revision: 318441 > > > URL: https://svnweb.freebsd.org/changeset/base/318441 > > > > > > Log: > > >

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Ian Lepore
On Thu, 2017-05-18 at 02:56 -0700, Rodney W. Grimes wrote: > > > > Author: ngie > > Date: Thu May 18 06:25:39 2017 > > New Revision: 318441 > > URL: https://svnweb.freebsd.org/changeset/base/318441 > > > > Log: > >   Handle the cron.d entry for MK_AT in cron conditionally > >    > >   Install

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Rodney W. Grimes
> On Thu, May 18, 2017 at 02:56:31AM -0700, Rodney W. Grimes wrote: > > > Author: ngie > > > Date: Thu May 18 06:25:39 2017 > > > New Revision: 318441 > > > URL: https://svnweb.freebsd.org/changeset/base/318441 > > > > > > Log: > > > Handle the cron.d entry for MK_AT in cron conditionally > > >

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Hans Petter Selasky
On 05/18/17 17:00, Oleg Bulyzhin wrote: On Thu, May 18, 2017 at 04:25:01PM +0200, Hans Petter Selasky wrote: On 05/18/17 16:04, Oleg Bulyzhin wrote: On Thu, Sep 01, 2016 at 06:32:35AM +, Sepherosa Ziehau wrote: Author: sephe Date: Thu Sep 1 06:32:35 2016 New Revision: 305177 URL:

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Benjamin Kaduk
On Thu, May 18, 2017 at 10:00 AM, Oleg Bulyzhin wrote: > On Thu, May 18, 2017 at 04:25:01PM +0200, Hans Petter Selasky wrote: > > > > Can you explain a bit more what is wrong? > > > > > If you care about readability it should be: > > > pri) & 7) << 13) | (((cfi) & 1) << 12)

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Oleg Bulyzhin
On Thu, May 18, 2017 at 04:25:01PM +0200, Hans Petter Selasky wrote: > On 05/18/17 16:04, Oleg Bulyzhin wrote: > > On Thu, Sep 01, 2016 at 06:32:35AM +, Sepherosa Ziehau wrote: > >> Author: sephe > >> Date: Thu Sep 1 06:32:35 2016 > >> New Revision: 305177 > >> URL:

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Hans Petter Selasky
On 05/18/17 16:04, Oleg Bulyzhin wrote: On Thu, Sep 01, 2016 at 06:32:35AM +, Sepherosa Ziehau wrote: Author: sephe Date: Thu Sep 1 06:32:35 2016 New Revision: 305177 URL: https://svnweb.freebsd.org/changeset/base/305177 Log: net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.

svn commit: r318452 - in head/usr.sbin/makefs: . ffs

2017-05-18 Thread Emmanuel Vadot
Author: manu Date: Thu May 18 14:19:06 2017 New Revision: 318452 URL: https://svnweb.freebsd.org/changeset/base/318452 Log: makefs: Add soft-updates option Add the ffs option to enable soft-updates. The option is only processed is ufs2 has been selected. Reviewed by: emaste, bapt

Re: svn commit: r305177 - head/sys/net

2017-05-18 Thread Oleg Bulyzhin
On Thu, Sep 01, 2016 at 06:32:35AM +, Sepherosa Ziehau wrote: > Author: sephe > Date: Thu Sep 1 06:32:35 2016 > New Revision: 305177 > URL: https://svnweb.freebsd.org/changeset/base/305177 > > Log: > net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1. > > Reviewed by:

svn commit: r318451 - in head/usr.sbin/makefs: . ffs

2017-05-18 Thread Ed Maste
Author: emaste Date: Thu May 18 14:05:29 2017 New Revision: 318451 URL: https://svnweb.freebsd.org/changeset/base/318451 Log: makefs: clean up signedness warnings and bump WARNS to 3 Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r318450 - head/lib/libc/tests/gen

2017-05-18 Thread Konstantin Belousov
Author: kib Date: Thu May 18 13:49:53 2017 New Revision: 318450 URL: https://svnweb.freebsd.org/changeset/base/318450 Log: Add tests for some cases in r318298. The first test triggers the out of bounds read of the 'left' array. It only fails when realpath.c is compiled with

Re: svn commit: r318431 - head/libexec/rtld-elf

2017-05-18 Thread Jonathan Anderson
On 05/18/17 04:13, Baptiste Daroussin wrote: On Wed, May 17, 2017 at 10:51:28PM +, Jonathan Anderson wrote: +void print_usage(const char *argv0) Style(9) bug :) Duly noted. :) It looks like kib@ has already sorted this out in his timezone. Jon -- jonat...@freebsd.org

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Baptiste Daroussin
On Thu, May 18, 2017 at 02:56:31AM -0700, Rodney W. Grimes wrote: > > Author: ngie > > Date: Thu May 18 06:25:39 2017 > > New Revision: 318441 > > URL: https://svnweb.freebsd.org/changeset/base/318441 > > > > Log: > > Handle the cron.d entry for MK_AT in cron conditionally > > > > Install

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Nikolai Lifanov
On 05/18/2017 05:56, Rodney W. Grimes wrote: >> Author: ngie >> Date: Thu May 18 06:25:39 2017 >> New Revision: 318441 >> URL: https://svnweb.freebsd.org/changeset/base/318441 >> >> Log: >> Handle the cron.d entry for MK_AT in cron conditionally >> > > The thread on the newsyslog clearly

svn commit: r318448 - head/usr.bin/top

2017-05-18 Thread Allan Jude
Author: allanjude Date: Thu May 18 12:55:07 2017 New Revision: 318448 URL: https://svnweb.freebsd.org/changeset/base/318448 Log: Explain the new fields in top(1) related to ZFS compressed ARC Reviewed by: bcr X-MFC-with: 316314 Differential Revision:

Re: svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Rodney W. Grimes
> Author: ngie > Date: Thu May 18 06:25:39 2017 > New Revision: 318441 > URL: https://svnweb.freebsd.org/changeset/base/318441 > > Log: > Handle the cron.d entry for MK_AT in cron conditionally > > Install /etc/cron.d/at if MK_AT != no, always using it, which tries > to run a

Re: svn commit: r318400 - head/sbin/ipfw

2017-05-18 Thread Rodney W. Grimes
-- Start of PGP signed section. [ Charset UTF-8 unsupported, converting... ] > On 18.05.2017 03:49, Rodney W. Grimes wrote: > > [ Charset UTF-8 unsupported, converting... ] > >> Author: ae > >> Date: Wed May 17 10:56:22 2017 > >> New Revision: 318400 > >> URL:

svn commit: r318446 - head/libexec/rtld-elf

2017-05-18 Thread Konstantin Belousov
Author: kib Date: Thu May 18 09:34:26 2017 New Revision: 318446 URL: https://svnweb.freebsd.org/changeset/base/318446 Log: Update my copyright, note The FreeBSD Foundation involvement. While tweaking copyright block, switch to use __FBSDID for tag. Sponsored by: The FreeBSD Foundation

svn commit: r318445 - head/libexec/rtld-elf

2017-05-18 Thread Konstantin Belousov
Author: kib Date: Thu May 18 09:31:30 2017 New Revision: 318445 URL: https://svnweb.freebsd.org/changeset/base/318445 Log: Fix style [1], add static keyword before static function definition. Noted by: bapt [1] Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified:

svn commit: r318444 - head/sys/geom

2017-05-18 Thread Edward Tomasz Napierala
Author: trasz Date: Thu May 18 08:25:07 2017 New Revision: 318444 URL: https://svnweb.freebsd.org/changeset/base/318444 Log: Fix typo. MFC after:2 weeks Modified: head/sys/geom/geom_vfs.c Modified: head/sys/geom/geom_vfs.c

Re: svn commit: r318431 - head/libexec/rtld-elf

2017-05-18 Thread Baptiste Daroussin
On Wed, May 17, 2017 at 10:51:28PM +, Jonathan Anderson wrote: > Author: jonathan > Date: Wed May 17 22:51:28 2017 > New Revision: 318431 > URL: https://svnweb.freebsd.org/changeset/base/318431 > > Log: > Allow rtld direct-exec to take a file descriptor. > [snip] > +} > + > +/* > *

svn commit: r318443 - in head/etc: . cron.d

2017-05-18 Thread Ngie Cooper
Author: ngie Date: Thu May 18 06:33:55 2017 New Revision: 318443 URL: https://svnweb.freebsd.org/changeset/base/318443 Log: Conditionally handle the crontab entry for atrun(8) The default crontab prior to this commit assumes atrun(8) is always present, which isn't true if MK_AT == no.

svn commit: r318442 - in head/etc: . cron.d

2017-05-18 Thread Ngie Cooper
Author: ngie Date: Thu May 18 06:27:37 2017 New Revision: 318442 URL: https://svnweb.freebsd.org/changeset/base/318442 Log: Revert r318441: the commit message was incoherent Deleted: head/etc/cron.d/ Modified: head/etc/Makefile head/etc/crontab Modified: head/etc/Makefile

svn commit: r318441 - in head/etc: . cron.d

2017-05-18 Thread Ngie Cooper
Author: ngie Date: Thu May 18 06:25:39 2017 New Revision: 318441 URL: https://svnweb.freebsd.org/changeset/base/318441 Log: Handle the cron.d entry for MK_AT in cron conditionally Install /etc/cron.d/at if MK_AT != no, always using it, which tries to run a non-existent program via

svn commit: r318440 - head/sys/modules/dtrace/dtaudit

2017-05-18 Thread Ngie Cooper
Author: ngie Date: Thu May 18 06:15:42 2017 New Revision: 318440 URL: https://svnweb.freebsd.org/changeset/base/318440 Log: Normalize SYSDIR on SRCTOP instead of .CURDIR This is being done to simplify pathing for CFLAGS and source files. MFC after:2 weeks Sponsored by: Dell EMC

svn commit: r318439 - head/sys/modules/ipsec

2017-05-18 Thread Ngie Cooper
Author: ngie Date: Thu May 18 06:13:29 2017 New Revision: 318439 URL: https://svnweb.freebsd.org/changeset/base/318439 Log: Normalize .PATH on SRCTOP This will help Jenkins dedupe 9 warnings between the static build and the module build of ipsec(4). Missed in SRCTOP conversion in