dragonfly.git
4 years agoi386 removal, part 50/x: Remove the i386 specific kgzldr.
Sascha Wildner [Fri, 22 Jan 2016 18:27:02 +0000 (19:27 +0100)]
i386 removal, part 50/x: Remove the i386 specific kgzldr.

It was only needed for kgzip(8)'ed kernels anyway. kgzip(8) was removed
in c425a6254f909db65a1ccbc31a09e09e371bf847. All of this was only needed
for loading kernels without the standard loader anyway.

Pointed-out-by: zrj
4 years agoi915kms.4: Add missing space.
Sascha Wildner [Fri, 22 Jan 2016 17:36:13 +0000 (18:36 +0100)]
i915kms.4: Add missing space.

4 years agousb4bsd: Cleanup pass1.
zrj [Fri, 22 Jan 2016 09:20:14 +0000 (11:20 +0200)]
usb4bsd: Cleanup pass1.

* Uniformly use #if 0 to deactivate code instead of C comments.

* Move MODULE macros after struct declarations.

4 years agousb4bsd: Cleanup pass0.
zrj [Fri, 22 Jan 2016 09:15:32 +0000 (11:15 +0200)]
usb4bsd: Cleanup pass0.

* Adjust indentation, whitespace and typos.

4 years agoFix SEE ALSO sorting in a number of manual pages.
Sascha Wildner [Thu, 21 Jan 2016 20:24:19 +0000 (21:24 +0100)]
Fix SEE ALSO sorting in a number of manual pages.

4 years agobus_dma.9: Adjust column width a bit in a list.
Sascha Wildner [Thu, 21 Jan 2016 10:36:25 +0000 (11:36 +0100)]
bus_dma.9: Adjust column width a bit in a list.

4 years ago<net/if.h>: Cleanup the namespace a bit.
Sascha Wildner [Thu, 21 Jan 2016 10:26:05 +0000 (11:26 +0100)]
<net/if.h>: Cleanup the namespace a bit.

* Put everything that is not covered by POSIX under #if __BSD_VISIBLE.
  Pretty much like FreeBSD did it already.

* Use standard types for stuff covered by POSIX.

4 years ago<net/if.h>: Whitespace adjustment (no functional change).
Sascha Wildner [Thu, 21 Jan 2016 10:21:49 +0000 (11:21 +0100)]
<net/if.h>: Whitespace adjustment (no functional change).

4 years agobus_dma.9: Document the BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9).
Imre Vadász [Wed, 20 Jan 2016 21:27:49 +0000 (22:27 +0100)]
bus_dma.9: Document the BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9).

Inspired-By: FreeBSD
4 years agoipfw3: forward args verification
Bill Yuan [Mon, 18 Jan 2016 21:57:02 +0000 (21:57 +0000)]
ipfw3: forward args verification

4 years agoi386 removal, part 49/x: Remove the i386 & a.out specific -v flag in ld(1).
Sascha Wildner [Tue, 19 Jan 2016 04:28:47 +0000 (05:28 +0100)]
i386 removal, part 49/x: Remove the i386 & a.out specific -v flag in ld(1).

It continues to be accepted without having an effect for compatibility
reasons.

4 years agopstat - Add -h option
Matthew Dillon [Tue, 19 Jan 2016 02:37:07 +0000 (18:37 -0800)]
pstat - Add -h option

* Add the -h option to ignore BLOCKSIZE and humanize the output.

4 years agoif_iwm: Fix up the rate control setup code.
Imre Vadász [Mon, 18 Jan 2016 20:15:28 +0000 (21:15 +0100)]
if_iwm: Fix up the rate control setup code.

- Initialise rates in the order we want to use them.
- The rate table was being initialised in low->high, but the link quality
  table was being initialised high->low. So, when we did a lookup, we
  would get the indexes wrong.

Taken-From: FreeBSD (SVN r294248)

4 years agodrm/linux: Implement pci_iomap()
François Tigeot [Sat, 16 Jan 2016 12:45:08 +0000 (13:45 +0100)]
drm/linux: Implement pci_iomap()

