]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoUnbreak for !__XSCALE__.
cognet [Sun, 23 Oct 2005 23:09:14 +0000 (23:09 +0000)]
Unbreak for !__XSCALE__.

18 years agoDon't touch last overrun if signal was already on queue.
davidxu [Sun, 23 Oct 2005 22:59:33 +0000 (22:59 +0000)]
Don't touch last overrun if signal was already on queue.

18 years agoIf we have been called from ether_ifdetach() then do not try and clear the
thompsa [Sun, 23 Oct 2005 22:30:07 +0000 (22:30 +0000)]
If we have been called from ether_ifdetach() then do not try and clear the
promisc flag from the member interface, this is a no-op anyway since the
interface is disappearing. The driver may have already released
its resources such as miibus and this is likely to panic the kernel.

Submitted and tested by: Wojciech A. Koszek
MFC after: 2 weeks

18 years agoLike acpi_throttle, set frequency to 100% in attach. Some BIOSen may set
njl [Sun, 23 Oct 2005 19:38:06 +0000 (19:38 +0000)]
Like acpi_throttle, set frequency to 100% in attach.  Some BIOSen may set
this value lower, making the system quite slow after booting.

18 years agos/RADUIS/RADIUS/
maxim [Sun, 23 Oct 2005 19:37:55 +0000 (19:37 +0000)]
s/RADUIS/RADIUS/

Submitted by: jisakiel@yahoo.es
MFC after: 1 week

18 years agoAdd prototype to be consistent.
njl [Sun, 23 Oct 2005 19:31:18 +0000 (19:31 +0000)]
Add prototype to be consistent.

18 years agoMNT_JAILDEVFS is not used anymore. Mark it as spare.
pjd [Sun, 23 Oct 2005 16:52:13 +0000 (16:52 +0000)]
MNT_JAILDEVFS is not used anymore. Mark it as spare.

OK'ed by: phk

18 years agoRestore the documentation about uid, gid or prison based rules requiring
csjp [Sun, 23 Oct 2005 16:15:02 +0000 (16:15 +0000)]
Restore the documentation about uid, gid or prison based rules requiring
that debug.mpsafenet be set to 0. It is still possible for dead locks to
occur while these filtering options are used due to the layering violation
inherent in their implementation.

Discussed: -current, rwatson, glebius

18 years agoDon't be lazy, set the "command" variable even if
yar [Sun, 23 Oct 2005 14:06:53 +0000 (14:06 +0000)]
Don't be lazy, set the "command" variable even if
/etc/defaults/rc.conf will provide foo_program, too.
By specifying "command" we explicitly say that we're
going to rely on rc.subr(8) default methods, and
rc.subr(8) will take advantage of this soon.

The majority of our rc.d scripts already set "command"
if appropriate, so fix just the non-compliant handful.

18 years agoMake p_itimers as a pointer, so file sys/proc.h does not need to include
davidxu [Sun, 23 Oct 2005 12:19:08 +0000 (12:19 +0000)]
Make p_itimers as a pointer, so file sys/proc.h does not need to include
sys/timers.h.

18 years agoDocument [:blank:].
stefanf [Sun, 23 Oct 2005 11:19:56 +0000 (11:19 +0000)]
Document [:blank:].

18 years agoregen
ps [Sun, 23 Oct 2005 10:43:39 +0000 (10:43 +0000)]
regen

18 years agoImplement for FreeBSD 3 32 binaries:
ps [Sun, 23 Oct 2005 10:43:14 +0000 (10:43 +0000)]
Implement for FreeBSD 3 32 binaries:
sigaction, sigprocmask, sigpending, sigvec, sigblock, sigsetmask,
sigsuspend, sigstack

18 years agoMake kernel structures invisible to userland.
davidxu [Sun, 23 Oct 2005 10:11:46 +0000 (10:11 +0000)]
Make kernel structures invisible to userland.

18 years agoTypo.
glebius [Sun, 23 Oct 2005 09:05:51 +0000 (09:05 +0000)]
Typo.

PR: misc/87679
Submitted by: Alan Amesbury <amesbury umn.edu>

