]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoDon't declare ___res_ext() twice.
stefanf [Mon, 12 Sep 2005 15:53:28 +0000 (15:53 +0000)]
Don't declare ___res_ext() twice.

19 years agouse monotonic `time_uptime' instead of `time_second'
jkim [Mon, 12 Sep 2005 15:31:28 +0000 (15:31 +0000)]
use monotonic `time_uptime' instead of `time_second'

Approved by: anholt (mentor)
Discussed on: arch

19 years agoClean up.
le [Mon, 12 Sep 2005 14:31:49 +0000 (14:31 +0000)]
Clean up.

Remove unused functions.

Reduce indentation level by reverting the logic of the enclosing
conditional statement.

19 years agoo Add shutdown(2) regression tests. At the moment we cannot pass
maxim [Mon, 12 Sep 2005 14:12:09 +0000 (14:12 +0000)]
o Add shutdown(2) regression tests.  At the moment we cannot pass
shutdown-on-non connected socket test, kern/84761.

19 years agoWhen message can't fit into socket receive buffer return ENOBUFS
glebius [Mon, 12 Sep 2005 14:11:11 +0000 (14:11 +0000)]
When message can't fit into socket receive buffer return ENOBUFS
to userland program instead of letting it wait until end of days.

PR: kern/85907

19 years agoopt_pc98.h is not needed.
nyan [Mon, 12 Sep 2005 13:50:56 +0000 (13:50 +0000)]
opt_pc98.h is not needed.

19 years agoMove the declaration of __cleanup to libc_private.h as it is used in both
stefanf [Mon, 12 Sep 2005 13:46:32 +0000 (13:46 +0000)]
Move the declaration of __cleanup to libc_private.h as it is used in both
stdio/ and stdlib/.  Don't define __cleanup twice.

19 years agomore #ifndef PC98. This really fix the pc98 tinderbox.
nyan [Mon, 12 Sep 2005 13:40:10 +0000 (13:40 +0000)]
more #ifndef PC98.  This really fix the pc98 tinderbox.

19 years agoUpdate for RELENG_6.
kensmith [Mon, 12 Sep 2005 13:31:33 +0000 (13:31 +0000)]
Update for RELENG_6.

Pointed out by: Many on current@.
MFC after: 1 day

