]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoRestructure and use different variables in the tests that involve
Sean Farley [Sun, 3 Aug 2008 22:47:23 +0000 (22:47 +0000)]
Restructure and use different variables in the tests that involve
environ[0] to be more obvious that environ is not NULL before environ[0]
is tested.  Although I believe the previous code worked, this change
improves code maintainability.

Reviewed by: ache
MFC after: 3 days

15 years agoAdd EAGAIN to the ERRORS list, as found in kern_jail.c.
Tom Rhodes [Sun, 3 Aug 2008 21:56:58 +0000 (21:56 +0000)]
Add EAGAIN to the ERRORS list, as found in kern_jail.c.

PR: 125253
Submitted by: Mateusz Guzik <mjguzik@gmail.com> (original version)

15 years agoKill a dead variable
Antoine Brodin [Sun, 3 Aug 2008 21:07:19 +0000 (21:07 +0000)]
Kill a dead variable

PR: 126223
Submitted by: Mateusz Guzik

15 years agoctime() expects a time_t, but qup->dqblk.dqb_btime is an int32_t, so for
Olivier Houchard [Sun, 3 Aug 2008 20:36:40 +0000 (20:36 +0000)]
ctime() expects a time_t, but qup->dqblk.dqb_btime is an int32_t, so for
big endian platforms where time_t is 64bits (ie armeb and sparc64), it will
be a problem.
Use a temporary time_t to work around this.

Submitted by: Matthew Luckie <mjl AT luckie DOT org dot nz>
MFC after: 3 days

