]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r228601:
dim [Sat, 31 Dec 2011 19:58:25 +0000 (19:58 +0000)]
MFC r228601:

Define YY_NO_INPUT when building libbinutils, to prevent warnings about
unused input() functions emitted by lex.

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

12 years agoMFC r228598:
dim [Sat, 31 Dec 2011 19:56:25 +0000 (19:56 +0000)]
MFC r228598:

In cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, fix some obtuse
snprintf tricks.

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

12 years agoMFC r228597:
dim [Sat, 31 Dec 2011 19:53:00 +0000 (19:53 +0000)]
MFC r228597:

In cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c, a size_t is passed
to fprintf as a field width.  It should be an int instead, so cast it.

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

12 years agoMFC r228441:
mdf [Sat, 31 Dec 2011 19:50:55 +0000 (19:50 +0000)]
MFC r228441:

Consistently use types in e1000 driver code:

 - Two struct members eee_disable are used in a function that expects
   an int *, so declare them int, not bool.
 - igb_tx_ctx_setup() returns a boolean value, so declare it bool, not int.
 - igb_header_split is passed to TUNABLE_INT, so delcare it int, not bool.
 - igb_tso_setup() returns a bool, so declare it bool, not boolean_t.
 - Do not re-define bool/true/false if the symbols already exist.

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

12 years agoMFC r228596:
dim [Sat, 31 Dec 2011 19:50:52 +0000 (19:50 +0000)]
MFC r228596:

In games/factor/factor.c, fix a warning about a format string not being
a literal.

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

12 years agoMFC r228595:
dim [Sat, 31 Dec 2011 19:48:04 +0000 (19:48 +0000)]
MFC r228595:

Fix some obtuse fprintf tricks in bin/ed.

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

12 years agoMFC r228600:
dim [Sat, 31 Dec 2011 19:46:06 +0000 (19:46 +0000)]
MFC r228600:

Fix the incompatible enum conversions in libexec/ypxfr in another, more
messy way, so as to not disrupt other yp programs: just add casts to
convert the incompatible enums, as the numerical values are the same
(either by accident, design, or the phase of the moon at that time).

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

12 years agoMFC r228589:
dim [Sat, 31 Dec 2011 19:42:52 +0000 (19:42 +0000)]
MFC r228589:

In contrib/telnet/telnetd/utility.c, fix a few warnings about format
strings not being literals.

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

12 years agoMFC r228587:
dim [Sat, 31 Dec 2011 19:36:11 +0000 (19:36 +0000)]
MFC r228587:

In libexec/rbootd/utils.c, use the correct printf length modifiers for
u_int32_t and size_t.

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

12 years agoMFC r228586:
dim [Sat, 31 Dec 2011 19:34:25 +0000 (19:34 +0000)]
MFC r228586:

In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
size_t.

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

12 years agoMFC r228584:
dim [Sat, 31 Dec 2011 19:28:54 +0000 (19:28 +0000)]
MFC r228584:

In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers.

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

12 years agoMFC r228582:
dim [Sat, 31 Dec 2011 19:26:24 +0000 (19:26 +0000)]
MFC r228582:

In libexec/getty/chat.c, replace && with & in chat_send().  The intent
is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.

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

12 years agoMFC r228581:
dim [Sat, 31 Dec 2011 19:19:19 +0000 (19:19 +0000)]
MFC r228581:

In libexec/bootpd/bootpgw/bootpgw.c, add a cast for the remaining
minutes of activity, to avoid a warning on platforms where time_t is a
32-bit integer.

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

12 years agoMFC r228580:
dim [Sat, 31 Dec 2011 18:53:11 +0000 (18:53 +0000)]
MFC r228580:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c, some
uint64_t values are snprintf'd using %llx.  On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.

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

12 years agoMFC r228579:
dim [Sat, 31 Dec 2011 18:49:46 +0000 (18:49 +0000)]
MFC r228579:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, some
uint64_t values are snprintf'd using %llx.  On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.

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

12 years agoMFC r227775:
nwhitehorn [Sat, 31 Dec 2011 18:09:31 +0000 (18:09 +0000)]
MFC r227775:
Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50
import, it works without issue.

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

12 years agoMFC: r226987
pho [Sat, 31 Dec 2011 17:56:05 +0000 (17:56 +0000)]
MFC: r226987

Added missing cache purge of from argument for rename().

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