18 years agoPreviously, nothing prevented the page that was returned by pmap_extract()
alc [Sun, 23 Oct 2005 07:41:56 +0000 (07:41 +0000)]
Previously, nothing prevented the page that was returned by pmap_extract()
from being reclaimed before it was wired.  Use pmap_extract_and_hold()
instead of pmap_extract() and retain the hold on the page until it has been
wired.

18 years agoChange _POSIX_REALTIME_SIGNALS to 200112L to indicates we support
davidxu [Sun, 23 Oct 2005 05:36:41 +0000 (05:36 +0000)]
Change _POSIX_REALTIME_SIGNALS to 200112L to indicates we support
realtime signals. Define missing _POSIX_TIMERS, it will be changed to
200112L once struct sigevent is fixed.

18 years agoRegen for POSIX timer syscalls.
davidxu [Sun, 23 Oct 2005 04:26:10 +0000 (04:26 +0000)]
Regen for POSIX timer syscalls.

18 years agoImplement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONIC
davidxu [Sun, 23 Oct 2005 04:22:56 +0000 (04:22 +0000)]
Implement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONIC
clock are supported. I have plan to merge XSI timer ITIMER_REAL and other
two CPU timers into the new code, current three slots are available for
the XSI timers.
The SIGEV_THREAD notification type is not supported yet because our
sigevent struct lacks of two member fields:
sigev_notify_function
sigev_notify_attributes
I have found the sigevent is used in AIO, so I won't add the two members
unless the AIO code is adjusted.

18 years ago1. Make ksiginfo_alloc and ksiginfo_free public.
davidxu [Sun, 23 Oct 2005 04:12:26 +0000 (04:12 +0000)]
1. Make ksiginfo_alloc and ksiginfo_free public.
2. Introduce flags KSI_EXT and KSI_INS. The flag KSI_EXT allows a ksiginfo
   to be managed by outside code, the KSI_INS indicates sigqueue_add should
   directly insert passed ksiginfo into queue other than copy it.

18 years agoAdd member fields for POSIX timer.
davidxu [Sun, 23 Oct 2005 03:59:52 +0000 (03:59 +0000)]
Add member fields for POSIX timer.

18 years agoBefore we export network interface data through the ifmibdata structure,
csjp [Sun, 23 Oct 2005 01:44:08 +0000 (01:44 +0000)]
Before we export network interface data through the ifmibdata structure,
OR the flags bits with the driver managed status flags. This fixes an
issue where RUNNING flags would not be reported to processes, which
conflicts with the flags information provided by ifconfig(8).

18 years agoDocument incorrect handling of multibyte characters.
tjr [Sun, 23 Oct 2005 01:37:25 +0000 (01:37 +0000)]
Document incorrect handling of multibyte characters.

PR: 87724

18 years agoWhitespace fix.
njl [Sun, 23 Oct 2005 00:55:56 +0000 (00:55 +0000)]
Whitespace fix.

18 years agoAdd a hack to get around PCI link devices that report "present" but not
njl [Sun, 23 Oct 2005 00:28:39 +0000 (00:28 +0000)]
Add a hack to get around PCI link devices that report "present" but not
"functional" (i.e., if they are disabled).  We should probe them anyway
since we may enable them later.

Tested by: thompsa
MFC after: 3 days

18 years agoHook acpi_smbat up to the build.
njl [Sun, 23 Oct 2005 00:22:02 +0000 (00:22 +0000)]
Hook acpi_smbat up to the build.

18 years agoImport ACPI smart battery support. Newer systems (Acer, mostly) do not
njl [Sun, 23 Oct 2005 00:20:13 +0000 (00:20 +0000)]
Import ACPI smart battery support.  Newer systems (Acer, mostly) do not
support the CM-battery interface.  Smart batteries can eventually be
supported without ACPI via a separate SMBus interface.  The ACPI interface
uses the embedded controller for reading/writing to the SMBus, and normal
ASL definitions for locating the battery controller (since SMBus can't be
enumerated.)  Also import definitions for the smart battery interface.

This was written by Hans Petter Selasky with minor cleanups from myself.

Submitted by: Hans Petter Selasky <hselasky / c2i.net>

