]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r264486:
markj [Tue, 29 Jul 2014 21:21:15 +0000 (21:21 +0000)]
MFC r264486:
Use the correct format specifiers for wide characters and strings of wide
characters.

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

9 years agoMFC r268446:
markj [Tue, 29 Jul 2014 21:15:24 +0000 (21:15 +0000)]
MFC r268446:
Fix a typo.

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

9 years agoMFC r264363:
markj [Tue, 29 Jul 2014 20:38:08 +0000 (20:38 +0000)]
MFC r264363:
Update the SDT(9) examples to reflect the removal of the sname parameter
in r258622.

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

9 years agoMFC r263329:
markj [Tue, 29 Jul 2014 20:34:10 +0000 (20:34 +0000)]
MFC r263329:
Only invoke fasttrap hooks for traps from user mode, and ensure that they're
called with interrupts enabled. Calling fasttrap_pid_probe() with interrupts
disabled can lead to deadlock if fasttrap writes to the process' address
space.

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

9 years agoMFC r262669:
markj [Tue, 29 Jul 2014 18:31:44 +0000 (18:31 +0000)]
MFC r262669:
When our linker merges .SUNW_dof sections from multiple files, it simply
concatenates the DOF tables into one section. Previously, the USDT init
code in drti.o would only look at the first table in the DOF section; with
this change, it iterates over all the tables, passing each DOF table to
the kernel.

PR: 186821

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

9 years agoMFC: r269050
marius [Tue, 29 Jul 2014 13:08:46 +0000 (13:08 +0000)]
MFC: r269050

- Copying and zeroing pages via temporary mappings involves updating the
  corresponding page tables followed by accesses to the pages in question.
  This sequence is subject to the situation exactly described in the "AMD64
  Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23,
  "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing
  the INVLPG right after modifying the PTE bits is crucial.
  For pmap_copy_page(), this has been broken in r124956 and later on carried
  over to pmap_copy_pages() derived from the former, while all other places
  in the i386 PMAP code use the correct order of instructions in this regard.
  Fixing the latter breakage solves the problem of data corruption seen with
  unmapped I/O enabled when running at least bare metal on AMD R-268D APUs.
  However, this might also fix similar corruption reported for virtualized
  environments.
- In pmap_copy_pages(), correctly set the cache bits on the source page being
  copied. This change is thought to be a NOP for the real world, though. [2]

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Submitted by: kib [2]
Reviewed by: alc, kib
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r268979:
delphij [Tue, 29 Jul 2014 06:00:48 +0000 (06:00 +0000)]
MFC r268979:

Don't save entropy inside jails.

As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.

PR: conf/126744
Submitted by: Eugene Grosbein <eugen grosbein net> (with minor changes)
Approved by: so (des)

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

9 years agoMFC r269081:
kib [Sun, 27 Jul 2014 18:10:07 +0000 (18:10 +0000)]
MFC r269081:
Fix typo.

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

9 years agoPartial MFC of r268466:
kib [Fri, 25 Jul 2014 15:07:07 +0000 (15:07 +0000)]
Partial MFC of r268466:
Add a knob to disable the residency calculation for kern.proc.vmmap.

Tested by: "Ivan A. Kosarev" <ikosarev@accesssoftek.com>

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

9 years agoMFC r268640 and r268989.
np [Fri, 25 Jul 2014 00:35:43 +0000 (00:35 +0000)]
MFC r268640 and r268989.

r268640:
Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl.  The
firmware allows up to 48B to be read this way but the driver limits
itself to 8B at a time to remain compatible with old cxgbetool
binaries.

r268989:
Add missing newline to an error message.

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

9 years agoMFC r268420:
mav [Thu, 24 Jul 2014 14:57:58 +0000 (14:57 +0000)]
MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

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

9 years agoMFC r268384:
kib [Thu, 24 Jul 2014 11:17:26 +0000 (11:17 +0000)]
MFC r268384:
When the lock was stolen from us, retry the whole lock sequence in kernel,
instead of returning EINTR.

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

9 years agoSync with 2014060201 which adds IPv6 to b.root-servers.net
erwin [Thu, 24 Jul 2014 09:40:31 +0000 (09:40 +0000)]
Sync with 2014060201 which adds IPv6 to b.root-servers.net

Note that this is a direct commit to stable/9 as this file
is no longer in HEAD.

