svn commit: r229562 - head/sys/i386/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 08:51:06 2012 New Revision: 229562 URL: http://svn.freebsd.org/changeset/base/229562 Log: Also import WEAK_ALIAS() from the MIPS code. Modified: head/sys/i386/include/asm.h Modified: head/sys/i386/include/asm.h =

svn commit: r229571 - in head/lib/libc: i386/string mips/string string

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 10:32:53 2012 New Revision: 229571 URL: http://svn.freebsd.org/changeset/base/229571 Log: Change index() and rindex() to a weak alias. This allows people to still write statically linked applications that call strchr() or strrchr() and have a local variable or

svn commit: r229572 - head/lib/libutil

2012-01-05 Thread Baptiste Daroussin
Author: bapt Date: Thu Jan 5 10:40:24 2012 New Revision: 229572 URL: http://svn.freebsd.org/changeset/base/229572 Log: Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd while here, fix missing parentheses of the return statement of pw_make. Approved by: des

svn commit: r229574 - head/sys/sys

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 10:43:03 2012 New Revision: 229574 URL: http://svn.freebsd.org/changeset/base/229574 Log: Add __generic(), to be able to use a very simple _Generic(). Already introducing this allows us to be forward compatible with C11 compilers. By implementing on top of thi

svn commit: r229575 - in head: include share/man/man3

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 10:46:22 2012 New Revision: 229575 URL: http://svn.freebsd.org/changeset/base/229575 Log: Reimplement on top of __generic(). The macro construction used now, is almost identical to the code provided in C11 proposal N1404. This new version doesn't seem to int

svn commit: r229585 - head/share/man/man4

2012-01-05 Thread Christian Brueffer
Author: brueffer Date: Thu Jan 5 11:16:42 2012 New Revision: 229585 URL: http://svn.freebsd.org/changeset/base/229585 Log: Fix typo. MFC after:1 week Modified: head/share/man/man4/bce.4 Modified: head/share/man/man4/bce.4

svn commit: r229586 - head/sys/net

2012-01-05 Thread Robert Watson
Author: rwatson Date: Thu Jan 5 11:24:22 2012 New Revision: 229586 URL: http://svn.freebsd.org/changeset/base/229586 Log: Add comment to the VLAN code about its integration with VIMAGE: we see what the code is doing, we recognise the legitimacy of its goal, but we're not quite sure it's goi

svn commit: r229587 - head/sys/net

2012-01-05 Thread Robert Watson
Author: rwatson Date: Thu Jan 5 11:42:34 2012 New Revision: 229587 URL: http://svn.freebsd.org/changeset/base/229587 Log: Refine last comment. Submitted by: joeld Sponsored by: ADARA Networks, Inc. MFC after:3 days Modified: head/sys/net/if_vlan.c Modified: head/sys/net/if_vlan

svn commit: r229590 - head/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 12:05:48 2012 New Revision: 229590 URL: http://svn.freebsd.org/changeset/base/229590 Log: Make _Complex_I a proper float _Complex when using GCC 4.2. It turns out our GCC has quite an interesting bug: typeof(1.0fi) != float _Complex typeof((flo

svn commit: r229591 - head/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 12:06:49 2012 New Revision: 229591 URL: http://svn.freebsd.org/changeset/base/229591 Log: Remove _Complex_I workaround from . This removes the use of __typeof() from this header, thus making it work with a plain C11 compiler. Modified: head/include/tgmath.h

svn commit: r229594 - head/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 12:09:39 2012 New Revision: 229594 URL: http://svn.freebsd.org/changeset/base/229594 Log: Remove redundant inclusion of . Mea culpa. Modified: head/include/complex.h Modified: head/include/complex.h

svn commit: r229598 - head/sys/dev/ichwd

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 16:27:32 2012 New Revision: 229598 URL: http://svn.freebsd.org/changeset/base/229598 Log: Remove use of explicit bus space tags and handles and use methods that operate on resource objects instead. MFC after:1 week Modified: head/sys/dev/ichwd/ichwd.c

svn commit: r229600 - head/sys/fs/nullfs