18 years agoCleanups and support code for importing smart battery support.
njl [Sun, 23 Oct 2005 00:16:41 +0000 (00:16 +0000)]
Cleanups and support code for importing smart battery support.

* Use ACPI_BATT_UNKNOWN instead of constants
* Use maxunit instead of a count of devices since we may have sparse
  battery devices in the future.  Only userland should be using unit
  numbers anyway, so provide a translation function.  (Kernel use of
  batteries should be restricted to looking up a device_t and calling
  methods directly.
* Don't check acpi_BatteryIsPresent() in acpi_battery.  Leave it up to
  the hardware-specific driver (i.e. cmbat) since smart batteries seem
  to not report the "battery present" flag.
* Convert mA to mW if the battery uses those units.  CM-batteries only
  used mW so this deficiency went unnoticed.
* Clean strings reported in the battery info from any control chars.
* Only dereference the unit from ioctl_arg if the full struct is present.
  Unit wouldn't have been used later if it wasn't present but this is
  cleaner.  Translate the unit if it's not ACPI_BATTERY_ALL_UNITS.
* bzero structs before returning them to usermode for future compat.

Most of this work was submitted by Hans Petter Selasky and then majorly
reworked by myself.

Submitted by: Hans Petter Selasky <hselasky / c2i.net>

18 years agoFix typo from last commit.
glebius [Sat, 22 Oct 2005 20:47:38 +0000 (20:47 +0000)]
Fix typo from last commit.

Submitted by: simon

18 years agoVerify that access to the given address is allowed from user-space.
alc [Sat, 22 Oct 2005 20:02:59 +0000 (20:02 +0000)]
Verify that access to the given address is allowed from user-space.

Discussed with: rwatson@

18 years agoUse of the ZERO_COPY_SOCKETS options can result in an unusual state that
alc [Sat, 22 Oct 2005 18:46:38 +0000 (18:46 +0000)]
Use of the ZERO_COPY_SOCKETS options can result in an unusual state that
vm_object_backing_scan() was not written to handle.  Specifically, a wired
page within a backing object that is shadowed by a page within the shadow
object.  Handle this state by removing the wired page from the backing
object.  The wired page will be freed by socow_iodone().

Stop masking errors: If a page is being freed by vm_object_backing_scan(),
assert that it is no longer mapped rather than quietly destroying any
mappings.

Tested by: Harald Schmalzbauer

18 years agoFix obvious copy'n'paste-O in rev.1.36 While here nit style.
mlaier [Sat, 22 Oct 2005 17:50:45 +0000 (17:50 +0000)]
Fix obvious copy'n'paste-O in rev.1.36  While here nit style.

PR: bin/87783
Submitted by: Mats Palmgren
MFC after: 1 week

18 years agoFix build after in6_joingroup change. It remains unclear if DAD breaks CARP
mlaier [Sat, 22 Oct 2005 14:54:02 +0000 (14:54 +0000)]
Fix build after in6_joingroup change.  It remains unclear if DAD breaks CARP
or not.

18 years agoIn in_addprefix() compare not only route addresses, but their masks,
glebius [Sat, 22 Oct 2005 14:50:27 +0000 (14:50 +0000)]
In in_addprefix() compare not only route addresses, but their masks,
too. This fixes problem when connected prefixes overlap.

Obtained from: OpenBSD (rev. 1.40 by claudio);
[ I came to this fix myself, and then found out that
  OpenBSD had already fixed it the same way.]

18 years agoAdd bge(4) to the list of supported devices.
glebius [Sat, 22 Oct 2005 14:38:52 +0000 (14:38 +0000)]
Add bge(4) to the list of supported devices.

18 years agoIntroduce polling(4) capability for bge(4).
glebius [Sat, 22 Oct 2005 14:31:01 +0000 (14:31 +0000)]
Introduce polling(4) capability for bge(4).

Submitted by: Oleg Bulyzhin <oleg rinet.ru>

18 years agoA better, more correct explination of NO_SHARED. This could probably
trhodes [Sat, 22 Oct 2005 10:24:53 +0000 (10:24 +0000)]
A better, more correct explination of NO_SHARED.  This could probably
use a quick touch up, but at least it's correct.

Requested by: ru

18 years agoAdd missing softc
imp [Sat, 22 Oct 2005 07:43:20 +0000 (07:43 +0000)]
Add missing softc

18 years agoTurns out that we're asking for the MAC address at a bad time in the
imp [Sat, 22 Oct 2005 07:26:05 +0000 (07:26 +0000)]
Turns out that we're asking for the MAC address at a bad time in the
attach routine.  Go ahead and ask for it in the probe routine and be
just as wrong as all the other cards that ask for it there...

# this gets the RTL8019 on a SBC at work fully functional.  6.0 still treats
# the 8019 as a generic NE-2000, so these changes aren't relevant there.

18 years agoMake the multiple DPC threads an option, and create only one by default.
wpaul [Sat, 22 Oct 2005 05:15:20 +0000 (05:15 +0000)]
Make the multiple DPC threads an option, and create only one by default.
This avoids the need for sched_bind() in the default case so that you
can start up the NDIS subsystem at boot time when only CPU 0 is running.

There are potentially ways to fix it so that the DPC threads aren't
started until after the other CPUs are launched, but doing it correctly
is tricky. You need to defer the startup of the ntoskrnl subsystem
(ntoskrnl_libinit()), not just defer ndis_attach().

For now, I don't think it will make much difference having just the
single DPC thread (I started out with just one anyway). Note that this
turns the KeSetTargetProcessorDpc() routine into a no-op, since the
CPU number in struct kdpc is now ignored.

18 years agoIn the ISA case, we call ed_probe_WD80x3 before we call
imp [Sat, 22 Oct 2005 05:14:18 +0000 (05:14 +0000)]
In the ISA case, we call ed_probe_WD80x3 before we call
ed_probe_rtl80x9.  In the pci case we call ed_probe_rtl80x9 first.  In
the PCI case we were using the correct nic_offset by accident because
softc is initialized to zero.  In the isa case we were using the wrong
value by accident, since ed_probe_WD80x3 sets the offset value to
0x10.  This lead to the identification routines failing.  Fix this
problem by always initalizing the nic_offset and asic_offset before
making ed_{asic,nic}_{in,out}* calls.

18 years agofixed a compilation failure on amd64/sparc64/ia64
suz [Sat, 22 Oct 2005 05:07:16 +0000 (05:07 +0000)]
fixed a compilation failure on amd64/sparc64/ia64

Submitted by: max
MFC after: 2 month

18 years agoReplace FreeBSD 3.x syntax (controller miibus0) with 4.x syntax
imp [Sat, 22 Oct 2005 05:06:55 +0000 (05:06 +0000)]
Replace FreeBSD 3.x syntax (controller miibus0) with 4.x syntax
(device miibus) in time for 7.0 :-)

