242800 Commits

Author SHA1 Message Date
ozaki-r
0c85f1e532 Optimize if_get_byindex by adding __predict_true 2016-05-31 04:05:01 +00:00
pgoyette
b847d6b87c Compare names of duplicate symbols properly, so we correctly return
an error status.

Fixes PR kern/45125 with patch supplied by Akinobu  Mita
2016-05-31 03:57:04 +00:00
knakahara
d60d8acaf7 modify some functions static. no functional change. 2016-05-31 03:52:40 +00:00
dholland
10fabf6382 If ALGOR_P6032 is not defined, set sc_bonito to NULL instead of using
random garbage off the stack. PR 51012 from David Binderman.
2016-05-31 03:51:55 +00:00
macallan
a3f93c3108 fix stupid tpyo
thanks chuq
2016-05-31 03:50:30 +00:00
dholland
7dae429fbd PR 51003 David Binderman: bzero struct before passing it around.
This is actually unnecessary as the call in question uses only fields
that have been set explicitly, but good practice regardless and it's
not like it's on a performance-critical path.
2016-05-31 03:47:49 +00:00
dholland
39a10a6851 PR 51002 David Binderman: fix wrong printing code not enabled by default. 2016-05-31 03:43:10 +00:00
dholland
6413fb5a5d PR 51000 David Binderman: comment out unused assignment 2016-05-31 03:34:14 +00:00
dholland
07c23da28f Don't use the length return from snprintf to write out the result
buffer. If snprintf truncated the output, the length returned will be
greater and we'll write trash. Just call strlen instead. (And since
what we're doing is writing progress messages to the user, checking
carefully for truncation isn't really worthwhile either.)

Spotted when attending to PR 50998 from David Binderman; the issue
there (computation of an unused value) popped up because one of the
prints was already calling strlen.
2016-05-31 03:32:36 +00:00
dholland
aaa3b0be84 PR 50792 David Binderman: make sure we don't divide by zero.
The loop that picks delay_divisor might conceivably reject all values,
particularly if the hardware is sulking for some reason; in that case
it'll be left zero. Use 1 instead of 0 so we don't then crash.
2016-05-31 03:25:46 +00:00
dholland
3e87dc22c2 PR 50759 David Binderman: fix out of bounds array access.
If we don't find one of the expected device addresses, reject the
match, but do it by checking whether the loop matched something rather
than by testing an array entry that might be one past the end.

Note: I have also moved the test to be with the loop; since the call
to intio_map_allocate_region had gotten placed in between them, I've
moved it to go before rather than after them as (a) it doesn't
interact with the loop itself and (b) this seems like the best choice
given the history as it was deliberately added before the original
test.

I have not tried running this, not having an x68k, but as best I can
tell by reading the intio code it seems like it should be harmless
even if it's not really correct.
2016-05-31 03:22:30 +00:00
dholland
06607d557a fix flagrantly wrong indent 2016-05-31 03:12:49 +00:00
dholland
f8610727d2 Disable the code that tries to prepare a new partition table (but doesn't
do anything with it...) because it's zooming off the end of the array it's
trying to use.

It looks to me as if NEW_MAP_SIZE has been accidentally used as both
the number of blocks occupied by the new partition table and also the
number of entries in it. Or something. This needs platform knowledge
to sort out. XXX.

Workaround for PR 50757.
2016-05-31 02:49:50 +00:00
pgoyette
9c7632e4a7 Add entries for fonts.conf.{0,5,html}
Finishes PR xsrc/49777
2016-05-31 02:37:15 +00:00
pgoyette
a47b5fd6a6 Install man-link from fonts-conf.5 --> fonts.conf.5 to deal with an
erroneous cross-ref in xclock's man-page.  suggested by wiz@.

