]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r242577:
eadler [Wed, 7 Nov 2012 00:41:07 +0000 (00:41 +0000)]
MFC r242577:
Make OK_TO_WRITE_TO_DISK an envrionment variable instead
of a compile time option.

While here, don't differ based on the existence of LOCK_EX
which doesn't seem to have ever made a difference on FreeBSD.

Approved by: cperciva (implicit)

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

11 years agoMFC r242576:
eadler [Wed, 7 Nov 2012 00:40:01 +0000 (00:40 +0000)]
MFC r242576:
Prefer the use of stdbool to custom defines.

Approved by: cperciva (implicit)

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

11 years agoMFC r241974
sbruno [Wed, 7 Nov 2012 00:30:25 +0000 (00:30 +0000)]
MFC r241974

Cleanup and rename some variables in libpmc and hwpmc.

Testing MFC of merge to root of stable/9 with peter@ lurking.

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

11 years agoMerge r241866 from head:
gavin [Tue, 6 Nov 2012 22:46:11 +0000 (22:46 +0000)]
Merge r241866 from head:

  Add German, French, Portuguese and Spanish names for the Spanish Dvorak
  keymap.

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

11 years agoMFC r242315:
nwhitehorn [Tue, 6 Nov 2012 21:54:45 +0000 (21:54 +0000)]
MFC r242315:
Work around broken device tree on last-generation PowerPC iMacs
(PowerMac12,1), which have a mac-io MPIC cell that indifies itself
as the root PIC despite the actual root PIC being on the northbridge.
No CPC945 systems have a mac-io PIC that does anything so just don't
attach on CPC945 (U4) systems.

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

11 years agoMFC r240860:
nwhitehorn [Tue, 6 Nov 2012 21:53:17 +0000 (21:53 +0000)]
MFC r240860:
Move the prototype for savectx from cpu.h to pcb.h, as it is on other
platforms, as well as putting it in an #ifdef KERNEL block.

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

11 years agoMerge r242396 from head:
gavin [Tue, 6 Nov 2012 21:16:45 +0000 (21:16 +0000)]
Merge r242396 from head:

  Genericise the (out of date) instructions from moving from stable to
  current.

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

11 years agoMFC r242380:
dim [Tue, 6 Nov 2012 07:46:07 +0000 (07:46 +0000)]
MFC r242380:

Pull in r165377 from upstream llvm trunk:

  X86: fcmov doesn't handle all possible EFLAGS, fall back to a branch
  for the others.

  Otherwise it will try to use SSE patterns and fail horribly if sse is
  disabled.

  Fixes PR14035.

This should fix the following assertion failure:

  Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP
  register!"), function getFPReg, file
  contrib/llvm/lib/Target/X86/X86FloatingPoint.cpp, line 330.

which can show up when compiling contrib/compiler-rt, using -march=i686
through -march=pentium3 (CPU's which do support fcmov, but don't support
SSE2).

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

11 years agoMFC r241340:
yongari [Tue, 6 Nov 2012 02:19:51 +0000 (02:19 +0000)]
MFC r241340:
  Fix typo. Check against number of allocated MSI-X vectors.
  There is no ale(4) controller that supports MSI-X so this is not
  real issue.

  PR: kern/171825

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

11 years agoMFC r227536, r240967:
gjb [Tue, 6 Nov 2012 01:56:39 +0000 (01:56 +0000)]
MFC r227536, r240967:

r227536 (nwhitehorn):

  Further automate production release generation by naming files the
  right things and generating checksums.

r240967:

 - Allow cross-architecture builds with 'generate-release.sh', which
   is set by specifying '-a <arch>'.  (Only supported for i386 on amd64
   and powerpc on powerpc64 currently).
 - Change how textproc/docproj is installed:
   o Attempt to install from pkg(8);
   o Fall back to pkg_add(1) if pkg(8) installation is not
     successful;
   o Fall back to installing from ports as last resort.
 - Ensure the script is run by root[1].
 - Get OSVERSION from param.h[1].

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

11 years agoMFC r241329:
mav [Tue, 6 Nov 2012 01:53:25 +0000 (01:53 +0000)]
MFC r241329:
Make graid command line a bit more friendly by allowing volume name or
provider name to be specified instead of geom name (first argument in all
subcommands except label).  In most cases there is only one array used
any way, so it is not really useful to make user type ugly geom names like
Intel-f0bdf223 or SiI-732c2b9448cf.  Though they can be used in some cases.

