rwatson [Thu, 16 Jan 2003 03:41:57 +0000 (03:41 +0000)]
Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly,
rather than specifically setting the process priority and resource class;
otherwise, we improperly set other aspects of the login class. We have
a bit more to do here, but the proper fix will probably involve breaking
out MAC labels from the login class at some point, as well as further
clarifying the logic here.
njl [Thu, 16 Jan 2003 00:24:29 +0000 (00:24 +0000)]
kernel:
* Fix a bug where devices weren't cleaned up on close(): CAM_REQ_CMP != 0
user:
* Increase timeout in usermode to CAM_TIME_INFINITY. The initiator is in
charge of timeouts and the value was in ms, not seconds.
* Bring two debugging printfs under the debug flag
* Clean up man page to show increased testing on isp(4)
dillon [Wed, 15 Jan 2003 23:54:35 +0000 (23:54 +0000)]
Merge all the various copies of vmapbuf() and vunmapbuf() into a single
portable copy. Note that pmap_extract() must be used instead of
pmap_kextract().
This is precursor work to a reorganization of vmapbuf() to close remaining
user/kernel races (which can lead to a panic).
marcel [Wed, 15 Jan 2003 22:36:15 +0000 (22:36 +0000)]
Change the handling of non-anchored global substitutions of the empty
string from a silent implicit non-global substitution to a non-silent
explicit fatal error. Archored substitutions are those containing '^'
or '$'.
The problem with changing the substitution to prevent an infinite
number of matches is that it doesn't provide the necessary feedback
to the user that there's a bug in the/a makefile. Reporting the bug
without making the condition fatal makes the feedback mostly useless
due to the way that make fails to prefix the error with program name,
makefile file name and line number information.
Note that global substitutions of the empty string anchored with '^'
(start of string) or '$' (end of string) do not cause an infinite
number of matches and are therefore not reported and hence are non-
fatal.
jhb [Wed, 15 Jan 2003 21:49:50 +0000 (21:49 +0000)]
If there is a driver floppy for this arch, then add a line to the loader.rc
on the boot floppies to set the 'driver_floppy' variable in the loader so
that it ends up in the kernel environment and sysinstall will prompt for the
diskette. Booting from CD-ROM does not use this loader.rc file, so folks
booting from CD to do an install will not be prompted.
X-MFC after: as soon as I finish committing to current
Approved by: re (blanket)
jhb [Wed, 15 Jan 2003 21:47:36 +0000 (21:47 +0000)]
Add a function driverFloppyCheck() that asks the user if they would like to
load drivers from the driver floppy if the "driver_floppy" variable is set
in the kernel environment and call this function after probing devices but
before displaying the main menu.
X-MFC after: as soon as I finish committing to current
Approved by: re@ (blanket)
phk [Wed, 15 Jan 2003 20:15:33 +0000 (20:15 +0000)]
Add machdep.elan_freq sysctl which can be used to set the CPU clock
frequency in Hz. The default is still 33.333 MHz. Please notice
that the number is round to a multiple of four internally so it may
not read back exactly the same as written.
Add compile time ELAN_XTAL option to override the 33.333 MHz default.
Add compile time ELAN_PPS option to enable code for high precision
(250 nanoseconds) timestamping of external signals.
sam [Wed, 15 Jan 2003 20:01:50 +0000 (20:01 +0000)]
802.11 link layer support. This code implements the basic 802.11
state machine to provide station and host ap functionality for drivers.
More work will follow to split out the state machine and protocol
support from the ioctl interfaces to ease portability/sharing with
NetBSD and forthcoming ports to other systems.
bmah [Wed, 15 Jan 2003 15:20:50 +0000 (15:20 +0000)]
MFR50: Synchronize the content of the errata file with RELENG_5_0.
article.sgml 1.9.2.4
At this point, the errata file on HEAD should contain the same content
as for RELENG_5_0, but be compatible with the SGML entities and other
infrastructure on HEAD. We can now add content here and it will
appear as post-release errata.
bmah [Wed, 15 Jan 2003 15:15:09 +0000 (15:15 +0000)]
More prep work for the errata file.
Simulate the effects of a version number bump for just the errata
document. This change will be backed out in a few days, during the
post release version number bump for the release documentation.
bmah [Wed, 15 Jan 2003 15:10:43 +0000 (15:10 +0000)]
Prepare to make the errata file on HEAD serve as the on-line (mutable)
errata document for 5.0-RELEASE, since that is the development branch
on which 5.0-RELEASE is based.
This change consists primarily of whitespace diff reductions to
RELENG_4 plus deleting some text that isn't really applicable.
scottl [Wed, 15 Jan 2003 08:11:35 +0000 (08:11 +0000)]
- Add mozilla to the package list since it would be nice to have a browser
that a) was from this century, b) is not Opera, and c) doesn't require
KDE.
- Don't include the compat22 libraries unless the PKG_ARCH is i386. Same
goes for compat3x and compat4x for i386 and alpha.
- Define PKG_ARCH and make it overridable in the environment.
chris [Wed, 15 Jan 2003 00:45:31 +0000 (00:45 +0000)]
o Document mac_prepare() and associated functions
o Link mac_get_pid.3 to mac_get.3
o Update SEE ALSO to refer to mac_prepare, and added missing references
o Remove clause #3 on my work
o Update mac_get.3 for the updated MAC API
joe [Tue, 14 Jan 2003 23:07:43 +0000 (23:07 +0000)]
Some USB devices are not prepared to deal with a single byte string
descriptor request, which usbd_get_string_desc() uses to get the
length of a descriptor. One device for instance returns a full 8
byte long packet instead which confuses the rest of the stack and
leads to the USB port being reset. The fix is to instead request
two bytes, but not to complain if we only get one.
dillon [Tue, 14 Jan 2003 19:35:33 +0000 (19:35 +0000)]
Introduce the ability to flag a sysctl for operation at secure level 2 or 3
in addition to secure level 1. The mask supports up to a secure level of 8
but only add defines through CTLFLAG_SECURE3 for now.
As per the missif in the log entry for 1.11 of ip_fw2.c which added the
secure flag to the IPFW sysctl's in the first place, change the secure
level requirement from 1 to 3 now that we have support for it.
njl [Tue, 14 Jan 2003 19:31:27 +0000 (19:31 +0000)]
Remove bogus locking from dc(4). Instead, move interrupt allocation
and ether_ifattach() to end. This fixes a "could sleep" case and
simplifies error exit cases as well. Also be sure to set errno
and clean up resources in !mac error case.
dillon [Tue, 14 Jan 2003 19:26:08 +0000 (19:26 +0000)]
Comment correction. NetBSD uses 'readblksize' as the multiplier for the
-r option, which defaults to 32K (not 512 bytes). Still just as bad
from a UI standpoint, though.
cognet [Tue, 14 Jan 2003 17:13:52 +0000 (17:13 +0000)]
Don't call destroy_dev it a channel has children.
vchan creation doesn't lead to /dev entry creation if the new vchan is the
first child of a channel,
This fix a panic that happens when loading a sound driver module, creating
vchans and unloading the driver.
mtm [Tue, 14 Jan 2003 15:43:02 +0000 (15:43 +0000)]
Finish merging in rev. 1.124 of rc.network, so that natd can be used
withough the $natd_interface having to be explicitly specified on the
command line.