obrien [Wed, 2 Feb 2000 03:10:44 +0000 (03:10 +0000)]
Import the latest version ehopt.c from the Cygnus Sourceware anoncvs
repository (dated 5-3-1999).
This fixes the endless loop the assembler gets in when it is trying to
decide how big part of the exception handling table should be on the Alpha.
This version of this file allows qradiobutton.cpp from qt and widget.cc
from kdelibs11 to be compilable.
shin [Tue, 1 Feb 2000 15:55:56 +0000 (15:55 +0000)]
sync iruserok() extension API with other BSDs
Some of rcmd related function is need to be updated to
support IPv6. Some of them are already updated as standard
document. But there is also several de-facto functions and
they are not listed in standard documents.
They are,
iruserok() (used by rlogind, rshd)
ruserok() (used by kerberos, etc)
KAME package updated those functions in original way.
iruserok_af()
ruserok_af()
But recently there was discussion on IETF IPng mailing
list about how to sync those API, and it is decided,
-Those function is not standard and not documented.
-But let BSDs sync their API as de-facto.
And after some discussion, it is announced that
-add update to iruserok() as iruserok_sa()
-no ruserok() API change(it is only updated internaly)
So I sync those API before 4.0 is released.
The changes are,
-prototype changes
-ruserok() internal update (use iruserok_sa() inside)
-removal of ruserok_af()
-change iruserok_af() as static functioin, and also prefix the name with __.
-add iruserok_sa() (Just call __iruserok_af() inside)
-adding flag AI_ALL to getipnodebyaddr() called from __icheckhost().
This is necessary to support IPv4 communication via AF_INET6 socket
could be correctly authenticated via iruserok_sa()
-irusreok_af() call is replaced to iruserok_sa() call
in rlogind, and rshd.
shin [Tue, 1 Feb 2000 15:49:37 +0000 (15:49 +0000)]
Add workaround for fxp issue at interface initialization with IPv6.
Some LAN card chip for fxp is known to cause problem at
interface initialization with IPv6 enabled. It happens at
some delicate timing.
And also, just adding some DELAY before IPv6 address
autoconfiguration is known to avoid the problem.
Complete fix is changing the driver not to use interrupt at
multicast filter initialization, but trying such change in
this stage will be dangerous.
So I add some DELAY() only inside #ifdef INET6 part,
as temporal workaround only for 4.0.
imp [Sun, 30 Jan 2000 23:15:21 +0000 (23:15 +0000)]
Add a section at the end called COMMON ITEMS. This is where we'll put
those questions that come up all the time (eg, how do I build a
kernel). This is intended to be a very brief reminder for people that
are basically clueful what the steps are to do these common things.
What it lacks in verbosity it makes up in terseness.
mckusick [Sun, 30 Jan 2000 20:32:59 +0000 (20:32 +0000)]
When writing out bitmap buffers, need to skip over ones that already
have a write in progress. Otherwise one can get in an infinite loop
trying to get them all flushed.
Submitted by: Matthew Dillon <dillon@apollo.backplane.com>
bde [Sun, 30 Jan 2000 07:58:14 +0000 (07:58 +0000)]
Fixed longstanding brokenness of wddump() in LBA mode. LBA mode may now
be safe enough to recommend for working around the problem with CHS mode
normally being limited to 65536*16*63 sectors.
luoqi [Sun, 30 Jan 2000 05:09:48 +0000 (05:09 +0000)]
Typo fix. While I am at it, remove the name translation from block to raw
device, they are equivalent now (or more accurately we no longer have block
devices).
shin [Sat, 29 Jan 2000 18:21:05 +0000 (18:21 +0000)]
Add NI_NAMEREQD flag to getnameinfo() call. Without this flag,
getnameinfo() don't return error at name resolving failure.
But it is used at doaddrlookup(-N) case in telnet, error need to be
returned to correctly initialize hostname buffer.
Discovered at checking recent KAME repository change, noticed by itojun.
peter [Sat, 29 Jan 2000 18:07:07 +0000 (18:07 +0000)]
Remove 'conflicts' token - it has been effectively doing absolutely
nothing for quite some time. The only thing that cared was userconfig,
but it was for one invisible device so we never saw it's effects.
peter [Sat, 29 Jan 2000 18:01:10 +0000 (18:01 +0000)]
Zap isa_device -> id_conflicts. The sole user of it (userconfig) never
actually used it since the only device that specified it (vga0) was marked
as "FLG_INVISIBLE" in userconfig and therefore never shown.
peter [Sat, 29 Jan 2000 16:59:53 +0000 (16:59 +0000)]
Remove #include "wd.h" and #if NWDC > 0 as that's always true as this
file is 'optional wdc' (note wd.h has both NWDC and NWD in it because
of config quirks)
peter [Sat, 29 Jan 2000 16:47:35 +0000 (16:47 +0000)]
Remove the TABLDISC line discipline number, it's not in the tree
any more (and never worked in FreeBSD 2.x onwards as far as I can tell),
and isn't used by anything in the tree any more either.
peter [Sat, 29 Jan 2000 16:34:46 +0000 (16:34 +0000)]
Remove sys/tablet.h and kern/tty_tb.c (the old RS232 CAD-style tablet
support code). It hasn't worked since at least October 1995, and probably
has never worked in the FreeBSD 2.0+ tree. Obviously it's not a priority
to many folks.
peter [Sat, 29 Jan 2000 16:13:08 +0000 (16:13 +0000)]
Fix this so LINT compiles. There is no way this could have worked if
tested with LINT. I've put back netatm/kern_include.h and maked it
with a fixme!, otherwise NETISR_ATM isn't defined as ATM_KERNEL isn't
defined. Defining that exposes a whole bunch of other dependencies.. :-(
peter [Sat, 29 Jan 2000 16:00:34 +0000 (16:00 +0000)]
Remove #if NFOO > 0 (it's not required in most cases) and also where it
isn't used as a result, remove #include "foo.h". Many of these drivers
still use NFOO for softc struct sizing etc however.
peter [Sat, 29 Jan 2000 15:37:36 +0000 (15:37 +0000)]
Put a FYI in the compatability shims so that people are aware that they
are using an old unconverted driver. Most (if not all) of the drivers
for common hardware are newbus these days. However, we don't want
to encourage people to take the easy way out and write new drivers
using the shims. This is just passive "encouragement".
peter [Sat, 29 Jan 2000 15:29:11 +0000 (15:29 +0000)]
Increase the default msgbuf size from 8k to 32k. Boot -v easily
overflows the default buffer making it too hard to get a dmesg from
a verbose boot. It's still changeable via an option, so if picobsd
needs to set it to something else they still can.
rwatson [Sat, 29 Jan 2000 15:22:58 +0000 (15:22 +0000)]
This patch fixes a locking bug that can result in deadlock if
the codepath is followed.
From the PR:
vclean calls vrele leading to deadlock (if usecount > 0)
vclean() calls vrele() if v_usecount of the node was higher than one.
But before calling it, it sets the VXLOCK flag, which will make
vn_lock called from vrele dead-lock.
peter [Sat, 29 Jan 2000 15:08:56 +0000 (15:08 +0000)]
Use config's conditional compilation rather than using #ifdefs that make
modular compilation harder. I'm doing this because people seem to like
cut/pasting examples of bad practices in existing code.
peter [Sat, 29 Jan 2000 15:04:33 +0000 (15:04 +0000)]
Arrange for the following files to be compiled when the configuration
conditions are met rather than having to resort to #if's in the code.
> dev/syscons/scvgarndr.c optional sc vga
> dev/syscons/scvesactl.c optional sc vga vesa
> i386/isa/vesa.c optional vga vesa
n_hibma [Sat, 29 Jan 2000 14:53:47 +0000 (14:53 +0000)]
First part of the fix for ohci_hash_find_td panic.
Some controllers submit bogus pointers to the Done queue.
ohci_hash_find_td fails to find these in its hash and panics. Instead of
panicing we now assume the whole done queue is lost and let the timeout
code to clean up the mess after us.