]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoInclude <err.h> where needed. Add $FreeBSD$ where missing.
stefanf [Fri, 5 Aug 2005 09:07:42 +0000 (09:07 +0000)]
Include <err.h> where needed.  Add $FreeBSD$ where missing.

18 years agoRecognize D-Link DGE-528(T) Gigabit as an re(4) device.
tobez [Fri, 5 Aug 2005 08:19:12 +0000 (08:19 +0000)]
Recognize D-Link DGE-528(T) Gigabit as an re(4) device.

Submitted by: Andrus Nomm <andrus@members.ee>
PR: 76780
MFC After: 1 week

18 years agoPrefer {u,}intmax_t over the deprecated {u_,}quad_t.
stefanf [Fri, 5 Aug 2005 08:18:00 +0000 (08:18 +0000)]
Prefer {u,}intmax_t over the deprecated {u_,}quad_t.

18 years agoDon't throw away the adjusted `runtimer' value.
stefanf [Fri, 5 Aug 2005 08:07:02 +0000 (08:07 +0000)]
Don't throw away the adjusted `runtimer' value.

18 years agoGarbage collect useless variables.
stefanf [Fri, 5 Aug 2005 07:39:39 +0000 (07:39 +0000)]
Garbage collect useless variables.

18 years agoUse the C99 syntax for designated initialisers.
stefanf [Fri, 5 Aug 2005 07:33:50 +0000 (07:33 +0000)]
Use the C99 syntax for designated initialisers.

18 years agoUse char * when doing pointer arithmetics.
stefanf [Fri, 5 Aug 2005 07:28:26 +0000 (07:28 +0000)]
Use char * when doing pointer arithmetics.

18 years agoDeclare iftraceinit() at file scope.
stefanf [Fri, 5 Aug 2005 07:17:23 +0000 (07:17 +0000)]
Declare iftraceinit() at file scope.

18 years agorc.conf(5) update - gbde_swap_enable variable has been removed.
pjd [Fri, 5 Aug 2005 07:09:53 +0000 (07:09 +0000)]
rc.conf(5) update - gbde_swap_enable variable has been removed.

Reminded by: dougb

18 years agoWhen the MAC address is reported all zeros, then error is necessarily
imp [Fri, 5 Aug 2005 04:56:14 +0000 (04:56 +0000)]
When the MAC address is reported all zeros, then error is necessarily
0.  This means that we 'succeed' the attach, even after we've freed
the internal data bits.  This leads to a panic when you eject the card
with this problem.

Set error = ENXIO in the mac read zeros case.

18 years agoCall usage() instead of being insolent.
jmallett [Fri, 5 Aug 2005 01:04:36 +0000 (01:04 +0000)]
Call usage() instead of being insolent.

18 years agoDon't lock when holding led_mtx, instead use AcpiOsQueueForExecution to defer
markus [Thu, 4 Aug 2005 22:48:36 +0000 (22:48 +0000)]
Don't lock when holding led_mtx, instead use AcpiOsQueueForExecution to defer
the locking.

Idea taken from: acpi_asus(4)

Approved by: philip
Reported by: avatar
Gordon Bergling <gbergling@0xfce3.net>
MFC after: 1 week

18 years agoRemove Xref to non-existant usb(3) manpage.
brueffer [Thu, 4 Aug 2005 21:26:38 +0000 (21:26 +0000)]
Remove Xref to non-existant usb(3) manpage.

Obtained from: DragonFly BSD (swildner)
MFC after: 3 days

18 years agoFixed typo.
ru [Thu, 4 Aug 2005 21:23:50 +0000 (21:23 +0000)]
Fixed typo.

18 years agoDont limit all transfers to DEV_BSIZE (stale dbug code)
sos [Thu, 4 Aug 2005 18:39:36 +0000 (18:39 +0000)]
Dont limit all transfers to DEV_BSIZE (stale dbug code)
Hide the loaded/unloaded message behind bootverbose

18 years agodon't do mutex locking around kthread_create() call.
ume [Thu, 4 Aug 2005 18:34:26 +0000 (18:34 +0000)]
don't do mutex locking around kthread_create() call.

