]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoClean up created turds.
obrien [Fri, 22 Feb 2008 06:53:52 +0000 (06:53 +0000)]
Clean up created turds.

16 years agoWe build important toolchain statically. So build BSD 'ar' statically
obrien [Fri, 22 Feb 2008 06:51:26 +0000 (06:51 +0000)]
We build important toolchain statically.  So build BSD 'ar' statically
when its replacing GNU 'ar'.

16 years agoRe-introduce the new BSDLed 'ar' to the build.
obrien [Fri, 22 Feb 2008 06:47:45 +0000 (06:47 +0000)]
Re-introduce the new BSDLed 'ar' to the build.
It is installed as "bsdar" unless WANT_BSDAR is defined.

Discussed with: kaiw

16 years agoFix 'make checkdpadd'.
jkoshy [Fri, 22 Feb 2008 06:25:49 +0000 (06:25 +0000)]
Fix 'make checkdpadd'.

16 years agos/rcsid/__FBSDID/
das [Fri, 22 Feb 2008 02:30:36 +0000 (02:30 +0000)]
s/rcsid/__FBSDID/

16 years agoRemove an unused variable.
das [Fri, 22 Feb 2008 02:27:34 +0000 (02:27 +0000)]
Remove an unused variable.

16 years agoEliminate some warnings.
das [Fri, 22 Feb 2008 02:26:51 +0000 (02:26 +0000)]
Eliminate some warnings.

16 years agoMFC after: 4 weeks
davidch [Fri, 22 Feb 2008 00:46:22 +0000 (00:46 +0000)]
MFC after: 4 weeks

- Added loose RX MTU functionality to allow frames larger than 1500 bytes
  to be accepted even though the interface MTU is set to 1500.
- Implemented new TCP header splitting/jumbo frame support which uses
  two chains for receive traffic rather than the original single recevie
  chain.
- Added additional debug support code.

16 years ago-Fix display of nat range.
piso [Thu, 21 Feb 2008 22:55:54 +0000 (22:55 +0000)]
-Fix display of nat range.
-Whitespace elimination.

Bug spotted by: Luiz Otavio O Souza
MFC After: 3 days

16 years agoAdd some missing Xrefs to drivers.
brueffer [Thu, 21 Feb 2008 20:44:25 +0000 (20:44 +0000)]
Add some missing Xrefs to drivers.

MFC after: 3 days

16 years agoNote, as required by our agreement with IEEE/The Open Group, that the message
philip [Thu, 21 Feb 2008 19:16:57 +0000 (19:16 +0000)]
Note, as required by our agreement with IEEE/The Open Group, that the message
queue manual pages excerpt the POSIX standard.

Spotted by: Mindaugas Rasiukevicius <rmind -at- NetBSD.org>
Reviewed by: imp
MFC after: 1 day

16 years agoAdd support for the VIA USB2IDE bridge [1].
remko [Thu, 21 Feb 2008 19:07:08 +0000 (19:07 +0000)]
Add support for the VIA USB2IDE bridge [1].

PR: usb/95173
Submitted by: Goegele Hannes <diazepam@gmx.net>
Ben Kelly <bkelly at vadev dot org>
Tested by: blackend
Approved by: imp (mentor, blanket for simple patches)
X-MFC-After: 1 week

16 years agoIf 'WITH_BSDAR' is defined, install as gnu-<util_name>.
obrien [Thu, 21 Feb 2008 16:59:02 +0000 (16:59 +0000)]
If 'WITH_BSDAR' is defined, install as gnu-<util_name>.

16 years agoFix static linkage.
ru [Thu, 21 Feb 2008 16:29:52 +0000 (16:29 +0000)]
Fix static linkage.

16 years agoAdd LIBELF.
ru [Thu, 21 Feb 2008 16:29:31 +0000 (16:29 +0000)]
Add LIBELF.

16 years agoBack out previous commit. Restore Binutils ar as default. Disconnect
kaiw [Thu, 21 Feb 2008 16:12:46 +0000 (16:12 +0000)]
Back out previous commit. Restore Binutils ar as default. Disconnect
'BSD' ar to the build.

Requested by:  des

16 years ago* Connect ar(1) to the build and make it default ar. Rename GNU
kaiw [Thu, 21 Feb 2008 11:21:29 +0000 (11:21 +0000)]
* Connect ar(1) to the build and make it default ar.  Rename GNU
binutils ar and ranlib to gar and granlib, respectively.