4 years agodrm/include: Add missing parentheses in a macro.
Sascha Wildner [Sat, 16 Jan 2016 12:11:38 +0000 (13:11 +0100)]
drm/include: Add missing parentheses in a macro.

4 years agotip(1): Minor cleanup
Sascha Wildner [Sat, 16 Jan 2016 11:48:20 +0000 (12:48 +0100)]
tip(1): Minor cleanup

4 years agotip(1): Remove some dead code that was never built.
Sascha Wildner [Sat, 16 Jan 2016 11:33:08 +0000 (12:33 +0100)]
tip(1): Remove some dead code that was never built.

4 years agodrm/linux: Add for_each_set_bit()
François Tigeot [Sat, 16 Jan 2016 09:10:59 +0000 (10:10 +0100)]
drm/linux: Add for_each_set_bit()

4 years agoig_hal/em/emx: Add I219 (Skylake) support
Sepherosa Ziehau [Thu, 14 Jan 2016 13:53:41 +0000 (21:53 +0800)]
ig_hal/em/emx: Add I219 (Skylake) support

Obtained-from: dillon@
Tested-by: me (82574, 82573, 82571), dillon@ (I219, I217)
4 years agokernel: Fix the kern.dumpdev sysctl.
Sascha Wildner [Fri, 15 Jan 2016 17:31:22 +0000 (18:31 +0100)]
kernel: Fix the kern.dumpdev sysctl.

The 'dumpdev' global wasn't properly set anymore since b24cd69c3515fb.

Some ports use this sysctl.

Reported-by: zrj
4 years agoi915kms.4: Document the new drm.i915.disable_aux_irq tunable.
Imre Vadász [Fri, 15 Jan 2016 16:36:04 +0000 (17:36 +0100)]
i915kms.4: Document the new drm.i915.disable_aux_irq tunable.

4 years agowlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.
Imre Vadász [Fri, 15 Jan 2016 15:25:56 +0000 (16:25 +0100)]
wlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.

Taken-From: FreeBSD (SVN r283555)

4 years agoUpdate the pciconf(8) database.
Sascha Wildner [Fri, 15 Jan 2016 15:36:36 +0000 (16:36 +0100)]
Update the pciconf(8) database.

January 10, 2016 snapshot from http://pciids.sourceforge.net/

4 years agowlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.
Imre Vadász [Fri, 15 Jan 2016 11:06:15 +0000 (12:06 +0100)]
wlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.

Taken-From: FreeBSD (SVN r283541)

4 years agodrm/i915: Add tunable for force-disabling usage of the AUX IRQ.
Imre Vadász [Thu, 14 Jan 2016 14:27:05 +0000 (15:27 +0100)]
drm/i915: Add tunable for force-disabling usage of the AUX IRQ.

Adds an optional workaround which can make DisplayPort AUX communication
more reliable.

When using the AUX IRQ for AUX port communication, i915(4) would
in some cases completely fail to display a picture on a notebook screen
connected via embedded DisplayPort.

4 years agodrm/i915: Sync with Linux 4.0
François Tigeot [Thu, 14 Jan 2016 19:58:31 +0000 (20:58 +0100)]
drm/i915: Sync with Linux 4.0

Use the generic drm_atomic_helper_plane_set_property function.

4 years ago<sys/wait.h>: Clean up a bit.
Sascha Wildner [Thu, 14 Jan 2016 19:25:22 +0000 (20:25 +0100)]
<sys/wait.h>: Clean up a bit.

* Remove the old BSD4.x union wait. As far as I can tell, all ports
  have been fixed for this.

* Use __BSD_VISIBLE instead of _POSIX_SOURCE.

* Fix wait3()'s visibility.

4 years ago<sys/wait.h>: Whitespace cleanup (no functional change).
Sascha Wildner [Thu, 14 Jan 2016 19:23:59 +0000 (20:23 +0100)]
<sys/wait.h>: Whitespace cleanup (no functional change).

4 years agokernel - Report AHCI rev programmatically (2)
Matthew Dillon [Thu, 14 Jan 2016 18:47:18 +0000 (10:47 -0800)]
kernel - Report AHCI rev programmatically (2)

* Cleanup, not going to store the string rev in sc so no need to allocate

