Commit Graph

229520 Commits

Author SHA1 Message Date
martin ffc1983074 Make an invariant more clear to avoid fals positives from coverity scan 2014-08-19 13:26:27 +00:00
martin fe0740f823 Check return value from getenv() before using the value. Pointed out by
coverity scan.
2014-08-19 13:04:45 +00:00
martin 14d42b6c1e Make sure the interface name is 0 terminated, pointed out by coverity scan. 2014-08-19 13:01:48 +00:00
christos 7de48e21c0 PR/49125: Havard Eidnes: /bin/sh does not support redirecting to or from FDs > 9
According to:
http://pubs.opengroup.org/onlinepubs/009604599/utilities/xcu_chap02.html#tag_02_07

Redirection support for fds > 9 is optional but allowed.
2014-08-19 12:36:58 +00:00
matt b191cce33b Add ./usr/include/sys/common_{ansi,limits}.h 2014-08-19 07:28:45 +00:00
matt 4ae77e2dce More "common" includes which use the preprocessor defined macros. 2014-08-19 07:27:31 +00:00
matt 48ea0054a1 EM_OPENRISC is now EM_OR1K but keep a define of EM_OPENRISC to EM_OR1K around. 2014-08-19 07:26:45 +00:00
martin 36f4a5867f Remove (accidently) duplicated code - pointed out by coverity scan. 2014-08-19 06:49:21 +00:00
martin eee31b641f Remove duplicate fclose(), pointed out by coverity scan. 2014-08-19 06:47:15 +00:00
matt 4264da7fa4 Install common_wchar_limits.h and update set list. 2014-08-18 22:33:25 +00:00
matt a115e74120 Add common_wchar_limits.h for those compilers that emit
__W{CHAR,INT}_{MIN,MAX}__
2014-08-18 22:21:39 +00:00
agc f37d41b3ae Avoid a memory leak - from maxv 2014-08-18 17:16:19 +00:00
riastradh 0d847ab144 Restore Intel opregion stuff. 2014-08-18 16:55:34 +00:00
pooka 65016d742c Might as well byteswap when we assign to local variables instead of when
we use said variables.
2014-08-18 14:40:17 +00:00
pooka c0fd8e41a5 quasi-cosmetic nit to previous: limit variable scope 2014-08-18 14:35:29 +00:00
pooka 6dd8e526f0 Add compat for bus version 2.
Fixes tests, but, XXX, should add tests for bus version 3.
2014-08-18 14:33:23 +00:00
pooka c31e06706c make name more descriptive: SWAPME -> FIXENDIAN
no functional change
2014-08-18 14:23:24 +00:00
pooka 756b0ff491 fix tyop in error message 2014-08-18 14:21:44 +00:00
pooka 3b9faec799 support endian-independent operation on all platforms 2014-08-18 14:21:18 +00:00
apb 922995f705 Use FSTYPE_DEFN from <sys/disklabel.h> to generate case branches for
conversions from all known disklabel fstypes to strings.  This replaces
the hand-coded list of conversions for only a few of the known types.
2014-08-18 14:18:59 +00:00
apb 1ed52851f5 Don't ignore unrecognised partition types in BSD disklabels;
instead, add them with wedge partition type "unknown#%u", where
%u is the underlying numeric partition type from the BSD disklabel.
2014-08-18 13:46:07 +00:00
christos 5e59f268f4 mention that -x is the default. 2014-08-18 09:45:52 +00:00
christos f3fb7b3c54 remove XXX, fix error message 2014-08-18 09:16:35 +00:00
christos 519e6f9271 make this behave like linux; make -x the default 2014-08-18 09:14:03 +00:00
joerg 6616828fd2 Restore explicit rule for swap*.o. 2014-08-18 08:07:02 +00:00
plunky 57d482b751 remove obsolete BUILD_CC_LIB_BASEDIR and BUILD_CC_LIB_BASETARGET vars 2014-08-18 07:52:40 +00:00
christos f8c3486fb6 fix param name 2014-08-18 07:33:21 +00:00
wiz 8ad71c32db Fix typo. 2014-08-18 07:16:32 +00:00
wiz a9bf595198 Put local change in sorted location. 2014-08-18 07:12:47 +00:00
christos e093601120 mention gmake 2014-08-18 07:03:33 +00:00
christos d4bb329df7 moved to external/gpl2/gmake 2014-08-18 06:59:28 +00:00
christos 2b177d3981 switch to the new gmake 2014-08-18 06:58:51 +00:00
christos dace66f063 merge local changes 2014-08-18 06:57:25 +00:00
christos 69606e3f5c import latest gpl2 make 2014-08-18 06:46:46 +00:00
christos 409d07743a - Enable Wedge support for MBR/BSDLABEL where it was commented out.
- Add apple partition support where it was missing
- Add comments where missing
2014-08-18 06:31:24 +00:00
jnemeth e0eccc7b53 - when checking hostname of incoming remote messages, fallback to checking
remote host if the message doesn't contain a hostname
- don't truncate IP addresses when reading syslogd.conf
2014-08-18 05:21:16 +00:00
christos b65f2d484f ALLOW_FILTER_AAAA_ON_V4 has been renamed to ALLOW_FILTER_AAAA (John D. Baker) 2014-08-18 04:40:51 +00:00
riastradh 7bc9f99ca1 Don't leak in gre_clone_create error branch.
Noted by maxv@, compile-tested for amd64.
2014-08-18 04:28:55 +00:00
riastradh 75ecd5a308 Sizeof struct ievme, not sizeof size_t.
Noted by maxv@, compile-tested for sparc.
2014-08-18 04:26:38 +00:00
riastradh 4ce21324f0 Avoid leak in error branch, noted by maxv@, compile-tested for vax. 2014-08-18 04:16:59 +00:00
riastradh fef866671e Don't leak f on failure. Noted by maxv@.
Compile-tested only, with zaurus.
2014-08-18 03:59:27 +00:00
riastradh 54cec2dc8c Fix leaks in oosiop_alloc_cb error branches, noted by maxv@.
While here, avoid a sketchy pointer cast that probably falls afoul of
strict aliasing rules.

Compile-tested only, with hppa.
2014-08-18 03:43:10 +00:00
riastradh a3ea546522 Fix error branches to avoid leaks, noted by maxv@. 2014-08-18 03:14:12 +00:00
riastradh 5407cca9a3 Simplify previous. 2014-08-18 02:43:27 +00:00
riastradh 6f817c5016 For gem and ttm objects backed by uvm_aobjs, share the vmobjlock.
XXX pullup to 7
2014-08-18 01:21:03 +00:00
riastradh b1a057f4fd bus_space_mmap cookies are not paddrs, so don't pmap_enter them! 2014-08-18 01:17:34 +00:00
chs 99a9d84aad eliminate COMPAT_OLDNOTE and just always recognize the old notes. 2014-08-17 23:03:58 +00:00
joerg a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00
martin 1e232ed083 Revert previous (SCN*FAST*) and make PRI*FAST* identical.
Should fix the default (gcc 4.5 based) build.
2014-08-17 20:22:41 +00:00
justin 2ef27288ed Fix memory leak on error case, as reported in
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2
2014-08-17 19:28:46 +00:00