Commit Graph

123833 Commits

Author SHA1 Message Date
jdc 99807188f8 Use m_copydata(), m_adj() and M_PREPEND() to manipulate mbuf's in
bridge_ipf().  Fixes kernel memory corruption that occured when using
m_split() and m_cat().
Idea from OpenBSD.
2004-01-31 20:11:13 +00:00
atatat 282eb9c623 Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection
code, to detect a KDEREF failure instead of simply aborting.  If the
KDEREF fails, we're obviously not_using_lockdebug().
2004-01-31 18:25:27 +00:00
heinz 4ea0bdc634 Add missing word 2004-01-31 18:02:52 +00:00
uebayasi fa3c270527 Minor KNF. 2004-01-31 16:56:12 +00:00
lukem 818f07b6aa in etc-release, put the builder on a separate line to the date 2004-01-31 15:40:42 +00:00
lukem dc6c3cf836 support MKMAN=no for uuidgen(2) 2004-01-31 15:14:04 +00:00
dan ddc7532f7e mark *_p.a as profile libs, so checkflist copes with MKX11=yes MKPROFILE=no 2004-01-31 15:13:10 +00:00
jdolecek 5a87ad473d fix typo in previous, pointed out by Patrick Welche in private mail 2004-01-31 14:48:15 +00:00
uebayasi 189c5218f4 Typo typo. 2004-01-31 14:12:33 +00:00
jdolecek 5ecaa7ecee add dependency on isadma for atppc attachments
add atppc_isadma.c for atppc@isapnp and atppc@ofisa, too
2004-01-31 13:59:20 +00:00
dyoung cc1434eac0 wi_stop tells which stations' rssadapt descriptors it cleans up
when IFF_DEBUG is set.
2004-01-31 10:40:19 +00:00
fredb 7f674884ad Fix a couple of long-standing bugs in the volume control(s) part of the
audio device interface:

1) When attempting to match the appropriate mixer control, we weren't
checking the class label, but only the second level label, so for
devices that had both an "inputs.cd" and a "record.cd", for example,
we could never do the right thing except by chance. For this reason,
evidently, all the record masters were labeled (by the underlying
drivers) either "record.record" or "record.volume", to distinguish
from "outputs.master". We'll now accept "record.master", and document
that as the the new preferred way.

2) More importantly, the model was deficient. Selecting a port on many
chips completely disables most of the level controls, which doesn't play
nice with other applications which are trying to use the interface. Now,
selecting a port simply sets which mixer input control shall be changed,
setting state in the audio layer. In other words, the "mixerout" port
is really selected all the time, enabling the final stage mixer, and
setting "gain" sets the level of the appropriate input. It should be
possible for separate applications to each control the mic, dac, and cd
inputs at the same time using this interface, simply by reiterating their
port selections with each change, but applications that don't bother to
do that aren't any worse off than they were before.

The user is expected to set the master output with another application,
dedicated to that task. Though it is now meaningful to select "no port"
with the audio device interface, to manipulate the master output, there's
no particular reason for an audio device consumer to do that. (I added
the capability in order to restore the initial state of the audio device,
for testing purposes. It might also be useful to users of broken binary-
only applications.)

Observe that the mixer device interface (and so, "mixerctl") still
retains all capabilities, including the ability to set the actual input
port on the chip, overriding the level controls. No change is being made
to the mixer device interface. The mixer device simply presents all the
controls on the chip, with no attempt at abstraction, so there are no
bugs there.

The upshot is, that applications that have been trying to use the audio
device interface to change the volume, such as mplayer, now "just work".

I've tested these changes extensively with "eso" and "eap" since first
proposing them on tech-kern last January, and somewhat with "esm" and a
few others. This closes both PR kern/10221, and PR kern/17159.
2004-01-31 00:07:56 +00:00
wiz 0ec68faf37 Bump date for previous; use more macros. 2004-01-30 23:28:45 +00:00
christos 06b0d47bea mention sticky. 2004-01-30 22:47:02 +00:00
christos 92ffc695bf While the comment is not correct anymore, this fixes the problem of tar -rf
where tar would skip backwards too much, corrupting the current tar archive
on append.
2004-01-30 20:46:12 +00:00
ross 4875c0a7d0 Handle new-style error return from mknod/pack_dev.c 2004-01-30 19:09:03 +00:00
ross 9e754b3749 Don't exit on error from pack_dev.c, but return an error string and
have the caller do cleanup and (potentially) report errors in context.
This is needed because mknod(8) is not the only user of pack_dev.[ch]
2004-01-30 19:06:55 +00:00
jdolecek f25934df25 rework the sections mentioning support for specific chipsets; that FreeBSD
code does only device probe for nonstandard I/O locations on ISA bus,
and is not useful for other attachments

