christos
1f5c810a97
Coverity CID 782: Don't dereference NULL was not going to happen, but:
...
1. return error instead of the trashed errno.
2. don't return -1, but return ENAMETOOLONG.
3. eliminate unused code.
2006-03-21 21:34:01 +00:00
christos
7067dcb9a4
Always check the results of getmntopts() and free them.
2006-03-21 21:11:41 +00:00
agc
cbf5d4f8f5
Abstract out some common code, and place it in the utilities source.
...
Get rid of some #ifdef __KERNEL__ abstractions - they're not needed.
2006-03-21 21:03:14 +00:00
christos
b2f6added5
Coverity CID 577: remove dead code; minburst can never be 0 at this point.
2006-03-21 20:49:54 +00:00
christos
e46022bb52
Coverity CID 1514: Don't access static array beyond the end of it.
...
In this case PFTM_MAX == 20 and sizeof(pf_timeouts) / sizeof(pf_timeouts[0])
== 21, using a loop with the size of the array and checking for reaching the
end of the loop via j == PFTM_MAX does not work. Change the loop to use
PFTM_MAX as the upper bound and add an assertion in the code to make sure
that pf_timeouts is large enough. Finally remove last NULL element of the
array so that the array has 20 elements again.
2006-03-21 20:47:27 +00:00
he
77c27ad055
Add a driver, ciss(4), for the HP/Compaq drivers using the newer
...
"Command Interface to SCSI-3 Support" command interface. Driver
ported from OpenBSD by Tonnerre Lombard -- thanks!
2006-03-21 20:42:14 +00:00
christos
1a21d9be9f
Coverity CID 2057: Don't forget to free tcpopts when you are done.
2006-03-21 20:31:56 +00:00
christos
eca1f0e01b
Coverity CID 2491: Fix uninitialized reference.
2006-03-21 20:27:59 +00:00
christos
df3594a46a
Coverity CID 2735: Remove dead code.
2006-03-21 20:25:55 +00:00
he
39e2cda308
Regenerated files after adding IDs for HP/Compaq Smart Array controllers.
2006-03-21 20:20:59 +00:00
he
88fd4ab2a0
Add a bunch of IDs for Compaq/HP Smart Array controllers supported
...
by the soon to be added ciss(4) driver.
2006-03-21 20:19:21 +00:00
gdamore
10d412b26d
Bump date. Ooops.
2006-03-21 19:49:00 +00:00
gdamore
426dac3334
Added more system models.
...
More information on system devices.
2006-03-21 19:48:24 +00:00
wiz
22817a0282
regen.
2006-03-21 19:07:04 +00:00
wiz
4b610bb2ce
Fix typo, reported by seebs in PR 33106.
2006-03-21 19:06:08 +00:00
gdamore
6c8d505b69
Mention new AR5312 port.
2006-03-21 19:01:33 +00:00
drochner
4ece2172cf
Build the sun versions of frexp(), ldexp() and modf().
...
While the versions in libc/gen are prettier to look at, having single
precision versions in libm and double precision versions in libc causes
a lot of confusion, and to favor libm gets us coprocessor support.
2006-03-21 18:46:05 +00:00
drochner
d9956871be
link against libm
2006-03-21 18:34:22 +00:00
drochner
00c2a788f7
mention single precision versions and advise to link against libm
2006-03-21 18:33:00 +00:00
christos
4baec30349
Coverity CID 2743: Not really a memory leak, but make it obvious that we
...
always free tmp.
2006-03-21 17:52:50 +00:00
christos
0339fe6614
Coverity CID 2749: Fix another double free. Instead of removing that last
...
free() call, change the allocation policy to leave the responsibility for
allocation/freeing the pathname to _rtld_map_object(), instead of having
the caller allocate it and _rtld_map_object() free it. This simplifies the
code a lot and it is more efficient.
2006-03-21 17:48:10 +00:00
christos
dd3fe9b2dc
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
...
so that we don't end up storing garbage accidentally and the next pointer is
initialized. If there is an inconsistency in the file abort instead
of dereferencing NULL.
2006-03-21 17:14:15 +00:00
christos
a674b513c2
Coverity CID 2738: When a symbol with a NULL name is passed, convert it to
...
the empty symbol.
2006-03-21 16:59:09 +00:00
christos
0c6d11b6a4
Coverity CID 2736: Remove 16 bit int compat code.
2006-03-21 16:46:44 +00:00
mjl
f0174eb74b
Correct obvious typo
2006-03-21 12:08:19 +00:00
drochner
0e514dc492
The second argument is not a float, so the "abi.h" abstraction
...
doesn't work.
Open-code the argument handling instead.
Should fix the ldexp() bug reported by Brendon Costa in port-amd64.
2006-03-21 11:35:21 +00:00
kardel
a1cdcab3c8
buffer overrun: backport fix from NTP project (Coverity NetBSD Scan 8: CID 1509)
2006-03-21 11:12:13 +00:00
kardel
15dc7197ee
null deref: fix another case of incomplete list handling (Coverity NetBSD Scan 8: CID 986)
2006-03-21 10:28:25 +00:00
dogcow
a3d114851f
as yamt and bouyer pointed out, there are a few other cases where l should
...
be checked for NULL, if one's going to do it at all, and that the proper idiom
is KASSERT, not panic.
2006-03-21 10:22:59 +00:00
pavel
c38d26c2d6
Bump date, requested by wiz.
2006-03-21 09:54:12 +00:00
pavel
104eb3fa9f
-I does work for unicast pings too (it sets the source address).
...
With some language help from dsl.
Reviewed by jnemeth.
2006-03-21 09:15:53 +00:00
simonb
82390bd0f2
Reorder a few entries in the CPU table.
2006-03-21 09:06:21 +00:00
martin
dfd0099ebb
Explain why this fails when run from nbmake-$ARCH.
...
From Simon J. Gerraty.
2006-03-21 08:31:13 +00:00
gdamore
bc3e11746b
Initial import of Atheros AR531X SoC support. Currently the onboard ethernet
...
and serial ports are supported, and the system appears stable with an NFS
mounted root. An earlier version of the code was reviewed by simon@, but it
has since had numerous improvements and cleanups.
At the moment, only AR5312 is known to work, but I suspect AR2313 will work
as well. Later 2315/2316 parts are substantially different, and are not yet
supported. Wifi and Marvell switch support found on some designs are not yet
supported.
Platforms known to include AR5312 include Senao Aries 2 (AP5054) and Netgear
WGU624.
2006-03-21 08:15:19 +00:00
tsutsui
f5040e78bb
- Create an independent "boot" partition for bootloader rather than
...
marking a raw partition as "boot".
- Adjust default partition size for /usr so that extracted files
won't flood on the default full installation.
2006-03-21 06:18:29 +00:00
tsutsui
c04fe5f13c
Disable KERNFS since installer will use dmesg(8).
2006-03-21 03:42:28 +00:00
tsutsui
17e5a1e5a3
Use dmesg(8) directly rather than via kernfs.
2006-03-21 03:38:22 +00:00
tsutsui
f9e105a948
Use smaller distrib/utils/x_gzip.
2006-03-21 03:35:49 +00:00
tsutsui
a599612f68
MAKEDEV(8) requires df(1) to detect fdesc.
2006-03-21 03:28:34 +00:00
tsutsui
f543e0f10e
Some KNF adn ANSIfy.
2006-03-21 02:06:31 +00:00
tsutsui
dc8b8e8df8
Some KNF.
2006-03-21 02:05:33 +00:00
tsutsui
ec2e473d63
8 -> MAXPARTITIONS
2006-03-21 01:33:49 +00:00
tsutsui
bbcd8e938f
Invoke MI installboot(8) directly rather than via a wrap script.
2006-03-21 01:32:19 +00:00
tsutsui
59c9ad4718
hp300 now uses MI installboot(8) so also put it to ramdiskbin.
2006-03-21 01:30:06 +00:00
tsutsui
8cb3a5a803
Fix inverted logic on device_is_a() conversion.
2006-03-21 01:15:03 +00:00
christos
e13746b11b
Fix krb4 compilation (although krb4 is removed, this leaves the code compiling)
2006-03-21 00:01:29 +00:00
christos
9731df7d2d
make this compile again.
2006-03-20 23:13:51 +00:00
christos
db80529cf2
Delete an obvious free(NULL) pointed out by erh.
2006-03-20 22:44:25 +00:00
bouyer
2c84df432e
Build XEN3_U and INSTALL_XEN3_U kernels as part of release process.
2006-03-20 22:36:37 +00:00
bouyer
3c77a3806d
A config file for a kernel+ramdisk do install NetBSD on a Xen3 DomU.
2006-03-20 22:34:02 +00:00