18 years agoThe controller -> device switch happened in 4.0, fix comment
imp [Sat, 22 Oct 2005 05:01:11 +0000 (05:01 +0000)]
The controller -> device switch happened in 4.0, fix comment

18 years agoSpecifically panic() in the case where pmap_insert_entry() fails to
ade [Fri, 21 Oct 2005 19:42:43 +0000 (19:42 +0000)]
Specifically panic() in the case where pmap_insert_entry() fails to
get a new pv under high system load where the available pv entries
have been exhausted before the pagedaemon has a chance to wake up
to reclaim some.

Prior to this, the NULL pointer dereference ended up causing
secondary panics with rather less than useful resulting tracebacks.

Reviewed by: alc, jhb
MFC after: 1 week

18 years agoWarn the user if the kernel driver dropped samples or ran out of event buffers
jkoshy [Fri, 21 Oct 2005 18:59:59 +0000 (18:59 +0000)]
Warn the user if the kernel driver dropped samples or ran out of event buffers
during a data collection run.

18 years agoHide a diagnostic message under if (verbose) to avoid cluttering the
wpaul [Fri, 21 Oct 2005 16:57:57 +0000 (16:57 +0000)]
Hide a diagnostic message under if (verbose) to avoid cluttering the
system log when not in verbose logging mode.

18 years agonuked non-existing commands
suz [Fri, 21 Oct 2005 16:31:39 +0000 (16:31 +0000)]
nuked non-existing commands