Reported-by: swildner
4 years agossh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778
Matthew Dillon [Thu, 14 Jan 2016 17:06:23 +0000 (09:06 -0800)]
ssh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778

* Remove client-side 'roaming' feature as per openbsd patch.

* CVE-2016-0777 CVE-2016-0778.  A malicious server can trick the client
  into potentially leaking key material.

4 years agoshare/man/man9/Makefile: Fix indent.
Sascha Wildner [Thu, 14 Jan 2016 13:10:52 +0000 (14:10 +0100)]
share/man/man9/Makefile: Fix indent.

4 years agoAdd a small kstrdup.9 manpage.
Sascha Wildner [Thu, 14 Jan 2016 13:05:28 +0000 (14:05 +0100)]
Add a small kstrdup.9 manpage.

4 years agorbootd(8): Remove vax/m68k/tahoe code.
Sascha Wildner [Thu, 14 Jan 2016 12:14:05 +0000 (13:14 +0100)]
rbootd(8): Remove vax/m68k/tahoe code.

4 years agolibc/xdr: Remove VAX specific code.
Sascha Wildner [Thu, 14 Jan 2016 12:10:15 +0000 (13:10 +0100)]
libc/xdr: Remove VAX specific code.

4 years agocrunchgen - Fix Makefile dependency
Matthew Dillon [Thu, 14 Jan 2016 05:43:54 +0000 (21:43 -0800)]
crunchgen - Fix Makefile dependency

* This should fix a parallel make dependency whos absence allowed
  the .lo target to be built before all the objects finished compiling.

4 years agokernel - Report AHCI rev programmatically
Matthew Dillon [Thu, 14 Jan 2016 03:10:40 +0000 (19:10 -0800)]
kernel - Report AHCI rev programmatically

* Remove the switch() and generate the AHCI rev from the register contents.

* Fixes reporting of some AHCI chipsets as an unknown version of AHCI
  (Skylake reports AHCI 1.3.1, our switch only had 1.3.0).

4 years agokernel - Fix degenerate condition in dfly_setrunqueue_locked()
Matthew Dillon [Wed, 13 Jan 2016 06:19:25 +0000 (22:19 -0800)]
kernel - Fix degenerate condition in dfly_setrunqueue_locked()

* dfly_setrunqueue_locked() was unconditionally adding the lp to the end
  of the round-robin queue for the specified priority due to a degenerate
  '... || !TAILQ_EMPTY()' test.

  Remove the degenerate test, allowing a thread to be entered onto the
  head of the queue if its rrcount is reasonable.  Theoretically this should
  allow interactivity at the same queue priority even in a heavily-batched
  environment.

* Do not reset rrcount when adding to the head of the queue even if
  the queue is otherwise empty.  This allows the round-robin state to be
  retained across short delays (for example, nanosleeps) which are not as
  interactive as the system might otherwise believe, resulting in a more fair
  apportionment of cpu between batchy threads that use different delays but
  wind up at the same priority.

* Also adjust dfly_resetpriority() to reset lwp_rrcount to 0 when moving
  a thread to a higher priority queue.

* These changes should probably be re-tested against the postgres test
  suite to determine if any regressions were introduced.  It could very
  well be that the original action of always adding to the end of the queue
  might actually be the best action to take.

Reported-by: Adrian Drzewiecki <z@drze.net>
4 years agosliplogin(8): Fix a mistake i made in 0fe90ae88cbf.
Sascha Wildner [Wed, 13 Jan 2016 04:25:20 +0000 (05:25 +0100)]
sliplogin(8): Fix a mistake i made in 0fe90ae88cbf.

4 years agoSync sed(1) with FreeBSD (various fixes).
Sascha Wildner [Wed, 13 Jan 2016 04:10:04 +0000 (05:10 +0100)]
Sync sed(1) with FreeBSD (various fixes).

4 years agotr(1): Sync with FreeBSD.
Sascha Wildner [Wed, 13 Jan 2016 01:39:46 +0000 (02:39 +0100)]
tr(1): Sync with FreeBSD.

* Multibyte character support.

* Better POSIX conformance.

* Some cleanup and improvements.

