]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoThis commit was generated by cvs2svn to compensate for changes in r154032,
Doug Barton [Wed, 4 Jan 2006 19:18:43 +0000 (19:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154032,
which included commits to RCS files with non-trunk default branches.

18 years agoAfter some discussion with the folks at ISC, it turns out that the _ai_pad
Doug Barton [Wed, 4 Jan 2006 19:18:43 +0000 (19:18 +0000)]
After some discussion with the folks at ISC, it turns out that the _ai_pad
part of the structure was a hack to maintain binary compatibility with
Sun binaries, and my understanding is that it's not needed generally
on sparc systems running other operating systems. Therefore, hide this
code behind the same set of tests as in lib/bind/include/netdb.h.

This file is being imported on the vendor branch because a similar change
(or change with similar effect) will be in the next version of BIND 9.

This change will not affect other platforms in any way.

18 years agoPrevent divide by zero, use default values in case one of the divisor's
Alexander Leidinger [Wed, 4 Jan 2006 18:26:54 +0000 (18:26 +0000)]
Prevent divide by zero, use default values in case one of the divisor's
is zero.

Tested by: Randy Bush <randy@psg.com>

18 years agoEnable boot floppies for amd64. I just copied the needed variables over
John Baldwin [Wed, 4 Jan 2006 18:02:56 +0000 (18:02 +0000)]
Enable boot floppies for amd64.  I just copied the needed variables over
from i386.

Tested by: Markus Trippelsdorf markus at trippelsdorf dot de
Approved by: scottl
MFC after: 1 week

18 years agoMinor whitespace cleanup.
Bjoern A. Zeeb [Wed, 4 Jan 2006 17:40:54 +0000 (17:40 +0000)]
Minor whitespace cleanup.

18 years agoFix minor sorting issue.
Joel Dahl [Wed, 4 Jan 2006 17:19:28 +0000 (17:19 +0000)]
Fix minor sorting issue.

18 years agoRemove references to snd_vortex1(4).
Joel Dahl [Wed, 4 Jan 2006 17:05:19 +0000 (17:05 +0000)]
Remove references to snd_vortex1(4).

Approved by: tanimura, ariff

18 years agodd some old gssapi libs.
Alexander Leidinger [Wed, 4 Jan 2006 15:54:02 +0000 (15:54 +0000)]
dd some old gssapi libs.

Requested by: bz

18 years agoFix broken capabilities, causing failure during channel reset.
Ariff Abdullah [Wed, 4 Jan 2006 15:35:55 +0000 (15:35 +0000)]
Fix broken capabilities, causing failure during channel reset.
Its min/max speed were off by -/+ 1000.

Reported by: [1] Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
             [2] barner
MFC after: 1 day

[1] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2005-December/003189.html
[2] http://lists.freebsd.org/mailman/htdig/freebsd-multimedia/2006-January/003422.html

18 years agoAdd a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
Hartmut Brandt [Wed, 4 Jan 2006 12:57:09 +0000 (12:57 +0000)]
Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
the name and unit number assigned by the driver. This is needed by
SNMP to find interfaces after they have been renamed.

MFC after: 4 weeks

18 years ago- Make sure the cpu_exthigh variable is initialized (page coloring case). [1]
Alexander Leidinger [Wed, 4 Jan 2006 12:57:02 +0000 (12:57 +0000)]
- Make sure the cpu_exthigh variable is initialized (page coloring case). [1]
- Remove a conditional in the AMD cache detection, it's always false. [2]
- Don't try to detect a cache if only compiled for i386.

Analyzed by: Antoine Brodin <antoine.brodin@laposte.net> [1]
Submitted by: Antoine Brodin <antoine.brodin@laposte.net> [2]

18 years ago1. Add SIGEV_THREAD notification for mq_notify.
David Xu [Wed, 4 Jan 2006 11:48:02 +0000 (11:48 +0000)]
1. Add SIGEV_THREAD notification for mq_notify.
2. Reuse current timer code and abstract some common code to
   to support both timer and mqueue.

18 years agoFix the promise modesetting for old chips.
Søren Schmidt [Wed, 4 Jan 2006 10:23:47 +0000 (10:23 +0000)]
Fix the promise modesetting for old chips.

Pointy hat to: sos

18 years agoDeorbit ttymalloc() in preference for ttyalloc()
Poul-Henning Kamp [Wed, 4 Jan 2006 09:59:07 +0000 (09:59 +0000)]
Deorbit ttymalloc() in preference for ttyalloc()

18 years agoUse ttyalloc() instead of ttymalloc()
Poul-Henning Kamp [Wed, 4 Jan 2006 09:46:20 +0000 (09:46 +0000)]
Use ttyalloc() instead of ttymalloc()

18 years agoUse ttyalloc() instead of ttymalloc()
Poul-Henning Kamp [Wed, 4 Jan 2006 09:20:41 +0000 (09:20 +0000)]
Use ttyalloc() instead of ttymalloc()

18 years agoUse ttyalloc() instead of ttymalloc()
Poul-Henning Kamp [Wed, 4 Jan 2006 09:09:46 +0000 (09:09 +0000)]
Use ttyalloc() instead of ttymalloc()

18 years agoUse ttyalloc() instead of ttymalloc()
Poul-Henning Kamp [Wed, 4 Jan 2006 08:34:23 +0000 (08:34 +0000)]
Use ttyalloc() instead of ttymalloc()

18 years agoUse MTX_SYSINIT to set up the tty list mutex.
Poul-Henning Kamp [Wed, 4 Jan 2006 08:22:39 +0000 (08:22 +0000)]
Use MTX_SYSINIT to set up the tty list mutex.

18 years agoFix promise probe printing.
Søren Schmidt [Wed, 4 Jan 2006 08:20:25 +0000 (08:20 +0000)]
Fix promise probe printing.

18 years agoFix style bug.
Diomidis Spinellis [Wed, 4 Jan 2006 07:50:54 +0000 (07:50 +0000)]
Fix style bug.

Prompted by: bde

18 years agoReplace tv_usec normalization with the return of EINVAL.
Diomidis Spinellis [Wed, 4 Jan 2006 00:47:13 +0000 (00:47 +0000)]
Replace tv_usec normalization with the return of EINVAL.
This addresses two objections to the previous behavior,
and unbreaks the alpha tinderbox build.

TODO: update the utimes(2) man page.

18 years agoShuffle some definitions so that this can be included from userland.
Scott Long [Tue, 3 Jan 2006 23:03:39 +0000 (23:03 +0000)]
Shuffle some definitions so that this can be included from userland.

18 years agoAdd some more data structures and definitions for communicating with the
Scott Long [Tue, 3 Jan 2006 23:03:15 +0000 (23:03 +0000)]
Add some more data structures and definitions for communicating with the
ServeRAID firmware.

18 years agoNormalize the tv_usec part of the utimes(2) arguments to ensure
Diomidis Spinellis [Tue, 3 Jan 2006 21:58:21 +0000 (21:58 +0000)]
Normalize the tv_usec part of the utimes(2) arguments to ensure
that a file's atime and mtime are only set to correct fractional
second values (0-999999000ns with the current interface).
Prior to this change users could create files with values outside
that range.  Moreover, on 32-bit machines tv_usec offsets larger than
4.3s would result in an unnormalized AND wrong timestamp value,
due to overflow.

MFC after: 1 week

18 years agoDon't use threads when there's no real reason to.
Dag-Erling Smørgrav [Tue, 3 Jan 2006 21:32:02 +0000 (21:32 +0000)]
Don't use threads when there's no real reason to.

MFC after: 2 weeks

18 years agoFix a couple of issues with the ibcs2 module event handler. First, return
John Baldwin [Tue, 3 Jan 2006 20:39:38 +0000 (20:39 +0000)]
Fix a couple of issues with the ibcs2 module event handler.  First, return
success instead of EOPNOTSUPP when being loaded.  Secondly, if there are no
ibcs2 processes running when a MOD_UNLOAD request is made, break out to
return success instead of falling through into the default case which
returns EOPNOTSUPP.  With these fixes, I can now kldload and subsequently
kldunload the ibcs2 module.

PR: kern/82026 (and several duplicates)
Reported by: lots of folks
MFC after: 1 week

18 years agoCorrectly check the filter length. I committed the wrong version.
Jung-uk Kim [Tue, 3 Jan 2006 20:34:41 +0000 (20:34 +0000)]
Correctly check the filter length.  I committed the wrong version.
Pointy hat to me.

18 years ago- Explicitly validate an empty filter to match bpf_filter() comment[1].
Jung-uk Kim [Tue, 3 Jan 2006 20:26:03 +0000 (20:26 +0000)]
- Explicitly validate an empty filter to match bpf_filter() comment[1].
- Do not use BPF JIT compiler for an empty filter.

[1] Pointed out by: darrenr

18 years agoRelease the pci_link acpi serial lock if a link device has no actual links.
John Baldwin [Tue, 3 Jan 2006 20:19:34 +0000 (20:19 +0000)]
Release the pci_link acpi serial lock if a link device has no actual links.

MFC after: 3 days

18 years agoThis signal handling code is worse than a no-op. If a
Brian Somers [Tue, 3 Jan 2006 17:01:43 +0000 (17:01 +0000)]
This signal handling code is worse than a no-op.  If a
signal is received during the msleep, the msleep is retried
indefinitely as it just keeps returning ERESTART because of
the pending signal.

Instead, just don't PCATCH - the signal can wait.

Sponsored by: Sophos/ActiveState

18 years ago- Don't list sleep() in the NAME section as we haven't had a sleep()
John Baldwin [Tue, 3 Jan 2006 17:00:38 +0000 (17:00 +0000)]
- Don't list sleep() in the NAME section as we haven't had a sleep()
  function in years.
- Change the 'ident' paramters to 'wchan' to match <sys/systm.h>.
- Use 'otherwise' in place of 'else' in one place so that this reads like
  English rather than C.
- Document the new msleep_spin() function.
- Add history notes for msleep() and msleep_spin().

18 years agoFor the ``#ifdef NOTYET'' code that allows calling non-async-safe
Brian Somers [Tue, 3 Jan 2006 15:34:27 +0000 (15:34 +0000)]
For the ``#ifdef NOTYET'' code that allows calling non-async-safe
functions in the child after a fork() from a threaded process,
use __sys_setprocmask() rather than setprocmask() to keep our
signal handling sane.  Without this fix, signals are essentially
ignored in said child and things such as protection violations
result in an endless busy loop.

Reviewed by: deischen

18 years agoBack out VFS_LOCK_GIANT.9:1.4, due to losing a race in change/update
Robert Watson [Tue, 3 Jan 2006 14:00:22 +0000 (14:00 +0000)]
Back out VFS_LOCK_GIANT.9:1.4, due to losing a race in change/update
against revision 1.3.  No need to include mount.h twice, once will be
quite enough.

Pointed out by: simon

18 years agoRemove in-progress wait code to sync with libpthread's behavior.
David Xu [Tue, 3 Jan 2006 13:30:23 +0000 (13:30 +0000)]
Remove in-progress wait code to sync with libpthread's behavior.

18 years agoWhen returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule
Robert Watson [Tue, 3 Jan 2006 09:49:10 +0000 (09:49 +0000)]
When returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule
lock.  Otherwise the system comes to a rather sudden and grinding
halt.

MFC after: 1 week

18 years agoFix the other su bug reintroduced two commits ago, namely
Brian Somers [Tue, 3 Jan 2006 09:17:04 +0000 (09:17 +0000)]
Fix the other su bug reintroduced two commits ago, namely

    $ su
    % kill -STOP $$

where su is executing (t)csh.  csh's job handling is a little more
special than that of (a)sh, bash and even zsh and blows up a little
more spectacularly.  This modification restores the original mucking
about with the tty pgrp, but is careful to only do it when su (or
su's child) is the foreground process.

While I'm here, fix a STDERR_FILENO spelling as suggested by bde.

18 years ago- Tx side bus_dmamap_load_mbuf_sg(9) support. This reduces bookkeeping
Pyun YongHyeon [Tue, 3 Jan 2006 06:14:07 +0000 (06:14 +0000)]
- Tx side bus_dmamap_load_mbuf_sg(9) support. This reduces bookkeeping
  requiried to keep consistent softc state before/after callback function
  invocation and supposed to be sligntly faster than previous one as it
  wouldn't incur callback overhead. With this change callback function
  was gone.
- Decrease TI_MAXTXSEGS to 32 from 128. It seems that most mbuf chain
  length is less than 32 and it would be re-packed with m_defrag(9) if
  its chain length is larger than TI_MAXTXSEGS. This would protect ti(4)
  against possible kernel stack overflow when txsegs[] is put on stack.
  Alternatively, we can embed the txsegs[] into softc. However, that
  would waste memory and make Tx/Rx speration hard when we want to
  sperate Tx/Rx handlers to optimize locking.
- Fix dma map tracking used in Tx path. Previously it used the dma map
  of the last mbuf chain in ti_txeof() which was incorrect as ti(4)
  used dma map of the first mbuf chain when it loads a mbuf chain with
  bus_dmamap_load_mbuf(9). Correct the bug by introducing queues that
  keep track of active/inactive dma maps/mbuf chain.
- Use ti_txcnt to check whether driver need to set watchdog timer instead
  of blidnly clearing the timer in ti_txeof().
- Remove the 3rd arg. of ti_encap(). Since ti(4) now caches the last
  descriptor index(ti_tx_saved_prodidx) used in Tx there is no need to
  pass it as a fuction arg.
- Change data type of producer/consumer index to int from u_int16_t in
  order to remove implicit type conversions in Tx/Rx handlers.
- Check interface queue before getting a mbuf chain to reduce locking
  overhead.
- Check number of available Tx descriptores to be 16 or higher in
  ti_start(). This wouldn't protect Tx descriptor shortage but it would
  reduce number of bus_dmamap_unload(9) calls in ti_encap() when we are
  about to running out of Tx descriptors.
- Command NIC to send packets ony when the driver really has packets
  enqueued. Previously it always set TI_MB_SENDPROD_IDX which would
  command NIC to DMA Tx descriptors into NIC local memory regardless
  of Tx descriptor changes.

Reviewed by: scottl

18 years agoUse the child to allocate the resource rather than bridge, since we're
Warner Losh [Tue, 3 Jan 2006 03:36:17 +0000 (03:36 +0000)]
Use the child to allocate the resource rather than bridge, since we're
allocating a resource that's in the card itself.

Remove more now-redundant resource_list_add, and now-redunant code
that lives in the pci layer.

# This fixes the atheros card that I have which had its CIS in one of
# the BARs.  Don't know yet if this fixes the amd64 issues reported.

18 years agoMinor style(9) hacking, plus use a macro in place of (struct resource *)~0UL
Warner Losh [Tue, 3 Jan 2006 03:16:53 +0000 (03:16 +0000)]
Minor style(9) hacking, plus use a macro in place of (struct resource *)~0UL
(what the heck does that mean?).

18 years agoFix a brain-o in the last commit, the conditional was always false.
Andrew Thompson [Mon, 2 Jan 2006 23:02:43 +0000 (23:02 +0000)]
Fix a brain-o in the last commit, the conditional was always false.

18 years agoReorganise bridge_rtupdate slightly to reduce duplication.
Andrew Thompson [Mon, 2 Jan 2006 22:44:54 +0000 (22:44 +0000)]
Reorganise bridge_rtupdate slightly to reduce duplication.

18 years agoReset the route expiry time on each update rather than always letting them get
Andrew Thompson [Mon, 2 Jan 2006 22:29:41 +0000 (22:29 +0000)]
Reset the route expiry time on each update rather than always letting them get
GC'd and recreated.

18 years agoIt is better to use time_uptime here since it is monotonic.
Andrew Thompson [Mon, 2 Jan 2006 22:23:03 +0000 (22:23 +0000)]
It is better to use time_uptime here since it is monotonic.

Pointed out by: glebius

18 years agoRevert the previous change - the lib32 build should work now.
Doug Rabson [Mon, 2 Jan 2006 17:52:16 +0000 (17:52 +0000)]
Revert the previous change - the lib32 build should work now.

18 years agoenable "aggressive mode" only when operating in ap or station mode; in
Sam Leffler [Mon, 2 Jan 2006 17:16:27 +0000 (17:16 +0000)]
enable "aggressive mode" only when operating in ap or station mode; in
particular this fixes use of wme in adhoc demo mode, it wasn't possible
to set the txop limit because the aggressive mode logic would override

Reviewed by: apatti
MFC after: 2 weeks

18 years agoupdate erp information element in the beacon frame to reflect
Sam Leffler [Mon, 2 Jan 2006 16:57:20 +0000 (16:57 +0000)]
update erp information element in the beacon frame to reflect
changes in the bss

Reviewed by: avatar
Obtained from: atheros
MFC after: 2 weeks

18 years agoAdd EXTDOCDIR and EXTPORTSDIR.
Yoshihiro Takahashi [Mon, 2 Jan 2006 13:31:09 +0000 (13:31 +0000)]
Add EXTDOCDIR and EXTPORTSDIR.

MFC after: 1 week

18 years agoAdd EXTPORTSDIR like EXTSRCDIR and EXTDOCDIR.
Yoshihiro Takahashi [Mon, 2 Jan 2006 13:29:58 +0000 (13:29 +0000)]
Add EXTPORTSDIR like EXTSRCDIR and EXTDOCDIR.

PR: misc/83287
Submitted by: Gabor Kovesdan
MFC after: 1 week

18 years agoFix the amd64 (and presumably ia64) lib32 build by ensuring that the
Doug Rabson [Mon, 2 Jan 2006 11:28:42 +0000 (11:28 +0000)]
Fix the amd64 (and presumably ia64) lib32 build by ensuring that the
heimdal GSS-API mechanism uses its own version of gssapi.h, including all
the implementation-dependant pollution contained therein.

This moves the file off the vendor branch, sadly.

Submitted by: bz

18 years agoTemporarily disable the kerberos5 lib32 build while I try to fix it
Doug Rabson [Mon, 2 Jan 2006 10:03:35 +0000 (10:03 +0000)]
Temporarily disable the kerberos5 lib32 build while I try to fix it
properly.

18 years agoMinor whitespace cleanup.
Andrew Thompson [Mon, 2 Jan 2006 09:50:34 +0000 (09:50 +0000)]
Minor whitespace cleanup.

18 years agoHandle the case (that I just broke) where the following hangs:
Brian Somers [Mon, 2 Jan 2006 09:46:38 +0000 (09:46 +0000)]
Handle the case (that I just broke) where the following hangs:

    $ su
    # kill -STOP $$

Pointed out by: David Xu <davidxu@freebsd.org>

18 years agoRead time_second directly rather than calling getmicrotime().
Andrew Thompson [Mon, 2 Jan 2006 09:36:53 +0000 (09:36 +0000)]
Read time_second directly rather than calling getmicrotime().

Obtained from: DragonflyBSD

18 years agoRemove broken code that mucks about with tcsetpgrp() -- even if
Brian Somers [Mon, 2 Jan 2006 08:51:21 +0000 (08:51 +0000)]
Remove broken code that mucks about with tcsetpgrp() -- even if
su isn't the foreground process.  Hopefully this won't break PAM,
but I couldn't find any useful information about ache's theory
that it will.

Specifically, this change fixes the following:

    # sh
    # echo $$
    # su - root -c id &
    # echo $$

The PID output changes as su seems to be kill -STOP'ing itself
and catching the parent shell in the process.  This is especially
bad if you add a ``su - user -c command &'' to an rc script!

Sponsored by: Sophos/Activestate
Not objected to by: des

18 years agoAdd a -s flag for the same functionality as strace. Introduce a Name
Brian Somers [Mon, 2 Jan 2006 08:36:25 +0000 (08:36 +0000)]
Add a -s flag for the same functionality as strace.  Introduce a Name
type which is a String type that has no -s limitations applied to it.
Change most Strings in the code to Names and add a few extra syscalls,
namely munmap, read, rename and symlink.  This was enough to facilitate
following file descriptor allocations in the code more easily and
getting a hint at what's being read/written from/to files.  More
syscalls should really be added.

While here, fix an off-by-one bug in the buffer truncation code and
add a fflush so that truss's output reflects the syscall that the
program is stuck in.

Sponsored by: Sophos/Activestate
MFC after: 2 weeks

18 years agoRequest boot floppy after loading mfsroot floppy because beastie.4th exists
Yoshihiro Takahashi [Mon, 2 Jan 2006 07:29:22 +0000 (07:29 +0000)]
Request boot floppy after loading mfsroot floppy because beastie.4th exists
in boot floppy.

Submitted by: Nobuyuki Koganemaru < n-kogane at syd dot odn dot ne dot jp >
MFC after: 1 week

18 years agoAdd a -P option to allow skipping newfs when using a vnode-backed
Dima Dorfman [Mon, 2 Jan 2006 01:50:30 +0000 (01:50 +0000)]
Add a -P option to allow skipping newfs when using a vnode-backed
disk. Apparently some people want to use mdmfs as mount_* as a
shortcut for mounting existing file-based file systems.

Note that unlike in the patches from the submitters, this option is
not available in compat mode. Compat mode was supposed to support only
things that mount_mfs used to support. To use this option from fstab,
mdmfs should be called mount_md, not mount_mfs. This distinction has
not always upkept for new options, and those can't be fixed now
without breaking people's systems, but new options should not usually
be allowed in compat mode. (Not sure why -F is allowed there at all.)

PR: 57641
Submitted by: Ruben de Groot
Submitted independently by: Wojciech A. Koszek, for Urzad Miasta Czestochowa

18 years agoNUL terminate buffer from fgetln(3). From fgsch@OpenBSD.
Juli Mallett [Sun, 1 Jan 2006 22:59:54 +0000 (22:59 +0000)]
NUL terminate buffer from fgetln(3).  From fgsch@OpenBSD.

18 years agoWhitespace after switch.
Juli Mallett [Sun, 1 Jan 2006 22:54:49 +0000 (22:54 +0000)]
Whitespace after switch.

Inspired by: OpenBSD

18 years agoUse the correct units when handling the hw.physmem tunable.
Scott Long [Sun, 1 Jan 2006 22:52:21 +0000 (22:52 +0000)]
Use the correct units when handling the hw.physmem tunable.

18 years agoUse __HAVE_ACPI and __PCI_REROUTE_INTERRUPT as appropriate rather than
Warner Losh [Sun, 1 Jan 2006 21:04:31 +0000 (21:04 +0000)]
Use __HAVE_ACPI and __PCI_REROUTE_INTERRUPT as appropriate rather than
the complicated #ifdefs.

18 years agoDefine __HAVE_ACPI and/or __PCI_REROUTE_INTERRUPT, as appropriate for
Warner Losh [Sun, 1 Jan 2006 20:59:28 +0000 (20:59 +0000)]
Define __HAVE_ACPI and/or __PCI_REROUTE_INTERRUPT, as appropriate for
each platform.  These will be used in the pci code in preference to
the complicated #ifdefs we have there now.

18 years agoRemove left-over #ifdef alpha routines. They aren't used by any of
Warner Losh [Sun, 1 Jan 2006 20:40:08 +0000 (20:40 +0000)]
Remove left-over #ifdef alpha routines.  They aren't used by any of
our drivers, and don't appear to be necessary for GENERIC and LINT on
the alpha.  They don't belong in a MI header anyway...

18 years ago- Fix possible memory leak due to repetetive strdup(3) without matching
Ariff Abdullah [Sun, 1 Jan 2006 20:19:49 +0000 (20:19 +0000)]
- Fix possible memory leak due to repetetive strdup(3) without matching
  free(3).
- print_recsrc() should honor shortflag and give appropriate output for
  later consumption by /etc/rc.d/mixer. This will ensure that recording
  device selections survived across reboot. Output everything to stdout
  instead if stderr.

MFC after: 3 days

18 years agoFix another xruns counting logic, this time, for recording.
Ariff Abdullah [Sun, 1 Jan 2006 18:16:13 +0000 (18:16 +0000)]
Fix another xruns counting logic, this time, for recording.

18 years agoDocument that '#' starts a comment.
Stefan Farfeleder [Sun, 1 Jan 2006 16:02:12 +0000 (16:02 +0000)]
Document that '#' starts a comment.

PR: 85103
Submitted by: garys
Obtained from: pdksh manual
Patch from: Daniel Gerzo (with changes by me)

18 years agoUse the correct shared-library version number (the same as the one used
Doug Rabson [Sun, 1 Jan 2006 11:01:01 +0000 (11:01 +0000)]
Use the correct shared-library version number (the same as the one used
by the standalone version of heimdal GSS-API). If any compat issues
arise, I may increment the version number once more.

18 years agoRemove stray debug from p4 integration.
Warner Losh [Sun, 1 Jan 2006 08:26:39 +0000 (08:26 +0000)]
Remove stray debug from p4 integration.

18 years agoUnbreak kernel build.
Alexander Leidinger [Sun, 1 Jan 2006 05:35:57 +0000 (05:35 +0000)]
Unbreak kernel build.

A happy new year to all.

Submitted by: Goran Gajic <ggajic@afrodita.rcub.bg.ac.yu>, bz
Pointy hat to: netchild
Appologies to: all

18 years agoAdding another multi-byte characters related regression test for recent
Tai-hwa Liang [Sun, 1 Jan 2006 01:28:31 +0000 (01:28 +0000)]
Adding another multi-byte characters related regression test for recent
nmount(2) adoption.

18 years agoRemove extra debugging that crept in with the integration from p4.
Warner Losh [Sat, 31 Dec 2005 20:04:39 +0000 (20:04 +0000)]
Remove extra debugging that crept in with the integration from p4.

18 years agoRemove K&R vestige. It is no longer necessary to concatenate strings
Warner Losh [Sat, 31 Dec 2005 20:00:12 +0000 (20:00 +0000)]
Remove K&R vestige.  It is no longer necessary to concatenate strings
using /**/.  A simple space will do.

18 years agoIt is next year in Asia already, so jump the gun a little and commit
Warner Losh [Sat, 31 Dec 2005 17:58:28 +0000 (17:58 +0000)]
It is next year in Asia already, so jump the gun a little and commit
the year bump.

# If we behaved like book publishers, we'd do this in July.  I can't find
# a good reference for why they do it then, but it has been explained to
# me that copyrights in the last 1/2 of the year expire as if they were
# published in the following year.  I can't confirm this info, but if you
# have a pointer, please send it to me.

18 years agoUpdate for new devices, including the AMD 8111. Also mention
Christian Brueffer [Sat, 31 Dec 2005 16:32:27 +0000 (16:32 +0000)]
Update for new devices, including the AMD 8111.  Also mention
amdsmb(4) for SMBus 2.0 functionality of the AMD 8111.

18 years agoSay some words about the removed PQ_* kernel options.
Alexander Leidinger [Sat, 31 Dec 2005 14:44:49 +0000 (14:44 +0000)]
Say some words about the removed PQ_* kernel options.

18 years agoMI changes:
Alexander Leidinger [Sat, 31 Dec 2005 14:39:20 +0000 (14:39 +0000)]
MI changes:
 - provide an interface (macros) to the page coloring part of the VM system,
   this allows to try different coloring algorithms without the need to
   touch every file [1]
 - make the page queue tuning values readable: sysctl vm.stats.pagequeue
 - autotuning of the page coloring values based upon the cache size instead
   of options in the kernel config (disabling of the page coloring as a
   kernel option is still possible)

MD changes:
 - detection of the cache size: only IA32 and AMD64 (untested) contains
   cache size detection code, every other arch just comes with a dummy
   function (this results in the use of default values like it was the
   case without the autotuning of the page coloring)
 - print some more info on Intel CPU's (like we do on AMD and Transmeta
   CPU's)

Note to AMD owners (IA32 and AMD64): please run "sysctl vm.stats.pagequeue"
and report if the cache* values are zero (= bug in the cache detection code)
or not.

Based upon work by: Chad David <davidc@acns.ab.ca> [1]
Reviewed by: alc, arch (in 2004)
Discussed with: alc, Chad David, arch (in 2004)

18 years agoAdd some more obsolete files.
Alexander Leidinger [Sat, 31 Dec 2005 14:04:35 +0000 (14:04 +0000)]
Add some more obsolete files.

Submitted by: kris (6 of the files)

18 years agoBeautification.
Christian Brueffer [Sat, 31 Dec 2005 13:52:29 +0000 (13:52 +0000)]
Beautification.

18 years agoBump FreeBSD_Version for tv_sec change.
Tom Rhodes [Sat, 31 Dec 2005 11:26:54 +0000 (11:26 +0000)]
Bump FreeBSD_Version for tv_sec change.

Reminded by: kris

18 years agoAdd basic manpages for amdsmb(4) and nfsmb(4).
Christian Brueffer [Sat, 31 Dec 2005 11:24:36 +0000 (11:24 +0000)]
Add basic manpages for amdsmb(4) and nfsmb(4).

18 years agoCheck the entire length of the current argument for the EOF string with -E,
Juli Mallett [Sat, 31 Dec 2005 09:06:45 +0000 (09:06 +0000)]
Check the entire length of the current argument for the EOF string with -E,
but don't expect a proper ASCII string to exist right here right now, don't
use strcmp(3) which checks for a NUL.  As we're still building the argument
up, the next character might be garbage.  It would probably be just as safe to
temporarily write a NUL there, but if we've reached the end of argument memory
that might not be the best idea, I think.  It's unclear.

Doing it this way seems to meet the most with the original intent.

PR: 85696
Prodded by: stefanf

18 years agoIntroduce a new sysctl variable:
Christian S.J. Peron [Sat, 31 Dec 2005 05:06:59 +0000 (05:06 +0000)]
Introduce a new sysctl variable:

security.mac.biba.interfaces_equal

If non-zero, all network interfaces be created with the label:

biba/equal(equal-equal)

This is useful where programs which initialize network interfaces
do not have any labeling support. This includes dhclient and ppp. A
long term solution is to add labeling support into dhclient(8)
and ppp(8), and remove this variable.

It should be noted that this behavior is different then setting the:

security.mac.biba.trust_all_interfaces

sysctl variable, as this will create interfaces with a biba/high label.
Lower integrity processes are not able to write to the interface in this
event. The security.mac.biba.interfaces_equal will override
trust_all_interfaces.

The security.mac.biba.interfaces_equal variable will be set to zero
or disabled by default.

MFC after: 2 weeks

18 years agoAdd a new vendor ID for Personal Cummunication Systems. They make a nice
Maxime Henrion [Sat, 31 Dec 2005 04:41:17 +0000 (04:41 +0000)]
Add a new vendor ID for Personal Cummunication Systems.  They make a nice
USB HID device that allows to plug two PS2 controllers.  This specific
device doesn't work yet but will as soon as we support devices with
multiple report IDs.

MFC after: 3 days

18 years agoAdd support for the Wacom Graphire 3 4x5. Like the Graphire 3, it has a
Maxime Henrion [Sat, 31 Dec 2005 04:38:50 +0000 (04:38 +0000)]
Add support for the Wacom Graphire 3 4x5.  Like the Graphire 3, it has a
broken report descriptor.  While I'm here, make all the other report
descriptors const to match the newly added one.

Obtained from: NetBSD
MFC after: 1 week

18 years agoAdd support for Xbox 360 gamepads. They are HID-capable devices, but
Maxime Henrion [Sat, 31 Dec 2005 04:22:34 +0000 (04:22 +0000)]
Add support for Xbox 360 gamepads.  They are HID-capable devices, but
lack a report descriptor and don't use the standard interface class.
This patch works around these deficiencies so that the uhid(4) driver
can recognize and use those broken devices.

PR: usb/90141
Submitted by: Ed Schouten <ed@fxq.nl> (with minor mods from me)
MFC after: 1 week

18 years agoAdd basic documentation for many of the kernel USB functions that
Ian Dowse [Sat, 31 Dec 2005 03:53:02 +0000 (03:53 +0000)]
Add basic documentation for many of the kernel USB functions that
USB device drivers use to talk to USB devices. This is probably
still a bit rough and it does not yet include the functions specific
to HID, ethernet, hubs, host controller drivers, task threads or
debugging.

18 years agoFix LOR #174.
Ariff Abdullah [Sat, 31 Dec 2005 01:58:40 +0000 (01:58 +0000)]
Fix LOR #174.

Tested with: WITNESS, INVARIANTS and DIAGNOSTICS

18 years agoFixing build bustage.
Tai-hwa Liang [Sat, 31 Dec 2005 01:45:40 +0000 (01:45 +0000)]
Fixing build bustage.

18 years agoOnly clear sb.st_size if it is clearly wrong or meaningless. This fixes
Dag-Erling Smørgrav [Fri, 30 Dec 2005 23:36:26 +0000 (23:36 +0000)]
Only clear sb.st_size if it is clearly wrong or meaningless.  This fixes
mirror mode.

PR: bin/86940
MFC after: 2 weeks

18 years agoAdd a FreeBSD-specific -S flag which controls the maximum size of an argument
Juli Mallett [Fri, 30 Dec 2005 23:25:41 +0000 (23:25 +0000)]
Add a FreeBSD-specific -S flag which controls the maximum size of an argument
having replacements done in it via -I.

18 years agoHandle maxsize==0 in such a way that we don't modify the string.
Juli Mallett [Fri, 30 Dec 2005 23:22:50 +0000 (23:22 +0000)]
Handle maxsize==0 in such a way that we don't modify the string.

18 years agoAdd hotplug support for Marvell chips.
Søren Schmidt [Fri, 30 Dec 2005 23:15:02 +0000 (23:15 +0000)]
Add hotplug support for Marvell chips.

18 years agoOn i386, 7.0 requires 106MB on /usr. 6.0 requires 101MB.
Ceri Davies [Fri, 30 Dec 2005 21:45:10 +0000 (21:45 +0000)]
On i386, 7.0 requires 106MB on /usr.  6.0 requires 101MB.
Bump USR_MIN_SIZE to 128MB, so that an auto-layout install won't fail
due to /usr being too small.

MFC After: 8 days

18 years agoMake RID2BAR actually return a number that can be plugged into PCIR_BAR()
Warner Losh [Fri, 30 Dec 2005 20:25:40 +0000 (20:25 +0000)]
Make RID2BAR actually return a number that can be plugged into PCIR_BAR()
rather than a bitmask.

Submitted by: ru@

18 years agomkstemp(3) and friends use a combination of base 10 digits, along
Christian S.J. Peron [Fri, 30 Dec 2005 20:10:21 +0000 (20:10 +0000)]
mkstemp(3) and friends use a combination of base 10 digits, along
with upper and lower case letters from the English alphabet. Change
the number of possible file names mktemp will return from 26**6
to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)

18 years agoRemove now-obsolete printf warning.
Warner Losh [Fri, 30 Dec 2005 19:38:47 +0000 (19:38 +0000)]
Remove now-obsolete printf warning.

18 years agoRemove debug now that I've looped back the big changes into my p4 tree.
Warner Losh [Fri, 30 Dec 2005 19:36:29 +0000 (19:36 +0000)]
Remove debug now that I've looped back the big changes into my p4 tree.

18 years agoExpose pci_add_resources to the outside world, add a 'force' flag to
Warner Losh [Fri, 30 Dec 2005 19:28:26 +0000 (19:28 +0000)]
Expose pci_add_resources to the outside world, add a 'force' flag to
force allocation of unallocated BARs (cardbus uses this to preallocate
everything).  Add a prefetchmask to allow for busses that get prefetch
hints to set them.  Addjust pci_add_map and pci_ata_maps to take a new
force flag which pci_add_resources will pass in.  Implement 'force' in
pci_add_map.  Write new value of allocated resource into the bar, if
the allocation succeeded (we should have done this before, but with
the new force the bug was very obvious).

18 years agoMore scanners supported.
Christian Brueffer [Fri, 30 Dec 2005 19:25:28 +0000 (19:25 +0000)]
More scanners supported.