svn commit: r226607 - in head: include sys/amd64/include sys/arm/include sys/i386/include sys/ia64/include sys/mips/include sys/powerpc/include sys/sparc64/include

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:41:46 2011 New Revision: 226607 URL: http://svn.freebsd.org/changeset/base/226607 Log: People porting FreeBSD to new architectures ought not have to implement a deprecated FPU control interface in addition to the standard one. To make this clearer, further de

svn commit: r226606 - in head/lib/libc: amd64 amd64/gen arm arm/gen gen i386 i386/gen ia64 ia64/gen mips mips/gen powerpc powerpc/gen powerpc64 powerpc64/gen sparc64 sparc64/gen

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:40:36 2011 New Revision: 226606 URL: http://svn.freebsd.org/changeset/base/226606 Log: Replace a proliferation of buggy MD implementations of modf() with a working MI one. The MI one only needs to be overridden on machines with non-IEEE754 arithmetic. (The l

svn commit: r226605 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:36:40 2011 New Revision: 226605 URL: http://svn.freebsd.org/changeset/base/226605 Log: Add regression tests for modf{,f,l}(). Modified: head/tools/regression/lib/msun/test-nearbyint.c Modified: head/tools/regression/lib/msun/test-nearbyint.c ==

svn commit: r226604 - head/lib/libc/stdio

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:35:58 2011 New Revision: 226604 URL: http://svn.freebsd.org/changeset/base/226604 Log: Add support for the 'x' mode option in fopen() as specified in the C1X draft standard. The option is equivalent to O_EXCL. MFC after:1 month Modified: head/lib/li

svn commit: r226603 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:34:38 2011 New Revision: 226603 URL: http://svn.freebsd.org/changeset/base/226603 Log: Tests for complex trig and hyperbolic functions. Added: head/tools/regression/lib/msun/test-ctrig.c (contents, props changed) head/tools/regression/lib/msun/test-ctrig.t

svn commit: r226602 - head/tools/regression/lib/msun

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:32:54 2011 New Revision: 226602 URL: http://svn.freebsd.org/changeset/base/226602 Log: Tests for cancellation in fma(). Also include more tests for 128-bit long doubles. Thanks for clusteradm (simon) for making the needed hardware available. Modified: head/

svn commit: r226601 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:30:43 2011 New Revision: 226601 URL: http://svn.freebsd.org/changeset/base/226601 Log: Fix a regression introduced in r226371: When the high part of x*y exactly cancels with z, return the low part of x*y instead of discarding it. Modified: head/lib/msun/src

svn commit: r226600 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:30:16 2011 New Revision: 226600 URL: http://svn.freebsd.org/changeset/base/226600 Log: Fix a corner case: tan(large + Inf i) == NaN + NaN i. Modified: head/lib/msun/src/s_ctanh.c head/lib/msun/src/s_ctanhf.c Modified: head/lib/msun/src/s_ctanh.c

svn commit: r226599 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:29:32 2011 New Revision: 226599 URL: http://svn.freebsd.org/changeset/base/226599 Log: Improved handling of large x in ccosh{,f}(): - Handle cases where exp(x) would overflow, but ccosh(x) ~= exp(x) / 2 shouldn't. - Use the ccosh(x) ~= exp(x) / 2 approxima

svn commit: r226598 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:28:47 2011 New Revision: 226598 URL: http://svn.freebsd.org/changeset/base/226598 Log: Use __ldexp_exp() to simplify things and improve accuracy for x near the overflow threshold. Modified: head/lib/msun/src/e_cosh.c head/lib/msun/src/e_coshf.c head/lib/m

svn commit: r226597 - in head/lib/msun: . src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:27:56 2011 New Revision: 226597 URL: http://svn.freebsd.org/changeset/base/226597 Log: The cexp() and {,c}{cos,sin}h functions all need to be able to compute exp(x) scaled down by some factor, and the challenge is doing this accurately when exp(x) would overfl

svn commit: r226596 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:26:38 2011 New Revision: 226596 URL: http://svn.freebsd.org/changeset/base/226596 Log: Use STRICT_ASSIGN() to ensure that the compiler doesn't screw things up by storing x in a wider type than it's supposed to. Submitted by: bde Modified: head/lib/msun/s

svn commit: r226595 - head/lib/msun/src

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:26:07 2011 New Revision: 226595 URL: http://svn.freebsd.org/changeset/base/226595 Log: Per IEEE754r, pow(1, y) is 1 even if y is NaN, and pow(-1, +-Inf) is 1. MFC after:2 weeks Modified: head/lib/msun/src/e_pow.c head/lib/msun/src/e_powf.c Modified:

svn commit: r226594 - in head/lib/msun: amd64 i387