4 years agodrm: Improve linux dma mapping functions
François Tigeot [Tue, 12 Jan 2016 19:35:41 +0000 (20:35 +0100)]
drm: Improve linux dma mapping functions

Partially-obtained-from: FreeBSD.

4 years agodrm: Add linux/bitmap.h
François Tigeot [Tue, 12 Jan 2016 18:11:32 +0000 (19:11 +0100)]
drm: Add linux/bitmap.h

4 years agobasename.1: Small update from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 18:09:12 +0000 (19:09 +0100)]
basename.1: Small update from FreeBSD.

4 years agojoin(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 17:37:26 +0000 (18:37 +0100)]
join(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agocut(1): Small sync with FreeBSD (is_delim() arg type and indent).
Sascha Wildner [Tue, 12 Jan 2016 17:13:10 +0000 (18:13 +0100)]
cut(1): Small sync with FreeBSD (is_delim() arg type and indent).

4 years agofold(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 17:02:54 +0000 (18:02 +0100)]
fold(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agofmt(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:58:18 +0000 (06:58 +0100)]
fmt(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agoRemove two casts of NULL.
Sascha Wildner [Tue, 12 Jan 2016 05:40:28 +0000 (06:40 +0100)]
Remove two casts of NULL.

4 years agocolumn(1): Small fix from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:31:51 +0000 (06:31 +0100)]
column(1): Small fix from FreeBSD.

4 years agolook(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:03:05 +0000 (06:03 +0100)]
look(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup and improvements.

4 years agoexpand(1)/unexpand(1): Sync with FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 04:33:09 +0000 (05:33 +0100)]
expand(1)/unexpand(1): Sync with FreeBSD.

* Multibyte character support.

* Some cleanup.

4 years agodrm: Add asm/cpufeature.h
François Tigeot [Mon, 11 Jan 2016 21:23:31 +0000 (22:23 +0100)]
drm: Add asm/cpufeature.h

4 years agokernel/linux: Add hweight8()
François Tigeot [Mon, 11 Jan 2016 21:09:13 +0000 (22:09 +0100)]
kernel/linux: Add hweight8()

4 years agoprintf(1): Sync with FreeBSD.
Sascha Wildner [Mon, 11 Jan 2016 18:25:41 +0000 (19:25 +0100)]
printf(1): Sync with FreeBSD.

* Better multibyte character support.

* Some improvements for better POSIX conformance.

* Position handling (%1$, %2$ etc.).

* Use variable length array instead of alloca().

4 years agolibc/gen: Cleanup Makefile.inc a bit.
Sascha Wildner [Sun, 10 Jan 2016 23:21:35 +0000 (00:21 +0100)]
libc/gen: Cleanup Makefile.inc a bit.

4 years agomakecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.
Sascha Wildner [Sun, 10 Jan 2016 23:21:29 +0000 (00:21 +0100)]
makecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.

While here, start one sentence on a new line.

4 years agowc(1): Sync with FreeBSD.
Sascha Wildner [Sun, 10 Jan 2016 20:18:16 +0000 (21:18 +0100)]
wc(1): Sync with FreeBSD.

* Improved multibyte character support.

* New -L option to report the longest line.

4 years agokernel - Remove kernel debugging message related to user seg-faults
Matthew Dillon [Sun, 10 Jan 2016 19:34:29 +0000 (11:34 -0800)]
kernel - Remove kernel debugging message related to user seg-faults

* Remove kprintf("T_PAGEFLT: Warning %%rip == 0!\n");  This debugging
  output was put in place during the initial 64-bit port to help debug
  the VM system and is no longer needed.

* Fixes system ultra-slowness/lockup issues if a user program faults on
  %rip == 0 and tries to catch the signal and return, creating a continuous
  loop that saturates the console.

4 years agodrm/i915: Use dev->pdev to get PCI device revisions
François Tigeot [Sun, 10 Jan 2016 10:49:25 +0000 (11:49 +0100)]
drm/i915: Use dev->pdev to get PCI device revisions

Reducing differences with Linux.

4 years agodrm: Store PCI device information in a struct pci_dev
François Tigeot [Sun, 10 Jan 2016 10:40:42 +0000 (11:40 +0100)]
drm: Store PCI device information in a struct pci_dev

Reducing differences with Linux

4 years agodrm: Improve Linux compatibility of pci structures
François Tigeot [Sun, 10 Jan 2016 10:37:47 +0000 (11:37 +0100)]
drm: Improve Linux compatibility of pci structures

4 years agokernel/kate: Bad idea to put temporary values in the sensor value directly.
Sascha Wildner [Sun, 10 Jan 2016 09:00:46 +0000 (10:00 +0100)]
kernel/kate: Bad idea to put temporary values in the sensor value directly.

Pointed-out-by: Constantine Aleksandrovich Murenin
4 years agoncal(1): Sync with FreeBSD.
Sascha Wildner [Sun, 10 Jan 2016 08:08:23 +0000 (09:08 +0100)]
ncal(1): Sync with FreeBSD.

* Multibyte character support.

* -3 to show previous, this and next month.

* -A for months after this month.

* -B for months before this month.

* -h to disable highlighting.

* Some extensions to -m ('f' and 'p').

* Various other fixes.

Also, raise WARNS to 6.

Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
4 years agoee(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 Jan 2016 03:18:57 +0000 (04:18 +0100)]
ee(1): Raise WARNS to 2.

4 years agoee(1): Fix an uninitialized variable.
Sascha Wildner [Sun, 10 Jan 2016 03:18:30 +0000 (04:18 +0100)]
ee(1): Fix an uninitialized variable.

Since ee(1) was switched from mktemp() to mkstemp(), the file name is
no longer initialized. Initialize it to NULL at least. The message in
case of an error will still be confusing, but for now, live with it.

4 years agow(1): Use NELEM(), raise WARNS to 3.
Sascha Wildner [Sun, 10 Jan 2016 02:43:35 +0000 (03:43 +0100)]
w(1): Use NELEM(), raise WARNS to 3.

4 years agow(1): inet_addr() returns INADDR_NONE upon failure.
Sascha Wildner [Sun, 10 Jan 2016 02:41:35 +0000 (03:41 +0100)]
w(1): inet_addr() returns INADDR_NONE upon failure.

4 years agokernel/kate: CurTmp starts at -28C on Socket AM2 Revision G processors.
Sascha Wildner [Sun, 10 Jan 2016 02:16:48 +0000 (03:16 +0100)]
kernel/kate: CurTmp starts at -28C on Socket AM2 Revision G processors.

Such as on this 4850e of mine.

Taken-from: FreeBSD

4 years agodrm: Always enable MSI interrupts
François Tigeot [Sat, 9 Jan 2016 21:28:18 +0000 (22:28 +0100)]
drm: Always enable MSI interrupts

The Linux drm code doesn't contain any blacklist for hardware with
broken MSI support; there is no reason for MSI interrupts to not work
with DragonFly either.

4 years agovis(1): Fix some warnings and raise WARNS to 6.
Sascha Wildner [Sat, 9 Jan 2016 18:56:50 +0000 (19:56 +0100)]
vis(1): Fix some warnings and raise WARNS to 6.

4 years agortadvd(8)/rtadvctl(8): Raise WARNS to 6 and fix two warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:44:13 +0000 (19:44 +0100)]
rtadvd(8)/rtadvctl(8): Raise WARNS to 6 and fix two warnings.

4 years agomrouted(8): Raise WARNS to 2 and fix some warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:34:42 +0000 (19:34 +0100)]
mrouted(8): Raise WARNS to 2 and fix some warnings.

