]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r239500:
dteske [Tue, 28 Aug 2012 15:45:37 +0000 (15:45 +0000)]
MFC r239500:
Fix "unexpected operator" error when passed multi-word first-argument
containing whitespace. Also make other changes to support multi-word
arguments.

PR: bin/170759
Submitted by: dteske
Reviewed by: emaste (mentor)
Approved by: emaste (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@239782 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238877:
bz [Tue, 28 Aug 2012 12:56:23 +0000 (12:56 +0000)]
MFC r238877:

  Fix a comment that we do not have an SA yet but need to acquire one.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239513:
dim [Tue, 28 Aug 2012 06:49:33 +0000 (06:49 +0000)]
MFC r239513:

When WITH_CLANG_EXTRAS is enabled, avoid needlessly building the llvm
and clang extras in the cross-tools stage.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239509:
dim [Tue, 28 Aug 2012 06:47:21 +0000 (06:47 +0000)]
MFC r239509:

Support the WITH_SHARED_TOOLCHAIN setting that was introduced in r234782
for the clang executable.  Build it statically by default, like the gcc
executables, which should improve performance a little bit.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239588:
kib [Mon, 27 Aug 2012 20:25:26 +0000 (20:25 +0000)]
MFC r239588:
Provide some compat32 shims for sysctl vfs.conflist. It is required
for getvfsbyname(3) operation when called from 32bit process, and
getvfsbyname(3) is used by recent bsdtar import.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239374:
kib [Mon, 27 Aug 2012 20:23:03 +0000 (20:23 +0000)]
MFC r239374:
Deliver SIGSYS to the guilty thread, not to the process.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 237646,237656,238020:
jhb [Mon, 27 Aug 2012 19:55:19 +0000 (19:55 +0000)]
MFC 237646,237656,238020:
- Add a new line to top that provides a brief summary of the ZFS ARC memory
  usage on hosts using ZFS.  The new line displays the total amount of RAM
  used by the ARC along with the size of MFU, MRU, anonymous (in flight),
  headers, and other (miscellaneous) sub-categories.  The line is not
  displayed on systems that are not using ZFS.
- Clarify that the cached file data pages included in the "Wired" count
  in top are the BIO-level cached data (i.e. "Buf"), since the previous
  phrase was a bit ambiguous with the "Cache" count.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 233040,233198,233870,234183:
jhb [Mon, 27 Aug 2012 19:37:02 +0000 (19:37 +0000)]
MFC 233040,233198,233870,234183:
Add OFED and the associated options and drivers to x86 LINT builds:
- Fix build with INET6 disabled.
- Fix build of OFED bits with debugging options enabled.
- Fix build on i386.
- Mark 'sdp' as requiring 'inet'.
- Always include "opt_inet.h" and "opt_inet6.h" and modify the IB
  driver Makefiles to honor WITH/WITHOUT_INET/INET6/_SUPPORT options
  to determine what should be enabled during a module build.
- Fix the mlxen(4) driver and the core IB code to compile without
  if INET is disabled (including when both INET and INET6 are disabled).

git-svn-id: svn://svn.freebsd.org/base/stable/9@239748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239655:
jimharris [Mon, 27 Aug 2012 15:57:33 +0000 (15:57 +0000)]
MFC r239655:

Fix scsi_da's BIO_DELETE->SCSI_UNMAP translation to use correct local
variable when determining various sizes related to SCSI UNMAP block
descriptor lists.

Sponsored by: Intel

git-svn-id: svn://svn.freebsd.org/base/stable/9@239737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239545, r239665:
jimharris [Mon, 27 Aug 2012 15:47:46 +0000 (15:47 +0000)]
MFC r239545, r239665:

Fix/add support for SCSI UNMAP to ATA DSM translation.

This addresses kernel panic observed when sending SCSI UNMAP
commands to SATA disks attached to isci(4).

1) Flesh out callback routines to allocate/free buffers needed for
translating SCSI UNMAP data to ATA DSM data.
2) Add controller-level pool for storing buffers previously allocated
for UNMAP translation, to lessen chance of no buffer available
under memory pressure.
3) Ensure driver properly handles case where buffer pool is empty
and contigmalloc returns NULL.
4) Clear freeze bit in isci_remote_device_release_lun_queue() before
calling xpt_release_devq to ensure that any ccbs which immediately
start during the call to xpt_release_devq() see an accurate picture
of the frozen_lun_mask.  This code path is extensively exercised
when tagged read/write commands mix with non-tagged DSM commands.