Reported by: Maxim Maximov <mcsi__at__mcsi.pp.ru>

18 years agoInitialize the if_addr mutex in if_alloc() rather than waiting until
jhb [Thu, 4 Aug 2005 14:39:47 +0000 (14:39 +0000)]
Initialize the if_addr mutex in if_alloc() rather than waiting until
if_attach().  This allows ethernet drivers to use it in their routines
to program their MAC filters before ether_ifattach() is called (de(4) is
one such driver).  Also, the if_addr mutex is destroyed in if_free()
rather than if_detach(), so there was another potential bug in that a
driver that failed during attach and called if_free() without having
called ether_ifattach() would have tried to destroy an uninitialized mutex.

Reported by: Holm Tiffe holm at freibergnet dot de
Discussed with: rwatson

18 years agoThe check for invalid characters introduced in 1.9 incorrectly
roberto [Thu, 4 Aug 2005 12:44:36 +0000 (12:44 +0000)]
The check for invalid characters introduced in 1.9 incorrectly
flags NIS entries as invalid.

MFC6 candidate

Submitted by: Bob Willcox <bob@immure.com>
PR: bin/82325 (but I used the patch from Bob).

18 years agoMake kernel build suceed when with "options CPU_DISABLE_SSE".
tobez [Thu, 4 Aug 2005 12:39:43 +0000 (12:39 +0000)]
Make kernel build suceed when with "options CPU_DISABLE_SSE".

PR: 84010
Submitted by: Sergey Gluschenko <deen@freebsd.org.ua>
MFC after: 1 week

18 years agoDefine LIBMEMSTAT so that vm_page.h won't perform a nested include of
rwatson [Thu, 4 Aug 2005 10:06:39 +0000 (10:06 +0000)]
Define LIBMEMSTAT so that vm_page.h won't perform a nested include of
opt_vmpage.h.

Remove definition of _KERNEL, it is no longer required in order to
include uma_int.h, as the sensitive parts of uma_int.h (a number of
inlines depending on kernel-only constants) are now protected by
_KERNEL.

18 years agoBug fix: a numeric flag specification in the substitute command would
dds [Thu, 4 Aug 2005 10:05:12 +0000 (10:05 +0000)]
Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by: Jingsong Liu
MFC after: 1 week

18 years agoDon't perform a nested include of opt_vmpage.h if LIBMEMSTAT is defined,
rwatson [Thu, 4 Aug 2005 10:05:11 +0000 (10:05 +0000)]
Don't perform a nested include of opt_vmpage.h if LIBMEMSTAT is defined,
as opt_vmpage.h will not be available to user space library builds.  A
similar existing check is present for KLD_MODULE for similar reasons.

MFC after: 3 days

18 years agoWrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
rwatson [Thu, 4 Aug 2005 10:03:53 +0000 (10:03 +0000)]
Wrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
used from memstat_uma.c for the purposes of kvm access without lots
of additional unsafe includes.

MFC after: 3 days

18 years agoRemove gbde_swap_enable option which doesn't work and doesn't really have to
pjd [Thu, 4 Aug 2005 08:19:13 +0000 (08:19 +0000)]
Remove gbde_swap_enable option which doesn't work and doesn't really have to
work, as one still needs to put <device>.bde into /etc/fstab.

18 years agoCorrectly print system-wide PMC counts for short-lived command lines.
jkoshy [Thu, 4 Aug 2005 03:12:55 +0000 (03:12 +0000)]
Correctly print system-wide PMC counts for short-lived command lines.

Reported by: cracauer
MFC after: 3 days

18 years agoFix two bugs that interacted to cause page faults in softclock()
iedowse [Thu, 4 Aug 2005 02:21:37 +0000 (02:21 +0000)]
Fix two bugs that interacted to cause page faults in softclock()
when using mice containing a tilt movement: there was a missing
usb_callout_init() for the UMS_SPUR_BUT_UP quirk code, and UMS_T
was defined to the same flag value as UMS_SPUR_BUT_UP.

Reported by: flz
MFC after: 3 days

18 years agoFix commen typos.
stefanf [Wed, 3 Aug 2005 20:57:33 +0000 (20:57 +0000)]
Fix commen typos.