Sponsored by: DK Hostmaster A/S

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

9 years agoMFC r262329:
markj [Thu, 24 Jul 2014 01:08:02 +0000 (01:08 +0000)]
MFC r262329:
Define the KM_NORMALPRI flag for kmem_alloc(), as it is used in some
upstream DTrace code.

MFC r262330:
1452 DTrace buffer autoscaling should be less violent

illumos/illumos-gate@6fb4854bed54ce82bd8610896b64ddebcd4af706

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

9 years agoMFC 267883:
jhb [Thu, 24 Jul 2014 00:02:39 +0000 (00:02 +0000)]
MFC 267883:
Expand r261243 even further and ignore any I/O port resources assigned to
PCI root bridges except for the one known-valid case on x86 where bridges
claim the I/O port registers used for PCI config space access.

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

9 years agoMFC r266475 (rea): Fix warning messages after r252015
dteske [Wed, 23 Jul 2014 22:41:07 +0000 (22:41 +0000)]
MFC r266475 (rea): Fix warning messages after r252015

$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.

Other fixes:
 - eliminate unneeded double spaces;
 - tell user where inet/inet6 keywords are expected to be.

Reviewed by: hrs

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

9 years agoMFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
dteske [Wed, 23 Jul 2014 22:10:34 +0000 (22:10 +0000)]
MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
work if ifname has any of [.-/+].

PR: conf/191961
Spotted by: jhay
MFC after: 3 days

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

9 years agoMFC r268798, r268799, r268801:
pfg [Mon, 21 Jul 2014 23:00:26 +0000 (23:00 +0000)]
MFC r268798, r268799, r268801:
grep: Fix type.
grep: fix some memory leaks.

queue.c (CVS Rev. 1.4. 1.5)
Fix memory leaks.
NULL does not need a cast.

grep.c (CVS Rev. 1.6)
Use the more portable getline.

Obtained from: NetBSD

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

9 years agoMFC r268644:
pfg [Mon, 21 Jul 2014 22:48:38 +0000 (22:48 +0000)]
MFC r268644:
libc/stdlib: Minor cleanups to code originating in NetBSD

Mostly ANSIfication and typos.

Obtained from: NetBSD

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

9 years agoMFC r268642:
pfg [Mon, 21 Jul 2014 22:44:06 +0000 (22:44 +0000)]
MFC r268642:
libc/gen: small updates to code originating at OpenBSD

arc4random.c
- CVS rev. 1.22
Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as
``-upper_bound % upper_bound''. Simplifies the code and makes it the
same on both ILP32 and LP64 architectures, and also slightly faster on
LP64 architectures by using a 32-bit remainder instead of a 64-bit
remainder.
- CVS rev. 1.23
Spacing

readpassphrase.c
-CVS rev. v 1.24
most obvious unsigned char casts for ctype

Obtained from: OpenBSD

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

9 years agoMFC r268460 by ray:
emaste [Mon, 21 Jul 2014 14:36:35 +0000 (14:36 +0000)]
MFC r268460 by ray:

  Fix inconsistent token parameters for kbd_allocate() and kbd_release()
  in vt(4).

PR: 191306
Submitted by: jau789 at gmail.com
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC: r263650, r263686
bapt [Sun, 20 Jul 2014 11:00:51 +0000 (11:00 +0000)]
MFC: r263650, r263686

Add missing dependency on libm

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

9 years agoMFC r250764
hiren [Sun, 20 Jul 2014 02:38:58 +0000 (02:38 +0000)]
MFC r250764

Fix rte leak introduced in r248070.

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

9 years agoMFC r268790
hiren [Sun, 20 Jul 2014 02:20:03 +0000 (02:20 +0000)]
MFC r268790

Fix a typo.

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

9 years agoMFC: r267131, r267132, r267133, r268493, r268671
bapt [Sun, 20 Jul 2014 00:30:28 +0000 (00:30 +0000)]
MFC: r267131, r267132, r267133, r268493, r268671