4 years agosliplogin(8): Fix a number of style(9) issues / warnings, raise WARNS to 3.
Sascha Wildner [Sat, 9 Jan 2016 18:00:22 +0000 (19:00 +0100)]
sliplogin(8): Fix a number of style(9) issues / warnings, raise WARNS to 3.

4 years agotzsetup(8): Raise WARNS to 6 and fix a warning.
Sascha Wildner [Sat, 9 Jan 2016 17:32:03 +0000 (18:32 +0100)]
tzsetup(8): Raise WARNS to 6 and fix a warning.

4 years agorpc.lockd(8): Clean up the Makefile a little.
Sascha Wildner [Sat, 9 Jan 2016 04:37:06 +0000 (05:37 +0100)]
rpc.lockd(8): Clean up the Makefile a little.

4 years agorpc.lockd(8): Remove an obsolete file from an older version of lockd.
Sascha Wildner [Sat, 9 Jan 2016 04:19:00 +0000 (05:19 +0100)]
rpc.lockd(8): Remove an obsolete file from an older version of lockd.

4 years agoi386 removal, part 48/x: Remove ancient bootdev parsing in sysctl(8).
Sascha Wildner [Sat, 9 Jan 2016 03:05:44 +0000 (04:05 +0100)]
i386 removal, part 48/x: Remove ancient bootdev parsing in sysctl(8).