18 years ago- Remove duplicate setting from LIB32MAKE definition.
ru [Wed, 3 Aug 2005 20:27:06 +0000 (20:27 +0000)]
- Remove duplicate setting from LIB32MAKE definition.
- Install lib32 bits using the real install(1) program.

18 years agoAdd missing "not" in rev. 1.34.
ru [Wed, 3 Aug 2005 20:11:39 +0000 (20:11 +0000)]
Add missing "not" in rev. 1.34.

Submitted by: Jeremie Le Hen

18 years agoMake delete-old* and friends useable for cross-builds.
ru [Wed, 3 Aug 2005 20:09:59 +0000 (20:09 +0000)]
Make delete-old* and friends useable for cross-builds.

18 years agoIntroduce in_multi_mtx, which will protect IPv4-layer multicast address
rwatson [Wed, 3 Aug 2005 19:29:47 +0000 (19:29 +0000)]
Introduce in_multi_mtx, which will protect IPv4-layer multicast address
lists, as well as accessor macros.  For now, this is a recursive mutex
due code sequences where IPv4 multicast calls into IGMP calls into
ip_output(), which then tests for a multicast forwarding case.

For support macros in in_var.h to check multicast address lists, assert
that in_multi_mtx is held.

Acquire in_multi_mtx around iteration over the IPv4 multicast address
lists, such as in ip_input() and ip_output().

Acquire in_multi_mtx when manipulating the IPv4 layer multicast addresses,
as well as over the manipulation of ifnet multicast address lists in order
to keep the two layers in sync.

Lock down accesses to IPv4 multicast addresses in IGMP, or assert the
lock when performing IGMP join/leave events.

Eliminate spl's associated with IPv4 multicast addresses, portions of
IGMP that weren't previously expunged by IGMP locking.

Add in_multi_mtx, igmp_mtx, and if_addr_mtx lock order to hard-coded
lock order in WITNESS, in that order.

Problem reported by: Ed Maste <emaste at phaedrus dot sandvine dot ca>
MFC after: 10 days

18 years agoAdd a few more system call timing cases:
rwatson [Wed, 3 Aug 2005 17:33:46 +0000 (17:33 +0000)]
Add a few more system call timing cases:

Rename current socket creation test to socket_stream.
Add new socket_dgram test.
Add new socketpair_stream test.
Add new socketpair_dgram test.

18 years agoMinor style nits.
imp [Wed, 3 Aug 2005 15:07:14 +0000 (15:07 +0000)]
Minor style nits.

18 years agoCorrect attribution in clause three to address the correct copyright
gibbs [Wed, 3 Aug 2005 14:08:41 +0000 (14:08 +0000)]
Correct attribution in clause three to address the correct copyright
holders.  The license that was approved for my changes to this driver
originally came from LSI, but the changes to the driver core are not
owned by LSI.

MFC: 1 day

18 years agoAdd NO_PCVT
phk [Wed, 3 Aug 2005 09:27:26 +0000 (09:27 +0000)]
Add NO_PCVT

18 years agoAdd NO_CALENDAR
phk [Wed, 3 Aug 2005 09:27:01 +0000 (09:27 +0000)]
Add NO_CALENDAR

18 years agoDon't install includes if NO_TOOLCHAIN
phk [Wed, 3 Aug 2005 09:26:01 +0000 (09:26 +0000)]
Don't install includes if NO_TOOLCHAIN

18 years agoAdd NO_SYSCONS.
phk [Wed, 3 Aug 2005 09:24:39 +0000 (09:24 +0000)]
Add NO_SYSCONS.
Respect NO_MAN and NO_EXAMPLES
Make NO_GROFF prevet me installation.

18 years agoDon't install groff if NO_GROFF
phk [Wed, 3 Aug 2005 09:22:42 +0000 (09:22 +0000)]
Don't install groff if NO_GROFF

18 years agoDon't install examples of NO_EXAMPLES
phk [Wed, 3 Aug 2005 09:22:03 +0000 (09:22 +0000)]
Don't install examples of NO_EXAMPLES