2011-10-20 Thread David Schultz
Author: das Date: Fri Oct 21 06:25:31 2011 New Revision: 226594 URL: http://svn.freebsd.org/changeset/base/226594 Log: Bugfix: feenableexcept() and fedisableexcept() should just return the old exception mask, not mask | ~FE_ALL_EXCEPT. MFC after:2 weeks Modified: head/lib/msun/amd6

svn commit: r226593 - stable/7/usr.bin/script

2011-10-20 Thread Mikolaj Golub
Author: trociny Date: Fri Oct 21 05:41:20 2011 New Revision: 226593 URL: http://svn.freebsd.org/changeset/base/226593 Log: MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sen

svn commit: r226592 - stable/8/usr.bin/script

2011-10-20 Thread Mikolaj Golub
Author: trociny Date: Fri Oct 21 05:40:30 2011 New Revision: 226592 URL: http://svn.freebsd.org/changeset/base/226592 Log: MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sen

svn commit: r226591 - stable/9/usr.bin/script

2011-10-20 Thread Mikolaj Golub
Author: trociny Date: Fri Oct 21 05:37:40 2011 New Revision: 226591 URL: http://svn.freebsd.org/changeset/base/226591 Log: MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sen

svn commit: r226589 - stable/8/sys/dev/tws

2011-10-20 Thread Xin LI
Author: delphij Date: Thu Oct 20 21:49:26 2011 New Revision: 226589 URL: http://svn.freebsd.org/changeset/base/226589 Log: MFC r226476: Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing vendor provided driver to override in kernel driver. Modified: stable/8/sys/dev/t

svn commit: r226588 - stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-10-20 Thread Xin LI
Author: delphij Date: Thu Oct 20 21:48:09 2011 New Revision: 226588 URL: http://svn.freebsd.org/changeset/base/226588 Log: MFC r226483: Fix a bug in sa_find_sizes() which could lead to panic: When calculating space needed for SA_BONUS buffers, hdrsize is always rounded up to next 8-alig

svn commit: r226587 - vendor/clang/clang-r142614

2011-10-20 Thread Dimitry Andric
Author: dim Date: Thu Oct 20 21:15:43 2011 New Revision: 226587 URL: http://svn.freebsd.org/changeset/base/226587 Log: Tag clang release_30 branch r142614. Added: vendor/clang/clang-r142614/ - copied from r226586, vendor/clang/dist/ ___ svn-src

svn commit: r226585 - vendor/llvm/llvm-r142614

2011-10-20 Thread Dimitry Andric
Author: dim Date: Thu Oct 20 21:11:28 2011 New Revision: 226585 URL: http://svn.freebsd.org/changeset/base/226585 Log: Tag llvm release_30 branch r142614. Added: vendor/llvm/llvm-r142614/ - copied from r226584, vendor/llvm/dist/ ___ svn-src-all

svn commit: r226583 - head/cddl/contrib/opensolaris/cmd/zpool

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 21:01:50 2011 New Revision: 226583 URL: http://svn.freebsd.org/changeset/base/226583 Log: Make all the lines align properly. MFC after:3 days Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Modified: head/cddl/contrib/opensolaris/cmd/zpool

svn commit: r226582 - stable/9/sys/dev/tws

2011-10-20 Thread Xin LI
Author: delphij Date: Thu Oct 20 20:33:31 2011 New Revision: 226582 URL: http://svn.freebsd.org/changeset/base/226582 Log: MFC r226476: Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing vendor provided driver to override in kernel driver. Approved by: re (kib) Mod

svn commit: r226581 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-10-20 Thread Xin LI
Author: delphij Date: Thu Oct 20 20:31:09 2011 New Revision: 226581 URL: http://svn.freebsd.org/changeset/base/226581 Log: MFC r226483: Fix a bug in sa_find_sizes() which could lead to panic: When calculating space needed for SA_BONUS buffers, hdrsize is always rounded up to next 8-alig

Re: svn commit: r226580 - stable/7/libexec/tftpd

2011-10-20 Thread Kostik Belousov
On Thu, Oct 20, 2011 at 07:23:21PM +, Sean Bruno wrote: > Author: sbruno > Date: Thu Oct 20 19:23:21 2011 > New Revision: 226580 > URL: http://svn.freebsd.org/changeset/base/226580 > > Log: > MFC r224536: > Confirmed behavior of a Cisco 6509 in production. > > In the old TFTP server,

svn commit: r226580 - stable/7/libexec/tftpd

2011-10-20 Thread Sean Bruno
Author: sbruno Date: Thu Oct 20 19:23:21 2011 New Revision: 226580 URL: http://svn.freebsd.org/changeset/base/226580 Log: MFC r224536: Confirmed behavior of a Cisco 6509 in production. In the old TFTP server, there was an undocumented behavior where the block counter would rollover to 0

