]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoMention the fire screensaver.
brueffer [Sun, 15 Jan 2006 18:30:40 +0000 (18:30 +0000)]
Mention the fire screensaver.

Submitted by: rionda

18 years agoStaticize ipqlock, since it is local to ip_input.c.
rwatson [Sun, 15 Jan 2006 17:05:48 +0000 (17:05 +0000)]
Staticize ipqlock, since it is local to ip_input.c.

MFC after: 3 days

18 years agoDon't leak mbufs and mbuf clusters in several error-handling situations
rwatson [Sun, 15 Jan 2006 12:09:03 +0000 (12:09 +0000)]
Don't leak mbufs and mbuf clusters in several error-handling situations
in the if_an receive routine.

Found with: Coverity Prevent (tm)
MFC after: 1 week

18 years agoIf frame length is excessive, don't leak an mbuf and cluster when
rwatson [Sun, 15 Jan 2006 12:06:09 +0000 (12:06 +0000)]
If frame length is excessive, don't leak an mbuf and cluster when
abandoning processing.

Found with: Coverity Prevent (tm)
MFC after: 1 week

18 years agoI don't believe these are used at all, and can be safely removed
imp [Sun, 15 Jan 2006 06:49:28 +0000 (06:49 +0000)]
I don't believe these are used at all, and can be safely removed

18 years agoAdd support for the Compaq LTE docking station. It includes a plug
imp [Sun, 15 Jan 2006 04:10:47 +0000 (04:10 +0000)]
Add support for the Compaq LTE docking station.  It includes a plug
and play device with the ID of PNP8160.  Sotr them while I'm here.

Submitted by: Sean Shapira    sds at jazzie dotty com
MFC After: 1 week

18 years agoRename uid and gid arguments to vaccess() prototype to match vaccess()
rwatson [Sun, 15 Jan 2006 02:01:51 +0000 (02:01 +0000)]
Rename uid and gid arguments to vaccess() prototype to match vaccess()
implementation in vfs_subr.c.  No functional change.

MFC after: 3 days

18 years agoInitialize ki to p->p_aioinfo after we know it's going to be referencing
csjp [Sun, 15 Jan 2006 01:55:45 +0000 (01:55 +0000)]
Initialize ki to p->p_aioinfo after we know it's going to be referencing
a valid kaioinfo structure. This avoids a potential NULL pointer dereference.

Found with: Coverity Prevent(tm)
MFC after: 2 weeks

18 years agoRemove unused code.
bz [Sun, 15 Jan 2006 01:39:01 +0000 (01:39 +0000)]
Remove unused code.

Found with: Coverity Prevent(tm)

18 years agoFix potential overrun of static stack allocated array which stores
csjp [Sun, 15 Jan 2006 01:02:20 +0000 (01:02 +0000)]
Fix potential overrun of static stack allocated array which stores
the rules. If an array is N elements large, we can only access
elements 0..(N-1).

MFC after: 1 week
Found with: Coverity Prevent(tm)

18 years agoI missed a whitespace in the generated commit message.
flz [Sun, 15 Jan 2006 01:01:46 +0000 (01:01 +0000)]
I missed a whitespace in the generated commit message.

Approved by: ssouhlal (implicit)

18 years agoAdd another inverted EAPD quirk for Gateway 7326GZ.
ariff [Sat, 14 Jan 2006 23:37:08 +0000 (23:37 +0000)]
Add another inverted EAPD quirk for Gateway 7326GZ.

Tested by: Jeff Cross <jeff.cross at averageadmins.com>
MFC after: 3 days

18 years agoMove m_adj after checking that m_dup succeeded.
mlaier [Sat, 14 Jan 2006 22:19:17 +0000 (22:19 +0000)]
Move m_adj after checking that m_dup succeeded.

Found with: Coverity Prevent(tm)
MFC after: 3 days

18 years agoInitialize variable.
glebius [Sat, 14 Jan 2006 21:49:31 +0000 (21:49 +0000)]
Initialize variable.

Found with: Coverity Prevent(tm)

18 years agoMake code simplier fixing memory leak.
glebius [Sat, 14 Jan 2006 21:28:30 +0000 (21:28 +0000)]
Make code simplier fixing memory leak.