Sponsored by: iXsystems, Inc.

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

11 years agoMFC r240588:
gjb [Tue, 6 Nov 2012 01:49:55 +0000 (01:49 +0000)]
MFC r240588:

  Update release(7) to reflect changes from r240586 and r240587:

   - Remove cvs(1) references.
   - Remove CVS* environment references.
   - Add default entries for the default SVNROOT for the Ports
     Collection, and Documentation Project.
   - While here, update 'SGML-based documentation' to 'XML-based',
     since the recent SGML->XML conversion.
   - Update an example providing SVNROOT environment usage.

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

11 years agoMFC r241502, r241884
melifaro [Tue, 6 Nov 2012 01:18:53 +0000 (01:18 +0000)]
MFC r241502, r241884

Cleanup documentation: cloning route support has been removed in r186119.

Eliminate code checking if found IPv6 rte is dynamic. IPv6 redirects
are using (different) ND-based approach described in RFC 4861. This change
is similar to r241406 which conditionally skips the same check in IPv4.

This change is part of bigger patch eliminating rte locking.

Sponsored by: Yandex LLC.

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

11 years agoMFC r242514,r242541:
eadler [Tue, 6 Nov 2012 00:55:43 +0000 (00:55 +0000)]
MFC r242514,r242541:

Revert the change that makes less default.

Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Requested by: many
Objected to: just as many
Decision made by: core

====
Change default prompt to show ~ again for the home directory

Approved by: cperciva (implicit)

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

11 years agoMFC r242348:
yongari [Tue, 6 Nov 2012 00:54:25 +0000 (00:54 +0000)]
MFC r242348:
  TSO engine of L1 requires a separate DMA descriptor for TCP
  payload.  This means driver has to split a TX buffer into two
  pieces of TX buffers when the TX buffer contains both
  ethernet/IP/TCP header and partial TCP payload.  The controller
  does not require all header should be in a TX buffer but driver
  forced it to compute IP/TCP header size/offset which is required
  parameter to configure DMA descriptor for TSO.
  While here, slightly reorder DMA descriptor setup to enhance
  readability and remove unnecessary code for TSO(upper stack never
  requests TSO when the frame length is less than or equal to MTU).

  Reported by: Yamagi Burmeister <lists <> yamagi dot org>
  Tested by: Yamagi Burmeister <lists <> yamagi dot org>

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

11 years agoMFC r241406.
melifaro [Tue, 6 Nov 2012 00:49:52 +0000 (00:49 +0000)]
MFC r241406.

Do not check if found IPv4 rte is dynamic if net.inet.icmp.drop_redirect is
enabled. This eliminates one mtx_lock() per each routing lookup thus improving
performance in several cases (routing to directly connected interface or routing
to default gateway).

Icmp redirects should not be used to provide routing direction nowadays, even
for end hosts. Routers should not use them too (and this is explicitly restricted
in IPv6, see RFC 4861, clause 8.2).

Current commit changes rnh_machaddr function to 'stock' rn_match (and back) for every
AF_INET routing table in given VNET instance on drop_redirect sysctl change.

This change is part of bigger patch eliminating rte locking.

Sponsored by: Yandex LLC

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

11 years agoMFH r236110: revert unauthorized, unnecessary and incorrect commit
des [Mon, 5 Nov 2012 12:46:47 +0000 (12:46 +0000)]
MFH r236110: revert unauthorized, unnecessary and incorrect commit

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

11 years agoMFH r240496: use libmd if and only if OpenSSL is not available
des [Mon, 5 Nov 2012 12:41:55 +0000 (12:41 +0000)]
MFH r240496: use libmd if and only if OpenSSL is not available

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

11 years agoMFH (r240496): use libmd if and only if OpenSSL is not available
des [Mon, 5 Nov 2012 10:42:31 +0000 (10:42 +0000)]
MFH (r240496): use libmd if and only if OpenSSL is not available

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

11 years agoMFC r242472:
dim [Mon, 5 Nov 2012 07:44:00 +0000 (07:44 +0000)]
MFC r242472:

Fix broken macro checking in the libc++ Makefile, introduced in r241909.
This caused -std=c++0x not to be passed to the build by default.