18 years agoDon't install includes if NO_TOOLCHAIN
phk [Wed, 3 Aug 2005 09:18:59 +0000 (09:18 +0000)]
Don't install includes if NO_TOOLCHAIN

18 years ago - Unlock before we call mac_destroy_vnode to prevent a lock order reversal.
jeff [Wed, 3 Aug 2005 05:36:50 +0000 (05:36 +0000)]
 - Unlock before we call mac_destroy_vnode to prevent a lock order reversal.

Found by: trhodes

18 years ago - Use lockmgr_printinfo rather than rolling our own. This introduces a
jeff [Wed, 3 Aug 2005 05:02:08 +0000 (05:02 +0000)]
 - Use lockmgr_printinfo rather than rolling our own.  This introduces a
   slight problem by using printf instead of db_printf however
   'show lockedvnods' does the same so I believe it is ok for now.

18 years ago - Fix a problem that slipped through review; the stack member of the lockmgr
jeff [Wed, 3 Aug 2005 04:59:07 +0000 (04:59 +0000)]
 - Fix a problem that slipped through review; the stack member of the lockmgr
   structure should have the lk_ prefix.
 - Add stack_print(lkp->lk_stack) to the information printed with
   lockmgr_printinfo().

18 years ago - Replace the series of DEBUG_LOCKS hacks which tried to save the vn_lock
jeff [Wed, 3 Aug 2005 04:48:22 +0000 (04:48 +0000)]
 - Replace the series of DEBUG_LOCKS hacks which tried to save the vn_lock
   caller by saving the stack of the last locker/unlocker in lockmgr.  We
   also put the stack in KTR at the moment.

Contributed by: Antoine Brodin <antoine.brodin@laposte.net>

18 years ago- Add support for saving stack traces and displaying them via printf(9)
jeff [Wed, 3 Aug 2005 04:33:48 +0000 (04:33 +0000)]
- Add support for saving stack traces and displaying them via printf(9)
  and KTR.

Contributed by: Antoine Brodin <antoine.brodin@laposte.net>
Concept code from: Neal Fachan <neal@isilon.com>

18 years ago - Add support for saving stack traces and displaying them via printf(9)
jeff [Wed, 3 Aug 2005 04:27:40 +0000 (04:27 +0000)]
 - Add support for saving stack traces and displaying them via printf(9)
   and KTR.

Contributed by: Antoine Brodin <antoine.brodin@laposte.net>
Concept code from: Neal Fachan <neal@isilon.com>

18 years agosimplify use with non-ath devices; search the wlan sysctl nodes to
sam [Wed, 3 Aug 2005 04:25:04 +0000 (04:25 +0000)]
simplify use with non-ath devices; search the wlan sysctl nodes to
locate the right one for the specified interface

MFC after: 3 days

18 years ago - Improve the definition of INKERNEL() to include the DMAP area and the
jeff [Wed, 3 Aug 2005 04:21:51 +0000 (04:21 +0000)]
 - Improve the definition of INKERNEL() to include the DMAP area and the
   proper start of the kernel area.

Discussed with: peter

18 years agoDocument 'kernel-toolchain'.
obrien [Wed, 3 Aug 2005 03:26:57 +0000 (03:26 +0000)]
Document 'kernel-toolchain'.

Submitted by: Jeremie Le Hen <jeremie@le-hen.org>

18 years agoAdd usleep to the map files.
deischen [Wed, 3 Aug 2005 01:54:52 +0000 (01:54 +0000)]
Add usleep to the map files.

Noticed by: davidxu

18 years agoIn adjustrunqueue(), add code to handle thread migrating case for
davidxu [Wed, 3 Aug 2005 01:23:45 +0000 (01:23 +0000)]
In adjustrunqueue(), add code to handle thread migrating case for
ULE scheduler. In original code, local run queue of threaded ksegrp
is corrupted if adjustrunqueue() is called while thread is migrating.

18 years agoAdd a cancellation point for usleep().
deischen [Wed, 3 Aug 2005 00:48:13 +0000 (00:48 +0000)]
Add a cancellation point for usleep().

