]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r276671,r277357:
ngie [Fri, 23 Jan 2015 00:34:19 +0000 (00:34 +0000)]
MFC r276671,r277357:

r276671 (by ngie):

  Expect :arithmetic_ops_body to fail with syntax errors on FreeBSD

  Sponsored by: EMC / Isilon Storage Division

r277357 (by ngie):

  Expect :overflow to fail with FreeBSD's expr as it doesn't have stringent
  overflow checks like NetBSD's expr does

  PR: 196867

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

9 years agoMFC r277453:
ngie [Fri, 23 Jan 2015 00:27:37 +0000 (00:27 +0000)]
MFC r277453:

r277453 (by ngie):

  Garbage collect a prove test wrapper

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r275562: MFV r275535:
delphij [Fri, 23 Jan 2015 00:27:08 +0000 (00:27 +0000)]
MFC r275562: MFV r275535:

Unexpand ISP2() and MSEC2NSEC().

Illumos issue:
    5255 uts shouldn't open-code ISP2

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

9 years agoMFC r275561: MFV r275534:
delphij [Fri, 23 Jan 2015 00:23:48 +0000 (00:23 +0000)]
MFC r275561: MFV r275534:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5285 pass in cpu_pause_func via pause_cpus

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

9 years agoMFC r275533:
delphij [Fri, 23 Jan 2015 00:19:58 +0000 (00:19 +0000)]
MFC r275533:

Sync with Illumos.  This have no effect to FreeBSD.

Illumos issue:
    5100 sparc build failed after 5004

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

9 years agoMFC r276832 (partial), r277099
pfg [Thu, 22 Jan 2015 21:41:41 +0000 (21:41 +0000)]
MFC r276832 (partial), r277099

Avoid a warning from gcc48.
Replace __inline GNUism with the standard inline.

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

9 years agoMFC r274816:
brooks [Thu, 22 Jan 2015 21:17:58 +0000 (21:17 +0000)]
MFC r274816:

Add FPU support for MIPS setjmp(3)/longjmp(3).