2012-01-05 Thread Dimitry Andric
Author: dim Date: Thu Jan 5 17:06:04 2012 New Revision: 229600 URL: http://svn.freebsd.org/changeset/base/229600 Log: In sys/fs/nullfs/null_subr.c, in a KASSERT, output the correct vnode pointer 'lowervp' instead of 'vp', which is uninitialized at that point. Reviewed by: kib MFC afte

svn commit: r229605 - head/sys/ia64/conf

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 17:28:05 2012 New Revision: 229605 URL: http://svn.freebsd.org/changeset/base/229605 Log: Flip on IEEE80211_SUPPORT_MESH and AH_SUPPORT_AR5416, the wlan and ath modules respectively assume this is set. Pointy hat to:adrian Modified: head/sys/ia64

svn commit: r229606 - head/sys/dev/e1000

2012-01-05 Thread Robert Watson
Author: rwatson Date: Thu Jan 5 17:30:15 2012 New Revision: 229606 URL: http://svn.freebsd.org/changeset/base/229606 Log: When extracting the VLAN tag from if_em and if_lem receive descriptor rings, copy the whole VLAN tag, not just the VLAN ID. This fixes a problem in which VLAN priority

svn commit: r229613 - in head/sys/dev: bxe qlxgb sfxge

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 18:32:37 2012 New Revision: 229613 URL: http://svn.freebsd.org/changeset/base/229613 Log: Update recently added drivers to use the if_*addr_r*lock() wrapper functions instead of using the IF_ADDR_LOCK directly. The wrapper functions are the supported interface f

svn commit: r229614 - head/sys/net

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 18:35:49 2012 New Revision: 229614 URL: http://svn.freebsd.org/changeset/base/229614 Log: Add new variants of the IF_ADDR_*LOCK*() macros used for protecting interface address lists that distinguish read locks from write locks. To preserve the KPI, the previous o

svn commit: r229621 - in head/sys: kern net netatalk netinet netinet6 netipx

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 19:00:36 2012 New Revision: 229621 URL: http://svn.freebsd.org/changeset/base/229621 Log: Convert all users of IF_ADDR_LOCK to use new locking macros that specify either a read lock or write lock. Reviewed by: bz MFC after:2 weeks Modified: head/sys/

svn commit: r229622 - head/sys/kern

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 19:02:52 2012 New Revision: 229622 URL: http://svn.freebsd.org/changeset/base/229622 Log: Fix a logic bug in change 228207 in the check for a thread's new user priority being a realtime priority. MFC after:3 days Modified: head/sys/kern/kern_resource.c

svn commit: r229639 - head/sys/arm/conf

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 20:18:01 2012 New Revision: 229639 URL: http://svn.freebsd.org/changeset/base/229639 Log: Add missing options so modules build/load correctly. Modified: head/sys/arm/conf/KB920X Modified: head/sys/arm/conf/KB920X ===

svn commit: r229640 - head/sys/powerpc/conf

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 20:19:33 2012 New Revision: 229640 URL: http://svn.freebsd.org/changeset/base/229640 Log: Fix build. Modified: head/sys/powerpc/conf/GENERIC Modified: head/sys/powerpc/conf/GENERIC ==

svn commit: r229651 - in head: contrib/groff/tmac lib/libstdthreads share/man/man3

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:12 2012 New Revision: 229651 URL: http://svn.freebsd.org/changeset/base/229651 Log: Pull up vendor changes to mdoc(7) This switches us to using -isoC-2011 as the symbol name which is used by groff and mdocml. It follows the change to 4 digit years as don

svn commit: r229652 - head/sbin/recoverdisk

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:20 2012 New Revision: 229652 URL: http://svn.freebsd.org/changeset/base/229652 Log: Document the detrimental effect of kern.cam.XX.retry_count for recoverdisk(1) recoverdisk(1) wants to know about read errors when doing the 1MB/64k reads as fast as possi

svn commit: r229653 - head/usr.sbin/bsnmpd/modules/snmp_wlan

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:28 2012 New Revision: 229653 URL: http://svn.freebsd.org/changeset/base/229653 Log: Partial backout of r228990, restore original MIB object name. It's too late to change this in 9.0 -- so we have a release with the misspelling in the wild and should not