Pointy hat to: dim

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

11 years agoMFC r241745,241738,241741
sbruno [Mon, 5 Nov 2012 01:05:14 +0000 (01:05 +0000)]
MFC r241745,241738,241741

Update hwpmc to support the Xeon class of Sandybridge processors.
(Model 0x2D     /* Per Intel document 253669-044US 08/2012. */)

Update man page crossreferences to sandybridge xeon class

Remove trailing whitespace.

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

11 years agoMFC r241538: acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on
avg [Sun, 4 Nov 2012 13:42:19 +0000 (13:42 +0000)]
MFC r241538: acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on

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

11 years agoMFC r241301: add detection of serial console presence to btx and
avg [Sun, 4 Nov 2012 13:37:33 +0000 (13:37 +0000)]
MFC r241301: add detection of serial console presence to btx and
boot2-like blocks

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

11 years agoMFC r241300: i386 comconsole: don't loop forever if hardware doesn't respond
avg [Sun, 4 Nov 2012 13:33:59 +0000 (13:33 +0000)]
MFC r241300: i386 comconsole: don't loop forever if hardware doesn't respond

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

11 years agoMFC r241299: boot/console: handle consoles that fail to probe
avg [Sun, 4 Nov 2012 13:32:16 +0000 (13:32 +0000)]
MFC r241299: boot/console: handle consoles that fail to probe

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

11 years agoMFC r241286,r242135: zfs_mount: taste geom providers for root pool config
avg [Sun, 4 Nov 2012 13:29:47 +0000 (13:29 +0000)]
MFC r241286,r242135: zfs_mount: taste geom providers for root pool config

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

11 years agoMFC r238864:
dim [Sun, 4 Nov 2012 12:05:54 +0000 (12:05 +0000)]
MFC r238864:

Similar to what is already done for Linux, make clang not complain about
unused -g, -emit-llvm or -w arguments when doing linking.  E.g. invoking
"clang -g foo.o -o foo" will now be silent.

Reported by: Jakub Lach <jakub_lach@mailplus.pl>

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

11 years agoMFC r236258:
dim [Sun, 4 Nov 2012 11:46:17 +0000 (11:46 +0000)]
MFC r236258:

  For clang, similar to r236137, enable gnu hash generation for dynamic
  ELF binaries on x86.

MFC r238863:

  Similar to r238472, let clang pass --enable-new-dtags to the linker
  invocation by default.  Also make sure --hash-style=both is passed for
  the same arches as gcc, e.g. arm, sparc and x86.

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

11 years agoMFC r242089: limit of 15 -> 63 logical volumes
peter [Sun, 4 Nov 2012 06:35:08 +0000 (06:35 +0000)]
MFC r242089: limit of 15 -> 63 logical volumes

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

11 years agoMFC r241844:
eadler [Sun, 4 Nov 2012 01:21:49 +0000 (01:21 +0000)]
MFC r241844:
remove duplicate semicolons where possible.

Approved by: cperciva (implicit)

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

11 years agoMFC r242452:
eadler [Sun, 4 Nov 2012 00:30:42 +0000 (00:30 +0000)]
MFC r242452:
The test fails with "exit 1" if /usr/games/fortune doesn't actually
exist.  Fix that.

PR: conf/71994
Approved by: cperciva (implicit)

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

11 years agoMFC r242202:
davide [Sat, 3 Nov 2012 16:06:14 +0000 (16:06 +0000)]
MFC r242202:
The fields of struct timespec32 should be int32_t and not uint32_t.
Make this change.

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

11 years agoMFC r241710
sbruno [Fri, 2 Nov 2012 23:25:52 +0000 (23:25 +0000)]
MFC r241710

est(4) man page update to document the exposed sysctl r/o variables
available to the user.  Should be applicable to all branches and versions
where est(4) exists.

MFC r241727

Fix minor whitespace issues.

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

11 years agoMFC r241235:
delphij [Fri, 2 Nov 2012 16:57:51 +0000 (16:57 +0000)]
MFC r241235:

MFV tcpdump 4.3.0.

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

11 years agoMFC r241231:
delphij [Fri, 2 Nov 2012 16:54:12 +0000 (16:54 +0000)]
MFC r241231:

MFV: libpcap 1.3.0.

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

