svn commit: r217144 - head/lib/libc/stdlib

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 11:04:30 2011 New Revision: 217144 URL: http://svn.freebsd.org/changeset/base/217144 Log: Fix some style(9) issues. Do not use strlcpy() where simple assignment is enough. Noted by: bde (long time ago) MFC after:1 week Modified:

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

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 11:13:34 2011 New Revision: 217145 URL: http://svn.freebsd.org/changeset/base/217145 Log: Fix types of some values in machine/_limits.h. On some architectures UCHAR_MAX and USHRT_MAX had type unsigned int. However, lacking integer suffixes for types smaller

svn commit: r217146 - in head/sys: arm/include i386/include mips/include powerpc/include sys

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 11:47:55 2011 New Revision: 217146 URL: http://svn.freebsd.org/changeset/base/217146 Log: On 32 bit architectures define (u)int64_t as (unsigned) long long instead of (unsigned) int __attribute__((__mode__(__DI__))). This aligns better with macros such as

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

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 12:43:05 2011 New Revision: 217147 URL: http://svn.freebsd.org/changeset/base/217147 Log: On mixed 32/64 bit architectures (mips, powerpc) use __LP64__ rather than architecture macros (__mips_n64, __powerpc64__) when 64 bit types (and corresponding macros) are

svn commit: r217151 - in head/sys: amd64/amd64 amd64/ia32 amd64/include compat/freebsd32 compat/ia32 kern sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:13:44 2011 New Revision: 217151 URL: http://svn.freebsd.org/changeset/base/217151 Log: Create shared (readonly) page. Each ABI may specify the use of page by setting SV_SHP flag and providing pointer to the vm object and mapping address. Provide simple

svn commit: r217152 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:30:59 2011 New Revision: 217152 URL: http://svn.freebsd.org/changeset/base/217152 Log: In elf image activator, read and apply the stack protection mode from PT_GNU_STACK program header, if present and enabled. Two new sysctls are provided, kern.elf32.nxstack

svn commit: r217153 - in head: libexec/rtld-elf sys/sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 17:11:49 2011 New Revision: 217153 URL: http://svn.freebsd.org/changeset/base/217153 Log: In rtld, read the initial stack access mode from AT_STACKPROT as set by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos. If the loaded dso requires

svn commit: r217154 - head/lib/libc/gen

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 17:13:43 2011 New Revision: 217154 URL: http://svn.freebsd.org/changeset/base/217154 Log: Implement __pthread_map_stacks_exec() callback for libc, to change the stack protection to allow execution for single-threaded processes. Modified:

svn commit: r217155 - in head/sys: mips/include powerpc/include

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 18:00:19 2011 New Revision: 217155 URL: http://svn.freebsd.org/changeset/base/217155 Log: Rename PRIreg helper macro to PRIptr to better reflect its use. Registers and pointers don't always have the same size, e.g. the __mips_n32 ABI (ILP32) has 64 bit

svn commit: r217156 - in head/sys: mips/include powerpc/include

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 18:02:46 2011 New Revision: 217156 URL: http://svn.freebsd.org/changeset/base/217156 Log: White space changes to align comments. The mips and powerpc _inttypes.h are now exactly the same. Approved by: kib (mentor) Modified:

svn commit: r217157 - in head/sys: amd64/include i386/include pc98/include x86/include

2011-01-08 Thread Tijl Coosemans
Author: tijl Date: Sat Jan 8 18:09:48 2011 New Revision: 217157 URL: http://svn.freebsd.org/changeset/base/217157 Log: Copy powerpc/include/_inttypes.h to x86 and replace i386/amd64/pc98 headers with stubs. Approved by: kib (mentor) Added: head/sys/x86/include/_inttypes.h -

svn commit: r217160 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 18:41:19 2011 New Revision: 217160 URL: http://svn.freebsd.org/changeset/base/217160 Log: Use the same expression to report stack protection mode for AT_STACKEXEC as the expression used by exec_new_vmspace(). Modified: head/sys/kern/imgact_elf.c Modified:

svn commit: r217161 - head/sys/kern

2011-01-08 Thread Attilio Rao
Author: attilio Date: Sat Jan 8 18:51:15 2011 New Revision: 217161 URL: http://svn.freebsd.org/changeset/base/217161 Log: Revert r216805. That revision is introducing a bug which is more visible than problems it is trying to fix. As long as my time is very limited in this period I am

svn commit: r217163 - head/sys/kern

2011-01-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jan 8 19:50:13 2011 New Revision: 217163 URL: http://svn.freebsd.org/changeset/base/217163 Log: Make RB_CDROM work. This should probably check for a disc in cd1 and acd1 as well. Modified: head/sys/kern/vfs_mountroot.c Modified: head/sys/kern/vfs_mountroot.c

svn commit: r217164 - in head/usr.sbin/pc-sysinstall: backend backend-query

2011-01-08 Thread Josh Paetzel
Author: jpaetzel (ports committer) Date: Sat Jan 8 20:25:00 2011 New Revision: 217164 URL: http://svn.freebsd.org/changeset/base/217164 Log: More elegant way to detect MBR vs. GPT Submitted by: nwhitehorn Approved by: imp Modified:

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

2011-01-08 Thread Juli Mallett
On Sat, Jan 8, 2011 at 04:43, Tijl Coosemans t...@freebsd.org wrote: Author: tijl Date: Sat Jan  8 12:43:05 2011 New Revision: 217147 URL: http://svn.freebsd.org/changeset/base/217147 Log:  On mixed 32/64 bit architectures (mips, powerpc) use __LP64__ rather than  architecture macros

svn commit: r217169 - head/sys/netinet