Sponsored by: Intel

git-svn-id: svn://svn.freebsd.org/base/stable/9@239734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r238778 from head:
gavin [Mon, 27 Aug 2012 14:44:40 +0000 (14:44 +0000)]
Merge r238778 from head:

  The baud rate on CP1201/2/3 devices can be set in one of two ways:
   - The USLCOM_SET_BAUD_DIV command (0x01)
   - The USLCOM_SET_BAUD_RATE command (0x13)

  Devices based on the CP1204 will only accept the latter command, and ignore
  the former.  As the latter command works on all chips that this driver
  supports, switch to always using it.

  A slight confusion here is that the previously used command was incorrectly
  named USLCOM_BAUD_RATE - even though we no longer use it, rename it to
  USLCOM_SET_BAUD_DIV to closer match the name used in the datasheet.

  This change reflects a similar change made in the Linux driver, which was
  submitted by preston.fick at silabs.com, and has been tested on all of the
  uslcom(4) devices I have to hand.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r238396 from head:
gavin [Mon, 27 Aug 2012 13:04:45 +0000 (13:04 +0000)]
Merge r238396 from head:

  Update to reflect new core team.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r236101, r236102 from head:
gavin [Mon, 27 Aug 2012 12:58:54 +0000 (12:58 +0000)]
Merge r236101, r236102 from head:

  Update to reflect various src and doc commit bits taken into
  safekeeping.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge r238766, r238774 from head:
gavin [Mon, 27 Aug 2012 12:40:40 +0000 (12:40 +0000)]
Merge r238766, r238774 from head:
  Update the list of devices supported by uplcom.  Although this only adds
  one device (support for Motorola cables), this syncronises us with:

  OpenBSD src/sys/dev/usb/uplcom.c 1.56
  NetBSD  src/sys/dev/usb/uplcom.c 1.73
  Linux   kernel.org HEAD

git-svn-id: svn://svn.freebsd.org/base/stable/9@239725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239636:
pfg [Mon, 27 Aug 2012 02:56:58 +0000 (02:56 +0000)]
MFC r239636:

Add some basic definitions for a future htree implementation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239717 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239468:
pluknet [Sun, 26 Aug 2012 12:07:23 +0000 (12:07 +0000)]
MFC r239468:
 Avoid segfault in the 'smpphylist' subcommand.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239614:
dim [Sun, 26 Aug 2012 10:30:01 +0000 (10:30 +0000)]
MFC r239614:

Sprinkle a bit of style.Makefile(5) across various clang Makefiles.  No
functional changes.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239477
ache [Sun, 26 Aug 2012 05:20:32 +0000 (05:20 +0000)]
MFC r239477

According to resolvconf.conf(5) manpage and sources, there is no
'nameservers' option which used in examples in resolvconf.conf(5),
it spelled 'name_servers', so fix examples.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 233872:
jhb [Fri, 24 Aug 2012 20:41:31 +0000 (20:41 +0000)]
MFC 233872:
Add descriptions after the 'device' line for several NICs to match the
existing style.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239649:
bschmidt [Fri, 24 Aug 2012 14:11:54 +0000 (14:11 +0000)]
MFC r239649:
Document update of 802.11s IE identifiers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r238968): restore a piece of BSD history
des [Fri, 24 Aug 2012 13:11:30 +0000 (13:11 +0000)]
MFH (r238968): restore a piece of BSD history

git-svn-id: svn://svn.freebsd.org/base/stable/9@239648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r238102, r238605): automatically name jails.
des [Fri, 24 Aug 2012 11:44:47 +0000 (11:44 +0000)]
MFH (r238102, r238605): automatically name jails.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r236226): pass filename to libarchive rather than descriptor
des [Fri, 24 Aug 2012 10:09:34 +0000 (10:09 +0000)]
MFH (r236226): pass filename to libarchive rather than descriptor

git-svn-id: svn://svn.freebsd.org/base/stable/9@239646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH (r239327): warn when too much swap is configured, and avoid flooding
des [Fri, 24 Aug 2012 09:58:14 +0000 (09:58 +0000)]
MFH (r239327): warn when too much swap is configured, and avoid flooding
the console when running out of space for metadata.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r231187:
bschmidt [Thu, 23 Aug 2012 17:09:52 +0000 (17:09 +0000)]
MFC r231187:
Update the 802.11s IE numbers to represent the latest 802.11 amendment
standard.