11 years agoMFC r238472:
kib [Fri, 2 Nov 2012 14:18:30 +0000 (14:18 +0000)]
MFC r238472:
Pass --enable-new-dtags to the linker invocation by default. If
desired, one can turn off the generation of post-ELF standard dtags by
overriding it with --disable-new-dtags after the default switch.

Immediate effect of the change is that -rpath path is now stored both
in DT_RPATH and DT_RUNPATH tags, which is the right way to provide
rpath for dynamic linker supporting DT_RUNPATH per specification.

Note that rtld on stable/9 interprets DT_RPATH the same as DT_RUNPATH
by default.

MFC discussed with: kan (some time ago)

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

11 years agoMFC r236137:
kib [Fri, 2 Nov 2012 14:16:09 +0000 (14:16 +0000)]
MFC r236137:
Enable gnu hash generation for dynamic ELF binaries on x86.

MFC r236329 (by marius):
Merge r236137 from x86:
Enable GNU hash generation for dynamic ELF binaries.

While at it, sync the order of options with x86 and pass along the verbose
flag.

MFC r237099 (by marius):
Merge r236137 from x86:
Enable GNU hash generation for dynamic ELF binaries.

MFC discussed with: kan (some time ago)

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

11 years agoMFC r242085:
jimharris [Thu, 1 Nov 2012 20:46:48 +0000 (20:46 +0000)]
MFC r242085:

For PCI Express capability, if max link width is greater than zero, print
the current and max link speed.

Sponsored by: Intel

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

11 years agoman4 MFC r227652 and r230450
sbruno [Wed, 31 Oct 2012 21:21:08 +0000 (21:21 +0000)]
man4 MFC r227652 and r230450

man pages were missed in the MFC of virtio(4) to stable/9

r233648 needs to be applied as well as r241470

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

11 years agoMFC r242011:
kib [Wed, 31 Oct 2012 14:02:51 +0000 (14:02 +0000)]
MFC r242011:
Dirty the newly copied anonymous pages after the wired region is
forked. Otherwise, pagedaemon might reclaim the page without saving
its content into the swap file, resulting in the valid content
replaced by zeroes.

MFC r242012:
Commit the actual text provided by Alan, instead of the wrong update
in r242011.

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

11 years agoMFC r242007:
dim [Wed, 31 Oct 2012 07:57:49 +0000 (07:57 +0000)]
MFC r242007:

Pull in r165367 from upstream llvm trunk:

  Make sure always-inline functions get inlined. <rdar://problem/12423986>

  Without this change, when the estimated cost for inlining a function with
  an "alwaysinline" attribute was lower than the inlining threshold, the
  getInlineCost function was returning that estimated cost rather than the
  special InlineCost::AlwaysInlineCost value. That is fine in the normal
  inlining case, but it can fail when the inliner considers the opportunity
  cost of inlining into an internal or linkonce-odr function. It may decide
  not to inline the always-inline function in that case. The fix here is just
  to make getInlineCost always return the special value for always-inline
  functions. I ran into this building clang with libc++. Tablegen failed to
  link because of an always-inline function that was not inlined. I have been
  unable to reduce the testcase down to a reasonable size.

This should fix the link errors that were reported when atf-run was
compiled with clang -stdlib=libc++.  In this case, at -O3 optimization,
some calls to basic_ios::clear() were not inlined, even when the
function was marked __always_inline__.

Reported by: Jan Beich <jbeich@tormail.org>

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

11 years agoMFC r241451, r241596:
gjb [Wed, 31 Oct 2012 04:07:52 +0000 (04:07 +0000)]
MFC r241451, r241596:

r241451 (emaste):
- Exclude potential circular symlink when creating src tarball.

- Normal release builds are not affected by this but it can happen if
  using these release bits against a work tree.

r241596 (emaste):
- Exclude potential circular symlink

- This does not occur with normal release builds but can happen when
  reusing these release parts for other purposes.

Approved by: emaste

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

11 years agoMFC r241735:
zont [Tue, 30 Oct 2012 21:04:12 +0000 (21:04 +0000)]
MFC r241735:
- Update cachelimit after hashsize and bucketlimit were set.

Approved by: kib (mentor)

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

11 years agoMFC r242087:
np [Tue, 30 Oct 2012 19:21:53 +0000 (19:21 +0000)]
MFC r242087:

Initialize the response queue mutex a bit earlier to avoid a panic that
occurs if t3_sge_alloc_qset fails and then t3_free_qset attempts to
destroy an uninitialized mutex.

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

11 years agoMFC: Allow NFS exports of tmpfs. r234346
alfred [Tue, 30 Oct 2012 17:24:26 +0000 (17:24 +0000)]
MFC: Allow NFS exports of tmpfs. r234346

Approved by: kevlo, kib

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

11 years agoMFC r242152:
mdf [Tue, 30 Oct 2012 17:05:12 +0000 (17:05 +0000)]
MFC r242152:

Const-ify the zone name argument to uma_zcreate(9).

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

11 years agoMFC r241957:
dim [Tue, 30 Oct 2012 07:51:18 +0000 (07:51 +0000)]
MFC r241957:

  Fix several clang warnings in libstdc++, which were exposed by the
  recent atf import.  These changes are purely cosmetic, no functional
  change.

MFC r241959:

  Fix a number of other clang warnings in libstdc++, which could appear
  when building other C++ software with it.  Also fix one actual bug in
  libsupc++, which was exposed by such a warning.  This latter fix is the
  only functional change.

MFC r241960:

  For building GNU libstdc++ and libsupc++, filter out libc++-specific and
  -std= flags above c++98 or gnu++98 from CXXFLAGS *after* including
  bsd.lib.mk, otherwise some additions to CXXFLAGS done in bsd.*.mk might
  not be preserved.

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

11 years agoMFC r241917:
eadler [Tue, 30 Oct 2012 04:06:12 +0000 (04:06 +0000)]
MFC r241917:
Now that device disabling is generic, remove extraneous code from the
device drivers that used to provide this feature.

Approved by: cperciva (implicit)

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

11 years agoMFC r241851:
eadler [Tue, 30 Oct 2012 03:30:01 +0000 (03:30 +0000)]
MFC r241851:
Add Danish keyboard model for macbooks to syscons.

(not verified to be accurate)

PR: conf/146793
Approved by: cperciva (implicit)

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

11 years agoMFC r241857:
eadler [Tue, 30 Oct 2012 03:21:23 +0000 (03:21 +0000)]
MFC r241857:
Add support for the "&" character in usernames.

Charlie & finally has his last name.

PR: gnu/37910
Approved by: cperciva (implicit)

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

11 years agoMFC r241909:
dim [Mon, 29 Oct 2012 21:11:37 +0000 (21:11 +0000)]
MFC r241909:

Allow building libc++ with any custom -std=xxx flag.  Note that using
-std=gnu++98 will give a lot of warnings with clang, so please use
-std=c++0x or higher, or use NO_WERROR.

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

11 years agoMFC r241788: Set default for ${pkg_info} like ${pkg_version}.
ume [Mon, 29 Oct 2012 16:58:45 +0000 (16:58 +0000)]
MFC r241788: Set default for ${pkg_info} like ${pkg_version}.

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

11 years agoMFC r241855:
eadler [Mon, 29 Oct 2012 04:51:51 +0000 (04:51 +0000)]
MFC r241855:
Update the kill(2) and killpg(2) man pages to the modern permission
checks. Also indicate killpg(2) is POSIX compliant.

Approved by: cperciva (implicit)

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

11 years agoMFC r242136:
eadler [Mon, 29 Oct 2012 04:21:16 +0000 (04:21 +0000)]
MFC r242136:
Prefer an example users born after myself might use.

Approved by: cperciva (implicit)

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

11 years agoMFC r241841:
eadler [Mon, 29 Oct 2012 04:18:34 +0000 (04:18 +0000)]
MFC r241841:
Implement HTTP 305 redirect handling.

PR: 172452
Approved by: cperciva (implicit)

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

11 years agoMFC r241840:
eadler [Mon, 29 Oct 2012 04:16:52 +0000 (04:16 +0000)]
MFC r241840:
Don't deny non-temporary redirects if the -A option is set (per
the man page) [0]

While here add support for draft-reschke-http-status-308-07

PR: 172451 [0]
Approved by: cperciva (implicit)

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

11 years agoMFC r241858:
eadler [Mon, 29 Oct 2012 04:09:20 +0000 (04:09 +0000)]
MFC r241858:
Remove unused code since the 5.x days

