]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r240468 (by brooks):
dim [Wed, 14 Nov 2012 20:27:17 +0000 (20:27 +0000)]
MFC r240468 (by brooks):

  Introduce a new make variable COMPILER_TYPE that specifies what
  type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
  is set in the new bsd.compiler.mk file based on the value of the CC
  variable or, should it prove informative, by running ${CC} --version
  and examining the output.

  To avoid negative performance impacts in the default case and correct
  value for COMPILER_TYPE type is determined and passed in the environment
  of submake instances while building world.

  Replace adhoc attempts at determining the compiler type by examining
  CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
  bootstrapping complications when first setting WITH_CLANG_IS_CC.

  Sponsored by: DARPA, AFRL
  Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
(with some modifications post review)

MFC r242633 (by brooks):

  Allow CC to be gcc46 or similar by matching gcc*.

  Don't test the value of the :M matches, either the string matches or does
  not.

MFC r242658:

  Fix typo in bsd.compiler.mk.

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

11 years agoMerge of current of 243003, tzdata2012j
edwin [Wed, 14 Nov 2012 10:06:50 +0000 (10:06 +0000)]
Merge of current of 243003, tzdata2012j

- Libya went to Standard Time on 10 November 2012

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

11 years agoMFC r242814:
eadler [Wed, 14 Nov 2012 00:34:11 +0000 (00:34 +0000)]
MFC r242814:
Add support for Advantech PCI-1602 RS-485/RS-422 serial card

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

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

11 years agoMFC r242372:
mjg [Tue, 13 Nov 2012 19:17:21 +0000 (19:17 +0000)]
MFC r242372:
atrun(8): scale default load average limit with the number of CPUs

Previously atrun refused to run jobs if load average was not below fixed limit of 1.5.

PR: 173175
Approved by: trasz (mentor)

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

11 years agoMerge of current of 242925, tzdata2012i
edwin [Mon, 12 Nov 2012 20:50:15 +0000 (20:50 +0000)]
Merge of current of 242925, tzdata2012i

- Cuba is changing back to Standard Time on 4 November 2012.

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

11 years agoMFC r242617:
kib [Mon, 12 Nov 2012 15:17:25 +0000 (15:17 +0000)]
MFC r242617:
A clarification to the behaviour of the active vnode list management
regarding the vnode page cleaning.

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

11 years agoMFC 242479,242480: Force segments to 1 for mapping
mjacob [Mon, 12 Nov 2012 14:34:46 +0000 (14:34 +0000)]
MFC 242479,242480: Force segments to 1 for mapping
control spaces.

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

11 years agoRemove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
bapt [Mon, 12 Nov 2012 14:13:49 +0000 (14:13 +0000)]
Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
number.
This also allow pw user show to work as expected.

PR: bin/172112
Submitted by: Ilya A. Arkhipov <rum1cro@yandex.ru>

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

11 years agoadd support for newer Lenovo ThinkPads to acpi_ibm
bapt [Mon, 12 Nov 2012 14:04:57 +0000 (14:04 +0000)]
add support for newer Lenovo ThinkPads to acpi_ibm

PR: kern/164538
Submitted by: Pierre Imai <pierre@imai.at>

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

11 years agoMFC r242625:
dim [Mon, 12 Nov 2012 07:34:05 +0000 (07:34 +0000)]
MFC r242625:

Remove duplicate const specifiers in many drivers (I hope I got all of
them, please let me know if not).  Most of these are of the form:

static const struct bzzt_type {
      [...list of members...]
} const bzzt_devs[] = {
      [...list of initializers...]
};

The second const is unnecessary, as arrays cannot be modified anyway,
and if the elements are const, the whole thing is const automatically
(e.g. it is placed in .rodata).

I have verified this does not change the binary output of a full kernel
build (except for build timestamps embedded in the object files).

Reviewed by: yongari, marius

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

11 years agoMFC r242804:
dim [Mon, 12 Nov 2012 07:30:24 +0000 (07:30 +0000)]
MFC r242804:

Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in
sio.S.  This is not particularly needed for head right now, but it is
intended to merge to stable/9, to fix boot2 build with clang there.

Reviewed by: avg

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

11 years agoFix a regression introduced by SVN r211417 that saw the breakage of a feature
dteske [Sun, 11 Nov 2012 23:29:45 +0000 (23:29 +0000)]
Fix a regression introduced by SVN r211417 that saw the breakage of a feature
documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):