This update breaks compatibility with older mesh setups but is necessary as
the previous IDs are used by another amendment leading to unexpected results
when trying to associate with an accesspoint using the affected IDs.

Discussed with: re
Tested by: honestqiao at gmail dot com

git-svn-id: svn://svn.freebsd.org/base/stable/9@239615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239464:
delphij [Thu, 23 Aug 2012 00:39:08 +0000 (00:39 +0000)]
MFC r239464:

As of r232844 we no longer need the maxpoll 9 workaround.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238178, 238624, 238810:
pfg [Wed, 22 Aug 2012 20:06:59 +0000 (20:06 +0000)]
MFC r238178, 238624, 238810:

Re-merge a couple of changes from NetBSD libedit.

bin/sh has been taught about el_gets setting the count to -1
on error, so now we can partially revert r238173 to reduce
differences with NetBSD's implementation.

Also fix some warnings to be more in sync with NetBSD.

Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/9@239589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239302:
kib [Wed, 22 Aug 2012 19:56:41 +0000 (19:56 +0000)]
MFC r239302:
Add a short man page describing how to run a.out binaries on the
current kernels.

MFC r239305 (by joel):
Minor mdoc fixes and language tweaks.

MFC r239306:
Small tweaks.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239301:
kib [Wed, 22 Aug 2012 19:53:33 +0000 (19:53 +0000)]
MFC r239301:
Add a sysctl kern.pid_max, which limits the maximum pid the system is
allowed to allocate, and corresponding tunable with the same
name. Note that existing processes with higher pids are left intact.

MFC r239328:
Fix grammar.

MFC r239329:
As a safety measure, disable lowering pid_max too much.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239582 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoRegen.
kib [Wed, 22 Aug 2012 19:45:18 +0000 (19:45 +0000)]
Regen.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239296:
kib [Wed, 22 Aug 2012 19:43:46 +0000 (19:43 +0000)]
MFC r239296:
Provide 32bit compat for old truncate(2) and ftruncate(2).

git-svn-id: svn://svn.freebsd.org/base/stable/9@239580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239252:
kib [Wed, 22 Aug 2012 19:41:36 +0000 (19:41 +0000)]
MFC r239252:
Add a hackish debugging facility to provide a bit of information about
reason for generated trap. The dump of basic signal information and 8
bytes of the faulting instruction are printed on the controlling
terminal of the process, if the machdep.uprintf_signal syscal is
enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239251:
kib [Wed, 22 Aug 2012 19:36:47 +0000 (19:36 +0000)]
MFC r239251:
Real hardware, as opposed to QEMU, does not allow to have a call gate
in long mode which transfers control to 32bit code segment. Unbreak
the lcall $7,$0 implementation on amd64 by putting the 64bit user code
segment' selector into call gate, and execute the 64bit trampoline
which converts the return frame into 32bit format and switches back to
32bit mode for executing int $0x80 trampoline.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239250:
kib [Wed, 22 Aug 2012 19:34:02 +0000 (19:34 +0000)]
MFC r239250:
For old mmap syscall, when executing on amd64 or ia64, enforce the
PROT_EXEC if prot is non-zero, process is 32bit and
kern.elf32.i386_read_exec syscal is enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoRegen.
kib [Wed, 22 Aug 2012 19:31:28 +0000 (19:31 +0000)]
Regen.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239248:
kib [Wed, 22 Aug 2012 19:29:22 +0000 (19:29 +0000)]
MFC r239248:
Implement the old mmap syscall for compat32, when COMPAT_43 option is
enabled. The syscall is used by FreeBSD 1.1.5.1 dynamic linker.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239247:
kib [Wed, 22 Aug 2012 19:27:17 +0000 (19:27 +0000)]
MFC r239247:
Adjust the r205536, by allowing a non-zero offset for anonymous
mappings for a.out binaries. Apparently, a.out ld.so from FreeBSD
1.1.5.1 can issue such requests.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238502:
mdf [Wed, 22 Aug 2012 17:13:00 +0000 (17:13 +0000)]
MFC r238502:

Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.

The code was not taking into account the size of the kernel_map, which
the kmem_map is allocated from, so it could produce a sub-map size too
large to fit.  The simplest solution is to ignore VM_KMEM_MAX entirely
and base the memguard map's size off the kernel_map's size, since this
is always relevant and always smaller.

Found by: Justin Hibbits