Found with: Coverity Prevent(tm)

18 years agoDon't pollute output when "make" is run with -s.
ru [Sat, 14 Jan 2006 20:48:50 +0000 (20:48 +0000)]
Don't pollute output when "make" is run with -s.

Approved by: kan

18 years agoAMD64 also supports disk slices.
ru [Sat, 14 Jan 2006 20:47:11 +0000 (20:47 +0000)]
AMD64 also supports disk slices.

18 years agoIgnore spurious '\0' first character read on a serial console.
ru [Sat, 14 Jan 2006 20:45:02 +0000 (20:45 +0000)]
Ignore spurious '\0' first character read on a serial console.
This allows me to "boot -a" over a serial console.  Tested on
several machines.

18 years agoCheck the return value of copyin.
scottl [Sat, 14 Jan 2006 17:59:28 +0000 (17:59 +0000)]
Check the return value of copyin.

Found by: Coverity Prevent (tm)

18 years agoWhen SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the
brooks [Sat, 14 Jan 2006 17:57:17 +0000 (17:57 +0000)]
When SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the
same behavior to be controlled by the sysctls, hw.syscons.kbd_kbdkey
and hw.syscons.kbd_reboot respectively.

Apologies to the submitter for taking so long to commit this simple
change.

PR: kern/72728
Submitted by: Luca Morettoni <morettoni at libero dot it>
MFC After: 3 days

18 years agoDon't base the number of jumbo segments on page size, instead base it on the
scottl [Sat, 14 Jan 2006 17:42:22 +0000 (17:42 +0000)]
Don't base the number of jumbo segments on page size, instead base it on the
fact that jumbo desriptors are defined to have 3 segments.

Found by: Coverity Prevent(tm)

18 years agoFree the newtag if we exit with a failure from alloc_bounce_zone().
scottl [Sat, 14 Jan 2006 17:22:47 +0000 (17:22 +0000)]
Free the newtag if we exit with a failure from alloc_bounce_zone().

Found by: Coverity Prevent(tm)

18 years agoCheck the correct TTL in both the IPv6 and IPv4 cases.
gnn [Sat, 14 Jan 2006 16:39:31 +0000 (16:39 +0000)]
Check the correct TTL in both the IPv6 and IPv4 cases.

Submitted by: glebius
Reviewed by: gnn, bz
Found with:     Coverity Prevent(tm)

18 years agoDon't allocate an asr_ccb in asr_attach, it hasn't been needed for years.
scottl [Sat, 14 Jan 2006 16:01:01 +0000 (16:01 +0000)]
Don't allocate an asr_ccb in asr_attach, it hasn't been needed for years.

18 years agoReplace bogus code with real code.
scottl [Sat, 14 Jan 2006 15:59:54 +0000 (15:59 +0000)]
Replace bogus code with real code.

18 years agoRename driver_t variables. Use device_printf() instead of homerolled printf.
scottl [Sat, 14 Jan 2006 15:51:42 +0000 (15:51 +0000)]
Rename driver_t variables.  Use device_printf() instead of homerolled printf.
Use the provided softc instead of rolling our own.

18 years agoThe LinkSys EG1032 is supported by re(4) not nge(4) [1].
bz [Sat, 14 Jan 2006 15:35:21 +0000 (15:35 +0000)]
The LinkSys EG1032 is supported by re(4) not nge(4) [1].
I couldn't find the ID for the EG1064 anywhere in our sources
so I removed the reference for now.

Pointed out by: Robert Huff <roberthuffi at rcn dot com> [1]
Reviewed by: simon

18 years agoIncorporate the O_NONBLOCK open semantics of Linux and Solaris. This allows
mjacob [Sat, 14 Jan 2006 14:32:41 +0000 (14:32 +0000)]
Incorporate the O_NONBLOCK open semantics of Linux and Solaris. This allows
an application to upon a tape (yea, even the non-control device) even if
it cannot establish a mount session. If the open cannot establish a mount
session and O_NONBLOCK was specified, the tape becomes 'open pending mount'.
All I/O operations that would require access to a tape thereafter until
a close attempt to initiate the mount session. If the mount session succeeds,
the tape driver transitions to full open state, else returns an appropriate
I/O error (ENXIO).