svn commit: r229654 - head/usr.sbin/newsyslog

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:36 2012 New Revision: 229654 URL: http://svn.freebsd.org/changeset/base/229654 Log: Further fix a typo and spelling classic correctly in function names, too. Submitted by: Ben Kaduk Modified: head/usr.sbin/newsyslog/newsyslog.c Modified: head/usr.sb

svn commit: r229655 - in head: usr.bin/locate/locate usr.bin/mail usr.sbin/bluetooth/sdpd usr.sbin/pkg_install/lib

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:45 2012 New Revision: 229655 URL: http://svn.freebsd.org/changeset/base/229655 Log: Touch up some more small typos missed in the previous round. Reported by: Ben Kaduk et al. Modified: head/usr.bin/locate/locate/util.c head/usr.bin/mail/main.c hea

svn commit: r229656 - head/tools/regression/msdosfs

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:36:53 2012 New Revision: 229656 URL: http://svn.freebsd.org/changeset/base/229656 Log: Convert files over to UTF-8. These files contained various combinations of Big5, eucJP and KOI8-U encoded strings. The byte representations of their respective encodings

svn commit: r229657 - in head/share/man: man4 man5

2012-01-05 Thread Ulrich Spoerlein
Author: uqs Date: Thu Jan 5 21:43:33 2012 New Revision: 229657 URL: http://svn.freebsd.org/changeset/base/229657 Log: Apply Typo-B-Gone 2000 [TM] Modified: head/share/man/man4/apic.4 head/share/man/man4/carp.4 head/share/man/man5/ar.5 Modified: head/share/man/man4/apic.4 ===

svn commit: r229658 - head/share/mk

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 21:49:43 2012 New Revision: 229658 URL: http://svn.freebsd.org/changeset/base/229658 Log: Allow crunchgen binary link generation to be disabled. If CRUNCH_GENERATE_LINKS is set to "no", then no links will be generated. This defaults to "yes" so things

svn commit: r229659 - head

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Thu Jan 5 21:50:50 2012 New Revision: 229659 URL: http://svn.freebsd.org/changeset/base/229659 Log: Allow extra directories to be added to the build-tools target. Things such as "sh" require local tools to be built before cross-compiling. This allows for extra softwa

svn commit: r229660 - head/sys/powerpc/conf

2012-01-05 Thread Andreas Tobler
Author: andreast Date: Thu Jan 5 22:06:01 2012 New Revision: 229660 URL: http://svn.freebsd.org/changeset/base/229660 Log: Fix build on powerpc64 too. The same as r229640. Modified: head/sys/powerpc/conf/GENERIC64 Modified: head/sys/powerpc/conf/GENERIC64 ===

svn commit: r229663 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-01-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jan 5 22:16:41 2012 New Revision: 229663 URL: http://svn.freebsd.org/changeset/base/229663 Log: - Allow to change vfs.zfs.arc_meta_limit at runtime. - Change vfs.zfs.arc_meta_used from CTLFLAG_RDTUN to CTLFLAG_RD, as it is not a tunable. MFC after:3 days Mo

svn commit: r229665 - head/sys/netinet

2012-01-05 Thread John Baldwin
Author: jhb Date: Thu Jan 5 22:29:11 2012 New Revision: 229665 URL: http://svn.freebsd.org/changeset/base/229665 Log: Remove the assertion from tcp_input() that rcv_nxt is always greater than or equal to rcv_adv and fix tcp_twstart() to handle this case by assuming the last window was zero

svn commit: r229667 - head/usr.sbin/daemon

2012-01-05 Thread Guy Helmer
Author: ghelmer Date: Thu Jan 5 22:48:36 2012 New Revision: 229667 URL: http://svn.freebsd.org/changeset/base/229667 Log: Allow daemon(8) to run pidfile_open() before relenquishing privileges so pid files can be written in /var/run when started as root. I do not expect this to cause any

svn commit: r229668 - head/usr.bin/newgrp