* Introduce a temporary variable WITH_GNUAR as a safety net.
When buildworld with -DWITH_GNUAR, GNU binutils ar and ranlib
will install as default ones and 'BSD' ar will be disabled.

* Bump __FreeBSD_version to reflect the import of 'BSD' ar(1).

Approved by:  jkoshy (mentor)

16 years agoRemove WARNS from here and compile with default kernel flags.
ru [Thu, 21 Feb 2008 11:11:06 +0000 (11:11 +0000)]
Remove WARNS from here and compile with default kernel flags.
Switch off those warnings that ZFS sources do not pass.

16 years agoRemove WARNS from here and compile with default kernel flags.
ru [Thu, 21 Feb 2008 11:09:59 +0000 (11:09 +0000)]
Remove WARNS from here and compile with default kernel flags.

16 years agoImport ar(1) front-end. (aka 'BSD' ar)
kaiw [Thu, 21 Feb 2008 10:52:31 +0000 (10:52 +0000)]
Import ar(1) front-end. (aka 'BSD' ar)

Reviewed by:  jkoshy
Approved by: jkoshy (mentor)
Tested by: erwin (ports build test on pointyhat)
Sponsored by: Google Summer of Code 2007
Reviewed by (earlier version): Jaakko Heinonen <jh[AT]saunalahti.fi>
Tested by (earlier version): Steve Kargl <sgk[AT]troutmask.apl.washington.edu>
Tested by (earlier version): Martin Voros <martin_voros[AT]yahoo.com>
Tested by (earlier version): swell.k[AT]gmail.com
Tested by (earlier version): joel
Tested by (earlier version): Alexey Shuvaev <shuvaev[AT]physik.uni-wuerzburg.de>
Tested by (earlier version): Arjan van Leeuwen <avleeuwen[AT]gmail.com>

Thanks to gabor@ for building ports for it.
Thanks to erwin@ and kris@ for scheduling the ports build test on pointyhat.
And thanks to many others for their feedback.

16 years agoEnsure that the -s flag truncates the accounting data.
grog [Thu, 21 Feb 2008 07:12:56 +0000 (07:12 +0000)]
Ensure that the -s flag truncates the accounting data.

This problem has only been reported on the amd64 platform.

PR: bin/120293
Tested by: Callum Gibson
MFC after: 2 weeks

16 years agoSanity-check the block size.
kientzle [Thu, 21 Feb 2008 03:21:50 +0000 (03:21 +0000)]
Sanity-check the block size.

Thanks to: Joerg Sonnenberger
MFC after: 7 days

16 years agoDon't check the bpbSecPerTrack and bpbHeads fields of the BPB.
marcel [Thu, 21 Feb 2008 03:19:46 +0000 (03:19 +0000)]
Don't check the bpbSecPerTrack and bpbHeads fields of the BPB.
They are typically 0 on new ia64 systems. Since we don't use
either field, there's no harm in not checking.

16 years agoDon't use disklabel for the MFS root. The DoFS.sh script creates
marcel [Thu, 21 Feb 2008 03:16:36 +0000 (03:16 +0000)]
Don't use disklabel for the MFS root. The DoFS.sh script creates
a bogus partition table and puts the file system on the whole
partition. geom_part doesn't expose the 'c' partition as it's an
artifact of the BSD label and not to be used. Secondly, gpart(8)
is the preferred tool for partitioning disks on ia64.

16 years agoAdd AS lookup functionality. On each hop we query a whois server to
rpaulo [Wed, 20 Feb 2008 23:29:53 +0000 (23:29 +0000)]
Add AS lookup functionality. On each hop we query a whois server to
find the corresponding AS for that IP (-a switch).
We can also choose a different whois server with the -A switch. The
default is whois.radb.net.

Obtained from:        NetBSD
Reviewed by:        bms, njl (mentor)
Approved by:        njl (mentor)

16 years agoTwo no-op fixes to improve corretness of syslogd code:
dwmalone [Wed, 20 Feb 2008 21:54:41 +0000 (21:54 +0000)]
Two no-op fixes to improve corretness of syslogd code:

1) Use [AP]F_LOCAL rather than [AP]F_UNIX.
2) When copying a pipe's name, use f->f_un.f_pipe.f_pname, not f->f_un.f_fname.

PR: 20889
Submitted by: Damieon Stark
PR: 116642
Submitted by: Jim Pirzyk
Reviewed by: md5