git-svn-id: svn://svn.freebsd.org/base/stable/9@239565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239125:
kib [Wed, 22 Aug 2012 05:36:10 +0000 (05:36 +0000)]
MFC r239125:
Do not apply errata 721 workaround when under hypervisor, since
typical hypervisor does not implement access to the required MSR,
causing #GP on boot.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238984:
kib [Wed, 22 Aug 2012 05:30:51 +0000 (05:30 +0000)]
MFC r238984:
fsck_ffs shall accept the configured journal size, and not refuse to
operate on it if journal size is greater then SUJ_MAX. The later
constant is only to select maximal journal size when user did not
specified size explicitely.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239038:
kib [Wed, 22 Aug 2012 05:26:54 +0000 (05:26 +0000)]
MFC r239038:
Remove verbose unused commented out debugging printf.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239135:
kib [Wed, 22 Aug 2012 05:18:38 +0000 (05:18 +0000)]
MFC r239135:
Always initialize pl_event.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239040:
kib [Wed, 22 Aug 2012 05:15:21 +0000 (05:15 +0000)]
MFC r239040:
Reduce code duplication and exposure of direct access to struct
vm_page oflags by providing helper function
vm_page_readahead_finish(), which handles completed reads for pages
with indexes other then the requested one, for VOP_GETPAGES().

MFC r239246:
Do not leave invalid pages in the object after the short read for a
network file systems (not only NFS proper). Short reads cause pages
other then the requested one, which were not filled by read response,
to stay invalid.

Change the vm_page_readahead_finish() interface to not take the error
code, but instead to make a decision to free or to (de)activate the
page only by its validity. As result, not requested invalid pages are
freed even if the read RPC indicated success.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239345:
kevlo [Wed, 22 Aug 2012 00:59:17 +0000 (00:59 +0000)]
MFC r239345:
Make 'junk' volatile so that compilers won't be tempted to optimize

Reviewed by: ache

git-svn-id: svn://svn.freebsd.org/base/stable/9@239549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238377:
pfg [Tue, 21 Aug 2012 21:46:01 +0000 (21:46 +0000)]
MFC r238377:

Merge libedit adjustment from NetBSD.

On recent versions of NetBSD's libedit, el_gets
now sets el_len to -1 on error so we can
distinguish between a NULL string and an error.

This fixes sh from exiting with newer versions
of libedit now allowing EINTR to return.

Obtained from: NetBSD
Reviewed by: jilles
MFC after: 3 weeks

git-svn-id: svn://svn.freebsd.org/base/stable/9@239542 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 237817:
pfg [Tue, 21 Aug 2012 21:21:29 +0000 (21:21 +0000)]
MFC     237817:

Bump dtrace_helper_actions_max from 32 to 128

Dave Pacheco from Joyent (and Dtrace.org) bumped the cap to 1024 but,
according to his blog, 128 is the recommended minimum.

For now bump it safely to 128 although we may have to bump it further
if there is demand in the future.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239540 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 238457:
pfg [Tue, 21 Aug 2012 21:11:35 +0000 (21:11 +0000)]
MFC 238457:

1458 D compiler fails to generate error on sizeof() an undefined struct

Reference:
https://www.illumos.org/issues/1458

Obtained from: Illumos

git-svn-id: svn://svn.freebsd.org/base/stable/9@239538 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238558:
pfg [Tue, 21 Aug 2012 21:06:07 +0000 (21:06 +0000)]
MFC r238558:

Dtrace: improve handling of library paths.

Merge changes from illumos

906 dtrace depends_on pragma should search all library paths, not just the
current one

949 dtrace should only include the first instance of a library found on
its library path

Obtained from: Illumos

git-svn-id: svn://svn.freebsd.org/base/stable/9@239536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238509:
pfg [Tue, 21 Aug 2012 21:00:33 +0000 (21:00 +0000)]
MFC r238509:

Use libc's strndup() instead of Dtrace's reimplementation.

Corresponds partially to OpenSolaris change:
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6901783 strndup would be nice.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239192:
dim [Tue, 21 Aug 2012 19:45:48 +0000 (19:45 +0000)]
MFC r239192:

  Change a few extern inline functions in libm to static inline, since
  they need to refer to static constants, which C99 does not allow for
  extern inline functions.

  While here, change a comment in e_rem_pio2f.c to mention the correct
  number of bits.

  Reviewed by: bde

MFC r239195:

  Add __always_inline to __ieee754_rem_pio2() and __ieee754_rem_pio2f(),
  since some older versions of gcc refuse to inline these otherwise.

  Requested by: bde