Use NULL instead of 0 (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Remove unnecessary semicolons (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Add support for arbitrary http requests [1]
Support EAGAIN in fetch_writev

Submitted by: Alex Hornung <alex at alexhornung.com> [1]
Reviewed by: des

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

9 years agoMFC: r263648, r264789, r266636
bapt [Sat, 19 Jul 2014 23:57:36 +0000 (23:57 +0000)]
MFC: r263648, r264789, r266636

This brings:
- schema validation
- xpath-like interface for ucl objects

Adapt pkg(7) to the new libucl API

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

9 years agoMFC r268735:
hselasky [Sat, 19 Jul 2014 19:57:27 +0000 (19:57 +0000)]
MFC r268735:
Improve support for Intel Lynx Point USB 3.0 controllers by using the
USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware
does not always accept when writing -1U to the port switching
registers.

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

9 years agoMFC r268774:
dim [Sat, 19 Jul 2014 18:33:09 +0000 (18:33 +0000)]
MFC r268774:

After r261991, clang warnings about unused functions in the kernel were
completely silenced.  Make sure these warnings appear again, so there is
some incentive to fix them, but do not error out the whole kernel build
for them.

Noticed by: steven@pyro.eu.org
PR: 191867

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

9 years agoGenerate *all* the needed autogenerated header files. For some reason
truckman [Fri, 18 Jul 2014 18:11:24 +0000 (18:11 +0000)]
Generate *all* the needed autogenerated header files.  For some reason
normal builds still work without this, but "make universe" requires it.

Tested with "make universe".

This is a direct commit to stable/9 because this module does not exist
in head or stable/10.

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

9 years agoMerge r256868,257276-257277,257515,257913 from head. These are fixes
truckman [Fri, 18 Jul 2014 18:00:00 +0000 (18:00 +0000)]
Merge r256868,257276-257277,257515,257913 from head. These are fixes
required to make Xen buildable w/o INET.  This is the same as r259541
in stable/10 by glebius.

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

9 years agoMFC r256423:
royger [Fri, 18 Jul 2014 07:18:37 +0000 (07:18 +0000)]
MFC r256423:

Allow FreeBSD to be booted from CDROM media on XenServer 6.2 and prior
releases.

PR: 164630

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

9 years agoMFC r268706:
np [Fri, 18 Jul 2014 00:32:17 +0000 (00:32 +0000)]
MFC r268706:
cxgbe(4): Display CF facility correctly in the device log.

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

9 years agoMFC r268373
truckman [Thu, 17 Jul 2014 23:50:49 +0000 (23:50 +0000)]
MFC r268373

Declaration whitespace changes for style(9).

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

9 years ago MFC r263749,267146:
imp [Thu, 17 Jul 2014 22:42:18 +0000 (22:42 +0000)]
 MFC r263749,267146:

>r267146 | imp | 2014-06-05 22:08:55 -0600 (Thu, 05 Jun 2014) | 4 lines
>Restore comments accidentally removed.

>r263749 | imp | 2014-03-25 16:08:31 -0600 (Tue, 25 Mar 2014) | 18 lines
>Rather than require a makeoptions DEBUG to get debug correct,
>add it in kern.mk, but only if we're using clang. While this
>option is supported by both clang and gcc, in the future there
>may be changes to clang which change the defaults that require
>a tweak to build our kernel such that other tools in our tree
>will work. Set a good example by forcing -gdwarf-2 only for
>clang builds, and only if the user hasn't specified another
>dwarf level already. Update UPDATING to reflect the changed
>state of affairs. This also keeps us from having to update
>all the ARM kernels to add this, and also keeps us from
>in the future having to update all the MIPS kernels and is
>one less place the user will have to know to do something
>special for clang and one less thing developers will need
>to do when moving an architecture to clang.

Note: Due to the funkadellic way we used to do merges, I've made a
direct commit of the relevant text to UPDATING with no merge info
being recorded for it so I could commit it at the same time as the
other files.

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

9 years agoMFC r268628, r268631, r268635:
pfg [Thu, 17 Jul 2014 02:43:53 +0000 (02:43 +0000)]
MFC r268628, r268631, r268635:

Convert *rootDir from external to static.

fsck_msdosfs: be a bit more permissive.

The free space value in the FSInfo block is merely unitialized when it is
0xffffffff. This fixes a bug found in NetBSD.

Respect FSFIXFAT.

Fix some whitespace issues while here.

Obtained from: NetBSD (CVS rev. 1.22, rev. 1.9), OpenBSD (misc)

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

9 years agoMFC r268502:
pfg [Thu, 17 Jul 2014 02:22:03 +0000 (02:22 +0000)]
MFC r268502:
Sync some (mostly cosmetical) changes from NetBSD

Makefile,v 1.37
tc1.c v 1.3
Rename TEST/test.c tc1.c

common.c,v 1.23
pass lint on _LP64.

emacs.c,v 1.22
pass lint on _LP64.

filecomplete.h,v 1.8
mv NetBSD ID back from 1.9 as we don't
have the widecharacter support.

prompt.c,v 1.14
prompt.h,v 1.9
term.h,v 1.20
read.h,v 1.6
Update NetBSD version strings

sys.h,v 1.12
Misc sun stuff.

tty.c 1.31
handle EINTR in the termios operations
Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects.
pass lint on _LP64.
Don't depend on side effects inside an assert

Obtained from: NetBSD

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

9 years agoMerge r268298,r268299 from head:
gavin [Wed, 16 Jul 2014 12:57:50 +0000 (12:57 +0000)]
Merge r268298,r268299 from head:
  Correct format string to fix build of uhsoctl when DEBUG is defined

PR: 185007
Submitted by: saper saper.info

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

9 years agoMerge r267866 from head:
gavin [Wed, 16 Jul 2014 12:52:05 +0000 (12:52 +0000)]
Merge r267866 from head:
  Drop references to updating over csup from build(7).

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

9 years agoMerge r267865 from head:
gavin [Wed, 16 Jul 2014 12:49:42 +0000 (12:49 +0000)]
Merge r267865 from head:
  Drop example variables for updating over csup.  These have not functioned
  since r252305.

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

9 years agoMerge r268295 from head:
gavin [Wed, 16 Jul 2014 12:41:49 +0000 (12:41 +0000)]
Merge r268295 from head:
  Fix equation and limerick to be correct.  NetBSD fixed this 14 years ago
  (src/games/fortune/datfiles/fortunes2 1.7).

PR: 188714
Submitted by: ksmakoto dd.iij4u.or.jp

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

9 years agoMerge r268292 from head:
gavin [Wed, 16 Jul 2014 12:38:46 +0000 (12:38 +0000)]
Merge r268292 from head:
  Dominion Day became Canada Day in 1982, update the holiday calendar.

PR: 191533
Submitted by: db

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

9 years agoMFC r268471:
kib [Wed, 16 Jul 2014 08:59:44 +0000 (08:59 +0000)]
MFC r268471:
For safety, ensure that any consumer of the set_regs() and
ptrace_set_pc() use the correct return to userspace using iret.

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

9 years agoMFC r268467:
kib [Wed, 16 Jul 2014 08:58:38 +0000 (08:58 +0000)]
MFC r268467:
Implement sysconf(_SC_GETGR_R_SIZE_MAX) and sysconf(_SC_GETPW_R_SIZE_MAX).

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

9 years agoMFC r268583:
hselasky [Wed, 16 Jul 2014 06:23:54 +0000 (06:23 +0000)]
MFC r268583:
Turn off blinking device leds at attach.

PR: 183735

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

9 years agoMFC r268582:
hselasky [Wed, 16 Jul 2014 06:18:02 +0000 (06:18 +0000)]
MFC r268582:
Fix performance problems with AXGE network adapter in RX direction:
- Remove 4 extra bytes from the ethernet payload.
- The maximum RX buffer was incorrectly set. Increase it to 64K for
now, until the exact limit is understood.
- Enable hardware checksumming again.
- Make hardware data structure packed.

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

9 years agoMFC r268381:
wblock [Wed, 16 Jul 2014 00:43:53 +0000 (00:43 +0000)]
MFC r268381:

Make synopsis version of -3 flag match other uses in the page.

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

9 years agoMFC r268187:
wblock [Wed, 16 Jul 2014 00:39:58 +0000 (00:39 +0000)]
MFC r268187:

Improve markup, change references to nonexistent vt_vga(4), remove some
language redundancy, and move the examples so sections are in the
standard order.

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

9 years agoMFC r267617:
wblock [Wed, 16 Jul 2014 00:34:20 +0000 (00:34 +0000)]
MFC r267617:

Fix spelling, typos, missing articles, contractions.  Expanded version
of patch supplied with PR.

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

9 years agoMFC r267618:
wblock [Tue, 15 Jul 2014 23:16:33 +0000 (23:16 +0000)]
MFC r267618:

Fix syntax error.

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

9 years agoMFC r268385:
kib [Tue, 15 Jul 2014 10:07:05 +0000 (10:07 +0000)]
MFC r268385:
Make this compilable on latest Linux'es without warnings.

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

9 years agoMFC r268383:
kib [Tue, 15 Jul 2014 10:04:09 +0000 (10:04 +0000)]
MFC r268383:
Correct si_code for the SIGBUS signal generated by the alignment trap.

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

9 years agoMFC r267441:
tijl [Mon, 14 Jul 2014 11:07:43 +0000 (11:07 +0000)]
MFC r267441:

Don't install GSS-API headers when the GSSAPI option has been disabled.
Some ports assume GSS-API is supported when they find the headers.

PR: 189156
Submitted by: Garrett Cooper <yanegomi@gmail.com>

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

9 years agoMFC r268354:
hselasky [Mon, 14 Jul 2014 07:25:30 +0000 (07:25 +0000)]
MFC r268354:
Improve support for Intel Lynx Point USB 3.0 controllers by masking
the port routing bits like done in Linux.

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

9 years agoSwitch stable/9 back to STABLE now that release/9.3.0 is
gjb [Sun, 13 Jul 2014 17:04:22 +0000 (17:04 +0000)]
Switch stable/9 back to STABLE now that release/9.3.0 is
tagged.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC: r268008
rmacklem [Sat, 12 Jul 2014 23:27:38 +0000 (23:27 +0000)]
MFC: r268008
There might be a potential race condition for the NFSv4 client
when a newly created file has another open done on it that
update the open mode. This patch moves the code that updates
the open mode up into the block where the mutex is held to
ensure this cannot happen. No bug caused by this potential
race has been observed, but this fix is a safety belt to ensure
it cannot happen.

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

9 years agoMFC r267627:
pfg [Sat, 12 Jul 2014 18:44:47 +0000 (18:44 +0000)]
MFC r267627:
strptime: add support for %t and %n

Posix strptime() requires support for %t and %n, which were added
to the illumos port.  Curiously we were skipping white spaces by
default in most other cases making %t meaningless.

We now skip spaces in the case of the %e specifier as strftime(3)
explicitly adds a space for the single digit case.

Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html

PR: 173421
Obtained from: Illumos (Rev. a11c1571b6942161b0186d0588609448066892c2)

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

9 years agoMFC r268272:
pfg [Sat, 12 Jul 2014 18:30:35 +0000 (18:30 +0000)]
MFC r268272:

minor perf enhancement for UTF-8

Reduce some duplicate code.

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

Obtained from: Illumos

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

9 years agoMFC r268419:
mav [Sat, 12 Jul 2014 02:05:51 +0000 (02:05 +0000)]
MFC r268419:
Fix use-after-free on XPT_RESET_BUS.

That command is not queued, so does not use later status update.

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

9 years agoMFC r267986:
mav [Sat, 12 Jul 2014 02:04:45 +0000 (02:04 +0000)]
MFC r267986:
Remove odd practice of inverting error codes.

-EPERM is equal to ERESTART, returning which from ioctl() handler causes
infinite syscall restart.

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

9 years agoAnticipate when we will announce 9.3-RELEASE.
gjb [Thu, 10 Jul 2014 22:00:22 +0000 (22:00 +0000)]
Anticipate when we will announce 9.3-RELEASE.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r256920
hiren [Thu, 10 Jul 2014 21:02:58 +0000 (21:02 +0000)]
MFC r256920

The TCP delayed ACK logic isn't aware of LRO passing up large aggregated
segments thinking it received only one segment. This causes it to enable
the delay the ACK for 100ms to wait for another segment which may never
come because all the data was received already.

Doing delayed ACK for LRO segments is bogus for two reasons: a) it pushes
us further away from acking every other packet; b) it introduces additional
delay in responding to the sender.  The latter is especially bad because it
is in the nature of LRO to aggregated all segments of a burst with no more
coming until an ACK is sent back.

