svn commit: r303579 - head/share/man/man4

2016-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:53:50 2016 New Revision: 303579 URL: https://svnweb.freebsd.org/changeset/base/303579 Log: [gpioled] update manpage. Submitted by: Dan Nelson Modified: head/share/man/man4/gpioled.4 Modified: head/share/man/man4/gpioled.4 =

svn commit: r303577 - head/sys/mips/atheros

2016-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:51:34 2016 New Revision: 303577 URL: https://svnweb.freebsd.org/changeset/base/303577 Log: [ar71xx_gpio] handle AR934x and QCA953x GPIO OE polarity. For reasons I won't comment on, the AR934x and QCA953x GPIO_OE register value is inverted - bit set == in

svn commit: r303578 - head/sys/mips/conf

2016-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:52:19 2016 New Revision: 303578 URL: https://svnweb.freebsd.org/changeset/base/303578 Log: [wdr4300] invert the GPIO LED polarity. This makes them behave correctly. Submitted by: Dan Nelson Modified: head/sys/mips/conf/TL-WDR4300.hints Modified:

Re: svn commit: r303342 - in head: include lib/libc/stdlib

2016-07-30 Thread Ed Schouten
Hi Antoine, 2016-07-31 8:37 GMT+02:00 Antoine Brodin : > This change broke a few games in the ports tree: > > http://beefy4.nyi.freebsd.org/data/head-amd64-default/p419204_s303419/logs/errors/falconseye-1.9.3_11.log > http://beefy4.nyi.freebsd.org/data/head-amd64-default/p419204_s303419/logs/error

Re: svn commit: r303575 - in head/tools/regression/zfs/zpool: add create

2016-07-30 Thread Ngie Cooper (yaneurabeya)
> On Jul 30, 2016, at 23:28, Garrett Cooper wrote: > > Author: ngie > Date: Sun Jul 31 06:28:40 2016 > New Revision: 303575 > URL: https://svnweb.freebsd.org/changeset/base/303575 > > Log: > Remove calls to `die` added for associated bugs > > Panics are no longer hit with ^/head@r303573 on a

Re: svn commit: r303342 - in head: include lib/libc/stdlib

2016-07-30 Thread Antoine Brodin
On Tue, Jul 26, 2016 at 11:41 PM, Ed Schouten wrote: > Hi Pedro, Benjamin, > > 2016-07-26 22:35 GMT+02:00 Pedro Giffuni : >> On 07/26/16 15:14, Benjamin Kaduk wrote: >>> Is a __FreeBSD_version bump planned? (Third-party software might want >>> to be warning-clean.) >> >> Third party software shou

svn commit: r303576 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-07-30 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:34:49 2016 New Revision: 303576 URL: https://svnweb.freebsd.org/changeset/base/303576 Log: Conditionalize code which defines sysctls per _KERNEL #ifdef guard This resolves several issues when compiling libzpool (userspace library), i.e. -Wimplicit-function

svn commit: r303575 - in head/tools/regression/zfs/zpool: add create

2016-07-30 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:28:40 2016 New Revision: 303575 URL: https://svnweb.freebsd.org/changeset/base/303575 Log: Remove calls to `die` added for associated bugs Panics are no longer hit with ^/head@r303573 on amd64 PR: 194586, 194587, 194589 Sponsored by: EMC / Isilo

svn commit: r303574 - head/sys/dev/gpio

2016-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 06:24:26 2016 New Revision: 303574 URL: https://svnweb.freebsd.org/changeset/base/303574 Log: [gpioled] add support for inverting the LED polarity. No, this isn't a star trek science joke - sometimes LEDs are wired up to be active low, so this is needed.

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

2016-07-30 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:03:27 2016 New Revision: 303573 URL: https://svnweb.freebsd.org/changeset/base/303573 Log: Cast result from third parameter to int instead of promoting it to size_t This resolves a -Wformat issue when the value is used as a format width precision specifier

svn commit: r303572 - head/usr.bin/sed

