]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoAlso refer to csup in the example SUP setting.
Maxime Henrion [Sun, 19 Mar 2006 15:54:45 +0000 (15:54 +0000)]
Also refer to csup in the example SUP setting.

18 years agoMerge Perforce change 93572 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:47:53 +0000 (15:47 +0000)]
Merge Perforce change 93572 from TrustedBSD audit3 branch:

  Simple audit pipe ioctl regression test.

Obtained from: TrustedBSD Project

18 years agoMerge Perforce change 93569 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:44:53 +0000 (15:44 +0000)]
Merge Perforce change 93569 from TrustedBSD audit3 branch:

  Do install sys/security/audit include files.  It would be nice just
  to install audit_ioctl.h, but we seem only to support installing
  directories, so we get them all.  The two not intended for extra-
  kernel use have !_KERNEL #error's, which should help.

Obtained from: TrustedBSD Project

18 years agoMerge Perforce change 93570 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:39:03 +0000 (15:39 +0000)]
Merge Perforce change 93570 from TrustedBSD audit3 branch:

  Add audit pipe ioctls to query minimum and maximum audit queue
  lengths.

Obtained from: TrustedBSD Project

18 years agoMerge Perforce change 93567 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:38:03 +0000 (15:38 +0000)]
Merge Perforce change 93567 from TrustedBSD audit3 branch:

  Bump default queue limit for audit pipes from 32 to 128, since 32 is
  pretty small.

Obtained from: TrustedBSD Project

18 years agoMerge Perforce change 93568 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:37:04 +0000 (15:37 +0000)]
Merge Perforce change 93568 from TrustedBSD audit3 branch:

  Normalize nested include guards.

Obtained from: TrustedBSD Project

18 years agoChange the default SUP command to use csup instead of CVSup for
Maxime Henrion [Sun, 19 Mar 2006 15:36:56 +0000 (15:36 +0000)]
Change the default SUP command to use csup instead of CVSup for
"make update" when SUP_UPDATE is defined.

18 years agoMerge Perforce change 93506 from TrustedBSD audit3 branch:
Robert Watson [Sun, 19 Mar 2006 15:36:10 +0000 (15:36 +0000)]
Merge Perforce change 93506 from TrustedBSD audit3 branch:

  Add ioctls to audit pipes in order to allow querying of the current
  record queue state, setting of the queue limit, and querying of pipe
  statistics.

Obtained from: TrustedBSD Project

18 years agoActually I wanted 'nolockd' here instead of 'lockd'.
Pawel Jakub Dawidek [Sun, 19 Mar 2006 13:27:37 +0000 (13:27 +0000)]
Actually I wanted 'nolockd' here instead of 'lockd'.

MFC after: 2 days

18 years agoUpdate copyright for 2006.
Pawel Jakub Dawidek [Sun, 19 Mar 2006 12:55:51 +0000 (12:55 +0000)]
Update copyright for 2006.

18 years agoMake net.inet.ip.portrange.reservedhigh and
David Malone [Sun, 19 Mar 2006 11:48:48 +0000 (11:48 +0000)]
Make net.inet.ip.portrange.reservedhigh and
net.inet.ip.portrange.reservedlow apply to IPv6 aswell as IPv4.

We could have made new sysctls for IPv6, but that potentially makes
things complicated for mapped addresses. This seems like the least
confusing option and least likely to cause obscure problems in the
future.

This change makes the mac_portacl module useful with IPv6 apps.

Reviewed by: ume
MFC after: 1 month

18 years agokern.geom.raid3.sync_requests=2 seems to be a better default - it still
Pawel Jakub Dawidek [Sun, 19 Mar 2006 11:18:33 +0000 (11:18 +0000)]
kern.geom.raid3.sync_requests=2 seems to be a better default - it still
keeps disks very busy, but makes system much more responsive.

While here, kill extra space.

18 years agoRegen.
Ruslan Ermilov [Sun, 19 Mar 2006 11:12:41 +0000 (11:12 +0000)]
Regen.

18 years agoUnbreak COMPAT_LINUX32 option support on amd64.
Ruslan Ermilov [Sun, 19 Mar 2006 11:10:33 +0000 (11:10 +0000)]
Unbreak COMPAT_LINUX32 option support on amd64.