Change the delayed ACK logic to detect LRO segments by being larger than
the MSS for this connection and issuing an immediate ACK for them to keep
the ACK clock ticking without interruption.

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

9 years agoMFC r268212:
kib [Thu, 10 Jul 2014 09:11:39 +0000 (09:11 +0000)]
MFC r268212:
Note that most errors are possible for all syscalls from utimes(2)
family.  Minor wording corrections.

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

9 years agoBump __FreeBSD_version after SA-14:17.kmem so we have something
peter [Wed, 9 Jul 2014 00:12:42 +0000 (00:12 +0000)]
Bump __FreeBSD_version after SA-14:17.kmem so we have something
to test against in the freebsd.org cluster.

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

9 years agoDocument FreeBSD-SA-14:17.kmem
gjb [Tue, 8 Jul 2014 23:07:09 +0000 (23:07 +0000)]
Document FreeBSD-SA-14:17.kmem

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoFix kernel memory disclosure in control message and SCTP notifications.
delphij [Tue, 8 Jul 2014 21:54:50 +0000 (21:54 +0000)]
Fix kernel memory disclosure in control message and SCTP notifications.

Security: FreeBSD-SA-14:17.kmem
Security: CVE-2014-3952, CVE-2014-3953

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

9 years agoMFC r268125:
pfg [Sun, 6 Jul 2014 17:23:25 +0000 (17:23 +0000)]
MFC r268125:

Small merges from OpenSolaris:

These have no effect on FreeBSD, in fact they are ifdef'ed,
but make easier future merges:

6699767 panic in spec_open()

6718877 crgetzoneid() use can cause problems when forking processes with
USDT providers in a non global zone

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

9 years agoUndo MFC of r267960:
hselasky [Fri, 4 Jul 2014 18:26:32 +0000 (18:26 +0000)]
Undo MFC of r267960:
This patch cannot be ported as-is to 9-stable.

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

9 years agoMFC: r268095
marius [Fri, 4 Jul 2014 13:59:48 +0000 (13:59 +0000)]
MFC: r268095

Actually pro AMD chipsets, making r244146 (MFCed to stable/9 in r245797) work.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r267960:
hselasky [Fri, 4 Jul 2014 06:05:39 +0000 (06:05 +0000)]
MFC r267960:
Don't hide zero-length strings when doing sysctl listings.

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

9 years agoMFC r267909: Document EINVAL.
pluknet [Thu, 3 Jul 2014 17:37:51 +0000 (17:37 +0000)]
MFC r267909: Document EINVAL.

PR: 191382

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

9 years agoMFC r266490, r266738, r267955, and r268209:
hselasky [Thu, 3 Jul 2014 16:34:01 +0000 (16:34 +0000)]
MFC r266490, r266738, r267955, and r268209:
- Improve performance by fixing incorrect Rx/Tx handling
- Rename definition of AXGE_* to reflect reality
- Add new USB IDs
- Add proper rangechecks in "axge_rx_frame()" function and
fix receive loop header parsing.
- Disable hardware checksumming until it is properly tested.

