Commit Graph

240722 Commits

Author SHA1 Message Date
agc
9723718822 Fix signing of in-memory data with SSH keys 2016-02-07 05:03:36 +00:00
pgoyette
c1df4ef16b In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)
2016-02-06 22:48:07 +00:00
christos
54835745af use sizeof() and array notation. 2016-02-06 21:23:09 +00:00
riastradh
1b08af128c No <immintrin.h> for pcc even on x86. 2016-02-06 20:23:39 +00:00
joerg
bb694db2f5 METEORGSIGNAL and METEORSFMT overlap with dtrace, prefer the latter. 2016-02-06 20:21:56 +00:00
jandberg
e09dd753e1 Fix some awkward language in manpage and code comments. 2016-02-06 20:20:18 +00:00
riastradh
5e51ceb9a4 Add $NetBSD$ tag. 2016-02-06 20:19:28 +00:00
riastradh
5f6d9a7f5f Avoid shadowing global. 2016-02-06 19:33:07 +00:00
joerg
1903f8c159 Override default LIB_PATH for i386 emulation. Unlike older binutils, we
now have to check the emulation and not that the target as the change
otherwise leaks into the native 64bit linker scripts as well.
2016-02-06 19:22:00 +00:00
joerg
6068ebb4ad We don't want to target-specific search directories on NetBSD in the
linker scripts, they just add noise.
2016-02-06 19:20:49 +00:00
joerg
9ba8249836 Avoid empty loop. 2016-02-06 18:23:26 +00:00
joerg
66313330f0 SDT is not a disease. Use const consistently. 2016-02-06 18:19:59 +00:00
riz
91a33a8e4a Back out unintended changes committed with last. 2016-02-06 16:58:31 +00:00
riz
50bf67899c Don't test dtrace-related variables until after they've been set. 2016-02-06 16:56:23 +00:00
riastradh
2159786ee7 Don't do _BSD_SIZE_T_ dance here. Use <stddef.h> in userland.
This file is used in tools, where _BSD_SIZE_T_ is unreliable.  In the
kernel, <sys/types.h> will define size_t anyway.  Outside the kernel,
<stddef.h> is the standard way to get size_t.
2016-02-06 15:36:36 +00:00
joerg
9cb0d31c43 Toolify. 2016-02-06 14:11:58 +00:00
mlelstv
bbd8666d0f Split case folding table into separate source file and add full
copyright and permission notice from http://www.unicode.org/copyright.html
2016-02-06 10:40:58 +00:00
mlelstv
c153503310 fix usage message 2016-02-06 10:35:58 +00:00
riastradh
3b7052de65 Avoid shadowing global `min'. 2016-02-06 02:40:49 +00:00
riastradh
98b6c9f000 Convert bool to target type before shift. 2016-02-06 02:39:51 +00:00
riastradh
e3e7bedb8f Avoid shadowing global `min'. 2016-02-06 02:39:18 +00:00
riastradh
843556aa56 Missed a spot. 2016-02-06 01:59:55 +00:00
riastradh
cd82f6357a Avoid shadowing global `max' from libkern. 2016-02-06 01:51:39 +00:00
riastradh
ef3b32b25e Don't return void.
Caught by pcc.  Thanks, pcc!
2016-02-06 00:31:58 +00:00
riastradh
ae6fa52c2a More useful array bounds check for enum values. 2016-02-05 23:49:26 +00:00
riastradh
c16e1a78e3 Omit unused definition of readw. 2016-02-05 23:46:40 +00:00
riastradh
74d7cf9b83 Don't ask `size < 0' when size is unsigned. 2016-02-05 23:45:44 +00:00
riastradh
8e1ee72c35 Need nbtool_config.h for __dead in tools. 2016-02-05 20:39:50 +00:00
riastradh
32e3d5d381 Need nbtools_config.h for __unused.
Fixes

.../src/tools/ctfmerge/../../external/cddl/osnet/dist/tools/ctf/common/list.c:73:47: error: expected ';', ',' or ')' before '__unused'
 list_defcmp(void *d1, void *d2, void *private __unused)
                                               ^~~~~~~~

on non-NetBSD systems, where <assert.h>, <stdlib.h>, <stdio.h>, and
<sys/types.h> don't define __unused.
2016-02-05 19:56:00 +00:00
roy
e0e130b7f2 World+dog want to treat rdl_path as char, so make it so. 2016-02-05 17:20:54 +00:00
skrll
178de58605 Use the port status straight after the reset and not after the
usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET)

The Gadget USB HUB in the IBM x3250 sborrill sent me returns the wrong
status and this would appear to leave the attached cdce(4) in the default
state.  The next device probed fails as a result.
2016-02-05 15:41:49 +00:00
roy
51cc62e4dc Fix is defined in wpa_common.h which the driver already pulls in. 2016-02-05 15:05:29 +00:00
msaitoh
0fce7fa801 s/max/ralmax/. No functional change. 2016-02-05 13:06:24 +00:00
roy
af0a4ca738 Only build tests if MKATF != no 2016-02-05 10:16:12 +00:00
roy
871759c0d7 Fix the actual issue rather than silencing the warning.
Thanks to gson@
2016-02-05 10:14:49 +00:00
christos
54eb2755d8 PR/50744: NONAKA Kimihiro: Protect more stuff with _KERNEL && _KMEMUSER to
make uvm_extern.h compile standalone again for net-snmp.
2016-02-05 04:18:55 +00:00
nonaka
a3255ab05b Initialize the token match pointer. 2016-02-05 03:41:05 +00:00
dholland
289d830c55 File watt in the right group, and accept W as well, as that's quite
standard.
2016-02-05 03:38:50 +00:00
dholland
ac57bd7b30 Improve previous slightly; while we accept e.g. "meter2" to mean "meter^2",
don't allow "meter-2" to be interpreted as "meter^-2" as that's very
confusing.
2016-02-05 03:32:49 +00:00
dholland
0561f14b04 Improve the parser. Now we understand negative exponents; fixes PR 50768.
Also handle negative numbers better in general (don't randomly drop
the sign in a number of cases) and don't choke on exponents > 9.

This commit alters the meaning of a few previously valid but marginal
inputs (e.g. "3 foot-5 pound" is now treated as "3*-5 foot-pound"
rather than "3*5 foot-pound"; if you want the latter insert another
space) but corrects obviously wrong handling of many more.
2016-02-05 03:30:08 +00:00
knakahara
3bf8089a9a fix: "vmstat -C" CpuLayer showed only the last cpu values. 2016-02-05 03:04:52 +00:00
roy
f4a5ac8842 Add -Wno-format-nonliteral 2016-02-04 21:26:48 +00:00
roy
5baa0e8c89 dtrace needs Wno-format-security for clang it seems. 2016-02-04 20:06:29 +00:00
roy
a118806971 Add some __printflike and __dead love. Init some structs fully. 2016-02-04 20:05:53 +00:00
roy
80df5a39da Fix build. 2016-02-04 18:47:14 +00:00
roy
440c6b2902 Mark more functions as __printflike and __dead. 2016-02-04 18:46:37 +00:00
roy
5e1375a115 Mark more functions as __dead. 2016-02-04 17:47:43 +00:00
roy
dd3d664f77 Disable -Wformat-nonliteral here to build. 2016-02-04 17:42:34 +00:00
roy
1e48e626cd More printflike and dead fixes. 2016-02-04 17:40:55 +00:00
roy
985adb8dc0 Fix printf formats and casts. 2016-02-04 17:27:32 +00:00