16 years agoFix a couple of locking mistakes in the ses_ioctl path.
scottl [Wed, 20 Feb 2008 19:49:46 +0000 (19:49 +0000)]
Fix a couple of locking mistakes in the ses_ioctl path.

Submitted by: Matt Jacob

16 years agogeom_lvm(4) is now known as geom_linux_lvm(4).
thompsa [Wed, 20 Feb 2008 11:32:12 +0000 (11:32 +0000)]
geom_lvm(4) is now known as geom_linux_lvm(4).

16 years agoRename geom_lvm(4) to geom_linux_lvm(4).
thompsa [Wed, 20 Feb 2008 11:30:49 +0000 (11:30 +0000)]
Rename geom_lvm(4) to geom_linux_lvm(4).

Requested by:   des, phk

16 years agogeom_lvm(4) is now known as geom_linux_lvm(4).
thompsa [Wed, 20 Feb 2008 07:52:43 +0000 (07:52 +0000)]
geom_lvm(4) is now known as geom_linux_lvm(4).

16 years agoRename geom_lvm(4) to geom_linux_lvm(4).
thompsa [Wed, 20 Feb 2008 07:50:13 +0000 (07:50 +0000)]
Rename geom_lvm(4) to geom_linux_lvm(4).

Requested by: des, phk

16 years agoAdd a geom class to map Linux LVM logical volumes.
thompsa [Wed, 20 Feb 2008 07:45:36 +0000 (07:45 +0000)]
Add a geom class to map Linux LVM logical volumes.

The logical disks will appear as /dev/lvm/<vol group>-<logical vol>, for
instance /dev/lvm/vg0-home. G_LINUX_LVM currently supports linear stripes with
segments on multiple physical disks. The metadata is read only, logical
volumes can not be allocated or resized.

Reviewed by: Ivan Voras

Previously known as geom_lvm(4), rename requested by des, phk.

16 years agoSet the baudrate for if_ti.
remko [Tue, 19 Feb 2008 20:54:42 +0000 (20:54 +0000)]
Set the baudrate for if_ti.

PR: kern/40516
Submitted by: "Jin Guojun[VFF]" <jin at adsl-63-198-35-122 dot dsl dot snfc21 dot pacbell dot net>
Approved by: imp (mentor, implicit for minor changes)
MFC After: 1 week