If /usr/sbin/sysinstall is linked to another filename, say
`/usr/local/bin/configPackages', then the basename will be used
as an implicit command name.

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

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

11 years agoMFC r240422, r240426 and r240450:
ed [Sun, 11 Nov 2012 12:21:51 +0000 (12:21 +0000)]
MFC r240422, r240426 and r240450:

  Implement LIST_PREV().

  Regular LISTs have been implemented in such a way that the prev-pointer
  does not point to the previous element, but to the next-pointer stored
  in the previous element. This is done to simplify LIST_REMOVE(). This
  macro can be implemented without knowing the address of the list head.

  Unfortunately this makes it harder to implement LIST_PREV(), which is
  why this macro was never here. Still, it is possible to implement this
  macro. If the prev-pointer points to the list head, we return NULL.
  Otherwise we simply subtract the offset of the prev-pointer within the
  structure.

  It's not as efficient as traversing forward of course, but in practice
  it shouldn't be that bad. In almost all use cases, people will want to
  compare the value returned by LIST_PREV() against NULL, so an optimizing
  compiler will not emit code that does more branching than TAILQs.

  While there, add __containerof(). Compared to __member2struct(), this
  macro has the following advantages:

  - It ensures that the type of the pointer is compatible with the member
    field of the structure (or a void pointer).
  - It works properly in combination with volatile and const, though
    unfortunately it drops these qualifiers from the returned value.

  mdf@ proposed to add the container_of() macro, just like Linux has.
  Eventually I decided against this, as <sys/param.h> is included all over
  the place. It seems container_of() on Linux is specific to the kernel,
  not userspace. I'd rather not pollute userspace with this.

  I also thought about adding __container_of(), but this would have two
  advantages. Xorg seems to already have a __container_of(), which is not
  compatible with this version. Also, the underscore in the middle
  conflicts with our existing macros (__offsetof, __rangeof, etc).

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

11 years agoMFC r241161:
ed [Sun, 11 Nov 2012 12:12:44 +0000 (12:12 +0000)]
MFC r241161:

  Fix faulty error code handling in read(2) on TTYs.

  When performing a non-blocking read(2), on a TTY while no data is
  available, we should return EAGAIN. But if there's a modem disconnect,
  we should return 0. Right now we only return 0 when doing a blocking
  read, which is wrong.

MFC r242078:

  Correct SIGTTIN handling.

  In the old TTY layer, SIGTTIN was correctly handled like this:

        while (data should be read) {
                send SIGTTIN if not foreground process group
                read data
        }

  In the new TTY layer, however, this behaviour was changed, based on a
  false interpretation of the standard:

        send SIGTTIN if not foreground process group
        while (data should be read) {
                read data
        }

  Correct this by pushing tty_wait_background() into the ttydisc_read_*()
  functions.

  Reported by:  koitsu
  PR:           kern/173010

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

11 years agoMFC r233522, r239855, r239910, r239938, r239954 and r239961.
ed [Sun, 11 Nov 2012 12:06:12 +0000 (12:06 +0000)]
MFC r233522, r239855, r239910, r239938, r239954 and r239961.

- Relicense to 2-clause BSD license.
- Use queue(3) -- not some homegrown implementation of linked lists.
- Rename structures to _entry, as they are entries in the linked list --
  not the lists themselves.
- Don't store entire copies of struct utmpx in utmpx_entry, but only the
  members we're interested in. Large fields such as hostnames are not
  needed during the execution of the program.
- Give structure members useful names, instead of `name'.
- While there, use struct timevals instead of time_t's internally. This
  is not strictly useful, but while we're at it...
- Mark stuff static.
- Add missing const keywords.
- Remove unneeded prototypes.
- Remove workaround for sparc64-specific utmp problems. These don't
  apply to utmpx.
- Don't discard entries when timestamps are not monotone. This shouldn't
  ever happen with utmpx, but discarding them is a bit too harsh.
- Remove debug code. We nowadays have `getent utmpx', which can be used
  to analyze logfiles in depth.
- Use proper uppercasing/periods in comments.
- Print output of `ac -p' sorted alphabetically, instead of first
  occurrence.