Fixes PR xsrc/49777
2016-05-31 02:35:49 +00:00
dholland
dea44b9dd8 PR 50756 David Binderman: avoid running off the end of an array in case
thing we're looking for isn't there. Which is probably impossible, but
that's not obvious.
2016-05-31 02:29:54 +00:00
dholland
ffe3284377 PR 50755 David Binderman: assert about table entries only when they exist. 2016-05-31 02:26:00 +00:00
macallan
a1f15ec7cc make sure we call sysmon_pswitch_event() from thread context 2016-05-31 02:17:18 +00:00
christos
79332b813c Handle PIC linking for tests 2016-05-30 22:58:52 +00:00
joerg
1203c26a96 Add printf-like annotation. 2016-05-30 22:02:41 +00:00
mlelstv
44b25f2fac mark noreturn function exit_daemon() as __dead 2016-05-30 21:58:32 +00:00
abhinav
c995cb6b03 Add 'a' to the stopwords list. Ok from christos 2016-05-30 19:35:29 +00:00
christos
e9a9a47d86 Make sure that all messages end in '\n' in make_message_rcsvalid() and
compensate for it in add_rcs_file().
2016-05-30 17:49:51 +00:00
dholland
6b93d6fdd7 PR 51190 David Binderman: simplify redundant conditionals.
Also add paranoia when looping on isdigit().
2016-05-30 17:48:29 +00:00
dholland
98cc967daa PR 51187 David Binderman: simplify redundant conditional 2016-05-30 17:45:26 +00:00
dholland
7f333b5d4c If MEMSIZE isn't set, #error instead of proceeding using uninitialized
stack garbage as the memory size. Please improve as needed; I don't know
anything about this hardware.

PR 51150 from David Binderman.
2016-05-30 17:43:46 +00:00
dholland
c1c801b64b Remove undefined behavior in buf(); use buf() as intended in intarg().
While here also add includes to fix the build. Retires PR 50999 from
David Binderman.
2016-05-30 17:34:35 +00:00
dholland
067a182606 PR 50997 David Binderman: fix format strings 2016-05-30 17:26:29 +00:00
dholland
2c888f6181 PR 50709 David Binderman: memory leak 2016-05-30 17:21:07 +00:00
dholland
4a6aecfb76 PR 50669 David Binderman: remove dead code 2016-05-30 17:18:38 +00:00
dholland
f728cfb218 PR 50643 David Binderman: fix conditional order 2016-05-30 17:11:56 +00:00
dholland
d9a33fbe91 Explicitly ignore errors in the hack for mucking with wedges; mark it XXX
for future attention. Other part of PR 50886 from David Binderman.
2016-05-30 17:03:21 +00:00
dholland
ccc5db6204 #if out some unreachable code that's apparently not yet supported.
PR 50886 from David Binderman.
2016-05-30 17:00:38 +00:00
dholland
8498a0b32b bus_width is not used, so don't fetch it; but do leave the logic in place
commented out so it's there if anyone wants it in the future.
PR 50594 from David Binderman.
2016-05-30 16:38:35 +00:00
dholland
96e4b50290 Use this program's Strdup() instead of strdup() so it exits on failure
instead of dumping core.
2016-05-30 16:35:35 +00:00
dholland
7ad91fe4a4 Use rewind() instead of freopen()'ing the same file for no reason. Also,
close the file when done instead of dropping it on the floor. Obsoletes
PR 50579.
2016-05-30 16:26:34 +00:00
pooka
f3167874d4 Disable PR kern/51135 hack now that the problem is supposedly
fixed (to see if tests pass).
2016-05-30 14:52:06 +00:00
chs
bb2ba5a5a7 allocate cpuset structures needed by MP DDB. 2016-05-30 13:04:24 +00:00
martin
5fc637a54d David Binderman in PR kern/51189: simplify loop conditions 2016-05-30 11:24:40 +00:00
martin
cc645bf7b4 David Binderman in PR port-sparc/51188: simplify while condition 2016-05-30 10:37:14 +00:00
alnsn
c5f5595419 Reduce diff with mainstream.
In the new sljt version, ppc_cache_flush() is guarded by
SLJIT_CACHE_FLUSH_OWN_IMPL. We can keep is as long as we
don't define SLJIT_CACHE_FLUSH_OWN_IMPL.
2016-05-30 09:34:39 +00:00
nakayama
0350baf089 Adapt to new sljit. 2016-05-30 09:05:32 +00:00
nonaka
ae2737a4e4 regen 2016-05-30 04:18:20 +00:00
nonaka
224b451a1a Added some Intel wireless devices from OpenBSD. 2016-05-30 04:17:30 +00:00
knakahara
f99c3d3768 fix r1.409 mistake 2016-05-30 03:54:12 +00:00
dholland
bdf7bc55bd Note that i386 needs a PIE-related cleandir. Should avoid having PR 51174
happen to anyone else. :-/
2016-05-30 03:11:48 +00:00
dholland
9f2b1defb5 further whitespace 2016-05-30 03:02:58 +00:00
dholland
964a5c8e1a KNF 2016-05-30 02:57:32 +00:00
dholland
c72886c629 Reindent. 2016-05-30 02:41:39 +00:00
dholland
cb81c2dd6a PR 51185 David Binderman: simplify redundant conditional 2016-05-30 02:36:37 +00:00