PR: 191432

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

9 years agoMFC r266270:
hselasky [Thu, 3 Jul 2014 16:29:21 +0000 (16:29 +0000)]
MFC r266270:
Remove some unused variables.

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

9 years agoMFC r267912, r267915:
ume [Thu, 3 Jul 2014 16:01:30 +0000 (16:01 +0000)]
MFC r267912, r267915:
- Exclude loopback address rather than loopback interface.
- style(9)

Spotted by: melifaro

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

9 years agoMFC r266814
truckman [Thu, 3 Jul 2014 16:00:57 +0000 (16:00 +0000)]
MFC r266814

Initialize r_flags the same way in all cases using a sanitized copy of
flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE
bits are invalid in this context, and we want to defer setting RF_ACTIVE
in r_flags until later.  This should make rman_get_flags() return
the correct answer in all cases.

Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED
or RF_FIRSTSHARE flags.

Do a strict equality check on the share type bits of flags.  In
particular, do an equality check on RF_PREFETCHABLE.  The previous
code would allow one type of mismatch of RF_PREFETCHABLE but disallow
the other type of mismatch.  Also, ignore the the RF_ALIGNMENT_MASK
bits since alignment validity should be handled by the amask check.
This field contains an integer value, but previous code did a strange
bitwise comparison on it.

Leave the original value of flags unmolested as a minor debug aid.

Change the start+amask overflow check to a KASSERT() since it is just
meant to catch a highly unlikely programming error in the caller.

Reviewed by: jhb

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

9 years agoMFC r268078 and r268080:
hselasky [Thu, 3 Jul 2014 08:07:37 +0000 (08:07 +0000)]
MFC r268078 and r268080:
Fix for memory use after free() and mtx_destroy().

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