12 years agoMFC r228578
dim [Sat, 31 Dec 2011 17:14:56 +0000 (17:14 +0000)]
MFC r228578

In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrect
warnings about alignment, so turn -Wcast-align off for now.

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

12 years agoMFC r228559:
dim [Sat, 31 Dec 2011 16:32:26 +0000 (16:32 +0000)]
MFC r228559:

In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
zero the password buffer.

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

12 years agoMFC r228235 and r228236:
hselasky [Sat, 31 Dec 2011 15:49:07 +0000 (15:49 +0000)]
MFC r228235 and r228236:
Minor code simplification.
No functional change.

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

12 years agoMFC r226430:
stefanf [Sat, 31 Dec 2011 15:49:04 +0000 (15:49 +0000)]
MFC r226430:
Adjust posix_memalign() prototype to match what we define in stdlib.h for
C++ compilation.

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

12 years agoMFC r227404:
hselasky [Sat, 31 Dec 2011 15:46:36 +0000 (15:46 +0000)]
MFC r227404:
Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.
Some header file parts of this patch were taken from a patch submitted
by Maya Erez <merez@codeaurora.org> to the LibUSB developers list.

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

12 years agoMFC r228195:
hselasky [Sat, 31 Dec 2011 15:43:55 +0000 (15:43 +0000)]
MFC r228195:
Fix checks for error return from urtw_alloc_rx_data_list() and
urtw_alloc_tx_data_list().

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

12 years agoMFC r228232 and r228303:
hselasky [Sat, 31 Dec 2011 15:42:05 +0000 (15:42 +0000)]
MFC r228232 and r228303:
Fix clang compile warnings.

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

12 years agoMFC r227706, r227748, r227749 and r228234:
hselasky [Sat, 31 Dec 2011 15:37:31 +0000 (15:37 +0000)]
MFC r227706, r227748, r227749 and r228234:
Simplify the usb_pause_mtx() function by factoring out the generic parts
to the kernel's pause() function. The pause() function can now be used
when cold != 0. Also assert that the timeout in system ticks must be
greater or equal to zero.

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

12 years agoMFC r227701, r227847 and r227849:
hselasky [Sat, 31 Dec 2011 15:31:34 +0000 (15:31 +0000)]
MFC r227701, r227847 and r227849:
Move the device_delete_all_children() function from usb_util.c
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Rename device_delete_all_children()
into device_delete_children(). Identify a few other places where
it makes sense to use device_delete_children().

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

12 years agoMFC r227610 and r228243:
hselasky [Sat, 31 Dec 2011 15:18:51 +0000 (15:18 +0000)]
MFC r227610 and r228243:
Add more quirks for USB mass storage devices.

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

12 years agoMFC r228637:
hselasky [Sat, 31 Dec 2011 15:15:30 +0000 (15:15 +0000)]
MFC r228637:
Add new USB ID.

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

12 years agoMFC r227781:
hselasky [Sat, 31 Dec 2011 15:14:07 +0000 (15:14 +0000)]
MFC r227781:
Add new USB IDs.

PR:     usb/162712, usb/163732

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

12 years agoMFC r228688,228689:
nwhitehorn [Sat, 31 Dec 2011 15:11:47 +0000 (15:11 +0000)]
MFC r228688,228689:
Support infrastructure for X11 on PS3.

Submitted by: geoffrey dot levand at mail dot ru

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

12 years agoMFC r228646:
nwhitehorn [Sat, 31 Dec 2011 15:08:33 +0000 (15:08 +0000)]
MFC r228646:
Additional icache paranoia: non-PLT relocations can modify the text segment.
It is then important to make sure the icache is synchronized again to
prevent (rare) random seg faults and illegal instructions.

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

12 years agoMFC r228558, r228585, r228588, r228652, r228707:
dim [Sat, 31 Dec 2011 15:03:29 +0000 (15:03 +0000)]
MFC r228558, r228585, r228588, r228652, r228707:

  Unfortunately, clang gives warnings about sendmail code that cannot be
  turned off yet.  Since this is contrib code, and we don't really care
  about the warnings, just make them non-fatal for now.

MFC r228590:

  Fix typos in the comments about clang warnings in several
  sendmail-related Makefiles.

  Spotted by: arundel

MFC r228708:

  In usr.bin/vacation/Makefile, fix a typo in the comment about clang
  warnings.

  Spotted by: arundel

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