git-svn-id: svn://svn.freebsd.org/base/stable/9@239529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMove erroneous Subversion merge info for r239106 from sbin to
dim [Tue, 21 Aug 2012 19:32:55 +0000 (19:32 +0000)]
Move erroneous Subversion merge info for r239106 from sbin to
sbin/ggate.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239106:
dim [Tue, 21 Aug 2012 19:26:49 +0000 (19:26 +0000)]
MFC r239106:

Make sure the compiler knows g_gate_xvlog() and g_gate_xlog() do not
return.  This silences a warning from clang 3.2 about uninitialized use
of the variable 'mediasize' in sbin/ggate/shared/ggate.c.

Reviewed by: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/9@239525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239104:
dim [Tue, 21 Aug 2012 19:24:39 +0000 (19:24 +0000)]
MFC r239104:

In sys/dev/aic7xxx/aic79xx_osm.c, function ahd_attach(), initialize the
'path' variable to NULL, to avoid using it uninitialized in certain
cases.

Found by: clang 3.2

git-svn-id: svn://svn.freebsd.org/base/stable/9@239524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239102:
dim [Tue, 21 Aug 2012 19:21:46 +0000 (19:21 +0000)]
MFC r239102:

In sys/dev/cxgbe/firmware/t4fw_interface.h, change the enum
'fw_hdr_intfver' into an anonymous enum, which avoids a clang 3.2
warning about all the enum values being the same value.

Reviewed by: np

git-svn-id: svn://svn.freebsd.org/base/stable/9@239523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239101:
dim [Tue, 21 Aug 2012 19:19:29 +0000 (19:19 +0000)]
MFC r239101:

In cxgb(4), in function iwch_reregister_phys_mem(), initialize the
'npages' variable to zero, to avoid using it uninitialized in certain
cases.

Found by: clang 3.2
Reviewed by: np

git-svn-id: svn://svn.freebsd.org/base/stable/9@239522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239100:
dim [Tue, 21 Aug 2012 19:13:53 +0000 (19:13 +0000)]
MFC r239100:

Fix an instance in pam_krb5(8), where the variable 'user' could be used
uninitialized.

Found by: clang 3.2
Reviewed by: des

git-svn-id: svn://svn.freebsd.org/base/stable/9@239521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239099:
dim [Tue, 21 Aug 2012 19:11:12 +0000 (19:11 +0000)]
MFC r239099:

Fix two instances in pam_krb5(8), where the variable 'princ_name' could
be used uninitialized.

Found by: clang 3.2
Reviewed by: des

git-svn-id: svn://svn.freebsd.org/base/stable/9@239520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239074:
dim [Tue, 21 Aug 2012 19:03:04 +0000 (19:03 +0000)]
MFC r239074:

In usr.sbin/ctladm/ctladm.c, function cctl_error_inject(), initialize
the 'retval' variable to zero, to avoid returning garbage in several
cases.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239071:
dim [Tue, 21 Aug 2012 18:55:19 +0000 (18:55 +0000)]
MFC r239071:

In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'
variable to NULL, to avoid using it uninitialized in certain cases.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239059:
dim [Tue, 21 Aug 2012 18:45:55 +0000 (18:45 +0000)]
MFC r239059:

In sbin/camcontrol/camcontrol.c, function smpcmd(), initialize the
'error' variable to zero, to avoid returning garbage in several cases.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238673:
mav [Tue, 21 Aug 2012 11:40:31 +0000 (11:40 +0000)]
MFC r238673:
Use 16bit PIO instead of 32bit in case of misaligned buffer.
It fixes kernel panic during CD write with cdrecord on sparc64.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r239079
marius [Tue, 21 Aug 2012 09:10:14 +0000 (09:10 +0000)]
MFC: r239079

Merge r236494 from x86:

Isolate the global TTE list lock from data and other locks to prevent false
sharing within the cache.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238562: Removing bsd{ar,ranlib} found on my ancient installation.
avatar [Tue, 21 Aug 2012 06:09:43 +0000 (06:09 +0000)]
MFC r238562: Removing bsd{ar,ranlib} found on my ancient installation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239346:
lstewart [Tue, 21 Aug 2012 02:17:06 +0000 (02:17 +0000)]
MFC r239346:

The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCP
timestamp related stack variables to reference ms directly instead of ticks.
The h_ertt(4) Khelp module relies on TCP timestamp information in order to
calculate its enhanced RTT estimates, but was not updated as part of r231767.

