Commit Graph

145626 Commits

Author SHA1 Message Date
simonb b015b6a9f1 Use "#define<TAB>". 2006-04-06 06:17:32 +00:00
dyoung 3bda9d9f8c In atw_start, do not initialize lasttx with -1, but initialize it
with the next free transmit descriptor.  Now, it is more obvious
that lasttx is not an illegal negative index into the descriptor
ring.  Remove a superfluous assertion.

Addresses Coverity CID 1319.
2006-04-06 06:08:26 +00:00
dyoung 660587743a Correct sc_bbptype, sc_rftype bounds checks. Fixes Coverity CID
1541.
2006-04-06 05:47:23 +00:00
simonb 1af5057c87 Regen. 2006-04-06 04:07:31 +00:00
simonb 36c6a8850d Sort some Intel GigE nics by product ID. 2006-04-06 04:06:52 +00:00
simonb 50e818be70 Whitespace nits. 2006-04-06 01:04:22 +00:00
simonb 372d44b647 Use TABs instead of spaces. 2006-04-06 00:48:14 +00:00
simonb 69a5c042bc Don't need an RCS "Id" keyword, already have the "NetBSD" keyword at the
top.
2006-04-06 00:19:06 +00:00
gdamore 6af18224ef Use a -I to add path to netbsd/ah_osdep, and remove #ifdef __NetBSD__
logic from ah.h.  This was done at the request of sam@.
2006-04-05 23:41:03 +00:00
yamt 2267ff751f cuhelp: fix a typo in usage. 2006-04-05 23:30:57 +00:00
christos 0346684a3d save the home directory. 2006-04-05 23:10:16 +00:00
dyoung 9f1cdb7a4a Fix typo in comment, s/will be never/will never/. 2006-04-05 22:16:42 +00:00
yamt 9f6a649d14 uvm_km_pgremove/uvm_km_pgremove_intrsafe: fix assertions. 2006-04-05 21:56:24 +00:00
perseant 1b08b7c6a1 Look for the inode pointers in the right place if lfs_bsize != lfs_fsize. 2006-04-05 21:42:49 +00:00
bjh21 bb2de9ff3d Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader.  Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel.  This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
2006-04-05 21:33:26 +00:00
bjh21 9a26703601 Use ctype macros. 2006-04-05 21:30:29 +00:00
perseant 2c3f7b46ba Handle the case of inode blocks misidentified by the segment headers
correctly, a problem reported by Kurt Schreiner; as well as similar
error cases (realloc returning NULL or no cleanable segments found).
2006-04-05 20:29:40 +00:00
dsl 2ab52a9ec8 Rework the way that files are closed and unlinked on error.
In particular avoid calling fclose() again once it has failed.
Also multply 'oreg' by 2 once we modify the file - so we know when to
unlink it on error.
Fixes Coverty CIDs 2535 and 2536
2006-04-05 20:24:38 +00:00
nonaka 91dcd880bc Regen. 2006-04-05 20:09:47 +00:00
nonaka fd5e23a861 Added "Faraday Technology" in vendor list. 2006-04-05 20:09:22 +00:00
dsl 4fe310d596 Avoid iswhite(EOF) - fixes coverty CIDs 365 and 1196
I'm not at all sure EOF handling is correct anyway - but it probably only
affects the last line of a file (and maybe last lines without \n).
In particular I suspect that 'ungetc(EOF, file)' doesn't do the expected
thing, and that fseek() needs to be preceeded by clearerr(). But life it short.
2006-04-05 20:03:14 +00:00
christos 435a7d0d03 Coverity CID 2721: Avoid bitching for impossible cases, by adding KASSERT. 2006-04-05 19:49:28 +00:00
hubertf 13312347fe fix tcpdump maintainer & mailing list 2006-04-05 19:47:09 +00:00
dsl abc6183046 Don't follow node->left after free(node).
Optimise out recursion unless both node->left and node->right non-NULL.
Fixes coverty CIDs 26 and 27.
2006-04-05 19:38:47 +00:00
garbled 338eb2ab90 Add an initial set of install notes for the prep port. 2006-04-05 18:37:00 +00:00
hubertf f5ffa47293 Add missing .TP
Patch sent to tech-net@ by Patrick Welche <prlw1@newn.cam.ac.uk>
2006-04-05 18:07:30 +00:00
hubertf 3cdb8f0a5c http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).

Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
2006-04-05 18:01:20 +00:00
hubertf a4ff1305f4 When recognizing a broken package version/name,
make sure to error out really, don't just print a warning
and the run into further problems.