2016-07-30 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 05:31:09 2016 New Revision: 303572 URL: https://svnweb.freebsd.org/changeset/base/303572 Log: Fix regression with /i caused by r303047 '\n' was specifically added to -e arguments prior to r303047. Restore historical behavior which in turn fixes usr.sbin/etcup

svn commit: r303571 - head/usr.bin/indent

2016-07-30 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 04:58:06 2016 New Revision: 303571 URL: https://svnweb.freebsd.org/changeset/base/303571 Log: indent(1): Bail out if there's no more space on the parser stack. Also increase the stack size still keeping a conservative value of 256. This is based on a similar c

svn commit: r303570 - head/usr.bin/indent

2016-07-30 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 04:14:20 2016 New Revision: 303570 URL: https://svnweb.freebsd.org/changeset/base/303570 Log: indent(1): Consistently indent declarations. This fixes a very visible issue that may be hidden by some indent.pro settings as in the example from FreeBSD's /usr/shar

svn commit: r303569 - head/usr.bin/calendar/calendars/ru_RU.KOI8-R

2016-07-30 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 03:26:53 2016 New Revision: 303569 URL: https://svnweb.freebsd.org/changeset/base/303569 Log: Reflect CLDR timedef changes Modified: head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.common head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.holiday (co

svn commit: r303568 - head/usr.bin/calendar/calendars/ru_RU.UTF-8

2016-07-30 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 03:11:10 2016 New Revision: 303568 URL: https://svnweb.freebsd.org/changeset/base/303568 Log: Remove another vestige of scripted conversion Modified: head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.pagan Modified: head/usr.bin/calendar/calendars/ru_RU.UTF-8

svn commit: r303567 - head/sbin/resolvconf

2016-07-30 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 31 02:54:27 2016 New Revision: 303567 URL: https://svnweb.freebsd.org/changeset/base/303567 Log: resolvconf(8) now needs an additional @RESTARTCMD@ replacement when installing. After r303062, which brought openresolv 3.8.1, we need to replace an additional @REST

svn commit: r303566 - head/usr.bin/calendar/calendars/ru_RU.UTF-8

2016-07-30 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 02:43:45 2016 New Revision: 303566 URL: https://svnweb.freebsd.org/changeset/base/303566 Log: Remove vestige of scripted conversion Modified: head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.common Modified: head/usr.bin/calendar/calendars/ru_RU.UTF-8/calend

svn commit: r303565 - head/lib/libc/gen

2016-07-30 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 02:28:50 2016 New Revision: 303565 URL: https://svnweb.freebsd.org/changeset/base/303565 Log: In addition to prev. commit. Since potentially glob2() can return error without setting errno, restore errno before its call. Modified: head/lib/libc/gen/glob.c Modif

svn commit: r303564 - head/lib/libc/gen

2016-07-30 Thread Andrey A. Chernov
Author: ache Date: Sun Jul 31 01:14:06 2016 New Revision: 303564 URL: https://svnweb.freebsd.org/changeset/base/303564 Log: Both C99 and POSIX directly prohibits any standard function to set errno to 0. Breaking this rule in 2001 NetBSD hack was imported which attempts to workaround very lim

Re: svn commit: r303563 - head/sys/kern

2016-07-30 Thread Mateusz Guzik
On Sat, Jul 30, 2016 at 05:44:16PM -0700, Conrad Meyer wrote: > On Sat, Jul 30, 2016 at 3:23 PM, Mateusz Guzik wrote: > > Author: mjg > > Date: Sat Jul 30 22:23:31 2016 > > New Revision: 303563 > > URL: https://svnweb.freebsd.org/changeset/base/303563 > > > > Log: > > sx: increment spin_cnt befo

Re: svn commit: r303563 - head/sys/kern

2016-07-30 Thread Conrad Meyer
On Sat, Jul 30, 2016 at 3:23 PM, Mateusz Guzik wrote: > Author: mjg > Date: Sat Jul 30 22:23:31 2016 > New Revision: 303563 > URL: https://svnweb.freebsd.org/changeset/base/303563 > > Log: > sx: increment spin_cnt before cpu_spinwait in xlock Looks like it's after cpu_spinwait instead. > > T