2012-01-05 Thread Guy Helmer
Author: ghelmer Date: Thu Jan 5 23:08:11 2012 New Revision: 229668 URL: http://svn.freebsd.org/changeset/base/229668 Log: Fix a memory leak in addgroup() by ensuring the allocated memory is freed if an error occurs. PR: bin/161510 MFC after:4 weeks Modified: head/usr.b

svn commit: r229669 - head/contrib/pf/pfctl

2012-01-05 Thread Robert Watson
Author: rwatson Date: Thu Jan 5 23:11:05 2012 New Revision: 229669 URL: http://svn.freebsd.org/changeset/base/229669 Log: Replace an OpenBSDism with a FreeBSDism in the pfctl(8) man page: we put configuration file man pages in section 5, and we prefer rc.conf to rc.conf.local. MFC afte

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

2012-01-05 Thread Sergey Kandaurov
On 6 January 2012 02:29, John Baldwin wrote: > Author: jhb > Date: Thu Jan  5 22:29:11 2012 > New Revision: 229665 > URL: http://svn.freebsd.org/changeset/base/229665 > > Log: >  Remove the assertion from tcp_input() that rcv_nxt is always greater >  than or equal to rcv_adv and fix tcp_twstart()

svn commit: r229671 - in head/sys/dev: ahci ata ata/chipsets

2012-01-05 Thread Jim Harris
Author: jimharris Date: Fri Jan 6 00:22:55 2012 New Revision: 229671 URL: http://svn.freebsd.org/changeset/base/229671 Log: Add 0x2826 device ID for C600 (Patsburg) SATA controller in RAID mode. Reviewed by: mav Approved by: scottl Modified: head/sys/dev/ahci/ahci.c head/sys/dev/ata

svn commit: r229672 - head/sys/netinet

2012-01-05 Thread Sergey Kandaurov
Author: pluknet Date: Fri Jan 6 00:23:17 2012 New Revision: 229672 URL: http://svn.freebsd.org/changeset/base/229672 Log: Fix a typo. X-MFC-with: 229665 Modified: head/sys/netinet/tcp_timewait.c Modified: head/sys/netinet/tcp_timewait.c ===

svn commit: r229673 - head

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Fri Jan 6 00:34:27 2012 New Revision: 229673 URL: http://svn.freebsd.org/changeset/base/229673 Log: Fix the broken non-cross compile build. Oops! Another pointy hat to:adrian, for stirring up more trouble. Modified: head/Makefile.inc1 Modified: head/Makefil

svn commit: r229675 - head/tools/bsdbox

2012-01-05 Thread Adrian Chadd
Author: adrian Date: Fri Jan 6 00:56:31 2012 New Revision: 229675 URL: http://svn.freebsd.org/changeset/base/229675 Log: Import the first cut of "bsdbox". This uses the existing crunchgen infrastructure to build a series of tools designed to replace the base and networking tools on an

svn commit: r229677 - in head/sys/mips: cavium cavium/cryptocteon include mips

2012-01-05 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Jan 6 01:23:26 2012 New Revision: 229677 URL: http://svn.freebsd.org/changeset/base/229677 Log: - Add better COP2 (crypto coprocessor) context handler for Octeon. Keep COP2 disabled and lazily allocate COP2 context structure in exception handler. Keep kernel

Re: svn commit: r229667 - head/usr.sbin/daemon

2012-01-05 Thread Doug Barton
On 01/05/2012 14:48, Guy Helmer wrote: > Allow daemon(8) to run pidfile_open() before relenquishing privileges > so pid files can be written in /var/run when started as root. I'm not sure how useful this is since when daemon is exiting it won't be able to remove the pid file (unless I'm missin

Re: svn commit: r229667 - head/usr.sbin/daemon

2012-01-05 Thread Garrett Cooper
On Thu, Jan 5, 2012 at 6:58 PM, Doug Barton wrote: > On 01/05/2012 14:48, Guy Helmer wrote: >>   Allow daemon(8) to run pidfile_open() before relenquishing privileges >>   so pid files can be written in /var/run when started as root. > > I'm not sure how useful this is since when daemon is exiting