While here, remove an i386 specific reference from isa.4's SEE ALSO.

4 years agoi386 removal, part 47/x: Remove the i386 specific spic(4) device.
Sascha Wildner [Sat, 9 Jan 2016 02:47:39 +0000 (03:47 +0100)]
i386 removal, part 47/x: Remove the i386 specific spic(4) device.

4 years agoSync ACPICA with Intel's version 20160108.
Sascha Wildner [Fri, 8 Jan 2016 18:17:15 +0000 (19:17 +0100)]
Sync ACPICA with Intel's version 20160108.

This includes the 20151218 upgrade which we had to revert again because
of a bug found by tkusumi. The only major change in 20160108 is a fix
for this bug.

20151218 changes:

* Execute "module-level code" as ACPI tables are loaded into the
  namespace during initialization and install the default operation
  region handlers for the SystemMemory, SystemIO and PCI_Config
  address spaces before any ACPI tables are loaded (in order to
  enable module-level code to access these address spaces). Also,
  several changes to the internal _REG support and to utilities
  in conjunction with these changes.

20160108 changes:

* Fixed a regression introduced in version 20151218 concerning the
  execution of so-called module-level ASL/AML code. Namespace objects
  created under a module-level If() construct were not properly/fully
  entered into the namespace and could cause an interpreter fault when
  accessed.

* Fixed a problem with the compilation of the GpioIo and GpioInt resource
  descriptors. The _PIN field name was incorrectly defined to be an array
  of 32-bit values, but the _PIN values are in fact 16 bits each. This
  would cause incorrect bit width warnings when using Word (16-bit) fields
  to access the descriptors.

Additionally, some minor fixes, features etc. were added.

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

Tested-by: tkusumi
4 years agoroute: various small fixes
Zach Crownover [Thu, 7 Jan 2016 22:04:34 +0000 (22:04 +0000)]
route: various small fixes

* Added w and d flag to man page list of options

* Updated output from route command to list w and c in list of options
  as well

* Added documentation in man page for d option

* Removed trailing whitespace on a few lines.

4 years agoif_run: Sync with FreeBSD up to r270643 (from August 26 2014)
Imre Vadász [Thu, 7 Jan 2016 21:35:54 +0000 (22:35 +0100)]
if_run: Sync with FreeBSD up to r270643 (from August 26 2014)

Taken-From: FreeBSD (SVN r263985 r267089 r270192 r270643)

4 years agokernel/tmpfs: Use the more common 'ap' name for vops arguments.
Sascha Wildner [Thu, 7 Jan 2016 18:30:36 +0000 (19:30 +0100)]
kernel/tmpfs: Use the more common 'ap' name for vops arguments.

4 years agohammer - remove debugging kprintf
Matthew Dillon [Thu, 7 Jan 2016 18:13:07 +0000 (10:13 -0800)]
hammer - remove debugging kprintf