Broken by: netchild

18 years agokern.geom.mirror.sync_requests=2 seems to be a better default - it still
Pawel Jakub Dawidek [Sun, 19 Mar 2006 10:49:05 +0000 (10:49 +0000)]
kern.geom.mirror.sync_requests=2 seems to be a better default - it still
keeps disks very busy, but makes system much more responsive.

While here, kill extra space.

18 years agoFix build until I find a way to handle this case properly.
Ruslan Ermilov [Sun, 19 Mar 2006 08:52:49 +0000 (08:52 +0000)]
Fix build until I find a way to handle this case properly.

18 years agoimplements section 2.2 of RFC4191, regarding the reserved preference value (10)
SUZUKI Shinsuke [Sun, 19 Mar 2006 06:38:39 +0000 (06:38 +0000)]
implements section 2.2 of RFC4191, regarding the reserved preference value (10)

Obtained from: KAME
MFC after: 1 day

18 years agoRevert last delta.
Ruslan Ermilov [Sun, 19 Mar 2006 06:14:30 +0000 (06:14 +0000)]
Revert last delta.

18 years agoCommit a forgotten part of NO_PROFILE/NO_LIB32 conversion.
Ruslan Ermilov [Sun, 19 Mar 2006 06:14:07 +0000 (06:14 +0000)]
Commit a forgotten part of NO_PROFILE/NO_LIB32 conversion.

18 years agos/ifconfig tunnel greN/ifconfig greN tunnel/
Brad Davis [Sun, 19 Mar 2006 05:52:35 +0000 (05:52 +0000)]
s/ifconfig tunnel greN/ifconfig greN tunnel/

Submitted by: ankon@#bsddocs
Approved by: ceri@

18 years agoComment out MK_PROFILE until ru@ can fix this properly
Poul-Henning Kamp [Sun, 19 Mar 2006 04:49:11 +0000 (04:49 +0000)]
Comment out MK_PROFILE until ru@ can fix this properly

18 years agoAdd default for MK_PROFILE
Poul-Henning Kamp [Sun, 19 Mar 2006 04:39:42 +0000 (04:39 +0000)]
Add default for MK_PROFILE

18 years agoupdates net.inet6.ip6.kame_version as the proof of the latest KAME merge
SUZUKI Shinsuke [Sun, 19 Mar 2006 02:11:42 +0000 (02:11 +0000)]
updates net.inet6.ip6.kame_version as the proof of the latest KAME merge

Reviewed by: KAME
MFC after: 2 days

18 years agoBack out fd optimization introduced in revision 1.280 as it appears to be
Christian S.J. Peron [Sat, 18 Mar 2006 23:27:21 +0000 (23:27 +0000)]
Back out fd optimization introduced in revision 1.280 as it appears to be
really breaking things. Simple "close(0); dup(fd)" does not return descriptor
"0" in some cases. Further, this change also breaks some MAC interactions with
mac_execve_will_transition().  Under certain circumstances, fdcheckstd() can
be called in execve(2) causing an assertion that checks to make sure that
stdin, stdout and stderr reside at indexes 0, 1 and 2 in the process fd table
to fail, resulting in a kernel panic when INVARIANTS is on.

This should also kill the "dup(2) regression on 6.x" show stopper item on the
6.1-RELEASE TODO list.

This is a RELENG_6 candidate.

PR: kern/87208
Silence from: des
MFC after: 1 week

18 years agoConvert NO_PROFILE and NO_LIB32 to new style.
Ruslan Ermilov [Sat, 18 Mar 2006 21:37:05 +0000 (21:37 +0000)]
Convert NO_PROFILE and NO_LIB32 to new style.

18 years agoAdd reference to PR to TOSHIBA TransMemory quirk entry.
Joerg Wunsch [Sat, 18 Mar 2006 21:13:14 +0000 (21:13 +0000)]
Add reference to PR to TOSHIBA TransMemory quirk entry.

18 years agoregen
Alexander Leidinger [Sat, 18 Mar 2006 20:49:01 +0000 (20:49 +0000)]
regen

