Commit Graph

145463 Commits

Author SHA1 Message Date
bouyer
02e9db01de unregister_xenbus_watch(): Ops, correct code to remove pending watch events
so that it's not an infinite loop.
2006-04-02 15:32:10 +00:00
bouyer
eb7b686214 Ops, better include bpfilter.h if we're going to use NBPFILTER > 0.
Should make bpf work on Xen3 domU, problem reported by Stephane Bortzmeyer
on port-xen.
2006-04-02 13:56:12 +00:00
yamt
c61cfbc7ca pool_grow: don't increase pr_minpages. (fix a mistake in 1.113) 2006-04-02 13:25:34 +00:00
tsutsui
27ec859c0e Add some delay() on asserting MEC_MAC_CORE_RESET. 2006-04-02 11:20:46 +00:00
agc
9be1dc8d96 Use the correct type for the length argument to lba2cdb. 2006-04-02 10:46:47 +00:00
agc
8b20725dfb Fix a (repeated) obvious bug in the tracing functions.
Modify the return values of some boolean functions to be 1 for success, 0
for failure, rather than 0 and -1 respectively.
2006-04-02 09:36:57 +00:00
dsl
114adc27fb call extent_free_region_descriptor(ex, myrp) when ltseep() returns non-zero
(eg if interrupted).
Fixes Coverty CIDs 1555 and 1556.
2006-04-02 09:27:05 +00:00
dsl
c89fb86a25 Bail out of sysctl_create() if we fail to malloc() own.
free(own) when we bail out if any later malloc() calls fail.
Fixes coverty CID 2310
2006-04-02 09:07:57 +00:00
dsl
49b6576d34 Predicate all the tests against existing children with a single 'if (node)'.
Simplify the test that ensures a CTLFLAG_ANYNUMBER child is an only child.
Will stop the coverty CID 1082 report.
2006-04-02 08:04:05 +00:00
christos
af0a2a9e7a Add a new lifnum sockio. 2006-04-02 07:17:16 +00:00
christos
0185b5a197 remove dup decl 2006-04-02 06:45:16 +00:00
christos
e5c9c0c478 minor nits 2006-04-02 06:44:23 +00:00
macallan
c0007febd1 add a dummy implementation of the schedctl() syscall 2006-04-02 06:34:18 +00:00
tls
b8dc57b8d9 If we might have two links, we'd better print our program name when we
emit an error -- and it would be nice if it were the *right* program name.
Since it's convenient, change most perror calls to warn, and a lot of
fprintf ...  exit to errx.  Fix at least one fprintf that could run off
the end of its arguments (%s but no argument, how did we never catch this?).
2006-04-02 06:11:45 +00:00
gdamore
9a2b9dd63b Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.
2006-04-02 05:52:14 +00:00
gdamore
0b8fc35579 Change to use new HAL layout. (Not in HEAD yet, but since this device
isn't built by default yet, it is harmless to change now.)

Pass DMA tag.  Do not register shutdown hooks if attach fails.
Use SYSREG_REVISION for ath device ids.

if_ath_arbus isn't operational yet, but it is much closer now.
2006-04-02 05:44:28 +00:00
gdamore
9f8c8a9908 Interrupt values (aa_irq) can be zero, and represent a real interrupt.
Please display them.
2006-04-02 05:41:32 +00:00
tls
82222cd3ac Default to no parity instead of even parity. OpenBSD made this change
long ago, and I think it makes sense.
2006-04-02 04:28:38 +00:00
tls
685d2e5048 Default the "raisechar" value (for the insane old case-mapping) to NULL.
As the same change in the OpenBSD tree says, "if you are crazy enough
to want it, then it can be turned on in /etc/remote."
2006-04-02 04:25:36 +00:00
christos
df58c5cd15 Coverity CID 1660: Plug memory leaks. 2006-04-02 04:17:08 +00:00
tls
8139858166 Default baud rate to 9600 (was 1200) to match Taylor cu. 2006-04-02 04:10:54 +00:00
tls
7d1bef10da Add the rest of the speeds listed in termios.h. This is not, perhaps, as
sensible as the way OpenBSD supports arbitrary speeds; but we hardly add
new speeds often and this change is a lot less invasive.
2006-04-02 04:02:00 +00:00
christos
ceb6edafa6 Coverity CID 922: Fix check against NULL. 2006-04-02 03:50:38 +00:00
christos
472d6fbe72 Coverity CID 878: Remove impossible tests against NULL pointers. 2006-04-02 03:47:26 +00:00
thorpej
b2bea1ed90 Static'ify. 2006-04-02 03:41:32 +00:00
christos
999d9f8f32 Coverity CID 1181: Protect access against NULL. 2006-04-02 03:40:06 +00:00
christos
002be29d1a Coverity CID 2290: Fix memory leak. 2006-04-02 03:33:55 +00:00
christos
095e4da292 Coverity CID 1204: Prevent negative index. 2006-04-02 03:29:17 +00:00
christos
e9427c25f6 Add coverity annotations. 2006-04-02 03:26:03 +00:00
christos
6e2787485e Coverity CID 2336: Fix memory leak. 2006-04-02 03:19:34 +00:00
tls
40bdc77642 Change manual page (as OpenBSD did) to reflect the actual arrangement of
file descriptors with ~C, instead of some weird ancient arrangement.

Document ~+ as a synonym for ~C.
2006-04-02 03:15:02 +00:00
tls
b389579aca Add "~+" as a synonym for "~C" for Taylor cu compatibility. 2006-04-02 03:10:54 +00:00
rittera
8336364859 Added a #include for sys/device.h. This is necessary when building
ndiscvt
2006-04-02 03:07:18 +00:00
christos
3cd2d0576e rename salloc to estrdup. 2006-04-02 01:39:48 +00:00
uwe
f656cfe053 Kill trailing whitespace. 2006-04-02 01:17:16 +00:00
christos
8de5cf0e33 Coverity CID 2639: Fix obvious bug in loop handling. Using and freeing the
wrong pointer.
2006-04-02 01:10:39 +00:00
he
f2b7814ebc Now that BKPT_SET takes two arguments, supply the second argument. 2006-04-02 00:57:30 +00:00
christos
2e0077c305 Add more coverity assertions. If this does not work, I will have to follow
a different tactic.
2006-04-02 00:53:56 +00:00
christos
8533275dab Remove bogus debugging code I accidentally committed. 2006-04-02 00:15:53 +00:00
christos
a7a74df4fa Coverity CID 2788: If no room gets returned, don't try to place a monster. 2006-04-02 00:13:29 +00:00
christos
8710461ab4 Coverity CID 2791: Fix file pointer leak. 2006-04-02 00:08:12 +00:00
christos
5a33190720 fix coverity free model. 2006-04-02 00:01:13 +00:00
christos
bfe8a650d3 Coverity CID 2792: Fix memory leaks 2006-04-01 23:53:11 +00:00
christos
2b955dc8fb Coverity CID 2846: Don't use LIST_FOREACH if you are going to free the cursor 2006-04-01 23:50:50 +00:00
christos
f1e970a046 Coverity CID 2847: Don't use LIST_FOREACH if you are going to free the
current pointer!
2006-04-01 23:48:56 +00:00
christos
868accdb18 Coverity CID 1836: Free Source after return from shell. 2006-04-01 23:39:58 +00:00
christos
c28f114217 Coverity CID 1844: Add annotations for aresize. 2006-04-01 23:36:28 +00:00
christos
0ad4767103 Coverity CID 1829: Fix memory leak. 2006-04-01 23:34:43 +00:00
christos
89bc0d7869 Greek console keymap from Eye of the Beholder 2006-04-01 23:02:32 +00:00
christos
46c0b8e98a PR/26804: Jason Thorpe: Make PT_DUMPCORE require the process to be PT_ATTACH'ed
first so that it is stopped and there are no races.
2006-04-01 22:34:00 +00:00