drop the list of tested stuff; that information doesn't belong in this
manpage
2004-01-30 19:06:36 +00:00
wiz d48b785891 It's != Its, fix again. New sentence, new line. 2004-01-30 16:14:37 +00:00
christos 976cdb2b5d more sticky explanations. 2004-01-30 16:06:20 +00:00
wiz 9af86fc6f2 Fix two typos, and remove a superfluous comma. 2004-01-30 16:03:50 +00:00
wiz 1c6f398ba8 Add comma in enumeration, drop trailing whitespace, |fmt,
and remove dummy (empty) Xr.
2004-01-30 15:48:38 +00:00
wiz df3366a5a1 Add definite article. 2004-01-30 15:46:30 +00:00
wiz 129c874aa5 Sort SEE ALSO after renaming of lp to plip. 2004-01-30 15:45:34 +00:00
wiz 7fcc4d6c6b Sort SEE ALSO. 2004-01-30 15:38:47 +00:00
wiz 193f31ef31 Make internal section 7 too, use more markup, |fmt,
sort sections.
2004-01-30 15:38:18 +00:00
christos fa6c746b59 cross reference sticky(7) 2004-01-30 15:31:27 +00:00
christos 7645bc35a1 move sticky from section 8 to section 7 where it belongs. 2004-01-30 15:30:44 +00:00
christos a3b53d29e6 Add the sticky file in the proper section and add a history section for it
explaining what sticky means and meant on plain files.
2004-01-30 15:27:07 +00:00
christos c2f71cffe7 Sticky belongs in section 7. 2004-01-30 15:14:10 +00:00
augustss 936189b99c Build INSTALL kernel. 2004-01-30 14:26:26 +00:00
augustss 95d29f513f Trim INSTALL kernel. 2004-01-30 14:25:54 +00:00
augustss 8bc2d678bc Use more symbol table space in generic kernel. 2004-01-30 14:25:36 +00:00
yamt 6f979c2127 uvm_loanuobjpages: fix a comment. 2004-01-30 12:01:27 +00:00
yamt c5ffc97d8e remove wrong assertions.
sparc's alloc_cpuinfo_global_va() partially unmaps kva range in kernel_map.

noted by Juergen Hannken-Illjes on current-users@.
2004-01-30 11:56:39 +00:00
jdolecek 8081dfaa4b whitespace fixes, make LPTIO_DISABLE_DMA 'succeed' if DMA is not supported 2004-01-30 11:40:55 +00:00
tls aeaf748ff2 Buffer cache fixes to avoid thrashing between high and low water marks
and uncontrolled growth.

The key fix is from Dan Carasone, who noticed that buf_canfree() was
counting in _bytes_ but freeing in _buffers_, which caused the instant
drop to lowater observed by some users.

We now control the rate of growth; the probability of getting a new
allocation is inversely proportional to the current size of the
cache.  This idea is from a long-ago conversation with Kirk McKusick
and, if memory serves, was used for the file-system cache in some
other BSD variant at some point in history.

With growth and shrinkage more or less dealt with, we return the
default maximum cache size to 15%.  The default _minimum_ cache size
is raised from 1/16 of the maximum cache size to 1/8, since 1/16 was
chosen when the maximum size was 30% of memory.

Finally, after observing the behaviour of the pagedaemon and the
buffer cache drainer under pathological workloads (e.g. a benchmark
that steps through 75% of available memory backwards) I have moved
the call to buf_drain() to the beginning of the pagedaemon from the
end; if the pagedaemon bogs down, it still won't get run as often
as it should, but at least this way it will see the state of the
free count and free target _before_ the scan step does its thing.
2004-01-30 11:32:16 +00:00
he 22d88e6c63 Omit declaration of "device lpt" in files.mvme; this is now done by
the recently introduced files.ppbus.
Also, let the mvme68k port use it's own lpt implementation for now,
so define USE_ALT_LPT option in std.memv68k.
This makes the mvme68k kernels configure and build again.
2004-01-30 09:42:01 +00:00
lukem 20f6090de0 Add '-h sha1' to INSTPRIV.unpriv, so that SHA-1 hashes for installed files
are calculated and written to the METALOG.
2004-01-30 08:48:18 +00:00
lukem 4d0df9f157 Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution" 2004-01-30 08:46:19 +00:00
lukem db1714e4b6 Add ./etc/mtree/set.<setname> entry for each set. 2004-01-30 08:44:10 +00:00
lukem 2e8d4db059 * Add "makesetfiles" target, to populate etc/mtree/set.* with maketars -S
* Some MAKEVERBOSE support.
* Add some variables to simplify various rules.
* Simply script startup by replacing ${SETSENV} with ${SETSCMD}, which
  cd's to ${.CURDIR} before doing the work.
2004-01-30 08:43:15 +00:00
lukem 1c401bb3d7 Create ${DESTDIR}/etc/mtree/set.<setname> setfiles for each given <setname>.
Add `-S' to exit after creating the setfiles.
Send errors to stderr instead of stdout.
2004-01-30 08:39:50 +00:00
lukem bc42f94b01 Actually, proxymap can run chrooted even though it defeats most of the
purpose of the service.
(Use updated text from postfix 2.0.18)
2004-01-30 04:37:39 +00:00
lukem b3437c9c77 proxymap can't run chrooted either 2004-01-30 04:33:05 +00:00
lukem 3e223f04c9 Use find . -type f | while read ... ${INSTALL} ... instead of ${PAX}
to install the zoneinfo files.
2004-01-30 04:30:51 +00:00
lukem 2476a75526 add usr/share/zoneinfo/** 2004-01-30 03:02:41 +00:00
lukem 75b72cb4f9 Auso support -h hash for hard-linked files. 2004-01-30 01:38:25 +00:00
yamt 4480473553 follow the kernel vm_map_entry allocation strategy change. 2004-01-29 22:19:12 +00:00
reed 027c7dd739 Make sure that the Fake mode would give a Verbose message about
the package to be deleted.  (Previously, the Fake mode only mentioned
deinstalling other dependent packages but didn't say anything
Verbose about the package itself.)
2004-01-29 17:41:49 +00:00