At the same time, add a change that remembers whether tape is being opened
read-only. If so, disallow 'write' operations like writing filemarks that
bypass the normal read-only filtering operations that happen in the write(2)
syscall.

Reviewed by: ken, justin, grog
MFC after: 2 weeks
Suggested by: The Bacula Team

18 years agoRemove dead code.
glebius [Sat, 14 Jan 2006 14:17:27 +0000 (14:17 +0000)]
Remove dead code.

Found with: Coverity Prevent(tm)

18 years ago- Add comments about snd_au88x0.
joel [Sat, 14 Jan 2006 13:22:12 +0000 (13:22 +0000)]
-  Add comments about snd_au88x0.
-  Clarify that snd_audiocs is for sparc64 only.
-  Expand snd_ich and snd_t4dwave comments.

Reviewed by: ariff

18 years agoUMA can return NULL not only in case when our zone is full, but
glebius [Sat, 14 Jan 2006 13:04:08 +0000 (13:04 +0000)]
UMA can return NULL not only in case when our zone is full, but
also in case of generic memory shortage. In the latter case we may
not find an old entry.

Found with: Coverity Prevent(tm)

18 years agoCorrect off-by-one errors.
glebius [Sat, 14 Jan 2006 12:26:32 +0000 (12:26 +0000)]
Correct off-by-one errors.

Found with: Coverity Prevent(tm)

18 years agoFix two memory leakages.
glebius [Sat, 14 Jan 2006 12:16:39 +0000 (12:16 +0000)]
Fix two memory leakages.

Found with: Coverity Prevent(tm)

18 years agoIn ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error'
rwatson [Sat, 14 Jan 2006 11:40:32 +0000 (11:40 +0000)]
In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error'
resulted in deadcode, as 'error' could never be 0.  What this logic
was originally meant to handle is not clear -- it's been this way
(broken) since at least RELENG_4.

Found with: Coverity Prevent(tm)
MFC after: 3 days

18 years agoEnable mutex inheritance code in mutex_fork, I forgot to turn on it.
davidxu [Sat, 14 Jan 2006 11:33:43 +0000 (11:33 +0000)]
Enable mutex inheritance code in mutex_fork, I forgot to turn on it.
while here, add some comments about process shared mutex.

18 years agoRemove dead code: 'opts' is not used in udp_append(), only in udp_input(),
rwatson [Sat, 14 Jan 2006 11:18:32 +0000 (11:18 +0000)]
Remove dead code: 'opts' is not used in udp_append(), only in udp_input(),
so no need to assign it to NULL or conditionally free it.

Found with: Coverity Prevent(tm)
MFC after: 3 days

18 years agoMake resources do the right thing by design instead of accident.
phk [Sat, 14 Jan 2006 09:46:27 +0000 (09:46 +0000)]
Make resources do the right thing by design instead of accident.

Found with:   Coverity Prevent(tm)

18 years agoCorrect STAILQ usage in purge of resourcelist.
phk [Sat, 14 Jan 2006 09:41:35 +0000 (09:41 +0000)]
Correct STAILQ usage in purge of resourcelist.

Found with:   Coverity Prevent(tm)

18 years ago- Change the exit message from "make cleandepend; make depend" to
flz [Sat, 14 Jan 2006 08:12:25 +0000 (08:12 +0000)]
- Change the exit message from "make cleandepend; make depend" to
"make cleandepend && make depend".

PR: bin/91765
Submitted by: Soeren Straarup <xride@x12.dk>
Approved by: cpercival
MFC after: 3 days

18 years agoAdd code that clears certain capabilities from the member interface, these are
thompsa [Sat, 14 Jan 2006 03:51:31 +0000 (03:51 +0000)]
Add code that clears certain capabilities from the member interface, these are
restored when its removed from the bridge.

At the moment we only clear IFCAP_TXCSUM. Since a locally generated packet on
the bridge may be sent out any one or more interfaces it cant be assumed that
every card does hardware csums. Most bridges don't generate a lot of traffic
themselves so turning off offloading won't hurt, bridged packets are
unaffected.