12 years agoMFC r226465 and r226467:
hselasky [Sat, 31 Dec 2011 14:57:52 +0000 (14:57 +0000)]
MFC r226465 and r226467:
Fix an issue with 11g beacon frames which looks to be a limitation
on the largest multi-write size.

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

12 years agoMFC r228494, r228508:
hselasky [Sat, 31 Dec 2011 14:54:30 +0000 (14:54 +0000)]
MFC r228494, r228508:
Fix for random USB transfer time out.

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

12 years agoMFC r227462:
hselasky [Sat, 31 Dec 2011 14:50:38 +0000 (14:50 +0000)]
MFC r227462:
Enable power save mode for the USB storage device driver.

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

12 years agoMFC r226743:
hselasky [Sat, 31 Dec 2011 14:47:35 +0000 (14:47 +0000)]
MFC r226743:
Implement TX/RX checksum offloading support for ASIX AX88772B
controller.

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

12 years agoMFC r226709:
hselasky [Sat, 31 Dec 2011 14:45:43 +0000 (14:45 +0000)]
MFC r226709:
Allow USB ethernet drivers to define a driver specific
attach handler so that a USB ethernet driver can
announce interface capabilities and do its own MII attach.

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

12 years agoMFC 228304:
hselasky [Sat, 31 Dec 2011 14:37:51 +0000 (14:37 +0000)]
MFC 228304:
Correct some bInterval USB template descriptor values.

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

12 years agoMFC r228557:
dim [Sat, 31 Dec 2011 14:36:51 +0000 (14:36 +0000)]
MFC r228557:

In lib/libpmc/libpmc.c, struct pmc_cputype_map's pm_cputype field should
be of type 'enum pmc_cputype', not 'enum pmc_class'.

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

12 years agoMFC r228556:
dim [Sat, 31 Dec 2011 14:34:07 +0000 (14:34 +0000)]
MFC r228556:

Add "%option noinput" to aicasm_scan.l and aicasm_macro_scan.l, so no
unneeded input functions will be emitted.

Spotted by: arundel

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

12 years agoMFC r228709, r228711 and r228723:
hselasky [Sat, 31 Dec 2011 14:33:15 +0000 (14:33 +0000)]
MFC r228709, r228711 and r228723:
- Add missing unlock of USB controller's lock, when
doing shutdown, suspend and resume.
- Add code to wait for USB shutdown to be executed at system shutdown.
- Add sysctl which can be used to skip this waiting.

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

12 years agoMFC r227285:
hselasky [Sat, 31 Dec 2011 14:29:01 +0000 (14:29 +0000)]
MFC r227285:
Add support for new USB modem protocol.

PR:             usb/159919

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

12 years agoMFC r228554:
dim [Sat, 31 Dec 2011 14:27:26 +0000 (14:27 +0000)]
MFC r228554:

In sys/contrib/ngatm/netnatm/msg/uni_ie.c, use a more appropriate way to
tell the compiler some parameters are purposefully unused.

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

12 years agoMFC r228758:
hselasky [Sat, 31 Dec 2011 14:24:22 +0000 (14:24 +0000)]
MFC r228758:
Fix for race against user-space applications trying to change the
configuration on USB HUBs.

PR: kern/163091

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

12 years agoMFC r229086, r228483 and r228640:
hselasky [Sat, 31 Dec 2011 14:22:02 +0000 (14:22 +0000)]
MFC r229086, r228483 and r228640:
Implement better support for USB controller suspend and resume.
Fix some build issues in avr32dci.c

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

12 years agoMFC r228553:
dim [Sat, 31 Dec 2011 14:21:41 +0000 (14:21 +0000)]
MFC r228553:

In contrib/file/softmagic.c, fix a potential format string security
problem.  (This fix has already been applied upstream, but we do not
have the latest version of file in the tree at the moment.)

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

12 years agoMFC r228552:
dim [Sat, 31 Dec 2011 14:13:11 +0000 (14:13 +0000)]
MFC r228552:

  Define YY_NO_INPUT in lib/libipsec/policy_token.l, so lex's input()
  function does not get defined needlessly.

MFC r228555:

  In lib/libipsec/policy_token.l, use lex's standard "%option noinput"
  instead of hand-defining the YY_NO_INPUT macro.

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

12 years agoMFC r226173, r227843, r227848 and r227908:
hselasky [Sat, 31 Dec 2011 14:12:12 +0000 (14:12 +0000)]
MFC r226173, r227843, r227848 and r227908:
Use DEVMETHOD_END to mark end of device methods.
Remove superfluous device methods.
Add some missing __FBSBID() macros.

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

