Commit Graph

145247 Commits

Author SHA1 Message Date
he 50ea083318 The -Wno-packed switch is a gcc3+ thing, so place it where it won't
be picked up by gcc 2.95.3.  Fixes build problem for vax.
2006-03-27 11:50:08 +00:00
ghen 5f73509dc3 Document the defaultroute6 rc.conf variable and the /etc/mygate6 file in
/etc/defaults/rc.conf, /etc/mtree/special, and rc.conf(5).  Ok with wiz.
2006-03-27 10:07:07 +00:00
tron 7a28db2210 Fix build problem caused by last commit. 2006-03-27 10:02:37 +00:00
christos 7dc4aac2d8 Fix memory leak. 2006-03-27 01:09:11 +00:00
agc 6e1f35f92e minor cleanup in preparation for porting the NetBSD iSCSI target to Solaris 9. 2006-03-26 23:34:06 +00:00
christos fbe98ede0f Coverity CID 2763: Add more checks for value==NULL. 2006-03-26 23:12:48 +00:00
christos 48ce3c5d75 Coverity CID 2764: Avoid null reference 2006-03-26 23:10:26 +00:00
christos 3c0ef79b7f Coverity CID 2766: Don't leak memory. 2006-03-26 23:06:45 +00:00
christos 072667be1c Coverity CID 114: If we did not find any symbol table entries, return an
error.
2006-03-26 23:00:35 +00:00
christos 9a25d0519d Coverity CID 115: Don't leak memory 2006-03-26 22:58:44 +00:00
christos d4aabd7a1f Coverity CID 1202: Always return on EOF, otherwise we would try to use
ctab[-1].
2006-03-26 22:50:48 +00:00
christos 2edd64ae3e Coverity CID 927: Check for NULL before de-referencing. 2006-03-26 22:35:07 +00:00
christos ea28a203cf Coverity CID 2361: Avoid possible NULL deref. 2006-03-26 22:20:04 +00:00
christos 600a182b2f Coverity CID 2607: Although use after free is impossible here, clarify code. 2006-03-26 22:15:21 +00:00
christos d20b033359 Coverity CID 1362: Allocate one more element to appease coverity. 2006-03-26 22:08:59 +00:00
bouyer f2b8c717e8 Adapt to xenbus changes; add a proper autoconf detach callback and
handle state change to Closing. We can now dynamically attach/detach
block devices.
2006-03-26 22:05:06 +00:00
christos f3acb4a69b Coverity CID 1757: Don't leak memory 2006-03-26 22:04:14 +00:00
christos 4820f3f28c Coverity CID 1758: Unconfuse coverity about memory leak. 2006-03-26 22:02:59 +00:00
bouyer 0c9571be10 Properly handle dynamic attach/detach of device:
- keep a linked list of xenbus_device in the xenbus_infrastructure, and
  keep a pointer to struct device for each xenbus_device
- xenbus_probe_device_type(): check that the device is not already attached
- when we get a frontend_changed callback, call xenbus_probe_device_type()
- When a device changes to state XenbusStateClosed, config_detach() it
  and free the structures.