18 years agoFixup some problems in my previous commit (COMPAT_43).
Alexander Leidinger [Sat, 18 Mar 2006 20:47:36 +0000 (20:47 +0000)]
Fixup some problems in my previous commit (COMPAT_43).

Pointyhat to: netchild

18 years agoEnable global pages TLB extension on Application Processors.
Stephan Uphoff [Sat, 18 Mar 2006 19:32:46 +0000 (19:32 +0000)]
Enable global pages TLB extension on Application Processors.

MFC after: 3 days

18 years agoMerge perforce 93507:
Robert Watson [Sat, 18 Mar 2006 18:32:12 +0000 (18:32 +0000)]
Merge perforce 93507:

  Correct comment: this print is now from audit_record_write(), not
  audit_worker().

Obtained from: TrustedBSD Project

18 years agoMerge perforce change 93199:
Robert Watson [Sat, 18 Mar 2006 18:31:24 +0000 (18:31 +0000)]
Merge perforce change 93199:

  Change send_trigger() prototype to return an int, so that user
  space callers can tell if the message was successfully placed
  in the trigger queue.  This isn't quite the same as it being
  successfully received, but is close enough that we can generate
  a more useful warning message in audit(8).

Obtained from: TrustedBSD Project

18 years ago- Add a PR number for future reference.
Florent Thoumie [Sat, 18 Mar 2006 18:28:13 +0000 (18:28 +0000)]
- Add a PR number for future reference.

Approved by: njl

18 years agoregen after COMPAT_43 removal
Alexander Leidinger [Sat, 18 Mar 2006 18:24:38 +0000 (18:24 +0000)]
regen after COMPAT_43 removal

18 years agoGet rid of the need of COMPAT_43 in the linuxolator.
Alexander Leidinger [Sat, 18 Mar 2006 18:20:17 +0000 (18:20 +0000)]
Get rid of the need of COMPAT_43 in the linuxolator.

Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Obtained from: DragonFly (some parts)

18 years agoOops - fix the build in the !USB_DEBUG case.
Ian Dowse [Sat, 18 Mar 2006 17:57:34 +0000 (17:57 +0000)]
Oops - fix the build in the !USB_DEBUG case.

18 years agoAdd the new "showconfig" target that displays build configuration.
Ruslan Ermilov [Sat, 18 Mar 2006 14:30:23 +0000 (14:30 +0000)]
Add the new "showconfig" target that displays build configuration.

Suggested by: phk

18 years agoLet the EHCI hardware track the toggle state for bulk and interrupt
Ian Dowse [Sat, 18 Mar 2006 13:55:16 +0000 (13:55 +0000)]
Let the EHCI hardware track the toggle state for bulk and interrupt
transfers. This fixes some cases where the software toggle tracking
was not doing the right thing. For example, a short transfer that
transferred 0 bytes of the requested qTD transfer size does cause
a toggle change, but the existing code was assuming it didn't.

Reported and tested by: pav
MFC after: 2 weeks

18 years agoProperly use the sense key info
Søren Schmidt [Sat, 18 Mar 2006 13:14:38 +0000 (13:14 +0000)]
Properly use the sense key info

18 years agoProvide alternate default for SHLIBDIR before bsd.own.mk does this.
Ruslan Ermilov [Sat, 18 Mar 2006 11:01:06 +0000 (11:01 +0000)]
Provide alternate default for SHLIBDIR before bsd.own.mk does this.

Reported by: phk

18 years agoReplace .sinclude by .if exists()/.include/.endif so that older make(1)'s can
Ruslan Ermilov [Sat, 18 Mar 2006 10:54:09 +0000 (10:54 +0000)]
Replace .sinclude by .if exists()/.include/.endif so that older make(1)'s can
handle it as well.

18 years agoadd an entry for ozfod..
John-Mark Gurney [Sat, 18 Mar 2006 10:40:28 +0000 (10:40 +0000)]
add an entry for ozfod..

MFC after: 3 days

18 years agoWhen deconfiguring a log, only stop PMCs that are in the RUNNING
Joseph Koshy [Sat, 18 Mar 2006 03:54:07 +0000 (03:54 +0000)]
When deconfiguring a log, only stop PMCs that are in the RUNNING
state.

18 years agoMFp4:
Warner Losh [Sat, 18 Mar 2006 01:45:29 +0000 (01:45 +0000)]
MFp4:

Add bus attachment for the ohci device on this chip.  The bus and hub
are detected correctly, but the children devices aren't detected
correctly for reasons unknown.

18 years agoAdd ohci controller mapping.
Warner Losh [Sat, 18 Mar 2006 01:43:54 +0000 (01:43 +0000)]
Add ohci controller mapping.

18 years agoMFp4:
Warner Losh [Sat, 18 Mar 2006 01:43:25 +0000 (01:43 +0000)]
MFp4:

o update TODO list
o Better use of busdma
o mark RX dtors as COHERENT.  This helps performance a lot by not requiring
  so many EXPENSIVE cache flushes.  The cost of accessing it non-cached
  is much smaller.
o Copy data from Rx buffers to make IP header 4 byte aligned.
o CRC length included in reported length, so cope
o Don't free TX buffer twice
o Manage TX buffers better.
o Enable just the interrupts we want.
o Manage OACTIVE better

# Some of these done by cognet
# These changes let us get to # via NFS root.

18 years agoMFP4:
Warner Losh [Sat, 18 Mar 2006 01:39:23 +0000 (01:39 +0000)]
MFP4:
Gratuitously sort alphabetically.

18 years agoMFP4:
Warner Losh [Sat, 18 Mar 2006 01:38:25 +0000 (01:38 +0000)]
MFP4:

GC and fix definitions.

# some of this may have been done by cognet

18 years agoMFp4:
Warner Losh [Sat, 18 Mar 2006 01:35:49 +0000 (01:35 +0000)]
MFp4:

o Add memory barrier to bus space
o Allow for up to 3 IRQs per device
o Move to table driven population of children devices.
o Add support for usb ohci memory mapped controller resource allocation.
o Clean up a bunch of extra writes to disable interrupts that are now
  done elsewhere.
o Force all system interrupt handlers be fast.  We get deadlock if they
  aren't.

18 years agoMFp4:
Warner Losh [Sat, 18 Mar 2006 01:30:31 +0000 (01:30 +0000)]
MFp4:

o Disable all interrupts that the ST can generate until we have an ISR
  to service them.
o Correct clock calculation to make DELAY the right length...

Submitted by: cognet (#2)

18 years agofix spelling of ozfod... I've been wondering why we'd need to fill a page
John-Mark Gurney [Sat, 18 Mar 2006 01:06:13 +0000 (01:06 +0000)]
fix spelling of ozfod...  I've been wondering why we'd need to fill a page
w/ non-zero data, and it turns out we don't...  This is really optimized
zero filled on demand, or pages that were already zero'd for us...

MFC after: 3 days

18 years agoIf an NFS server returns more than a few EJUKEBOX errors for a given RPC
Chuck Lever [Fri, 17 Mar 2006 22:14:23 +0000 (22:14 +0000)]
If an NFS server returns more than a few EJUKEBOX errors for a given RPC
request, the FreeBSD NFS client will quickly back off to a excessively
long wait (days, then weeks) before retrying the request.

Change the behavior of the FreeBSD NFS client to match the behavior of
the reference NFS client implementation (Solaris).  This provides a fixed
delay of 10 seconds between each retry by default.  A sysctl, called
nfs3_jukebox_delay, is now available to tune the delay.  Unlike Solaris,
the sysctl value on FreeBSD is in seconds, rather than in HZ.

Sponsored by: Network Appliance, Incorporated
Reviewed by: rick
Approved by: silby
MFC after: 3 days

18 years agoA few minor corrections to the mkuzip.8 man page.
Maxim Sobolev [Fri, 17 Mar 2006 20:48:10 +0000 (20:48 +0000)]
A few minor corrections to the mkuzip.8 man page.

PR: 92576
Submitted by: Stefan Bethke

18 years agoModify netatalk to ensure, and assert, that pcb's remain attached to
Robert Watson [Fri, 17 Mar 2006 20:40:17 +0000 (20:40 +0000)]
Modify netatalk to ensure, and assert, that pcb's remain attached to
sockets as long as the sockets have not been aborted or detached.  Do
not try to free the socket in pru_detach(), since sofree() will do so,
if needed, once pru_detach() returns.

Annotate a bug in ddp_abort(), which fails to free the socket; this
is probably OK as ddp_abort() should never be called, so should
instead be deleted.

18 years agoChange s_net to s_node when printing the destination address.
Robert Watson [Fri, 17 Mar 2006 20:14:25 +0000 (20:14 +0000)]
Change s_net to s_node when printing the destination address.

18 years agoReimplementation of world/kernel build options. For details, see:
Ruslan Ermilov [Fri, 17 Mar 2006 18:54:44 +0000 (18:54 +0000)]
Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)