Approved by: cperciva (implicit)

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

11 years agoMFC r241855,r241859:
eadler [Mon, 29 Oct 2012 03:52:18 +0000 (03:52 +0000)]
MFC r241855,r241859:
Update the kill(2) and killpg(2) man pages to the modern permission
checks. Also indicate killpg(2) is POSIX compliant.

Correct the killpg(2) return values:

Return EPERM if processes were found but they
were unable to be signaled.

Return the first error from p_cansignal if no signal was successful.

Discussed with: jilles
Approved by: cperciva (implicit)

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

11 years agoMFC r241843:
eadler [Mon, 29 Oct 2012 03:48:25 +0000 (03:48 +0000)]
MFC r241843:
Make uhid attach to devices that look like keyboards
or mice if the quirk which prevents higher level
drivers from attaching is set.

PR: usb/172458
Approved by: cperciva (implicit)

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

11 years agoMFC r241793:
eadler [Mon, 29 Oct 2012 03:45:37 +0000 (03:45 +0000)]
MFC r241793:
Add support for iPhone 5 tethering.

PR: usb/172172
Approved by: cperciva (implicit)

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

11 years agoMFC r241281: ktrace/kern_exec: check p_tracecred instead of p_cred
avg [Sun, 28 Oct 2012 16:14:07 +0000 (16:14 +0000)]
MFC r241281: ktrace/kern_exec: check p_tracecred instead of p_cred

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

11 years agoMFC r241294: zfsboot: simplify probe_drive() a little bit
avg [Sun, 28 Oct 2012 16:11:58 +0000 (16:11 +0000)]
MFC r241294: zfsboot: simplify probe_drive() a little bit

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

11 years agoMFC r241293: zfs boot: export boot/primary pool and vdev guid all the
avg [Sun, 28 Oct 2012 16:10:03 +0000 (16:10 +0000)]
MFC r241293: zfs boot: export boot/primary pool and vdev guid all the
way to kenv

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

11 years agoMFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget
avg [Sun, 28 Oct 2012 16:06:55 +0000 (16:06 +0000)]
MFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget

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

11 years agoMFC r241772: document acpi_cpu devd notification about _CST change
avg [Sun, 28 Oct 2012 15:59:17 +0000 (15:59 +0000)]
MFC r241772: document acpi_cpu devd notification about _CST change

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

11 years agoMFC r241537: acpi_wmi: move wmi_info_list into sc
avg [Sun, 28 Oct 2012 15:56:36 +0000 (15:56 +0000)]
MFC r241537: acpi_wmi: move wmi_info_list into sc

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

11 years agoMFC r241292: zfs loader: treat plain pool name as a name of its root
avg [Sun, 28 Oct 2012 15:54:01 +0000 (15:54 +0000)]
MFC r241292: zfs loader: treat plain pool name as a name of its root
dataset

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

11 years agoMFC r241284: zfs boot: add lszfs command to i386 loader
avg [Sun, 28 Oct 2012 15:51:00 +0000 (15:51 +0000)]
MFC r241284: zfs boot: add lszfs command to i386 loader

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

11 years agoMFC r241289: boot/zfs: call zfs_spa_init for all found pools
avg [Sun, 28 Oct 2012 15:47:56 +0000 (15:47 +0000)]
MFC r241289: boot/zfs: call zfs_spa_init for all found pools

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

11 years agoMFC r241283: zfs boot: add code for listing child datasets of a given
avg [Sun, 28 Oct 2012 15:45:18 +0000 (15:45 +0000)]
MFC r241283: zfs boot: add code for listing child datasets of a given
dataset

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

11 years agoMFC r241296: g_part_taste: directly destroy consumer and geom here, no
avg [Sun, 28 Oct 2012 15:41:14 +0000 (15:41 +0000)]
MFC r241296:  g_part_taste: directly destroy consumer and geom here, no
need for withering

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

11 years agoMFC r241288: zfsboot: use the same zfs dataset naming format as loader
avg [Sun, 28 Oct 2012 15:37:32 +0000 (15:37 +0000)]
MFC r241288: zfsboot: use the same zfs dataset naming format as loader

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

11 years agoMFC: r242090
rmacklem [Sun, 28 Oct 2012 12:23:57 +0000 (12:23 +0000)]
MFC: r242090
Modify the comment to take out the names and URL.

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