18 years agoBack out change accidentally committed as Makefile:1.21 -- a local
rwatson [Wed, 3 Aug 2005 00:47:33 +0000 (00:47 +0000)]
Back out change accidentally committed as Makefile:1.21 -- a local
tweak to let the 6.x/7.x kernel series build on a 5.x userland.

Pointed out by: njl

18 years agoAdd a cancellation point for usleep().
deischen [Wed, 3 Aug 2005 00:47:31 +0000 (00:47 +0000)]
Add a cancellation point for usleep().

While here, fix sleep() so that it is also a cancellation point (a
missing weak reference prevented that).

18 years agoMake syslog() use the internal (non-cancellation point) _usleep().
deischen [Wed, 3 Aug 2005 00:45:58 +0000 (00:45 +0000)]
Make syslog() use the internal (non-cancellation point) _usleep().
Prior to this it was calling the cancellable usleep() while holding
a lock.

18 years agoMake usleep() overridable by the thread libraries so they can provide
deischen [Wed, 3 Aug 2005 00:44:25 +0000 (00:44 +0000)]
Make usleep() overridable by the thread libraries so they can provide
cancellation points.

Noticed by: phk

18 years agoAdd namespace #defines for usleep.
deischen [Wed, 3 Aug 2005 00:43:14 +0000 (00:43 +0000)]
Add namespace #defines for usleep.

18 years agoModify device drivers supporting multicast addresses to lock if_addr_mtx
rwatson [Wed, 3 Aug 2005 00:18:35 +0000 (00:18 +0000)]
Modify device drivers supporting multicast addresses to lock if_addr_mtx
over iteration of their multicast address lists when synchronizing the
hardware address filter with the network stack-maintained list.

Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca>
MFC after: 1 week

18 years agoModify network protocol consumers of the ifnet multicast address lists
rwatson [Tue, 2 Aug 2005 23:51:22 +0000 (23:51 +0000)]
Modify network protocol consumers of the ifnet multicast address lists
to lock if_addr_mtx.

Problem reported by: Ed Maste <emaste at phaedrus dot sandvine dot ca>
MFC after: 1 week

18 years agoProtect link layer network interface multicast address list manipulation
rwatson [Tue, 2 Aug 2005 23:23:26 +0000 (23:23 +0000)]
Protect link layer network interface multicast address list manipulation
using ifp->if_addr_mtx:

- Initialize if_addr_mtx when ifnet is initialized.

- Destroy if_addr_mtx when ifnet is torn down.

- Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx.
  Staticize.

- Extract ifmultiaddr allocation and initialization into if_allocmulti();
  accept a 'mflags' argument to indicate whether or not sleeping is
  permitted.  This centralizes error handling and address duplication.

- Extract ifmultiaddr tear-down and deallocation in if_freemulti().

- Re-structure if_addmulti() to hold if_addr_mtx around manipulation of
  the ifnet multicast address list and reference count manipulation.
  Make use of non-sleeping allocations.  Annotate the fact that we only
  generate routing socket events for explicit address addition, not
  implicit link layer address addition.

- Re-structure if_delmulti() to hold if_addr_mtx around manipulation of
  the ifnet multicast address list and reference count manipulation.
  Annotate the lack of a routing socket event for implicit link layer
  address removal.

- De-spl all and sundry.

Problem reported by: Ed Maste <emaste at phaedrus dot sandvine dot ca>
MFC after: 1 week

18 years agoCross-reference pw(8) into chpass(1), passwd(1), and vipw(8).
seanc [Tue, 2 Aug 2005 21:38:03 +0000 (21:38 +0000)]
Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).

18 years agoInclude a SYSUNINIT() to destroy the mutex in MTX_SYSINIT. This makes
jhb [Tue, 2 Aug 2005 20:50:45 +0000 (20:50 +0000)]
Include a SYSUNINIT() to destroy the mutex in MTX_SYSINIT.  This makes
MTX_SYSINIT mutexes play well with modules that can be unloaded.

Reported by: sam
MFC after: 3 days

18 years agoAdd missing check for the NO_CRYPT build option.
ru [Tue, 2 Aug 2005 20:12:30 +0000 (20:12 +0000)]
Add missing check for the NO_CRYPT build option.

Reported by: Alexander Polakov

