svn commit: r229375 - head/sys/dev/iwn

2012-01-03 Thread Bernhard Schmidt
Author: bschmidt Date: Tue Jan 3 09:42:31 2012 New Revision: 229375 URL: http://svn.freebsd.org/changeset/base/229375 Log: Don't rely on MCS7 being at index 7 while determining the amount of antennas to use. Not all APs enable all MCS rates. Poked by: Lucius Windschuh lwindschuh at

svn commit: r229379 - head/sys/dev/uart

2012-01-03 Thread Kevin Lo
Author: kevlo Date: Tue Jan 3 10:01:12 2012 New Revision: 229379 URL: http://svn.freebsd.org/changeset/base/229379 Log: Add support for Intel EG20T serial ports Modified: head/sys/dev/uart/uart_bus_pci.c Modified: head/sys/dev/uart/uart_bus_pci.c

svn commit: r229384 - head/usr.sbin/quotaon

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:08:58 2012 New Revision: 229384 URL: http://svn.freebsd.org/changeset/base/229384 Log: Simply use getprogname() to obtain the name of the process. Modified: head/usr.sbin/quotaon/quotaon.c Modified: head/usr.sbin/quotaon/quotaon.c

svn commit: r229385 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:10:15 2012 New Revision: 229385 URL: http://svn.freebsd.org/changeset/base/229385 Log: Fix subtle typo: compare against idx -- not index. In this contest, index refers to the index(3) function. In this case it doesn't really harm, as this function is never

svn commit: r229386 - head/usr.bin/talk

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:13:07 2012 New Revision: 229386 URL: http://svn.freebsd.org/changeset/base/229386 Log: Remove hand-written version of strcspn(). The code searches for the first occurence of @, : or !. Upon failure, it returns the index of \0. This is exactly what strcspn()

Re: svn commit: r229368 - in head: lib/libc lib/libc/arm/string lib/libc/i386/string lib/libc/mips/string lib/libc/string lib/libstand sys/boot/userboot/libstand

2012-01-03 Thread Bruce Evans
On Tue, 3 Jan 2012, Ed Schouten wrote: Log: Merge index() and strchr() together. As I looked through the C library, I noticed the FreeBSD MIPS port has a hand-written version of index(). This is nice, if it weren't for the fact that most applications call strchr() instead. Also, on the

Re: svn commit: r229198 - in head: share/man/man9 sys/conf sys/libkern sys/sys

2012-01-03 Thread Pawel Jakub Dawidek
On Sun, Jan 01, 2012 at 08:26:11PM +, Ed Schouten wrote: Author: ed Date: Sun Jan 1 20:26:11 2012 New Revision: 229198 URL: http://svn.freebsd.org/changeset/base/229198 Log: Introducing memcchr(3). It seems two of the file system drivers we have in the tree, namely ufs and

svn commit: r229390 - in head/sys: netinet netinet6

2012-01-03 Thread John Baldwin
Author: jhb Date: Tue Jan 3 16:22:29 2012 New Revision: 229390 URL: http://svn.freebsd.org/changeset/base/229390 Log: Use TAILQ_FOREACH() instead of TAILQ_FOREACH_SAFE() for some loops that do not modify the queues they iterate over. Submitted by: glebius Modified:

svn commit: r229395 - head/sys/cam/scsi

2012-01-03 Thread Alexander Motin
Author: mav Date: Tue Jan 3 17:04:09 2012 New Revision: 229395 URL: http://svn.freebsd.org/changeset/base/229395 Log: Add support for CDRIOCGETBLOCKSIZE and CDRIOCSETBLOCKSIZE IOCTLs to control sector size same as acd driver does. Together with r228808 and r228847 this allows existing

svn commit: r229400 - head/sys

2012-01-03 Thread John Baldwin
Author: jhb Date: Tue Jan 3 17:31:27 2012 New Revision: 229400 URL: http://svn.freebsd.org/changeset/base/229400 Log: Improve the cscope target's handling of MD directories. Automatically include the MACHINE_CPUARCH directory if it differents from MACHINE when building an index for a

Re: svn commit: r229368 - in head: lib/libc lib/libc/arm/string lib/libc/i386/string lib/libc/mips/string lib/libc/string lib/libstand sys/boot/userboot/libstand