This change saves/restores the callee-saved MIPS floating point
registers as documented by the o32/n32/n64 spec ("MIPSpro N32
ABI Handbook", Table 2-1) for the _setjmp(3), _longjmp(3),
setjmp(3) and longjmp(3) C library functions.  This is only
included when the C library is built with hardware floating point
support (or when "SOFTFLOAT" is not defined).

Submitted by: sson
Sponsored by: DARPA, AFRL

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

9 years agoMFC r277236:
kib [Thu, 22 Jan 2015 09:07:02 +0000 (09:07 +0000)]
MFC r277236:
For sigaction(2), ignore possible garbage in sa_flags for sa_handler
== SIG_DFL or SIG_IGN.

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

9 years agoMFC r277211:
kib [Thu, 22 Jan 2015 09:02:58 +0000 (09:02 +0000)]
MFC r277211:
fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for
compat32.

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

9 years agoMFC r277216:
gjb [Thu, 22 Jan 2015 02:24:09 +0000 (02:24 +0000)]
MFC r277216:
  Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 272666: Fix build for i386 kernels with out 'I686_CPU'.
jhb [Wed, 21 Jan 2015 17:59:32 +0000 (17:59 +0000)]
MFC 272666: Fix build for i386 kernels with out 'I686_CPU'.

Reported by: Mike Tancsa <mike@sentex.net>

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

9 years agoMFC r276063:
smh [Wed, 21 Jan 2015 09:45:48 +0000 (09:45 +0000)]
MFC r276063:
Standardise on illumos for #ifdef's in zvol.c

MFC r276066:
Refactor zvol locking to minimise diff with upstream

MFC r276069:
Fix panic when resizing ZFS zvol's

Sponsored by: Multiplay

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

9 years agoMFC r272509 (by delphi):
smh [Wed, 21 Jan 2015 09:39:20 +0000 (09:39 +0000)]
MFC r272509 (by delphi):
Diff reduction with upstream

Sponsored by: Multiplay

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

9 years agoMFC r275907:
ngie [Tue, 20 Jan 2015 23:39:08 +0000 (23:39 +0000)]
MFC r275907:

r275907 (by ngie):

  Fix building/installing tests when TESTSBASE != /usr/tests

  The work in r258233 hardcoded the assumption that tests was the last component
  of the tests tree by pushing tests as an explicit prefix for the paths in
  BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
  of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
  provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

  One thing that r258233 did properly though was remove "/usr/tests" creation
  from BSD.usr.dist -- that should have not been there in the first place. That
  was an "oops" on my part for the work that was originally committed in r241823

  Phabric: D1301
  Reviewed by: imp
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r267004,r274592:
ngie [Tue, 20 Jan 2015 21:59:48 +0000 (21:59 +0000)]
MFC r267004,r274592:

r267004 (by gahr):

  - Use strlen instead of hardcoding a number
  - Terminate a sentence with a period

  Approved by: cognet

r274592 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase and
  rename as lib/libc/stdio/fmemopen2_test

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276590:
ngie [Tue, 20 Jan 2015 21:48:42 +0000 (21:48 +0000)]
MFC r276590:

r276590 (by jilles):

  Link lib/libc/c063 tests to the build.

  Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's
  request; the includes are clearly necessary for struct stat.

  The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with
  faccessat(), which is not specified by POSIX.1-2008.

  Differential Revision: https://reviews.freebsd.org/D1411
  Reviewed by: ngie

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

9 years agoMFC r276318:
ngie [Tue, 20 Jan 2015 21:46:04 +0000 (21:46 +0000)]
MFC r276318:

r276318 (by ngie):

  Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

  Reported by: Beeblebrox <zaphod@berentweb.com>

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

9 years agoMFC r274075,r274581,r274582,r274595:
ngie [Tue, 20 Jan 2015 21:42:40 +0000 (21:42 +0000)]
MFC r274075,r274581,r274582,r274595:

r274075 (by ngie):

  Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
  500 new testcases

  Various TODOs have been sprinkled around the Makefiles for items that even need
  to be ported (missing features), testcases have issues with building/linking, or
  issues at runtime.

  A variant of this code has been tested extensively on amd64 and i386
  10-STABLE/11-CURRENT for several months without issue. It builds on other
  architectures, but the code will remain off until I have prove it works on
  virtual hardware or real hardware on other architectures

  In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274581 (by ngie):

  Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase and
  rename as lib/libc/gen/arc4random_test

  Sponsored by: EMC / Isilon Storage Division

r274582 (by ngie):

  Remove test-arc4random from this Makefile so others can continue to use
  this as-is for the time being

r274595 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and
  Rename as lib/libc/stdio/fpclassify2_test

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277128:
trasz [Tue, 20 Jan 2015 20:44:16 +0000 (20:44 +0000)]
MFC r277128:

Fix detection of ext2/ext3 filesystems that lack labels.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276704:
trasz [Tue, 20 Jan 2015 20:42:55 +0000 (20:42 +0000)]
MFC r276704:

Fix memory leaks.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276703:
trasz [Tue, 20 Jan 2015 20:41:32 +0000 (20:41 +0000)]
MFC r276703:

Remove leftovers.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275680:
trasz [Tue, 20 Jan 2015 20:39:29 +0000 (20:39 +0000)]
MFC r275680:

Add fstyp(8).  This utility, named after its SVR4 counterpart, detects
filesystems.  It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision: https://reviews.freebsd.org/D1255
Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276892:
hselasky [Tue, 20 Jan 2015 05:12:30 +0000 (05:12 +0000)]
MFC r276892:
Add support for USB device side mode to the USB modem driver.

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

9 years agoMFC r276825 and r277372:
hselasky [Tue, 20 Jan 2015 05:00:38 +0000 (05:00 +0000)]
MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".

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

9 years agoMFC r276491:
bryanv [Mon, 19 Jan 2015 17:02:30 +0000 (17:02 +0000)]
MFC r276491:

  Add softc flag for when the indirect descriptor feature was negotiated

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

9 years agoMFC r276489:
bryanv [Mon, 19 Jan 2015 17:00:53 +0000 (17:00 +0000)]
MFC r276489:

  Use the appropriate IPv4 or IPv6 TSO HW assist flag

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

9 years agoMFC r277055:
kib [Mon, 19 Jan 2015 11:07:29 +0000 (11:07 +0000)]
MFC r277055:
Revert r263475: TDP_DEVMEMIO no longer needed.

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

9 years agoMFC r277051:
kib [Mon, 19 Jan 2015 11:02:23 +0000 (11:02 +0000)]
MFC r277051:
Fix several issues with /dev/mem and /dev/kmem devices on amd64.

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

9 years agoMFH: r277085
brueffer [Mon, 19 Jan 2015 10:57:00 +0000 (10:57 +0000)]
MFH: r277085

Fix a typo in the FFS maxbpg option, it was erroneously spelled maxbpf.

The error has been reported to and fixed in the NetBSD upstream version as well.

PR:             196598
Submitted by:   Dan McGregor

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

9 years agoMFC r277047:
kib [Mon, 19 Jan 2015 10:52:55 +0000 (10:52 +0000)]
MFC r277047:
For x86, read MAXPHYADDR into variable cpu_maxphyaddr.

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

9 years agoMFC r276805:
ngie [Mon, 19 Jan 2015 07:29:28 +0000 (07:29 +0000)]
MFC r276805:

X-MFC note: the svn:mergeinfo for this MFC was accidentally committed via
            r277371

r276805 (by ngie):

  Build contrib/ofed/usr.{bin,lib} in parallel

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276804:
ngie [Mon, 19 Jan 2015 07:24:18 +0000 (07:24 +0000)]
MFC r276804:

r276804 (by ngie):

  Fix 'make depend' before infiniband headers have been installed to build host
  by removing space between -I and the header directory

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r277272:
ngie [Mon, 19 Jan 2015 07:19:56 +0000 (07:19 +0000)]
MFC r277272:

r277272 (by ngie):

  Don't call abort on usage errors; print out the usage message instead

  PR: 196793
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r276798:
hselasky [Mon, 19 Jan 2015 07:18:59 +0000 (07:18 +0000)]
MFC r276798:
Fix handling of an error case when the MUSB driver is operating in USB
device side mode.

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

9 years agoMFC r277044:
hselasky [Mon, 19 Jan 2015 07:06:15 +0000 (07:06 +0000)]
MFC r277044:
Increase the maximum number of dynamic USB quirks. USB memory stick
devices which don't support the synchronize cache SCSI command are
likely to also not support the prevent-allow medium removal SCSI
command.

PR: 185747

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

9 years agoMFC r277212:
hselasky [Mon, 19 Jan 2015 06:57:51 +0000 (06:57 +0000)]
MFC r277212:
Fix compilation for 32-bit architectures.

PR: 196580
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276959:
np [Sun, 18 Jan 2015 20:38:38 +0000 (20:38 +0000)]
MFC r276959:
cxgb: replace r273280 with a more comprehensive fix.

Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.

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

9 years agoFix known issues which blow up the process after dlopen("libthr.so")
kib [Sun, 18 Jan 2015 11:54:20 +0000 (11:54 +0000)]
Fix known issues which blow up the process after dlopen("libthr.so")
(or loading a dso linked to libthr.so into process which was not
linked against threading library).

MFC r276630:
Remove interposing, fix malloc, reinstall signal handlers wrappers on
libthr load.

MFC r276681:
Avoid calling internal libc function through PLT or accessing data
though GOT.

MFC r277032:
Reduce the size of the interposing table and amount of
cancellation-handling code in the libthr.

MFC note:
r276646 ("do not erronously export 'openat' symbol from rtld") is not
applicable to stable/10 yet, since PATHFDS support was not merged.

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

9 years agoMFC r277023:
kib [Sun, 18 Jan 2015 09:49:32 +0000 (09:49 +0000)]
MFC r277023:
Avoid excessive flushing and do missed neccessary flushing in the IOMMU
page table update code.

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

9 years agoMFC r276517:
dim [Sat, 17 Jan 2015 12:54:02 +0000 (12:54 +0000)]
MFC r276517:

Pull in r200010 from upstream libc++ trunk (by Marshall Clow):

  Rename some internal templates to avoid conflict with complier
  intrinsics. __is_constructible --> __libcpp_is_constructible,
  __is_nothrow_constructible --> __libcpp_is_nothrow_constructible, and
  __is_nothrow_assignable --> __libcpp_is_nothrow_assignable. No
  functionality change.

Pull in r206805 from upstream libc++ trunk (by Marshall Clow):

  Use compiler intrinsic __is_constructible if available

This should fix building parts of world with -std=c++11 enabled.

Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>

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

9 years agoMFC r276901:
ae [Sat, 17 Jan 2015 11:43:13 +0000 (11:43 +0000)]
MFC r276901:
  Move the recursion detection code into separate function
  gif_check_nesting(). Also make MTAG_GIF definition private to if_gif.c.

MFC r276907:
  Restore Ethernet-within-IP Encapsulation support that was broken after
  r273087. Move all checks from gif_output() into gif_transmit(). Previously
  they were checked always, because if_start always called gif_output.
  Now gif_transmit() can be called directly from if_bridge() code and we need
  do checks here.

  PR: 196646

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

9 years agoMFC r277147:
dim [Sat, 17 Jan 2015 11:41:04 +0000 (11:41 +0000)]
MFC r277147:

Since the merge of file 5.21 in r276415 and r276416, stable/9 and
stable/10 cannot be built from FreeBSD 8.x.  This is because the
build-tools stage requires libmagic, but lib/libmagic/config.h was
generated on head, and it now enables using the xlocale.h APIs, which
are not supported on 8.x (and on 9.x before __FreeBSD_version 900506).

See also the start of this thread on -stable:
https://lists.freebsd.org/pipermail/freebsd-stable/2015-January/081521.html

To fix this, conditionalize the use of xlocale.h APIs to make
bootstrapping from older FreeBSD versions work correctly.

Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D1518

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

9 years agoMFC r276906:
dchagin [Sat, 17 Jan 2015 06:18:45 +0000 (06:18 +0000)]
MFC r276906:

Allow clock_getcpuclockid() on the CPU-time clock for zombie process.
Posix does not prohibit this.

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

9 years agoMFC r272947, r272950:
pfg [Sat, 17 Jan 2015 01:20:28 +0000 (01:20 +0000)]
MFC r272947, r272950:

tcpd: complete function prototypes.
tcpd.h: add prototype for hosts_ctl

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR: 32808
PR: 42336

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

9 years agoMFC r277158:
jamie [Sat, 17 Jan 2015 01:16:03 +0000 (01:16 +0000)]
MFC r277158:

  Don't set prison's pr_ip4s or pr_ip6s to -1.

PR: 196474

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

9 years agoMFC r276412:
nwhitehorn [Wed, 14 Jan 2015 21:23:46 +0000 (21:23 +0000)]
MFC r276412:

Fix loader's ability to read the 10.1 release PowerPC ISOs. There appears to
be some kind of problem with the version of makefs used for these disks.
There may be a better way to handle this problem, so I've set the MFC
timer for a fairly long time period.

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

9 years agoMFC r275752:
trasz [Wed, 14 Jan 2015 11:31:31 +0000 (11:31 +0000)]
MFC r275752:

Fix quick_exit(3) manual page to match reality - the status was missing.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275510:
trasz [Wed, 14 Jan 2015 11:29:16 +0000 (11:29 +0000)]
MFC r275510:

Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as the
former is obsolete.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276981:
hselasky [Wed, 14 Jan 2015 05:29:35 +0000 (05:29 +0000)]
MFC r276981:
Fix support for ConnectX2 hardware.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r276419:
wblock [Tue, 13 Jan 2015 22:51:44 +0000 (22:51 +0000)]
MFC r276419:

Move the explanation for examples before the example itself.  Add
numerous QEMU examples and explanations supplied by sbruno, with thanks
to Ingo Schwarze for help with the mdoc markup.  Code, text, testing,
proofreading, cinematography, stunts, and the haunting theme song
supplied by sbruno.

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

9 years agoMFC r276426:
wblock [Tue, 13 Jan 2015 22:41:38 +0000 (22:41 +0000)]
MFC r276426:

Remove the svn:executable property from iscsi.4.

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

9 years agoMFC r276749:
hselasky [Tue, 13 Jan 2015 17:07:30 +0000 (17:07 +0000)]
MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after: 1 week
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276879:
hselasky [Tue, 13 Jan 2015 16:57:02 +0000 (16:57 +0000)]
MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband.

PR: 196631
Sponsored by: Mellanox Technologies

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

9 years agoMFC:
ganbold [Tue, 13 Jan 2015 07:45:16 +0000 (07:45 +0000)]
MFC:
Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)

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

