]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years ago- Fixes so we won't try to start a timer when we
rrs [Tue, 29 May 2007 09:29:03 +0000 (09:29 +0000)]
- Fixes so we won't try to start a timer when we
  hold a wq lock for the iterator. Panda uses a
  silly recursive lock they hold through the timer.
- Add poor mans wireshark compile option..
- Allocate and start using SCTP_M_XXX for all SCTP_MALLOC() calls.
- sysctl now will get back the refcnt for viewing by onlookers.

Reviewed by: gnn

17 years agoMerge the relevant part of rev.1.14 of s_cbrt.c (a micro-optimization
bde [Tue, 29 May 2007 07:13:07 +0000 (07:13 +0000)]
Merge the relevant part of rev.1.14 of s_cbrt.c (a micro-optimization
involving moving the check for x == 0).  The savings in cycles are
smaller for cbrtf() than for cbrt(), and positive in all measured cases
with gcc-3.4.4, but still very machine/compiler-dependent.

17 years agoRemove more vestiges of /usr/X11R6, but leave mtree for portmgr.
dougb [Tue, 29 May 2007 06:37:58 +0000 (06:37 +0000)]
Remove more vestiges of /usr/X11R6, but leave mtree for portmgr.

17 years agoRemove X11R6 from the default PATH to join the new world order.
dougb [Tue, 29 May 2007 06:33:10 +0000 (06:33 +0000)]
Remove X11R6 from the default PATH to join the new world order.

While I'm here, make the default PATH match that in the csh profile,
and login.conf.

17 years agoHonor maxsegsz of less than a page size in a DMA tag. Previously it
yongari [Tue, 29 May 2007 06:30:26 +0000 (06:30 +0000)]
Honor maxsegsz of less than a page size in a DMA tag. Previously it
used to return PAGE_SIZE without respect to restrictions of a DMA tag.
This affected all of the busdma load functions that use
_bus_dmamap_loader_buffer() as their back-end.

Reviewed by: scottl

17 years agoNow that a separate /usr/X11R6 directory is no longer in fashion,
dougb [Tue, 29 May 2007 06:22:14 +0000 (06:22 +0000)]
Now that a separate /usr/X11R6 directory is no longer in fashion,
stop looking there for things like rc.d and periodic. This avoids
duplicating effort when /usr/X11R6 is a symlink to /usr/local,
which it is by default now.

It is not anticipated at this time that we will MFC this change, since
we'd like to avoid breaking legacy systems. However, there is a fix for
/etc/rc.subr in the works to avoid running any rc.d scripts twice which
we should be able to MFC.

17 years agobsdtar 2.2.3:
kientzle [Tue, 29 May 2007 05:39:10 +0000 (05:39 +0000)]
bsdtar 2.2.3:
  * Implement --use-compress-program using new libarchive feature.
  * Minor portability improvement by adjusting casts used to
    print out uids, gids, and device numbers.

Thanks to: Joerg Sonnenberger for the --use-compress-program implementation.
MFC after: 15 days

17 years agoFix case of setting OACTIVE erroneously
kmacy [Tue, 29 May 2007 04:18:21 +0000 (04:18 +0000)]
Fix case of setting OACTIVE erroneously

17 years ago"make delete-old" needs more than 64KB worth of arguments. Both
marcel [Tue, 29 May 2007 03:49:00 +0000 (03:49 +0000)]
"make delete-old" needs more than 64KB worth of arguments. Both
arm and powerpc have 64KB as the maximum argument size, so one
cannot run "make delete-old" on arm or powerpc anymore. Stop
special-casing powerpc and give it 256KB of arguments like all
other platforms, but keep arm on 64KB for now. There may be a
purpose to it that doesn't exist for powerpc.

17 years agoFix interrupt setup for the non-MSI-X case
kmacy [Tue, 29 May 2007 03:13:53 +0000 (03:13 +0000)]
Fix interrupt setup for the non-MSI-X case

17 years agoUse the Hitachi 2.5" HD, 120 GB as a USB device.
mjacob [Tue, 29 May 2007 01:23:38 +0000 (01:23 +0000)]
Use the Hitachi 2.5" HD, 120 GB as a USB device.

Submitted by: Joakim Bentholm`
MFC after: 3 days

17 years agolibarchive 2.2.3
kientzle [Tue, 29 May 2007 01:00:21 +0000 (01:00 +0000)]
libarchive 2.2.3
  * "compression_program" support uses an external program
  * Portability: no longer uses "struct stat" as a primary
    data interchange structure internally
  * Part of the above: refactor archive_entry to separate
    out copy_stat() and stat() functions
  * More complete tests for archive_entry
  * Finish archive_entry_clone()
  * Isolate major()/minor()/makedev() in archive_entry; remove
    these from everywhere else.
  * Bug fix: properly handle decompression look-ahead at end-of-data
  * Bug fixes to 'ar' support
  * Fix memory leak in ZIP reader
  * Portability: better timegm() emulation in iso9660 reader
  * New write_disk flags to suppress auto dir creation and not
    overwrite newer files (for future cpio front-end)
  * Simplify trailing-'/' fixup when writing tar and pax
  * Test enhancements:  fix various compiler warnings, improve
    portability, add lots of new tests.
  * Documentation: document new functions, first draft of
    libarchive_internals.3

MFC after: 14 days
Thanks to: Joerg Sonnenberger (compression_program)
Thanks to: Kai Wang (ar)
Thanks to: Colin Percival (many small fixes)
Thanks to: Many others who sent me various patches and problem reports.

17 years agoMake log messages more verbose and simpler to understand for non-experts.
andre [Mon, 28 May 2007 23:27:44 +0000 (23:27 +0000)]
Make log messages more verbose and simpler to understand for non-experts.
Update comments to be more conscious, verbose and fully reflect reality.

17 years agoDisable shared libgcc use for profiled builds. GNU linker pulls symbols
kan [Mon, 28 May 2007 23:02:56 +0000 (23:02 +0000)]
Disable shared libgcc use for profiled builds. GNU linker pulls symbols
out of libgcc_s.so.1 somehow and fails to record DT_NEEED dependency
when linking with profiled libraries despite --ld-as-needed option.

17 years agoWhen building cxgb as a module make include paths relative to the driver's root.
kmacy [Mon, 28 May 2007 22:57:27 +0000 (22:57 +0000)]
When building cxgb as a module make include paths relative to the driver's root.
This will make it possible to build the module out of tree against an older src tree.

MFC after: 3 days

17 years agoRevert 1.197 and instead avoid calling kdb_enter() if the KDB_UNATTENDED
emaste [Mon, 28 May 2007 21:50:54 +0000 (21:50 +0000)]
Revert 1.197 and instead avoid calling kdb_enter() if the KDB_UNATTENDED
option is in use.

17 years agoEliminate some unused definitions that came from NetBSD.
alc [Mon, 28 May 2007 21:04:22 +0000 (21:04 +0000)]
Eliminate some unused definitions that came from NetBSD.

17 years agoSimplify the kernel configuration file return code.
imp [Mon, 28 May 2007 20:41:10 +0000 (20:41 +0000)]
Simplify the kernel configuration file return code.

Reviewed by: wkoszek

17 years agoEliminate explicit kdb_enter in the software watchdog handler (which
emaste [Mon, 28 May 2007 19:51:12 +0000 (19:51 +0000)]
Eliminate explicit kdb_enter in the software watchdog handler (which
produced incorrect behaviour with the KDB_UNATTENDED option) and call
panic in both the KDB and non-KDB cases.  This change is consistent
with rwatson's current kdb/ddb work.

17 years agoWe do not need to get the irq out of ivars in ixp425_setup_intr(). By
jhay [Mon, 28 May 2007 18:54:08 +0000 (18:54 +0000)]
We do not need to get the irq out of ivars in ixp425_setup_intr(). By
this time they have already been set. In fact trying to set it here too
breaks irqs for pci devices.

17 years agoOptimize a bit more, both the Avila and Pronghorn Metro boards work with
jhay [Mon, 28 May 2007 18:45:16 +0000 (18:45 +0000)]
Optimize a bit more, both the Avila and Pronghorn Metro boards work with
GPIO_TYPE_EDG_RISING.

Reviewed by: sam

17 years agoDon't save SYSCTL_ADD_*() results in a local variable just to throw them
rwatson [Mon, 28 May 2007 18:20:15 +0000 (18:20 +0000)]
Don't save SYSCTL_ADD_*() results in a local variable just to throw them
away; preserve the ones that are needed for further calls in the init
function and ignore the rest entirely.

Found with: Coverity Prevent(tm)
CID: 563

17 years agoIn kern_kevent(), unconditionally fdrop() fp once fget() has succeeded,
rwatson [Mon, 28 May 2007 17:15:05 +0000 (17:15 +0000)]
In kern_kevent(), unconditionally fdrop() fp once fget() has succeeded,
as we never have an opportunity to set it to NULL.

Found with: Coverity Prevent(tm)
CID: 2161

17 years ago- Enable soft pcm volume flag early to ensure it not being clobbered
ariff [Mon, 28 May 2007 16:22:07 +0000 (16:22 +0000)]
- Enable soft pcm volume flag early to ensure it not being clobbered
  by the subsequent mix_setdevs() and friends.
- Minor style(9) declaration arrangement nit.

Requested by: joeld
Submitted by: pluknet <pluknet@gmail.com>

17 years agoFix misspelling: s/maintanence/maintenance/
bmah [Mon, 28 May 2007 16:00:21 +0000 (16:00 +0000)]
Fix misspelling:  s/maintanence/maintenance/

Submitted by: brueffer

17 years agoAdd AK4396 to the list of supported codecs.
joel [Mon, 28 May 2007 16:00:08 +0000 (16:00 +0000)]
Add AK4396 to the list of supported codecs.

17 years agoDocument support for the following sound cards:
joel [Mon, 28 May 2007 15:57:22 +0000 (15:57 +0000)]
Document support for the following sound cards:

- AudioTrak Prodigy HD2
- AudioTrak Prodigy 7.1 XT
- ESI Juli@

Reminded by: brueffer

17 years agoEnable fwip and dcons in GENERIC. They seem fairly stable.
simokawa [Mon, 28 May 2007 14:38:43 +0000 (14:38 +0000)]
Enable fwip and dcons in GENERIC. They seem fairly stable.

Note on dcons:
To enable dcons in kernel, put the following lines in /boot/loader.conf.
You may also want to enable dcons in /etc/ttys.

boot_multicons="YES"
#Force dcons to be the high-level console if a firewire bus presents.
#hw.firewire.dcons_crom.force_console=1

FireWire/dcons support in loader will come shortly.
(i386/amd64 only)

17 years agoFix broken "rec" and "igain" introduced by previous commit. Convert
ariff [Mon, 28 May 2007 14:09:06 +0000 (14:09 +0000)]
Fix broken "rec" and "igain" introduced by previous commit. Convert
reg to a full blown int since there's not much gain compacting it,
and we do need its signess.

17 years agoCorrect spelling errors in comments.
rwatson [Mon, 28 May 2007 11:36:43 +0000 (11:36 +0000)]
Correct spelling errors in comments.

17 years agoFix indentation of the syncache_expand() section in tcp_input().
andre [Mon, 28 May 2007 11:35:40 +0000 (11:35 +0000)]
Fix indentation of the syncache_expand() section in tcp_input().

17 years agoPrecede symbol names consistently with tabs rather than spaces.
rwatson [Mon, 28 May 2007 11:33:44 +0000 (11:33 +0000)]
Precede symbol names consistently with tabs rather than spaces.

17 years ago- fixed autclose to not allow setting on 1-2-1 model.
rrs [Mon, 28 May 2007 11:17:24 +0000 (11:17 +0000)]
- fixed autclose to not allow setting on 1-2-1 model.
- bounded cookie-life to 1 second minimum in socket option set.
- Delayed_ack_time becomes delayed_ack per new socket api document.
- Improve port number selection, we now use low/high bounds and
  no chance of a endless loop. Only one call to random per bind
  as well.
- fixes so set_peer_primary pre-screens addresses to be
  valid to this host.
- maxseg did not allow setting on an assoc basis. We needed
  to thus track and use an association value instead of a inp value.
- Fixed ep get of HB status to report back properly.
- use settings flag to tell if assoc level hb is on off not
  the timer.. since the timer may still run if unconf address
  are present.
- check for crazy ENABLE/DISABLE conditions.
- set and get of pmtud (fixed path mtu) not always taking into account ovh.
- Getting PMTU info on stcb only needs to return PMTUD_ENABLED if
  any net is doing PMTU discovery.
- Panic or warning fixed to not do so when a valid ip frag is
  taking place.
- sndrcvinfo appearing in both inp and stcb was full size, instead
  of the non-pad version. This saves about 92 bytes from each struct
  by carefully converting to use the smaller version.
- one-2-one model get(maxseg) would always get ep value, never the
  tcb's value.
- The delayed ack time could be under a tick, this fixes so
  it bounds it to at least 1 tick for platforms whos tick
  is more than a ms.
- Fragment interleave level set to wrong default value.
- Fragment interleave could not set level 0.
- Defered stream reset was broken due to a guard check and ntohl issue.
- Found two lock order reversals and fixed.
- Tighten up address checking, if the user gives an address the sa_len
  had better be set properly.
- Get asoc by assoc-id would return a locked tcb when it was asked
  not to if the tcb was in the restart hash.
- sysctl to dig down and get more association details

Reviewed by: gnn

17 years agoRefactor and rewrite in parts the SYN handling code on listen sockets
andre [Mon, 28 May 2007 11:03:53 +0000 (11:03 +0000)]
Refactor and rewrite in parts the SYN handling code on listen sockets
in tcp_input():

 o tighten the checks on allowed TCP flags to be RFC793 and
   tcp-secure conform
 o log check failures to syslog at LOG_DEBUG level
 o rearrange the code flow to be easier to follow
 o add KASSERTs to validate assumptions of the code flow

Add sysctl net.inet.tcp.syncache.rst_on_sock_fail defaulting to enable
that controls the behavior on socket creation failure for a otherwise
successful 3-way handshake.  The socket creation can fail due to global
memory shortage, listen queue limits and file descriptor limits.  The
sysctl allows to chose between two options to deal with this.  One is
to send a reset to the other endpoint to notify it about the failure
(default).  The other one is to ignore and treat the failure as a
transient error and have the other endpoint retransmit for another try.

Reviewed by: rwatson (in general)

17 years agoCheck fdopen return value.
kevlo [Mon, 28 May 2007 09:48:25 +0000 (09:48 +0000)]
Check fdopen return value.

Reviewed by: phk

17 years agoAdd a '-k' flag which is similar with its bzip2(1) counterpart,
delphij [Mon, 28 May 2007 08:20:46 +0000 (08:20 +0000)]
Add a '-k' flag which is similar with its bzip2(1) counterpart,
meaning that the user wants the input file to be left intact.

Feature request: Ighighi <ighighi gmail.com>
PR:  bin/103006
MFC after:  1 month

17 years agoFix probably copy&paste from chmod(1) - we change file flags here, not mode.
pjd [Mon, 28 May 2007 04:23:09 +0000 (04:23 +0000)]
Fix probably copy&paste from chmod(1) - we change file flags here, not mode.

17 years agoAdjust va_mask for setattr. FreeBSD doesn't have va_mask, so we initialize it
pjd [Mon, 28 May 2007 02:37:43 +0000 (02:37 +0000)]
Adjust va_mask for setattr. FreeBSD doesn't have va_mask, so we initialize it
based on individual fields beeing set. This doesn't work for setattr replay,
because va_type is set there, so we add AT_TYPE flag to va_mask, which won't
be accepted by zfs_setattr().

Reported by: kris

17 years agoWe should better ignore a break on gdb port if gdb is not enabled.
simokawa [Mon, 28 May 2007 02:20:40 +0000 (02:20 +0000)]
We should better ignore a break on gdb port if gdb is not enabled.

17 years ago- Remove unnecessary vnode internal locking - v_vflag is protect by vnode's
pjd [Mon, 28 May 2007 00:28:15 +0000 (00:28 +0000)]
- Remove unnecessary vnode internal locking - v_vflag is protect by vnode's
  lock (not vnode's interlock).
- Simplify code a bit.

17 years agoBecause we allocate componentname structures on stack, bzero() them before
pjd [Mon, 28 May 2007 00:26:20 +0000 (00:26 +0000)]
Because we allocate componentname structures on stack, bzero() them before
use just in case.

17 years agoFix compiles when user chooses to disable both ObjC and C++ support in
kan [Mon, 28 May 2007 00:25:07 +0000 (00:25 +0000)]
Fix compiles when user chooses to disable both ObjC and C++ support in
GCC.

Reported by: bz

17 years agoTuning for small packet handling
kmacy [Sun, 27 May 2007 22:07:47 +0000 (22:07 +0000)]
Tuning for small packet handling
- Double the number of descriptors that a single call to send can use
- Quadruple the number of descriptors that can be reclaimed per pass
- only run reclaim twice per second
- increase coalesce timer from 3.5us to 5us

fix printf warning on 64-bit platforms

17 years agoDon't bind queue to cpus if only one queue is in use
kmacy [Sun, 27 May 2007 22:04:30 +0000 (22:04 +0000)]
Don't bind queue to cpus if only one queue is in use

17 years agoDon't initialize the decrementer before initclocks() is called.
marcel [Sun, 27 May 2007 21:05:35 +0000 (21:05 +0000)]
Don't initialize the decrementer before initclocks() is called.
Use cpu_initclocks() for that as it assures that relevant locks
have been initialized.

17 years agoUniversally adopt most conventional spelling of acquire.
rwatson [Sun, 27 May 2007 20:50:23 +0000 (20:50 +0000)]
Universally adopt most conventional spelling of acquire.

17 years agoImprove both the PCI and PC Card descriptions of the RID.
imp [Sun, 27 May 2007 20:49:08 +0000 (20:49 +0000)]
Improve both the PCI and PC Card descriptions of the RID.

17 years agoEliminate an unused definition.
alc [Sun, 27 May 2007 20:34:26 +0000 (20:34 +0000)]
Eliminate an unused definition.

17 years agoFix broken binary issues with latest gcc 4.x due to bitfield signess
ariff [Sun, 27 May 2007 20:12:51 +0000 (20:12 +0000)]
Fix broken binary issues with latest gcc 4.x due to bitfield signess
mishaps for emu10k1 [1] and few other places.

Reported/Submitted/Tested by: Ed Schouten <ed@fxq.nl> [1]

17 years agoBring in a bunch of bug fixes and some code to support more chipsets.
joel [Sun, 27 May 2007 19:58:39 +0000 (19:58 +0000)]
Bring in a bunch of bug fixes and some code to support more chipsets.
Neither me nor Ariff have access to any of this hardware, so all tests
have been made by Konstantin and Artem.  Commit message mostly written
by Konstantin.

envy24:
- Add test code to support rear line-in input on 'Terratec DMX 6fire'
  audio card.  This code is also intended to be used in the future for
  support of cards, that have I2C-to-GPIO expanders wired between the
  control line of the audio codec and the Envy24, however such cards
  are too complex and i can't add that support without hardware sample
  of such board, i've already tried and failed.

envy24ht:
- Add support for 'AudioTrak Prodigy HD2'.
- Add support for 'AudioTrak Prodigy 7.1 XT'.
- Add support for 'ESI Juli@' (Works ok, DAC volume is hard-coded for
  the time being, so 'mixer vol ...' doesn't work, only 'mixer pcm
  ...' works). [1]
- Fix bug in the init data for M-Audio Revolution 5.1, that
  results in distorted sound.
- Add software volume control (now 'mixer pcm' works, thanks to Ariff).
- Add support for more samples rates - 176.4kHz and 192kHz.
- Fix problem with the 192kHz samples rate playback when 24.576MHz
  crystal is used on the board instead of 49.152MHz crystal.

spicds:
- Add support for Asahi Kasei flagship DAC - AK4396 (used in AudioTrak
  Prodigy HD2).

Submitted by: Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Tested by: Artem Antonov [1]
Reviewed by: ariff

17 years agoNormalize spelling and grammar in TCP hostcache comments.
rwatson [Sun, 27 May 2007 19:39:26 +0000 (19:39 +0000)]
Normalize spelling and grammar in TCP hostcache comments.

17 years agoSelect a more appealing spelling for the word acquire.
rwatson [Sun, 27 May 2007 19:24:00 +0000 (19:24 +0000)]
Select a more appealing spelling for the word acquire.

17 years agoRemove "XXX Giant" comments before calls to kdb_trap() -- the kernel
rwatson [Sun, 27 May 2007 19:16:45 +0000 (19:16 +0000)]
Remove "XXX Giant" comments before calls to kdb_trap() -- the kernel
debugger is quite capable of handling Giant-free execution at this
point.  Several other similar comments remain in trap.c on both i386
and amd64 awaiting analysis.

17 years agoImplement assert() in ncr.c using KASSERT() rather than explicitly testing
rwatson [Sun, 27 May 2007 19:08:57 +0000 (19:08 +0000)]
Implement assert() in ncr.c using KASSERT() rather than explicitly testing
the assertion and then calling kdb_enter().

17 years agoHave the processor defer all faults and exceptions for control
marcel [Sun, 27 May 2007 19:02:47 +0000 (19:02 +0000)]
Have the processor defer all faults and exceptions for control
speculative loads. This at least makes control speculative loads
work. In the future we should analyze which faults/exceptions
we want to handle rather than defer to avoid having to call the
recovery code when it's not strictly necessary.

17 years agoRather than repeatedly setting and discarding local variable 'o' based
rwatson [Sun, 27 May 2007 18:54:58 +0000 (18:54 +0000)]
Rather than repeatedly setting and discarding local variable 'o' based
on the return values of various run-time sysctl additions, just ignore
the return value.

Found with: Coverity Prevent(tm)
CID: 562

17 years agoIn tcp_timer_2msl(), tp can never become NULL, so don't check it for
rwatson [Sun, 27 May 2007 17:52:02 +0000 (17:52 +0000)]
In tcp_timer_2msl(), tp can never become NULL, so don't check it for
NULL before entering tcp_trace().

Found with: Coverity Prevent(tm)
CID: 1840

17 years agoAdd parens around *free in *free++ in mbp_count() so that mbp_count()
rwatson [Sun, 27 May 2007 17:38:36 +0000 (17:38 +0000)]
Add parens around *free in *free++ in mbp_count() so that mbp_count()
actually works.  mbp_count() turns out only to be used in debugging code
in if_patm_intr.c, so this bug did not affect much in practice.

Found with: Coverity Prevent(tm)
CID: 1943

17 years agoRemove amountpipes counter for pipes -- this replicates the function of
rwatson [Sun, 27 May 2007 17:33:10 +0000 (17:33 +0000)]
Remove amountpipes counter for pipes -- this replicates the function of
existing UMA statistics for pipes, and allows us to get rid of both the
per-pipe dtor and two atomic operations per pipe required to maintain
the counter.

17 years agoDon't check curproc->p_comm for NULL as it is an array allocated as part of
rwatson [Sun, 27 May 2007 17:27:59 +0000 (17:27 +0000)]
Don't check curproc->p_comm for NULL as it is an array allocated as part of
struct proc.

Found with: Coverity Prevent(tm)
CID: 2096

17 years agoIn ncp_conn_alloc(), a new credential pointer, 'owner', is set up to point
rwatson [Sun, 27 May 2007 17:14:33 +0000 (17:14 +0000)]
In ncp_conn_alloc(), a new credential pointer, 'owner', is set up to point
at the credential to be used by the connection.  However, the pointer's
value was ignored when actually setting hcp->nc_owner.

(1) Do set nc_owner to the owner pointer value so that the credential is
    not discarded after being carefully configured.

(2) In the case where we create a new credential with modified uid, copy
    the existing credential to initialize non-uid fields to existing
    values, which will lead to a fully initialized MAC label, groups, etc.

Found with: Coverity Prevent(tm)
CID: 2226

17 years agoDon't assign sp to the value of s when we're about to assign it instead to
rwatson [Sun, 27 May 2007 17:02:54 +0000 (17:02 +0000)]
Don't assign sp to the value of s when we're about to assign it instead to
s + strlen(s).

Found with: Coverity Prevent(tm)
CID: 2243

17 years agoChange default value of hw.firewire.dcons_crom.force_console to 0
simokawa [Sun, 27 May 2007 14:00:34 +0000 (14:00 +0000)]
Change default value of hw.firewire.dcons_crom.force_console to 0
for least astonishment.

MFC after: 3 days

17 years agoMake compile without GDB option.
simokawa [Sun, 27 May 2007 13:58:43 +0000 (13:58 +0000)]
Make compile without GDB option.

MFC after: 3 days

17 years agoRemove #if 0'd check for 0-size allocations, which if enabled, called
rwatson [Sun, 27 May 2007 13:13:46 +0000 (13:13 +0000)]
Remove #if 0'd check for 0-size allocations, which if enabled, called
kdb_enter().

17 years agoRather than entering the debugger via kdb_enter() when detecting memory
rwatson [Sun, 27 May 2007 13:12:36 +0000 (13:12 +0000)]
Rather than entering the debugger via kdb_enter() when detecting memory
corruption under SMBUFS_NAME_DEBUG, panic() with the same error message.

17 years agoRather than entering the debugger via kdb_enter() in the event the
rwatson [Sun, 27 May 2007 13:10:16 +0000 (13:10 +0000)]
Rather than entering the debugger via kdb_enter() in the event the
root vnode is unexpectedly locked under NULLFS_DEBUG in nullfs and
then returning EDEADLK, panic.

17 years agoRather than entering DDB with the message "unexpected error" and wedging
rwatson [Sun, 27 May 2007 12:45:05 +0000 (12:45 +0000)]
Rather than entering DDB with the message "unexpected error" and wedging
the card, panic explicitly if EN_DEBUG is enabled.  In the (default)
case of !EN_DEBUG, the driver resets the card.  Probably this case
shouldn't exist at all.

17 years agosilence some compiler complaints
sam [Sun, 27 May 2007 05:38:44 +0000 (05:38 +0000)]
silence some compiler complaints

17 years agoAdd man pages for mmc (the mmc bus) and mmcsd (the memory card
imp [Sun, 27 May 2007 05:01:19 +0000 (05:01 +0000)]
Add man pages for mmc (the mmc bus) and mmcsd (the memory card
implementation).

17 years agofix compile warning by removing redundant LOG_ERR define
kmacy [Sun, 27 May 2007 04:39:29 +0000 (04:39 +0000)]
fix compile warning by removing redundant LOG_ERR define

17 years agoset IFF_OACTIVE to avoid hangs when the tx ring fills up
kmacy [Sun, 27 May 2007 04:39:07 +0000 (04:39 +0000)]
set IFF_OACTIVE to avoid hangs when the tx ring fills up

17 years agoThere are too many false positive LORs reported by WITNESS, so when ZFS
pjd [Sat, 26 May 2007 21:37:14 +0000 (21:37 +0000)]
There are too many false positive LORs reported by WITNESS, so when ZFS
debug is turned off, initialize locks with NOWITNESS flag.
At some point I'll get back to them, we would probably need BLESSING
functionality, which is currently turned off by default.

17 years agolex(1) no longer installs headers into GCC-internal dirs
ru [Sat, 26 May 2007 20:17:19 +0000 (20:17 +0000)]
lex(1) no longer installs headers into GCC-internal dirs
(since src/usr.bin/lex/Makefile,v 1.20).

17 years agoA careful reading of the disclaimer that is required to download the
imp [Sat, 26 May 2007 05:23:36 +0000 (05:23 +0000)]
A careful reading of the disclaimer that is required to download the
SD Simplified specification, as well as other SD and SDIO
implemenations I've examined, suggest this disclaimer may be required.
It is unclear to me exactly what the license would be for, or why it
might be required.  Err on the side of caution and include this
disclaimer so anybody deploying this code can judge for themselves.  I
have no further unformation about the details.

17 years agoTo avoid a deadlock when handling .. directory during a lookup, we unlock
pjd [Fri, 25 May 2007 22:23:38 +0000 (22:23 +0000)]
To avoid a deadlock when handling .. directory during a lookup, we unlock
parent vnode and relock it after locking child vnode. The problem was that
we always relock it exclusively, even when it was share-locked.

Discussed with: jeff

17 years agoWe no longer need to put namecache entries onto temporary mplist.
pjd [Fri, 25 May 2007 22:19:49 +0000 (22:19 +0000)]
We no longer need to put namecache entries onto temporary mplist.
It was useful in revision 1.86, but should have been removed in 1.89.

17 years agoThe cache_leaf_test() function seems to be unused, so remove it.
pjd [Fri, 25 May 2007 22:16:17 +0000 (22:16 +0000)]
The cache_leaf_test() function seems to be unused, so remove it.

17 years agoThe printf %b list in PRINT_TH_FLAGS has to be in octal numbering.
andre [Fri, 25 May 2007 21:28:49 +0000 (21:28 +0000)]
The printf %b list in PRINT_TH_FLAGS has to be in octal numbering.
Thus convert \8 to \10 and the warnings go away.

Pointed out by: sam, ru, thompsa

17 years ago- Use m_getcl() rather than m_getjcl() when we're allocating 2KB
gallatin [Fri, 25 May 2007 19:38:32 +0000 (19:38 +0000)]
- Use m_getcl() rather than m_getjcl() when we're allocating 2KB
clusters.  This helps quite a bit on my low end machines (improves
performance by about 300Kpps when being blasted by a hardware
packet generator).
- Include one extended f/w counter forgotten in earlier commit

Sponsored by: Myricom Inc.

17 years agoadd missed header
kmacy [Fri, 25 May 2007 18:29:17 +0000 (18:29 +0000)]
add missed header

17 years agoRemove unnecessary free argument casts.
brian [Fri, 25 May 2007 17:53:38 +0000 (17:53 +0000)]
Remove unnecessary free argument casts.
Don't abuse arcname's constness.

17 years agoupdate license headers
kmacy [Fri, 25 May 2007 16:42:25 +0000 (16:42 +0000)]
update license headers

17 years agoadd toe device header missed by previous commit
kmacy [Fri, 25 May 2007 16:17:59 +0000 (16:17 +0000)]
add toe device header missed by previous commit

17 years agoCleanup after previous commit.
brueffer [Fri, 25 May 2007 16:05:17 +0000 (16:05 +0000)]
Cleanup after previous commit.

17 years agoAdd a new option for ppp.conf: rad_port_id. It allows to
novel [Fri, 25 May 2007 13:45:49 +0000 (13:45 +0000)]
Add a new option for ppp.conf: rad_port_id. It allows to
change the way of what ppp submits to the RADIUS server
as NAS-Port-Id. Possible options are: the PID of the process
owning the corresponding interface, tun(4) interface number,
interface index (as it would get returned by if_nametoindex(3)),
or it's possible to keep the default behavior. Check the ppp(8)
manual page for details.

PR: bin/112764
Submitted by: novel (myself)
Reviewed by: flz
Approved by: flz
MFC after: 1 month

17 years agoInclude string.h for memcpy() and memcmp().
delphij [Fri, 25 May 2007 13:43:14 +0000 (13:43 +0000)]
Include string.h for memcpy() and memcmp().

17 years agoMake the comparsion more obvious.
delphij [Fri, 25 May 2007 13:13:12 +0000 (13:13 +0000)]
Make the comparsion more obvious.

17 years agoConst'ify and ANSIfy the internal interfaces of regex(3).
delphij [Fri, 25 May 2007 12:44:58 +0000 (12:44 +0000)]
Const'ify and ANSIfy the internal interfaces of regex(3).
This is the final change that makes libc to compile with
WERROR on my amd64 crashbox.

17 years agoANSIfy function definitions, reduces diff against OpenBSD.
delphij [Fri, 25 May 2007 10:40:33 +0000 (10:40 +0000)]
ANSIfy function definitions, reduces diff against OpenBSD.

17 years agoAlso fix the misspelling of hes_resolve().
ru [Fri, 25 May 2007 09:58:25 +0000 (09:58 +0000)]
Also fix the misspelling of hes_resolve().

Submitted by: Danny Braniss

17 years agoThe usage of "info" in init_hash() is read-only, so constify
delphij [Fri, 25 May 2007 09:57:48 +0000 (09:57 +0000)]
The usage of "info" in init_hash() is read-only, so constify
the internal interface instead of casting away the constant
constraint upon calling.

17 years ago(MFp4)
kmacy [Fri, 25 May 2007 09:48:20 +0000 (09:48 +0000)]
(MFp4)
        - upgrade to reflect state of 1.0.0.86
        - move from firmware rev 3.2 to 4.0.0
        - import driver bits for offload functionality
- remove binary distribution clause from top level files as it
  runs counter to the intent of purely supporting the hardware

MFC after: 3 days

17 years agoUpdate for the 4.21 import (manuals didn't change).
ru [Fri, 25 May 2007 09:25:05 +0000 (09:25 +0000)]
Update for the 4.21 import (manuals didn't change).

17 years agoRe-add support for NIS netgroups (heavily modified from patch in PR)
des [Fri, 25 May 2007 07:50:18 +0000 (07:50 +0000)]
Re-add support for NIS netgroups (heavily modified from patch in PR)

PR: bin/112955
Submitted by: A. Blake Cooper <blake@cluebie.net>
MFC after: 3 weeks

17 years agodo not directly call rtfree() to meet an assumption in the callee.
jinmei [Fri, 25 May 2007 06:44:00 +0000 (06:44 +0000)]
do not directly call rtfree() to meet an assumption in the callee.
(this fix suppresses a warning message appearing in the boot time on
IPv6-enabled systems)

Approved by: gnn (mentor)

17 years agoAdd a sysctl, 'debug.acpi.suspend_bounce', that causes the system to bounce
njl [Fri, 25 May 2007 05:26:21 +0000 (05:26 +0000)]
Add a sysctl, 'debug.acpi.suspend_bounce', that causes the system to bounce
back in a simulated resume instead of entering the requested suspend state.
This helps in testing drivers separately from the acpi suspend code.  To
test your drivers, set debug.acpi.suspend_bounce=1 and then run
acpiconf -s3 (or 4).

MFC after: 1 day

17 years agoInclude stand.h for loader.
simokawa [Fri, 25 May 2007 05:00:39 +0000 (05:00 +0000)]
Include stand.h for loader.

MFC after: 3 days

17 years ago- When I introduce wide character enabled ncurses into base, all headers
rafan [Fri, 25 May 2007 02:27:46 +0000 (02:27 +0000)]
- When I introduce wide character enabled ncurses into base, all headers
  are installed twice (once in non-widec version, onec in widec version).
  Headers with widec enabled are compatible with non-widec version
  for libraries. However, if you do a repeat build/install, the curses.h
  is always overwritten. The reason is that headers and statics libraries
  are installed with -S option to preserve their mtime if no actual changes,
  which saves time when doing incremental builds. The curses.h is installed
  by non-widec ncurses first, then by widec ncurses. So next time, it happens
  again. You see something like this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h

  The solution is to disable installing headers in non-widec version. Now
  you see this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)

  For form/panel/menu libraries, the headers are the same for both version.
  To be consistent with ncurses, I also disable the installation in non-widec
  version.

Reported by: des
Reviewed by: ru
Thanks to: ru
Approved by: delphij (mentor)
MFC after: 2 weeks

17 years agoremove unneccessary curcpu reference in setting mmfsa
kmacy [Fri, 25 May 2007 01:55:51 +0000 (01:55 +0000)]
remove unneccessary curcpu reference in setting mmfsa