* Remove a debugging kprintf related to mkdir() errors which can trigger
  under nominal conditions (attempting to create a subdirectory in a parent
  which had already been rmdir'd)

4 years agohangman(6): Update to augmented version from OpenBSD.
zrj [Wed, 6 Jan 2016 10:10:23 +0000 (12:10 +0200)]
hangman(6): Update to augmented version from OpenBSD.

This implements usage of extra wordlists:
  * kernel symbols, from current booted kernel image;
  * non-default, from Elf and conformant dictonaries.

While there, free hangman(6) from the shackles of dungeon master,
since hangman now could be used as a developer tool.

4 years agoif_run: Uncomment code from FreeBSD to defer run_wme_update_cb
Imre Vadasz [Wed, 6 Jan 2016 12:53:25 +0000 (13:53 +0100)]
if_run: Uncomment code from FreeBSD to defer run_wme_update_cb

- This should avoid a frequently occuring deadlock in if_run.
- This workaround is already removed in current FreeBSD code, where the
  net80211 layer now takes care of deferred calling of the wme_update
  callback into the driver.

4 years agokernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.
Sascha Wildner [Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)]
kernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.

4 years agogetconf(1): Sort variable/name pairs.
Sascha Wildner [Wed, 6 Jan 2016 10:30:42 +0000 (11:30 +0100)]
getconf(1): Sort variable/name pairs.

4 years agohals_end: Fix manlint.
zrj [Wed, 6 Jan 2016 07:40:33 +0000 (09:40 +0200)]
hals_end: Fix manlint.

While there, update .Dd in colorbars(6) too.

4 years agoif_iwm: Fix IEEE80211_ADDR_COPY() usage.
Imre Vadász [Sun, 3 Jan 2016 16:10:52 +0000 (17:10 +0100)]
if_iwm: Fix IEEE80211_ADDR_COPY() usage.

Taken-From: FreeBSD

4 years agoif_iwm: Always stop LED blinking when scanning is finished
Imre Vadász [Sun, 3 Jan 2016 15:57:02 +0000 (16:57 +0100)]
if_iwm: Always stop LED blinking when scanning is finished

When state is still IEEE80211_S_RUN after scanning is done, enable the LED.
This matches the behaviour of if_iwn(4).

4 years agopiano(6): Retire. R.I.P.
zrj [Mon, 4 Jan 2016 17:15:46 +0000 (19:15 +0200)]
piano(6): Retire. R.I.P.

Support for /dev/speaker was removed back in 2005.

4 years agogames: Import colorbars and hals_end from NetBSD.
zrj [Mon, 4 Jan 2016 16:57:42 +0000 (18:57 +0200)]
games: Import colorbars and hals_end from NetBSD.

This satisfies two comes in, one comes out rule.

4 years agomdoc.local: Add NetBSD 7.0 for future reference.
zrj [Mon, 4 Jan 2016 16:38:57 +0000 (18:38 +0200)]
mdoc.local: Add NetBSD 7.0 for future reference.

4 years agotest: ,,,^..^,,,~~~~
zrj [Tue, 5 Jan 2016 13:14:37 +0000 (15:14 +0200)]
test: ,,,^..^,,,~~~~

4 years ago<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.
Sascha Wildner [Tue, 5 Jan 2016 05:14:07 +0000 (06:14 +0100)]
<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.

Also adjust sysconf(3) and getconf(1) accordingly.

4 years ago<unistd.h>: Comment some POSIX options.
Sascha Wildner [Tue, 5 Jan 2016 03:35:51 +0000 (04:35 +0100)]
<unistd.h>: Comment some POSIX options.

4 years agore: Only probe fixed PHY location
Sepherosa Ziehau [Mon, 4 Jan 2016 14:38:12 +0000 (22:38 +0800)]
re: Only probe fixed PHY location

Obtained-from: FreeBSD

4 years agore: Reduce GMII PHY read/write timeout
Sepherosa Ziehau [Mon, 4 Jan 2016 14:15:58 +0000 (22:15 +0800)]
re: Reduce GMII PHY read/write timeout

Obtained-from: FreeBSD

4 years agore: Change CFG1 and CFG5 after flip EECMD
Sepherosa Ziehau [Mon, 4 Jan 2016 13:23:40 +0000 (21:23 +0800)]
re: Change CFG1 and CFG5 after flip EECMD

Obtained-from: FreeBSD

4 years agosbin/hammer: Fix hammer(8) manpage
Tomohiro Kusumi [Sun, 3 Jan 2016 13:40:43 +0000 (22:40 +0900)]
sbin/hammer: Fix hammer(8) manpage

Add a sentence that explains PFS via PFS is not allowed.