12 years agoMFC r228550:
dim [Sat, 31 Dec 2011 14:04:54 +0000 (14:04 +0000)]
MFC r228550:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c, the
dt_popc() function assumes that either _ILP32 or _LP64 is defined,
otherwise it has no suitable implementation.

However, the _ILP32 and _LP64 macros come from isa_defs.h, which is not
included in this file.  Add the include now, to get the macros defined.

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

12 years agoMFC r228549:
dim [Sat, 31 Dec 2011 14:02:16 +0000 (14:02 +0000)]
MFC r228549:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c, use the
correct printf format for a key_t (aka long).

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

12 years agoMFC r228548:
dim [Sat, 31 Dec 2011 13:56:32 +0000 (13:56 +0000)]
MFC r228548:

In cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c, use the
correct printf format for an unsigned long.

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

12 years agoMFC r228547:
dim [Sat, 31 Dec 2011 13:43:51 +0000 (13:43 +0000)]
MFC r228547:

Cast away a clang alignment warning in drti.c's fixsymbol() function.
This code only runs on i386 and amd64, so there should be no problems if
buf + sec->dofs_offset is not aligned (which is unlikely anyway).

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

12 years agoMFC r228546:
dim [Sat, 31 Dec 2011 13:37:25 +0000 (13:37 +0000)]
MFC r228546:

  Clang has more warnings enabled by default, and when using -Wall, so if WARNS
  is set to low values, some of them have to be disabled explicitly.

MFC r228551:

  Disable one more clang warning when WARNS <= 3.

MFC r228606:

  Add a NO_WARRAY_BOUNDS setting to bsd.sys.mk, only applicable to clang,
  to selectively work around warnings in programs that don't use flexible
  array members, but instead define arrays of length 1 at the end of the
  struct, and then access those beyond their declared bounds.

MFC r228617:

  Disable yet another clang warning when WARNS <= 3.

MFC r228675:

  Disable yet another clang warning (-Wconversion) when WARNS <= 3.

MFC r228677:

  Disable another clang warning (-Wempty-body) when WARNS <= 2.

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

12 years agoMFC r227396, r227401, r227541, r227654 and r228493:
hselasky [Sat, 31 Dec 2011 13:23:04 +0000 (13:23 +0000)]
MFC r227396, r227401, r227541, r227654 and r228493:
Relax XHCI timeouts which should fix enumeration issues.
Fix definition of XHCI port power bit.
Correct size of some USB 3.0 descriptor fields.

Reported by:    Kohji Okuno, Jan Henrik Sylvester

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

12 years agoMFC r228766:
gabor [Sat, 31 Dec 2011 13:13:42 +0000 (13:13 +0000)]
MFC r228766:
  - Remove a GCC-specific compiler flag that was added before to eliminate
    some warnings but at the moment does not seem to be necessary.

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

12 years agoMFC r227463, r227383 and r227108:
hselasky [Sat, 31 Dec 2011 13:12:29 +0000 (13:12 +0000)]
MFC r227463, r227383 and r227108:
Add support for modem control lines.
Add support for GPIO pins.

PR: usb/162307
Submitted by: JD Louw

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

12 years agoMFC r228099:
gabor [Sat, 31 Dec 2011 13:12:10 +0000 (13:12 +0000)]
MFC r228099:
  - Create links to the xz and lzma versions even if BSD grep is not the
    default. Nor GNU nor liblzma in base provides such functionality so
    it may be useful.

MFC r228319:
  - Match GNU behavior of exit code
  - Rename variable that has a different meaning now

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

12 years agoMFC r227461:
hselasky [Sat, 31 Dec 2011 13:07:09 +0000 (13:07 +0000)]
MFC r227461:
Style change.
Use memxxx() functions instead of bxxx() functions.

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

12 years agoMFC r228540:
dim [Sat, 31 Dec 2011 12:58:21 +0000 (12:58 +0000)]
MFC r228540:

Since clang does not support the tls_model attribute used in malloc.c
yet (see LLVM PR 9788), and warns about it, rub it out for now.  When
clang grows support for this attribute, I will revert this again.

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

12 years agoMFC r228538:
dim [Sat, 31 Dec 2011 12:52:18 +0000 (12:52 +0000)]
MFC r228538:

In lib/libc/rpc/crypt_client.c, fix a clang warning about an implicit
conversion between enum desdir/desmode from include/rpc/des.h, and enum
desdir/desmode from include/rpcsvc/crypt.x.  These are actually
different enums, with different value names, but by accident the integer
representation of the enum values happened to be the same.

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

12 years agoMFC r228537:
dim [Sat, 31 Dec 2011 12:45:43 +0000 (12:45 +0000)]
MFC r228537:

Remove meaningless self-assignment in res_send.c, otherwise clang will
warn about it.  I guess this was originally done to silence a bogus
warning by an older version of gcc, but I could not reproduce it with
any version of gcc that I have access to.

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

12 years agoMFC 229067: Happy 2012 to FreeBSD users in Samoa.
obrien [Sat, 31 Dec 2011 04:42:17 +0000 (04:42 +0000)]
MFC 229067: Happy 2012 to FreeBSD users in Samoa.

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

12 years agoMFC r226480-226481:
yongari [Sat, 31 Dec 2011 01:30:43 +0000 (01:30 +0000)]
MFC r226480-226481:
r226480:
  Add missing driver lock in media status handler.

r226481:
  Make sure to report media change status to caller. Previously it
  always reported success.

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

12 years agoMFC r226479:
yongari [Sat, 31 Dec 2011 01:22:16 +0000 (01:22 +0000)]
MFC r226479:
  Close a race where SIOCGIFMEDIA ioctl get inconsistent link status.
  Because driver is accessing a common MII structure in
  mii_pollstat(), updating user supplied structure should be done
  before dropping a driver lock.

  Reported by: Karim (fodillemlinkarimi <> gmail dot com)

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

12 years agoMFC r226478:
yongari [Sat, 31 Dec 2011 01:07:01 +0000 (01:07 +0000)]
MFC r226478:
  Close a race where SIOCGIFMEDIA ioctl get inconsistent link status.
  Because driver is accessing a common MII structure in
  mii_pollstat(), updating user supplied structure should be done
  before dropping a driver lock.

  Reported by: Karim (fodillemlinkarimi <> gmail dot com)

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

12 years agoMFC r226123:
yongari [Sat, 31 Dec 2011 00:44:11 +0000 (00:44 +0000)]
MFC r226123:
  BCE_MISC_ID register of BCM5716 returns the same id of BCM5709 so
  remove explicit checks for BCM5716.
  The BCM5709 and BCM5716 chips are virtually indistinguishable by
  software except for the PCI device ID.  The two chips differ in
  that BCM5709 supports TCP/IP and iSCSI offload in Windows while
  the BCM5716 doesn't.
  While I'm here remove now unused definition of BCE_CHIP_NUM_5716
  and BCE_CHIP_ID_5716_C0.

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

12 years agoMFC r228536:
dim [Fri, 30 Dec 2011 23:41:24 +0000 (23:41 +0000)]
MFC r228536:

The TCB_GET32() and TCB_GET64() macros in the i386 and amd64-specific
versions of pthread_md.h have a special case of dereferencing a null
pointer.  Clang warns about this with:

In file included from lib/libthr/arch/i386/i386/pthread_md.c:36:
lib/libthr/arch/i386/include/pthread_md.h:96:10: error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
return (TCB_GET32(tcb_self));
^~~~~~~~~~~~~~~~~~~
lib/libthr/arch/i386/include/pthread_md.h:73:13: note: expanded from:
    : "m" (*(u_int *)(__tcb_offset(name))));            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/libthr/arch/i386/include/pthread_md.h:96:10: note: consider using __builtin_trap() or qualifying pointer with 'volatile'

Since this indirection is done relative to the fs or gs segment, to
retrieve thread-specific data, it is an exception to the rule.

Therefore, add a volatile qualifier to tell the compiler we really want
to dereference a zero address.

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

12 years agoMFC r228328:
dim [Fri, 30 Dec 2011 22:59:00 +0000 (22:59 +0000)]
MFC r228328:

Make it possible to use the debug versions of std::map and std::multimap
with clang, by removing two unneeded using declarations.  Otherwise, you
would get errors similar to:

/usr/include/c++/4.2/debug/map.h:77:20: error: dependent using declaration resolved to type without 'typename'
      using _Base::value_compare;
   ^