2011-01-08 Thread Daniel Eischen
Author: deischen Date: Sat Jan 8 22:33:46 2011 New Revision: 217169 URL: http://svn.freebsd.org/changeset/base/217169 Log: Make sure to always do source address selection on an unbound socket, regardless of any multicast options. If an address is specified via a multicast option, then

svn commit: r217170 - head/usr.sbin/pc-sysinstall/backend

2011-01-08 Thread Josh Paetzel
Author: jpaetzel (ports committer) Date: Sat Jan 8 22:42:56 2011 New Revision: 217170 URL: http://svn.freebsd.org/changeset/base/217170 Log: Push some PC-BSD specific fixes upstream. PR: bin/152894 Submitted by: Kris Moore kmo...@freebsd.org Approved by: imp Modified:

svn commit: r217171 - head/sys/vm

2011-01-08 Thread Alan Cox
Author: alc Date: Sat Jan 8 22:45:22 2011 New Revision: 217171 URL: http://svn.freebsd.org/changeset/base/217171 Log: Eliminate the counting of vm_page_pa_tryrelock calls. We really don't need it anymore. Moreover, its implementation had a type mismatch, a long is not necessarily an

Re: svn commit: r217071 - head/lib/bind

2011-01-08 Thread Warner Losh
On 01/07/2011 22:13, Doug Barton wrote: I've said before that I like to have the opportunity to pre-commit review patches in this area because at minimum it helps me to be aware of them for potential MFC purposes. Thanks for the reminder Doug. Hope there's no hard feelings... That said, I

svn commit: r217172 - head/tools/regression/bin/sh/builtins

2011-01-08 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 8 23:00:38 2011 New Revision: 217172 URL: http://svn.freebsd.org/changeset/base/217172 Log: sh: Add simple test for 'exit' without parameters. Added: head/tools/regression/bin/sh/builtins/exit2.8 (contents, props changed) Added:

svn commit: r217173 - head/usr.sbin/pc-sysinstall/backend-query

2011-01-08 Thread Josh Paetzel
Author: jpaetzel (ports committer) Date: Sat Jan 8 23:03:24 2011 New Revision: 217173 URL: http://svn.freebsd.org/changeset/base/217173 Log: Take passwords out of debug log. Fix path problem that was preventing disk info from being in the log. PR: bin/151968 Submitted by: Kris Moore

svn commit: r217174 - head/sys/netsmb

2011-01-08 Thread Christian S.J. Peron
Author: csjp Date: Sat Jan 8 23:06:54 2011 New Revision: 217174 URL: http://svn.freebsd.org/changeset/base/217174 Log: Change some variables from int to size_t. This is more accurate since these variables represent sizes in one capacity or another. There is no reason to allow negative

svn commit: r217175 - in head: bin/sh tools/regression/bin/sh/builtins

2011-01-08 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 8 23:08:13 2011 New Revision: 217175 URL: http://svn.freebsd.org/changeset/base/217175 Log: sh: Make exit without parameters from EXIT trap POSIX-compliant. It should use the original exit status, just like falling off the end of the trap handler.

Re: svn commit: r217125 - head

2011-01-08 Thread Alexander Best
On Fri Jan 7 11, Warner Losh wrote: Author: imp Date: Fri Jan 7 20:36:27 2011 New Revision: 217125 URL: http://svn.freebsd.org/changeset/base/217125 Log: make targets This produces a list of currently supported targets. Here supported means built in make universe on the

svn commit: r217176 - head/sys/fs/nfsserver

2011-01-08 Thread Rick Macklem
Author: rmacklem Date: Sun Jan 9 02:10:54 2011 New Revision: 217176 URL: http://svn.freebsd.org/changeset/base/217176 Log: Modify readdirplus in the experimental NFS server in a manner analogous to r216633 for the regular server. This change busies the file system so that VFS_VGET() is

svn commit: r217177 - head/sys/vm

2011-01-08 Thread Alan Cox
Author: alc Date: Sun Jan 9 04:34:02 2011 New Revision: 217177 URL: http://svn.freebsd.org/changeset/base/217177 Log: Eliminate a redundant alignment directive on the page locks array. Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c

svn commit: r217180 - head/sys/ia64/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:02 2011 New Revision: 217180 URL: http://svn.freebsd.org/changeset/base/217180 Log: The highest-precision floating point type on ia64 has 64 bits of precision, so DECIMAL_DIG should be 21, as on i386/amd64. Modified: head/sys/ia64/include/float.h

svn commit: r217181 - head/sys/powerpc/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:22 2011 New Revision: 217181 URL: http://svn.freebsd.org/changeset/base/217181 Log: We don't support any floating point types larger than double on powerpc, so DECIMAL_DIG should be 17. Modified: head/sys/powerpc/include/float.h Modified:

svn commit: r217182 - in head/sys: sparc64/include sun4v/include

2011-01-08 Thread David Schultz
Author: das Date: Sun Jan 9 06:05:48 2011 New Revision: 217182 URL: http://svn.freebsd.org/changeset/base/217182 Log: Fix the value for DECIMAL_DIG on UltraSparcs. The previous value of 35 wasn't quite big enough to ensure correct rounding for very-close- to-halfway cases. Modified:

svn commit: r217184 - head/sys/mips/atheros

2011-01-08 Thread Adrian Chadd
Author: adrian Date: Sun Jan 9 06:17:46 2011 New Revision: 217184 URL: http://svn.freebsd.org/changeset/base/217184 Log: Add missing ar91xx definition for the WMAC reset control. Modified: head/sys/mips/atheros/ar91xxreg.h Modified: head/sys/mips/atheros/ar91xxreg.h