18 years agosync with KAME regarding NDP
suz [Fri, 21 Oct 2005 16:23:01 +0000 (16:23 +0000)]
sync with KAME regarding NDP

- introduced fine-grain-timer to manage ND-caches and IPv6 Multicast-Listeners
- supports Router-Preference <draft-ietf-ipv6-router-selection-07.txt>
- better prefix lifetime management
- more spec-comformant DAD advertisement
- updated RFC/internet-draft revisions

Obtained from: KAME
Reviewed by: ume, gnn
MFC after: 2 month

18 years agoperform NUD on an IPv6-aware point-to-point interface
suz [Fri, 21 Oct 2005 15:59:00 +0000 (15:59 +0000)]
perform NUD on an IPv6-aware point-to-point interface

Obtained from: KAME
MFC after: 1 week

18 years agosync with KAME (renamed a macro IPV6_DADOUTPUT to IPV6_UNSPECSRC)
suz [Fri, 21 Oct 2005 15:45:13 +0000 (15:45 +0000)]
sync with KAME (renamed a macro IPV6_DADOUTPUT to IPV6_UNSPECSRC)

Obtained from: KAME

18 years agoRemove redundant string length check from the previous commit.
jkim [Fri, 21 Oct 2005 15:17:18 +0000 (15:17 +0000)]
Remove redundant string length check from the previous commit.

18 years agoApply the same fix to a potential race in the ISDOTDOT code
dumbbell [Fri, 21 Oct 2005 09:15:26 +0000 (09:15 +0000)]
Apply the same fix to a potential race in the ISDOTDOT code
in reiserfs_lookup() that was used to fix an actual race in
ufs_lookup.c:1.78. This is not currently a hazard, but the
bug would be activated by marking reiserfs as MPSAFE.

Reviewed by: mux (mentor)
MFC after: 2 weeks

18 years agoEliminate spl* calls.
alc [Fri, 21 Oct 2005 05:48:38 +0000 (05:48 +0000)]
Eliminate spl* calls.

18 years agoCorrect the macro definition for KeRaiseIrql(). The official API
wpaul [Fri, 21 Oct 2005 05:23:20 +0000 (05:23 +0000)]
Correct the macro definition for KeRaiseIrql(). The official API
is KeRaiseIrql(newirql, &oldirql), not oldirql = KeRaiseIrql(newirql).
(The macro ultimately translates to KfRaiseIrql() which does use
the latter API, so this has no effect on generated code.)

Also, wait for thread termination the right way: kthread_exit()
will ultimately do a wakeup(td->td_proc). This is the event we
should wait on. Eliminate the previous synchronization machinery
for this since it was never guaranteed to work correctly.

18 years agoAdjust maxfilesize for UFS1 and old 4.4 FFS. For UFS1, increase the limit
njl [Fri, 21 Oct 2005 01:54:00 +0000 (01:54 +0000)]
Adjust maxfilesize for UFS1 and old 4.4 FFS.  For UFS1, increase the limit
to (max block - 1) * bsize.  For DEV_BSIZE, this doubles the limit from
0.5 TB to 1 TB.  For the old 4.4 FFS case, decrease the limit from 0.5 TB
to 2 GB - 1.  Older systems had a 32 bit off_t so they couldn't access the
larger files anyway.

Collaboration with: bde

18 years agoFix a longstanding buglet in bz-prefixed grep(1).
jkim [Thu, 20 Oct 2005 21:50:44 +0000 (21:50 +0000)]
Fix a longstanding buglet in bz-prefixed grep(1).

18 years agoChange format string for u_int64_t to %ju from %llu, in order to use the
rwatson [Thu, 20 Oct 2005 21:28:31 +0000 (21:28 +0000)]
Change format string for u_int64_t to %ju from %llu, in order to use the
correct format string on 64-bit systems.

Pointed out by: pjd

18 years agoRemove duplicate entry.
ru [Thu, 20 Oct 2005 20:51:30 +0000 (20:51 +0000)]
Remove duplicate entry.

18 years agoCleanup.
cognet [Thu, 20 Oct 2005 20:30:51 +0000 (20:30 +0000)]
Cleanup.