Re: svn commit: r303560 - head/usr.sbin/uathload

2016-07-30 Thread Bruce Evans
On Sat, 30 Jul 2016, Bjoern A. Zeeb wrote: Log: Rename devname to udevname after including stdlib.h in r303445 as gcc trips over the devname(3) and reports 'shadows a global declaration'. You mean "as gcc actually works, so it detects and reports that devname in the program 'shadows a global

svn commit: r303563 - head/sys/kern

2016-07-30 Thread Mateusz Guzik
Author: mjg Date: Sat Jul 30 22:23:31 2016 New Revision: 303563 URL: https://svnweb.freebsd.org/changeset/base/303563 Log: sx: increment spin_cnt before cpu_spinwait in xlock The change is a no-op only done for consistency with the rest of the file. Modified: head/sys/kern/kern_sx.c Mod

svn commit: r303562 - head/sys/kern

2016-07-30 Thread Mateusz Guzik
Author: mjg Date: Sat Jul 30 22:21:48 2016 New Revision: 303562 URL: https://svnweb.freebsd.org/changeset/base/303562 Log: rwlock: s/READER/WRITER/ in wlock lockstat annotation Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c ===

Re: svn commit: r303560 - head/usr.sbin/uathload

2016-07-30 Thread Ed Schouten
2016-07-30 22:39 GMT+02:00 Bjoern A. Zeeb : > Rename devname to udevname after including stdlib.h in r303445 > as gcc trips over the devname(3) and reports 'shadows a global declaration'. Whoops! Sorry about that! -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717

svn commit: r303561 - head/sys/dev/ntb/ntb_hw

2016-07-30 Thread Alexander Motin
Author: mav Date: Sat Jul 30 21:06:59 2016 New Revision: 303561 URL: https://svnweb.freebsd.org/changeset/base/303561 Log: Wrap previous MSIX workaround into #ifndef EARLY_AP_STARTUP. With EARLY_AP_STARTUP we can successfully negotiate MSIX earlier. Requested by: jhb@ Modified: head

svn commit: r303560 - head/usr.sbin/uathload

2016-07-30 Thread Bjoern A. Zeeb
Author: bz Date: Sat Jul 30 20:39:39 2016 New Revision: 303560 URL: https://svnweb.freebsd.org/changeset/base/303560 Log: Rename devname to udevname after including stdlib.h in r303445 as gcc trips over the devname(3) and reports 'shadows a global declaration'. This should unbreak gcc bas

svn commit: r303559 - head/sys/dev/pci

2016-07-30 Thread Bjoern A. Zeeb
Author: bz Date: Sat Jul 30 20:31:12 2016 New Revision: 303559 URL: https://svnweb.freebsd.org/changeset/base/303559 Log: Try to declare _hw_pci for all sysctl cases needed after r303497. MFC after:5 days X-MFC with: r303497 Modified: head/sys/dev/pci/pci_pci.c Modified: head/sy

Re: svn commit: r303530 - head/lib/libc/gen

2016-07-30 Thread Andrey Chernov
On 30.07.2016 11:52, Bruce Evans wrote: > On Sat, 30 Jul 2016, Andrey Chernov wrote: > >> On 30.07.2016 7:15, Bruce Evans wrote: >>> On Sat, 30 Jul 2016, Andrey A. Chernov wrote: >>> Log: Reset errno for readdirfunc() before contunue. >>> >>> In C99, library functions are not permitted

svn commit: r303558 - stable/11/release/tools

2016-07-30 Thread Colin Percival
Author: cperciva Date: Sat Jul 30 20:02:08 2016 New Revision: 303558 URL: https://svnweb.freebsd.org/changeset/base/303558 Log: MFC r302929: Now that potentially buggy versions of Xen are automatically detected (see r302635, MFCed as r302895), there is no need to force msix interrupt migrati

Re: svn commit: r303554 - head/sys/dev/ntb/ntb_hw