Consequently, h_ertt has not been calculating correct RTT estimates since
r231767 was comitted, which in turn broke all delay-based congestion control
algorithms because they rely on the h_ertt RTT estimates.

Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all
previous uses of the ticks variable. This ensures all timestamp related
variables in h_ertt use the same units as the TCP stack and therefore results in
meaningful comparisons and RTT estimate calculations.

Reported & tested by: Naeem Khademi (naeemk at ifi uio no)
Discussed with: bz

git-svn-id: svn://svn.freebsd.org/base/stable/9@239474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r227652, r228301, r234270, r234349
emaste [Tue, 21 Aug 2012 00:03:04 +0000 (00:03 +0000)]
MFC r227652, r228301, r234270, r234349

Sync Bryan Venteicher's virtio base, PCI front-end, and net/block/balloon
drivers from HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239472 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239470: Do not call process_nodelete with NULL object pointer.
kan [Mon, 20 Aug 2012 23:47:24 +0000 (23:47 +0000)]
MFC r239470: Do not call process_nodelete with NULL object pointer.

The place where the function is called can be reached if object loading
and relocation fails too, in which case obj pointer will be NULL. Do not
call process_nodelete then, or crash will follow.

Pointy hat to: kan

git-svn-id: svn://svn.freebsd.org/base/stable/9@239471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238631:
delphij [Mon, 20 Aug 2012 18:33:23 +0000 (18:33 +0000)]
MFC r238631:

Import an updated version of moduli(5) manual page from OpenBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239169:
delphij [Mon, 20 Aug 2012 18:26:16 +0000 (18:26 +0000)]
MFC r239169:

RFC 2289 requires all hashes be stored in little endian format before
folding to 64 bits, while SHA1 code is big endian.  Therefore, a bswap32
is required before using the value.

Without this change, the implementation does not conform to test vector
found in RFC 2289.

PR: bin/170519
Submitted by: Arthur Mesh <arthurmesh gmail com> (with changes)

git-svn-id: svn://svn.freebsd.org/base/stable/9@239459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239084:
delphij [Mon, 20 Aug 2012 18:19:06 +0000 (18:19 +0000)]
MFC r239084:

Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices.

Obtained from: FreeNAS

git-svn-id: svn://svn.freebsd.org/base/stable/9@239458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238997:
delphij [Mon, 20 Aug 2012 18:01:17 +0000 (18:01 +0000)]
MFC r238997:

Correct a typo.

Reported by: Sascha Wildner <swildner dragonflybsd org>
Reviewed by: scottl

git-svn-id: svn://svn.freebsd.org/base/stable/9@239455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFH r236106: avoid segfault with SSH 1 keys
des [Mon, 20 Aug 2012 17:46:22 +0000 (17:46 +0000)]
MFH r236106: avoid segfault with SSH 1 keys

git-svn-id: svn://svn.freebsd.org/base/stable/9@239453 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239052:
tuexen [Mon, 20 Aug 2012 16:45:46 +0000 (16:45 +0000)]
MFC r239052:
Fix a refcount issue. The caller only decrements if stcb is NULL.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239041:
tuexen [Mon, 20 Aug 2012 16:42:45 +0000 (16:42 +0000)]
MFC r239041:

Fix a bug reported by Simon L. B. Nielsen:
If an SCTP endpoint receives an ASCONF with a wildcard
lookup address and incorrect verification tag, the system
crashes.
This bug was found by Shaun Colley.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239233:
wblock [Mon, 20 Aug 2012 16:31:23 +0000 (16:31 +0000)]
MFC r239233:

Correct description of minfree to kilobytes rather than blocks.

PR: 125921
Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@239443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239021:
jimharris [Mon, 20 Aug 2012 16:11:13 +0000 (16:11 +0000)]
MFC r239021:

In virstor_ctl_stop(), check for a valid softc before trying to update
metadata.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239253: Pospone the DF_1_NODELETE processing until object DAG is
kan [Mon, 20 Aug 2012 15:34:06 +0000 (15:34 +0000)]
MFC r239253: Pospone the DF_1_NODELETE processing until object DAG is
fully loaded.

Trying to up the reference from the load loop risks missing
dependencies that have not been loaded yet.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239095: Do not add handler to event handlers list until ithread
kan [Mon, 20 Aug 2012 15:16:43 +0000 (15:16 +0000)]
MFC r239095: Do not add handler to event handlers list until ithread
is created.