16 years agoMerge cosmetic changes from e_rem_pio2.c 1.10 (convert to __FBSDID();
bde [Tue, 19 Feb 2008 15:42:46 +0000 (15:42 +0000)]
Merge cosmetic changes from e_rem_pio2.c 1.10 (convert to __FBSDID();
fix indentation and return type of __ieee754_rem_pio2()).

Remove unused variables.

16 years agoOptimize for 3pi/4 <= |x| <= 9pi/4 in much the same way as for
bde [Tue, 19 Feb 2008 15:30:58 +0000 (15:30 +0000)]
Optimize for 3pi/4 <= |x| <= 9pi/4 in much the same way as for
pi/4 <= |x| <= 3pi/4.  Use the same branch ladder as for float precision.
Remove the optimization for |x| near pi/2 and don't do it near the
multiples of pi/2 in the newly optimized range, since it requires
fairly large code to handle only relativley few cases.  Ifdef out
optimization for |x| <= pi/4 since this case can't occur because it
is done in callers.

On amd64 (A64), for cos() and sin() with uniformly distributed args,
no cache misses, some parallelism in the caller, and good but not great
CC and CFLAGS, etc., this saves about 40 cycles or 38% in the newly
optimized range, or about 27% on average across the range |x| <= 2pi
(~65 cycles for most args, while the A64 hardware fcos and fsin take
~75 cycles for half the args and 125 cycles for the other half).  The
speedup for tan() is much smaller, especially relatively.  The speedup
on i386 (A64) is slightly smaller, especially relatively.  i386 is
still much slower than amd64 here (unlike in the float case where it
is slightly faster).

16 years agoRearrange the polynomial evaluation for better parallelism. This
bde [Tue, 19 Feb 2008 12:54:14 +0000 (12:54 +0000)]
Rearrange the polynomial evaluation for better parallelism.  This
saves an average of about 8 cycles or 5% on A64 (amd64 and i386 --
more in cycles but about the same percentage on i386, and more with
old versions of gcc) with good CFLAGS and some parallelism in the
caller.  As usual, it takes a couple more multiplications so it will
be slower on old machines.

Convert to __FBSDID().

16 years agogetopt(3) returns -1, not EOF.
ru [Tue, 19 Feb 2008 07:09:19 +0000 (07:09 +0000)]
getopt(3) returns -1, not EOF.

16 years agoEliminate whitespace diffs to the i386 version.
ru [Tue, 19 Feb 2008 06:30:49 +0000 (06:30 +0000)]
Eliminate whitespace diffs to the i386 version.

16 years agoInclude O_BINARY in open() calls on platforms that support it.
kientzle [Tue, 19 Feb 2008 06:10:48 +0000 (06:10 +0000)]
Include O_BINARY in open() calls on platforms that support it.

16 years agoAnother tiny, tiny step towards Windows support. No, I don't plan to
kientzle [Tue, 19 Feb 2008 06:06:13 +0000 (06:06 +0000)]
Another tiny, tiny step towards Windows support.  No, I don't plan to
ever commit the Windows support files to FreeBSD CVS.  That would just
be wrong.

16 years agoSomeday I might forgive the standards bodies for omitting timegm().
kientzle [Tue, 19 Feb 2008 06:02:01 +0000 (06:02 +0000)]
Someday I might forgive the standards bodies for omitting timegm().
Maybe.  In the meantime, my workarounds for trying to coax UTC without
timegm() are getting uglier and uglier.  Apparently, some systems
don't support setenv()/unsetenv(), so you can't set the TZ env var and
hope thereby to coax mktime() into generating UTC.  Without that, I
don't see a really good alternative to just giving up and converting to
localtime with mktime().  (I suppose I should research the Perl library
approach for computing an inverse function to gmtime(); that might
actually be simpler than this growing list of hacks.)

16 years agoSimplify file type setting.
kientzle [Tue, 19 Feb 2008 05:54:24 +0000 (05:54 +0000)]
Simplify file type setting.

16 years agoThe test_assert() function that backs my custom assert() macro
kientzle [Tue, 19 Feb 2008 05:52:30 +0000 (05:52 +0000)]
The test_assert() function that backs my custom assert() macro
now returns a value, which supports such convenient
constructs as:
   if (assert(NULL != foo())) {
   }

Also be careful to setlocale("C") for each new test to
avoid locale pollution.

Also a couple of minor portability enhancements.

16 years agoPortability: Since the values are fixed and the symbolic names
kientzle [Tue, 19 Feb 2008 05:49:02 +0000 (05:49 +0000)]
Portability: Since the values are fixed and the symbolic names
are only present on some platforms, just use the values directly.

16 years agoPortability: Include O_BINARY if the local platform defines it.
kientzle [Tue, 19 Feb 2008 05:46:58 +0000 (05:46 +0000)]
Portability: Include O_BINARY if the local platform defines it.

16 years agoCorrect a compile error when libbz2/zlib are unavailable.
kientzle [Tue, 19 Feb 2008 05:44:59 +0000 (05:44 +0000)]
Correct a compile error when libbz2/zlib are unavailable.

16 years agoMark a few additional functions that are/are not available on FreeBSD.
kientzle [Tue, 19 Feb 2008 05:40:28 +0000 (05:40 +0000)]
Mark a few additional functions that are/are not available on FreeBSD.

16 years agoPortability improvements:
kientzle [Tue, 19 Feb 2008 05:39:35 +0000 (05:39 +0000)]
Portability improvements:
  * If the platform can't restore char nodes, block nodes, or fifos,
don't try and just return error.
  * Include O_BINARY in most open() calls (define O_BINARY to 0 if the
platform doesn't provide a definition already)
  * Refactor the ownership restore to more cleanly support platforms
that don't have any form of {l,f,}chown() call.
  * Comment a lingering issue with older Unix-like systems that allow
root to hose the filesystem.  I don't (yet) have a good solution for
this, but I expect it will require adding more redundant stat()
calls. <sigh>

MFC after: 14 days

16 years agoAllow appending to archives on block devices as well as
kientzle [Tue, 19 Feb 2008 05:27:17 +0000 (05:27 +0000)]
Allow appending to archives on block devices as well as
archives in regular files, since both are seekable.

Thanks to: Reinoud Zandijk (@netbsd.org)

16 years agoUndo the damage I did in sys/kern/vfs_mount.c #1.274 and
yar [Mon, 18 Feb 2008 20:58:57 +0000 (20:58 +0000)]
Undo the damage I did in sys/kern/vfs_mount.c #1.274 and
sbin/mount_nfs/mount_nfs.c #1.76.  Let the dragons sleep.

Requested by: rodrigc, des
PR: kern/120319 (welcome the bug back)

16 years agoFix display of multiple nat rules.
piso [Mon, 18 Feb 2008 20:26:34 +0000 (20:26 +0000)]
Fix display of multiple nat rules.

Bug spotted by: Luiz Otavio O Souza
PR: 120734
MFC After: 3 days

16 years agoFix "warning: comparison is always false due to limited range of data type"
marcel [Mon, 18 Feb 2008 20:01:33 +0000 (20:01 +0000)]
Fix "warning: comparison is always false due to limited range of data type"
on platforms with unsigned chars. The comparison in question is there to
determine whether chars are unsigned or not and is based on comparing a
char, initialized to -1, for less than 0. Change the comparison to check
for geater than 0 instead...

16 years agoInstead of using a heuristic to decide whether to display
julian [Mon, 18 Feb 2008 19:56:09 +0000 (19:56 +0000)]
Instead of using a heuristic to decide whether to display
table 'values' as IP addresses, use an explicit argument (-i).
This is a 'POLA' issue. This is a low risk change and should be MFC'd
to RELENG_6 and RELENG 7. it might be put as an errata item for 6.3.
(not sure about 6.2).

Fix suggested by: Eugene Grosbein
PR:  120720
MFC After: 3 days

16 years agoDocument return values better.
das [Mon, 18 Feb 2008 19:02:49 +0000 (19:02 +0000)]
Document return values better.

16 years agoAdd tgammaf() as a simple wrapper around tgamma().
das [Mon, 18 Feb 2008 17:27:11 +0000 (17:27 +0000)]
Add tgammaf() as a simple wrapper around tgamma().

16 years ago2 long double constants were missing L suffixes. This helped break tanl()
bde [Mon, 18 Feb 2008 15:39:52 +0000 (15:39 +0000)]
2 long double constants were missing L suffixes.  This helped break tanl()
on !(amd64 || i386).  It gave slightly worse than double precision in some
cases.  tanl() now passes tests of 2^24 values on ia64.

16 years agoFix a typo which broke k_tanl.c on !(amd64 || i386).
bde [Mon, 18 Feb 2008 14:09:41 +0000 (14:09 +0000)]
Fix a typo which broke k_tanl.c on !(amd64 || i386).

16 years agoInline __ieee754__rem_pio2(). With gcc4-2, this gives an average
bde [Mon, 18 Feb 2008 14:02:12 +0000 (14:02 +0000)]
Inline __ieee754__rem_pio2().  With gcc4-2, this gives an average
optimization of about 10% for cos(x), sin(x) and tan(x) on
|x| < 2**19*pi/2.  We didn't do this before because __ieee754__rem_pio2()
is too large and complicated for gcc-3.3 to inline very well.  We don't
do this for float precision because it interferes with optimization
of the usual (?) case (|x| < 9pi/4) which is manually inlined for float
precision only.

This has some rough edges:
- some static data is duplicated unnecessarily.  There isn't much after
  the recent move of large tables to k_rem_pio2.c, and some static data
  is duplicated to good affect (all the data static const, so that the
  compiler can evaluate expressions like 2*pio2 at compile time and
  generate even more static data for the constant for this).
- extern inline is used (for the same reason as in previous inlining of
  k_cosf.c etc.), but C99 apparently doesn't allow extern inline
  functions with static data, and gcc will eventually warn about this.

Convert to __FBSDID().

Indent __ieee754_rem_pio2()'s declaration consistently (its style was
made inconsistent with fdlibm a while ago, so complete this).

Fix __ieee754_rem_pio2()'s return type to match its prototype.  Someone
changed too many ints to int32_t's when fixing the assumption that all
ints are int32_t's.

16 years agoAdd a work-around to make it possible again to remount
yar [Mon, 18 Feb 2008 10:24:47 +0000 (10:24 +0000)]
Add a work-around to make it possible again to remount
NFS root r/w.

The real solution would be to bring the whole nmount(2)
framework, including FS drivers and userland tools, into
a consistent state at last; but things should work in the
meantime, too.

Reported by: kris

16 years agoAdd a remark on a questionable property of vfs_mergeopts().
yar [Mon, 18 Feb 2008 10:10:42 +0000 (10:10 +0000)]
Add a remark on a questionable property of vfs_mergeopts().

16 years agoremove Vette Dinsdag. It was on the wrong day of the week, and not really a term...
edwin [Mon, 18 Feb 2008 07:09:17 +0000 (07:09 +0000)]
remove Vette Dinsdag. It was on the wrong day of the week, and not really a term I'm familiar with. Of course this can happen since naming of events and happenings during Carnaval are very localized

Approved by: grog@

16 years agogetopt(3) returns -1, not EOF.
kevlo [Mon, 18 Feb 2008 03:19:25 +0000 (03:19 +0000)]
getopt(3) returns -1, not EOF.

16 years agoSome basic regression tests for {sin,cos,tan}{,f,l}().
das [Mon, 18 Feb 2008 02:00:16 +0000 (02:00 +0000)]
Some basic regression tests for {sin,cos,tan}{,f,l}().

16 years agoMake the human readable numbers printed with the -h option a bit
mpp [Mon, 18 Feb 2008 01:36:40 +0000 (01:36 +0000)]
Make the human readable numbers printed with the -h option a bit
more human readable by telling the human print routines to use
a smaller buffer to format the value.

This makes it so a value that was previously being printed
as 600000K will now print as 586M.

16 years agoBack out rev. 1.74 because the kernel isn't ready yet
yar [Mon, 18 Feb 2008 00:23:28 +0000 (00:23 +0000)]
Back out rev. 1.74 because the kernel isn't ready yet
to see NFS specific string options.

16 years agoDon't forget to prepare string options for nmount(2).
yar [Mon, 18 Feb 2008 00:05:50 +0000 (00:05 +0000)]
Don't forget to prepare string options for nmount(2).
Otherwise things won't work as intended, e.g., it'll
be impossible to upgrade NFS root mount to read-write.

Reported by: kris

16 years agoThere are 3 tests here, not 2.
das [Sun, 17 Feb 2008 22:45:53 +0000 (22:45 +0000)]
There are 3 tests here, not 2.

16 years agoPrevent the NFS client from losing MNT_ROOTFS on the root
yar [Sun, 17 Feb 2008 22:32:08 +0000 (22:32 +0000)]
Prevent the NFS client from losing MNT_ROOTFS on the root
file system.  In particular, stop overwriting mount point
flags in nfs_mountdiskless() because now they are set
elsewhere.  (They were _initialized_ by that function in
the 4.4BSD days, when mount structures were not allocated
in a centralized manner -- see rev. 1.1 of this file.)

Fix nfs_mount(), which happened to depend on the loss of
MNT_ROOTFS when it came to update handling.

Also note that mountnfs() no longer handles updates.  Now
they shouldn't reach this function, so printf a diagnostic
message if that happens due to a coding error.

16 years agoUse volatile hacks to make sure exp() generates an underflow
das [Sun, 17 Feb 2008 21:53:19 +0000 (21:53 +0000)]
Use volatile hacks to make sure exp() generates an underflow
exception when it's supposed to. Previously, gcc -O2 was optimizing
away the statement that generated it.

16 years agoMove the $FreeBSD$ tag in a comment as __FBSDID doesn't work.
marcel [Sun, 17 Feb 2008 20:38:22 +0000 (20:38 +0000)]
Move the $FreeBSD$ tag in a comment as __FBSDID doesn't work.

16 years agoHook the U-Boot library up to the build.
marcel [Sun, 17 Feb 2008 20:34:35 +0000 (20:34 +0000)]
Hook the U-Boot library up to the build.

16 years agoCorrect the description of getmnt_silent: unknown options are silently
yar [Sun, 17 Feb 2008 20:25:25 +0000 (20:25 +0000)]
Correct the description of getmnt_silent: unknown options are silently
ignored if this variable is non-zero, which is quite logical given the
variable's name.

16 years agoFix a race condition in arena_ralloc() for shrinking in-place large
jasone [Sun, 17 Feb 2008 18:34:17 +0000 (18:34 +0000)]
Fix a race condition in arena_ralloc() for shrinking in-place large
reallocation, when junk filling is enabled.  Junk filling must occur
prior to shrinking, since any deallocated trailing pages are immediately
available for use by other threads.

Reported by: Mats Palmgren <mats.palmgren@bredband.net>

16 years agoRemove support for lazy deallocation. Benchmarks across a wide range of
jasone [Sun, 17 Feb 2008 17:09:24 +0000 (17:09 +0000)]
Remove support for lazy deallocation.  Benchmarks across a wide range of
allocation patterns, number of CPUs, and MALLOC_OPTIONS settings indicate
that lazy deallocation has the potential to worsen throughput dramatically.
Performance degradation occurs when multiple threads try to clear the lazy
free cache simultaneously.  Various experiments to avoid this bottleneck
failed to completely solve this problem, while adding yet more complexity.

16 years agoMake sysctl_kern_arnd return a random buffer instead of a random long,
antoine [Sun, 17 Feb 2008 16:44:48 +0000 (16:44 +0000)]
Make sysctl_kern_arnd return a random buffer instead of a random long,
as it is expected by userland (stack protector guard setup for example).

PR: 119129
Approved by: rwatson (mentor)
MFC after: 1 month

16 years agoOnly print sense data diagnostics if debugging is enabled with the
gibbs [Sun, 17 Feb 2008 16:00:36 +0000 (16:00 +0000)]
Only print sense data diagnostics if debugging is enabled with the
AHD_SHOW_SENSE flag.

16 years agoSwitch from conditionally dropping Giant in exit1() to asserting it is
kris [Sun, 17 Feb 2008 15:28:28 +0000 (15:28 +0000)]
Switch from conditionally dropping Giant in exit1() to asserting it is
not held, which appears to be always true.

16 years agoRemove superfluous setting of the transport_version field of our
gibbs [Sun, 17 Feb 2008 15:22:26 +0000 (15:22 +0000)]
Remove superfluous setting of the transport_version field of our
path inquiry response - a likely holdover from the port of this code
from the aic7xxx driver.

16 years agoRemove custom queue macros in Coda, replacing them with queue(9) tailq
rwatson [Sun, 17 Feb 2008 14:33:28 +0000 (14:33 +0000)]
Remove custom queue macros in Coda, replacing them with queue(9) tailq
macros.  The only semantic change was the need to add a vc_opened field
to struct vcomm since we can no longer use the request queue returning
to an uninitialized state to hold whether or not the device is open.

MFC after: 1 month

16 years agoRemove namecache performance-tuning todo for Coda: we now use the FreeBSD
rwatson [Sun, 17 Feb 2008 12:40:27 +0000 (12:40 +0000)]
Remove namecache performance-tuning todo for Coda: we now use the FreeBSD
name cache.

MFC after: 1 month

16 years agoHook up sinl(), cosl(), and tanl() to the build.
das [Sun, 17 Feb 2008 07:33:51 +0000 (07:33 +0000)]
Hook up sinl(), cosl(), and tanl() to the build.

16 years agoAdd implementations of sinl(), cosl(), and tanl().
das [Sun, 17 Feb 2008 07:33:12 +0000 (07:33 +0000)]
Add implementations of sinl(), cosl(), and tanl().

Submitted by: Steve Kargl <sgk@apl.washington.edu>

16 years agoDocumentation for sinl(), cosl(), and tanl().
das [Sun, 17 Feb 2008 07:32:44 +0000 (07:32 +0000)]
Documentation for sinl(), cosl(), and tanl().

16 years agoAdd kernel functions for 128-bit long doubles. These could be improved
das [Sun, 17 Feb 2008 07:32:31 +0000 (07:32 +0000)]
Add kernel functions for 128-bit long doubles. These could be improved
a bit, but access to a freebsd/sparc64 machine is needed.

Submitted by: bde and Steve Kargl <sgk@apl.washington.edu> (earlier version)

16 years agoAdd kernel functions for 80-bit long doubles. Many thanks to Steve and
das [Sun, 17 Feb 2008 07:32:14 +0000 (07:32 +0000)]
Add kernel functions for 80-bit long doubles. Many thanks to Steve and
Bruce for putting lots of effort into these; getting them right isn't
easy, and they went through many iterations.

Submitted by: Steve Kargl <sgk@apl.washington.edu> with revisions from bde

16 years agoAdd more pi for long doubles. Also, avoid storing multiple copies
das [Sun, 17 Feb 2008 07:31:59 +0000 (07:31 +0000)]
Add more pi for long doubles. Also, avoid storing multiple copies
of the pi/2 array, as it is unlikely to vary, except in Indiana.

16 years agoAdvertise to CAM the ability of 790X controllers to negotiate information
gibbs [Sun, 17 Feb 2008 06:14:59 +0000 (06:14 +0000)]
Advertise to CAM the ability of 790X controllers to negotiate information
unit transfers (packetized/U320 protocol) and QAS.

16 years agoFix quoting for the dnsbl example -- m4 misparses quoted strings with
gshapiro [Sun, 17 Feb 2008 05:38:29 +0000 (05:38 +0000)]
Fix quoting for the dnsbl example -- m4 misparses quoted strings with
commas due to our deconstruction of the line in cf/feature/dnsbl.m4.

PR: 120038
Submitted by: mattijs vreeling
MFC after: 1 week

16 years agoUse better examples (and comment them out for safety).
gshapiro [Sun, 17 Feb 2008 05:22:08 +0000 (05:22 +0000)]
Use better examples (and comment them out for safety).

PR:             118837
Submitted by:   Matthew Seaman
MFC after:      1 week

16 years agoSwitch libmilter from select(2) to poll(2) so milters are not limited
gshapiro [Sun, 17 Feb 2008 05:14:47 +0000 (05:14 +0000)]
Switch libmilter from select(2) to poll(2) so milters are not limited
by the size of FD_SETSIZE.

PR: 118824
Submitted by: vsevolod
MFC after: 3 weeks

16 years agoFix typo in comment.
imp [Sun, 17 Feb 2008 02:46:54 +0000 (02:46 +0000)]
Fix typo in comment.

16 years agoMFp4 (e500):
marcel [Sat, 16 Feb 2008 22:40:55 +0000 (22:40 +0000)]
MFp4 (e500):

Add support for U-Boot. This uses the U-Boot API as developed by
Rafal and which is (will be) part of U-Boot 1.3.2 and later.

Credits to: raj@

16 years agoMFp4 (e500):
marcel [Sat, 16 Feb 2008 22:13:11 +0000 (22:13 +0000)]
MFp4 (e500):

Add support for U-Boot. This uses the U-Boot API as developed by
Rafal and which is (will be) part of U-Boot 1.3.2 and later.

Credits to: raj@

16 years agoRe-sort options. While here:
marcel [Sat, 16 Feb 2008 18:30:58 +0000 (18:30 +0000)]
Re-sort options. While here:
o  remove COMPAT_FREEBSD5
o  add INVARIANTS
o  add WITNESS

16 years agoEnable option WITNESS_SKIPSPIN by default.
marcel [Sat, 16 Feb 2008 17:59:27 +0000 (17:59 +0000)]
Enable option WITNESS_SKIPSPIN by default.

16 years agoNew release notes: AMD 6.1.5, awk 20071023, CVS 1.11.12, OpenPAM
bmah [Sat, 16 Feb 2008 15:52:39 +0000 (15:52 +0000)]
New release notes:  AMD 6.1.5, awk 20071023, CVS 1.11.12, OpenPAM
Hydrangea.

Updated release notes:  ncurses 5.6-20080209.

16 years agoCreate a thread to handle passive cooling for 1st zone which has _PSV,
ume [Sat, 16 Feb 2008 07:15:34 +0000 (07:15 +0000)]
Create a thread to handle passive cooling for 1st zone which has _PSV,
_TSP, _TC1 and _TC2.

Contirmed by: "Alexandre \"Sunny\" Kovalenko" <alex.kovalenko_at_verizon.net>
Reviewed by: njl
MFC after: 1 week

16 years agoAllow the user to override the current active cooling state if state
rpaulo [Sat, 16 Feb 2008 02:09:05 +0000 (02:09 +0000)]
Allow the user to override the current active cooling state if state
is currently TZ_ACTIVE_NONE.

Submitted by:   Andriy Gapon <avg at icyb.net.ua>
Reviewed by:    njl (mentor)
Approved by:    njl (mentor)
Requested by:   njl (mentor)
MFC after:      3 days

16 years agoSkip validation of the C3 state if we disabled C3 by software (i.e.,
rpaulo [Sat, 16 Feb 2008 02:00:25 +0000 (02:00 +0000)]
Skip validation of the C3 state if we disabled C3 by software (i.e.,
via quirk).

Submitted by: Andriy Gapon <avg at icyb.net.ua>
Reviewed by: njl (mentor)
Approved by: njl (mentor)
Requested by: njl (mentor)
MFC after: 3 days

16 years agoAllow underscore in domain names while resolving. While having underscore
delphij [Sat, 16 Feb 2008 00:16:49 +0000 (00:16 +0000)]
Allow underscore in domain names while resolving.  While having underscore
is a violation of RFC 1034 [STD 13], it is accepted by certain name servers
as well as other popular operating systems' resolver library.

Bugs are mine.

Obtained from: ume
MFC after: 2 weeks