9 years agoMFC r273048 by jhb:
dchagin [Tue, 13 Jan 2015 06:23:38 +0000 (06:23 +0000)]
MFC r273048 by jhb:

Fix most of the warnings in kdump(1).

    r276758:

Eliminate new clang warnings.

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

9 years agoBump version after r277086. yacc(1) is now built with maximum MAXTABLE.
jkim [Mon, 12 Jan 2015 20:27:06 +0000 (20:27 +0000)]
Bump version after r277086.  yacc(1) is now built with maximum MAXTABLE.

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

9 years agoMFC: r274460, r274475
jkim [Mon, 12 Jan 2015 20:14:31 +0000 (20:14 +0000)]
MFC: r274460, r274475

Increase MAXTABLE to the maxmimum possible value and regen test cases.

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

9 years agoMFH: r276695
brueffer [Mon, 12 Jan 2015 10:43:40 +0000 (10:43 +0000)]
MFH: r276695

Add a very basic manpage for the Etherswitch framework.

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

9 years agoMFC r276012:
smh [Mon, 12 Jan 2015 10:25:07 +0000 (10:25 +0000)]
MFC r276012:
Add a constant AHCI_MAX_IRQS removing magic number

MFC r276013:
Clamp ahci max irq's to AHCI_MAX_IRQS