N.B.: Take care when you actually use the debug versions of any
libstdc++ header.  They are more likely to contain problems, because
they are exercised far less often, and since the standard library
complexity guarantees don't always apply anymore, compile times can
drastically increase.

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

12 years agoMFC r228409:
dim [Fri, 30 Dec 2011 22:54:19 +0000 (22:54 +0000)]
MFC r228409:

Add more files to cleanup with 'make delete-old' when WITHOUT_CLANG is
in effect.

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

12 years agoMFC r228442:
mdf [Fri, 30 Dec 2011 22:42:22 +0000 (22:42 +0000)]
MFC r228442:

Do not use the sometimes-reserved word 'bool' for a variable name.

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

12 years agoMFC r228379:
dim [Fri, 30 Dec 2011 22:40:17 +0000 (22:40 +0000)]
MFC r228379:

  Upgrade our copy of llvm/clang to 3.0 release.  Release notes can be
  found at: http://llvm.org/releases/3.0/docs/ReleaseNotes.html

MFC r228383:

  Use the correct upstream revision number for llvm/clang 3.0 release.

  The r145546 revision is from branches/release_30, the r145349 revision
  is from tags/RELEASE_30/final.

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

12 years agoMFC r227737:
dim [Fri, 30 Dec 2011 22:30:21 +0000 (22:30 +0000)]
MFC r227737:

Pull in r144505 from upstream clang trunk:

Fix the signature of the getcontext builtin, eliminating incorrect
warnings about its prototype.

This also adds a -W(no-)builtin-requires-header option, which can be
used to enable or disable warnings of this kind.

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

12 years agoMFC r227736:
dim [Fri, 30 Dec 2011 22:27:26 +0000 (22:27 +0000)]
MFC r227736:

Pull in r144237 from upstream clang trunk:

Fix the signature of __sigsetjmp and sigsetjmp.  This eliminates
incorrect warnings about the prototypes of these functions.

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

12 years agoMFC r227735:
dim [Fri, 30 Dec 2011 22:17:10 +0000 (22:17 +0000)]
MFC r227735:

Pull in r144110 from upstream clang trunk:

Mark the overloaded atomic builtins as having custom type checking,
which they do. This avoids all of the default argument promotions that
we (1) don't want, and (2) undo during that custom type checking, and
makes sure that we don't run into trouble during template
instantiation. Fixes llvm/clang PR11320.

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

12 years agoMFC r227215:
dim [Fri, 30 Dec 2011 22:07:04 +0000 (22:07 +0000)]
MFC r227215:

  When one attempts to compile the tree with -march=i386, which also used
  to be gcc's default before r198344, calls to atomic builtins will not be
  expanded inline.  Instead, they will be generated as calls to external
  functions (e.g. __sync_fetch_and_add_N), leading to linking errors later
  on.

  Put in a seatbelt that disables use of atomic builtins in libstdc++ and
  llvm, when tuning specifically for the real i386 CPU.  This does not
  protect against all possible issues, but it is better than nothing.

MFC r227538:

  LLVM uses atomic operations, which are not supported on i386 and GCC
  emits calls for them, rather than expanding them inline.  Older FreeBSD
  versions compile for i386 by default and as such we end up with
  unresolved symbols when we build LLVM's TableGen utility as a build
  tool on them.  Add the functions that GCC emits here, but don't bother
  to make them atomic. Such is not needed.

  Submitted by: marcel

MFC r227636:

  Revert r227538, since it doesn't compile with clang at all (it doesn't
  allow the built-in operations to be redefined, at least not without
  excessive force).

  Instead, just disable LLVM's support for atomic operations for now.
  Nothing in either clang or the tablegen tools currently depends on it.

  This still allows users of head built before r198344 to upgrade to
  top-of-head seamlessly.

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

12 years agoMFC r227122: sh(1): Improve documentation of field splitting.
jilles [Fri, 30 Dec 2011 21:50:16 +0000 (21:50 +0000)]
MFC r227122: sh(1): Improve documentation of field splitting.

This describes the POSIX-compliant splitting algorithm that first appeared
in 8.0.

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

12 years agoMFC r227121: make(1): obj dirs are physical paths so write `pwd -P`
jilles [Fri, 30 Dec 2011 21:27:51 +0000 (21:27 +0000)]
MFC r227121: make(1): obj dirs are physical paths so write `pwd -P`
rather than `pwd`.

Regular pwd may return a pathname containing symlinks, but make does not use
such pathnames.

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