Tested by: Bruce Walker (bmw borderware.com)
MFC after: 5 days

18 years agoAdd a reminder to remove obsolete files from the vendor branch.
dougb [Sat, 14 Jan 2006 02:45:49 +0000 (02:45 +0000)]
Add a reminder to remove obsolete files from the vendor branch.

18 years agoAdd the following to the taskqueue api:
scottl [Sat, 14 Jan 2006 01:55:24 +0000 (01:55 +0000)]
Add the following to the taskqueue api:

taskqueue_start_threads(struct taskqueue **, int count, int pri,
const char *name, ...);

This allows the creation of 1 or more threads that will service a single
taskqueue.  Also rework the taskqueue_create() API to remove the API change
that was introduced a while back.  Creating a taskqueue doesn't rely on
the presence of a process structure, and the proc mechanics are much better
encapsulated in taskqueue_start_threads().  Also clean up the
taskqueue_terminate() and taskqueue_free() functions to safely drain
pending tasks and remove all associated threads.

The TASKQUEUE_DEFINE and TASKQUEUE_DEFINE_THREAD macros have been changed
to use the new API, but drivers compiled against the old definitions will
still work.  Thus, recompiling drivers is not a strict requirement.

18 years agoAdd the HP NC7771 adapter to the list of known products.
thompsa [Sat, 14 Jan 2006 00:52:32 +0000 (00:52 +0000)]
Add the HP NC7771 adapter to the list of known products.

18 years ago- Document the latest changes for controlling the fan
markus [Sat, 14 Jan 2006 00:39:26 +0000 (00:39 +0000)]
- Document the latest changes for controlling the fan
- s/Thinklight/ThinkLight/ in two cases

Approved by: brueffer
MFC after: 1 week

18 years ago- Add support for setting the fan control mode to manual or automatic
markus [Sat, 14 Jan 2006 00:39:10 +0000 (00:39 +0000)]
- Add support for setting the fan control mode to manual or automatic
- Add support for adjusting the fan speed if the fan control mode is manual

Documentation for the relevant embedded controller register was obtained from
http://www.thinkwiki.org/wiki/Patch_for_controlling_fan_speed

Tested on: R51  by Fabian Keil
T41p by markus
Requested by: many
Approved by: philip
MFC after: 1 week

18 years agoWhen storing the results of malloc() in a pointer to a pointer, check
rwatson [Sat, 14 Jan 2006 00:09:41 +0000 (00:09 +0000)]
When storing the results of malloc() in a pointer to a pointer, check
the pointer to a pointer for NULL, not the pointer for NULL.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoIn spx_attach() and spx_detach(), there is no need to check whether the
rwatson [Sat, 14 Jan 2006 00:05:44 +0000 (00:05 +0000)]
In spx_attach() and spx_detach(), there is no need to check whether the
ipxpcb is NULL or not: in attach it will be, and on detach it won't be.
If for any reason these invariants don't hold true, panicking is a good
idea.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoIn ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
rwatson [Fri, 13 Jan 2006 23:53:23 +0000 (23:53 +0000)]
In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
may be a stale pointer at this point, and we're interested in whether or
not m_pulldown() failed.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years ago- Correct amr_enquiry3 structure[1].
jkim [Fri, 13 Jan 2006 23:50:21 +0000 (23:50 +0000)]
- Correct amr_enquiry3 structure[1].
- Remove redundant AMR_CONFIG_ENQ3_SOLICITED_NOTIFY from the previous
commit while I am here.

PR: kern/29727 [1]

18 years agoRemove dead code associated with 'mcopy' in ipx_forward(): at no point
rwatson [Fri, 13 Jan 2006 23:47:55 +0000 (23:47 +0000)]
Remove dead code associated with 'mcopy' in ipx_forward(): at no point
are the contents of the forwarded mbuf ever copied into mcopy, so there's
no need to have mcopy, conditionally look at mcopy, or conditionally free
it.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoWhen calling bioq_first() to see if a queue is empty in bioq_disksort(),
rwatson [Fri, 13 Jan 2006 23:27:12 +0000 (23:27 +0000)]
When calling bioq_first() to see if a queue is empty in bioq_disksort(),
don't save the return value as we won't use it.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoCheck the right ifnet pointer to see if if_alloc() failed or not in
rwatson [Fri, 13 Jan 2006 23:24:09 +0000 (23:24 +0000)]
Check the right ifnet pointer to see if if_alloc() failed or not in
ef_clone(); we were testing the original ifnet, not the one allocated.