MFC r276016:
Return the error from ahci_setup_interrupt in ahci_attach

MFC r276019:
style (9) nits

Sponsored by: Multiplay

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

9 years agoMFH (r273114, r273124): disable SSLv3 by default.
des [Mon, 12 Jan 2015 10:02:23 +0000 (10:02 +0000)]
MFH (r273114, r273124): disable SSLv3 by default.

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

9 years agoDocument r276991, Remove termcap(5) entry reordering; install
gjb [Mon, 12 Jan 2015 03:14:54 +0000 (03:14 +0000)]
Document r276991, Remove termcap(5) entry reordering; install
termcap(5) verbatim instead.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r276986, hint.acpi_throttle.0.disabled="1" and
gjb [Mon, 12 Jan 2015 02:50:22 +0000 (02:50 +0000)]
Document r276986, hint.acpi_throttle.0.disabled="1" and
hint.p4tcc.0.disabled="1" by default.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC discussed with: jilles, -developers
ngie [Sun, 11 Jan 2015 19:15:28 +0000 (19:15 +0000)]
MFC discussed with: jilles, -developers

MFC r266971:

  - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).
  Update the manpage to reflect this change.
  - Always set the current position to the first null-byte when opening in append
  mode. This makes the implementation compatible with glibc's. Update the test
  suite.

  Reported by: pho
  Approved by: cognet

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