2016-07-30 Thread John Baldwin
On Saturday, July 30, 2016 03:56:36 PM Alexander Motin wrote: > Author: mav > Date: Sat Jul 30 15:56:36 2016 > New Revision: 303554 > URL: https://svnweb.freebsd.org/changeset/base/303554 > > Log: > Block MSIX negotiation until SMP started and IRQ reshuffled. Perhaps wrap this in #ifndef EARLY_

svn commit: r303557 - head/sys/dev/iwm

2016-07-30 Thread Imre Vadász
Author: ivadasz Date: Sat Jul 30 19:03:32 2016 New Revision: 303557 URL: https://svnweb.freebsd.org/changeset/base/303557 Log: [iwm] Fix iwm_poll_bit() usage in iwm_stop_device(), fixup r303418. * iwm_poll_bit() returns 1 on success and 0 on failure, whereas iwl_poll_bit() in Linux's iw

svn commit: r303556 - head/sys/boot/common

2016-07-30 Thread Allan Jude
Author: allanjude Date: Sat Jul 30 17:53:37 2016 New Revision: 303556 URL: https://svnweb.freebsd.org/changeset/base/303556 Log: Improve boot loader quote parsing parse() is the boot loader's interp_parse.c is too naive about quotes both single and double quotes were allowed to be mixe

svn commit: r303555 - head/sys/boot/common

2016-07-30 Thread Allan Jude
Author: allanjude Date: Sat Jul 30 17:45:56 2016 New Revision: 303555 URL: https://svnweb.freebsd.org/changeset/base/303555 Log: bcache should support reads shorter than sector size dosfs (fat file systems) can perform reads of partial sectors bcache should support such reads. Submit

svn commit: r303554 - head/sys/dev/ntb/ntb_hw

2016-07-30 Thread Alexander Motin
Author: mav Date: Sat Jul 30 15:56:36 2016 New Revision: 303554 URL: https://svnweb.freebsd.org/changeset/base/303554 Log: Block MSIX negotiation until SMP started and IRQ reshuffled. Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c ==

svn commit: r303553 - head/sys/dev/ntb/if_ntb

2016-07-30 Thread Alexander Motin
Author: mav Date: Sat Jul 30 15:51:16 2016 New Revision: 303553 URL: https://svnweb.freebsd.org/changeset/base/303553 Log: Make MAC address generation more random. 'ticks' approach does not work at boot time. Modified: head/sys/dev/ntb/if_ntb/if_ntb.c Modified: head/sys/dev/ntb/if_ntb/i

svn commit: r303552 - in stable/10: share/man/man9 sys/kern sys/sys

2016-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:47:04 2016 New Revision: 303552 URL: https://svnweb.freebsd.org/changeset/base/303552 Log: MFC r303211: Implement mtx_trylock_spin(9). Modified: stable/10/share/man/man9/Makefile stable/10/share/man/man9/mutex.9 stable/10/sys/kern/kern_mutex.c stable/10

svn commit: r303551 - head/sys/dev/ntb

2016-07-30 Thread Alexander Motin
Author: mav Date: Sat Jul 30 10:32:28 2016 New Revision: 303551 URL: https://svnweb.freebsd.org/changeset/base/303551 Log: Fix infinite loops introduced at r303429. Modified: head/sys/dev/ntb/ntb.c Modified: head/sys/dev/ntb/ntb.c =

svn commit: r303550 - stable/11/bin/ps

2016-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 09:46:29 2016 New Revision: 303550 URL: https://svnweb.freebsd.org/changeset/base/303550 Log: MFC r303213: Add missed required call to xo_finish() when only header is printed. Approved by: re (gjb) Modified: stable/11/bin/ps/ps.c Directory Properties: st

Re: svn commit: r303524 - in head: include lib/libc/stdio

2016-07-30 Thread Ed Schouten
Hey! 2016-07-30 3:00 GMT+02:00 Baptiste Daroussin : > Remove _WITH_GETLINE and _WITH_DPRINTF guards > > When adding getline(3) and dprintf(3) into libc, those guards were added > to prevent breaking too many ports. > > 7 years later the ports tree have been fixed, it is time to remove this

