Peter Grehan [Thu, 5 Oct 2006 06:04:44 +0000 (06:04 +0000)]
Catch up with recent clock modifications:
- include <sys/clock.h> for inittodr prototype
- remove now-conflicting SECDAY definition that is in <sys/clock.h>
Julian Elischer [Wed, 4 Oct 2006 22:16:40 +0000 (22:16 +0000)]
Large rewrite of the tinybsd script.
This allows the user to specify that the root filoesystem should be
an MFS or teh actual medium itself.
Also a new command syntax, along with an interactive mode by default,
with crossinvocation memory of the last used values as defaults for the
current invocation.
John Birrell [Wed, 4 Oct 2006 21:37:10 +0000 (21:37 +0000)]
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Security:
Move the relocation definitions to the common elf header so that DTrace
can use them on one architecture targeted to a different one.
Add the additional ELF types defines in Sun's "Linker and Libraries"
manual.
Use strtoll(3) instead of strtol(3) for the starting block or
partition size. On 32-bit platforms sizeof(long) < sizeof(off_t)
and using strtol(3) would prevent partitions larger than 4G
sectors or beyond 4G blocks.
John Birrell [Wed, 4 Oct 2006 07:23:31 +0000 (07:23 +0000)]
This file is the same as the one installed in /usr/include, however
there are enough places in the DTrace kernel/module sources that
having a header that gathers together all the individual elf headers
is convenient.
Note that the Solaris compatibility definions are conditionally
included iff _SOLARIS_C_SOURCE is defined.
John Birrell [Wed, 4 Oct 2006 07:19:39 +0000 (07:19 +0000)]
ELF compatibility definitions for OpenSolaris. These are covered
by Sun's CDDL and this file is only intended for inclusion where
_SOLARIS_C_SOURCE is defined (with the assumption that the code
being compiled is licensed under the CDDL too).
Tim Kientzle [Wed, 4 Oct 2006 02:08:04 +0000 (02:08 +0000)]
Performance: If the dir mode requested is "reasonable", then just
restore it directly and skip chmod() during the post-extract fixup.
In particular, bsdtar -xm now completely skips the post-extract fixup
for directories, which produces a noticable speedup in that case.
Robert Watson [Tue, 3 Oct 2006 20:43:48 +0000 (20:43 +0000)]
Add BSM conversion switch entries for a number of system calls, many
administrative, to prevent console warnings and enable basic event
auditing (generally without arguments).
MFC after: 3 days
Obtained from: TrustedBSD Project
Fix the remaining race in the revs. 1.232, 1,233 that could occur during
unmount when mp structure is reused while waiting for coveredvp lock.
Introduce struct mount generation count, increment it on each reuse and
compare the generations before and after obtaining the coveredvp lock.
Ian Dowse [Tue, 3 Oct 2006 01:13:26 +0000 (01:13 +0000)]
When changing the device address and max packet size in usbd_new_device(),
close and re-open the default pipe instead of relying on the host
controller driver to notice the changes. Remove the unreliable code
that attempted to update these fields while the pipe was active.
This fixes a case where the hardware could cache and continue to
use the old address, resulting in a "getting first desc failed"
error.
Ruslan Ermilov [Mon, 2 Oct 2006 16:02:41 +0000 (16:02 +0000)]
Ignore the UKBD_DFLT_KEYMAP option when compiling as a module.
The parallel LINT build sometimes broke if kernel-depend wasn't
fast enough in generating ukbdmap.h. If someone thinks this
option would still be useful for the module, a proper fix is
to add the code generating ukbdmap.h into modules/ukbd/Makefile
and backing this change out.
Second part of a little cleanup in the calendar/timezone/RTC handling.
Split subr_clock.c in two parts (by repo-copy):
subr_clock.c contains generic RTC and calendaric stuff. etc.
subr_rtc.c contains the newbus'ified RTC interface.
Centralize the machdep.{adjkerntz,disable_rtc_set,wall_cmos_clock}
sysctls and associated variables into subr_clock.c. They are
not machine dependent and we have generic code that relies on being
present so they are not even optional.
Update configure options and add some missing steps.
The section about our local changes needs reviewing, and some of those
changes should probably be reconsidered (such as preferring DSA over RSA,
which made sense when RSA was encumbered but probably doesn't any more)
Robert Watson [Mon, 2 Oct 2006 06:02:47 +0000 (06:02 +0000)]
Forced commit to recognize repo-copy of sys/sys/mac.h to
sys/security/mac/mac_framework.h. This is the first step in breaking out
in-kernel MAC APIs from the user/kernel APIs in mac.h.
Thanks to: simon
Obtained from: TrustedBSD Project
Sponsored by: SPARTA
Tor Egge [Mon, 2 Oct 2006 02:06:27 +0000 (02:06 +0000)]
If the buffer lock has waiters after the buffer has changed identity then
getnewbuf() needs to drop the buffer in order to wake waiters that might
sleep on the buffer in the context of the old identity.
Matt Jacob [Sun, 1 Oct 2006 20:23:50 +0000 (20:23 +0000)]
Put a bit of hysteresis into both BUSY SCSI status returns
and CAM_RESRC_UNAVAIL returns. Delay a tunable amount for
either between retries.
This came up because the MPT IOC was returning "IOC out of
resources" for some user and this caused a CAM_RESRC_UNAVAIL
return. Putting a bit of delay between retries helped them
out.
There was some discussion that an async event should be used
to clear CAM_RESRC_UNAVAIL. That's probably a better notion
eventually.
Ruslan Ermilov [Sun, 1 Oct 2006 17:17:29 +0000 (17:17 +0000)]
Added rudimentary support for the "include" directive (inside "files").
This will be used to split sys/conf/files into multiple files similar
to how this is done in NetBSD.
Ariff Abdullah [Sun, 1 Oct 2006 11:18:56 +0000 (11:18 +0000)]
Connect snd_hda(4) to build process...
Add support for Intel High Definition Audio Controller.
This driver make a special guarantee that "playback" works
on majority hardwares with minimal or without specific vendor
quirk.
This driver is a product of collaborative effort made by:
Stephane E. Potvin <sepotvin@videotron.ca>
Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Wesley Morgan <morganw@chemikals.org>
Daniel Eischen <deischen@FreeBSD.org>
Maxime Guillaud <bsd-ports@mguillaud.net>
Ariff Abdullah <ariff@FreeBSD.org>
....and various people from freebsd-multimedia@FreeBSD.org
Ariff Abdullah [Sun, 1 Oct 2006 11:13:00 +0000 (11:13 +0000)]
Add support for Intel High Definition Audio Controller.
This driver make a special guarantee that "playback" works
on majority hardwares with minimal or without specific vendor
quirk.
This driver is a product of collaborative effort made by:
Stephane E. Potvin <sepotvin@videotron.ca>
Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Wesley Morgan <morganw@chemikals.org>
Daniel Eischen <deischen@FreeBSD.org>
Maxime Guillaud <bsd-ports@mguillaud.net>
Ariff Abdullah <ariff@FreeBSD.org>
....and various people from freebsd-multimedia@FreeBSD.org
Martin Blapp [Sat, 30 Sep 2006 22:51:05 +0000 (22:51 +0000)]
Readd rev. 1.145 because of vfs bugs and races near revoke(). Until they
are fixed we can't free any slaves. Add a workaround to not to leak ptys
by number.