18 years agopolish various bits.
phk [Tue, 2 Aug 2005 20:09:45 +0000 (20:09 +0000)]
polish various bits.

18 years agoIgnore CVS directories
phk [Tue, 2 Aug 2005 20:09:24 +0000 (20:09 +0000)]
Ignore CVS directories

18 years agoFix up the comment.
ru [Tue, 2 Aug 2005 20:06:48 +0000 (20:06 +0000)]
Fix up the comment.

18 years agoFixed parsing of unsigned integers.
ru [Tue, 2 Aug 2005 20:05:37 +0000 (20:05 +0000)]
Fixed parsing of unsigned integers.

18 years agoLong overdue, keep up with mbuf.h,v 1.148.
ru [Tue, 2 Aug 2005 20:03:23 +0000 (20:03 +0000)]
Long overdue, keep up with mbuf.h,v 1.148.

18 years agoWireless suport fixups: add a bunch of stuff that's been in the
sam [Tue, 2 Aug 2005 19:13:13 +0000 (19:13 +0000)]
Wireless suport fixups: add a bunch of stuff that's been in the
code but not documented (e.g. wme, mac acl) and correct some
information, etc.

Reviewed by: brueffer

18 years agoeliminate the regex used to match ethernet and 802.11 devices;
sam [Tue, 2 Aug 2005 18:28:31 +0000 (18:28 +0000)]
eliminate the regex used to match ethernet and 802.11 devices;
instead use the interface's media-type

Reviewed by: imp
MFC after: 1 week

18 years agoWhen allocating link layer ifnet address list entries in
rwatson [Tue, 2 Aug 2005 17:52:52 +0000 (17:52 +0000)]
When allocating link layer ifnet address list entries in
ifp->if_resolvemulti(), do so with M_NOWAIT rather than M_WAITOK, so
that a mutex can be held over the call.  In the FDDI code, add a
missing M_ZERO.  Consumers are already aware that if_resolvemulti()
can fail.

MFC after: 1 week

18 years agoAdd if_addr_mtx to struct ifnet, a mutex to protect ifnet-related address
rwatson [Tue, 2 Aug 2005 17:43:35 +0000 (17:43 +0000)]
Add if_addr_mtx to struct ifnet, a mutex to protect ifnet-related address
lists.  Add accessor macros.

This changes the size of struct ifnet, but ideally, all ifnet consumers
are now using if_alloc() to allocate these structures rather than
embedding them into device driver softc's, so this won't modify the
network device driver ABI.

MFC after: 1 week

18 years agoDo not lock an to check gone flag. Only need to hold the lock to set
emax [Tue, 2 Aug 2005 16:03:51 +0000 (16:03 +0000)]
Do not lock an to check gone flag. Only need to hold the lock to set
the gone flag.

Reviewed by: imp
MFC after: 1 day

18 years agoMention that the softc is zeroed after allocation.
brueffer [Tue, 2 Aug 2005 13:54:52 +0000 (13:54 +0000)]
Mention that the softc is zeroed after allocation.

Noticed by: sam
MFC after: 3 days

18 years ago- add missing ether_poll_deregister
brueffer [Tue, 2 Aug 2005 09:27:42 +0000 (09:27 +0000)]
- add missing ether_poll_deregister
- add per-device polling
- move the setting of if_capenable further down so that the
  VLAN caps are honored as well

Approved by: ru
MFC after: 2 weeks

18 years agoAdd missing ether_poll_deregister(). This is still not enough to
ru [Tue, 2 Aug 2005 08:44:45 +0000 (08:44 +0000)]
Add missing ether_poll_deregister().  This is still not enough to
kldunload/kldload without a panic.  The same (but worse) problem
is also present in ixgb(4).

18 years agoGenerate default fake "device" and "inode" numbers for entries
kientzle [Tue, 2 Aug 2005 03:17:57 +0000 (03:17 +0000)]
Generate default fake "device" and "inode" numbers for entries
extracted from tar archives.  Otherwise, converting tar archives to
cpio format (with "bsdtar -cf out.cpio @in.tar") convert every entry
into a hard link to a single file.  This simple logic breaks hard
links, but that's better than the alternative.