When aborting ef_clone() due to if_alloc() failing, free the allocated
efnet structure rather than leaking it.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoWhen freeing the chain of if_ef devices on an aborted load, use
rwatson [Fri, 13 Jan 2006 23:20:46 +0000 (23:20 +0000)]
When freeing the chain of if_ef devices on an aborted load, use
SLIST_FOREACH_SAFE() rather than SLIST_FOREACH(), as elements are
freed on each iteration of the loop.  This prevents use-after-free.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoIn nfs_dolock(), GC now under-used ioflg, rendered obsolete when we moved
rwatson [Fri, 13 Jan 2006 23:16:29 +0000 (23:16 +0000)]
In nfs_dolock(), GC now under-used ioflg, rendered obsolete when we moved
from using a fifo to talk to rpc.lockd to using a special device node.

Noticed by: Coverity Prevent analysis tool
MFC after: 3 days

18 years agoNote that libc's malloc implementation has been replaced.
jasone [Fri, 13 Jan 2006 22:37:48 +0000 (22:37 +0000)]
Note that libc's malloc implementation has been replaced.

Approved by: markm (mentor)

18 years agoBump version.
flz [Fri, 13 Jan 2006 20:43:00 +0000 (20:43 +0000)]
Bump version.

Approved by: ssouhlal (implicit)

18 years agoNow with multi-commit support.
flz [Fri, 13 Jan 2006 20:41:04 +0000 (20:41 +0000)]
Now with multi-commit support.

Use: `./mfc.pl -m "msg-id-1 msg-id-2" -i hurray'
or   `./mfc.pl -f - -i yippee' and copy/paste two commit logs

Approved by: ssouhlal (implicit)

18 years agoAdd Time DPA20B MP3 Player (1Gb) [1]
mnag [Fri, 13 Jan 2006 19:44:44 +0000 (19:44 +0000)]
Add Time DPA20B MP3 Player (1Gb) [1]
Add Qware BeatZkey! Pro [2]
Add Merlin SM300 MP3/WMA Player (256Mb)

PR: usb/81846 [1], usb/79164 [2]
Approved by:    njl
MFC:            1 week

18 years agoReplace malloc(), calloc(), posix_memalign(), realloc(), and free() with
jasone [Fri, 13 Jan 2006 18:38:56 +0000 (18:38 +0000)]
Replace malloc(), calloc(), posix_memalign(), realloc(), and free() with
a scalable concurrent allocator implementation.

Reviewed by: current@
Approved by: phk, markm (mentor)

18 years agoWorkaround for sb16 behave poorly when running at 45000 hz while
ariff [Fri, 13 Jan 2006 18:10:43 +0000 (18:10 +0000)]
Workaround for sb16 behave poorly when running at 45000 hz while
vchan is enabled.

Reported by: many sb16, AWE64 users.
MFC after: 1 week

18 years agoAdd a daily script to show the status of gmirror(8) devices.
wollman [Fri, 13 Jan 2006 18:07:52 +0000 (18:07 +0000)]
Add a daily script to show the status of gmirror(8) devices.

18 years ago"sd(4)" -> "da(4)", "st(4)" -> "sa(4)".
jkoshy [Fri, 13 Jan 2006 17:41:41 +0000 (17:41 +0000)]
"sd(4)" -> "da(4)", "st(4)" -> "sa(4)".

MFC after: 3 days

18 years agoYesterday netgraph ABI has been changed.
glebius [Fri, 13 Jan 2006 17:32:22 +0000 (17:32 +0000)]
Yesterday netgraph ABI has been changed.

18 years agoForget about ipfw1 and ipfw2. We aren't in RELENG_4 anymore.
glebius [Fri, 13 Jan 2006 16:44:56 +0000 (16:44 +0000)]
Forget about ipfw1 and ipfw2. We aren't in RELENG_4 anymore.