9 years agoMFC r267680:
dteske [Wed, 2 Jul 2014 19:25:49 +0000 (19:25 +0000)]
MFC r267680:
Fix a code typo that prevented mkdir from firing (unnoticed
usually because another part of the code succeeded in making
the same directory).

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

9 years agoMFC r267871: Introduce $RA_SERVER to set default whois server.
ume [Wed, 2 Jul 2014 11:51:01 +0000 (11:51 +0000)]
MFC r267871: Introduce $RA_SERVER to set default whois server.

Requested by: nork
Reviewed by: nork

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

9 years agoMVC r268014:
pfg [Wed, 2 Jul 2014 01:32:40 +0000 (01:32 +0000)]
MVC r268014:
Reduce some warnings in the Solaris unicode support.

Clean some warnings from parenthesis and minor style issues.

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

9 years agoMFC 266322,266323:
jhb [Tue, 1 Jul 2014 18:23:00 +0000 (18:23 +0000)]
MFC 266322,266323:
- Use 'RESOURCE' instead of the more generic 'TYPE' for the resource name
  column header when displaying resource usage.  This more closely matches
  other procstat displays.
- Add descriptions of the display formats for -e, -l, -r, and -x.  Fix a few
  typos in indent settings while here.

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

9 years agoMFC r267372-267374: fix various misimplementation of instructions.
delphij [Tue, 1 Jul 2014 16:00:48 +0000 (16:00 +0000)]
MFC r267372-267374: fix various misimplementation of instructions.

Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com>

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

9 years agoMFC r267493:
delphij [Tue, 1 Jul 2014 15:51:19 +0000 (15:51 +0000)]
MFC r267493:

Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR: bin/190665
Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes)

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

9 years agoMFC r267981:
dim [Mon, 30 Jun 2014 20:26:30 +0000 (20:26 +0000)]
MFC r267981:

Pull in r211627 from upstream llvm trunk (by Bill Schmidt):

  [PPC64] Fix PR20071 (fctiduz generated for targets lacking that
  instruction)

  PR20071 identifies a problem in PowerPC's fast-isel implementation
  for floating-point conversion to integer.  The fctiduz instruction
  was added in Power ISA 2.06 (i.e., Power7 and later).  However, this
  instruction is being generated regardless of which 64-bit PowerPC
  target is selected.

  The intent is for fast-isel to punt to DAG selection when this
  instruction is not available.  This patch implements that change.
  For testing purposes, the existing fast-isel-conversion.ll test adds
  a RUN line for -mcpu=970 and tests for the expected code generation.
  Additionally, the existing test fast-isel-conversion-p5.ll was found
  to be incorrectly expecting the unavailable instruction to be
  generated.  I've removed these test variants since we have adequate
  coverage in fast-isel-conversion.ll.

This is needed to compile clang with debug+asserts on older powerpc64
and ppc970 targets.

Requested by: jhibbits

MFC r267982:

Add the llvm patch for r267981.

MFC r268003:

Fix breakage after r267981.

Pointy hat to: dim

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

9 years agoMFC r267336:
trociny [Mon, 30 Jun 2014 19:47:26 +0000 (19:47 +0000)]
MFC r267336:

PF_BLUETOOTH protocols: skip initialization of non-virtualized globals
for non-default VNET instances.

This fixes panic on a vnet initialization when ng_btsocket is loaded.

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

9 years agoMFC r267801: Make nd6_gctimer tunable.
ume [Mon, 30 Jun 2014 17:04:55 +0000 (17:04 +0000)]
MFC r267801: Make nd6_gctimer tunable.

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

9 years agoMFC r267800:
ume [Mon, 30 Jun 2014 17:03:32 +0000 (17:03 +0000)]
MFC r267800:
Exclude IPv4 address from doing longest match.
It prevented DNS based load balancing.

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

9 years agoMFC r267378:
delphij [Mon, 30 Jun 2014 16:32:49 +0000 (16:32 +0000)]
MFC r267378:

Fix path for zlib examples, this have no runtime effect and was
overlooked when I was doing zlib update.

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

9 years agoMFC r267601:
pfg [Mon, 30 Jun 2014 14:15:16 +0000 (14:15 +0000)]
MFC r267601:

stdtime: style(9) fixes.

Obtained from: illumos

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

