]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd LIBELF.
Ruslan Ermilov [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
Kai Wang [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
Kai Wang [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.
Ruslan Ermilov [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.
Ruslan Ermilov [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)
Kai Wang [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.
Greg Lehey [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.
Tim 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 Moolenaar [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 Moolenaar [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
Rui Paulo [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:
David Malone [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.
Scott Long [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).
Andrew Thompson [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).
Andrew Thompson [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).
Andrew Thompson [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).
Andrew Thompson [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.
Andrew Thompson [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 Lodder [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();
Bruce Evans [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
Bruce Evans [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
Bruce Evans [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.
Ruslan Ermilov [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.
Ruslan Ermilov [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.
Tim 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
Tim 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().
Tim 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.
Tim 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
Tim 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
Tim 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.
Tim 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.
Tim 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.
Tim 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:
Tim 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
Tim 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
Yaroslav Tykhiy [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.
Paolo Pisati [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 Moolenaar [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 Elischer [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.
David Schultz [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().
David Schultz [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()
Bruce Evans [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).
Bruce Evans [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
Bruce Evans [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
Yaroslav Tykhiy [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().
Yaroslav Tykhiy [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 Groothuis [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.
Kevin Lo [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}().
David Schultz [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
Mike Pritchard [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
Yaroslav Tykhiy [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).
Yaroslav Tykhiy [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.
David Schultz [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
Yaroslav Tykhiy [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
David Schultz [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 Moolenaar [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 Moolenaar [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
Yaroslav Tykhiy [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
Jason Evans [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
Jason Evans [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 Brodin [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
Justin T. 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 Kennaway [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
Justin T. 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
Robert Watson [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
Robert Watson [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.
David Schultz [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().
David Schultz [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().
David Schultz [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
David Schultz [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
David Schultz [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
David Schultz [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
Justin T. 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
Gregory Neil Shapiro [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).
Gregory Neil Shapiro [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
Gregory Neil Shapiro [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.
Warner Losh [Sun, 17 Feb 2008 02:46:54 +0000 (02:46 +0000)]
Fix typo in comment.

16 years agoMFp4 (e500):
Marcel Moolenaar [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 Moolenaar [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 Moolenaar [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 Moolenaar [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
Bruce A. Mah [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,
Hajimu UMEMOTO [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
Rui Paulo [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.,
Rui Paulo [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
Xin LI [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

16 years ago- fix typo
Daniel Gerzo [Fri, 15 Feb 2008 23:56:33 +0000 (23:56 +0000)]
- fix typo

Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
MFC after: 3 days

16 years agoRemove a superfluous line in run_interrupt_driven_config_hooks(),
Antoine Brodin [Fri, 15 Feb 2008 21:54:21 +0000 (21:54 +0000)]
Remove a superfluous line in run_interrupt_driven_config_hooks(),
next_entry is already initialized during TAILQ_FOREACH_SAFE().

PR: kern/119604
Approved by: rwatson (mentor)
MFC after: 1 month

16 years ago- Make Disk_Names() behave as documented in libdisk(3): return an array
Antoine Brodin [Fri, 15 Feb 2008 21:19:15 +0000 (21:19 +0000)]
- Make Disk_Names() behave as documented in libdisk(3): return an array
of disk names, where you must free each pointer, as well as the array
by hand. [1]
- Destaticize "disks" in Disk_Names, it has no reasons to be static.

PR: kern/96077 [1]
PR: kern/114110 [1]
MFC after: 1 month
Approved by: rwatson (mentor)

16 years agoBump __FreeBSD_version in order to signal introduction of lockmgr_args()
Attilio Rao [Fri, 15 Feb 2008 21:08:18 +0000 (21:08 +0000)]
Bump __FreeBSD_version in order to signal introduction of lockmgr_args()
and LK_INTERNAL removal.

16 years ago- Introduce lockmgr_args() in the lockmgr space. This function performs
Attilio Rao [Fri, 15 Feb 2008 21:04:36 +0000 (21:04 +0000)]
- Introduce lockmgr_args() in the lockmgr space.  This function performs
  the same operation of lockmgr() but accepting a custom wmesg, prio and
  timo for the particular lock instance, overriding default values
  lkp->lk_wmesg, lkp->lk_prio and lkp->lk_timo.
- Use lockmgr_args() in order to implement BUF_TIMELOCK()
- Cleanup BUF_LOCK()
- Remove LK_INTERNAL as it is nomore used in the lockmgr namespace

Tested by: Andrea Barberio <insomniac at slackware dot it>

16 years agoAdd privilege PRIV_NNPFS_DEBUG for use with Arla/nnpfs. This privilege
Robert Watson [Fri, 15 Feb 2008 20:26:17 +0000 (20:26 +0000)]
Add privilege PRIV_NNPFS_DEBUG for use with Arla/nnpfs.  This privilege
will authorize debugging system calls.

MFC after: 1 month

16 years agoAdd myself and the mentorship relation of des.
Oliver Fromme [Fri, 15 Feb 2008 18:40:45 +0000 (18:40 +0000)]
Add myself and the mentorship relation of des.

Approved by: des (mentor)

16 years agoThe possibly interruptible msleep in coda_call() means well, but is
Robert Watson [Fri, 15 Feb 2008 13:31:35 +0000 (13:31 +0000)]
The possibly interruptible msleep in coda_call() means well, but is
fundamentally fairly confused about how signals work and when it is
appropriate for upcalls to be interrupted.  In particular, we should
be exempting certain upcalls from interruption, we should not always
eventually time out sleeping on a upcall, and we should not be
interrupting the sleep for certain signals that we currently are
(including SIGINFO).  This code needs to be reworked in the style of
NFS interruptible mounts.

MFC after: 1 month

16 years agoSpell replys as replies.
Robert Watson [Fri, 15 Feb 2008 12:11:45 +0000 (12:11 +0000)]
Spell replys as replies.

MFC after: 1 month

16 years agoReorder and clean up make_coda_node(), annotate weaknesses in the
Robert Watson [Fri, 15 Feb 2008 11:58:11 +0000 (11:58 +0000)]
Reorder and clean up make_coda_node(), annotate weaknesses in the
implementation.

MFC after: 1 month

16 years agoSigh, the weak reference for ceill(), floorl() and truncl() was in
Bruce Evans [Fri, 15 Feb 2008 07:01:40 +0000 (07:01 +0000)]
Sigh, the weak reference for ceill(), floorl() and truncl() was in
unreachable code due to a missing include.  This kept arm and powerpc
broken.

Reported by: sam, grehan

16 years agoTeach the dump and minidump code to respect the maxioszie attribute of
Scott Long [Fri, 15 Feb 2008 06:26:25 +0000 (06:26 +0000)]
Teach the dump and minidump code to respect the maxioszie attribute of
the disk; the hard-coded assumption of 64K doesn't work in all cases.

16 years agoAdd open_to_operation, a security regression test that opens files with
Robert Watson [Thu, 14 Feb 2008 20:57:38 +0000 (20:57 +0000)]
Add open_to_operation, a security regression test that opens files with
various open flags and then tests various operations to make sure that
they are properly constrained by open flags.  Various I/O mechansms
are tried, including aio if compiled into the kernel or loaded as a
module.  There's more to be done here but it's a useful start, running
about 220 individual tests.

This is in support of FreeBSD-SA-08:03.sendfile.

16 years agoNo network addresses in the system isn't a good excuse
Yaroslav Tykhiy [Thu, 14 Feb 2008 20:12:23 +0000 (20:12 +0000)]
No network addresses in the system isn't a good excuse
for rpcbind(8) to crash.

The crash was due to a boolean variable initialized
improperly.  Besides fixing the initialization, pick
a better name for the variable so that its meaning is
clear and no more coding errors appear around it.