]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
8 years agoMFC r291941:
bdrewery [Fri, 8 Jan 2016 00:07:37 +0000 (00:07 +0000)]
MFC r291941:

  Replace unneeded manual dependency on header by adding it to SRCS.

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

8 years agoMFC r279969:
np [Fri, 8 Jan 2016 00:05:20 +0000 (00:05 +0000)]
MFC r279969:

cxgbe(4):  fix if_media handling for T520-BT cards.  1Gbps and 100Mbps
are valid for this card.

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

8 years agoMFstable/10 r293246,r293257:
ngie [Wed, 6 Jan 2016 20:09:51 +0000 (20:09 +0000)]
MFstable/10 r293246,r293257:

r293246:

MFC r292530,r292546:

r292530:

- Use 1 for an exit code instead of -1 with err, errx, and exit
- Add unistd.h for getuid(3)
- Sort #includes

r292546:

- Convert testcase to TAP format
- Use nitems(x) instead of handrolled sizeof(x) / sizeof(*x) macro
- Do not mark count != 0 case with bsde_get_rule_count as a failure; this
  generates false positives on systems with ugidfw rules set on it

r293257:

MFC r292650,r292651:

r292650:

Move mac_bsdextended check up before running the test_libugidfw_strings testcases

I realize that these tests could be run before mac_bsdextended is loaded, but
it would overcomplicate things to special case handle the testcases before doing
the mac_bsdextended(4) feature check

The testcases will be split up so they can be run separately in the near future

r292651:

Delete the comment about running `test_libugidfw_strings` before testing
`mac_is_present` so it doesn't accidentally confuse people

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

8 years agoMFC r270675:
bdrewery [Wed, 6 Jan 2016 17:53:51 +0000 (17:53 +0000)]
MFC r270675:

  Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env
  var if set)

PR: 205965
Relnotes: yes

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

8 years agoMFC r292877:
pfg [Wed, 6 Jan 2016 16:35:30 +0000 (16:35 +0000)]
MFC r292877:
pax: prevent possible buffer overflow

Or at least quiet down some static analyzers about it.

CID: 978835
Obtained from: OpenBSD

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

8 years agoMFC r292872:
pfg [Wed, 6 Jan 2016 16:27:17 +0000 (16:27 +0000)]
MFC r292872:

ext2: recognize ext4 INCOMPAT_RECOVER flag

This is a flag specific for journalling in ext4.
Add it to the list of ext4 features we ignore for
read-only purposes.

PR: 205668

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

8 years agoAdd missed mergeinfo.
hselasky [Mon, 4 Jan 2016 08:39:56 +0000 (08:39 +0000)]
Add missed mergeinfo.

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

8 years agoMFC r291199:
hselasky [Mon, 4 Jan 2016 07:29:19 +0000 (07:29 +0000)]
MFC r291199:
Fix compile warning about shifting signed negative constant.

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

8 years agoMFstable/10 r293141:
ngie [Mon, 4 Jan 2016 07:04:58 +0000 (07:04 +0000)]
MFstable/10 r293141:

MFC r292815:

Staticize several variables that are used exclusively in bsnmpd/main.c and
bsnmpd/trap.c

This fixes several -Wmissing-variable-declaration warnings noted by clang

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

8 years agoMFstable/10 r293138:
ngie [Mon, 4 Jan 2016 06:58:39 +0000 (06:58 +0000)]
MFstable/10 r293138:

MFC r292531,r292532,r292533,r292545:

r292531:

Make test_matches.sh into a series of TAP testcases

Use temporary filesystems / memory disks instead of a hardcoded path
which doesn't exist on test systems

r292532:

Mark `subject matching jailid` testcase as an unexpected failure with
TODO to ensure that the testcase isn't marked as a failure

PR: 205481

r292533:

Skip the testcases if mac_bsdextended(4) isn't detected on the
system

r292545:

Redo the TAP integration so it works with Kyua

Kyua needs numbers in the TAP results :/, but prove doesn't

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

8 years agoMFC r292605, r292606, r292607, r292608:
pfg [Mon, 4 Jan 2016 03:22:06 +0000 (03:22 +0000)]
MFC r292605, r292606, r292607, r292608:

cron: bring some fixes for Coverity reports and other issues.

crontab: replace malloc + bzero with calloc
crontab: properly free an entry
cron: Check the return value of pipe(2)

CID: 271773, 1009830,

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

8 years agoMFC r293015:
dim [Sun, 3 Jan 2016 17:23:16 +0000 (17:23 +0000)]
MFC r293015:

Merge r293013 from clang380-import branch:

Fix a clang 3.8.0 warning in pflogd.c:

contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
       if (!if_exists(interface) == -1) {
   ^                     ~~

The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check.  Just ditch the == -1 instead.

Obtained from: OpenBSD's pflogd.c 1.49

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

8 years agoMFC r293014:
dim [Sun, 3 Jan 2016 17:19:17 +0000 (17:19 +0000)]
MFC r293014:

Merge r293006 from clang380-import branch:

For determining the compiler version, quote the string to be echo'd,
otherwise the command might fail.  This is because clang -v now results
in the following:

FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn)

The second "3.8.8svn)" string tripped up the shell command.

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

8 years agoMFstable/10 r293025:
ngie [Fri, 1 Jan 2016 00:38:17 +0000 (00:38 +0000)]
MFstable/10 r293025:

MFC r292884:

Fix getopt(3) argument after r290180; I forgot to change -r to -R
by accident

Pointyhat to: ngie

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

8 years agoMFC r292719:
ume [Fri, 1 Jan 2016 00:36:20 +0000 (00:36 +0000)]
MFC r292719:
  Remove _gethostbynisname() and _gethostbynisaddr().  These functions
  used to be called from getipnodebyname().

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

8 years agoMFstable/10 r293003:
ngie [Thu, 31 Dec 2015 20:52:39 +0000 (20:52 +0000)]
MFstable/10 r293003:

MFC r292640,r292641:

r292640:

Clean up trailing whitespace; no functional change

r292641:

Fix r292640

vim overzealously removed some trailing `+' and I didn't check the
diff

Pointyhat to: ngie

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

8 years agoMFstable/10 r292998:
ngie [Thu, 31 Dec 2015 20:51:05 +0000 (20:51 +0000)]
MFstable/10 r292998:

MFC r292710:

Remove unused function `act_getkernstring`

This fixes a clang -Wunused warning

Differential Revision: https://reviews.freebsd.org/D4697
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292983:
bz [Thu, 31 Dec 2015 11:25:45 +0000 (11:25 +0000)]
MFC r292983:

 Bump copyright year.

 Happy New Year 2016!

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

8 years agoMFstable/10 r292975:
ngie [Thu, 31 Dec 2015 04:01:52 +0000 (04:01 +0000)]
MFstable/10 r292975:

MFC r278860:
r278860 (by jmg):

remove NULL check as M_WAITOK will not return NULL

Reviewed by: jhb
Sponsored by: FreeBSD Foundation

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

8 years agoMFstable/10 r292879:
ngie [Tue, 29 Dec 2015 18:33:43 +0000 (18:33 +0000)]
MFstable/10 r292879:

MFC r265842,r266120,r266121,r266959,r267148,r269985,r281789,r282261,r285064:

r265842 (by eadler):

arcconfig: add one

Add a .arcconfig to allow arc to work in its usual way.

r266120 (by bapt):

Add project name to the arc config it is still required when arcanist is used with SVN

r266121 (by bapt):

Add the missing coma

r266959 (by eadler):

arc: add linting for python files

r267148 (by bapt):

Prevent arc commands from overwriting history

r269985 (by gjb):

Update the URL to the phabricator instance.

Sponsored by: The FreeBSD Foundation

r281789 (by eadler):

phabricator related changes:
- don't lint either contrib or crypto: these are both externally written
  directories
- add additional linters for spelling (check common typos like teh ->
  the)
- chmod linter checks for executible bit on bad files
- merge-conflict checks for merge conflict tokens then may have been
  resolved incorrectly
- filename checks for back characters in filenames
- json for json syntax correctness

- remove history.immutable: it is meaningless on subversion, and causes
  workflow problems when trying to use git.  It it set to 'true' by
  default with hg

r282261 (by eadler):

Phabricator: enable "history.immutable":
With certain arc workflows leaving history.immutable as false
results in using the upstream template instead of our usual
commit template.  Since the git workflow issues alluded to in my
prior commit message can be worked around, set history.immutable
once again.

r285064 (by mat):

Add repository.callsign, to help arcanist figure out what repo it's
doing things on when not using Subversion.

With hat: phabric-admin@
Sponsored by: Absolight

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

8 years agoMFstable/10 r292855:
ngie [Tue, 29 Dec 2015 01:09:53 +0000 (01:09 +0000)]
MFstable/10 r292855:

MFC r292585:

Prevent use-after-free with ctx->ns in set_nameservers(..), which could occur
if the memory wasn't allocated again later on

Reported by: Coverity
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292550, r292595:
ume [Tue, 29 Dec 2015 00:43:46 +0000 (00:43 +0000)]
MFC r292550, r292595:
  Simplify _map_v4v6_address().
  We don't need to use a temporary buffer, here.

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

8 years agoMFstable/10 r292845:
ngie [Tue, 29 Dec 2015 00:04:21 +0000 (00:04 +0000)]
MFstable/10 r292845:

MFC r292569:

Make the mac_portacl testcases work / more robust

- A trap(1) call has been added to the test scripts to better
  ensure that the tests do a better job at trying to restore the
  test host state at the end of the tests (if the test was
  interrupted before it would leave the system in an odd state,
  potentially making the test results for subsequent runs
  non-deterministic).
- Add root user checks
- Fix nc(1) usage:
  -- -o is deprecated
  -- Using `-w 10` will make the call timeout after 10 seconds so it
     doesn't block indefinitely
- Use local variables
- Be more terse in the error messages
- Parameterize out "127.0.0.1"

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292445, r292554:
ume [Mon, 28 Dec 2015 03:39:32 +0000 (03:39 +0000)]
MFC r292445, r292554:
  Use _map_v4v6_address().

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

8 years agoMFC r292539:
ume [Mon, 28 Dec 2015 03:27:51 +0000 (03:27 +0000)]
MFC r292539:
  If we end up following a CNAME chain that does not find
  any data return that instead of internal error.

PR: 156684

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

8 years agoMFstable/10 r226602:
ngie [Sun, 27 Dec 2015 21:58:13 +0000 (21:58 +0000)]
MFstable/10 r226602:
r226602 (by das):

Tests for cancellation in fma(). Also include more tests for 128-bit
long doubles. Thanks for clusteradm (simon) for making the needed
hardware available.

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

8 years agoMFstable/10 r251053:
ngie [Sun, 27 Dec 2015 21:55:26 +0000 (21:55 +0000)]
MFstable/10 r251053:
r251053 (by tijl):

Fix cexp regression tests that have an infinite real part. The signs of the
result depend on the cosine and sine of the imaginary part.
Small values are used in the new tests such that cosine and sine are well
defined.

Reviewed by: das

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

8 years agoMFstable/10 r292769,r292799:
ngie [Sun, 27 Dec 2015 21:53:21 +0000 (21:53 +0000)]
MFstable/10 r292769,r292799:

r292769:

MFC r292493:

Don't run test-fma on i386

It completely fails all assertions on i386 on both stable/9 and stable/10

PR: 205448
X-MFC to: stable/10
Sponsored by: EMC / Isilon Storage Division

r292799:

MFC r292492,r292495,r292647:

r292492:

- Use nitems instead of handrolling the macro
- Use a separate variable for tracking the testcase count instead
  of hardcoding the offset for the testcases

Sponsored by: EMC / Isilon Storage Division

r292495:

Initialize j so it doesn't print out a garbage index

Use it consistently instead of i in the first loop

Sponsored by: EMC / Isilon Storage Division

r292647:

Use j instead of a hardcoded index (9) and increment it after
running the NaNs testcases

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

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

8 years agoRevert r292803
ngie [Sun, 27 Dec 2015 21:47:12 +0000 (21:47 +0000)]
Revert r292803

Some of the hyperbolic functions (sinh, etc) haven't been implemented
on stable/9, so the tests that were MFCed were invalid.

A corrected MFC will come soon

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r226603,r251119:
ngie [Sun, 27 Dec 2015 21:39:28 +0000 (21:39 +0000)]
MFstable/10 r226603,r251119:

r226603 (by das):

Tests for complex trig and hyperbolic functions.

r251119 (by das):

Basic tests for complex inverse trig and hyperbolic functions.

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

8 years agoMFstable/10 r292795:
ngie [Sun, 27 Dec 2015 21:34:37 +0000 (21:34 +0000)]
MFstable/10 r292795:

MFC r292491,r292493,r292496:

r292491:

Disable test-ctrig.t testcases which fail assertions on i386 [*]

Also, don't compile the exp2l(3) testcases on platforms that don't support the
libcall (technically only x86 right now). This makes this test buildable on
arm*/mips*/powerpc*

Tested on: stable/10 (amd64/i386), head (amd64/i386)
PR: 205446 [*]
X-MFC to: stable/10
Sponsored by: EMC / Isilon Storage Division

r292493:

Don't run test-fma on i386

It completely fails all assertions on i386 on both stable/9 and stable/10

PR: 205448
X-MFC to: stable/10
Sponsored by: EMC / Isilon Storage Division

r292496:

Skip the testcases on i386 (all the assertions fail) [*]

Also, don't compile the ldexpl(3) testcases on platforms that don't support
the libcall (technically only x86 right now). This makes this test buildable on
arm*/mips*/powerpc*

PR: 205449 [*]
Tested on: stable/10 (amd64/i386), head (amd64/i386)
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r226377,r292799:
ngie [Sun, 27 Dec 2015 21:15:58 +0000 (21:15 +0000)]
MFstable/10 r226377,r292799:

r226377 (by das):

Add some tests for double-rounding bugs in fma().

r292799:

MFC r292492,r292495,r292647:

r292492:

- Use nitems instead of handrolling the macro
- Use a separate variable for tracking the testcase count instead
  of hardcoding the offset for the testcases

Sponsored by: EMC / Isilon Storage Division

r292495:

Initialize j so it doesn't print out a garbage index

Use it consistently instead of i in the first loop

Sponsored by: EMC / Isilon Storage Division

r292647:

Use j instead of a hardcoded index (9) and increment it after
running the NaNs testcases

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC: r285909, r285913 (partial)
marius [Sun, 27 Dec 2015 20:49:36 +0000 (20:49 +0000)]
MFC: r285909, r285913 (partial)

- Probe UICLASS_CDC/UISUBCLASS_ABSTRACT_CONTROL_MODEL/0xff again. This
  variant of Microsoft RNDIS, i. e. their unofficial version of CDC ACM,
  has been disabled in r261544 (r262362 in stable/9) for resolving a
  conflict with umodem(4). Eventually, in r275790 (r276244 in stable/9)
  that problem was dealt with in the right way. However, r275790 failed
  to put probing of RNDIS devices in question back.
- Initialize the device prior to querying it, as required by the RNDIS
  specification. Otherwise already determining the MAC address may fail
  rightfully.
- On detach, halt the device again.
- Use UCDC_SEND_ENCAPSULATED_{COMMAND,RESPONSE}. While these macros are
  resolving to the same values as UR_{CLEAR_FEATURE,GET_STATUS}, the
  former set is way more appropriate in this context.
- Report unknown - rather: unimplemented - events unconditionally and
  not just in debug mode. This ensures that we'll get some hint of what
  is going wrong instead of the driver silently failing.
- Deal with the Microsoft ActiveSync requirement of using an input buffer
  the size of the expected reply or larger - except for variably sized
  replies - when querying a device.
- Fix some pointless NULL checks, style bugs etc.

This changes allow urndis(4) to communicate with a Microsoft-certified
USB RNDIS test token.

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

8 years agoMFC: r285912
marius [Sun, 27 Dec 2015 19:48:02 +0000 (19:48 +0000)]
MFC: r285912

- Use __FBSDID().
- Const'ify cons_to_vga_colors.
- Fix line wrapping.

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

8 years agoMFC: r287768, r290566, r290946
marius [Sun, 27 Dec 2015 17:34:29 +0000 (17:34 +0000)]
MFC: r287768, r290566, r290946

- Although it doesn't make a whole lot of sense to enable RX and TX
  before their initial configuration is done, it turns out that r281337
  (MFCed to stable/9 in r285178) has the inverse effect on some older
  chips. Moreover, as with newer chips before, two chips seemingly
  identical according to their MAC revisions may behave differently in
  this regard, with most working but a few not, making changes extremely
  hard to test.
  Closer inspection of the corresponding Linux code suggests that RX
  and TX should only be enabled after their initial configuration with
  RTL8168G and later chips, i. e. RTL8106E{,US}, RTL8107E, as well as
  RTL8168{EP,G,GU,H}, so limit the new code path to these. [1]
- Distinguish between RTL8168H and RTL8107E, with the latter being the
  10/100-Mbit/s-only variant of the former.
- For MAC variants that can only do Fast Ethernet at a maximum, ensure
  that we don't advertise Gigabit Ethernet speed.
- In re_stop(), do the inverse of re_init_locked() and enable RXDV
  gate on RTL8168G and later chips again, matching what Linux does.
- With the latter in place, it turns out that WOL previously only worked
  by accident with RTL8168G and later chips when the interface actually
  was brought up. This is due to the fact that with these MAC variants,
  RXDV gate needs be disabled for WOL to work. So in re_setwol() do just
  that when IFCAP_WOL is requested.
- Add preliminary support for RTL8168H and RTL8107E, with the latter
  being the 10/100-Mbit/s-only variant of the former.

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

8 years agoMFC: r271864
marius [Sun, 27 Dec 2015 17:19:46 +0000 (17:19 +0000)]
MFC: r271864

Move rl(4) to dev/rl.

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

8 years agoMFC: r286785, r291088, r291120
marius [Sun, 27 Dec 2015 15:55:15 +0000 (15:55 +0000)]
MFC: r286785, r291088, r291120
- Reformat x86 bounce buffer synchronization code to reduce indentation.
  No functional change.
- Avoid a NULL pointer dereference in bounce_bus_dmamap_sync() when the
  map has been created via bounce_bus_dmamem_alloc(). Even for coherent
  DMA - which bus_dmamem_alloc(9) typically is used for -, calling of
  bus_dmamap_sync(9) isn't optional. [1]
- Avoid a NULL pointer dereference in bounce_bus_dmamap_unload() when
  the map has been created via bounce_bus_dmamem_alloc(). In that case
  bus_dmamap_unload(9) typically isn't called during normal operation
  but still should be during detach, cleanup from failed attach etc. [2]

PR: 188899 (non-original problem) [1]
Submitted by: yongari [2]

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

8 years agoMFC r292514:
ume [Sun, 27 Dec 2015 00:38:57 +0000 (00:38 +0000)]
MFC r292514:
  addrinfo.ai_family is an address family, not a protocol family.

PR: 162434

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

8 years agoMFC r292454, r292455
pfg [Sat, 26 Dec 2015 18:38:09 +0000 (18:38 +0000)]
MFC r292454, r292455
ed(1): Prevent possible string overflows

Use strlcpy to guarantee NULL termination.

With hint from: imp, cem, ngie
CID: 1007252

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

8 years agopf: Fix IPv6 checksums with route-to.
kp [Fri, 25 Dec 2015 15:12:54 +0000 (15:12 +0000)]
pf: Fix IPv6 checksums with route-to.

When using route-to (or reply-to) pf sends the packet directly to the output
interface. If that interface doesn't support checksum offloading the checksum
has to be calculated in software.
That was already done in the IPv4 case, but not for the IPv6 case. As a result
we'd emit packets with pseudo-header checksums (i.e. incorrect checksums).

This issue was exposed by the changes in r289316 when pf stopped performing full
checksum calculations for all packets.

Submitted by:   Luoqi Chen

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

8 years agopf: Fix TSO issues
kp [Fri, 25 Dec 2015 15:12:11 +0000 (15:12 +0000)]
pf: Fix TSO issues

In certain configurations (mostly but not exclusively as a VM on Xen) pf
produced packets with an invalid TCP checksum.

The problem was that pf could only handle packets with a full checksum. The
FreeBSD IP stack produces TCP packets with a pseudo-header checksum (only
addresses, length and protocol).
Certain network interfaces expect to see the pseudo-header checksum, so they
end up producing packets with invalid checksums.

To fix this stop calculating the full checksum and teach pf to only update TCP
checksums if TSO is disabled or the change affects the pseudo-header checksum.

PR:             154428, 193579, 198868
Sponsored by:   RootBSD

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

8 years agoMFC r292444, r292446:
ume [Fri, 25 Dec 2015 11:33:09 +0000 (11:33 +0000)]
MFC r292444, r292446:
  Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).

PR: 198092

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

8 years agoMFC r292435, r292441:
ume [Fri, 25 Dec 2015 10:55:39 +0000 (10:55 +0000)]
MFC r292435, r292441:
  - Keep hosts.by{name,addr} IPv4 only.
  - Add comment how we handle hosts and ipnodes.
  - Generate ipnodes.by{addr,name} from /etc/hosts for
    compatibility with FreeBSD local name resolution.
    If /var/yp/ipnodes exists, we generate them from it
    for backward compatibility.

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

8 years agoMFH: r292263
brueffer [Thu, 24 Dec 2015 20:19:49 +0000 (20:19 +0000)]
MFH: r292263

Assorted grammar, spelling and punctuation fixes.

PR: 203336, 203339
Submitted by: espeyb@rpi.edu, themesta@gmail.com

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

8 years agoMFstable/10 r292652:
ngie [Wed, 23 Dec 2015 10:38:44 +0000 (10:38 +0000)]
MFstable/10 r292652:

MFC r292316:

Remove hosts that don't resolve properly with the nss and resolv tests

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r289635
davidcs [Tue, 22 Dec 2015 19:41:40 +0000 (19:41 +0000)]
MFC r289635

  ql_hw.c: fixed error code INJCT_HEARTBEAT_FAILURE
  ql_os.c: removed unnecessary debug printf
  ql_ver.h: updated version number

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

8 years agoMFH: r292212
brueffer [Mon, 21 Dec 2015 09:36:45 +0000 (09:36 +0000)]
MFH: r292212

Flesh out the SEE ALSO section.

PR: 202929
Submitted by: jhs@berklix.com

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

8 years agoMFC r289315 (reprise)
vangyzen [Sun, 20 Dec 2015 20:58:49 +0000 (20:58 +0000)]
MFC r289315 (reprise)

MFC the man page change from r289315.  Thanks for the
attention to detail, Jeremy.

Pointed out by: Jeremy Chadwick <jdc@koitsu.org>
Sponsored by: Dell Inc.

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

8 years agoMFstable/10 r292481:
ngie [Sun, 20 Dec 2015 00:45:34 +0000 (00:45 +0000)]
MFstable/10 r292481:

MFC r292153:

Add -static to CFLAGS to unbreak the tests by using a libc.a with
the xlocale private symbols exposed which aren't exposed publicly
via the DSO

PR: 191354
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r289315,r292216
vangyzen [Sat, 19 Dec 2015 02:49:59 +0000 (02:49 +0000)]
MFC r289315,r292216

resolver: automatically reload /etc/resolv.conf

On each resolver query, use stat(2) to see if the modification time
of /etc/resolv.conf has changed.  If so, reload the file and reinitialize
the resolver library.  However, only call stat(2) if at least two seconds
have passed since the last call to stat(2), since calling it on every
query could kill performance.

This new behavior is enabled by default.  Add a "reload-period" option
to disable it or change the period of the test.

Document this behavior and option in resolv.conf(5).

Polish the man page just enough to appease igor.

Relnotes:       yes
Sponsored by:   Dell Inc.

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

8 years agoMFC r289837
vangyzen [Sat, 19 Dec 2015 02:47:05 +0000 (02:47 +0000)]
MFC r289837

resolver: abuse _res a little less

In the past, _res was a global variable.  Now, it's multiple function calls.
Several functions in the resolver use _res multiple times and therefore
call the function(s) far more than necessary.

Fix those callers to store the result of _res in a local variable.

Add __noinline to the definition of res_init() to avoid the code bloat
that these changes would have otherwise incurred.  Thanks to jilles
for noticing this.

Sponsored by:   Dell Inc.

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

8 years agoMFC r292129:
ume [Sat, 19 Dec 2015 01:24:07 +0000 (01:24 +0000)]
MFC r292129:
  RFC 3493 requires ignoring the loopback address for AI_ADDRCONFIG.
  Since it breaks certain jail setup, we ignore just 127.0.0.1
  instead of whole loopback address range.

PR: 192014
Reviewed by: hrs

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

8 years agoMFstable/10 r292430:
ngie [Fri, 18 Dec 2015 07:00:42 +0000 (07:00 +0000)]
MFstable/10 r292430:

MFC r292250:

Allow users override `DEBUG` on the command line via DEBUG_FLAGS="-DDEBUG" with
lib/libc/resolv by conditionalizing its definition

Reviewed by: ume, vangyzen
Differential Revision: https://reviews.freebsd.org/D4519

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

8 years agoMFC 292038:
jhb [Fri, 18 Dec 2015 01:03:34 +0000 (01:03 +0000)]
MFC 292038:
Fix a copy and paste bug when this page was first written by copying from
BUS_BIND_INTR.9.

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

8 years agoMFC 290429:
jhb [Fri, 18 Dec 2015 00:40:19 +0000 (00:40 +0000)]
MFC 290429:
When dumping an rman in DDB, include the RID of each resource.

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

8 years agoMFC r292277:
jamie [Fri, 18 Dec 2015 00:33:03 +0000 (00:33 +0000)]
MFC r292277:

  Fix jail name checking that disallowed anything that starts with '0'.
  The intention was to just limit leading zeroes on numeric names.  That
  check is now improved to also catch the leading spaces and '+' that
  strtoul can pass through.

PR: 204897

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

8 years agoMFC r292059:
ume [Thu, 17 Dec 2015 16:09:15 +0000 (16:09 +0000)]
MFC r292059:
  The calls to RES_SET_H_ERRNO() macro on error paths wind up
  dereferencing an uninitialized res.

PR: 202142
Submitted by: Sean Boudreau

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

8 years agoMFstable/10 r292395:
ngie [Thu, 17 Dec 2015 06:35:31 +0000 (06:35 +0000)]
MFstable/10 r292395:

MFC r292048:

Don't leak rsector/sector in mp_label(..)

Use calloc instead of malloc + memset(.., 0, ..) when allocating sector

Differential Revision: https://reviews.freebsd.org/D4450
Reported by: cppcheck
Reviewed by: mav
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFV r292314:
delphij [Wed, 16 Dec 2015 06:10:05 +0000 (06:10 +0000)]
MFV r292314:

Update BIND to 9.9.8-P2.

See release notes for notable changes:
https://kb.isc.org/article/AA-01326

Note this is a direct commit to stable/9 as BIND is no longer in head.

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

8 years agoMFstable/10 r292280:
ngie [Tue, 15 Dec 2015 18:02:56 +0000 (18:02 +0000)]
MFstable/10 r292280:

MFC r271401:
r271401 (by asomers):

Conditionalize build of etcupdate(8) on MK_RCS. Since etcupdate calls
merge(1), which is part of the RCS package, it must not be installed if
WITHOUT_RCS update is set. Otherwise, it will produce confusing errors.

CR: https://reviews.freebsd.org/D691
Sponsored by: Spectra Logic

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

8 years agoMFstable/10 r292251:
ngie [Tue, 15 Dec 2015 05:47:56 +0000 (05:47 +0000)]
MFstable/10 r292251:

MFC r291982:

Skip the MAC portacl tests if MAC_PORTACL support is missing instead of
marking them failed

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFH: r291957
brueffer [Mon, 14 Dec 2015 11:39:46 +0000 (11:39 +0000)]
MFH: r291957

Fix a comment typo in the code example.

PR: 203497
Submitted by: chadf@triularity.org

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

8 years agoMFH: r291954
brueffer [Mon, 14 Dec 2015 11:36:01 +0000 (11:36 +0000)]
MFH: r291954

Add an MLINK for m_collapse.

PR: 204205
Submitted by: avos

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

8 years agoMFC r290003:
hselasky [Mon, 14 Dec 2015 10:04:57 +0000 (10:04 +0000)]
MFC r290003:
Add support for binding IRQs to CPUs in the LinuxKPI. The new function
added is for BSD only and does not exist in Linux.

Sponsored by: Mellanox Technologies

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

8 years agoMFC r291703:
hselasky [Mon, 14 Dec 2015 09:53:18 +0000 (09:53 +0000)]
MFC r291703:
Regenerate usb.conf .

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

8 years agoMFC r263985, r275646, r281745, r287575 and r289028:
hselasky [Mon, 14 Dec 2015 09:42:39 +0000 (09:42 +0000)]
MFC r263985, r275646, r281745, r287575 and r289028:
Add more USB IDs.

PR: 199522
PR: 188046

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

8 years agoMFstable/10 r292170:
ngie [Sun, 13 Dec 2015 21:15:56 +0000 (21:15 +0000)]
MFstable/10 r292170:

MFC r291837:

split.ih:
- Create automatically generated include header for split.c

main.c:
- Use function definitions from debug.ih and split.ih instead of externs

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r291602:
ngie [Sun, 13 Dec 2015 06:54:53 +0000 (06:54 +0000)]
MFstable/10 r291602:

MFC r285140:
r285140 (by oshogbo):

Add fdclose(3) function.

This function is equivalent to fclose(3) function except that it
does not close the underlying file descriptor.
fdclose(3) is step forward to make FILE structure private.

Reviewed by: wblock, jilles, jhb, pjd
Approved by: pjd (mentor)
Differential Revision: https://reviews.freebsd.org/D2697

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

8 years agoMFstable/10 r292150:
ngie [Sun, 13 Dec 2015 04:24:59 +0000 (04:24 +0000)]
MFstable/10 r292150:

MFC r292013:

Use stdint.h instead of inttypes.h as the latter pollutes namespace more

Submitted by: bde
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r292144:
ngie [Sun, 13 Dec 2015 03:53:18 +0000 (03:53 +0000)]
MFstable/10 r292144:

MFC r291832,r291833,r291834,r291835,r291836,r291838:

r291832:

Fix -Wformat warnings by using the correct format qualifiers

Sponsored by: EMC / Isilon Storage Division

r291833:

- Use ANSI C function prototypes/definitions instead of K&R style ones
- Add a missing return type for main(..)

Sponsored by: EMC / Isilon Storage Division

r291834:

Add missing headers and sort #includes per style(9)

Sponsored by: EMC / Isilon Storage Division

r291835:

Use ANSI C function prototypes/definitions instead of K&R style ones

Sponsored by: EMC / Isilon Storage Division

r291836:

Use `==` instead of `=` in the function comment above split(..) so mkh -p
exposes split(..).

Sponsored by: EMC / Isilon Storage Division

r291838:

Fix -Wformat issues and minor whitespace issues in surrounding areas

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r292142:
ngie [Sun, 13 Dec 2015 03:47:56 +0000 (03:47 +0000)]
MFstable/10 r292142:

MFC r291983,r291984:

r291983:

Fix compilation warnings by adding unistd.h #include and missing return
statements

Sponsored by: EMC / Isilon Storage Division

r291984:

Add missing stdlib.h header

Apply some minor style(9) fixes

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r292140:
ngie [Sun, 13 Dec 2015 03:41:50 +0000 (03:41 +0000)]
MFstable/10 r292140:

MFC r292004:

Fix compilation when -DDEBUG is defined by adding inttypes.h #include
for intmax_t

Differential Revision: https://reviews.freebsd.org/D4434
Reported by: cppcheck
Reviewed by: jhb
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r292138:
ngie [Sun, 13 Dec 2015 03:38:19 +0000 (03:38 +0000)]
MFstable/10 r292138:

MFC r291979:

Unbreak compiling getnetgrent.c with -DDEBUG after r236402 by adding a
missing "}"

Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFstable/10 r292136:
ngie [Sun, 13 Dec 2015 03:35:54 +0000 (03:35 +0000)]
MFstable/10 r292136:

MFC r291753:

Fix scope of bridge_header and bridge_pcix_cap in mthca_reset(..)

They're only used in the __linux__ case

Differential Revision: https://reviews.freebsd.org/D4332
Reported by: cppcheck
Reviewed by: hselasky
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r283612, r290710, r291694, r291699 and r291793:
hselasky [Fri, 11 Dec 2015 18:28:20 +0000 (18:28 +0000)]
MFC r283612, r290710, r291694, r291699 and r291793:
- Add SIOCGI2C ioctl support to the driver. Would work only on ConnectX-3
  with fresh firmware. The low level code is based on code provided by
  Mellanox.
- Fix print formatting compile warnings for Sparc64 and PowerPC platforms.
- Updated the mlx4 and mlxen drivers to the latest version, v2.1.6:
  - Added support for dumping the SFP EEPROM content to dmesg.
  - Fixed handling of network interface capability IOCTLs.
  - Fixed race when loading and unloading the mlxen driver by applying
    appropriate locking.
  - Removed two unused C-files.
- Convert the mlxen driver to use the BUSDMA(9) APIs instead of
  vtophys() when loading mbufs for transmission and reception. While at
  it all pointer arithmetic and cast qualifier issues were fixed, mostly
  related to transmission and reception.
- Fix i386 build WITH_OFED=YES. Remove some redundant KASSERTs.

Sponsored by: Mellanox Technologies
Differential Revision: https://reviews.freebsd.org/D4283
Differential Revision: https://reviews.freebsd.org/D4284

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

8 years agoMFC r291693:
hselasky [Fri, 11 Dec 2015 14:56:19 +0000 (14:56 +0000)]
MFC r291693:
Add some structures and defines which will be used when decoding small
form factor, SFF, standards compliant ethernet EEPROMs.

Obtained from: Linux
Sponsored by: Mellanox Technologies

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

8 years agoMFC r291690:
hselasky [Fri, 11 Dec 2015 14:53:40 +0000 (14:53 +0000)]
MFC r291690:
Remove incorrect defines. The proper version of these macros is
defined in linux/etherdevice.h.

Sponsored by: Mellanox Technologies

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

8 years agoMFC r291579:
ae [Tue, 8 Dec 2015 07:47:01 +0000 (07:47 +0000)]
MFC r291579:
  In the same way fix the problem described in r291578 for IGMPv3.

  In case when router has a lot of multicast groups, the reply can take
  several packets due to MTU limitation.
  Also we have a limit IGMP_MAX_RESPONSE_BURST == 4, that limits the number
  of packets we send in one shot. Then we recalculate the timer value and
  schedule the remaining packets for sending.
  The problem is that when we call igmp_v3_dispatch_general_query() to send
  remaining packets, we queue new reply in the same mbuf queue. And when
  number of packets is bigger than IGMP_MAX_RESPONSE_BURST, we get endless
  reply of IGMPv3 reports.
  To fix this, add the check for remaining packets in the queue.

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

8 years agoMFC r291578:
ae [Tue, 8 Dec 2015 07:36:26 +0000 (07:36 +0000)]
MFC r291578:
  mld_v2_dispatch_general_query() is used by mld_fasttimo_vnet() to send
  a reply to the MLDv2 General Query. In case when router has a lot of
  multicast groups, the reply can take several packets due to MTU limitation.
  Also we have a limit MLD_MAX_RESPONSE_BURST == 4, that limits the number
  of packets we send in one shot. Then we recalculate the timer value and
  schedule the remaining packets for sending.
  The problem is that when we call mld_v2_dispatch_general_query() to send
  remaining packets, we queue new reply in the same mbuf queue. And when
  number of packets is bigger than MLD_MAX_RESPONSE_BURST, we get endless
  reply of MLDv2 reports.
  To fix this, add the check for remaining packets in the queue.

  PR: 204831

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

8 years agoMFC r291226:
bdrewery [Tue, 8 Dec 2015 00:25:00 +0000 (00:25 +0000)]
MFC r291226:

  Fix ld not respecting --sysroot.

Relnotes: yes

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

8 years agoDocument SA-15:26
gjb [Mon, 7 Dec 2015 19:19:51 +0000 (19:19 +0000)]
Document SA-15:26

Sponsored by: The FreeBSD Foundation

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

8 years agoMFstable/10 r291871:
ngie [Sun, 6 Dec 2015 00:27:35 +0000 (00:27 +0000)]
MFstable/10 r291871:

MFC r291296:

Link localeconv(3) to localeconv_l(3)

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

8 years agoMFstable/10 r250883,r251314:
ngie [Sat, 5 Dec 2015 22:56:57 +0000 (22:56 +0000)]
MFstable/10 r250883,r251314:

r250883 (by ed):

Add <uchar.h>.

The <uchar.h> header, part of C11, adds a small number of utility
functions for 16/32-bit "universal" characters, which may or may not be
UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight
wrappers around wcrtomb() and mbrtowc().

While there, also add (non-yet-standard) _l functions, similar to the
ones we already have for the other locale-dependent functions.

Reviewed by: theraven

r251314 (by ed):

Add libiconv based versions of *c16*() and *c32*().

I initially thought wchar_t was locale independent, but this seems to be
only the case on Linux. This means that we cannot depend on the *wc*()
routines to implement *c16*() and *c32*(). Instead, use the Citrus
libiconv that is part of libc.

I'll see if there is anything I can do to make the existing functions
somewhat useful in case the system is built without libiconv in the
nearby future. If not, I'll simply remove the broken implementations.

Reviewed by: jilles, gabor

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

8 years agoMFC r291026:
bdrewery [Fri, 4 Dec 2015 18:48:51 +0000 (18:48 +0000)]
MFC r291026:

  Remove unneeded libmd from bootstrap-tools (reverting r246784).

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

8 years agoMFC r291081:
bdrewery [Fri, 4 Dec 2015 18:41:35 +0000 (18:41 +0000)]
MFC r291081:

  Rename checked-in 'includes' to 'includes.sh' to avoid colliding with
  share/mk target 'make includes'.

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

8 years agoMFC r290812:
bdrewery [Fri, 4 Dec 2015 18:33:38 +0000 (18:33 +0000)]
MFC r290812:

  Avoid setting schg in the objtree for lib32 build.

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

8 years agoMFC r290435:
bdrewery [Fri, 4 Dec 2015 18:32:55 +0000 (18:32 +0000)]
MFC r290435:

  Don't allow environment-set options to bleed into src.conf.5 generation.

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

8 years agoMFC r290170:
bdrewery [Fri, 4 Dec 2015 18:26:01 +0000 (18:26 +0000)]
MFC r290170:

  Remove unneeded NULL as this is initialized with M_ZERO.

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

8 years agoMFC r290169:
bdrewery [Fri, 4 Dec 2015 18:24:51 +0000 (18:24 +0000)]
MFC r290169:

  Use memmove(3) to avoid overlapping copy.

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

8 years agoMFC r290374:
bdrewery [Fri, 4 Dec 2015 18:23:50 +0000 (18:23 +0000)]
MFC r290374:

  Remove unneeded mutex.h include, missed in r287155.

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

8 years agoMFC r290084:
bdrewery [Fri, 4 Dec 2015 18:22:54 +0000 (18:22 +0000)]
MFC r290084:

  Remove unneeded NAME override.

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

8 years agoMFC r289872:
bdrewery [Fri, 4 Dec 2015 18:04:45 +0000 (18:04 +0000)]
MFC r289872:

  Replace gcc reference with 'cc' and document the default ${CC}.

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

8 years agoMFC r289870,r289871:
bdrewery [Fri, 4 Dec 2015 18:03:42 +0000 (18:03 +0000)]
MFC r289870,r289871:

  r289870:
    Add bsd.crunchgen.mk to bsd.README.
  r289871:
    Sort properly.

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

8 years agoMFC r289736:
bdrewery [Fri, 4 Dec 2015 18:01:14 +0000 (18:01 +0000)]
MFC r289736:

  Document that we use {} for variable expansion.

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

8 years agoMFC r289375:
bdrewery [Fri, 4 Dec 2015 17:58:25 +0000 (17:58 +0000)]
MFC r289375:

  Fix wrong use of .for; the iteration variable is not used in the loop.

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

8 years agoMFC r289374:
bdrewery [Fri, 4 Dec 2015 17:57:41 +0000 (17:57 +0000)]
MFC r289374:

  Remove excess .else

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

8 years agoMFC r284105,r284106,r284163:
bdrewery [Fri, 4 Dec 2015 17:49:05 +0000 (17:49 +0000)]
MFC r284105,r284106,r284163:

  r284105:
    Cleanup some indentation issues.
  r284106:
    Implement '-s' to copy as symlink, similar to the current -l link(2)
    handling.
  r284163:
    Cleanup some style(9) issues.

Relnotes: yes

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

8 years agoMFC r245832:
bdrewery [Fri, 4 Dec 2015 17:48:11 +0000 (17:48 +0000)]
MFC r245832:

  Return "failure" as we do for 'cp -i' and a "n" answer.

Relnotes: yes

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

8 years agoMFC r291001:
bdrewery [Fri, 4 Dec 2015 17:34:42 +0000 (17:34 +0000)]
MFC r291001:

  ipfw: Fix dynamic IPv6 rules showing junk for non-specified address masks.

Relnotes: yes

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

8 years agoMFstable/10 r291758:
ngie [Fri, 4 Dec 2015 10:02:14 +0000 (10:02 +0000)]
MFstable/10 r291758:

MFC r291358:

Remove cnftp.bjpu.edu.cn (it no longer resolves)
Add localhost to resolv/mach for parity with nss/mach

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