11 years agoMFC r242086:
delphij [Sun, 28 Oct 2012 10:18:46 +0000 (10:18 +0000)]
MFC r242086:

Update hptiop(4) to version 1.8, which added support for HighPoint
RocketRAID 4500 series.

Many thanks to HighPoint Technologies for their continued support
of FreeBSD!

Submitted by: HighPoint Technologies

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

11 years agoMerge of current of tzdata2012h, r242208
edwin [Sun, 28 Oct 2012 09:18:13 +0000 (09:18 +0000)]
Merge of current of tzdata2012h, r242208

- Bahia no longer has DST.
- Tocantins has DST.
- Israel has new DST rules next year.
- Jordan stays on DST this winter.

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

11 years agoMFCr238925:
davide [Sat, 27 Oct 2012 23:30:46 +0000 (23:30 +0000)]
MFCr238925:
Until now KTR_ENTRIES, which defines the size of circular buffer used in
ktr(4), was constrained to be a power of two. Remove this constraint and
update sys/conf/NOTES accordingly.

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

11 years agoMFC r239110:
davide [Sat, 27 Oct 2012 23:12:05 +0000 (23:12 +0000)]
MFC r239110:
Remove a spurious brace which causes build fail in case BCE_DEBUG option
is turned on.

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

11 years agoMFC r242181:
hrs [Sat, 27 Oct 2012 19:49:15 +0000 (19:49 +0000)]
MFC r242181:

Fix an issue when ipv6_enable=YES && ipv6_gateway_enable=YES which could
prevent rtadvd(8) from working as intended.

Spotted by: brian
Discussed with: brian

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

11 years agoMFC of 240586 and 240587 to unbreak release building:
hrs [Sat, 27 Oct 2012 19:37:26 +0000 (19:37 +0000)]
MFC of 240586 and 240587 to unbreak release building:

Update generate-release.sh script:

 - Use svn for ports and doc trees
 - When installing a binary textproc/docproj package,
   switch pkg_add(1) to pkg(8) [1]

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

11 years agoMFC r242010:
kib [Sat, 27 Oct 2012 04:45:25 +0000 (04:45 +0000)]
MFC r242010:
Add missed sched_pin().

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

11 years agoMFC r241784:
eadler [Sat, 27 Oct 2012 01:24:25 +0000 (01:24 +0000)]
MFC r241784:
Adds 4K quirks for the some SSD's which all perform better when 4K
aligned and only except 4K deletes (TRIM).

PR: kern/169974
Approved by: cperciva (implicit)

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

11 years agoMFC r241848:
eadler [Sat, 27 Oct 2012 01:20:48 +0000 (01:20 +0000)]
MFC r241848:
Check the return error of set[e][ug]id. While this can never fail in the
current version of FreeBSD, this isn't guarenteed by the API.
Custom security modules, or future implementations of the setuid and
setgid may fail.

Approved by: cperciva (implicit)

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

11 years agoMFC: r240336:
obrien [Fri, 26 Oct 2012 18:06:49 +0000 (18:06 +0000)]
MFC: r240336:
  Simply things so that "#REQUIRE: FILESYSTEMS" means the file
  systems are fully "ready to go".

  'FILESYSTEMS' states: "This is a dummy dependency, for services which
  require file systems to be mounted before starting."  However, we have
  'var' which is was run after 'FILESYSTEMS' and can mount /var if it
  already isn't mounted.  Furthermore, several scripts cannot use /var
  until 'cleanvar' has done its thing.  Thus "FILESYSTEMS" hasn't really
  meant all critical file systems are fully usable.

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

11 years agoMFC r241895:
dim [Fri, 26 Oct 2012 16:30:49 +0000 (16:30 +0000)]
MFC r241895:

Pull in r165878 from upstream llvm trunk:

  X86: Disable long nops for all cpus prior to pentiumpro/i686.

This is the safest approach for now.  If you think long nops matter a
lot for performance, compile with -march=i686 or higher. :)

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

11 years agoMFC: r242137: Iterate rather than use recursion. We can blow out the
obrien [Fri, 26 Oct 2012 16:07:53 +0000 (16:07 +0000)]
MFC: r242137: Iterate rather than use recursion.  We can blow out the
     kernel stack if there is a long chain of fork(2)s.

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