12 years agoMFC r227816:
kib [Fri, 30 Dec 2011 21:01:14 +0000 (21:01 +0000)]
MFC r227816:
Remove the wrong comment about ufs not being loadable.
Note that only root filesystem module needs to be available
before root is mounted.

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

12 years agoMFC r227120:
dim [Fri, 30 Dec 2011 21:00:02 +0000 (21:00 +0000)]
MFC r227120:

Make it possible to set CC and CXX (and optionally, AS and LD) in
make.conf(5), while allowing the build32 stage on 64-bit architectures
to still override them, so that stage can successfully build 32-bit
compatibility libraries.

Explanation:
1) The build32 stage sets environment variables CC, CXX, AS and LD for
   its sub-make, to add 32-bit specific flags (-m32 and such).
2) The sub-make reads sys.mk, encounters CC?= and CXX?= assignments, so
   does not alter them.
3) After some other stuff, sys.mk reads /etc/make.conf.  When you have
   "CC=xxx" and "CXX=yyy" statements in there, they will *override* the
   build32-supplied CC/CXX values, nullifying the 32-bit specific flags.
4) Thus all objects get built as 64-bit anyway, and since LD is usually
   not set in make.conf, it still has the 32-bit flags!
5) Now, whenever something is linked, you will get a "ld: Relocatable
   linking with relocations from format elf64-x86-64-freebsd (foo.o) to
   format elf32-i386-freebsd (bar.o) is not supported" error.

Fix this by adding "-ECC -ECXX -EAS -ELD" to the build32 sub-make
invocation, which forces those environment variables to always override
any assignment in makefiles.  Thus making it possible to simply set:

CC=my-cc
CXX=my-c++

in your make.conf, or specify a path, even:

CC=/usr/local/bin/other-cc
CXX=/usr/local/bin/other-c++

Note this was never a problem on i386, since it has no build32 stage.

Silence from: current@

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

12 years agoMFC r227622:
kib [Fri, 30 Dec 2011 20:55:38 +0000 (20:55 +0000)]
MFC r227622:
Fix typo.

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

12 years agoMFC r227444:
kib [Fri, 30 Dec 2011 20:52:56 +0000 (20:52 +0000)]
MFC r227444:
Style.

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

12 years agoMFC r227443:
kib [Fri, 30 Dec 2011 20:45:40 +0000 (20:45 +0000)]
MFC r227443:
Guard against the unlikely case of the alias path containing the '%' symbols.

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

12 years agoMFC r227399:
kib [Fri, 30 Dec 2011 20:35:13 +0000 (20:35 +0000)]
MFC r227399:
Attempt to improve formatting and content of several comments for
amd64 and i386 MD code.

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

12 years agoMFC r227393:
kib [Fri, 30 Dec 2011 20:21:53 +0000 (20:21 +0000)]
MFC r227393:
Lock the thread lock around block that retrieves td_wmesg. Otherwise,
procfs could see a thread with assigned td_wchan but still NULL td_wmesg.

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

12 years agoMFC r228376:
kib [Fri, 30 Dec 2011 20:06:43 +0000 (20:06 +0000)]
MFC r228376:
Typo.

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

12 years agoMFC r228375:
kib [Fri, 30 Dec 2011 19:59:54 +0000 (19:59 +0000)]
MFC r228375:
Typo.

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

12 years agoMFC r228178:
kib [Fri, 30 Dec 2011 19:58:06 +0000 (19:58 +0000)]
MFC r228178:
If alloc_unr() call in the pipe_create() failed, then pipe->pipe_ino is
-1. But, because ino_t is unsigned, this case was not covered by the
test ino > 0 in pipeclose(), leading to the free_unr(-1). Fix it by
explicitely comparing with 0 and -1.

Do no access freed memory, the inode number was cached to prevent access
to cpipe after it possibly was freed, but I failed to commit the right
patch.

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

12 years agoMFC r227392:
kib [Fri, 30 Dec 2011 19:18:13 +0000 (19:18 +0000)]
MFC r227392:
Assert that _PRELE() is done for the held process.

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

12 years agoMFC r228432:
kib [Fri, 30 Dec 2011 18:58:42 +0000 (18:58 +0000)]
MFC r228432:
Fix printf.

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

12 years agoMFC r227024:
kib [Fri, 30 Dec 2011 18:20:44 +0000 (18:20 +0000)]
MFC r227024:
Despite official i386 ABI does not mandate any stack alignment besides
the word alignment, some versions of gcc do require 16-byte alignment.
Make sure the stack is 16-byte aligned before calling a subroutine.

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