9 years agoMFC r267544:
pfg [Mon, 30 Jun 2014 14:12:32 +0000 (14:12 +0000)]
MFC r267544:

Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision: 13222:02526851ba75

Approved: core (jhb)
Approved: FreeBSD Foundation (emaste)

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

9 years agoMFC: r267967, r267968
marius [Mon, 30 Jun 2014 09:38:09 +0000 (09:38 +0000)]
MFC: r267967, r267968

- SC_NO_SYSMOUSE isn't currently supported by vt(4), so nuke it from vt.4.
- vt_vga(4) is a driver rather than a function so reference it accordingly.
- Uncomment HISTORY section given that vt(4) will first appear in 9.3.

Reviewed by: emaste (modulo last part)
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC 267647:
jhb [Fri, 27 Jun 2014 20:57:12 +0000 (20:57 +0000)]
MFC 267647:
Trust the state of a power resource that we get from a working _STA method
instead of trying to cache it.

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

9 years agoMFC 267291:
jhb [Fri, 27 Jun 2014 20:39:45 +0000 (20:39 +0000)]
MFC 267291:
Use strcasecmp() instead of strcmp() when checking user-supplied encoding
names so that encoding names are treated as case-insensitive.  This allows
the use of 'utf-8' instead of 'UTF-8' for example and matches the behavior
of iconv(1).

PR: 167977

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

9 years agoMFC 266293:
jhb [Fri, 27 Jun 2014 20:34:22 +0000 (20:34 +0000)]
MFC 266293:
- Add support for dumping current resource usage for processes via a new -r
  flag to procstat.
- Add an -H flag to request information about threads rather than processes
  when dumping statistics.  Currently it is only used for -r to display
  resource usage for individual threads instead of the entire process.

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

9 years agoMFC 266296:
jhb [Fri, 27 Jun 2014 19:50:30 +0000 (19:50 +0000)]
MFC 266296:
Correct some minor nits in the per-thread signal format description such
as missing posessives and misordering of fields.

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

9 years agoMFC 261781:
jhb [Fri, 27 Jun 2014 17:22:18 +0000 (17:22 +0000)]
MFC 261781:
Don't waste a page of KVA for the boot-time memory test on x86.  For amd64,
reuse the first page of the crashdumpmap as CMAP1/CADDR1.  For i386,
remove CMAP1/CADDR1 entirely and reuse CMAP3/CADDR3 for the memory test.

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

9 years agoMFC r258941,267839:
delphij [Fri, 27 Jun 2014 00:37:03 +0000 (00:37 +0000)]
MFC r258941,267839:

Apply vendor improvements to oce(4) driver:

 - Add support to 20Gbps, 25Gbps, 40Gbps devices;
 - Add support to control adaptive interrupt coalescing (AIC)
   via sysctl;
 - Improve support of BE3 devices;
 - Big endian support fixes;

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex.Com>

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

9 years agoMFC r267196:
pluknet [Thu, 26 Jun 2014 10:13:11 +0000 (10:13 +0000)]
MFC r267196:

Add support for inspecting process flags set in p_flag2.

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

9 years agoMFC r254943 (by will, partially):
pluknet [Thu, 26 Jun 2014 10:09:37 +0000 (10:09 +0000)]
MFC r254943 (by will, partially):

Add the ability to display the default FIB number for a process to the
ps(1) utility, e.g. "ps -O fib".

The rest was previously (mis-)merged with r260208.

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

9 years agoMFC r261901:
pluknet [Thu, 26 Jun 2014 08:44:28 +0000 (08:44 +0000)]
MFC r261901:

Preserve one character space for a trailing '\0'.

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

9 years agoMFC r267757:
np [Wed, 25 Jun 2014 19:41:39 +0000 (19:41 +0000)]
MFC r267757:

cxgbe(4): Update the bundled T4 and T5 firmwares to versions 1.11.27.0.

Obtained from: Chelsio

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

9 years agoMFC r267693:
gjb [Wed, 25 Jun 2014 19:00:11 +0000 (19:00 +0000)]
MFC r267693:
  Fix a bug in bsdgrep(1) where patterns are not correctly
  detected.

  Certain criteria must be met for this bug to show up:

   * the -w flag is specified, and
   * neither -o or --color are specified, and
   * the pattern is part of another word in the line, and
   * the other word that contains the pattern occurs first

PR: 181973
Sponsored by: The FreeBSD Foundation

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