2012-01-03 Thread Ed Schouten
Hi Bruce, * Bruce Evans b...@optusnet.com.au, 20120103 16:49: This breaks the Standard C namespace. When they are in the same object file, there is no way to get the standard name without getting the nonstandard name. So the following C-standard-conforming C program now gets a linkage error

svn commit: r229401 - head/sys/dev/if_ndis

2012-01-03 Thread Dimitry Andric
Author: dim Date: Tue Jan 3 18:40:41 2012 New Revision: 229401 URL: http://svn.freebsd.org/changeset/base/229401 Log: In sys/dev/if_ndis/if_ndis_pccard.c, fix a bug where a garbage rid was passed to resource_list_add(). The rid that was just returned by bus_alloc_resource_any() should

svn commit: r229402 - head/sys/compat/linux

2012-01-03 Thread Dimitry Andric
Author: dim Date: Tue Jan 3 18:49:39 2012 New Revision: 229402 URL: http://svn.freebsd.org/changeset/base/229402 Log: In sys/compat/linux/linux_ioctl.c, work around a warning when a pointer is compared to an integer, by casting the pointer to l_uintptr_t. No functional difference on both

svn commit: r229403 - in head: games/fortune/fortune lib/libc/gen lib/libc/net lib/libcam lib/libstand lib/libutil libexec/mknetid libexec/rlogind sbin/bsdlabel sbin/dump sbin/fsck_ffs sbin/ipfw sb...

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 18:51:58 2012 New Revision: 229403 URL: http://svn.freebsd.org/changeset/base/229403 Log: Replace index() and rindex() calls with strchr() and strrchr(). The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently

svn commit: r229407 - head/sys/fs/ntfs

2012-01-03 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 3 19:09:01 2012 New Revision: 229407 URL: http://svn.freebsd.org/changeset/base/229407 Log: Minor cleanups to ntfs code bzero - memset rename variables to avoid shadowing. PR: 142401 Obtained from:NetBSD Approved by jhb (mentor)

svn commit: r229408 - head/sys/mips/cavium/usb

2012-01-03 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Jan 3 19:10:37 2012 New Revision: 229408 URL: http://svn.freebsd.org/changeset/base/229408 Log: - Octeon-SDK strictly requires multi_count to be zero for full and low speed devices. Modified: head/sys/mips/cavium/usb/octusb.c Modified:

svn commit: r229413 - in head/contrib/compiler-rt: . lib

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 19:41:36 2012 New Revision: 229413 URL: http://svn.freebsd.org/changeset/base/229413 Log: Import compiler-rt r147467. The compiler-rt shipped with FreeBSD is now based on unmodified upstream sources. Modified: head/contrib/compiler-rt/LICENSE.TXT

svn commit: r229414 - head/sys/netinet6

2012-01-03 Thread John Baldwin
Author: jhb Date: Tue Jan 3 19:44:36 2012 New Revision: 229414 URL: http://svn.freebsd.org/changeset/base/229414 Log: Grab a reference on the matching interface address (ifa) in the handling of the SIOC[DG]LIFADDR icotls before dropping the IF_ADDR_LOCK() and release the reference after

svn commit: r229415 - head/lib/libvgl

2012-01-03 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 3 19:47:32 2012 New Revision: 229415 URL: http://svn.freebsd.org/changeset/base/229415 Log: Integrate the line drawing algorithm from the book Graphic Gems 1. http://www.graphicsgems.org/ At the time it claimed to be 3-4 times faster than the traditional

svn commit: r229416 - head/sys/dev/tws

2012-01-03 Thread Xin LI
Author: delphij Date: Tue Jan 3 20:17:35 2012 New Revision: 229416 URL: http://svn.freebsd.org/changeset/base/229416 Log: Don't forget to release queue lock when allocation of memory failed. Submitted by: Sascha Wildner saw online de Obtained from:DragonFly MFC after:2

svn commit: r229423 - head/sys/dev/qlxgb

2012-01-03 Thread Dimitry Andric
Author: dim Date: Tue Jan 3 20:51:26 2012 New Revision: 229423 URL: http://svn.freebsd.org/changeset/base/229423 Log: In sys/dev/qlxgb/qla_misc.c, fix a copy/paste issue. Clang complained the variable 'val' was uninitialized when used. Instead, 'sig' should have been printed.

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