11 years agoMFC r241828,r241891:
eadler [Fri, 26 Oct 2012 00:44:32 +0000 (00:44 +0000)]
MFC r241828,r241891:
Finish migration of MAINTAINER entries

Approved by: cperciva (implicit)

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

11 years agoMFC r241845,r241934:
eadler [Fri, 26 Oct 2012 00:34:27 +0000 (00:34 +0000)]
MFC r241845,r241934:
Sysinstall has been removed from base.

Approved by: cperciva (implicit)

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

11 years agoMFC r240210:
delphij [Fri, 26 Oct 2012 00:28:29 +0000 (00:28 +0000)]
MFC r240210:

It seems that what the code really meant is that when a write is completed,
do a BUS_DMASYNC_POSTWRITE over the DMA map.  The way it currently is would
only do POSTREAD for read transactions.

Submitted by: Sascha Wildner

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

11 years agoMFC 241555:
n_hibma [Thu, 25 Oct 2012 21:22:05 +0000 (21:22 +0000)]
MFC 241555:

 Implement modem control in u3g. Tested on Option GTM382W, Huawei E220,
 and Sierra Wireless MC8790V. Also implement the .ucom_poll method.

 Note: It resolves ppp hanging during the PPp> phase.

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

11 years agoMFC 241496:
n_hibma [Thu, 25 Oct 2012 20:45:57 +0000 (20:45 +0000)]
MFC 241496:

Some 3G modems return the wrong signature in echo packets and make it
impossible to use LQR/ECHO. They return want_magic instead.

With this change it is now possible to use

enable lqr
set lqrperiod 5
enable echo
set echoperiod 5

in your ppp.conf file.

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

11 years agoMFC r241827:
eadler [Thu, 25 Oct 2012 03:30:06 +0000 (03:30 +0000)]
MFC r241827:
Mark bsdar_errc as __dead2 to help code analysis tools.

PR: bin/172636
Approved by: cperciva (implicit)

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

11 years agoMFC r241825:
eadler [Thu, 25 Oct 2012 03:29:09 +0000 (03:29 +0000)]
MFC r241825:
Print flags as hex instead of an integer.

PR: kern/168210
Approved by: cperciva (implicit)

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

11 years agoMFC r241847:
eadler [Thu, 25 Oct 2012 03:27:53 +0000 (03:27 +0000)]
MFC r241847:
Free buf when its no longer used. This helps eliminate a static analysis
warning.

PR: ports/172566
Approved by: cperciva (implicit)

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

11 years agoMFC r241842:
eadler [Thu, 25 Oct 2012 03:24:24 +0000 (03:24 +0000)]
MFC r241842:
Add support for gjournal to dumpfs

PR: 165821
Approved by: cperciva (implicit)

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

11 years agoMFC r241837:
eadler [Thu, 25 Oct 2012 03:21:43 +0000 (03:21 +0000)]
MFC r241837:
Fix build if COMPAT_43 is defined without one of
COMPAT_FREEBSD[4567]

Approved by: cperciva (implicit)

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

11 years agoMFC r241846:
eadler [Thu, 25 Oct 2012 03:20:00 +0000 (03:20 +0000)]
MFC r241846:
bcd isn't installed setuid.
caesar isn't installed setuid.

For the archaeologists:
it seems this call originally came from NetBSD PR 5970 and 5945

PR: 172566
Approved by: cperciva (implicit)

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

11 years agoMFC r241893:
eadler [Thu, 25 Oct 2012 03:17:02 +0000 (03:17 +0000)]
MFC r241893:
Update re members to reality

Approved by: cperciva (implicit)

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

11 years agoMFC r241832:
eadler [Thu, 25 Oct 2012 03:15:24 +0000 (03:15 +0000)]
MFC r241832:
Covert regression test to python 3

Approved by: cperciva (implicit)

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

11 years agoMFC r241849:
eadler [Thu, 25 Oct 2012 03:14:17 +0000 (03:14 +0000)]
MFC r241849:
Fix typo in error when unable to create TCP socket

PR: bin/172490
Approved by: cperciva (implicit)

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

11 years agoMFC r241834:
eadler [Thu, 25 Oct 2012 03:12:20 +0000 (03:12 +0000)]
MFC r241834:
Make do_uniq work with python3

Approved by: cperciva (implicit)

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