18 years agoDocument 'tablearg' keyword.
glebius [Fri, 13 Jan 2006 15:48:38 +0000 (15:48 +0000)]
Document 'tablearg' keyword.

Wording by: emaste

18 years agoAllow to use Time DPA20B 1GB MP3 Player [1]
mnag [Fri, 13 Jan 2006 11:33:40 +0000 (11:33 +0000)]
Allow to use Time DPA20B 1GB MP3 Player [1]
Allow to use Qware BeatZkey! Pro [2]

PR:             usb/81846 [1], usb/79164 [2]
Submitted by:   Ruben de Groot <rdg@bzerk.org> [1], Radek Kozlowski <radek@raadradd.com> [2]
Approved by:    njl
MFC:            1 week

18 years agoFix a misspelled reference.
ru [Fri, 13 Jan 2006 11:24:08 +0000 (11:24 +0000)]
Fix a misspelled reference.

18 years agoAdd sosend_dgram(), a greatly reduced and simplified version of sosend()
rwatson [Fri, 13 Jan 2006 10:22:01 +0000 (10:22 +0000)]
Add sosend_dgram(), a greatly reduced and simplified version of sosend()
intended for use solely with atomic datagram socket types, and relies
on the previous break-out of sosend_copyin().  Changes to allow UDP to
optionally use this instead of sosend() will be committed as a
follow-up.

18 years ago1) move all link state detection code from bge_tick_locked() to bge_link_upd()
oleg [Fri, 13 Jan 2006 08:59:40 +0000 (08:59 +0000)]
1) move all link state detection code from bge_tick_locked() to bge_link_upd()
2) use more robust way of link state handling for BCM5700 rev.B2 chip
3) workaround bug of some BCM570x chips which cause spurious "link up" messages
4) fix bug: some BCM570x chips was unable to detect link state changes after
   ifconfig down/up sequence until any 'non-link related' interrupt generated.
   (this happened due to pending internal link state attention which blocked
   interrupt generation)

Approved by: glebius (mentor)
MFC after: 1 week

18 years agoFix the interrupt race for real. Don't register the interrupt until after
scottl [Fri, 13 Jan 2006 08:18:04 +0000 (08:18 +0000)]
Fix the interrupt race for real.  Don't register the interrupt until after
the the interface has been configured.  I'm not sure how this could ever
have worked before, but it should be fixed now.  Also break out the interrupt
degresitration function into it's own step.

18 years agoDocument commit constraints for RELENG_6_*.
ru [Fri, 13 Jan 2006 06:51:43 +0000 (06:51 +0000)]
Document commit constraints for RELENG_6_*.

Approved by: core (jhb)

18 years agoIncrease the number of spinlocks, since libc's malloc implementation is
jasone [Fri, 13 Jan 2006 06:14:04 +0000 (06:14 +0000)]
Increase the number of spinlocks, since libc's malloc implementation is
about to significantly increase the number of spinlocks used.

Approved by: markm (mentor)

18 years agoDisable interrupts while we are setting up the handler. The interrupt really
scottl [Fri, 13 Jan 2006 05:04:27 +0000 (05:04 +0000)]
Disable interrupts while we are setting up the handler.  The interrupt really
shouldn't be set up or enabled until much later, but that will be investigated
at a later time.

18 years agoJoyport blacklist. Either we're facing with broken hardware
ariff [Fri, 13 Jan 2006 04:54:34 +0000 (04:54 +0000)]
Joyport blacklist. Either we're facing with broken hardware
or because this hardware need special (unknown) initialization
procedures.

Reported by: [1] Rob Clark <vx2 at tds.net>
MFC after: 3 days

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003535.html

18 years agoUnbreak the AMD64 build by forgoing the 'snmp_hostres' functionality.
obrien [Fri, 13 Jan 2006 02:09:15 +0000 (02:09 +0000)]
Unbreak the AMD64 build by forgoing the 'snmp_hostres' functionality.

Approved by: harti

18 years agoMention that NETWORKING is probably the right value for
dougb [Fri, 13 Jan 2006 01:09:55 +0000 (01:09 +0000)]
Mention that NETWORKING is probably the right value for
early_late_divider in a jail.