18 years agoChange so_pcb invariants in netnatm, such that netnatm sockets always have
Robert Watson [Fri, 17 Mar 2006 18:25:57 +0000 (18:25 +0000)]
Change so_pcb invariants in netnatm, such that netnatm sockets always have
pcb's allocated:

- Universally ensure (and assert) that so_pcb is not NULL, removing lots
  of checks and error cases.  Don't free the pcb without clearing the
  so_pcb pointer.

- Don't try to free the socket in pru_detach(), since the caller will
  immediately free the socket.

- Do retain the sotryfree() in pru_abort() for now, although eventually
  the caller will do it unconditionally.

18 years agoSony DSC cameras with revision number 6.0 require the same quirk
Ian Dowse [Fri, 17 Mar 2006 18:16:22 +0000 (18:16 +0000)]
Sony DSC cameras with revision number 6.0 require the same quirk
as those reporting revision 5.0.

Reported by: Brian Reichert
MFC after: 1 week

18 years agoThis script symlinks /boot/kernel to the directory that contains the kernel
Dag-Erling Smørgrav [Fri, 17 Mar 2006 16:28:12 +0000 (16:28 +0000)]
This script symlinks /boot/kernel to the directory that contains the kernel
you booted from, unless /boot/kernel already exists and is not a symlink.
This should only affect people like me who juggle multiple kernels and
have KODIR = /boot/${KERN_IDENT} in /etc/make.conf to keep them apart.

18 years agoModify UNIX domain sockets to guarantee, and assume, that so_pcb is always
Robert Watson [Fri, 17 Mar 2006 13:52:57 +0000 (13:52 +0000)]
Modify UNIX domain sockets to guarantee, and assume, that so_pcb is always
defined for an in-use socket.  This allows us to eliminate countless tests
of whether so_pcb is non-NULL, eliminating dozens of error cases.  For
now, retain the call to sotryfree() in the uipc_abort() path, but this
will eventually move to soabort().

These new assumptions should be largely correct, and will become more so
as the socket/pcb reference model is fixed.  Removing the notion that
so_pcb can be non-NULL is a critical step towards further fine-graining
of the UNIX domain socket locking, as the so_pcb reference no longer
needs to be protected using locks, instead it is a property of the socket
life cycle.

18 years agoCorrect the requirements for g_new_consumer().
Dag-Erling Smørgrav [Fri, 17 Mar 2006 13:13:18 +0000 (13:13 +0000)]
Correct the requirements for g_new_consumer().

Approved by: phk