svn commit: r226579 - stable/8/sys/dev/iscsi/initiator

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 19:16:52 2011 New Revision: 226579 URL: http://svn.freebsd.org/changeset/base/226579 Log: MFC r226208: Do not ignore block offsets. PR: kern/160943 Modified: stable/8/sys/dev/iscsi/initiator/iscsi_subr.c Directory Properties: stable/8/sys/ (props chan

svn commit: r226578 - in stable/9/sys: kern sys

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:54:05 2011 New Revision: 226578 URL: http://svn.freebsd.org/changeset/base/226578 Log: MFC r226042: Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes. Approved by: re (bz) Modified: stable/9/sys/kern/sys_pipe.c stable/9/sys/

svn commit: r226577 - in stable/9/sys: fs/devfs sys

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:47:58 2011 New Revision: 226577 URL: http://svn.freebsd.org/changeset/base/226577 Log: MFC r226041: Export devfs inode number allocator for the kernel consumers. Approved by: re (bz) Modified: stable/9/sys/fs/devfs/devfs_devs.c stable/9/sys/sys/conf.h

svn commit: r226576 - stable/9/sys/dev/iscsi/initiator

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:39:01 2011 New Revision: 226576 URL: http://svn.freebsd.org/changeset/base/226576 Log: MFC r226208: Do not ignore block offsets. PR: kern/160943 Approved by: re (bz) Modified: stable/9/sys/dev/iscsi/initiator/iscsi_subr.c Directory Properties: sta

svn commit: r226575 - stable/9/gnu/usr.bin/cc/cc_tools

2011-10-20 Thread Dimitry Andric
Author: dim Date: Thu Oct 20 17:33:22 2011 New Revision: 226575 URL: http://svn.freebsd.org/changeset/base/226575 Log: Update gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 9. This is a direct commit to stable/9, since the macro values are different in head. Approved b

svn commit: r226574 - stable/9/sys/netinet

2011-10-20 Thread Navdeep Parhar
Author: np Date: Thu Oct 20 17:09:53 2011 New Revision: 226574 URL: http://svn.freebsd.org/changeset/base/226574 Log: MFC r226318: Make sure the inp wasn't dropped when rexmt let go of the inp and pcbinfo locks. Approved by: re (kib) Modified: stable/9/sys/netinet/tcp_timer.c Dir

Re: svn commit: r226572 - stable/9/sys/netinet

2011-10-20 Thread Bjoern A. Zeeb
On 20. Oct 2011, at 15:58 , Gleb Smirnoff wrote: > Author: glebius > Date: Thu Oct 20 15:58:05 2011 > New Revision: 226572 > URL: http://svn.freebsd.org/changeset/base/226572 > > Log: > MFhead 226401,226402: > >Remove last remnants of classful addressing: > >- Remove ia_net, ia_netmask

svn commit: r226573 - in stable/9/usr.bin/grep: . regex

2011-10-20 Thread Gabor Kovesdan
Author: gabor Date: Thu Oct 20 16:08:11 2011 New Revision: 226573 URL: http://svn.freebsd.org/changeset/base/226573 Log: MFC r226432, r226273: - Use getprogname() instead of __progname - Allow disabling bzip2 support with WITHOUT_BZIP2 - Fix handling patterns that start with a dot

Re: svn commit: r226402 - head/sys/netinet

2011-10-20 Thread Gleb Smirnoff
On Sat, Oct 15, 2011 at 11:51:21PM +0300, Nikolay Denev wrote: N> > Log: N> > Add support for IPv4 /31 prefixes, as described in RFC3021. N> > N> > To run a /31 network, participating hosts MUST drop support N> > for directed broadcasts, and treat the first and last addresses N> > on subnet as

svn commit: r226572 - stable/9/sys/netinet

2011-10-20 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 20 15:58:05 2011 New Revision: 226572 URL: http://svn.freebsd.org/changeset/base/226572 Log: MFhead 226401,226402: Remove last remnants of classful addressing: - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr. - Remove net.inet.ip

svn commit: r226571 - stable/9/sys/netinet

2011-10-20 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 20 15:55:01 2011 New Revision: 226571 URL: http://svn.freebsd.org/changeset/base/226571 Log: MFhead r226367: Never switch directly from INIT to MASTER, since this produces nasty status flaps. PR: kern/161123 Submitted by: Damien Fleur

svn commit: r226570 - stable/9/sys/netinet6

2011-10-20 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 20 15:53:26 2011 New Revision: 226570 URL: http://svn.freebsd.org/changeset/base/226570 Log: MFhead r226338: Restore functions in6_ifaddloop() and in6_ifremloop() that were inlined by Qing Li in his big new-ARP commit. I am going to utilize them in my

svn commit: r226569 - head/sys/boot/common

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 15:46:54 2011 New Revision: 226569 URL: http://svn.freebsd.org/changeset/base/226569 Log: With LOADER_MBR_SUPPORT defined and LOADER_GPT_SUPPORT undefined we would never call disk_openmbr(). Submitted by: avg MFC after:3 days Modified: head/sys/boot/c

