Commit Graph

240916 Commits

Author SHA1 Message Date
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
roy b9ae60933c Correct a prior patch by moving __printflike marking from the .c files
to the .h ones.
2016-02-04 16:58:11 +00:00
roy b31be80ab9 Mark __printflike and __dead. 2016-02-04 16:48:34 +00:00
roy c29f38a653 Mark printflike functions as __printflike. 2016-02-04 15:23:29 +00:00
seanb 8436ef0286 - Avoid uninitialized variable usage in do_nologin() when HAVE_LOGIN_CAP
isn't defined (which doesn't apply to NetBSD but...) and a root
  login is being evaluated.
- From upstream.
2016-02-04 15:04:11 +00:00
riastradh 3bc04b00b8 Declare in6_tmpaddrtimer_ch in in6_var.h.
Do not declare extern variables in .c files!
2016-02-04 02:48:37 +00:00
christos 8f19963904 Regen the rest. 2016-02-04 00:32:33 +00:00