12 years agoMFC r227023:
kib [Fri, 30 Dec 2011 18:18:06 +0000 (18:18 +0000)]
MFC r227023:
Make sure that stack is 16-byte aligned before calling a function,
as it is required by amd64 ABI. Add a comment for the places were
the stack is accidentally properly aligned already.

PR: amd64/162214

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

12 years agoMFC r227104:
kib [Fri, 30 Dec 2011 17:54:33 +0000 (17:54 +0000)]
MFC r227104:
Fix typo.

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

12 years agoFix a problem whereby a corrupt DNS record can cause named to crash. [11:06]
cperciva [Fri, 23 Dec 2011 15:00:37 +0000 (15:00 +0000)]
Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]

Add an API for alerting internal libc routines to the presence of
"unsafe" paths post-chroot, and use it in ftpd. [11:07]

Fix a buffer overflow in telnetd. [11:08]

Make pam_ssh ignore unpassphrased keys unless the "nullok" option is
specified. [11:09]

Add sanity checking of service names in pam_start. [11:10]

Approved by:    so (cperciva)
Approved by:    re (bz)
Security:       FreeBSD-SA-11:06.bind
Security:       FreeBSD-SA-11:07.chroot
Security:       FreeBSD-SA-11:08.telnetd
Security:       FreeBSD-SA-11:09.pam_ssh
Security:       FreeBSD-SA-11:10.pam

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

12 years agoMerge r228472. For the sake of POLA for the whole 9.x timeline add
glebius [Mon, 19 Dec 2011 13:12:37 +0000 (13:12 +0000)]
Merge r228472. For the sake of POLA for the whole 9.x timeline add
compatibility support for specifing IPv4 aliases in rc.conf without
the "inet" keyword.

Approved by: re (bz)

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

12 years agoMFC r228457:
ru [Mon, 19 Dec 2011 12:11:07 +0000 (12:11 +0000)]
MFC r228457:

The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for
IPv4 aliases to work since network.subr@197139.

Approved by: re (bz)

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

12 years agoMFH r228384: validate the service name
des [Tue, 13 Dec 2011 12:59:39 +0000 (12:59 +0000)]
MFH r228384: validate the service name

Approved by: re (kib)
Security: some poorly thought out programs allow the user to specify
the service name; this patch makes it harder to trick these
programs into loading and executing arbitrary code.

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

12 years agoMFH r227757: check for null passphrases, since openssl doesn't
des [Sun, 11 Dec 2011 16:57:27 +0000 (16:57 +0000)]
MFH r227757: check for null passphrases, since openssl doesn't

Approved by: re (kib)
Security: prevents users with unencrypted ssh keys (prohibited
unless the nullok option is specified) from logging in
by providing a bogus non-null passphrase.

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

12 years agoMFC r226649, 226651, 226652, 226653:
hrs [Sat, 3 Dec 2011 22:14:15 +0000 (22:14 +0000)]
MFC r226649, 226651, 226652, 226653:
- Fix an issue that 127/8 is not configured when $ifconfig_DEFAULT is not empty.
- Add description that IPv6 configuration will be ignored if $ifconfig_IF_ipv6
  is empty.
- Move a configuration example "inet6 accept_rtadv" to just after the manual
  GUA configuration.
- Add an example of $ipv6_prefix_IF.
- Add support for removing addresses added by ipv6_prefix_hostid_addr_up()
  upon rc.d/netif stop.

Approved by: re (bz)

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

12 years agoMFC r226446:
hrs [Sat, 3 Dec 2011 22:12:57 +0000 (22:12 +0000)]
MFC r226446:
Fix a problem that an interface unexpectedly becomes IFF_UP by
just doing "ifconfing inet6 -ifdisabled" when the interface has
ND6_IFF_AUTO_LINKLOCAL flag and no link-local address.

Approved by: re (bz)

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

12 years agoMFC r228194:
nwhitehorn [Sat, 3 Dec 2011 17:15:16 +0000 (17:15 +0000)]
MFC r228194:

Prevent user astonishment by providing the shell option at the end, after
any installer-provided configuration files have been copied. This allows
users to edit their fstab, if desired, and to see what the installer has
placed in rc.conf.

Requested by: phk
Approved by: re (kensmith)

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