18 years agoDon't build the ipw and iwi on pc98.
Yoshihiro Takahashi [Fri, 17 Mar 2006 13:06:19 +0000 (13:06 +0000)]
Don't build the ipw and iwi on pc98.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r156803,
Hartmut Brandt [Fri, 17 Mar 2006 10:04:10 +0000 (10:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r156803,
which included commits to RCS files with non-trunk default branches.

18 years agoThis is actually a section 3 man page, not section 1. Also fix a couple
Hartmut Brandt [Fri, 17 Mar 2006 10:04:10 +0000 (10:04 +0000)]
This is actually a section 3 man page, not section 1. Also fix a couple
of grammatical errors.

Submitted by: jkoshy@

18 years agoRemove NO_SENDMAIL leaked from the days when building non-crypto
Ruslan Ermilov [Fri, 17 Mar 2006 09:43:39 +0000 (09:43 +0000)]
Remove NO_SENDMAIL leaked from the days when building non-crypto
stuff for release was evil.

18 years agoRemove dead code.
Gleb Smirnoff [Fri, 17 Mar 2006 09:17:36 +0000 (09:17 +0000)]
Remove dead code.

Submitted by: oleg

18 years agoModify allocation policy, in order to avoid excessive fragmentation for
Jason Evans [Fri, 17 Mar 2006 09:00:27 +0000 (09:00 +0000)]
Modify allocation policy, in order to avoid excessive fragmentation for
allocation patterns that involve a relatively even mixture of many
different size classes.

Reduce the chunk size from 16 MB to 2 MB.  Since chunks are now carved up
using an address-ordered first best fit policy, VM map fragmentation is
much less likely, which makes smaller chunks not as much of a risk.  This
reduces the virtual memory size of most applications.

Remove redzones, since program buffer overruns are no longer as likely to
corrupt malloc data structures.

Remove the C MALLOC_OPTIONS flag, and add H and S.

18 years agoIf we actually succeed in the Task Management Function where we
Matt Jacob [Fri, 17 Mar 2006 04:54:06 +0000 (04:54 +0000)]
If we actually succeed in the Task Management Function where we
are aborting timed out commands, pull the request off the TAILQ.

18 years agoIn mpt_complete_request_chain don't depend on somebody else to
Matt Jacob [Fri, 17 Mar 2006 04:52:27 +0000 (04:52 +0000)]
In mpt_complete_request_chain don't depend on somebody else to
remove the request from the TAILQ.

18 years agoFirst pass at trimming package set down. Disc2 is still too big
Ken Smith [Fri, 17 Mar 2006 02:05:46 +0000 (02:05 +0000)]
First pass at trimming package set down.  Disc2 is still too big
even with this but we're still deciding exactly what to do about
that.

18 years agoAdapt for the new firmware ports.
Christian Brueffer [Thu, 16 Mar 2006 22:39:17 +0000 (22:39 +0000)]
Adapt for the new firmware ports.

MFC after: 3 days

18 years agoDocument JMicron JMB361, 365 and 366 support.
Christian Brueffer [Thu, 16 Mar 2006 22:20:39 +0000 (22:20 +0000)]
Document JMicron JMB361, 365 and 366 support.

MFC after: 3 days

18 years agoAdd device-id for the Neteasy DRP-32TXD cardbus 10/100 card. It's another
John Baldwin [Thu, 16 Mar 2006 20:00:39 +0000 (20:00 +0000)]
Add device-id for the Neteasy DRP-32TXD cardbus 10/100 card.  It's another
ADMTek AN985 clone.

MFC after: 3 days
Tested by: Lila liladude at aruba dot it

18 years agoProperly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.
Maksim Yevmenkin [Thu, 16 Mar 2006 18:26:54 +0000 (18:26 +0000)]
Properly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.

Noticed by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days

18 years agoAdd kqueue(2) support on if_tap(4) interfaces. While I'm here, replace
Maksim Yevmenkin [Thu, 16 Mar 2006 18:22:01 +0000 (18:22 +0000)]
Add kqueue(2) support on if_tap(4) interfaces. While I'm here, replace
K&R style function declarations with ANSI style. Also fix endian bugs
accessing ioctl arguments that are passed by value.

PR: kern/93897
Submitted by: Vilmos Nebehaj < vili at huwico dot hu >
MFC after: 1 week

18 years agoReorganize /etc/rc.d/syscons and move all keyboard related settings
Maksim Yevmenkin [Thu, 16 Mar 2006 17:42:28 +0000 (17:42 +0000)]
Reorganize /etc/rc.d/syscons and move all keyboard related settings
into one function syscons_configure_keyboard(). Call new function from
both syscons_start() and sysconst_setkeyboard(). The reason for this
is because syscons_start() will (re)configure both keyboard and screen
settings. Apparently, some graphics cards have problems with running
vidcontrol(1) while X11 is running.

Remove "/etc/rc.d/syscons restart" from /etc/devd.conf. It is no longer
required. Using "/etc/rc.d/syscons setkeyboard" is enough. This also
should fix annoying "syscons not running?" message.

Tested by: Ulrich Spoerlein < q at galgenberg dot net >
MFC after: 3 days

18 years agoThe ltmdm port is marked as NO_PACKAGE now.
Ken Smith [Thu, 16 Mar 2006 17:24:27 +0000 (17:24 +0000)]
The ltmdm port is marked as NO_PACKAGE now.

18 years agoCross-reference basename(3) and dirname(3).
Joseph Koshy [Thu, 16 Mar 2006 17:21:52 +0000 (17:21 +0000)]
Cross-reference basename(3) and dirname(3).

18 years agoWhen compiled with -DDEBUG, only print the old value of a PMC in a
Joseph Koshy [Thu, 16 Mar 2006 16:32:56 +0000 (16:32 +0000)]
When compiled with -DDEBUG, only print the old value of a PMC in a
debugging message if the flag PMC_F_OLDVALUE was specified in the
PMC_OP_RW request being acted upon.  This should fix Coverity bug
CID 671.

Found by: Coverity Prevent
MFC after: 3 weeks

18 years ago- Use jp.pc98 as default keymap for pc98.
Yoshihiro Takahashi [Thu, 16 Mar 2006 15:50:21 +0000 (15:50 +0000)]
- Use jp.pc98 as default keymap for pc98.
- Remove an extra argument.

18 years agoAdd version_gen.awk to the installed files.
Daniel Eischen [Thu, 16 Mar 2006 15:20:27 +0000 (15:20 +0000)]
Add version_gen.awk to the installed files.

18 years agoNO_MAN is not needed here.
Ruslan Ermilov [Thu, 16 Mar 2006 15:18:17 +0000 (15:18 +0000)]
NO_MAN is not needed here.

18 years agoSuuply the name of the version map and let bsd.lib.mk supply
Daniel Eischen [Thu, 16 Mar 2006 15:17:47 +0000 (15:17 +0000)]
Suuply the name of the version map and let bsd.lib.mk supply
the link arguments.

18 years agoAllow bsd.lib.mk to generate the symbol version map.
Daniel Eischen [Thu, 16 Mar 2006 15:16:23 +0000 (15:16 +0000)]
Allow bsd.lib.mk to generate the symbol version map.

18 years agoTeach bsd.lib.mk to auto generate a version map file based on
Daniel Eischen [Thu, 16 Mar 2006 15:12:26 +0000 (15:12 +0000)]
Teach bsd.lib.mk to auto generate a version map file based on
a set of symbol definitions (VERSION_DEF) and symbol mappings
(SYMBOL_MAPS).

Add an awk script to generate the version map.

Suggested by: ru
Helped by: ru
Reviewed by: ru

18 years agoDo `mount_devfs' when starting a jail.
Jesus R. Camou [Thu, 16 Mar 2006 14:31:35 +0000 (14:31 +0000)]
Do `mount_devfs' when starting a jail.

PR: docs/86044
Noticed by: Dan Langille <dan@langille.org>
Reviewed by: Jose Biskofski <jbiskofski@grmims.com>
Approved by: trhodes (mentor)

18 years agoFix comment.
Ruslan Ermilov [Thu, 16 Mar 2006 14:27:17 +0000 (14:27 +0000)]
Fix comment.

18 years agoDesupport the undocumented NO_QUAD option, just don't compile
Ruslan Ermilov [Thu, 16 Mar 2006 14:22:19 +0000 (14:22 +0000)]
Desupport the undocumented NO_QUAD option, just don't compile
the quad support on 64-bit platforms.

18 years agoRemove nested includes of <sys/_lock.h> and <sys/_mutex.h> which spill into
Poul-Henning Kamp [Thu, 16 Mar 2006 11:19:36 +0000 (11:19 +0000)]
Remove nested includes of <sys/_lock.h> and <sys/_mutex.h> which spill into
userland.  The comment indicated that something in userland needed them, but
make universe can't seem to find any traces of it.

Move <sys/queue.h> include up.

18 years agoCorrect two vm object reference leaks in error cases.
Alan Cox [Thu, 16 Mar 2006 08:51:59 +0000 (08:51 +0000)]
Correct two vm object reference leaks in error cases.

Submitted by: davidxu

18 years agoRestore CHN_F_BUSY flag which was removed accidentally in previous commit.
Ariff Abdullah [Thu, 16 Mar 2006 08:01:10 +0000 (08:01 +0000)]
Restore CHN_F_BUSY flag which was removed accidentally in previous commit.

18 years agoWhen building for pc98, don't create stray objects in the
Ruslan Ermilov [Thu, 16 Mar 2006 07:31:50 +0000 (07:31 +0000)]
When building for pc98, don't create stray objects in the
usr.sbin/pcvt/keycap source directory.

Found by: phk
MFC after: 3 days

18 years agoChange soabort() from returning int to returning void, since all
Robert Watson [Thu, 16 Mar 2006 07:03:14 +0000 (07:03 +0000)]
Change soabort() from returning int to returning void, since all
consumers ignore the return value, soabort() is required to succeed,
and protocols produce errors here to report multiple freeing of the
pcb, which we hope to eliminate.

18 years agoFix severe 8bit integer overflow during channel creation and destruction,
Ariff Abdullah [Thu, 16 Mar 2006 04:12:49 +0000 (04:12 +0000)]
Fix severe 8bit integer overflow during channel creation and destruction,
especially for vchans. It turns out that channel numbering always depend
on d->devcount counter (which keep increasing), while PCMMKMINOR() truncate
everything to 8bit length. At some point the truncation cause the newly
created character device overlapped with the existence one, causing erratic
overall system behaviour and panic. Easily reproduce with something like:

(Luckily, only root can reproduce this)

while : ; do
sysctl hw.snd.pcm0.vchans=200
sysctl hw.snd.pcm0.vchans=100
done

- Enforce channel/chardev numbering within 8bit boundary. Return E2BIG
  if necessary.
- Traverse d->channels SLIST and try to reclaim "free" counter during channel
  creation. Don't rely on d->devcount at all.
- Destroy vchans in reverse order.

Anyway, this is not the fault of vchans. It is just that vchans are so cute
and begging to be abused ;) . Don't blame her.

Old, hidden bugs.. sigh..

MFC after: 3 days

18 years agoRemove the nls/*/charset files to the exclude list. These files
Hajimu UMEMOTO [Thu, 16 Mar 2006 04:01:27 +0000 (04:01 +0000)]
Remove the nls/*/charset files to the exclude list.  These files
are required for NLS catalog support.

18 years agoFix a race between file operations and rfork(RFCFDG) by parking
David Xu [Wed, 15 Mar 2006 23:24:14 +0000 (23:24 +0000)]
Fix a race between file operations and rfork(RFCFDG) by parking
all other threads at user boundary, the race can crash kernel
under stress testing.

Reviewed by: jhb
MFC after: 3 days

18 years agowhen doing s/w crypto make sure work is done w/ a writable mbuf chain;
Sam Leffler [Wed, 15 Mar 2006 21:27:08 +0000 (21:27 +0000)]
when doing s/w crypto make sure work is done w/ a writable mbuf chain;
this corrects problems with drivers that rely on the host to do
crypto (iwi, ipw, ral, ural, wi (hostap), awi)

Hard work by: luigi, mlaier
Reviewed by: luigi, mlaier
MFC after: 1 week

18 years agoIf a keymap file is not found for the selected country then default to the more
Andrew Thompson [Wed, 15 Mar 2006 21:20:01 +0000 (21:20 +0000)]
If a keymap file is not found for the selected country then default to the more
common USA ISO rather than index 0 (Belgian).

Reviewed by: jhb
MFC after: 1 day

18 years agopromote fast ipsec's m_clone routine for public use; it is renamed
Sam Leffler [Wed, 15 Mar 2006 21:11:11 +0000 (21:11 +0000)]
promote fast ipsec's m_clone routine for public use; it is renamed
m_unshare and the caller can now control how mbufs are allocated

Reviewed by: andre, luigi, mlaier
MFC after: 1 week

18 years agobuild ipw(4) and iwi(4) modules on i386 and amd64 only.
Damien Bergamini [Wed, 15 Mar 2006 20:58:44 +0000 (20:58 +0000)]
build ipw(4) and iwi(4) modules on i386 and amd64 only.

18 years agoBack out accidentally committed protosw.h:1.49. One of those days. It
Robert Watson [Wed, 15 Mar 2006 20:41:15 +0000 (20:41 +0000)]
Back out accidentally committed protosw.h:1.49.  One of those days.  It
will be recommitted with the remainder of the change in the next day or
two.

Submitted by: thompsa