Add an explcit Xr for jail(8)

18 years ago- Fix issue when X-FreeBSD-CVS-Branch is not HEAD.
flz [Fri, 13 Jan 2006 00:47:42 +0000 (00:47 +0000)]
- Fix issue when X-FreeBSD-CVS-Branch is not HEAD.

Submitted by: jkim
Approved by: jkim

18 years agoXXX a comment in uipc_usrreq.c that requires updating.
rwatson [Fri, 13 Jan 2006 00:00:32 +0000 (00:00 +0000)]
XXX a comment in uipc_usrreq.c that requires updating.

18 years agoWhen sending export datagram from interrupt thread, use NG_QUEUE
glebius [Thu, 12 Jan 2006 22:48:12 +0000 (22:48 +0000)]
When sending export datagram from interrupt thread, use NG_QUEUE
in flags. When sending export datagram from expiry thread, then
use default zero flags. This removes unpleasant contention of the
interrupt thread on mutexes (usually ng_ksocket's socket buffer
mutex).

18 years agoProvide additional macros for sending netgraph items, which allow
glebius [Thu, 12 Jan 2006 22:44:04 +0000 (22:44 +0000)]
Provide additional macros for sending netgraph items, which allow
to use non-default flags for netgraph functions. Implement current
macros via new ones.

18 years ago- Print also node ID in ktr(9) messages. [1]
glebius [Thu, 12 Jan 2006 22:41:32 +0000 (22:41 +0000)]
- Print also node ID in ktr(9) messages. [1]
- Use fixed length for function name, making ktrdump(8) output
  easier to read.

Suggested by: julian [1]

18 years agoSkip format flags, when parsing ktr_desc.
glebius [Thu, 12 Jan 2006 22:32:07 +0000 (22:32 +0000)]
Skip format flags, when parsing ktr_desc.

18 years ago* fix bst.status. We mark some bits, but forgot to reset all of them
bruno [Thu, 12 Jan 2006 21:56:37 +0000 (21:56 +0000)]
* fix bst.status.  We mark some bits, but forgot to reset all of them
  before.  The symptom is that the battery inform us its charge and discharge
  at the same time...

* fix bst.rate to correctly output the (dis)charging rate.  We'll use
  the current average over one minute command and not the at_rate command.
  Note that this method is not correct if the capacity_mode is set, but
  since we don't set it ourself, it is not a problem.

  The at_rate do not give the actual rate but is used to compute the
  estimated time for (dis)charging a battery.  We should actually
  write an estimation of the actual rate using at_rate cmd and then
  perform a read to the various estimators.

Approved by: njl
MFC after: 2 days

18 years agoDo not force queueing on peer hooks. This was important only for
glebius [Thu, 12 Jan 2006 21:09:12 +0000 (21:09 +0000)]
Do not force queueing on peer hooks. This was important only for
5.0-CURRENT. And it looks like this didn't work before Julian's
revamp of netgraph queue code.

Reviewed by: julian

18 years agoInclude the bridge interface itself in the special arp handling.
thompsa [Thu, 12 Jan 2006 21:05:30 +0000 (21:05 +0000)]
Include the bridge interface itself in the special arp handling.

PR: 90973
MFC after: 1 week

18 years agoRemove old debugging leftover.
glebius [Thu, 12 Jan 2006 21:03:09 +0000 (21:03 +0000)]
Remove old debugging leftover.

Reviewed by: julian

18 years agoBelated __FreeBSD_version bump for improvements to the Linux ldconfig
brooks [Thu, 12 Jan 2006 20:27:35 +0000 (20:27 +0000)]
Belated __FreeBSD_version bump for improvements to the Linux ldconfig
support in etc/rc.d/abi.

18 years agoMark appropriate commands with NGM_READONLY and NGM_HASREPLY and
glebius [Thu, 12 Jan 2006 19:16:08 +0000 (19:16 +0000)]
Mark appropriate commands with NGM_READONLY and NGM_HASREPLY and
bump type cookie.

18 years agoNovel idea, don't print a string if it is NULL!
alfred [Thu, 12 Jan 2006 19:15:14 +0000 (19:15 +0000)]
Novel idea, don't print a string if it is NULL!