15 years agoRestored from previous backing out (because that is OpenBSD way, so
Andrey A. Chernov [Sun, 3 Aug 2008 20:15:22 +0000 (20:15 +0000)]
Restored from previous backing out (because that is OpenBSD way, so
assumed to be reviewd by them):
Stir directly from the kernel PRNG, without taking less random pid & time
bytes too (when it is possible).

The difference with OpenBSD code is that they have KERN_ARND sysctl for
that task, while we need to read /dev/random

15 years ago- back out my last commit as it seems to be wrong.
Daniel Gerzo [Sun, 3 Aug 2008 19:01:07 +0000 (19:01 +0000)]
- back out my last commit as it seems to be wrong.

Spotted by: das

15 years agoFix some style bogosity from fdlibm.
David Schultz [Sun, 3 Aug 2008 17:49:05 +0000 (17:49 +0000)]
Fix some style bogosity from fdlibm.

15 years agoMinor improvements:
David Schultz [Sun, 3 Aug 2008 17:39:54 +0000 (17:39 +0000)]
Minor improvements:
- Improve the order of some tests.
- Fix style.

Submitted by: bde

15 years agoRemove broken code to replace st_mode value with ACCESSPERMS when
Robert Watson [Sun, 3 Aug 2008 15:44:56 +0000 (15:44 +0000)]
Remove broken code to replace st_mode value with ACCESSPERMS when
lstat(2) is called on symlinks -- this code appears never to have
worked.  The PR this addresses suggests that the intended
original behavior is the right one, but as bde points out in the
PR comments, we do actually support storing a mode on symlinks,
so returning it seems reasonable.

This is consistent with Mac OS X, which despite documentation to
the contrary does return the mode set on a symlink, but not some
other platforms.  The Single Unix Spec requires only that the
returned bits be "meaningful", which seems at best unhelpful as
advice goes.

PR: 25018
MFC after: 3 days

15 years agoAdd "add pc, whatever" as a branch instruction, we use it in memcpy().
Olivier Houchard [Sun, 3 Aug 2008 15:35:32 +0000 (15:35 +0000)]
Add "add pc, whatever" as a branch instruction, we use it in memcpy().

MFC after: 3 days

15 years agoDDB scripting, textdumps, output capture, etc, all will appear in
Robert Watson [Sun, 3 Aug 2008 14:27:06 +0000 (14:27 +0000)]
DDB scripting, textdumps, output capture, etc, all will appear in
FreeBSD 7.1 before 8.0 ships.

Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com>
MFC after: 3 days

15 years agoFill in a few sysctl descriptions.
Tom Rhodes [Sun, 3 Aug 2008 14:26:15 +0000 (14:26 +0000)]
Fill in a few sysctl descriptions.

Reviewed by: alc, Matt Dillon <dillon@apollo.backplane.com>
Approved by: alc

15 years agoDDB scripting, textdumps, output capture, etc, all will appear in
Robert Watson [Sun, 3 Aug 2008 14:14:43 +0000 (14:14 +0000)]
DDB scripting, textdumps, output capture, etc, all will appear in
FreeBSD 7.1 before 8.0 ships.

Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com>
MFC after: 3 days

15 years agoDocument a few sysctls.
Tom Rhodes [Sun, 3 Aug 2008 14:11:06 +0000 (14:11 +0000)]
Document a few sysctls.

Approved by: imp

15 years agoCalling linker_load_dependencies() while holding the module'
Konstantin Belousov [Sun, 3 Aug 2008 13:33:45 +0000 (13:33 +0000)]
Calling linker_load_dependencies() while holding the module'
vnode lock may cause a LOR between kld_sx lock and vnode lock.
linker_load_dependencies() drops kld_sx, and another thread may attempt
to load the same kld.

Reported and tested by: pjd
MFC after: 1 week

15 years agoDisconnect drivers that haven't been ported to MPSAFE TTY yet.
Ed Schouten [Sun, 3 Aug 2008 10:32:17 +0000 (10:32 +0000)]
Disconnect drivers that haven't been ported to MPSAFE TTY yet.

As clearly mentioned on the mailing lists, there is a list of drivers
that have not been ported to the MPSAFE TTY layer yet. Remove them from
the kernel configuration files. This means people can now still use
these drivers if they explicitly put them in their kernel configuration
file, which is good.

People should keep in mind that after August 10, these drivers will not
work anymore. Even though owners of the hardware are capable of getting
these drivers working again, I will see if I can at least get them to a
compilable state (if time permits).

15 years agocalendar.holiday: Buinea-bissau should be Guinea-Bissau
Edwin Groothuis [Sun, 3 Aug 2008 09:21:47 +0000 (09:21 +0000)]
calendar.holiday:  Buinea-bissau should be Guinea-Bissau

PR: conf/126199
Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net>
Approved by: bde@

15 years agoKernel config for the Linksys NSLU2. This is just a basic configuration,
Warner Losh [Sun, 3 Aug 2008 07:10:25 +0000 (07:10 +0000)]
Kernel config for the Linksys NSLU2.  This is just a basic configuration,
with no support for the LED, buttons, realtime clock or flash support.

15 years agoMove the grekey to its own file, ifconfig.c does not have interface specific
Andrew Thompson [Sun, 3 Aug 2008 03:36:12 +0000 (03:36 +0000)]
Move the grekey to its own file, ifconfig.c does not have interface specific
code.

Submitted by: sam

15 years agoHandle ldr pc, [reg] in branch_taken().
Olivier Houchard [Sun, 3 Aug 2008 01:53:14 +0000 (01:53 +0000)]
Handle ldr pc, [reg] in branch_taken().

Obtained from: NetBSD
MFC after: 3 days

15 years agoAdd blx as a branch instruction.
Olivier Houchard [Sun, 3 Aug 2008 01:51:30 +0000 (01:51 +0000)]
Add blx as a branch instruction.

MFC after: 3 days

15 years agoBumpd date
Warner Losh [Sat, 2 Aug 2008 23:41:10 +0000 (23:41 +0000)]
Bumpd date
Minor word smithing on the need for newer firmware.

15 years agoAdd entry for Prism-3 based Siemens SpeedStream card. It has
Warner Losh [Sat, 2 Aug 2008 23:29:35 +0000 (23:29 +0000)]
Add entry for Prism-3 based Siemens SpeedStream card.  It has
identical packaging and model numbers, but has had the Prism-II chips
replaced by Prism-3.  The wi driver was just updated with the new
entry.

15 years agoMinor style nit.
Warner Losh [Sat, 2 Aug 2008 22:53:43 +0000 (22:53 +0000)]
Minor style nit.

15 years agoMinor style tweaks.
Robert Watson [Sat, 2 Aug 2008 22:30:51 +0000 (22:30 +0000)]
Minor style tweaks.

15 years agoRename mac_partition_enabled to partition_enabled to synchronize with
Robert Watson [Sat, 2 Aug 2008 20:53:59 +0000 (20:53 +0000)]
Rename mac_partition_enabled to partition_enabled to synchronize with
other policies that similarly now avoid the additional mac_ prefix on
variables.

MFC after: soon

15 years agoAdd an altnerative Siemens SpeedStream ID. This one is for a Prism 3
Warner Losh [Sat, 2 Aug 2008 20:50:13 +0000 (20:50 +0000)]
Add an altnerative Siemens SpeedStream ID.  This one is for a Prism 3
card.  I got a pair of these at a garage sale for US$1.00 today...

15 years agoReport what kind of chip only under bootverbose since that's now
Warner Losh [Sat, 2 Aug 2008 20:49:01 +0000 (20:49 +0000)]
Report what kind of chip only under bootverbose since that's now
exported via a sysctl.

15 years agoMinor tweaks to names and comments now that I understand what's going
Warner Losh [Sat, 2 Aug 2008 20:45:28 +0000 (20:45 +0000)]
Minor tweaks to names and comments now that I understand what's going
on better.

15 years agoAdd an alternative ID for the Siemens SpeedStream SS1021: 0x3021.
Warner Losh [Sat, 2 Aug 2008 20:36:25 +0000 (20:36 +0000)]
Add an alternative ID for the Siemens SpeedStream SS1021: 0x3021.

15 years agoAdd a quote too good to miss from:
Poul-Henning Kamp [Sat, 2 Aug 2008 20:11:56 +0000 (20:11 +0000)]
Add a quote too good to miss from:

http://www.schneier.com/blog/archives/2008/08/schneier_misquo.html

(and reorder one I appearantly didn't get in the right place last time.)

15 years agoTest that the result is correctly rounded when |y/x| is huge.
David Schultz [Sat, 2 Aug 2008 19:21:33 +0000 (19:21 +0000)]
Test that the result is correctly rounded when |y/x| is huge.

15 years agoA few minor corrections, including some from bde:
David Schultz [Sat, 2 Aug 2008 19:17:00 +0000 (19:17 +0000)]
A few minor corrections, including some from bde:
- When y/x is huge, it's faster and more accurate to return pi/2
  instead of pi - pi/2.
- There's no need for 3 lines of bit fiddling to compute -z.
- Fix a comment.

15 years agochange list wme to only print the channel parameters; to
Sam Leffler [Sat, 2 Aug 2008 18:10:14 +0000 (18:10 +0000)]
change list wme to only print the channel parameters; to
get channel+bss use -v

15 years agodon't silently exit if the regdomain.xml file is missing
Sam Leffler [Sat, 2 Aug 2008 18:06:27 +0000 (18:06 +0000)]
don't silently exit if the regdomain.xml file is missing

15 years agoadd missing lock for htinfo update
Sam Leffler [Sat, 2 Aug 2008 18:04:09 +0000 (18:04 +0000)]
add missing lock for htinfo update

Submitted by: Chris Zimmermann

15 years agocorrect decap of of AppleTalk and IPX frames; don't strip the SNAP
Sam Leffler [Sat, 2 Aug 2008 18:02:57 +0000 (18:02 +0000)]
correct decap of of AppleTalk and IPX frames; don't strip the SNAP
header as they have one natively

Submitted by: Chris Zimmermann

15 years agouse new sysctl to generate a fake radar event
Sam Leffler [Sat, 2 Aug 2008 18:01:58 +0000 (18:01 +0000)]
use new sysctl to generate a fake radar event

15 years agoadd a sysctl to deliver a radar event for testing
Sam Leffler [Sat, 2 Aug 2008 18:00:33 +0000 (18:00 +0000)]
add a sysctl to deliver a radar event for testing

15 years agoschedule the correct timer when receiving a radar event during CAC
Sam Leffler [Sat, 2 Aug 2008 17:58:39 +0000 (17:58 +0000)]
schedule the correct timer when receiving a radar event during CAC

15 years agoTry to fixup last (inadvertent) commit: firmware_drain was never added so
Sam Leffler [Sat, 2 Aug 2008 17:51:38 +0000 (17:51 +0000)]
Try to fixup last (inadvertent) commit: firmware_drain was never added so
yank it's description; likewise for the FIRMWARE_WAIT flag to firmware_put.

For the record, the last commit was to cleanup various mistakes and correct
the example of embedding to reflect the npe firmware now being distributed
with the system.

15 years agoadd callout_schedule; besides being useful it also improves
Sam Leffler [Sat, 2 Aug 2008 17:42:38 +0000 (17:42 +0000)]
add callout_schedule; besides being useful it also improves
compatibility with other systems

Reviewed by: ed, battlez

15 years agoremove whitespace bug (8 spaces into one tab)
Remko Lodder [Sat, 2 Aug 2008 13:49:12 +0000 (13:49 +0000)]
remove whitespace bug (8 spaces into one tab)

Submitted by: ed

15 years agoCorrectly set the interrupt enable and disable bits. The previous
Scott Long [Sat, 2 Aug 2008 13:04:26 +0000 (13:04 +0000)]
Correctly set the interrupt enable and disable bits.  The previous
code interfered with Performant mode and legacy interrupts.  Also
remove a register read operation on the Simplq code that was
effectively a time-wasting no-op.

15 years agoFix software single-stepping: we need to check if the instruction is a
Olivier Houchard [Sat, 2 Aug 2008 12:49:43 +0000 (12:49 +0000)]
Fix software single-stepping: we need to check if the instruction is a
return instruction as well, or we'll stop single-stepping as soon as we'll
return from a function.

MFC after: 3 days

15 years agoAdd yet another branch instruction.
Olivier Houchard [Sat, 2 Aug 2008 12:48:30 +0000 (12:48 +0000)]
Add yet another branch instruction.

Obtained from: NetBSD
MFC after: 3 days

15 years agoUnbreak the arm build, by spelling LIBSRCS correctly.
Olivier Houchard [Sat, 2 Aug 2008 12:33:39 +0000 (12:33 +0000)]
Unbreak the arm build, by spelling LIBSRCS correctly.

15 years agoAdd support for the ASUS P535 PDA
Remko Lodder [Sat, 2 Aug 2008 12:15:18 +0000 (12:15 +0000)]
Add support for the ASUS P535 PDA

PR: kern/126097
Submitted by: Anton Kartashev <amokk@seb.org.ua>
Approved by: imp (mentor, implicit)
MFC after: 3 days

15 years agoVarious style fixes in the build32 rules.
John Baldwin [Sat, 2 Aug 2008 12:14:22 +0000 (12:14 +0000)]
Various style fixes in the build32 rules.

Submitted by: bde (mostly)

15 years agoA few style and whitespace fixes.
John Baldwin [Sat, 2 Aug 2008 12:04:59 +0000 (12:04 +0000)]
A few style and whitespace fixes.

Submitted by: bde

15 years agoMake the at91 uart(4) driver compile again.
Ed Schouten [Sat, 2 Aug 2008 08:01:56 +0000 (08:01 +0000)]
Make the at91 uart(4) driver compile again.

As of r178766 this driver didn't compile anymore, because it missed a
switch()-statement. I'm getting tired of seeing this driver being broken
for two months already. When I run `make universe', everything passes,
except the BWCT kernel configuration file.

15 years agoixp425 parts aren't multicore, so remove the SMP option. They also
Warner Losh [Sat, 2 Aug 2008 07:20:30 +0000 (07:20 +0000)]
ixp425 parts aren't multicore, so remove the SMP option.  They also
don't support the ioapic either, so remove that option too.  These
were commented out, but could never be enabled, unlike the other
options in the file that are commented out.

15 years agoConform to the options<space><tab> convention everywhere in this file.
Warner Losh [Sat, 2 Aug 2008 07:18:12 +0000 (07:18 +0000)]
Conform to the options<space><tab> convention everywhere in this file.
This is just a white space change, no functional change.

15 years agoRegression tests for fmtcheck(3).
David Schultz [Sat, 2 Aug 2008 06:03:04 +0000 (06:03 +0000)]
Regression tests for fmtcheck(3).

Obtained from: NetBSD

15 years agoTeach fmtcheck() about wint_t, intmax_t, char *, intmax_t *, and
David Schultz [Sat, 2 Aug 2008 06:02:42 +0000 (06:02 +0000)]
Teach fmtcheck() about wint_t, intmax_t, char *, intmax_t *, and
wide string arguments.

Also simplify the code that handles length modifiers and make it
more conservative. For instance, be explicit about the modifiers
allowed for %d, rather than assuming that anything other than L,
q, t, or z implies an int argument.

15 years agoPOSIX says that octal escapes have the format \ddd in the format string,
David Schultz [Sat, 2 Aug 2008 06:02:02 +0000 (06:02 +0000)]
POSIX says that octal escapes have the format \ddd in the format string,
but \0ddd in a %b argument, with a length restriction of 3 octal digits
in either case. This seems silly, but it needs to be right so it's possible
to write an octal escape followed by an ordinary digit. Solaris printf(1)
and GNU printf(1) also behave this way.

Example: "printf '\0752'" now produces "=2" instead of garbage.

15 years agoOn i386, gcc truncates long double constants to double precision
David Schultz [Sat, 2 Aug 2008 03:56:22 +0000 (03:56 +0000)]
On i386, gcc truncates long double constants to double precision
at compile time regardless of the dynamic precision, and there's
no way to disable this misfeature at compile time. Hence, it's
impossible to generate the appropriate tables of constants for the
long double inverse trig functions in a straightforward way on i386;
this change hacks around the problem by encoding the underlying bits
in the table.

Note that these functions won't pass the regression test on i386,
even with the FPU set to extended precision, because the regression
test is similarly damaged by gcc. However, the tests all pass when
compiled with a modified version of gcc.

Reported by:   bde

15 years agoEnhance pmap_mapdev_attr(). Take advantage of recent enhancements to
Alan Cox [Sat, 2 Aug 2008 03:43:54 +0000 (03:43 +0000)]
Enhance pmap_mapdev_attr().  Take advantage of recent enhancements to
pmap_change_attr() in order to use the direct map for any cache mode, not
just write-back mode.

It is worth noting that this change also eliminates a situation in which we
have two mappings to the same physical memory with different cache modes.

Submitted by: Magesh Dhasayyan (with some changes by me)
Discussed with: jhb

15 years agoDetect if the application has cleared the environ variable by setting
Sean Farley [Sat, 2 Aug 2008 02:34:35 +0000 (02:34 +0000)]
Detect if the application has cleared the environ variable by setting
the first value (environ[0]) to NULL.  This is in addition to the
current detection of environ being replaced, which includes being set to
NULL.  Without this fix, the environment is not truly wiped, but appears
to be by getenv() until an *env() call is made to alter the enviroment.

This change is necessary to support those applications that use this
method for clearing environ such as Dovecot and Postfix.  Applications
such as Sendmail and the base system's env replace environ (already
detected).  While neither of these methods are defined by SUSv3, it is
best to support them due to historic reasons and in lieu of a clean,
defined method.

Add extra units tests for clearing environ using four different methods:
1. Set environ to NULL pointer.
2. Set environ[0] to NULL pointer.
3. Set environ to calloc()'d NULL-terminated array.
4. Set environ to static NULL-terminated array.

Noticed by: Timo Sirainen

MFC after: 3 days

15 years agoFix whitespace.
Sean Farley [Sat, 2 Aug 2008 01:38:03 +0000 (01:38 +0000)]
Fix whitespace.

15 years agoDo not build fbsd-threads.c if we're building a cross-debugger.
Olivier Houchard [Sat, 2 Aug 2008 01:21:04 +0000 (01:21 +0000)]
Do not build fbsd-threads.c if we're building a cross-debugger.

MFC after: 3 days

15 years agoAdd ELF relocation types for mips.
Warner Losh [Sat, 2 Aug 2008 01:20:10 +0000 (01:20 +0000)]
Add ELF relocation types for mips.

Obtained from: mips/include/elf.h

15 years agoDocument new IDSIgnorePaths directive.
Colin Percival [Sat, 2 Aug 2008 00:13:51 +0000 (00:13 +0000)]
Document new IDSIgnorePaths directive.

15 years agoMake `freebsd-update IDS` not complain about /usr/share/man/cat* by
Colin Percival [Sat, 2 Aug 2008 00:11:43 +0000 (00:11 +0000)]
Make `freebsd-update IDS` not complain about /usr/share/man/cat* by
default.

15 years agoStore the PC while context switching, for the benefits of DDB.
Olivier Houchard [Sat, 2 Aug 2008 00:10:38 +0000 (00:10 +0000)]
Store the PC while context switching, for the benefits of DDB.

15 years agoRemove a useless cast.
Olivier Houchard [Sat, 2 Aug 2008 00:10:02 +0000 (00:10 +0000)]
Remove a useless cast.

Spotted out by: stefanf

15 years agoAdd "IDS" command to freebsd-update. This was present in the original
Colin Percival [Sat, 2 Aug 2008 00:09:41 +0000 (00:09 +0000)]
Add "IDS" command to freebsd-update.  This was present in the original
version of freebsd-update, but I took it out when I rewrote everything
and added FreeBSD Update to the base system because I didn't think it
was useful.  It turns out that quite a few people liked it and wanted
it back.

Requested by: Royce Williams + others
MFC after: 2 weeks

15 years agoSlight wordsmithing. prompted by danger@
Julian Elischer [Fri, 1 Aug 2008 23:31:28 +0000 (23:31 +0000)]
Slight wordsmithing.  prompted by danger@

15 years agoDocument the use of the tablearg keyword together with the skipto command.
Julian Elischer [Fri, 1 Aug 2008 22:34:01 +0000 (22:34 +0000)]
Document the use of the tablearg keyword together with the skipto command.

15 years agoThe IPFW code accepts the use of the tablearg keyword along with the skipto
Julian Elischer [Fri, 1 Aug 2008 22:21:03 +0000 (22:21 +0000)]
The IPFW code accepts the use of the tablearg keyword along with the skipto
keyword. But it doesn't work. Two options.. make it no longer accept it,
or actually make it work.. I chose the 2nd..

Allow the tablearg to be used to specify a skipto destination.

This is actually a very powerful construct if used correctly, or a sink
of cpu cycles if used badly.

changes t teh man page will follow.

15 years agoMake "1000baseT" the description and "1000baseTX" the alias for
Antoine Brodin [Fri, 1 Aug 2008 22:13:39 +0000 (22:13 +0000)]
Make "1000baseT" the description and "1000baseTX" the alias for
IFM_1000_T instead of the reverse.  It is possible FreeBSD doesn't
even support 1000baseTX.
This changes ifconfig(8) output.

Requested by: gavin@ and bms@
See also: http://docs.freebsd.org/cgi/mid.cgi?20050307191901.H32508

15 years agoRemove trailing ';' in BPFD_LOCK_ASSERT macro.
Antoine Brodin [Fri, 1 Aug 2008 22:08:14 +0000 (22:08 +0000)]
Remove trailing ';' in BPFD_LOCK_ASSERT macro.

MFC after: 1 month
X-MFC-to: stable/7, stable/6 has it right

15 years agoTweak the support for using ldd on 32-bit objects a bit further.
John Baldwin [Fri, 1 Aug 2008 21:52:41 +0000 (21:52 +0000)]
Tweak the support for using ldd on 32-bit objects a bit further.
Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit
objects.  Since it is a 32-bit binary, it can fork a child process which
can dlopen() a 32-bit shared library.  The current 32-bit support in ldd
can't do this because it does the dlopen() from a 64-bit process.  In order
to preserve an intuitive interface for users, the ldd binary automatically
execs /usr/bin/ldd32 for 32-bit objects.  The end result is that ldd on
amd64 now transparently handles 32-bit shared libraries in addition to
32-bit binaries.

Submitted by: ps (indirectly)

15 years agoAnnotate why we do not call BPF_CHECK_DIRECTION() in this tapping routine.
Christian S.J. Peron [Fri, 1 Aug 2008 21:38:46 +0000 (21:38 +0000)]
Annotate why we do not call BPF_CHECK_DIRECTION() in this tapping routine.
There is no way for the caller to tell us which direction this packet is
going.  With the bpf_mtap{2} routines, we can check the interface pointer.

MFC after: 2 weeks

15 years agoUse the new bus device_shutdown hook for performing the shutdown action
John Baldwin [Fri, 1 Aug 2008 21:33:07 +0000 (21:33 +0000)]
Use the new bus device_shutdown hook for performing the shutdown action
on the ee16 parts rather than explicitly registering an event handler
that wasn't being torn down on detach.

15 years ago- Use an sx lock to serialize writes since they update the checksum.
John Baldwin [Fri, 1 Aug 2008 20:39:18 +0000 (20:39 +0000)]
- Use an sx lock to serialize writes since they update the checksum.
- Remove D_NEEDGIANT as the rtc drivers already have their own locks, so
  this doesn't need Giant.

MFC after: 1 week

15 years agoAdjust comment. This stack is only used for booting now and not as an
John Baldwin [Fri, 1 Aug 2008 20:10:47 +0000 (20:10 +0000)]
Adjust comment.  This stack is only used for booting now and not as an
idle stack.

15 years agoFix whitespace.
Ed Maste [Fri, 1 Aug 2008 15:13:56 +0000 (15:13 +0000)]
Fix whitespace.

15 years agoChar is unsigned on arm, so is not suitable to store the return value of
Olivier Houchard [Fri, 1 Aug 2008 13:12:06 +0000 (13:12 +0000)]
Char is unsigned on arm, so is not suitable to store the return value of
getopt(). Use an int instead.

Submitted by: Matthew Luckie
MFC after: 3 days

15 years agoEnable the support for G33/Q35/Q33 now that both the G33 and Q35 have been
John Baldwin [Fri, 1 Aug 2008 13:11:23 +0000 (13:11 +0000)]
Enable the support for G33/Q35/Q33 now that both the G33 and Q35 have been
tested:

PR: amd64/126090
MFC after: 1 week

15 years agoRemove further trailing white space.
Robert Watson [Fri, 1 Aug 2008 09:41:45 +0000 (09:41 +0000)]
Remove further trailing white space.

15 years agoFix empty mailto (-m "") handling: somehow I missed all checks but the first,
Dmitry Morozovsky [Fri, 1 Aug 2008 08:01:33 +0000 (08:01 +0000)]
Fix empty mailto (-m "") handling: somehow I missed all checks but the first,
hence output would be written to the wrong filehandle.

Submitted by: reg
Approved by: yar (implicit)
MFC after: ASAP
Pointy hat to: marck

15 years agoWhen using SRV records the protocols and services files need to be in the
Doug Barton [Fri, 1 Aug 2008 06:11:33 +0000 (06:11 +0000)]
When using SRV records the protocols and services files need to be in the
chroot /etc directory.

PR: conf/121101
Submitted by: Stefan `Sec` Zehl <sec@42.org>

15 years agoAdd the -c option for named_flags (still commented out) that is
Doug Barton [Fri, 1 Aug 2008 05:15:54 +0000 (05:15 +0000)]
Add the -c option for named_flags (still commented out) that is
relevant for ports users, and change the comment to match.

While I'm here fix the capitalization of the named_program comment.

15 years agoEnhance pmap_change_attr() with the ability to demote 1GB page mappings.
Alan Cox [Fri, 1 Aug 2008 04:55:38 +0000 (04:55 +0000)]
Enhance pmap_change_attr() with the ability to demote 1GB page mappings.

15 years agoUpgrade to OpenSSH 5.1p1.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 02:48:36 +0000 (02:48 +0000)]
Upgrade to OpenSSH 5.1p1.

I have worked hard to reduce diffs against the vendor branch.  One
notable change in that respect is that we no longer prefer DSA over
RSA - the reasons for doing so went away years ago.  This may cause
some surprises, as ssh will warn about unknown host keys even for
hosts whose keys haven't changed.

MFC after: 6 weeks

15 years agoRemove svn:keywords except on files that need it. This makes diffs
Dag-Erling Smørgrav [Fri, 1 Aug 2008 02:06:48 +0000 (02:06 +0000)]
Remove svn:keywords except on files that need it.  This makes diffs
against the vendor branch much more readable.

15 years agoAnother file with no local changes.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:50:55 +0000 (01:50 +0000)]
Another file with no local changes.

"This time for sure!"

15 years agoAnother file with no local changes.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:48:33 +0000 (01:48 +0000)]
Another file with no local changes.

15 years agoAnother four files without local changes. This is driving me nuts -
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:45:56 +0000 (01:45 +0000)]
Another four files without local changes.  This is driving me nuts -
every time I think I got them all, another one pops up.

15 years agoYet another file with no local changes.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:38:50 +0000 (01:38 +0000)]
Yet another file with no local changes.

15 years agoAccidentally mangled this one in the previous commit.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:38:24 +0000 (01:38 +0000)]
Accidentally mangled this one in the previous commit.

15 years agoMore files which no longer have any local changes.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:32:56 +0000 (01:32 +0000)]
More files which no longer have any local changes.

15 years agoThese two files have no local patches except to prevent expansion of the
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:30:26 +0000 (01:30 +0000)]
These two files have no local patches except to prevent expansion of the
original $FreeBSD$ keywords.  Revert those changes, and simply disable
keyword expansion.

15 years agoadd missing capability bits
Sam Leffler [Fri, 1 Aug 2008 01:27:52 +0000 (01:27 +0000)]
add missing capability bits

15 years agoLast remains of old OPIE patch
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:24:42 +0000 (01:24 +0000)]
Last remains of old OPIE patch

15 years agoFix some problems with asinf(), acosf(), atanf(), and atan2f():
David Schultz [Fri, 1 Aug 2008 01:24:25 +0000 (01:24 +0000)]
Fix some problems with asinf(), acosf(), atanf(), and atan2f():

- Adjust several constants for float precision. Some thresholds
  that were appropriate for double precision were never changed
  when these routines were converted to float precision. This
  has an impact on performance but not accuracy. (Submitted by bde.)

- Reduce the degrees of the polynomials used. A smaller degree
  suffices for float precision.

- In asinf(), use double arithmetic in part of the calculation to
  avoid a corner case and some complicated arithmetic involving a
  division and some buggy constants. This improves performance and
  accuracy.

Max error (ulps):
         asinf  acosf  atanf
before   0.925  0.782  0.852
after    0.743  0.804  0.852

As bde points out, it's cheaper for asin*() and acos*() to use
polynomials instead of rational functions, but that's a task for
another day.

15 years agoIn function pthread_condattr_getpshared, store result correctly.
David Xu [Fri, 1 Aug 2008 01:21:49 +0000 (01:21 +0000)]
In function pthread_condattr_getpshared, store result correctly.

PR: kern/126128

15 years agoWe no longer have any local changes here.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:19:13 +0000 (01:19 +0000)]
We no longer have any local changes here.

15 years agoConsistently set svn:eol-style.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:13:41 +0000 (01:13 +0000)]
Consistently set svn:eol-style.