18 years agoMention the possibility of non-interactive scripts for EDITOR and add a
brooks [Thu, 20 Oct 2005 19:23:16 +0000 (19:23 +0000)]
Mention the possibility of non-interactive scripts for EDITOR and add a
BUGS section mentioning the requirement that such scripts run "sleep 1"
or equivalent to work reliably.

18 years agoFix small grammar nit.
wpaul [Thu, 20 Oct 2005 18:33:46 +0000 (18:33 +0000)]
Fix small grammar nit.

18 years agoUse sched_bind() to make sure the DPC threads are bound to the correct
wpaul [Thu, 20 Oct 2005 17:45:58 +0000 (17:45 +0000)]
Use sched_bind() to make sure the DPC threads are bound to the correct
processor, to insure DPC thread 0 runs on CPU0, DPC thread 1 runs on
CPU1, and so on.

Elevate the priority of the workitem threads, though don't use as
high a priority as the DPC threads.

18 years agoAdd a "show malloc" command to DDB, which prints out the current stats for
rwatson [Thu, 20 Oct 2005 17:41:47 +0000 (17:41 +0000)]
Add a "show malloc" command to DDB, which prints out the current stats for
available kernel malloc types.  Quite useful for post-mortem debugging of
memory leaks without a dump device configured on a panicked box.

MFC after: 2 weeks

18 years agoImplement the PacketGetVersion() routine, which is used in
wpaul [Thu, 20 Oct 2005 16:49:31 +0000 (16:49 +0000)]
Implement the PacketGetVersion() routine, which is used in
the 0.4.x versions of wpa_supplicant.

18 years agoAdd a "show uma" command to DDB, which prints out the current stats for
rwatson [Thu, 20 Oct 2005 16:39:33 +0000 (16:39 +0000)]
Add a "show uma" command to DDB, which prints out the current stats for
available UMA zones.  Quite useful for post-mortem debugging of memory
leaks without a dump device configured on a panicked box.

MFC after: 2 weeks