9 years agoCorrect comparison of IPv6 wildcard address.
ume [Sun, 11 Jan 2015 18:39:27 +0000 (18:39 +0000)]
Correct comparison of IPv6 wildcard address.

MFH: r276814

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

9 years agoMFC r275687,r275692:
ngie [Sun, 11 Jan 2015 18:13:56 +0000 (18:13 +0000)]
MFC r275687,r275692:

Relnotes: yes

r275687:

  Remove termcap entry reordering; install the file verbatim instead

  termcap entry reordering requires ex (which is available via usr.bin/vi), which
  breaks on build hosts where installworld is run with MK_VI == no (or when
  make delete-old is run on ^/projects/building-blocks as vi, et al, are
  removed on the branch when the knob is tweaked to => "no")

  Reordering termcap was believed to improve performance, but the file is now
  accessed via /etc/termcap.db, so /etc/termcap (and /usr/share/misc/termcap by
  proxy) access is less preferred.

  Reordering the file broke the historical comment <-> entry mapping as well,
  which could muddle the purpose of entries in the file, so it could be
  potentially harmful to readers in its reordered state.

  Discussion took place on hackers@ here:
  https://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046657.html

  Discussed with: -hackers, mp
  Sponsored by: EMC / Isilon Storage Division

r275692:

  Fix building termcap.db when make obj is run beforehand from a clean tree by
  using make variables for the filenames, which helps resolve pathing
  appropriately when running cap_mkdb

  Pointyhat to: me

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

9 years agoMFC r265329:
nwhitehorn [Sun, 11 Jan 2015 17:10:07 +0000 (17:10 +0000)]
MFC r265329:
Disable ACPI and P4TCC throttling by default, following discussion on
freebsd-current. These CPU speed control techniques are usually unhelpful
at best. For now, continue building the relevant code into GENERIC so that
it can trivially be re-enabled at runtime if anyone wants it.

Relnotes: yes

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

9 years agoMFC r276815:
hselasky [Sun, 11 Jan 2015 14:36:26 +0000 (14:36 +0000)]
MFC r276815:
Fix for compilation issue. Don't use the "abs()" function for unsigned
computations.