svn commit: r226568 - in head/sys: boot/zfs cddl/boot/zfs

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 15:42:38 2011 New Revision: 226568 URL: http://svn.freebsd.org/changeset/base/226568 Log: - Correctly read gang header from raidz. - Decompress assembled gang block data if compressed. - Verify checksum of a gang header. - Verify checksum of assembled gang bloc

svn commit: r226567 - stable/9/sys/powerpc/powerpc

2011-10-20 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Oct 20 15:34:17 2011 New Revision: 226567 URL: http://svn.freebsd.org/changeset/base/226567 Log: MFC r226410: Enforce a memory barrier in stream operations, as is done on other bus_space calls. This makes ath(4) work correctly on PowerPC. Submitted by: adria

svn commit: r226566 - stable/8/usr.sbin/usbdump

2011-10-20 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 20 14:56:44 2011 New Revision: 226566 URL: http://svn.freebsd.org/changeset/base/226566 Log: MFC r226474: Make the usbdump utility work again by using the correct BPF structures. Modified: stable/8/usr.sbin/usbdump/usbdump.c Directory Properties: stable/8/us

svn commit: r226565 - stable/9/usr.sbin/usbdump

2011-10-20 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 20 14:45:16 2011 New Revision: 226565 URL: http://svn.freebsd.org/changeset/base/226565 Log: MFC r226474: Make the usbdump utility work again by using the correct BPF structures. Approved by: re (kib) Modified: stable/9/usr.sbin/usbdump/usbdump.c Directo

svn commit: r226564 - head/share/mk

2011-10-20 Thread Jayachandran C.
Author: jchandra Date: Thu Oct 20 13:41:37 2011 New Revision: 226564 URL: http://svn.freebsd.org/changeset/base/226564 Log: Build 'dtc' by default for MIPS. The device tree compiler is needed during the kernel build to compile DTS files to DTB. Reviewed by: stas Modified: head/sh

Re: svn commit: r226552 - head/sys/boot/zfs

2011-10-20 Thread Andriy Gapon
on 20/10/2011 12:35 Pawel Jakub Dawidek said the following: > On Thu, Oct 20, 2011 at 10:15:09AM +0300, Andriy Gapon wrote: >> I believe that this commit is incorrect. >> It does appear to do the right thing for raidz, but I believe that it breaks >> the >> simple case when v_read is vdev_read_phy

Re: svn commit: r226552 - head/sys/boot/zfs

2011-10-20 Thread Pawel Jakub Dawidek
On Thu, Oct 20, 2011 at 10:15:09AM +0300, Andriy Gapon wrote: > I believe that this commit is incorrect. > It does appear to do the right thing for raidz, but I believe that it breaks > the > simple case when v_read is vdev_read_phys. Now because the bp argument is not > NULL, the latter will try

Re: svn commit: r226554 - head/sys/boot/common

2011-10-20 Thread Pawel Jakub Dawidek
On Thu, Oct 20, 2011 at 10:06:35AM +0300, Andriy Gapon wrote: > on 20/10/2011 02:48 Pawel Jakub Dawidek said the following: > > Author: pjd > > Date: Wed Oct 19 23:48:15 2011 > > New Revision: 226554 > > URL: http://svn.freebsd.org/changeset/base/226554 > > > > Log: > > Fix missing return when L

Re: svn commit: r226553 - in head/sys: boot/zfs cddl/boot/zfs

2011-10-20 Thread Andriy Gapon
on 20/10/2011 02:44 Pawel Jakub Dawidek said the following: > Author: pjd > Date: Wed Oct 19 23:44:38 2011 > New Revision: 226553 > URL: http://svn.freebsd.org/changeset/base/226553 > > Log: > Always pass data size for checksum verification function, as using > physical block size declared in

Re: svn commit: r226552 - head/sys/boot/zfs

2011-10-20 Thread Andriy Gapon
on 20/10/2011 02:40 Pawel Jakub Dawidek said the following: > Author: pjd > Date: Wed Oct 19 23:40:37 2011 > New Revision: 226552 > URL: http://svn.freebsd.org/changeset/base/226552 > > Log: > Never pass NULL block pointer when reading. This is neither expected nor > handled by lower layers li

Re: svn commit: r226554 - head/sys/boot/common

2011-10-20 Thread Andriy Gapon
on 20/10/2011 02:48 Pawel Jakub Dawidek said the following: > Author: pjd > Date: Wed Oct 19 23:48:15 2011 > New Revision: 226554 > URL: http://svn.freebsd.org/changeset/base/226554 > > Log: > Fix missing return when LOADER_GPT_SUPPORT is defined, but > LOADER_MBR_SUPPORT > is not. > > M