svn commit: r303549 - in stable/11: share/man/man9 sys/kern sys/sys

2016-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 09:28:13 2016 New Revision: 303549 URL: https://svnweb.freebsd.org/changeset/base/303549 Log: MFC r303211: Implement mtx_trylock_spin(9). Approved by: re (gjb) Modified: stable/11/share/man/man9/Makefile stable/11/share/man/man9/mutex.9 stable/11/sys/k

svn commit: r303548 - head/sys/kern

2016-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 09:25:57 2016 New Revision: 303548 URL: https://svnweb.freebsd.org/changeset/base/303548 Log: Cache getbintime(9) answer in timehands, similarly to getnanotime(9) and getmicrotime(9). Suggested and reviewed by:bde (previous version) Sponsored by: The Fre

Re: svn commit: r303530 - head/lib/libc/gen

2016-07-30 Thread Bruce Evans
On Sat, 30 Jul 2016, Andrey Chernov wrote: On 30.07.2016 7:15, Bruce Evans wrote: On Sat, 30 Jul 2016, Andrey A. Chernov wrote: Log: Reset errno for readdirfunc() before contunue. In C99, library functions are not permitted to set errno to 0. The glob() family shouldn't use a different (w

svn commit: r303547 - head/usr.bin/indent

2016-07-30 Thread Marcelo Araujo
Author: araujo Date: Sat Jul 30 07:28:15 2016 New Revision: 303547 URL: https://svnweb.freebsd.org/changeset/base/303547 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/indent/indent.c Modified: head/usr.bin/in

svn commit: r303546 - head/usr.bin/procstat

2016-07-30 Thread Marcelo Araujo
Author: araujo Date: Sat Jul 30 07:15:54 2016 New Revision: 303546 URL: https://svnweb.freebsd.org/changeset/base/303546 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/procstat/procstat_files.c Modified: head/

Re: svn commit: r303535 - in head/sys/cddl/contrib/opensolaris/uts: common/dtrace intel/dtrace

2016-07-30 Thread Mark Johnston
On Fri, Jul 29, 2016 at 11:18:25PM -0700, Ngie Cooper (yaneurabeya) wrote: > > > On Jul 29, 2016, at 20:11, Mark Johnston wrote: > > > > Author: markj > > Date: Sat Jul 30 03:11:53 2016 > > New Revision: 303535 > > URL: https://svnweb.freebsd.org/changeset/base/303535 > > > > Log: > > Include

svn commit: r303545 - head/usr.bin/netstat

2016-07-30 Thread Marcelo Araujo
Author: araujo Date: Sat Jul 30 07:06:23 2016 New Revision: 303545 URL: https://svnweb.freebsd.org/changeset/base/303545 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/netstat/pfkey.c Modified: head/usr.bin/ne

svn commit: r303544 - head/sys/cddl/contrib/opensolaris/uts/intel/dtrace

2016-07-30 Thread Mark Johnston
Author: markj Date: Sat Jul 30 07:05:32 2016 New Revision: 303544 URL: https://svnweb.freebsd.org/changeset/base/303544 Log: Restore an ifdef that should not have been removed in r303535. X-MFC-With: r303535 Modified: head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c M

svn commit: r303543 - head/usr.bin/locale

2016-07-30 Thread Marcelo Araujo
Author: araujo Date: Sat Jul 30 07:04:46 2016 New Revision: 303543 URL: https://svnweb.freebsd.org/changeset/base/303543 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/locale/locale.c Modified: head/usr.bin/lo

svn commit: r303542 - head/usr.bin/gzip

2016-07-30 Thread Marcelo Araujo
Author: araujo Date: Sat Jul 30 07:02:33 2016 New Revision: 303542 URL: https://svnweb.freebsd.org/changeset/base/303542 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/gzip/gzip.c Modified: head/usr.bin/gzip/g