2012-01-03 Thread Dimitry Andric
Author: dim Date: Tue Jan 3 20:53:07 2012 New Revision: 229425 URL: http://svn.freebsd.org/changeset/base/229425 Log: In sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c, check the the number of links against LINK_MAX (which is INT16_MAX), not against UINT32_MAX. Otherwise, the

svn commit: r229427 - head/sys/x86/acpica

2012-01-03 Thread John Baldwin
Author: jhb Date: Tue Jan 3 20:53:58 2012 New Revision: 229427 URL: http://svn.freebsd.org/changeset/base/229427 Log: Fix a few bugs in the SRAT parsing code: - Actually increment ndomain when building our list of known domains so that we can properly renumber them to be 0-based and

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

2012-01-03 Thread Konstantin Belousov
Author: kib Date: Tue Jan 3 21:03:20 2012 New Revision: 229428 URL: http://svn.freebsd.org/changeset/base/229428 Log: Document the state of the lowervp vnode for null_nodeget(). Tested by:pho MFC after:1 week Modified: head/sys/fs/nullfs/null_subr.c Modified:

svn commit: r229429 - head/sys/kern

2012-01-03 Thread John Baldwin
Author: jhb Date: Tue Jan 3 21:03:28 2012 New Revision: 229429 URL: http://svn.freebsd.org/changeset/base/229429 Log: Some small fixes to CPU accounting for threads: - Only initialize the per-cpu switchticks and switchtime in sched_throw() for the very first context switch on APs during

svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 3 21:04:54 2012 New Revision: 229430 URL: http://svn.freebsd.org/changeset/base/229430 Log: Replace a GPL'd header in the emu10k1 snd driver code. This brings in the emuxkireg.h from NetBSD (dev/pci) which is used for the same purpose but is smaller. The

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

2012-01-03 Thread Konstantin Belousov
Author: kib Date: Tue Jan 3 21:09:07 2012 New Revision: 229431 URL: http://svn.freebsd.org/changeset/base/229431 Log: Do the vput() for the lowervp in the null_nodeget() for error case too. Several callers of null_nodeget() did the cleanup itself, but several missed it, most prominent

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread John Baldwin
On Tuesday, January 03, 2012 4:04:54 pm Pedro F. Giffuni wrote: Author: pfg Date: Tue Jan 3 21:04:54 2012 New Revision: 229430 URL: http://svn.freebsd.org/changeset/base/229430 Log: Replace a GPL'd header in the emu10k1 snd driver code. This brings in the emuxkireg.h from NetBSD

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Ed Schouten
Hi John, * John Baldwin j...@freebsd.org, 20120103 22:15: Is this a common-enough chipset to enable in GENERIC now that it is safe to do so? I would guess so, especially on i386 boxes. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpuD7CcMV2dh.pgp Description: PGP signature

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Pedro Giffuni
Hi; --- Mar 3/1/12, John Baldwin j...@freebsd.org ha scritto: ... On Tuesday, January 03, 2012 4:04:54 pm Pedro F. Giffuni wrote: Author: pfg Date: Tue Jan  3 21:04:54 2012 New Revision: 229430 URL: http://svn.freebsd.org/changeset/base/229430 Log:    Replace a GPL'd header in the

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Garrett Cooper
On Tue, Jan 3, 2012 at 2:16 PM, Pedro Giffuni p...@freebsd.org wrote: Hi; --- Mar 3/1/12, John Baldwin j...@freebsd.org ha scritto: ... On Tuesday, January 03, 2012 4:04:54 pm Pedro F. Giffuni wrote: Author: pfg Date: Tue Jan  3 21:04:54 2012 New Revision: 229430 URL:

svn commit: r229436 - head/tools/tools/net80211/wesside/wesside