In rare event when fast and ithread interrupts share the same vector
and the fast handler was registered first, we can end up trying to
schedule the ithread that is not created yet. The kernel built with
INVARIANTS then triggers an assertion.

Change the order to create the ithread first and only then add the
handler that needs it to the interrupt event handlers list.

Reviewed by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/9@239436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239019: Parse notes only after object structure had been allocated.
kan [Mon, 20 Aug 2012 15:08:22 +0000 (15:08 +0000)]
MFC r239019: Parse notes only after object structure had been allocated.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r230636:
emaste [Mon, 20 Aug 2012 14:54:30 +0000 (14:54 +0000)]
MFC r230636:

  pmc_*_initialize may return NULL if the CPU is not supported, so check
  that md is not null before dereferencing it.

PR:             kern/156540

git-svn-id: svn://svn.freebsd.org/base/stable/9@239433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r231973: Avoid error log for transfer stop w/o error code.
emaste [Mon, 20 Aug 2012 14:52:43 +0000 (14:52 +0000)]
MFC r231973: Avoid error log for transfer stop w/o error code.

A number of tftp clients, including the one in Intel's pxe boot loader,
may intentionally stop a transfer using error code 0 (i.e., EUNDEF).
These are not real errors.  Avoid spamming log files with these by
logging them at level LOG_DEBUG instead.

Discussed on -hackers with an initial patch proposal; this change is an
improved approach suggested by kan@.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232666: Improve multi-line kernel ident parsing
emaste [Mon, 20 Aug 2012 14:49:06 +0000 (14:49 +0000)]
MFC r232666: Improve multi-line kernel ident parsing

  Instead of blindly grabbing the line with 'Version string' and the
  following one from the core info file, take all lines after 'Version
  string' until the one one that matches the field format in the core info
  file.  This provides compatibility with VendorBSD modifications that have
  a different kernel ident format.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r236157: Add IPPROTO_MPLS (rfc4023) IP protocol definition
emaste [Mon, 20 Aug 2012 14:42:29 +0000 (14:42 +0000)]
MFC r236157: Add IPPROTO_MPLS (rfc4023) IP protocol definition

There are currently no in-tree consumers; I'm adding it now for use by
vendor code.  This matches the change OpenBSD made while implementing
MPLS in gif(4).

git-svn-id: svn://svn.freebsd.org/base/stable/9@239430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238844: Add version so others can depend on this module
emaste [Mon, 20 Aug 2012 14:37:50 +0000 (14:37 +0000)]
MFC r238844: Add version so others can depend on this module

git-svn-id: svn://svn.freebsd.org/base/stable/9@239429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239130: Minor style(9) improvement
emaste [Mon, 20 Aug 2012 14:34:30 +0000 (14:34 +0000)]
MFC r239130: Minor style(9) improvement

git-svn-id: svn://svn.freebsd.org/base/stable/9@239428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232844: Remove extraneous log message
emaste [Mon, 20 Aug 2012 14:26:16 +0000 (14:26 +0000)]
MFC r232844: Remove extraneous log message

  When ntp switched between PLL and FLL mode it produced a log message
  "kernel time sync status change %04x".  This issue is reported in ntp
  bug 452[1] which claims that this behaviour is normal and the log
  message isn't necessary.  I'm not sure exactly when it was removed, but
  it's gone in the latest ntp release (4.2.6p5).

  [1] http://bugs.ntp.org/show_bug.cgi?id=452

git-svn-id: svn://svn.freebsd.org/base/stable/9@239427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238718: Quirk MS keyboard so that function keys work
emaste [Mon, 20 Aug 2012 14:12:24 +0000 (14:12 +0000)]
MFC r238718: Quirk MS keyboard so that function keys work

  The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been
  repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is
  required to return them to their normal purpose.

  This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000
  keyboard to get the keys working again.  More extensive changes to the USB
  keyboard infrastructure would be needed to fully support the "F Lock" mode
  and the extended keys on this keyboard.

PR:             usb/116947

git-svn-id: svn://svn.freebsd.org/base/stable/9@239425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238183:
emaste [Mon, 20 Aug 2012 14:05:19 +0000 (14:05 +0000)]
MFC r238183:

  Correct BUGS description of static buffer use

  Since r142667 strerror has unconditionally returned a pointer to a
  static buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238183:
emaste [Mon, 20 Aug 2012 13:59:22 +0000 (13:59 +0000)]
MFC r238183:

  Implement SIOCGIFMEDIA for if_tap(4)

  Appease certain if_tap(4) consumers by providing simulated Ethernet
  media status.

  DragonFly commit 70d9a675bf5441cc854a843ead702d08928c37f3

Obtained from:  DragonFly BSD
Sponsored by:   ADARA Networks

git-svn-id: svn://svn.freebsd.org/base/stable/9@239422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239216, r239217:
gjb [Mon, 20 Aug 2012 13:06:51 +0000 (13:06 +0000)]
MFC r239216, r239217:

r239216:
 - Remove a leading space that breaks rendering

r239217:
 - Fix source dataset snapshot name in Example 15.
 - Bump date.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238969:
mav [Mon, 20 Aug 2012 12:09:02 +0000 (12:09 +0000)]
MFC r238969:
Fix kernel panic on `camcontrol reset` for specific target, caused by
uninitialized cm_targ in mpssas_action_resetdev().

git-svn-id: svn://svn.freebsd.org/base/stable/9@239415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232197 (on behalf of phk):
kib [Mon, 20 Aug 2012 12:07:10 +0000 (12:07 +0000)]
MFC r232197 (on behalf of phk):
Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.

Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support.
This is obviously no good, if changes to those bits are not communicated
down the stack.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r239228: Build modules along with the XENHVM kernels.
cperciva [Mon, 20 Aug 2012 11:34:49 +0000 (11:34 +0000)]
MFC r239228: Build modules along with the XENHVM kernels.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMake the addition of the d_gone binary compatible. This allows
imp [Wed, 8 Aug 2012 20:21:33 +0000 (20:21 +0000)]
Make the addition of the d_gone binary compatible.  This allows
storage drivers compiled for 9.0 to work on 9.1 and preserves the ABI
for disks.

Reviewed by: scottl, ken
Approved by: re@ (kensmith)
MFS after: releng/9.1 gets sorted

git-svn-id: svn://svn.freebsd.org/base/stable/9@239148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoSince releng/9.1 has been copied bump __FreeBSD_version so stable/9 will
kensmith [Sun, 5 Aug 2012 23:59:32 +0000 (23:59 +0000)]
Since releng/9.1 has been copied bump __FreeBSD_version so stable/9 will
not have a value lower than what will be in releng/9.1 shortly.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@239081 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238622
emax [Thu, 2 Aug 2012 20:49:11 +0000 (20:49 +0000)]
MFC r238622

Allow to specify no source-address-selection policy

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238995 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238599
emax [Thu, 2 Aug 2012 20:48:22 +0000 (20:48 +0000)]
MFC r238599

Return zero from get_addrselectpolicy() when no source-address-selection
policy is installed.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238994 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238795
ache [Thu, 2 Aug 2012 15:13:12 +0000 (15:13 +0000)]
MFC r238795

Try to avoid all files dependence on the modification time of the large
and often modified directory created symbolic links points to - it cause
unnecessary full rebuilds each time make runs when directory is changed.
So do it only if symbolic link does not exists, which usually means that
objdir is clean anyway.

Approved by:    re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238992 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 238164:
jhb [Mon, 30 Jul 2012 20:40:14 +0000 (20:40 +0000)]
MFC 238164:
Add another PS/2 keyboard PNP ID.  This ID is listed as
"Reserved by Microsoft" in the standard PNP ID table, but has been seen
in the wild on at least one laptop.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238755:
jimharris [Mon, 30 Jul 2012 15:30:42 +0000 (15:30 +0000)]
MFC r238755:

Add rmb() to tsc_read_##x to enforce serialization of rdtsc captures.

Intel Architecture Manual specifies that rdtsc instruction is not serialized,
so without this change, TSC synchronization test would periodically fail,
resulting in use of HPET timecounter instead of TSC-low.  This caused
severe performance degradation (40-50%) when running high IO/s workloads due to
HPET MMIO reads and GEOM stat collection.

Tests on Xeon E5-2600 (Sandy Bridge) 8C systems were seeing TSC synchronization
fail approximately 20% of the time.

Sponsored by: Intel
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r237939: ctype_l(3): Note that not all these functions are specified by
jilles [Mon, 30 Jul 2012 12:25:20 +0000 (12:25 +0000)]
MFC r237939: ctype_l(3): Note that not all these functions are specified by
POSIX.1-2008.

The function isascii_l() is not in POSIX even though isascii() is, probably
because isascii() is marked as obsolete.  The other functions, like
digittoint_l() and ishexnumber_l(), are FreeBSD-specific just like their
non-_l versions.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/9@238906 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f