While there, move xbusd_path[] to the end of struct xenbus_device, and
allocate only the space needed to store the path. Garbage-collect
struct xenbus_driver, it's not needed.
2006-03-26 22:02:57 +00:00
christos 714883262b Coverity CID 2038 2006-03-26 22:00:23 +00:00
christos b1987e98f0 Coverity CID 2039: Plug memory leak. 2006-03-26 21:57:14 +00:00
christos 2b5f8cbcc0 Coverity CID 2042: Plug memory leak 2006-03-26 21:53:55 +00:00
christos 59ffb64e52 Coverity CID 2043: Don't leak memory 2006-03-26 21:49:01 +00:00
christos d06f1825d5 Coverity CID 2044: Don't leak memory. 2006-03-26 21:46:25 +00:00
christos e4dcd1072c Coverity CID 2399: Move strcpy lower, where it is actually going to be
used, inside the test of directory != NULL.
2006-03-26 21:44:05 +00:00
christos 34525befc6 Coverity CID 972: Someone confused && and || again. 2006-03-26 21:38:43 +00:00
christos dcbe086f64 correct coverity model. 2006-03-26 21:36:13 +00:00
martin 4b70f3655f Use /dev/MAKEDEV to create devices - instead of hardcoding i386 majors. 2006-03-26 20:27:52 +00:00
jonathan 0dec89ac9b Regen pcidevs{,_data}.h from pcidevs rev 1.778 (fixes cut-and-paste typo
in description of bcm5780S).
2006-03-26 20:23:27 +00:00
jonathan c767100863 Fix cut-and-paste typo in human-readable description of bcm5780S
(used to say bcm5782s, should be bcm5780s; make it so).
2006-03-26 20:21:55 +00:00
erh e4412d2162 Add simple_lock_assert_locked/simple_lock_assert_unlocked to provide additional
useful information when panic'ing because the assertion fails.
Use these to define the SCHED_ASSERT_LOCKED/SCHED_ASSERT_UNLOCKED macros.
2006-03-26 20:19:52 +00:00
martin 625f1bbe61 Restrict generation numbers to 32bit values - we would have had to bump
_VFS_MAXFIDSZ to 24 otherwise for 64bit archs.
2006-03-26 20:18:58 +00:00
erh 0cccd65efb When DIAGNOSTIC is defined, provide a kern.panic_now sysctl to conviniently
and reliably panic the system
2006-03-26 20:07:21 +00:00
is 814b71df61 idesc.c was unreferenced for 14 months; time has finally come to move it]
to the Attic.
2006-03-26 19:30:57 +00:00
christos fb11ba2dc5 PR/33124: Murray Armfield: readdir_r is missing a restrict qualifier.
http://www.opengroup.org/onlinepubs/000095399/basedefs/dirent.h.html
2006-03-26 18:22:40 +00:00
christos 3b6811d33b PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
christos 229fa64dde regen 2006-03-26 17:58:42 +00:00
christos 4db902eee0 PR/33154: DHOYASHIKI Shinichi: umidi quirks for Roland UM-3EX 2006-03-26 17:58:19 +00:00
hubertf 517eb6559a Remove unused variable 'salt'
Found by code inspection in one of my classes, not via Coverity :)

OK'd by christos
2006-03-26 16:45:33 +00:00
jmmv 0eee8b4ede Decrement the size value passed to test-mount by one unit so that it fits
in a 64-bit signed integer (thus ensuring that mount_tmpfs handles these
correctly).

Also check that the previous (big) value fails.

This makes this test behave correctly on all platforms (not only 64-bit
ones) after the fix commited to mount_tmpfs.
2006-03-26 16:19:04 +00:00
shige 205ee851c8 Make cpu_setmcontext() fix up the passed-in MSR value. 2006-03-26 16:15:57 +00:00
jmmv 862d1d4e18 There is no need to check for the resulting value of a strto*l call after
ERANGE has been raised.  Just remove the extra checks, which were incorrect
anyway in almost all calls because they did not match their corresponding
strto*l function.

This caused mount_tmpfs to not catch some error cases in, e.g., i386, as
strtoll was returning LLONG_MAX instead of LONG_MAX, which are different
in this platform (but not on 64-bit ones).

Problem found by martin@; thanks!
2006-03-26 16:15:15 +00:00
wiz dbbf45d92e Bump date for previous. 2006-03-26 15:49:24 +00:00
bouyer ff4b8c4e53 As we are going to sleep here, we need to use
config_pending_incr()/config_pending_decr() so that disks are probed
before trying to mount root, if the card is plugged in at boot time.
Should fix kern/33137 by KIYOHARA Takashi.
2006-03-26 15:34:19 +00:00
tron a367fe98c8 List me as the maintainer of UUCP. 2006-03-26 15:11:57 +00:00
peter 1e8f0f2099 Report the SA1100 control register state.
From Arnaud Lacombe on port-hpcarm.
2006-03-26 14:34:30 +00:00
wiz b749e8c41b Fix typo, improve English; new sentence, new line. 2006-03-26 14:32:07 +00:00
wiz e622fc0753 Fix problem solved in 1.25 in a better way. 2006-03-26 14:29:12 +00:00
wiz d57d73b3ba Sort SEE ALSO. 2006-03-26 14:27:54 +00:00
wiz 75c0f53dfe Add devices that were added in 1.25 to SEE ALSO. 2006-03-26 14:27:19 +00:00