Coverity CID 2739.
2006-04-05 17:50:48 +00:00
garbled cd8efba238 Small KNF fix 2006-04-05 17:01:21 +00:00
garbled 85af130714 Rather big update to sysinst, in order to get it working on the prep port.
1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.
2006-04-05 16:55:01 +00:00
tsutsui f8b2282138 ANSIfy, KNF 2006-04-05 15:50:48 +00:00
tsutsui d8a85de05c ANSIfy. 2006-04-05 15:46:58 +00:00
drochner 61f5f2c87d -Consistently check the buffer length in getsysinfo(),
and require one additional byte for string termination
 in the GSI_PLATFORM_NAME case.
 This should fix PR kern/33198 by Nicolas Joly.
-Make sysinfo() behave more like the original: return
 the length needed and copy out as much as possible.
2006-04-05 15:30:48 +00:00
drochner 9813c5ea29 remove get/setborder from accessops 2006-04-05 15:25:15 +00:00
drochner 8390dd2605 update for accessops change (get/serborder removed) 2006-04-05 15:23:06 +00:00
drochner cd401662a8 Move the ga_getborder()/vga_setborder() calls from accessops to the
ioctl handler.
Also fix error reporting for the vga_getborder() call.
2006-04-05 15:19:54 +00:00
drochner 5b4dd527c3 Use the existing ioctl path to call WSDISPLAYIO_GBORDER/WSDISPLAYIO_SBORDER
instead of a separate accessops entry. There is no need to introduce bloat
for the majority of drivers which don't implement this feature.
This should also resolve PR kern/33186 by Valeriy E. Ushakov.
2006-04-05 15:18:25 +00:00
tsutsui 7011c71999 - ANSIfy
- KNF
- u_intNN_t -> uintNN_t
- include "ioconf.h" for struct cfdriver panel_cd
2006-04-05 15:14:49 +00:00
tsutsui 194935a114 ANSIfy, KNF 2006-04-05 15:14:10 +00:00
tsutsui a7c19b0c1a Include "ioconf.h" for struct cfdriver cpu_cd (though it's currently unused). 2006-04-05 15:07:17 +00:00
tsutsui da447cc3ab - ANSIfy
- KNF
- u_intXX_t -> uintXX_t
2006-04-05 15:03:27 +00:00
christos 825f80c59c Fix use after free. 2006-04-05 14:59:29 +00:00
tsutsui 076b3a81c7 Fix function name in panic messages. 2006-04-05 14:03:04 +00:00
tron 442e61c603 Fix "MKUUCP" check so that "cu" installed if "MKUUCP" is not defined. 2006-04-05 13:04:33 +00:00
christos a2170ce453 make sure that netid always points to an allocated string. Pointed out by
enami; thanks.
2006-04-05 12:57:29 +00:00
skrll 6f5914a550 __sigtramp1.S moved to the new compat layout so we should try and build
it here.
2006-04-05 12:23:51 +00:00
rtr 1b5ececaf1 fix typo 2006-04-05 11:11:07 +00:00
tron be0bc38f31 Move "depend" target into block which is only used if ath(4) is enabled
in the kernel configuration. This makes it possible to build kernels
without that driver again.
2006-04-05 09:01:28 +00:00
he 22d273f6af Unbreak the build of this file on our 64-bit ports
by casting to or via intptr_t.
2006-04-05 06:55:26 +00:00
gdamore ca7d761296 Rename AH_DEBUG, AH_ASSERT, and AH_DEBUG_ALQ to ATH_XXX.
Use the opt_ah.h for the provided HAL to get options like AH_REGOPS_FUNC.
Add AH_REGOPS_FUNC to a few opt_ah.h that don't have it in this version
of the HAL but need it.  (The next version from Sam should have this fixed
in it.  If it doesn't, then we'll have to take care at import time.)

Ultimately, this should make future imports even easier, and individual ports
should not have to worry about whether AH_REGOPS_FUNC is properly defined or
not, since the opt_ah.h will just take care of it automatically.

Ok'd by dyoung@.
2006-04-05 06:54:26 +00:00