19 years agoRemove DFLAG_SEEKABLE from fifo file descriptors: fifos are not seekable
rwatson [Mon, 12 Sep 2005 12:15:12 +0000 (12:15 +0000)]
Remove DFLAG_SEEKABLE from fifo file descriptors: fifos are not seekable
according to POSIX, not to mention the fact that it doesn't make sense
(and hence isn't really implemented).  This causes the fifo_misc
regression test to succeed.

19 years agoAdd fifo_misc, a regression test to hold misc. functional tests for fifos
rwatson [Mon, 12 Sep 2005 11:58:14 +0000 (11:58 +0000)]
Add fifo_misc, a regression test to hold misc. functional tests for fifos
that don't obviously fit into create, open, and io.  For now, add only a
regression test to make sure that lseek() fails with ESPIPE (which it
doesn't).

19 years agoUse different temporary directory templates for fifo_io and fifo_open so
rwatson [Mon, 12 Sep 2005 11:43:51 +0000 (11:43 +0000)]
Use different temporary directory templates for fifo_io and fifo_open so
that if the tests fail to GC their working spaces, it's clear which it is.

19 years agoRemove this file as it's mostly out of date. Up-to-date info such as
brian [Mon, 12 Sep 2005 11:20:07 +0000 (11:20 +0000)]
Remove this file as it's mostly out of date.  Up-to-date info such as
the program's origin is already in the man page.

Update requested by: Xavier Venient & Jason McIntyre

19 years agoOnly poll the fifo for read events if the fifo is attached to a readable
rwatson [Mon, 12 Sep 2005 10:16:18 +0000 (10:16 +0000)]
Only poll the fifo for read events if the fifo is attached to a readable
file descriptor.  Otherwise, the read end of a fifo might return that it
is writable (which it isn't).

Only poll the fifo for write events if the fifo attached to a writable
file descriptor.  Otherwise, the write end of a fifo might return that
it is readable (which it isn't).

In the event that a file is FREAD|FWRITE (which is allowed by POSIX, but
has undefined behavior), we poll for both.

MFC after: 3 days

19 years agoAfter going to some trouble to identify only the write-related events
rwatson [Mon, 12 Sep 2005 10:13:15 +0000 (10:13 +0000)]
After going to some trouble to identify only the write-related events
to poll the write socket for, the fifo polling code proceeded to poll
for the complete set of events.  Use 'levents' instead of 'events' as
the argument to poll, and only poll the write socket if there is
interest in write events.

MFC after: 3 days

19 years agoWhen a writer opens a fifo, wake up the read socket for read, not the
rwatson [Mon, 12 Sep 2005 10:07:21 +0000 (10:07 +0000)]
When a writer opens a fifo, wake up the read socket for read, not the
write socket.

MFC after: 3 days

19 years agoAdd an assertion that fifo_open() doesn't race against other threads
rwatson [Mon, 12 Sep 2005 10:06:38 +0000 (10:06 +0000)]
Add an assertion that fifo_open() doesn't race against other threads
while sleeping to allocate fifo state: due to using the vnode lock to
serialize access to a fifo during open, it shouldn't happen (tm).

MFC after: 3 days

19 years agoRather than reaching into the internals of the UNIX domain socket code
rwatson [Mon, 12 Sep 2005 10:05:08 +0000 (10:05 +0000)]
Rather than reaching into the internals of the UNIX domain socket code
by calling uipc_connect2() to connect two socket endpoints to create a
fifo, call soconnect2().

MFC after: 3 days

19 years agoAdd fifo_io, a regression test for I/O operations on POSIX fifos. We
rwatson [Mon, 12 Sep 2005 09:42:29 +0000 (09:42 +0000)]
Add fifo_io, a regression test for I/O operations on POSIX fifos.  We
currently can't pass this regression test due to broken poll() and
select() support for fifos, but past the basic I/O operation tests.

19 years agoIntroduce vfs_read_dirent() which can help VOP_READDIR() implementations
phk [Mon, 12 Sep 2005 08:46:07 +0000 (08:46 +0000)]
Introduce vfs_read_dirent() which can help VOP_READDIR() implementations
by handling all the cookie stuff.

19 years agoClean up prototypes.
phk [Mon, 12 Sep 2005 08:03:15 +0000 (08:03 +0000)]
Clean up prototypes.

19 years agoRemove ng_callout_init_mtx() macro. Mutexed callouts are incompatible
glebius [Mon, 12 Sep 2005 07:41:31 +0000 (07:41 +0000)]
Remove ng_callout_init_mtx() macro. Mutexed callouts are incompatible
with netgraph(4).

19 years agoThis appears to be good for some folks, but really bad for others.
imp [Mon, 12 Sep 2005 05:35:11 +0000 (05:35 +0000)]
This appears to be good for some folks, but really bad for others.
Until we know why, back out 1.127.

19 years agoSince opti_detect is now only called on !PC98 machines, only declare
imp [Mon, 12 Sep 2005 04:12:50 +0000 (04:12 +0000)]
Since opti_detect is now only called on !PC98 machines, only declare
and define there as well.  This should fix the pc98 tinderbox.

19 years agoMFamd64: use register_t's.
obrien [Mon, 12 Sep 2005 03:34:05 +0000 (03:34 +0000)]
MFamd64: use register_t's.

19 years agoNote that Keyspan is also InnoSys Inc.
obrien [Mon, 12 Sep 2005 03:32:46 +0000 (03:32 +0000)]
Note that Keyspan is also InnoSys Inc.

19 years agoDon't retry when vget() returns ENOENT in the nonblocking case due to the
tegge [Mon, 12 Sep 2005 01:48:57 +0000 (01:48 +0000)]
Don't retry when vget() returns ENOENT in the nonblocking case due to the
vnode being doomed.  It causes a livelock.

19 years agoGiant is no longer needed here.
tegge [Mon, 12 Sep 2005 01:21:42 +0000 (01:21 +0000)]
Giant is no longer needed here.

19 years agoAdd a couple of missing MLINKS.
stefanf [Sun, 11 Sep 2005 20:59:52 +0000 (20:59 +0000)]
Add a couple of missing MLINKS.

19 years agoEliminate unused definitions.
alc [Sun, 11 Sep 2005 20:51:15 +0000 (20:51 +0000)]
Eliminate unused definitions.

19 years agoRestore the 929X support that got nuked in merge
mjacob [Sun, 11 Sep 2005 19:58:19 +0000 (19:58 +0000)]
Restore the 929X support that got nuked in merge

19 years agoCanonize the include of acpi.h.
obrien [Sun, 11 Sep 2005 18:39:03 +0000 (18:39 +0000)]
Canonize the include of acpi.h.

19 years agoAdd the {get,put}ino man pages for those people which got them in the
netchild [Sun, 11 Sep 2005 18:19:42 +0000 (18:19 +0000)]
Add the {get,put}ino man pages for those people which got them in the
small window. Add the date to the T/TCP entry.

19 years agoPer a request from Nick Triantos of nVidia, nVidia's legal department asked
obrien [Sun, 11 Sep 2005 17:50:20 +0000 (17:50 +0000)]
Per a request from Nick Triantos of nVidia, nVidia's legal department asked
that we provide their license document beside their nForce MCP object code.

19 years agoAfter going to some trouble to create a temporary directory in which to run
rwatson [Sun, 11 Sep 2005 17:41:32 +0000 (17:41 +0000)]
After going to some trouble to create a temporary directory in which to run
fifo tests, chdir to it.

19 years agoFix hang at init for MagicMedia 256A[VX] chips. [1]
netchild [Sun, 11 Sep 2005 17:30:27 +0000 (17:30 +0000)]
Fix hang at init for MagicMedia 256A[VX] chips. [1]

In case this causes trouble for some other chipsets add a comment how to
proceed. If we don't get bugreports, this should be removed after a while
(some releases?).

PR: 56617 [1], 29465, 39260, 40574, 68225
Submitted by: Matthew E. Gove <mgove@comcast.net> [1]

19 years agoThe arguments for time2posix() and posix2time() are time_t values, not
stefanf [Sun, 11 Sep 2005 17:09:50 +0000 (17:09 +0000)]
The arguments for time2posix() and posix2time() are time_t values, not
pointers.

19 years agoForward declare z_errmsg with static linkage since it is defined
rodrigc [Sun, 11 Sep 2005 16:13:02 +0000 (16:13 +0000)]
Forward declare z_errmsg with static linkage since it is defined
with static linkage later in the file.  Eliminates GCC 4.0 error.

19 years agoForward declare atalkdomain with static linkage, not extern, since
rodrigc [Sun, 11 Sep 2005 16:04:56 +0000 (16:04 +0000)]
Forward declare atalkdomain with static linkage, not extern, since
it is defined with static linkage later in the file.  Eliminates
GCC 4.0 error.

19 years agoCast bf_sysid to const char * when passing it to strncmp(), because
rodrigc [Sun, 11 Sep 2005 16:02:14 +0000 (16:02 +0000)]
Cast bf_sysid to const char * when passing it to strncmp(), because
strncmp does not take an unsigned char *.  Eliminates warning with GCC 4.0.

19 years agoDo not declare M_NTFSMNT with extern linkage here, since
rodrigc [Sun, 11 Sep 2005 15:57:07 +0000 (15:57 +0000)]
Do not declare M_NTFSMNT with extern linkage here, since
it is defined with static linkage in ntfs_vfsops.c.
Fixes compilation with GCC 4.0.

19 years agoA new version of rev. 1.4: postpone a temporary file creation
maxim [Sun, 11 Sep 2005 14:29:58 +0000 (14:29 +0000)]
A new version of rev. 1.4: postpone a temporary file creation
until we realize if ipfw(4) ever used.

PR: bin/85970
Submitted by: Andre Albsmeier
MFC after: 3 days

19 years agoPower up the external amplifiers additionally to powering up the DAC and ADC.
netchild [Sun, 11 Sep 2005 14:15:05 +0000 (14:15 +0000)]
Power up the external amplifiers additionally to powering up the DAC and ADC.

PR: 47029
Submitted by: Anish Mistry <mistry.7@osu.edu>
Tested by: David Murphy <dm@dmz.ie>

19 years agoAdd some ad_wait_init() calls to fix some problems in some configs (e.g.
netchild [Sun, 11 Sep 2005 13:59:02 +0000 (13:59 +0000)]
Add some ad_wait_init() calls to fix some problems in some configs (e.g.
PC98, CS4231A, "pcm0: play interrupt timeout").

PR: 45682
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>

19 years agoAllow to record non 8bit-mono formats even in half-duplex configurations.
netchild [Sun, 11 Sep 2005 13:49:24 +0000 (13:49 +0000)]
Allow to record non 8bit-mono formats even in half-duplex configurations.

PR: 45679
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>

19 years agoAdd fifo_open, a basic regression test for opening fifos, which tests
rwatson [Sun, 11 Sep 2005 13:03:36 +0000 (13:03 +0000)]
Add fifo_open, a basic regression test for opening fifos, which tests
the blocking and non-blocking forms of open based on the POSIX spec for
now O_NONBLOCK should be handled.

19 years agoFix typo: ${PORTDIR} -> ${PORTSDIR}.
cperciva [Sun, 11 Sep 2005 12:55:07 +0000 (12:55 +0000)]
Fix typo: ${PORTDIR} -> ${PORTSDIR}.

Apologies to everyone who has run portsnap in 7.0-CURRENT since
Tuesday; if there is a file "/.portsnap.INDEX" on your system, you can
delete it (or even better, move it to /usr/ports/.portsnap.INDEX).

Big pointy hat to: cperciva
Reported that things weren't working properly: Aleksander Fafula

19 years agoDo not destroy the queue mutex until the thread is done with it.
phk [Sun, 11 Sep 2005 12:35:32 +0000 (12:35 +0000)]
Do not destroy the queue mutex until the thread is done with it.

19 years agoStop leaking a lock. This used to cause a propagate_priority() page fault
mlaier [Sun, 11 Sep 2005 11:55:39 +0000 (11:55 +0000)]
Stop leaking a lock.  This used to cause a propagate_priority() page fault
when setting syncdev and syncpeer.

Reported by: Dominic Marks

19 years agoFix misdetection of the sound chip on PC98 systems. The submitter doesn't
netchild [Sun, 11 Sep 2005 10:07:12 +0000 (10:07 +0000)]
Fix misdetection of the sound chip on PC98 systems. The submitter doesn't
believe that there are PC98 systems with an OPTi chip.

I don't know enough about this special PC architecture to be sure about
this, so let's find out by letting people with such a system complain in
case this commit breaks the sound system for them. It's easy to revert
then.

PR: 45673
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>

19 years agoFix a bug in volume calculation, this sometimes gives a USB audio device an
netchild [Sun, 11 Sep 2005 09:15:42 +0000 (09:15 +0000)]
Fix a bug in volume calculation, this sometimes gives a USB audio device an
unexpected value (when the volume is high).

Submitted by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>

19 years agoRelocate witness_levelall(), witness_leveldescendents(), and
truckman [Sun, 11 Sep 2005 07:57:06 +0000 (07:57 +0000)]
Relocate witness_levelall(), witness_leveldescendents(), and
witness_displaydescendants() so that they are protected by
"#ifdef DDB/#endif" to unbreak kernels not using "option DDB".

MFC after: 3 weeks

19 years agoThe kernel-depend target doesn't get any information from "compile-with",
obrien [Sun, 11 Sep 2005 07:33:43 +0000 (07:33 +0000)]
The kernel-depend target doesn't get any information from "compile-with",
so repeat the includes paths for that target.

19 years agoClaim frames corresponding to tl(0|1)_intr and tl0_trap as well. I
marcel [Sun, 11 Sep 2005 06:52:14 +0000 (06:52 +0000)]
Claim frames corresponding to tl(0|1)_intr and tl0_trap as well.  I
think that's the lot, but it's hard to understand the exception code
by mere glancing at it.

MFC after: 1 week

19 years agoUnwind across intrframes as well. While here, better handle bottom of
marcel [Sun, 11 Sep 2005 05:55:24 +0000 (05:55 +0000)]
Unwind across intrframes as well. While here, better handle bottom of
stack by claiming the frame when the IP is 0. It's a bit of a kluge,
but avoids screens full of bogus frames.

MFC after: 1 week

19 years agoUnwind across intrframes as well.
marcel [Sun, 11 Sep 2005 05:36:30 +0000 (05:36 +0000)]
Unwind across intrframes as well.

MFC after: 1 week

19 years agoChange hw.pci.do_powerstate from a boolean to a range. 0 means the
imp [Sun, 11 Sep 2005 04:09:44 +0000 (04:09 +0000)]
Change hw.pci.do_powerstate from a boolean to a range.  0 means the
same as today: do no power management.  1 means be conservative about
what you power down (any device class that has caused problems gets
added here).  2 means be agressive about what gets powered down (any
device class that's fundamental to the system is here).  3 means power
them all down, reguardless.  The default is 1.

The effect in the default system is to add mass storage devices to the
list that we don't power down.  From all the pciconf -l lists that
I've seen for the aac and amr issue, the bad device has been a mass
storage device class.

This is an attempt at a compromise between the very small number of
systems that have extreme issues with powerdown, and the very large
number of systems that gain real benefits from powerdown (I get about
20% more battery life when I attach a minimal set of drivers on my
Sony).  Hopefully it will strike the proper balance.

MFC After: 3 days (before next beta)

19 years agoDon't pollute the entire kernel build with -I$S/contrib/dev/ath and
obrien [Sun, 11 Sep 2005 03:38:18 +0000 (03:38 +0000)]
Don't pollute the entire kernel build with -I$S/contrib/dev/ath and
-I$S/contrib/dev/ath/freebsd.  "ATH_BUILDING_FROM_SOURCE" can be defined to
globally get back -I$S/contrib/dev/ath.

19 years agoAllow one to access the cached values for CMDREG, CACHELNSZ, MINGNT,
imp [Sun, 11 Sep 2005 03:22:03 +0000 (03:22 +0000)]
Allow one to access the cached values for CMDREG, CACHELNSZ, MINGNT,
MAXLAT and LATTIMER.

Improve error message when a bogus RID type is requested for a bar.

19 years agoDon't pollute the entire kernel build with -I$S/contrib/ipfilter.
obrien [Sun, 11 Sep 2005 02:27:34 +0000 (02:27 +0000)]
Don't pollute the entire kernel build with -I$S/contrib/ipfilter.

19 years agoDon't pollute the entire kernel build with -I$S/contrib/pf.
obrien [Sun, 11 Sep 2005 02:04:04 +0000 (02:04 +0000)]
Don't pollute the entire kernel build with -I$S/contrib/pf.

19 years agoDon't pollute the entire kernel build with -I$S/contrib/ngatm.
obrien [Sun, 11 Sep 2005 01:28:05 +0000 (01:28 +0000)]
Don't pollute the entire kernel build with -I$S/contrib/ngatm.

19 years agoDon't pollute the entire kernel build with -I$S/dev/twa.
obrien [Sun, 11 Sep 2005 00:52:05 +0000 (00:52 +0000)]
Don't pollute the entire kernel build with -I$S/dev/twa.

19 years agoUnwind across trap frames. Handles all entry points, except the EPC
marcel [Sun, 11 Sep 2005 00:47:03 +0000 (00:47 +0000)]
Unwind across trap frames. Handles all entry points, except the EPC
syscall. This is an entry from userland anyway.

MFC after: 1 week

19 years agoFor HEAD, install a kernel with debug information if DEBUG is a kernel
obrien [Sun, 11 Sep 2005 00:22:21 +0000 (00:22 +0000)]
For HEAD, install a kernel with debug information if DEBUG is a kernel
config option.  It is too easy to loose the build directory and not have
symbols for kgdb to read.

19 years agoUnwind across trapframes. All kernel entries are handled.
marcel [Sat, 10 Sep 2005 23:11:54 +0000 (23:11 +0000)]
Unwind across trapframes. All kernel entries are handled.

MFC after: 1 week

19 years agoStyle issue: Don't include <wchar.h> where it is not actually needed.
kientzle [Sat, 10 Sep 2005 22:58:06 +0000 (22:58 +0000)]
Style issue:  Don't include <wchar.h> where it is not actually needed.
(wchar_t is defined in stddef.h, and only two files need more than that.)

Portability:  Since the wchar requirements are really quite modest,
it's easy to define basic replacements for wcslen, wcscmp, wcscpy,
etc, for use on systems that lack <wchar.h>.  In particular, this allows
libarchive to be used on older OpenBSD systems.

19 years agoComment out ofw_console 'screen' entry and zs tty entries.
grehan [Sat, 10 Sep 2005 22:46:03 +0000 (22:46 +0000)]
Comment out ofw_console 'screen' entry and zs tty entries.
The OpenFirmware console isn't used on real systems anymore and
I never get to multi-user mode in psim. There are problems with
zs that need to be resolved before these lines can be enabled.

This eliminates disconcerting warnings on boot.

MFC after: 2 days

19 years agoUnwind across trap frames. This adds most of the meat. The sniffer
marcel [Sat, 10 Sep 2005 22:03:09 +0000 (22:03 +0000)]
Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week

19 years agoIn ext2_mountfs(), check that the superblock size, SBSIZE,
rodrigc [Sat, 10 Sep 2005 21:30:49 +0000 (21:30 +0000)]
In ext2_mountfs(), check that the superblock size, SBSIZE,
is aligned with the sectorsize value returned by GEOM, before
doing a bread() of the superblock.
This eliminates a panic when trying the following on an empty CD-ROM drive:
mount_ext2fs /dev/acd0 /mnt

Reviewed by: phk

19 years agoAdd fifo_create, a simple regression test for mkfifo(2).
rwatson [Sat, 10 Sep 2005 21:09:26 +0000 (21:09 +0000)]
Add fifo_create, a simple regression test for mkfifo(2).

19 years agoFix boot-time hang/panic on G3 systems when modifying IBAT0 in
grehan [Sat, 10 Sep 2005 21:03:10 +0000 (21:03 +0000)]
Fix boot-time hang/panic on G3 systems when modifying IBAT0 in
pmap_bootstrap by using the sync;isync big hammer to make sure
all prior operations have completed.

Reported by: Nathan Whitehorn <nathan at uchicago edu>
MFC after: 2 days

19 years agoUnwind across trap frames. This adds most of the meat. The sniffer
marcel [Sat, 10 Sep 2005 21:01:36 +0000 (21:01 +0000)]
Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week

19 years agoAdd mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's
rwatson [Sat, 10 Sep 2005 20:47:02 +0000 (20:47 +0000)]
Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's
mentioned in the description.

MFC after: 2 days

19 years agoUnwind across trap frames. This adds most of the meat. The sniffer
marcel [Sat, 10 Sep 2005 20:12:52 +0000 (20:12 +0000)]
Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week

19 years agoAdd a kluge to allow kgdb(1) to inject its own frame sniffer in the
marcel [Sat, 10 Sep 2005 18:25:53 +0000 (18:25 +0000)]
Add a kluge to allow kgdb(1) to inject its own frame sniffer in the
list of frame sniffers so that trapframes can be detected. The kluge
is needed because this version of gdb only supports appending a
sniffer to the list of sniffers and the moment kgdb gets a chance to
add its own frame sniffer, the target's default frame sniffer is
already in the list. Since the default frame sniffer claims any
frame thrown at it, kgdb's frame sniffer never gets to smell (a
process much akin to tasting, but with lesser chance of hurling :-)

This commit adds dummy frame sniffers that never claim a frame and
as such don't fix anything yet. However, we now have frame sniffers
and they are being called, so it's just a matter of adding meat to
the bones and we'll be able to properly unwind across trapframes.

MFC after: 1 week

19 years ago- channel.h
netchild [Sat, 10 Sep 2005 18:10:31 +0000 (18:10 +0000)]
- channel.h
  * New definition CHN_F_HAS_VCHAN.
- channel.c
  * Use CHN_F_HAS_VCHAN to mark channel with vchan capability instead
    of relying on SLIST_EMPTY(&channel->children) == true for better
    clarification and future possible usages of children (like
    'slave' channel).
  * Various fixes, including blocksize / format bps allignment,
    better 24bit seeking (mplayer, others).
  * Improve format chain building, it's now possible to record something
    to a format non-native to the soundcard through various feeder format
    converters or to higher sampling rate. This also gains another feature,
    like doing vchan mixing on non s16le soundcard such as sb8.
- sound.c
  * Increase robustness within various function that handle vchan
    creation / termination (these function need a total rewrite, but
    that would cause other major rewrite within various places too!).
    As far as its robustness can be guaranteed, leave it as is.
  * Optimize channel ordering, prefer *real* hardware playback
    channels over virtual channels. cat /dev/sndstat should look
    better.
  * Increase sndstat verbosity to include bufsoft/bufhard allocation.
- vchan.c
  * Fix LOR 119.
    - http://sources.zabbadoz.net/freebsd/lor.html#119
  * Reorder / increase robustness of vchan_create() / destroy().
    Enforce destroy_dev() during destroy operation, fix possible
    panic / dangling character device.
    - http://lists.freebsd.org/pipermail/freebsd-current/2005-May/050308.html
  * Tolerate a little bit more during mixing process, this should help
    non s16le soundcards.

Note: Recoring in a non-native rate/format may result in overruns. A friendly
      application is wavrec from audio/wavplay. The problem is under
      investigation.

Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>

19 years agoFix some errors in archive_read_data that caused failures in bsdtar's
kientzle [Sat, 10 Sep 2005 18:05:54 +0000 (18:05 +0000)]
Fix some errors in archive_read_data that caused failures in bsdtar's
pass-through filtering.

Thanks to: Bjoern Koenigönig
PR: bin/82878

19 years agoRelease lock for a while during chn_reset() / pcm_chnalloc() operation
netchild [Sat, 10 Sep 2005 17:51:38 +0000 (17:51 +0000)]
Release lock for a while during chn_reset() / pcm_chnalloc() operation
while malloc()ing, this fixes LOR 129.

See
 - http://lists.freebsd.org/pipermail/freebsd-current/2005-June/051157.html
 - http://lists.freebsd.org/pipermail/freebsd-current/2005-August/054620.html
 - http://sources.zabbadoz.net/freebsd/lor.html#129

Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>

19 years ago- fake.c
netchild [Sat, 10 Sep 2005 17:47:39 +0000 (17:47 +0000)]
- fake.c
  * Add missing A_LAW / MU_LAW format.
- feeder.c
  * Fix format chain building. Traverse backward instead of forward
    during format chainning.
- feeder_fmt.c
  * Add missing alaw/mulaw converter.
  * Add 16 -> 24/32bit converter.
  * whitespace cleanup.
- sound.h
  * alaw / mulaw are member of AFMT_8BIT.

Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>

19 years ago- Few buggy codecs (STAC9704, probably others) return inconsistent
netchild [Sat, 10 Sep 2005 17:42:59 +0000 (17:42 +0000)]
- Few buggy codecs (STAC9704, probably others) return inconsistent
  ac97_rdcd() value. Enable aggresive workaround.
- Fix mixer resolution detection for 5/6 bit register, carefully not to
  overflow others.

PR: 84728
Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>

19 years agoFix panic caused by full duplex operation.
netchild [Sat, 10 Sep 2005 17:33:58 +0000 (17:33 +0000)]
Fix panic caused by full duplex operation.

From the PR:
---snip---
The vibra16X supports full duplex. I traced the Windows driver, and what is
does is that it programs one DMA channel 8-bit, and the other 16-bit. There
might be some kind of auto detection logic here, because it always uses 8-bit
for playback, even if I play 16-bit sound ...
---snip---

PR: 80977
Submitted by: Hans Petter Selasky <hselasky@c2i.net>

19 years agoProtect interface and address lists using the appropriate mutex. These
csjp [Sat, 10 Sep 2005 15:12:24 +0000 (15:12 +0000)]
Protect interface and address lists using the appropriate mutex. These
locks were not aquired because the user buffers were not wired, thus it was
possible that that SYSCTL_OUT could sleep, causing a number of different
problems such as lock ordering issues and dead locks.

-Wire user supplied buffer to ensure SYSCTL_OUT will not sleep.
-Pickup ifnet locks to protect the list.
-Where applicable pickup address locks.
-Pickup radix node head locks.
-Remove splnet stubs
-Remove various comments about locking here, because they are no
 longer needed.

It is the hope that these changes will make sysctl_rtsock MP safe.

MFC after: 3 weeks

19 years agoAdd an MLINK for devname_r().
stefanf [Sat, 10 Sep 2005 14:09:37 +0000 (14:09 +0000)]
Add an MLINK for devname_r().

19 years agoThe header and the man page say that sethostid() returns void, so make the
stefanf [Sat, 10 Sep 2005 13:54:42 +0000 (13:54 +0000)]
The header and the man page say that sethostid() returns void, so make the
definition match.  Include <unistd.h>.

19 years agoFix parameter types of close and get members in DB.
stefanf [Sat, 10 Sep 2005 12:40:51 +0000 (12:40 +0000)]
Fix parameter types of close and get members in DB.

19 years agoElaborate on the behaviour of set -e.
stefanf [Sat, 10 Sep 2005 09:28:39 +0000 (09:28 +0000)]
Elaborate on the behaviour of set -e.

19 years agoRemove a duplicate and fix a typo.
schweikh [Sat, 10 Sep 2005 08:27:07 +0000 (08:27 +0000)]
Remove a duplicate and fix a typo.

19 years agoPass the EV_TESTED flag to evalloop() and evalfor(). This fixes unwanted
stefanf [Sat, 10 Sep 2005 08:25:28 +0000 (08:25 +0000)]
Pass the EV_TESTED flag to evalloop() and evalfor().  This fixes unwanted
termination with set -e if a command fails in a loop body inside a function
with an explicitely tested exit status, eg

f() {
for i in 1 2 3; do
false
done
}
f || true

Briefly reviewed by: cracauer

19 years agoPass the EV_TESTED flag to the left operand of NSEMI nodes. This fixes
stefanf [Sat, 10 Sep 2005 08:19:58 +0000 (08:19 +0000)]
Pass the EV_TESTED flag to the left operand of NSEMI nodes.  This fixes
two cases of unwanted termination with set -e:

* if-commands containing several commands separated by semicolons, eg

if false; false; then [...]

* functions with an explicitely tested exit status that contain a failing
  command which is not the last one, eg

f() {
false
false
}
f || true

PR: 77067, 85267
Briefly reviewed by: cracauer

19 years agoFix copy&paste typo.
pjd [Sat, 10 Sep 2005 07:46:47 +0000 (07:46 +0000)]
Fix copy&paste typo.

MFC after: 3 days

19 years agoDon't forget to initialize crp_etype field.
pjd [Sat, 10 Sep 2005 07:45:10 +0000 (07:45 +0000)]
Don't forget to initialize crp_etype field.

Reported by: Nick Evans <nevans@syphen.net>
MFC after: 3 days

19 years agoIn tcp_ctlinput() do not swap ip->ip_len a second time. It
andre [Sat, 10 Sep 2005 07:43:29 +0000 (07:43 +0000)]
In tcp_ctlinput() do not swap ip->ip_len a second time.  It
has been done in icmp_input() already.

This fixes the ICMP_UNREACH_NEEDFRAG case where no MTU was
proposed in the ICMP reply.

PR: kern/81813
Submitted by: Vitezslav Novy <vita at fio.cz>
MFC after: 3 days

19 years agoEven if there are no valid keys in metadata, but provider is attached
pjd [Sat, 10 Sep 2005 07:43:03 +0000 (07:43 +0000)]
Even if there are no valid keys in metadata, but provider is attached
we can still use setkey subcommand.

MFC after: 3 days
Found by: regression tests

19 years agoExit the shell if a pipeline that is not preceded by ! fails and set -e is
stefanf [Sat, 10 Sep 2005 07:41:36 +0000 (07:41 +0000)]
Exit the shell if a pipeline that is not preceded by ! fails and set -e is
active.  Use a separate flag to avoid adding another condition to the
if-statement at the end of evaltree().

Briefly reviewed by: cracauer

19 years agoMerge db_interface.c and db_trace.c into db_machdep.c.
marcel [Sat, 10 Sep 2005 03:18:51 +0000 (03:18 +0000)]
Merge db_interface.c and db_trace.c into db_machdep.c.

19 years agoMove the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint()
marcel [Sat, 10 Sep 2005 03:01:25 +0000 (03:01 +0000)]
Move the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint()
and db_md_list_watchpoints() to ddb/ddb.h.

19 years agoMove the ia32_sigcode structure from ia32_sigtramp.c to ia32_signal.c.
marcel [Sat, 10 Sep 2005 02:12:49 +0000 (02:12 +0000)]
Move the ia32_sigcode structure from ia32_sigtramp.c to ia32_signal.c.
It's a bit excessive to have it in a file of its own.

19 years agoRemove redundant $FreeBSD$
marcel [Sat, 10 Sep 2005 01:13:33 +0000 (01:13 +0000)]
Remove redundant $FreeBSD$

19 years agoMFp4:
imp [Sat, 10 Sep 2005 00:17:55 +0000 (00:17 +0000)]
MFp4:

Reduce the size of ed a little by removing some CIS based entries (others
likely can be removed too):
o The D-Link DFE-670TXD doesn't need its own entry based on strings.
o The Xircom CompactCard appears to be a TDK design, so list it there by ID
  and remove the strings.

Increase the size of ed a little:
o Add support for the Addtron AE-660CT and Addtron AE-660.  This is a very
  generic NE-2000 clone (so generic that its CIS tags say NE-2000 generic
  card!).