PR: 196597
Sponsored by: Mellanox Technologies

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

9 years agoMFC r276823:
hselasky [Sun, 11 Jan 2015 14:22:00 +0000 (14:22 +0000)]
MFC r276823:
Add makefile for the "osmtest" utility. While at it:
- Fix depend target by removing a space after an "-I" inclusion option.
- Fix some minor compile issues in the "osmtest" utility.

PR: 196580

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

9 years agoMFC r276611:
hselasky [Sun, 11 Jan 2015 13:59:25 +0000 (13:59 +0000)]
MFC r276611:
Make sure an error case exits unlocked.

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

9 years agoMFC r276534:
hselasky [Sun, 11 Jan 2015 12:25:10 +0000 (12:25 +0000)]
MFC r276534:
The "vt_suspend_flush_timer()" function is sometimes called locked
which prevents us from doing a "callout_drain()" call. The callout in
question has a lock associated with it and we are not freeing the
callout. That means we can use the "callout_stop()" function to
atomically stop the callback iff the "callout_stop()" function is
called locked. This patch applies proper locking to "callout_stop()"
and replaces a "callout_drain()" with a "callout_stop()".

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

9 years agoMFC r276532 and r276626:
hselasky [Sun, 11 Jan 2015 12:17:27 +0000 (12:17 +0000)]
MFC r276532 and r276626:
The "cnputs_mtx" mutex must be allowed to recurse. Debug prints and/or
witness printouts in the console driver clients can cause this mutex
to recurse by calls to "printf()" from witness for example. In
particular this can happen if "debug.witness.skipspin=0" is set in the
boot environment.

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

9 years agoMFC r271156 and r273376:
hselasky [Sun, 11 Jan 2015 12:08:17 +0000 (12:08 +0000)]
MFC r271156 and r273376:
- Add IDs for Intel Patsburg USB 2.0 controller.
- Add the Intel BayTrail USB device which needs port routing for USB 3.0.

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

9 years agoMFC r276321, r276404, r276407 and r276799:
hselasky [Sun, 11 Jan 2015 11:28:03 +0000 (11:28 +0000)]
MFC r276321, r276404, r276407 and r276799:
Various XHCI fixes and improvements:
- Improve and fix MSI interrupt allocation, setup and release.
- Add missed flushing of data which can happen when "xhci_configure_mask()"
  is called from "xhci_configure_reset_endpoint()". Ensure the 3-strikes
  error feature is always enabled except for ISOCHRONOUS transfers.
- Allow systems having a page size greater than 4K to use fewer
  scatter-gather XHCI TRB entries for its payload data. The XHCI
  controller can handle at least 65536 bytes per scatter-gather list
  entry.

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

9 years agoMFH r276083:
marck [Sun, 11 Jan 2015 08:36:11 +0000 (08:36 +0000)]
MFH r276083:

  Add VAMI (VMware Appliance Management Interface) port.

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

9 years agoRegen for r276955 (__getcwd path bug).
dchagin [Sun, 11 Jan 2015 07:04:18 +0000 (07:04 +0000)]
Regen for r276955 (__getcwd path bug).

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

9 years agoMFC r276564, r276654:
dchagin [Sun, 11 Jan 2015 07:02:03 +0000 (07:02 +0000)]
MFC r276564, r276654:

Cast *path to silence clang -Wpointer-sign warning.

Indeed, instead of hiding the kern___getcwd() bug by bogus cast
in r276564, change path type to char * (pathnames are always char *).
And remove bogus casts of malloc().
kern___getcwd() internally doesn't actually use or support u_char *
paths, except to copy them to a normal char * path.

These changes are not visible to libc as libc/gen/getcwd.c misdeclares
__getcwd() as taking a plain char * path.

While here remove _SYS_SYSPROTO_H_ for __getcwd() syscall as
we always have sysproto.h.

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

9 years agoMFC r276765, r276766, r276820, r276822, r276827, r276828:
gjb [Sun, 11 Jan 2015 01:38:32 +0000 (01:38 +0000)]
MFC r276765, r276766, r276820, r276822, r276827, r276828:

r276765:
  Update pkg-stage.sh to be compatible with pkg-1.4.x.

  In 1.3.x and earlier, ABI format is, for example,
  freebsd:11:x86:64.

  In 1.4.x, ABI format is FreeBSD:11:amd64, and a new
  configuration entry, ALTABI, is: freebsd:11:x86:64.

  Export PKG_ABI and PKG_ALTABI accordingly, and if
  PKG_ALTABI is set, create a symlink within the dvd
  PKG_CACHEDIR so both new and old ABI directories
  exist.

r276766:
  Properly change directories before creating the
  PKG_ALTABI -> PKG_ABI symlink.

r276820:
  Print informational output when NOPORTS is set,
  which would otherwise cause pkg-stage.sh to
  silently exit.

r276822:
  Ensure /var/run/ld-elf.so.hints exists before building
  pkg(8).

r276827:
  Ensure the ports directories exist for the list of
  packages intended to be included on the DVD, and
  remove any nonexistent ports from the final list.

  Print the list of missing paths, and ensure that
  DVD_PACKAGES is non-zero length (which should never
  happen).

r276828:
  Switch to x11/gnome3 now that x11/gnome2 no longer
  exists in the ports tree.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276627:
kib [Sat, 10 Jan 2015 09:22:17 +0000 (09:22 +0000)]
MFC r276627:
Add rtld private interface for dso to detect dynamic loading
vs. static linking.

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

9 years agoMFC r265218 (smh):
delphij [Sat, 10 Jan 2015 01:05:12 +0000 (01:05 +0000)]
MFC r265218 (smh):

Removed pointless / duplicated call to trim_map_first.

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

9 years agoMFC r264392 (davide):
delphij [Sat, 10 Jan 2015 01:01:12 +0000 (01:01 +0000)]
MFC r264392 (davide):

Fix a panic in zfs_rename().
this is due to a wrong dereference of a vnode when it's not locked and
can be (potentially) recycled. 'sdvp' cannot be locked on zfs_rename()
entry point because the VFS can't be sure that this scenario is
LOR-free (it might violate the parent->child lock acquisition rule).
Dereference 'tdvp' instead, which is already locked on entry, and access
'sdvp' fields only when it's safe, i.e. under ZFS_ENTER scope.

While at it, remove the usage of VOP_REALVP, as long as this is a NOP
on FreeBSD.

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

9 years agoMFC r276550:
dchagin [Fri, 9 Jan 2015 07:32:43 +0000 (07:32 +0000)]
MFC r276550:
Remove Giant from linux_getcwd() due to VFS is MPSAFE now.

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

9 years agoMFC r276589:
loos [Fri, 9 Jan 2015 03:35:19 +0000 (03:35 +0000)]
MFC r276589:

puc(4): Add an entry for the Feasso PCI FPP-02 2S1P card.

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

9 years agoMFC r276249:
loos [Fri, 9 Jan 2015 03:32:51 +0000 (03:32 +0000)]
MFC r276249:

Fix the musb initialization sequence on AM335x.

According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the
USB reset pulse has an undocumented duration of 200ns and during this
period the module must not be acessed.

We wait for 100us to take into account for some imprecision of the early
DELAY() loop.

This fixes the eventual 'External Non-Linefetch Abort (S)' that happens at
boot while resetting the musb subsystem.

While here, enable the USB subsystem clock before the first access.

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

9 years agoMFC r274416:
loos [Fri, 9 Jan 2015 03:26:18 +0000 (03:26 +0000)]
MFC r274416:

Fix a few cases of use of uninitialized variables.  Found with -Wall.

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

9 years agoMFC r273606:
loos [Fri, 9 Jan 2015 02:51:06 +0000 (02:51 +0000)]
MFC r273606:

Fix cpsw_detach() to not panic when called from cpsw_attach().

For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY
and fails to attach calling cpsw_detach() which end up in a panic.

Fix it by doing the proper check before detach the miibus and also fix the
leak of few variables.

And to actually make it work, ether_ifattach() has to be moved to the end
of cpsw_attach() to avoid a race where calling ether_ifdetach() before
domain_init() (which will only run later on) would make it crash at
INP_INFO_RLOCK() on in_pcbpurgeif0().

Tested on:    BBB (am335x)

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

9 years agoMFC r273599:
loos [Fri, 9 Jan 2015 02:47:57 +0000 (02:47 +0000)]
MFC r273599:

Fix a bug where DMA maps created with bus_dmamap_create() won't increment
the map count and without being able to keep track of the current map
allocation, bus_dma_tag_destroy() will fail to proceed and will return
EBUSY even after all the maps have been correctly destroyed with
bus_dmamap_destroy().

