]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r279776:
dchagin [Wed, 25 Mar 2015 09:58:02 +0000 (09:58 +0000)]
MFC r279776:

Add a cred parameter to the VOP_VPTOCNP(9) manpage.
While here fix igor warning about new line.

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

9 years agoMFstable/10 r280427:
ngie [Tue, 24 Mar 2015 08:27:01 +0000 (08:27 +0000)]
MFstable/10 r280427:

MFC r278204:

Sort the entries by build knob, then MACHINE_ARCH like other areas of the tree

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r278052,r278190,r278191,r278574,r278575,r280422:
ngie [Tue, 24 Mar 2015 08:22:48 +0000 (08:22 +0000)]
MFstable/10 r278052,r278190,r278191,r278574,r278575,r280422:

r278052:

MFC r271892:

r271892:

  Sort the optional rc.d scripts by their knobs

  Sponsored by: EMC / Isilon Storage Division

r278190:

MFC r277732:

r277732:

  Honor MK_API in etc/rc.d

  Sponsored by: EMC / Isilon Storage Division

r278191:

MFC r277733:

r277733:

  Honor MK_AMD with etc/rc.d/amd

  Sponsored by: EMC / Isilon Storage Division

r278574:

MFC r277736:

r277736:

  Honor MK_ACCT with etc/rc.d/accounting

  Sponsored by: EMC / Isilon Storage Division

r278575:

Remove etc/rc.d/accounting from FILES

r280422:

MFC r271893,r271895,r272043,r278249,r278282,r278466:

r271893:

Don't install /etc/rc.d/rwho unless MK_RCMDS == yes

Sponsored by: EMC / Isilon Storage Division

r271895:

Don't install /etc/rc.d/ftp-proxy unless MK_PF == yes

Sponsored by: EMC / Isilon Storage Division

r272043:

Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division

r278249:

Honor the following flags with the following rc.d scripts for services that can
be easily decoupled from the boot process without disrupting other services

- MK_APM && MK_ACPI: powerd
- MK_BOOTPARAMD: bootparams
- MK_FTP: ftpd
- MK_INETD: inetd
- MK_LEGACY_CONSOLE: moused, syscons
- MK_MAIL: othermta
- MK_NS_CACHING: nscd
- MK_NTP: ntpd (ntpdate is required by other services and can't be easily
                conditionalized -- yet..)
- MK_ROUTED: routed
- MK_SENDMAIL: sendmail
- MK_TIMED: timed
- MK_VI: virecover

Sponsored by: EMC / Isilon Storage Division

r278282:

Use FILES+= idiom instead of _inetd when referencing inetd rc.d script

This was a discrepancy between ^/projects/building-blocks and ^/head that I
didn't resolve before committing the change to ^/head

Pointyhat to: me
Reported by: jhb
Sponsored by: EMC / Isilon Storage Division

r278466:

Remove explicit routing/sendmail rc.d inclusion in FILES

Reported by: Guy Yur <guyyur@gmail.com>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r280419,r280420:
ngie [Tue, 24 Mar 2015 08:06:45 +0000 (08:06 +0000)]
MFstable/10 r280419,r280420:

r280419:

MFC r278135,r278202:

r278135 (by amdmi3):

- Remove more files when MK_USB == no

Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

r278202:

Clean up more usb related files when MK_USB == no when dealing with
manpages, libraries, and binaries

Sponsored by: EMC / Isilon Storage Division

r280420:

Forced commit to note that the previous commit to this file included the
following MFC as well:

MFC 278251:

Honor the following flags for items that can be conditionalized out of the
build/install without disrupting other dependent services (see r278249, et
al):

- MK_LOCATE
- MK_MAN
- MK_NLS
- MK_OPENSSL
- MK_PKGBOOTSTRAP
- MK_SENDMAIL