- Properly check against pts/* instead of tty[PQRSpqrs]* to determine
  whether a TTY is a pseudo-terminal.

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

11 years agoMFC r242583:
eadler [Sun, 11 Nov 2012 04:07:09 +0000 (04:07 +0000)]
MFC r242583:
Add support for a few more devices:

PNP0510 and FUJ02E5 for a  "Wacom Tablet at FuS Lifebook T"
PNP0502 and PNP0511 for some other generic devices.

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

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

11 years agoMFC r242565: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call
avg [Sat, 10 Nov 2012 12:08:06 +0000 (12:08 +0000)]
MFC r242565: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call

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

11 years agoMFC r241773: zfs: wait in arc_lowmem only if curproc == pageproc
avg [Sat, 10 Nov 2012 12:06:24 +0000 (12:06 +0000)]
MFC r241773: zfs: wait in arc_lowmem only if curproc == pageproc

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

11 years agoMFC r241540: pciereg_cfg*: use assembly to access the mem-mapped cfg space
avg [Sat, 10 Nov 2012 12:04:02 +0000 (12:04 +0000)]
MFC r241540: pciereg_cfg*: use assembly to access the mem-mapped cfg space

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

11 years agoMFC r242707:
dim [Sat, 10 Nov 2012 00:36:53 +0000 (00:36 +0000)]
MFC r242707:

Belatedly add links from /usr/bin/clang to /usr/bin/CC, like it has been
done for g++.

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

11 years agoMFC r242623:
dim [Fri, 9 Nov 2012 19:35:46 +0000 (19:35 +0000)]
MFC r242623:

In sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newer
versions of clang 3.2, about comparing enum uni_cause values against
integer constants which fall outside the enum range.  No functional
change.

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

11 years agoMFC r242622:
dim [Fri, 9 Nov 2012 19:32:37 +0000 (19:32 +0000)]
MFC r242622:

Fix a few warnings from newer clang 3.2 in libpmc, about comparing enum
pmc_event values against integer constants which fall outside the enum
range.

Reviewed by: fabient, sbruno

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

11 years agoMFC r242680:
mjg [Fri, 9 Nov 2012 19:31:31 +0000 (19:31 +0000)]
MFC r242680:

Fix possible spurious sbunlock in sctp_sorecvmsg.

Approved by: trasz (mentor)

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

11 years agoMFC r242127, r240078, r240609, r241988, r242129, r242223, r242438,
hselasky [Fri, 9 Nov 2012 07:29:11 +0000 (07:29 +0000)]
MFC r242127, r240078, r240609, r241988, r242129, r242223, r242438,
r242453, r242455 and r242458:

Add full support for Fast Track Ultra 8R from M-audio.

Implement support for USB Audio v2.0.

Remove some redundant USB audio v1.0 debug data. Use lsusb instead.

Implement support for the so-called USB feedback endpoint for USB
audio devices.

Export all mixer nodes into dev.pcm.X.mixer.Y sysctl nodes.

PR: usb/171254

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

11 years agoMFC r241432, r242628 and r242364:
hselasky [Fri, 9 Nov 2012 07:12:31 +0000 (07:12 +0000)]
MFC r241432, r242628 and r242364:
Remove ancient mass storage gone checks.
Add some more mass storage related quirks.
Improve auto-quirk detection for mass storage devices.

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

11 years agoMFC r240743 and r234418:
hselasky [Fri, 9 Nov 2012 07:05:28 +0000 (07:05 +0000)]
MFC r240743 and r234418:
Fix some typos.

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

11 years agoMFC r238466 and r242777:
hselasky [Fri, 9 Nov 2012 06:58:23 +0000 (06:58 +0000)]
MFC r238466 and r242777:
Implement non-PHY support in the udav driver.

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

11 years agoMFC r242462:
eadler [Fri, 9 Nov 2012 00:35:55 +0000 (00:35 +0000)]
MFC r242462:
10 years too late add support for "2.88MB 3.5in Extra High Density"
floppies.

Its unlikely that anyone actually uses these or cares about these
anymore, since we support other floppy types and this change doesn't
hurt - just add it.

PR: conf/40777
Arrival-Date: Fri Jul 19 08:50:02 PDT 2002
Approved by: cperciva (implicit)

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

11 years agoMFC r242523:
hselasky [Thu, 8 Nov 2012 16:17:52 +0000 (16:17 +0000)]
MFC r242523:
Allow using the embedded EHCI host controller in Freescale SoCs
by adding the missing bits. See ehci_fsl.c for their use.

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

11 years agoMFC r240750, r241987 and r242126:
hselasky [Thu, 8 Nov 2012 16:13:51 +0000 (16:13 +0000)]
MFC r240750, r241987 and r242126:
Add missing CTLFLAG_TUN flag to tunable sysctls in the USB stack.
Adjust timing parameters of FULL/LOW/HIGH speed USB enumeration
and make these timing parameters tunable. This patch will fix
enumeration with some USB devices.
Fix a typo.

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

11 years agoMFC r238551 and r239617:
hselasky [Thu, 8 Nov 2012 16:04:32 +0000 (16:04 +0000)]
MFC r238551 and r239617:
Add support for Intel Panther/Lynx Point XHCI port routing.

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

11 years agoMFC r242460: fopen(3): Mention that the "x" mode option is from C11.
jilles [Thu, 8 Nov 2012 13:47:32 +0000 (13:47 +0000)]
MFC r242460: fopen(3): Mention that the "x" mode option is from C11.

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

11 years agoMFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".
jilles [Thu, 8 Nov 2012 13:40:46 +0000 (13:40 +0000)]
MFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".

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

11 years agoMFC r242559:
kib [Thu, 8 Nov 2012 02:29:16 +0000 (02:29 +0000)]
MFC r242559:
Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.

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

11 years agoMFC r242556:
kib [Thu, 8 Nov 2012 02:23:51 +0000 (02:23 +0000)]
MFC r242556:
Order the enumeration of the MNT_ flags to be the same as the order of
their definitions.

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

11 years agoMFC r242425:
yongari [Thu, 8 Nov 2012 02:06:27 +0000 (02:06 +0000)]
MFC r242425:
  Remove TCP/UDP checksum offloading feature for IP fragmented
  datagrams.  Traditionally upper stack fragmented packets without
  computing TCP/UDP checksum and these datagrams were passed to
  driver.  But there are chances that other packets slip into the
  interface queue in SMP world. If this happens firmware running on
  MIPS 4000 processor in the controller would see mixed packets and
  it shall send out corrupted packets.
  While I'm here simplify checksum offloading setup.

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

11 years agoMFC r238991:
jh [Wed, 7 Nov 2012 16:52:01 +0000 (16:52 +0000)]
MFC r238991:

Disallow sectorsize larger than MAXPHYS and mediasize smaller than
sectorsize.

PR: 169947

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

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