Found while testing the detach method of a NIC.

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

9 years agoMFC: r273546
loos [Fri, 9 Jan 2015 02:43:17 +0000 (02:43 +0000)]
MFC: r273546

Fix a bug where some DTS layouts could cause the premature ending of the
search (i.e. without returning any result) and you would end up with a
random MAC address.

Change the search algorithm to a recursive one to ensure that all the nodes
on DTS will be verified.

The previous algorithm could not keep up if the DTS has too many sub-nodes.

While here, fix the punctuation on comments.

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

9 years agoMFC r276314:
loos [Fri, 9 Jan 2015 02:38:12 +0000 (02:38 +0000)]
MFC r276314:

Convert the BSC (i2c) driver to use the new iicbus_get_frequency().

Tested on:    Raspberry pi

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

9 years agoMFC r276523:
kib [Fri, 9 Jan 2015 02:35:19 +0000 (02:35 +0000)]
MFC r276523:
Restore access to the page at zero through /dev/mem after r263475.

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

9 years agoMFC r276522:
kib [Fri, 9 Jan 2015 02:33:12 +0000 (02:33 +0000)]
MFC r276522:
Actually remove GIANT_REQUIRED, declared but not done in r263475.
Style.

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

9 years agoMFC r273610:
loos [Fri, 9 Jan 2015 02:30:30 +0000 (02:30 +0000)]
MFC r273610:

Add an iicbus_reset() method to bcm2835_bsc.  While it is generally not
used for kernel devices it is used by i2c(8).

This fix the 'error: Device not configured' when i2c(8) tries to reset the
controller:

# i2c -r
Resetting I2C controller on /dev/iic0: error: Device not configured

For now use conservative settings for default i2c speeds.

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

9 years agoMFC r273329, r273337 and r274415
loos [Fri, 9 Jan 2015 02:25:19 +0000 (02:25 +0000)]
MFC r273329, r273337 and r274415

Add another wakeup() after actually set the bus as free.

This fix a race where the threads waiting for the bus would wake up early
and still see bus as busy.

While here, give a better description to wmesg for the two use cases we
have (bus and io waiting).

Fix the mtx_sleep() error checking, catch all errors and not only
EWOULDBLOCK.

Do not print any message at errors.  The errors are properly sent to upper
layers which should be able to deal with it, including printing the errors
when they need to.

The error message was quite annoying while scanning the i2c bus.

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

9 years agoMFC: r276861, r276863
jkim [Fri, 9 Jan 2015 00:58:20 +0000 (00:58 +0000)]
MFC: r276861, r276863

Merge OpenSSL 1.0.1k.

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

9 years agoMFC r276512:
dchagin [Thu, 8 Jan 2015 06:32:56 +0000 (06:32 +0000)]
MFC r276512:
Fix Clang -Wpointer-sign warnings.

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

9 years agoMFC r276511:
dchagin [Thu, 8 Jan 2015 06:29:52 +0000 (06:29 +0000)]
MFC r276511:
Fix Clang warning: passing 'unsigned int *' to parameter of type 'int *'
converts between pointers to integer types with different sign.

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

9 years agoRegen for r276810.
dchagin [Thu, 8 Jan 2015 06:24:43 +0000 (06:24 +0000)]
Regen for r276810.

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

9 years agoMFC r276508, r276509:
dchagin [Thu, 8 Jan 2015 06:23:11 +0000 (06:23 +0000)]
MFC r276508, r276509:
Correct an argument status of wait4 syscall for Linuxulator.

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

9 years agoMFC r276218:
pfg [Thu, 8 Jan 2015 03:44:54 +0000 (03:44 +0000)]
MFC r276218:

patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from: OpenBSD

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

9 years agoMFC r275709
emax [Wed, 7 Jan 2015 20:01:15 +0000 (20:01 +0000)]
MFC r275709

handle "Kana" and "Eisu" keys on Apple Wireless Keyboard (JIS)

PR: 187470
Submitted by: naito.yuichiro

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

9 years agoMFC r274722:
trasz [Wed, 7 Jan 2015 18:38:04 +0000 (18:38 +0000)]
MFC r274722:

Remove acl_size.c; apparently it was never used.

PR: 194398
Submitted by: ngie@
Sponsored by: The FreeBSD Foundation

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