18 years agoThis commit was generated by cvs2svn to compensate for changes in r151513,
wpaul [Thu, 20 Oct 2005 16:31:54 +0000 (16:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r151513,
which included commits to RCS files with non-trunk default branches.

18 years agoImport a fixed version of driver_ndis.c from the vendor. The existing
wpaul [Thu, 20 Oct 2005 16:31:54 +0000 (16:31 +0000)]
Import a fixed version of driver_ndis.c from the vendor. The existing
version has a bug where it fails to properly cancel the polling loop
that periodically queries the BSSID (this is done to detect the
association/disassociation state). The timeout is supposed to fire
once a second, but the eloop_cancel_timeout() call uses a different
'user data' value than what was passed to eloop_register_timeout(),
so cancelling the timeouts fails. This results in an additional timeout
being created each time an EAPOL packet is received, which can lead
to dozens of unwanted timeouts firing every second instead of just one.

18 years agoAdd entry for the spin mutex used by the hptmv(4) driver.
jhb [Thu, 20 Oct 2005 14:49:59 +0000 (14:49 +0000)]
Add entry for the spin mutex used by the hptmv(4) driver.

MFC after:  1 day
Tested by: Philip Kizer pckizer at nostrum dot com

18 years agoForce an upgrade to Groff 1.19.2.
ru [Thu, 20 Oct 2005 11:22:30 +0000 (11:22 +0000)]
Force an upgrade to Groff 1.19.2.

18 years agoRemove a diagnostic message that can't occur: we lost the ability to
dds [Thu, 20 Oct 2005 11:20:55 +0000 (11:20 +0000)]
Remove a diagnostic message that can't occur: we lost the ability to
handle the old filesystem format on 2002/06/21.

18 years agoUpdate upgrade instructions.
ru [Thu, 20 Oct 2005 11:18:24 +0000 (11:18 +0000)]
Update upgrade instructions.

18 years agoUse an ihandle_t to store the instance handle of an opened device
marius [Thu, 20 Oct 2005 11:14:34 +0000 (11:14 +0000)]
Use an ihandle_t to store the instance handle of an opened device
instead of a phandle_t (package handle). Since both are typedefed
to unsigned int, this is more or less cosmetic.

18 years agoRemove some conversion leftovers.
ru [Thu, 20 Oct 2005 11:10:43 +0000 (11:10 +0000)]
Remove some conversion leftovers.

18 years agoUpgrade to Groff 1.19.2.
ru [Thu, 20 Oct 2005 10:57:53 +0000 (10:57 +0000)]
Upgrade to Groff 1.19.2.

18 years agoMerge Groff 1.19.2 changes.
ru [Thu, 20 Oct 2005 10:53:15 +0000 (10:53 +0000)]
Merge Groff 1.19.2 changes.

18 years agoUse stock (FSF) version of this file.
ru [Thu, 20 Oct 2005 10:52:34 +0000 (10:52 +0000)]
Use stock (FSF) version of this file.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r151500,
ru [Thu, 20 Oct 2005 10:47:26 +0000 (10:47 +0000)]
This commit was generated by cvs2svn to compensate for changes in r151500,
which included commits to RCS files with non-trunk default branches.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r151497,
ru [Thu, 20 Oct 2005 10:45:19 +0000 (10:45 +0000)]
This commit was generated by cvs2svn to compensate for changes in r151497,
which included commits to RCS files with non-trunk default branches.

18 years agoVirgin import of FSF groff v1.19.2
ru [Thu, 20 Oct 2005 10:45:19 +0000 (10:45 +0000)]
Virgin import of FSF groff v1.19.2

18 years agoRemove unused variables.
marius [Thu, 20 Oct 2005 10:39:09 +0000 (10:39 +0000)]
Remove unused variables.

18 years agoSome more minor cleanups of em(4) driver:
glebius [Thu, 20 Oct 2005 09:55:49 +0000 (09:55 +0000)]
Some more minor cleanups of em(4) driver:
  - Destroy mutex in case of attach failure. [1]
  - Lock properly em_watchdog(). [1]
  - Lock properly em_sysctl_int_delay(). [1]
  - Remove unused global adapter linked list.
  - Remove unused dma_size field from struct em_dma_alloc.
  - Do not touch interface statistics, that must be edited
    only by upper layers. [1]

Submitted by: yongari [1]

18 years agoRevamp interrupt handling in em(4) driver:
glebius [Thu, 20 Oct 2005 08:46:43 +0000 (08:46 +0000)]
Revamp interrupt handling in em(4) driver:

o Do not mask the RX overrun interrupt.

o Rewrite em_intr():
  - Axe EM_MAX_INTR.
  - Cycle acknowledging interrupts and processing
    packets until zero interrupt cause register is
    read.
  - If RX overrun comes in log this fact. [ NetBSD also
    resets adapter in this case, but my tests showed that
    this is not needed and only pessimizes behavior under
    heavy load. ]
  - Since almost all functions is rewritten, style the
    remaining lines.

This fixes em(4) interfaces wedging under high load.

In collaboration with: wpaul, cognet
Obtained from: NetBSD

18 years agoAdd el_get to the NAME section.
stefanf [Thu, 20 Oct 2005 08:26:03 +0000 (08:26 +0000)]
Add el_get to the NAME section.

Obtained from: OpenBSD (via NetBSD)

18 years agoFix a well duplicated fencepost error that stopped crashdumps being
peter [Thu, 20 Oct 2005 05:41:38 +0000 (05:41 +0000)]
Fix a well duplicated fencepost error that stopped crashdumps being
readable on certain random memory configurations.  If the libkvm consumer
tried to read something that was in the very last pdpe, pde or pte slot,
it would bogusly fail.

This is broken in RELENG_6 too.

18 years agoSet the signal handlers before creating the thread. This is so it inherits
njl [Thu, 20 Oct 2005 05:12:20 +0000 (05:12 +0000)]
Set the signal handlers before creating the thread.  This is so it inherits
the parent's signal mask.  Once daemon() forked, signals would be ignored
in the child thread.  While I'm here, check the return value of daemon().
This fixes termination in the daemon case (bug introduced in last commit).

Noticed by: Frederik Lindberg

18 years agowpa_supplicant(8) requires -D option for ndis(4) now.
jkim [Wed, 19 Oct 2005 22:26:47 +0000 (22:26 +0000)]
wpa_supplicant(8) requires -D option for ndis(4) now.

18 years agoMake devd WARNS=4 clean and bump WARNS accordingly. This will insure
brooks [Wed, 19 Oct 2005 21:21:22 +0000 (21:21 +0000)]
Make devd WARNS=4 clean and bump WARNS accordingly.  This will insure
that future variable shadowing bugs don't compile.

Reviewed by: imp
Compiled on: alpha i386 sparc64

18 years agoFix a bug in the kernel module runtime linker that made it impossible
jdp [Wed, 19 Oct 2005 20:40:30 +0000 (20:40 +0000)]
Fix a bug in the kernel module runtime linker that made it impossible
to unload the usb.ko module after boot if it was originally preloaded
from "/boot/loader.conf".  When processing preloaded modules, the
linker erroneously added self-dependencies the each module's reference
count.  That prevented usb.ko's reference count from ever going to 0,
so it could not be unloaded.

Sponsored by Isilon Systems.

Reviewed by: pjd, peter
MFC after: 1 week

18 years agoAs pointed out on current@, we don't want to declare a variable in a scope
imp [Wed, 19 Oct 2005 18:10:34 +0000 (18:10 +0000)]
As pointed out on current@, we don't want to declare a variable in a scope
that just uses the variable and throws it away.

This should fix the subsystem keyword wrt media-type.

MFC After: 2 days

18 years agosync with KAME (nuked unused code, use NULL to denote a NULL pointer)
suz [Wed, 19 Oct 2005 17:18:49 +0000 (17:18 +0000)]
sync with KAME (nuked unused code, use NULL to denote a NULL pointer)

Obtained from: KAME
Reviewed by: ume, gnn

18 years agosync with KAME (removed a unnecesary non-standard macro)
suz [Wed, 19 Oct 2005 16:53:24 +0000 (16:53 +0000)]
sync with KAME (removed a unnecesary non-standard macro)

Obtained from: KAME
Reviewd by: ume, gnn

18 years agosync with KAME regarding the following clarification in RFC3542:
suz [Wed, 19 Oct 2005 16:43:57 +0000 (16:43 +0000)]
sync with KAME regarding the following clarification in RFC3542:
 - disable IPv6 operation if DAD fails for some EUI-64 link-local addresses.
 - export get_hw_ifid() (and rename it) as a subroutine for this process.

Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 week

18 years agoUse the new name H_SETSIZE instead of the old H_EVENT to set the history
stefanf [Wed, 19 Oct 2005 16:37:52 +0000 (16:37 +0000)]
Use the new name H_SETSIZE instead of the old H_EVENT to set the history
size.

PR: 86355
Approved by: gad

18 years agosync with KAME (don't respond to NI_QTYPE_IPV4ADDR)
suz [Wed, 19 Oct 2005 16:27:33 +0000 (16:27 +0000)]
sync with KAME (don't respond to NI_QTYPE_IPV4ADDR)

Obtained from: KAME
Reviewed by: ume, gnn

18 years agosupported an ndp command suboption to disable IPv6 in the given interface
suz [Wed, 19 Oct 2005 16:20:18 +0000 (16:20 +0000)]
supported an ndp command suboption to disable IPv6 in the given interface

Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 week

18 years agosync with KAME in the following point:
suz [Wed, 19 Oct 2005 15:58:23 +0000 (15:58 +0000)]
sync with KAME in the following point:
- fixed a bug that "ndp ... proxy" command does not work

Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 weeks

18 years agosync with KAME in the following points:
suz [Wed, 19 Oct 2005 15:52:00 +0000 (15:52 +0000)]
sync with KAME in the following points:
- removed compilation warnings
- suppress a redundant error message when a default-router-list is empty

Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 weeks

18 years agoUse the new name H_SETSIZE instead of the old H_EVENT to set the history
stefanf [Wed, 19 Oct 2005 15:37:43 +0000 (15:37 +0000)]
Use the new name H_SETSIZE instead of the old H_EVENT to set the history
size.

PR: 86355

18 years agochanged syslog level to more appropriate ones
suz [Wed, 19 Oct 2005 15:19:06 +0000 (15:19 +0000)]
changed syslog level to more appropriate ones

Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 weeks