This protects people from loading _really_ old modules, like say from
5.x to a 6.x or 7.x system, like for instance right after an upgrade.

18 years agoIn the splnet(9) times netgraph(4) was synchronous and if a message
glebius [Thu, 12 Jan 2006 19:14:40 +0000 (19:14 +0000)]
In the splnet(9) times netgraph(4) was synchronous and if a message
had been replied, the reply was always delivered to the originator
synchronously.

With introduction of netgraph item callbacks and a wait channel with
mutex in ng_socket(4), we have fixed the problem with ngctl(8) returning
earlier than the command has been proceeded by target node. But still
ngctl(8) can return prior to the reply has arrived to its node.

To fix this:
 - Introduce a new flag for netgraph(4) messages - NGM_HASREPLY.
   This flag is or'ed with message like NGM_READONLY.
 - In netgraph userland library if we have sent a message with
   NGM_HASREPLY flag, then select(2) until reply comes.
 - Mark appropriate generic commands with NGM_HASREPLY flag,
   gathering them into one enum {}. Bump generic cookie.

18 years agoFix a bitwise logic error in posix_memalign().
jasone [Thu, 12 Jan 2006 18:09:25 +0000 (18:09 +0000)]
Fix a bitwise logic error in posix_memalign().

Reported by: glebius

18 years agoRemove releases now found in Groff sources.
ru [Thu, 12 Jan 2006 15:33:18 +0000 (15:33 +0000)]
Remove releases now found in Groff sources.

18 years agoPull up from the FSF branch.
ru [Thu, 12 Jan 2006 15:31:41 +0000 (15:31 +0000)]
Pull up from the FSF branch.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r154258,
ru [Thu, 12 Jan 2006 15:26:11 +0000 (15:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154258,
which included commits to RCS files with non-trunk default branches.

18 years agoMerge support for new BSD releases from upstream:
ru [Thu, 12 Jan 2006 15:26:11 +0000 (15:26 +0000)]
Merge support for new BSD releases from upstream:

- Darwin 8.[0-3].0
- FreeBSD 4.11, 5.4, 6.0, 6.1
- NetBSD 3.0

18 years agoIn moduledir_readhints() cast the value returned by sizeof() to ssize_t
marius [Thu, 12 Jan 2006 13:18:49 +0000 (13:18 +0000)]
In moduledir_readhints() cast the value returned by sizeof() to ssize_t
when checking whether it's greater than a struct stat st_size in order
to also catch the case when st_size is -1. Previously this check didn't
trigger on sparc64 when st_size is -1 (as it's the case for a file on
a bzipfs, TFTP server etc.), causing the content of the linker hints
file to be copied to memory referenced by a null-pointer.

PR: 91231
MFC after: 1 week

18 years ago- The inline asm in this file uses output operands before all input
marius [Thu, 12 Jan 2006 11:40:39 +0000 (11:40 +0000)]
- The inline asm in this file uses output operands before all input
  operands are consumed so use the appropriate constraint modifier.
  Before this change GCC used one register for both an input and an
  unrelated output operand of in_addword(), causing the input to be
  overwritten before it was consumed and thus breaking in_addword().
  For in_cksum_hdr() and in_pseudo() this change is more or less
  cosmetic.
- Fix a misspelling in a nearby comment.

Reported & tested by: yongari
MFC after: 1 week

18 years agoFix wording in last commit.
glebius [Thu, 12 Jan 2006 10:15:51 +0000 (10:15 +0000)]
Fix wording in last commit.

Submitted by: julian

18 years agoUse posix_memalign() in valloc() rather than making assumptions about
jasone [Thu, 12 Jan 2006 09:29:38 +0000 (09:29 +0000)]
Use posix_memalign() in valloc() rather than making assumptions about
the alignment of malloc()ed memory.

Approved by: markm (mentor)

18 years agoUse posix_memalign() rather than assuming that malloc() provides adequate
jasone [Thu, 12 Jan 2006 08:01:38 +0000 (08:01 +0000)]
Use posix_memalign() rather than assuming that malloc() provides adequate
alignment.

Approved by: markm (mentor)