Additional flags need to be handled in etc/Makefile, but it requires
refactoring the relevant scripts in etc/rc.d/*

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r278569,r279505,r279506:
ngie [Tue, 24 Mar 2015 07:11:54 +0000 (07:11 +0000)]
MFstable/10 r278569,r279505,r279506:

r278569:

MFC r278182:

r278182:

  Conditionalize building radius support into libpam, ppp, etc via
  MK_RADIUS_SUPPORT

  Sponsored by: EMC / Isilon Storage Division

r279505:

MFC r278192:

Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division

r279506:

MFC r278193:

Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC of 280413,tzdata9:
edwin [Tue, 24 Mar 2015 06:09:04 +0000 (06:09 +0000)]
MFC of 280413,tzdata9:

Release 2015b - 2015-03-19 23:28:11 -0700

  Changes affecting future time stamps

    Mongolia will start observing DST again this year, from the last
    Saturday in March at 02:00 to the last Saturday in September at 00:00.
    (Thanks to Ganbold Tsagaankhuu.)

    Palestine will start DST on March 28, not March 27.  Also,
    correct the fall 2014 transition from September 26 to October 24.
    Adjust future predictions accordingly.  (Thanks to Steffen Thorsen.)

  Changes affecting past time stamps

    The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a
    regression.  (Thanks to Stuart Bishop for reporting the problem.)

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: America/Antigua, America/Cayman,
    Pacific/Midway, and Pacific/Saipan.

  Changes affecting time zone abbreviations

    Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD".
    (Thanks to Hank W.)

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

9 years agoMFC r280307:
pfg [Tue, 24 Mar 2015 01:32:46 +0000 (01:32 +0000)]
MFC r280307:
bsdgrep: fix regression in the -f option since r268799

Caused by an incomplete merge from NetBSD.

PR: 198725

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

9 years agoMFC r277948:
pfg [Mon, 23 Mar 2015 20:02:16 +0000 (20:02 +0000)]
MFC r277948:
msun: use previously ignored "in" value.

This fixes evaluation of exceptional values in scalblnl().
While here, simplify the code as suggested by Bruce Evans.

Reported by: clang static analyzer

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

9 years agoMFC r279037:
pfg [Mon, 23 Mar 2015 19:53:37 +0000 (19:53 +0000)]
MFC r279037:
dbm_delete(3): correct man page to match current behaviour.

"The dbm_store() and dbm_delete() functions shall return 0 when they
succeed and a negative value when they fail."

Reference:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/dbm_clearerr.html

PR: 42422
Suggested by: delphij

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

9 years agoMFC revisions 268860, 268863, 274068, 274119, 279624:
dteske [Mon, 23 Mar 2015 19:25:34 +0000 (19:25 +0000)]
MFC revisions 268860, 268863, 274068, 274119, 279624:
r268860: Minor enhancements, bug fixes, man-page adjustments to sysrc(8)
r268863: Bump date/copyright in man-page
r274068: Add key+=append syntax
r279624: Add key-=remove syntax
r274119: Add EXAMPLES-section entries for new syntax

Reported by: lme (r268860)
Reviewed by: shurd (r274068)
Thanks to: seanc (r274068, r279624, r274119)

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

9 years agoMFstable/10 r280340,r280341,r280356:
ngie [Sun, 22 Mar 2015 23:20:09 +0000 (23:20 +0000)]
MFstable/10 r280340,r280341,r280356:

r280340:

MFC r279197,r279198:

r279197:

Parallelize building bootstrap-tools

Differential Revision: https://reviews.freebsd.org/D1901
Reviewed by: ian
No serious objections from: imp

r279198:

Fill in missing dependencies for dtrace related tools so the bootstrap-tools
compiles properly on older hosts

Pointyhat to: me

r280341:

Remove dependency between usr.bin/m4 and lib/libohash

libohash doesn't exist on stable/10 (only head)

Not sure why my make buildworld didn't catch any issues

This is a direct commit to stable/10 as a followup to r280340

r280356:

Defeat race with texinfo tools built with make bootstrap-tools

This is a direct commit to stable/10 because texinfo has been removed from
head

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

9 years agoMFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
jah [Sun, 22 Mar 2015 18:31:28 +0000 (18:31 +0000)]
MFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
drm2 devices to work with Intel DMAR enabled for the system, as long as
DMAR is disabled for the drm2 device.

Reviewed by: kib (mentor)

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

9 years agoMFstable/10 r279495:
ngie [Sun, 22 Mar 2015 06:17:26 +0000 (06:17 +0000)]
MFstable/10 r279495:

MFC r278891:

Add the mnt_lockref field to the ddb(4) 'show mount' command

Differential Revision: https://reviews.freebsd.org/D1688
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r279980:
dim [Sat, 21 Mar 2015 19:20:15 +0000 (19:20 +0000)]
MFC r279980:

Allow relative pathnames in SRCS, so as to enable building software
which includes more than one file with the same name, in different
directories.

For example, setting:

SRCS+= foo/foo.c bar/foo.c baz/foo.c

will now create separate objdirs 'foo', 'bar' and 'baz' for each of the
sources in the list, and use those objdirs for the corresponding object
files.

Reviewed by: brooks, imp
Differential Revision: https://reviews.freebsd.org/D1984

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

9 years agoMerge OpenSSL 0.9.8zf.
jkim [Fri, 20 Mar 2015 21:56:48 +0000 (21:56 +0000)]
Merge OpenSSL 0.9.8zf.

Relnotes: yes

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

9 years agoMFC r279963: Fix SATA Gen3 speed constants.
mav [Fri, 20 Mar 2015 08:29:07 +0000 (08:29 +0000)]
MFC r279963: Fix SATA Gen3 speed constants.

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

9 years agoFix issues with original SA-15:06.openssl commit:
delphij [Fri, 20 Mar 2015 07:11:20 +0000 (07:11 +0000)]
Fix issues with original SA-15:06.openssl commit:

 - Revert a portion of ASN1 change per suggested by OpenBSD
   and OpenSSL developers.  The change was removed from the
   formal OpenSSL release and does not solve security issue.
 - Properly fix CVE-2015-0209 and CVE-2015-0288.

Pointy hat to: delphij

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

9 years agoMFC r278655:
markj [Thu, 19 Mar 2015 23:12:49 +0000 (23:12 +0000)]
MFC r278655:
Add support for decoding multibyte NOPs.

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

9 years agoMFC r279896:
markj [Thu, 19 Mar 2015 23:06:45 +0000 (23:06 +0000)]
MFC r279896:
Document m_collapse().

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

9 years agoFix multiple OpenSSL vulnerabilities.
delphij [Thu, 19 Mar 2015 17:40:43 +0000 (17:40 +0000)]
Fix multiple OpenSSL vulnerabilities.

Security: FreeBSD-SA-15:06.openssl
Security: CVE-2015-0209
Security: CVE-2015-0286
Security: CVE-2015-0287
Security: CVE-2015-0288
Security: CVE-2015-0289
Security: CVE-2015-0293

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

9 years agoMFC r279920:
ae [Thu, 19 Mar 2015 13:33:15 +0000 (13:33 +0000)]
MFC r279920:
  Add if_input_default() method, that will be used for if_input
  initialization, when no input method specified before if_attach().

  This prevents panics when if_input() method called directly e.g.
  from bpf(4) code.

  PR: 192426

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

9 years agoMFC 278327:
jhb [Thu, 19 Mar 2015 13:08:17 +0000 (13:08 +0000)]
MFC 278327:
Change ktrdump to use the more standard -M/-N flags to specify the path
to a crash dump and kernel, respectively.  The existing -m/-e flags are
still supported for backwards compatiblity but are no longer documented.

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

9 years agoMFC r279642: Reenable VIRTIO_BLK_F_TOPOLOGY feature.
mav [Thu, 19 Mar 2015 09:49:12 +0000 (09:49 +0000)]
MFC r279642: Reenable VIRTIO_BLK_F_TOPOLOGY feature.

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

9 years agoMFC r280125:
markj [Wed, 18 Mar 2015 02:29:00 +0000 (02:29 +0000)]
MFC r280125:
Add a missing format string argument.

PR: 197391

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

9 years agoMFC r279783, r279785:
marck [Sun, 15 Mar 2015 19:37:07 +0000 (19:37 +0000)]
MFC  r279783, r279785:

Reword phrase a bit to decrease possible misleading meaning.

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

9 years agoMFC r279779: env: Fix crash when -S string is not empty but no operand
jilles [Sun, 15 Mar 2015 11:56:52 +0000 (11:56 +0000)]
MFC r279779: env: Fix crash when -S string is not empty but no operand
follows.

split_spaces() set argc in main() incorrectly, which caused trouble for
getopt().

Examples:
  env -S '\c'
  env -S -i

PR: 197769

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

9 years agoMFC r279016:
ed [Sun, 15 Mar 2015 09:20:45 +0000 (09:20 +0000)]
MFC r279016:

  Make syslogd work in case shutdown() is POSIX-ly correct.

  On POSIX conformant systems, shutdown() should return ENOTCONN when not
  connected. We attempted to fix this once (kern/84761), but this change
  got backed out because it 'breaks code' (r150155).

  I just reapplied the patch and indeed, syslogd fails on startup. Make it
  easier to re-enable this change in the future by paching up syslogd to
  do the right thing.

Sponsored by: Nuxi

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

9 years agoMFC r279865:
hselasky [Sun, 15 Mar 2015 09:06:59 +0000 (09:06 +0000)]
MFC r279865:
Ensure setting promiscious mode when a network interface is up, is
always non-blocking by not locking a SX type of mutex.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r279722: env: Fix testsuite for additional variables set by sh.
jilles [Sat, 14 Mar 2015 21:07:37 +0000 (21:07 +0000)]
MFC r279722: env: Fix testsuite for additional variables set by sh.

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

9 years agoMFC r279735:
ae [Sat, 14 Mar 2015 14:46:10 +0000 (14:46 +0000)]
MFC r279735:
  Remove extra '&'. sin6 is already a pointer.

PR: 195011

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

9 years agoMFC r279730:
ae [Sat, 14 Mar 2015 14:44:03 +0000 (14:44 +0000)]
MFC r279730:
  lla_lookup() can directly call llentry_free() for static entries
  and the last one requires to hold afdata's wlock.

PR: 197096

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

9 years agoMFC 278321:
jhb [Fri, 13 Mar 2015 20:10:09 +0000 (20:10 +0000)]
MFC 278321:
Use direct hardware access for internal requests for KCS and SMIC.  In
particular, updates to the watchdog should no longer sleep.
- Add a new IPMI_IO_LOCK for low-level I/O access.  Use this for
  kcs_polled_request() and smic_polled_request().
- Add a new backend callback "ipmi_driver_request" to handle a driver
  request.  The new callback performs the request sychronously for KCS
  and SMIC.  SSIF still defers the work to the worker thread since the
  worker thread sleeps during request processing anyway.
- Allocate driver requests on the stack rather than using malloc().

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

9 years agoMFC 278682:
jhb [Fri, 13 Mar 2015 17:45:34 +0000 (17:45 +0000)]
MFC 278682:
Make the extra dependencies in DPADD be dependencies of PROG_FULL and
SHLIB_NAME_FULL so that the full binary is relinked when a dependency
changes.  Right now the existing full binary is left as-is and only
the objcopy to remove debug symbols is run.

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

9 years agoMFC 278292:
jhb [Thu, 12 Mar 2015 15:48:25 +0000 (15:48 +0000)]
MFC 278292:
Add the device ID for the AMT serial port on my Thinkpad T400.

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

9 years agoMFC 277713:
jhb [Thu, 12 Mar 2015 15:08:23 +0000 (15:08 +0000)]
MFC 277713:
If the boot-time memory test is enabled, output a dot ('.') for
each GB of RAM tested so people watching the console can see that
the machine is making progress and not hung.

PR: 196650

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

9 years agoMFC r279588:
ae [Thu, 12 Mar 2015 09:16:50 +0000 (09:16 +0000)]
MFC r279588:
  Fix deadlock in IPv6 PCB code.

  When several threads are trying to send datagram to the same destination,
  but fragmentation is disabled and datagram size exceeds link MTU,
  ip6_output() calls pfctlinput2(PRC_MSGSIZE). It does notify all
  sockets wanted to know MTU to this destination. And since all threads
  hold PCB lock while sending, taking the lock for each PCB in the
  in6_pcbnotify() leads to deadlock.

  RFC 3542 p.11.3 suggests notify all application wanted to receive
  IPV6_PATHMTU ancillary data for each ICMPv6 packet too big message.
  But it doesn't require this, when we don't receive ICMPv6 message.

  Change ip6_notify_pmtu() function to be able use it directly from
  ip6_output() to notify only one socket, and to notify all sockets
  when ICMPv6 packet too big message received.

MFC r279684:
  tcp6_ctlinput() doesn't pass MTU value to in6_pcbnotify().
  Check cmdarg isn't NULL before dereference, this check was in the
  ip6_notify_pmtu() before r279588.

PR: 197059
Sponsored by: Yandex LLC

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

9 years agoMFC r279757:
dim [Wed, 11 Mar 2015 07:22:13 +0000 (07:22 +0000)]
MFC r279757:

Pull in r228344 from upstream libc++ trunk (by Eric Fiselier):

  Get tests running with warnings. Fix warnings in headers and tests

This fixes a number of -Wunused-local-typedef warnings in libc++ headers.

MFC r279758:

Fix another -Wunused-local-typedef warning in libc++, in include/__tree.

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

9 years agoMFC 277712:
jhb [Tue, 10 Mar 2015 14:18:26 +0000 (14:18 +0000)]
MFC 277712:
Change the default VFS timestamp precision from seconds to microseconds.

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

9 years agoMFC r254340
peter [Tue, 10 Mar 2015 05:20:40 +0000 (05:20 +0000)]
MFC r254340

Some objects - such as *_genassym.o are not hooked into
SRCS OBJS or anything else, yet have a dependency on symlinks
such as machine/

This causes occasional build failures with -j

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

9 years agoMFC r279598:
dim [Sun, 8 Mar 2015 22:50:45 +0000 (22:50 +0000)]
MFC r279598:

When compiling boot2 with gcc on i386 and pc98, only use the custom flag
-mno-align-long-strings when compiling with base gcc.  This is checked
by comparing the version number against 4.2.1, which is not exactly
right, but good enough.  (There is no other way to check whether we are
using the non-standard gcc in base, as far as I know.)

Reported by: rodrigc

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

9 years agoMFC r247527 (by brooks):
dim [Sun, 8 Mar 2015 22:39:19 +0000 (22:39 +0000)]
MFC r247527 (by brooks):
  Provide slightly more helpful feedback when we can't figure out what
  compiler the user is using.

  PR: misc/173914

MFC r265829 (by imp):
  Support, to the extent we generate proper command lines, compiling
  with clang 3.3. Useful for test building -current on a -stable system
  in individual directories. Potentially useful if we ever want to
  support, say, gcc 4.8 or 4.9's new warnings when building with an
  external toolchain (but such support not yet committed). Document
  the bsd.compiler.mk interface.

MFC r266587 (by imp):
  Allow CC to not actually exist. During the ports INDEX run, all the
  Makefiles are evaluated without building things. In a normal build,
  the prerequisites would be built, and CC would be an actual thing. In
  an INDEX build, though, they don't exists. Redirect stderr to get rid
  of annoying messages, and assume that the compiler version is 0 if the
  actual compiler can't tell us. Do this in preference to guessing based
  on numbers because gcc410 might be 4.10, or 4.1.0 and without
  carefully crafted special knowledge we differentiate between them
  easily (also ming-gcc has no clues at all). Elsewhere, don't trust
  the compiler version if it is 0.

MFC r273405 (by bapt):
  When using an external toolchain note that gcc 4.8+ supports C++11

  Submitted by: imp

MFC r275557 (by ngie):
  Fix typos in comments and wrap to <80 columns

MFC r275588 (by ngie):
  ${CC} --version doesn't need to be queried if both COMPILER_TYPE and
  COMPILER_VERSION are known

MFC r275589 (by ngie):
  The previous commit should have been a logical or not a logical "and"

  Pointyhat to: me

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

9 years agoMFC r279587:
hselasky [Sat, 7 Mar 2015 18:46:21 +0000 (18:46 +0000)]
MFC r279587:
Define PTR_ALIGN() macro which will be needed coming Mellanox driver
releases.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r279584:
hselasky [Sat, 7 Mar 2015 18:44:42 +0000 (18:44 +0000)]
MFC r279584:
Updates for the Mellanox ethernet driver

> List of fixes:
  * use correct format for GID printouts
  * double array indexing
  * spelling in printouts
  * void pointer arithmetic
  * allow more receive rings
  * correct maximum number of transmit rings
  * use "const" instead of "static" for constants
  * check for invalid VLAN tags
  * check for lack of IRQ resources
> Added more hardware specific defines
> Added more verbose printouts of firmware status codes

Sponsored by: Mellanox Technologies

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

9 years agoMFC r278866:
hselasky [Sat, 7 Mar 2015 18:42:37 +0000 (18:42 +0000)]
MFC r278866:
Define standard formatting strings to print GIDs
in a separate header file.

Sponsored by: Mellanox Technologies

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

9 years agoMFC: r279713
jkim [Fri, 6 Mar 2015 22:34:09 +0000 (22:34 +0000)]
MFC: r279713

Use realpath(3) to properly expand $ORIGIN to its absolute path.

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

9 years agoMFC of 279706,tzdata9:
edwin [Fri, 6 Mar 2015 22:08:47 +0000 (22:08 +0000)]
MFC of 279706,tzdata9:

Release 2015a - 2015-01-29

Changes affecting future time stamps

    The Mexican state of Quintana Roo, represented by America/Cancun,
    will shift from Central Time with DST to Eastern Time without DST
    on 2015-02-01 at 02:00.  (Thanks to Steffen Thorsen and Gwillim Law.)

    Chile will not change clocks in April or thereafter; its new standard time
    will be its old daylight saving time.  This affects America/Santiago,
    Pacific/Easter, and Antarctica/Palmer.  (Thanks to Juan Correa.)

    New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49.
    (Thanks to Tim Parenti.)

  Changes affecting past time stamps

    Iceland observed DST in 1919 and 1921, and its 1939 fallback
    transition was Oct. 29, not Nov. 29.  Remove incorrect data from
    Shanks about time in Iceland between 1837 and 1908.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait,
    and Asia/Muscat.

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

9 years agoMFC r279563:
hselasky [Fri, 6 Mar 2015 16:09:33 +0000 (16:09 +0000)]
MFC r279563:
Add quirk for USB 3.0 controllers which don't support 64-bit DMA.

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

9 years agoMFH: r279050
brueffer [Fri, 6 Mar 2015 11:27:58 +0000 (11:27 +0000)]
MFH: r279050

Apply mdoc style.

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

9 years agoMFC r279544:
hselasky [Thu, 5 Mar 2015 10:23:38 +0000 (10:23 +0000)]
MFC r279544:
Add quirk to disable 64-bit XHCI DMA after r276717.

Requested by: Gary Jennejohn <gljennjohn@gmail.com>

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

9 years agoMFC r279324:
ae [Thu, 5 Mar 2015 10:07:09 +0000 (10:07 +0000)]
MFC r279324:
  When gpart(8) is trying automatically determine the first available
  block of free space after existing partition, take into account
  provider's stripeoffset, since the result will be adjusted to this
  value.

  PR: 197989

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

9 years agoMFC r227243, r233456, r248258, r248849 and r279297:
hselasky [Thu, 5 Mar 2015 09:55:35 +0000 (09:55 +0000)]
MFC r227243, r233456, r248258, r248849 and r279297:

Update to upstream version 2.10

The most notable new feature is support for definition files.

The most notable new feature is support for processing multiple
files in one invocation. There is also support for more make-friendly
exit statuses.

The most notable bug fix is #line directives now include the input
file name.

Obtained from: http://dotat.at/prog/unifdef

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

9 years agoMFC r279270:
hselasky [Thu, 5 Mar 2015 09:35:15 +0000 (09:35 +0000)]
MFC r279270:
Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.

PR: 198015
PR: 198019
PR: 198026

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

9 years agoMFC r279241 and r279242:
hselasky [Thu, 5 Mar 2015 09:27:39 +0000 (09:27 +0000)]
MFC r279241 and r279242:
Fix debugging macros.

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

9 years agoMFC r279206:
ae [Mon, 2 Mar 2015 08:00:00 +0000 (08:00 +0000)]
MFC r279206:
  In some cases soreceive_dgram() can return no data, but has control
  message. This can happen when application is sending packets too big
  for the path MTU and recvmsg() will return zero (indicating no data)
  but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
  Remove KASSERT() which does NULL pointer dereference in such case.
  Also call m_freem() only when m isn't NULL.

MFC r279209:
  soreceive_generic() still has similar KASSERT(), therefore instead of
  remove KASSERT(), change it to check mbuf isn't NULL.

PR: 197882
Sponsored by: Yandex LLC

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

9 years agoMFC r279312:
dim [Sun, 1 Mar 2015 01:08:14 +0000 (01:08 +0000)]
MFC r279312:

Fix a number of -Wcast-qual warnings under sys/arm.  No functional
change.

Submitted by: andrew

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

9 years agoMFC r279307:
dim [Sun, 1 Mar 2015 00:47:37 +0000 (00:47 +0000)]
MFC r279307:

Make libcxxrt's parsing of DWARF exception handling tables work on
architectures with strict alignment, by using memcpy() instead of
directly reading fields.

Reported by: Daisuke Aoyama <aoyama@peach.ne.jp>
Reviewed by: imp, bapt
Tested by: bapt
Differential Revision: https://reviews.freebsd.org/D1967

MFC r279310:

Since newer versions of compiler-rt require unwind.h, and we want to use
the copy in libcxxrt for it, fix the arm-specific header to define the
_Unwind_Action type.

Submitted by: andrew

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

9 years agoMFC r279233:
hselasky [Fri, 27 Feb 2015 12:22:07 +0000 (12:22 +0000)]
MFC r279233:
Ensure that the XHCI driver will refresh the control endpoint settings
when re-enumerating a FULL speed device. Else the wrong max packet
setting might be used when trying to re-enumerate a FULL speed device.

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

9 years agoMerge upstream Clang revision 211785:
emaste [Wed, 25 Feb 2015 22:41:27 +0000 (22:41 +0000)]
Merge upstream Clang revision 211785:
  This commit implements the -fuse-ld= option, so that the user
  can specify -fuse-ld=bfd to use ld.bfd.

  This commit re-applies r194328 with some test case changes.
  It seems that r194328 was breaking macosx or mingw build
  because clang can't find ld.bfd or ld.gold in the given sysroot.
  We should use -B to specify the executable search path instead.

  Patch originally by David Chisnall.

This is a merge from stable/10 rather than MFC as this is change was
already included in Clang 3.5 in HEAD.

MFS-10: r279302
Sponsored by:   The FreeBSD Foundation

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

9 years agoAdd clang patches corresponding to r279289.
dim [Wed, 25 Feb 2015 17:54:18 +0000 (17:54 +0000)]
Add clang patches corresponding to r279289.

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

9 years agoPull in r199571 from upstream clang trunk (by Ted Kremenek):
dim [Wed, 25 Feb 2015 17:27:02 +0000 (17:27 +0000)]
Pull in r199571 from upstream clang trunk (by Ted Kremenek):

  Harden InitListExpr::isStringLiteralInit() against getInit()
  returning null.

  This led to a crash on invalid code (sorry, no good test case).

  Fixes <rdar://problem/15831804>.

This fixes an assertion when compiling certain incorrect code, as
reported upstream in http://llvm.org/PR22684 .

Direct commit to stable/10 and stable/9, since head has clang 3.5.1,
which already includes this change.

Reported by: hbowden@securelabsllc.com

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

9 years agoBump __FreeBSD_version after FreeBSD-EN-15:01.vt,
gjb [Wed, 25 Feb 2015 16:44:40 +0000 (16:44 +0000)]
Bump __FreeBSD_version after FreeBSD-EN-15:01.vt,
FreeBSD-EN-15:02.openssl, FreeBSD-EN-15:03.freebsd-update,
FreeBSD-SA-15:04.igmp, FreeBSD-SA-15:05.bind

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument FreeBSD-EN-15:01.vt, FreeBSD-EN-15:02.openssl,
gjb [Wed, 25 Feb 2015 16:36:44 +0000 (16:36 +0000)]
Document FreeBSD-EN-15:01.vt, FreeBSD-EN-15:02.openssl,
FreeBSD-EN-15:03.freebsd-update, FreeBSD-SA-15:04.igmp,
FreeBSD-SA-15:05.bind

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r278850:
hselasky [Wed, 25 Feb 2015 12:26:45 +0000 (12:26 +0000)]
MFC r278850:
Handle VBUS error interrupts.

PR: 190471

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

9 years agoMFC r278963:
kib [Wed, 25 Feb 2015 09:21:59 +0000 (09:21 +0000)]
MFC r278963:
If malloc() sleeps, Giant is dropped.  Recheck for another thread
doing our work.

Remove unneeded check for failed M_WAITOK allocation.

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

9 years agoInstant MFC:
delphij [Wed, 25 Feb 2015 05:43:02 +0000 (05:43 +0000)]
Instant MFC:

Fix integer overflow in IGMP protocol.

Security: FreeBSD-SA-15:04.igmp
Security: CVE-2015-1414
Found by: Mateusz Kocielski, Logicaltrust
Analyzed by: Marek Kroemeke, Mateusz Kocielski (shm@NetBSD.org) and
22733db72ab3ed94b5f8a1ffcde850251fe6f466
Submited by: Mariusz Zaborski <oshogbo@FreeBSD.org>
Reviewed by: bms
Approved by: so

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

9 years agoMFC r278790, r278802:
pfg [Sun, 22 Feb 2015 02:16:24 +0000 (02:16 +0000)]
MFC r278790, r278802:
Initialize the allocation of variables related to the ext2 allocator.

Use malloc to clear the values and initialize e2fs_contigdirs
during allocation.  free() e2fs_contigdirs upon error.

While here clean up small style issues.

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

9 years agoMFC r278791:
pfg [Sun, 22 Feb 2015 01:43:30 +0000 (01:43 +0000)]
MFC r278791:
Reuse value of cursize instead of recalculating.

Reported by: Clang static checker

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

9 years agoMFC r278803, r278905:
pfg [Sun, 22 Feb 2015 01:32:37 +0000 (01:32 +0000)]
MFC r278803, r278905:
ulimit(3): Fix broken check.

The existing implementation had a broken comparison that could
overflow and return confusing values.  Replace this with a check
that avoids the overflow before it happens.

Consistently return a maximum value also on the case of negative
arguments since negative is considered an overflow and means
infinity for our current setrlimit().

New revamped version is credited to Bruce Evans.

CID: 1199295

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

9 years agoMFC r270190: Don't stop other parallel build legs on failure of make_check.
ian [Fri, 20 Feb 2015 02:43:08 +0000 (02:43 +0000)]
MFC r270190: Don't stop other parallel build legs on failure of make_check.

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

9 years agoMFC r278856:
hselasky [Thu, 19 Feb 2015 17:47:42 +0000 (17:47 +0000)]
MFC r278856:
The "frag_info" pointer is already pointing to an array index.
Don't index twice.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r278301, r278315:
pfg [Thu, 19 Feb 2015 16:25:18 +0000 (16:25 +0000)]
MFC r278301, r278315:
tdelete(3): don't delete the node we are about to return.

CID: 272528
Obtained from: NetBSD (CVS rev. 1.4)

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

9 years agoMFC r278300, r278314:
pfg [Thu, 19 Feb 2015 16:19:00 +0000 (16:19 +0000)]
MFC r278300, r278314:
getdiskbyname(): plug resource leak

Variable cq going out of scope leaks the storage it points to.

CID: 270511
Phabric: D1775
Reviewed by: imp
Obtained from: NetBSD (CVS rev. 1.34)

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

9 years agoMFV r278971: Apply vendor fix for CVE-2015-1349.
delphij [Wed, 18 Feb 2015 22:20:19 +0000 (22:20 +0000)]
MFV r278971: Apply vendor fix for CVE-2015-1349.

This is a direct commit to stable/9 because BIND is removed from
HEAD.

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

9 years agoMFC r278739:
delphij [Tue, 17 Feb 2015 19:14:41 +0000 (19:14 +0000)]
MFC r278739:

Disallow pattern spaces which would cause intermediate calculations to
overflow size_t.

Obtained from: DragonFly (2841837793bd095a82f477e9c370cfe6cfb3862c dillon)
Security: CERT VU#695940

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

9 years agoMFC r278379:
dchagin [Mon, 16 Feb 2015 21:01:31 +0000 (21:01 +0000)]
MFC r278379:

Add Neoway WM620 module ID.

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

9 years agoMFC: r276377, r276714
marius [Sun, 15 Feb 2015 20:43:32 +0000 (20:43 +0000)]
MFC: r276377, r276714

- No longer exclude malo(4) and mwl(4), they have been fixed in r275870
  (MFCed to stable/9 in r278416), r275871 (MFCed to stable/9 in r278419)
  and r278532 (MFCed to stable/9 in r278809) respectively to build with
  PAE enabled.
- For the PAE kernel configuration file, no longer exclude devices that
  are known to be 64-bit DMA clean from amd64.

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

9 years agoMFC: r278532
marius [Sun, 15 Feb 2015 20:03:42 +0000 (20:03 +0000)]
MFC: r278532

Fix compilation with GCC in the PAE case.

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

9 years agoAdd clang patches corresponding to r278788.
dim [Sat, 14 Feb 2015 23:28:09 +0000 (23:28 +0000)]
Add clang patches corresponding to r278788.

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

9 years agoPull in r201130 from upstream clang trunk (by Ted Kremenek):
dim [Sat, 14 Feb 2015 23:25:39 +0000 (23:25 +0000)]
Pull in r201130 from upstream clang trunk (by Ted Kremenek):

  Fix PCH deserialization bug with local static symbols being treated
  as local extern.

  This triggered a miscompilation of code using Boost's
  function_template.hpp when it was included inside a PCH file.  A
  local static within that header would be treated as local extern,
  resulting in the wrong mangling.  This only occurred during PCH
  deserialization.

  Fixes <rdar://problem/15975816> and <rdar://problem/15926311>.

This fixes a crash in audio/murmur, which is using both PCH and Boost.

Direct commit to stable/10 and stable/9, since head has clang 3.5.1,
which already includes this change.

Reported by: smh
PR: 197389

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

9 years agoMFC r273999 and r271545:
hrs [Sat, 14 Feb 2015 18:57:02 +0000 (18:57 +0000)]
MFC r273999 and r271545:

Do not try to create a /dev/log symlink in a jail.

PR: 179828

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

9 years agoMFC r278362: Fix couple issues in ctlstat header printing.
mav [Sat, 14 Feb 2015 08:52:52 +0000 (08:52 +0000)]
MFC r278362: Fix couple issues in ctlstat header printing.

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

9 years agoMFC r278364:
ngie [Sat, 14 Feb 2015 06:58:27 +0000 (06:58 +0000)]
MFC r278364:

r278364:

  Remove kdb_backtrace extern; get the definition for kdb_backtrace from
  <sys/kdb.h> instead

  Fix whitespace in WARN_ON macro definition

  Reviewed by: np
  Differential Revision: https://reviews.freebsd.org/D1799
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoSynchronize the (non-default) libc++/libcxxrt C++ stack in stable/9 with
dim [Fri, 13 Feb 2015 22:07:45 +0000 (22:07 +0000)]
Synchronize the (non-default) libc++/libcxxrt C++ stack in stable/9 with
head, by merging almost all recent changes to libc++ and libcxxrt.

MFC r255206 (by theraven):
  Add a c++/v1/tr1 include directory containing symlinks to all of the standard
  headrs.

  Lots of third-party code expects to find C++03 headers under tr1 because that's
  where GNU decided to hide them.  This should fix ports that expect them there.

MFC r256642:
  Since C++ typeinfo objects are currently not guaranteed to be merged at
  runtime by the dynamic linker, check for their equality in libcxxrt by
  not only comparing the typeinfo's name pointers, but also comparing the
  full names, if necessary.  (This is similar to what GNU libstdc++ does
  in its default configuration.)  The 'deep' check can be turned off again
  by defining LIBCXXRT_MERGED_TYPEINFO, and recompiling libcxxrt.

  Reviewed by: theraven

MFC r270522 (by rdivacky):
  The standard we compile libc++ with is called c++11 not c++0x.

MFC r273066 (by bapt):
  Import patch from libc++ r197313 which allows using libc++ headers with gcc

  Differential Revision: https://reviews.freebsd.org/D942
  Reviewed by: imp

MFC r273381 (by bapt):
  Add support for __cxa_throw_bad_array_new_length in libcxxrt

  It is required for use with newer g++49

  Differential Revision: https://reviews.freebsd.org/D982
  Reviewed by: theraven
  Approved by: theraven

MFC r273382 (by bapt):
  Fix build by marking the new functions as weak
  This is a temporary fix

MFC r273434 (by bapt):
  Do not define bad_array_new_length::bad_array_new_length in libc++ anymore
  when used in combinaison with libcxxrt since it is now defined there already.
  This fixes building world

MFC r276417:
  Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604.

  Interesting fixes:
  76584a0  Reorganize code to use only 32bit atomic ops for 32bit platforms
  30d2ae5  Implement __cxa_throw_bad_array_new_length

  Reviewed by: bapt
  Differential Revision: https://reviews.freebsd.org/D1390

MFC r277217:
  Import libc++ trunk r224926.  This fixes a number of bugs, completes
  C++14 support[1], adds more C++1z features[2], and fixes the following
  LWG issues[3]:

  1450: Contradiction in regex_constants
  2003: String exception inconsistency in erase.
  2075: Progress guarantees, lock-free property, and scheduling
assumptions
  2104: unique_lock move-assignment should not be noexcept
  2112: User-defined classes that cannot be derived from
  2132: std::function ambiguity
  2135: Unclear requirement for exceptions thrown in
condition_variable::wait()
  2142: packaged_task::operator() synchronization too broad?
  2182: Container::[const_]reference types are misleadingly specified
  2186: Incomplete action on async/launch::deferred
  2188: Reverse iterator does not fully support targets that overload
operator&
  2193: Default constructors for standard library containers are explicit
  2205: Problematic postconditions of regex_match and regex_search
  2213: Return value of std::regex_replace
  2240: Probable misuse of term "function scope" in [thread.condition]
  2252: Strong guarantee on vector::push_back() still broken with C++11?
  2257: Simplify container requirements with the new algorithms
  2258: a.erase(q1, q2) unable to directly return q2
  2263: Comparing iterators and allocator pointers with different
const-character
  2268: Setting a default argument in the declaration of a member
function assign of std::basic_string
  2271: regex_traits::lookup_classname specification unclear
  2272: quoted should use char_traits::eq for character comparison
  2278: User-defined literals for Standard Library types
  2280: begin / end for arrays should be constexpr and noexcept
  2285: make_reverse_iterator
  2288: Inconsistent requirements for shared mutexes
  2291: std::hash is vulnerable to collision DoS attack
  2293: Wrong facet used by num_put::do_put
  2299: Effects of inaccessible key_compare::is_transparent type are not
clear
  2301: Why is std::tie not constexpr?
  2304: Complexity of count in unordered associative containers
  2306: match_results::reference should be value_type&, not const
value_type&
  2308: Clarify container destructor requirements w.r.t. std::array
  2313: tuple_size should always derive from integral_constant<size_t, N>
  2314: apply() should return decltype(auto) and use decay_t before
tuple_size
  2315: weak_ptr should be movable
  2316: weak_ptr::lock() should be atomic
  2317: The type property queries should be UnaryTypeTraits returning
size_t
  2320: select_on_container_copy_construction() takes allocators, not
containers
  2322: Associative(initializer_list, stuff) constructors are
underspecified
  2323: vector::resize(n, t)'s specification should be simplified
  2324: Insert iterator constructors should use addressof()
  2329: regex_match()/regex_search() with match_results should forbid
temporary strings
  2330: regex("meow", regex::icase) is technically forbidden but should
be permitted
  2332: regex_iterator/regex_token_iterator should forbid temporary
regexes
  2339: Wording issue in nth_element
  2341: Inconsistency between basic_ostream::seekp(pos) and
basic_ostream::seekp(off, dir)
  2344: quoted()'s interaction with padding is unclear
  2346: integral_constant's member functions should be marked noexcept
  2350: min, max, and minmax should be constexpr
  2356: Stability of erasure in unordered associative containers
  2357: Remaining "Assignable" requirement
  2359: How does regex_constants::nosubs affect basic_regex::mark_count()?
  2360: reverse_iterator::operator*() is unimplementable

  [1] http://libcxx.llvm.org/cxx1y_status.html
  [2] http://libcxx.llvm.org/cxx1z_status.html
  [3] http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html

  Exp-run: antoine

MFC r277944:
  Partially revert r273382, to reduce diffs against upstream.  This was a
  temporary fix to solve a conflict with an older version of libc++, and
  it is no longer relevant.

MFC r278010:
  Revert r256642, not only to reduce diffs against upstream libcxxrt, but
  also because it is the wrong approach: comparing typeinfo names deeply
  causes trouble if two loaded DSOs use independent types of the same
  name.

  In addition, this particular change was never merged to FreeBSD 10.x and
  9.x, so let's get rid of it before it ends up in an 11.x release.

  Discussed with: theraven, joerg@netbsd

MFC r278016:
  Import libcxxrt master 1cb607e89f6135bbc10f3d3b6fba1f983e258dcc.

  Interesting fixes:
  1cb607e Correct gcc version check for __cxa_begin_catch() declaration
          with or without throw()

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

9 years agoUnbreak the build by .include'ing bsd.own.mk
ngie [Fri, 13 Feb 2015 22:05:36 +0000 (22:05 +0000)]
Unbreak the build by .include'ing bsd.own.mk

Pointyhat to: me

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

9 years agoRegen src.conf(5)
ngie [Fri, 13 Feb 2015 21:44:43 +0000 (21:44 +0000)]
Regen src.conf(5)

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

9 years agoMFstable/10 r278556:
ngie [Fri, 13 Feb 2015 21:41:23 +0000 (21:41 +0000)]
MFstable/10 r278556:

r278556:

  MFC r277725:

  r277725:

    Add MK_HAST knob for building and installing hastd(8), et al

    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r278717:
ngie [Fri, 13 Feb 2015 21:36:16 +0000 (21:36 +0000)]
MFC r278717:

r278717:

  MFC r277678:

  r277678:

    Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc

    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r271931:
dim [Fri, 13 Feb 2015 21:31:43 +0000 (21:31 +0000)]
MFC r271931:

Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.

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

9 years agoMFC r278713:
ngie [Fri, 13 Feb 2015 21:25:56 +0000 (21:25 +0000)]
MFC r278713:

r278713:

  MFC r277677:

  r277677:

    Add MK_BSDINSTALL knob for building and installing bsdinstall

    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r278710:
ngie [Fri, 13 Feb 2015 21:21:51 +0000 (21:21 +0000)]
MFstable/10 r278710:

r278710:

  MFC r277676:

  r277676:

    Add MK_TALK knob for building the talk and talkd

    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r271025, r271029, r271030 (by sbruno):
dim [Fri, 13 Feb 2015 21:19:02 +0000 (21:19 +0000)]
MFC r271025, r271029, r271030 (by sbruno):

MFV:  Only emit movw on ARMv6T2

Building for the FreeBSD default target ARMv6 was emitting movw ASM on certain
test cases (found building qmake4/5 for ARM).  Don't do that, moreover, the AS
in base doesn't understand this instruction for this target.  One would need
to use --integrated-as to get this to build if desired.

http://llvm.org/viewvc/llvm-project?view=revision&revision=216989

Submitted by: ian
Reviewed by: dim
Obtained from: llvm.org

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

9 years agoMFC r278503:
hselasky [Fri, 13 Feb 2015 07:52:12 +0000 (07:52 +0000)]
MFC r278503:
Revert r274918 and make a better solution. Poll the synchronisation
endpoint less frequently to make the sample rate adjustment more
accurate. This should resolve problems with the DN32-USB module for
Midas audio systems and possibly other similar products from Klark
Teknik.

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

9 years agoMFC r278477:
hselasky [Fri, 13 Feb 2015 07:47:17 +0000 (07:47 +0000)]
MFC r278477:
Fix DMA address casts.

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

9 years agoMFC r278526:
gjb [Fri, 13 Feb 2015 00:41:03 +0000 (00:41 +0000)]
MFC r278526:
  Fix a rendering issue in the nullfs(5) manual page.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r278004:
dim [Thu, 12 Feb 2015 07:21:22 +0000 (07:21 +0000)]
MFC r278004:

Constify a number of accesses in drm2's radeon drivers to avoid
-Wcast-qual warnings.  No functional change.

Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D1727

MFC r278438:

After r278004 was committed, Bruce Evans noted that the casts were
actually completely unnecessary, here:

https://lists.freebsd.org/pipermail/svn-src-all/2015-February/098478.html

Remove the casts, and just assign &xxx_io_mc_regs[0][0] directly.

Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D1748

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

9 years agoMFC r275098,r277736,r277737:
ngie [Wed, 11 Feb 2015 09:21:36 +0000 (09:21 +0000)]
MFC r275098,r277736,r277737:

r277736:

  Honor MK_ACCT with etc/rc.d/accounting

  Sponsored by: EMC / Isilon Storage Division

r277737:

  Honor MK_ACCT with etc/pam.d/atrun

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoRegen src.conf(5)
ngie [Wed, 11 Feb 2015 09:10:32 +0000 (09:10 +0000)]
Regen src.conf(5)

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

9 years agoMFstable/10 r278554:
ngie [Wed, 11 Feb 2015 08:33:22 +0000 (08:33 +0000)]
MFstable/10 r278554:

r278554:

  MFC r277663:

  r277663:

    Add MK_EE knob to control installing edit, ee, etc

    Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC 277709:
jhb [Tue, 10 Feb 2015 21:41:56 +0000 (21:41 +0000)]
MFC 277709:
Use an sbuf to generate the output of the net.inet.tcp.hostcache.list
sysctl to avoid a possible buffer overflow if the cache grows while the
text is being generated.

PR: 172675

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

9 years agoFix PAE build, bus_size_t still is 32 bit in that case.
marius [Tue, 10 Feb 2015 21:30:20 +0000 (21:30 +0000)]
Fix PAE build, bus_size_t still is 32 bit in that case.

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