MFC after: 7 days

18 years agoWhen copying time values from the main entry header to be used in the
kientzle [Tue, 2 Aug 2005 03:13:42 +0000 (03:13 +0000)]
When copying time values from the main entry header to be used in the
header of the pax extension entry, clip them to ustar limits.  In particular,
this prevents an internal panic for very old files.

Thanks to: Chris Spiegel
MFC after: 7 days

18 years agoCorrect a few minor mis-statements (libarchive does support reading
kientzle [Tue, 2 Aug 2005 03:10:52 +0000 (03:10 +0000)]
Correct a few minor mis-statements (libarchive does support reading
GNU tar sparse files, people have extended cpio) and clarify an
important detail about pax format (that ustar-compliant archivers
can mostly read pax archives correctly).

MFC after: 7 days

18 years agoThe bsdtar_warnc() reporting function requires the program name to be
kientzle [Tue, 2 Aug 2005 03:02:55 +0000 (03:02 +0000)]
The bsdtar_warnc() reporting function requires the program name to be
set up before it is called, so move the progname initialization before
the first possible call to bsdtar_warnc().

Thanks to: Stanislav Sedov
PR: bin/83366
MFC after: 7 days

18 years ago - Document network_interfaces=auto (the default!).
brooks [Tue, 2 Aug 2005 02:24:47 +0000 (02:24 +0000)]
 - Document network_interfaces=auto (the default!).
 - Remove documentation of pccard_ifconfig as it is now gone.
 - Document pccard_ifconfig's replacement ifconfig_DEFAULT.

18 years agoTeach vmstat's domemstat_zone() to use memstat_kvm_uma() when the kvm
rwatson [Mon, 1 Aug 2005 21:33:17 +0000 (21:33 +0000)]
Teach vmstat's domemstat_zone() to use memstat_kvm_uma() when the kvm
descriptor is non-NULL, restoring vmstat -z support for core dumps and
kmem access.  These were broken with the introduction of UMA.

18 years agoMake getsockopt(..., SOL_SOCKET, SO_ACCEPTCONN, ...) work per IEEE Std
kbyanc [Mon, 1 Aug 2005 21:15:09 +0000 (21:15 +0000)]
Make getsockopt(..., SOL_SOCKET, SO_ACCEPTCONN, ...) work per IEEE Std
1003.1 (POSIX).

18 years agoAdd memstat_kvm_uma(), an implementation of a libmemstat(3) query routine
rwatson [Mon, 1 Aug 2005 19:07:39 +0000 (19:07 +0000)]
Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine
that knows how to extract UMA(9) allocator statistics from a core dump or
live memory image using kvm(3).  The caller is expected to provide the
necessary kvm_t handle, which is then used by libmemstat(3).

With these changes, it is trivially straight forward to re-introduce
vmstat -z support on core dumps, which was lost when UMA was introduced.

In the short term, this requires including vm/ include files that are not
intended for extra-kernel use, requiring in turn some ugliness.

18 years agoFix a buffer aging problem in new r300 code that could lead to hangs with some
anholt [Mon, 1 Aug 2005 17:50:19 +0000 (17:50 +0000)]
Fix a buffer aging problem in new r300 code that could lead to hangs with some
apps.

Obtained from: DRM CVS

18 years agoPropagate error code of kern_execve() to the caller properly.
sobomax [Mon, 1 Aug 2005 17:35:48 +0000 (17:35 +0000)]
Propagate error code of kern_execve() to the caller properly.

PR: 81670
Submitted by: Andrew Bliznak <andriko.b@gmail.com>
Pointy hat to: sobomax

18 years agoacm and ack are specified per-ac
sam [Mon, 1 Aug 2005 16:34:41 +0000 (16:34 +0000)]
acm and ack are specified per-ac

MFC after: 3 days

18 years agoFixing compilation error by:
avatar [Mon, 1 Aug 2005 13:51:52 +0000 (13:51 +0000)]
Fixing compilation error by:

- Conforming to the latest ether_ifattach() change;
- Moving PCCARD_API_LEVEL to the right place.

Reported and Tested by: Vladimir Grebenschikov <vova at fbsd dot ru>
MFC after: 3 days

18 years agoCorrect two libmemstat(3) bugs:
rwatson [Mon, 1 Aug 2005 13:18:21 +0000 (13:18 +0000)]
Correct two libmemstat(3) bugs:

- Move memory_type_list flushing logic from memstat_mtl_free() to
  _memstat_mtl_empty(), a libmemstat-internal function that can
  be called from other parts of the library.  Invoke
  _memstat_mtl_empty() from memstat_mtl_free(), which also frees
  the containing list structure.

  Invoke _memstat_mtl_empty() instead of memstat_mtl_free() in
  various error cases in memstat_malloc.c and memstat_uma.c, which
  previously resulted in the list being freed prematurely.

- Reverse the order of updating the mt_kegfree and mt_free fields
  of the memory_type in memstat_uma.c, otherwise keg free items
  won't be counted properly for non-secondary zones.

MFC after: 3 days

18 years agoThe Berkeley pascal implementation for the VAX 11/780 has only
phk [Mon, 1 Aug 2005 12:14:53 +0000 (12:14 +0000)]
The Berkeley pascal implementation for the VAX 11/780 has only
historical relevance these days, stow it in the attic instead of
on millions of FreeBSD computers.

18 years agoRemove the \*(DY at the end of the document, it makes the installed
phk [Mon, 1 Aug 2005 12:10:14 +0000 (12:10 +0000)]
Remove the \*(DY at the end of the document, it makes the installed
file differ for each install.

18 years agorecover the line which was wrongly disappeared during scope cleanup.
ume [Mon, 1 Aug 2005 12:08:49 +0000 (12:08 +0000)]
recover the line which was wrongly disappeared during scope cleanup.
tcpdrop(8) should work for IPv6, again.

18 years agotypo
phk [Mon, 1 Aug 2005 08:24:03 +0000 (08:24 +0000)]
typo

18 years agoAdd support for IPv6 over GRE [1]. PR kern/80340 includes the
bz [Mon, 1 Aug 2005 08:14:21 +0000 (08:14 +0000)]
Add support for IPv6 over GRE [1]. PR kern/80340 includes the
  FreeBSD specific ip_newid() changes NetBSD does not have.
Correct handling of non AF_INET packets passed to bpf [2].

PR: kern/80340[1], NetBSD PRs 29150[1], 30844[2]
Obtained from: NetBSD ip_gre.c rev. 1.34,1.35, if_gre.c rev. 1.56
Submitted by: Gert Doering <gert at greenie.muc.de>[2]
MFC after: 4 days

18 years agoMake the eisa probe messages just like all the others in the system.
imp [Mon, 1 Aug 2005 07:09:15 +0000 (07:09 +0000)]
Make the eisa probe messages just like all the others in the system.
Make the eisa no match printf closer to pci.

18 years agoAdd pnp and location info for the ISA bus. The pnp info is the
imp [Mon, 1 Aug 2005 07:03:10 +0000 (07:03 +0000)]
Add pnp and location info for the ISA bus.  The pnp info is the
primary vendor id for this device.  The location is empty because ISA
doesn't give one a way to generally locate a card.  PNP BIOS entries
do provide a way to locate cards, as do isa pnp cards.  These
locations will be added as soon as the code to remember them is
written.

18 years agoAT_MAKE_TAGID needs an instance as the 2nd arg- not just a 0.
mjacob [Sun, 31 Jul 2005 23:21:19 +0000 (23:21 +0000)]
AT_MAKE_TAGID needs an instance as the 2nd arg- not just a 0.

18 years agoDelay freeing disk space for file system blocks until all dirty buffers
ups [Sun, 31 Jul 2005 20:24:14 +0000 (20:24 +0000)]
Delay freeing disk space for file system blocks until all dirty buffers
are safely released. This fixes softdep problems on truncation (deletion)
of files with dirty buffers.

Reviewed by: jeff@, mckusick@, ps@, tegge@
Tested by:  glebius@, ps@
MFC after: 3 weeks

18 years agoStyle fix.
netchild [Sun, 31 Jul 2005 18:59:47 +0000 (18:59 +0000)]
Style fix.

Noticed by: njl