2012-01-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Jan 3 22:52:29 2012 New Revision: 229436 URL: http://svn.freebsd.org/changeset/base/229436 Log: Fix an obvious typo. We do want to specify file permission when we pass O_CREAT. Modified: head/tools/tools/net80211/wesside/wesside/wesside.c Modified:

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Pedro Giffuni
--- Mar 3/1/12, Garrett Cooper yaneg...@gmail.com ha scritto: ... Can the same be done for emu10kx ? No :(. The two extra headers are GPL'd and the author doesn't want to hear about BSDs. Someday it would be nice to have xfi support in the tree, but that's a missing driver that even the

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Garrett Cooper
On Tue, Jan 3, 2012 at 2:44 PM, Pedro Giffuni p...@freebsd.org wrote: --- Mar 3/1/12, Garrett Cooper yaneg...@gmail.com ha scritto: ... Can the same be done for emu10kx ? No :(. The two extra headers are GPL'd and the author doesn't want to hear about BSDs. Someday it would be nice to

svn commit: r229459 - head/lib/libc/sys

2012-01-03 Thread Xin LI
Author: delphij Date: Wed Jan 4 02:04:20 2012 New Revision: 229459 URL: http://svn.freebsd.org/changeset/base/229459 Log: Document the fact that chroot(2) is no longer part of POSIX since SUSv3 and add a SECURITY CONSIDERATIONS section for recommended practices. Modified:

svn commit: r229463 - head/sys/boot/pc98/libpc98

2012-01-03 Thread Takahashi Yoshihiro
Author: nyan Date: Wed Jan 4 03:54:30 2012 New Revision: 229463 URL: http://svn.freebsd.org/changeset/base/229463 Log: MFi386: revision 229435 Add special loader environment variables 'comconsole_port' and 'comconsole_pcidev'. MFC after:2 weeks Modified:

svn commit: r229464 - head/sys/dev/flash

2012-01-03 Thread Adrian Chadd
Author: adrian Date: Wed Jan 4 04:17:03 2012 New Revision: 229464 URL: http://svn.freebsd.org/changeset/base/229464 Log: Add a couple more SPI flash device IDs found in commercial consumer wireless kit. Submitted by: Stefan Bethke s...@lassitu.de Modified: head/sys/dev/flash/mx25l.c

svn commit: r229465 - head/sys/netinet6

2012-01-03 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 4 07:01:23 2012 New Revision: 229465 URL: http://svn.freebsd.org/changeset/base/229465 Log: Use correct locking when traversing interface address list. Reviewed by: bz Modified: head/sys/netinet6/in6.c Modified: head/sys/netinet6/in6.c

svn commit: r229466 - head/usr.sbin/mptable

2012-01-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jan 4 07:04:43 2012 New Revision: 229466 URL: http://svn.freebsd.org/changeset/base/229466 Log: Add an missing argument to open(2). If O_CREAT flag is specified, file permission has to be specified as well. Modified: head/usr.sbin/mptable/mptable.c Modified:

svn commit: r229467 - head/usr.sbin/uhsoctl

2012-01-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jan 4 07:21:37 2012 New Revision: 229467 URL: http://svn.freebsd.org/changeset/base/229467 Log: Add an missing argument to open(2). If O_CREAT flag is specified, file permission has to be specified as well. Modified: head/usr.sbin/uhsoctl/uhsoctl.c Modified:

svn commit: r229468 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io

2012-01-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jan 4 07:25:10 2012 New Revision: 229468 URL: http://svn.freebsd.org/changeset/base/229468 Log: Add missing file permission to open(O_CREAT) call. This doesn't really matter here, as we open /dev/null for test purposes, but it is useful for consistency and further

svn commit: r229469 - head/sys/dev/hwpmc

2012-01-03 Thread Fabien Thomas
Author: fabient Date: Wed Jan 4 07:33:06 2012 New Revision: 229469 URL: http://svn.freebsd.org/changeset/base/229469 Log: Add missing MSR programming for some events. Submitted by: Davide Italiano davide.itali...@gmail.com MFC after:3 days Modified:

svn commit: r229470 - in head: lib/libpmc sys/dev/hwpmc

2012-01-03 Thread Fabien Thomas
Author: fabient Date: Wed Jan 4 07:58:36 2012 New Revision: 229470 URL: http://svn.freebsd.org/changeset/base/229470 Log: Update PMC events from October 2011 Intel documentation. Submitted by: Davide Italiano davide.itali...@gmail.com MFC after:3 days Modified: