Commit Graph

170109 Commits

Author SHA1 Message Date
aymeric a3887e9573 . include <sys/stropts.h> only if !defined(__NetBSD__)
. use I_PUSH only if it is defined as a preprocessor macro because we
  don't have it
2008-05-20 17:55:05 +00:00
aymeric f8f1a54d4c provide the emulation of DB4 with our DB1.
The relevant parts are completely broken or absent in the official release
of nvi
2008-05-20 17:53:18 +00:00
aymeric 2d56ffaa39 . add curly braces around structured elements of an array
. de-K&R prototype of lcmp()
2008-05-20 17:52:10 +00:00
aymeric fce4fb65c7 include vi_auto.h only if USE_DB4_LOGGING so as not to pull in all the
DB4 logging-related data structures which we don't emulate
2008-05-20 17:38:19 +00:00
aymeric 23de6174f3 iconv()'s second argument is const char **, not char ** 2008-05-20 17:37:04 +00:00
njoly da21dc40ec Regen for ipc(2) syscall support. 2008-05-20 17:33:13 +00:00
njoly 84db622836 Add compat linux32 ipc(2) syscall support, for shared memory and
semaphores.
2008-05-20 17:31:56 +00:00
ad a72f5a57fb Don't try to load a module while holding a vnode lock. 2008-05-20 17:28:59 +00:00
ad 7bf8432671 If mount fails because the needed file system code isn't in kernel, try
to autoload with the needed vfsops.
2008-05-20 17:25:49 +00:00
ad 67280de1f2 Allow module class to be passed to module_load(), as a basic sanity check
that we are loading the right kind of module.
2008-05-20 17:24:56 +00:00
aymeric 4c86bf8605 . continue instructions for update a bit
. remove catalog/english.base and common/options_def.h from the imported sources
2008-05-20 17:05:40 +00:00
aymeric ec041c82dd remove these files: we generate them ourselves 2008-05-20 16:58:59 +00:00
cegger 245f7a0350 regen. 2008-05-20 16:56:13 +00:00
cegger 0fbcab6ee4 add some ATI products (SB600 modem, RD790 and RS690) 2008-05-20 16:55:28 +00:00
ad 9e6de4df51 Don't moan about LFS unless the mount succeeds. 2008-05-20 16:26:04 +00:00
martin bd3d112a87 fix !MODULAR compiles 2008-05-20 16:18:51 +00:00
ad e69aa3297c Take $MACHINE into account when looking for modules. 2008-05-20 16:04:08 +00:00
ad ef621e3353 Remove pointless COMPAT ifdef. 2008-05-20 16:03:31 +00:00
njoly 763d4d3608 Fix linux_sys_getres{uid,gid}16 arguments type in comment. 2008-05-20 15:48:24 +00:00
ad e7660f2353 Use HOST_SH. 2008-05-20 15:18:29 +00:00
ad 85a077252f Recognise @MODULEDIR@ as a keyword in setlists. 2008-05-20 15:17:22 +00:00
ad 79df4e6dbd PR kern/38694 module dependencies do not work as expected
If a given module name/path does not start with '/', assume it's a module
name and choose a default path based on the kernel version.
2008-05-20 14:46:54 +00:00
cegger 256cdaf669 correct wrong comment: envsys(4) wants uK 2008-05-20 14:46:31 +00:00
cegger a8dd75a7ea correct comment copied from aiboost(4): envsys(4) wants uK 2008-05-20 14:45:22 +00:00
ad 5cb8dd92fe Extract kernel version from the note section and stuff into a global
netbsd_version.
2008-05-20 14:41:06 +00:00
jmcneill 6a440044e9 Module depends on drm. 2008-05-20 14:20:21 +00:00
jmcneill e9336f3218 Add module dependency on putter. 2008-05-20 14:19:18 +00:00
ad 7a3561a8dc PR kern/38694 module dependencies do not work as expected
Autoload modules from the correct path based on kernel version.
2008-05-20 14:11:55 +00:00
cegger b112375268 envsys(4) expects values in mK and not the top of the range of possible temperature values.
Needed some time to figure this out after I saw negative temperature values on Griffin.
2008-05-20 13:58:32 +00:00
ad d0bd9aa452 - Do local relocs before loading requisite modules, and all others only
after requisite modules have been loaded. For PR kern/38697.
- Simplify kobj interface slightly to make error handling easier.
2008-05-20 13:34:44 +00:00
ad 575673e1ce fno-zero-initialized-in-bss no longer required. 2008-05-20 12:18:45 +00:00
ad 0b78a6ea64 Use an ldscript to merge kernel modules' .bss sections into .data. Passing
-fno-common -fno-zero-initialized-in-bss to gcc does not work, and objcopy
refuses to expand the bss section.
2008-05-20 12:17:48 +00:00
ad 64be07548a Kill the tramp stuff, since it can be handled with lkm_map. 2008-05-20 12:08:05 +00:00
nakayama d3e62669e3 Put "powered down" message in case of RB_POWERDOWN for consistency.
Useful for a serial console.
2008-05-20 11:44:14 +00:00
dogcow 49a3eaf487 due to changes in KERN_UNLOCK_ALL, now always define hold_count. 2008-05-20 09:29:33 +00:00
dogcow 4938afe09d sprinkle parens and use the slightly more standard NetBSDism of
'do { ... } while (0);'.
Fixes "error: void value not + ignored as it ought to be"
2008-05-20 09:28:39 +00:00
darrenr 2f5a5e95ad Pullup IPFilter 4.1.29 from the vendor branch to HEAD.
See src/dist/ipf/HISTORY for a list of bug fixes since 4.1.23 (although
a few are already in NetBSD)
2008-05-20 07:08:06 +00:00
darrenr 675eb13106 Import IPFilter 4.1.29 to the vendor branch 2008-05-20 06:43:46 +00:00
oster fcd3b36217 Add in a missing "bp->b_resid = bp->b_bcount" in the EIO case.
Spotted by Juergen Hannken-Illjes.  Thanks!
2008-05-20 00:29:54 +00:00
ad d4da0343a9 Make it compile. 2008-05-20 00:18:31 +00:00
christos b423ea8c48 fix argument type. 2008-05-19 23:48:04 +00:00
martin e866b17614 Do a better job eating "empty" lines at the start/end of C++ style comments.
Remove trailing linefeed from the collected messages (and add it at
output generation).
Add a simple html output mode.
2008-05-19 22:19:51 +00:00
jmcneill bbfbae40ef Don't use MALLOC_DECLARE / MALLOC_DEFINE if building as a module. 2008-05-19 21:05:37 +00:00
jmcneill 2930288d40 Add puffs and putter kmods to set lists. 2008-05-19 20:23:36 +00:00
jmcneill 49475a7132 Enable putter and puffs modules in build. 2008-05-19 20:22:17 +00:00
reinoud 8902baa622 Implement wide char support for UDF by properly implementing unicode-16 to
UTF-8 like cd9660 and ntfs already do.
2008-05-19 20:12:36 +00:00
jmcneill f26579137a Don't build as module if _RUMPKERNEL is defined. 2008-05-19 19:52:09 +00:00
oster 396f9f4598 Re-work some of the guts of the reconstruction code.
Reconmap used to have one pointer for every reconstruction unit.  This
does not scale well in the land of 1TB disks, where some 100MB+ of
"status pointers" are required for typical configurations.  Convert
the reconstruction code to use a "sliding status window" which will
scale nicely regardless of the number of stripes/reconstruction units
in the RAID set.  Convert the main reconstruction loop to rebuild the
array in chunks rather than in one big lump.

As part of these changes, introduce a function to kick any waiters on
the head separation callback list, and use that in the main
reconstruction event queue to wake up the waiters if things have
stalled.  (I believe this may fix a race condition that could occur at
at least at the very end of a disk during reconstruction under heavy
IO load.)

Thanks to Brian Buhrow for all his help, support, and patience in
testing these changes.
2008-05-19 19:49:54 +00:00
dyoung aa10084492 Fix two bugs:
1 Let us associate a keyword with either a signed or an unsigned
  number.  Associate the '-chan' keyword with an unsigned number.
  This fixes the defect that crashed 'ifconfig wi0 -chan', reported
  by Michael van Elst.

2 Do not try to interpret names as ISO addresses unless the ISO
  address family was specified.  iso_addr(3) does not report errors,
  so it appears to interpret *everything* as an ISO address.  This
  is a stopgap fix for the defect in 'ifconfig lo0 inet6' on a
  !INET6 kernel that deletes the first IPv4 address on lo0.
  (Reported by Scott Ellis.)
2008-05-19 18:00:31 +00:00
jmcneill 3ea8229871 If we see a non-loadable BSS section in a pre-loaded module, make sure we
don't return success from kobj_load or nasty things will happen.
2008-05-19 17:33:42 +00:00