Re: svn commit: r232321 - head/share/man/man9

2012-03-01 Thread Andriy Gapon
on 01/03/2012 09:21 Andrey Zonov said the following: On 01.03.2012 2:41, Andrew Thompson wrote: Author: thompsa Date: Wed Feb 29 22:41:40 2012 New Revision: 232321 URL: http://svn.freebsd.org/changeset/base/232321 Log: Correct the description for CTLFLAG_TUN and CTLFLAG_RDTUN, the

Re: svn commit: r232321 - head/share/man/man9

2012-03-01 Thread Andriy Gapon
on 01/03/2012 11:11 Andrey Zonov said the following: It doesn't make sense. For (CTLFLAG_RD|CTLFLAG_TUN) there is relevant code in sysctl(8), but for (CTLFLAG_RW|CTLFLAG_TUN) there is no any code, or did I miss something? In the existing code - no. But I would appreciate if e.g. sysctl -d

Re: svn commit: r232321 - head/share/man/man9

2012-03-01 Thread Andrey Zonov
On Thu, Mar 1, 2012 at 1:44 PM, Andriy Gapon a...@freebsd.org wrote: on 01/03/2012 11:11 Andrey Zonov said the following: It doesn't make sense.  For (CTLFLAG_RD|CTLFLAG_TUN) there is relevant code in sysctl(8), but for (CTLFLAG_RW|CTLFLAG_TUN) there is no any code, or did I miss something?

svn commit: r232329 - head/usr.bin/rctl

2012-03-01 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 1 10:21:10 2012 New Revision: 232329 URL: http://svn.freebsd.org/changeset/base/232329 Log: Use proper maxproc name, not nproc. PR: docs/162172 Modified: head/usr.bin/rctl/rctl.8 Modified: head/usr.bin/rctl/rctl.8

svn commit: r232331 - head/share/man/man9

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Thu Mar 1 11:03:39 2012 New Revision: 232331 URL: http://svn.freebsd.org/changeset/base/232331 Log: Document ifnet refcount. MFC after:1 week Modified: head/share/man/man9/ifnet.9 Modified: head/share/man/man9/ifnet.9

svn commit: r232333 - head/share/man/man9

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Thu Mar 1 12:03:52 2012 New Revision: 232333 URL: http://svn.freebsd.org/changeset/base/232333 Log: Document ifunit_ref function. MFC after:1 week Modified: head/share/man/man9/ifnet.9 Modified: head/share/man/man9/ifnet.9

svn commit: r232334 - head/share/man/man9

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Thu Mar 1 12:16:00 2012 New Revision: 232334 URL: http://svn.freebsd.org/changeset/base/232334 Log: Reflect that ifa_ifwithnet() gained ignore_ptp argument. MFC after:1 week Modified: head/share/man/man9/ifnet.9 Modified: head/share/man/man9/ifnet.9

svn commit: r232335 - head/share/man/man9

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Thu Mar 1 12:30:57 2012 New Revision: 232335 URL: http://svn.freebsd.org/changeset/base/232335 Log: Refine r232333 [1] and put note about ifnet refcount caller responsibility. Spotted by: gavin [1] MFC after:1 week Modified: head/share/man/man9/ifnet.9

svn commit: r232336 - head/share/man/man9

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Thu Mar 1 12:52:14 2012 New Revision: 232336 URL: http://svn.freebsd.org/changeset/base/232336 Log: Changes in ifaddr refcounting: ifa_refcnt IFAREF/IFAFREE macros moved to ifa_ref()/ifa_free() refcounting functions. MFC after:1 week Modified:

svn commit: r232337 - in head: share/man/man4 sys/conf sys/dev/sound/pci sys/modules/sound/driver sys/modules/sound/driver/hdspe

2012-03-01 Thread Alexander Motin
Author: mav Date: Thu Mar 1 13:10:18 2012 New Revision: 232337 URL: http://svn.freebsd.org/changeset/base/232337 Log: Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4). Cards are expensive and so rare, so leave the driver as module. Submitted by: Ruslan Bukin

svn commit: r232339 - head/lib/libc/uuid

2012-03-01 Thread Andrey V. Elsukov
Author: ae Date: Thu Mar 1 14:39:01 2012 New Revision: 232339 URL: http://svn.freebsd.org/changeset/base/232339 Log: Note that memory should be freed after uuid_to_string(3) call. MFC after:1 week Modified: head/lib/libc/uuid/uuid.3 Modified: head/lib/libc/uuid/uuid.3

svn commit: r232342 - head/lib/libjail

2012-03-01 Thread Jamie Gritton
Author: jamie Date: Thu Mar 1 15:09:41 2012 New Revision: 232342 URL: http://svn.freebsd.org/changeset/base/232342 Log: Handle the case where a boolean parameter is also a node. PR: bin/165515 MFC after:2 weeks Modified: head/lib/libjail/jail.c Modified:

Re: svn commit: r232317 - in head: . sys/kern sys/sys

2012-03-01 Thread John Baldwin
On Wednesday, February 29, 2012 6:44:47 pm Bjoern A. Zeeb wrote: On 29. Feb 2012, at 21:38 , Mikolaj Golub wrote: Author: trociny Date: Wed Feb 29 21:38:31 2012 New Revision: 232317 URL: http://svn.freebsd.org/changeset/base/232317 Log: Introduce VOP_UNP_BIND(),

svn commit: r232347 - head/sbin/ipfw

2012-03-01 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 1 17:35:16 2012 New Revision: 232347 URL: http://svn.freebsd.org/changeset/base/232347 Log: remove some write-only variables. There is another block of code that is now useless as the computation is done in the kernel. Modified: head/sbin/ipfw/dummynet.c

svn commit: r232350 - head/share/man/man9

2012-03-01 Thread Jaakko Heinonen
Author: jh Date: Thu Mar 1 18:17:45 2012 New Revision: 232350 URL: http://svn.freebsd.org/changeset/base/232350 Log: Since r199137 namei() returns EINVAL for DELETE and RENAME operations if the last component of the pathname is .. Reviewed by: kib MFC after:1 week Modified:

svn commit: r232351 - in head/sys: kern sys ufs/ffs ufs/ufs

2012-03-01 Thread Kirk McKusick
Author: mckusick Date: Thu Mar 1 18:45:25 2012 New Revision: 232351 URL: http://svn.freebsd.org/changeset/base/232351 Log: This change avoids a kernel deadlock on snaplk when using snapshots on UFS filesystems running with journaled soft updates. This is the first of several bugs that need

svn commit: r232353 - head/usr.bin/calendar/calendars

2012-03-01 Thread Davide Italiano
Author: davide Date: Thu Mar 1 19:17:56 2012 New Revision: 232353 URL: http://svn.freebsd.org/changeset/base/232353 Log: Replace the three spaces with one tag. Reported by: pjd Approved by: gnn (mentor) Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified:

Re: svn commit: r232347 - head/sbin/ipfw

2012-03-01 Thread Gleb Smirnoff
Luigi, On Thu, Mar 01, 2012 at 05:35:17PM +, Luigi Rizzo wrote: L Author: luigi L Date: Thu Mar 1 17:35:16 2012 L New Revision: 232347 L URL: http://svn.freebsd.org/changeset/base/232347 L L Log: L remove some write-only variables. L There is another block of code that is now useless

Re: svn commit: r232322 - in head: . gnu/usr.bin/cc/c++ gnu/usr.bin/cc/cc gnu/usr.bin/cc/cpp share/mk sys/conf tools/build/options usr.bin/clang/clang

2012-03-01 Thread John Baldwin
On Wednesday, February 29, 2012 5:58:52 pm Dimitry Andric wrote: Author: dim Date: Wed Feb 29 22:58:51 2012 New Revision: 232322 URL: http://svn.freebsd.org/changeset/base/232322 Log: Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that installs clang as

svn commit: r232355 - in head/release/doc: en_US.ISO8859-1/hardware share/misc

2012-03-01 Thread Christian Brueffer
Author: brueffer Date: Thu Mar 1 19:54:35 2012 New Revision: 232355 URL: http://svn.freebsd.org/changeset/base/232355 Log: Add snd_hdspe(4) to the hardware notes. Modified: head/release/doc/en_US.ISO8859-1/hardware/article.sgml head/release/doc/share/misc/dev.archlist.txt Modified:

svn commit: r232356 - in head/sys: arm/arm ia64/ia64 kern mips/mips powerpc/powerpc powerpc/ps3 sparc64/include sparc64/sparc64 sys x86/x86

2012-03-01 Thread John Baldwin
Author: jhb Date: Thu Mar 1 19:58:34 2012 New Revision: 232356 URL: http://svn.freebsd.org/changeset/base/232356 Log: - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned long for specifying a boundary constraint. - Change bus_dma tags to use bus_addr_t instead of

svn commit: r232357 - head/share/misc

2012-03-01 Thread Alex Kozlov
Author: ak (ports committer) Date: Thu Mar 1 20:03:44 2012 New Revision: 232357 URL: http://svn.freebsd.org/changeset/base/232357 Log: Add myself Approved by: itetcu (mentor) Modified: head/share/misc/committers-ports.dot Modified: head/share/misc/committers-ports.dot

svn commit: r232358 - head/sys/dev/usb/storage

2012-03-01 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 1 20:10:54 2012 New Revision: 232358 URL: http://svn.freebsd.org/changeset/base/232358 Log: Close a detach race. Make sure all pending CCB's get canceled at device detach. MFC after:1 week Modified: head/sys/dev/usb/storage/umass.c Modified:

svn commit: r232360 - in head: share/man/man9 sys/dev/pci

2012-03-01 Thread John Baldwin
Author: jhb Date: Thu Mar 1 20:20:55 2012 New Revision: 232360 URL: http://svn.freebsd.org/changeset/base/232360 Log: Add pci_save_state() and pci_restore_state() wrappers around pci_cfg_save() and pci_cfg_restore() for device drivers to use when saving and restoring state (e.g. to handle

Re: svn commit: r232322 - in head: . gnu/usr.bin/cc/c++ gnu/usr.bin/cc/cc gnu/usr.bin/cc/cpp share/mk sys/conf tools/build/options usr.bin/clang/clang

2012-03-01 Thread Dimitry Andric
On 2012-03-01 20:34, John Baldwin wrote: On Wednesday, February 29, 2012 5:58:52 pm Dimitry Andric wrote: Author: dim Date: Wed Feb 29 22:58:51 2012 New Revision: 232322 URL: http://svn.freebsd.org/changeset/base/232322 Log: Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by

svn commit: r232361 - head/sys/dev/usb/storage

2012-03-01 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 1 20:25:17 2012 New Revision: 232361 URL: http://svn.freebsd.org/changeset/base/232361 Log: Style change: Expand redundant #if's. Remove a couple of empty lines. MFC after:1 week Modified: head/sys/dev/usb/storage/umass.c Modified:

svn commit: r232362 - head/share/man/man9

2012-03-01 Thread John Baldwin
Author: jhb Date: Thu Mar 1 20:32:02 2012 New Revision: 232362 URL: http://svn.freebsd.org/changeset/base/232362 Log: Sort function prototypes. Modified: head/share/man/man9/pci.9 Modified: head/share/man/man9/pci.9

svn commit: r232363 - head/share/man/man9

2012-03-01 Thread John Baldwin
Author: jhb Date: Thu Mar 1 20:36:50 2012 New Revision: 232363 URL: http://svn.freebsd.org/changeset/base/232363 Log: Update the documentation on pci_get/set_powerstate(). These methods are not ACPI-specific at all, but deal with PCI power states. Also, pci_set_powerstate() fails with

Re: svn commit: r232322 - in head: . gnu/usr.bin/cc/c++ gnu/usr.bin/cc/cc gnu/usr.bin/cc/cpp share/mk sys/conf tools/build/options usr.bin/clang/clang

2012-03-01 Thread John Baldwin
On Thursday, March 01, 2012 3:22:27 pm Dimitry Andric wrote: On 2012-03-01 20:34, John Baldwin wrote: On Wednesday, February 29, 2012 5:58:52 pm Dimitry Andric wrote: Author: dim Date: Wed Feb 29 22:58:51 2012 New Revision: 232322 URL: http://svn.freebsd.org/changeset/base/232322

svn commit: r232364 - head/tools/regression/usb

2012-03-01 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 1 20:45:17 2012 New Revision: 232364 URL: http://svn.freebsd.org/changeset/base/232364 Log: Add regression test for USB enumeration. MFC after:1 week Added: head/tools/regression/usb/ head/tools/regression/usb/usb_enum.t (contents, props changed)

svn commit: r232365 - head/sys/dev/iicbus

2012-03-01 Thread Alexander Kabaev
Author: kan Date: Thu Mar 1 20:58:20 2012 New Revision: 232365 URL: http://svn.freebsd.org/changeset/base/232365 Log: Provide pre/post transfer method callbacks for icbbb clients. These are helful when making certain drivers work on both Linux and FreeBSD without changing the code

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

2012-03-01 Thread Davide Italiano
Author: davide Date: Thu Mar 1 21:23:26 2012 New Revision: 232366 URL: http://svn.freebsd.org/changeset/base/232366 Log: - Add support for the Intel Sandy Bridge microarchitecture (both core and uncore counting events) - New manpages with event lists. - Add MSRs for the Intel Sandy Bridge

Re: svn commit: r226967 - head/sys/ufs/ufs

2012-03-01 Thread John Baldwin
On Monday, October 31, 2011 11:01:47 am Peter Holm wrote: Author: pho Date: Mon Oct 31 15:01:47 2011 New Revision: 226967 URL: http://svn.freebsd.org/changeset/base/226967 Log: The kern_renameat() looks up the fvp using the DELETE flag, which causes the removal of the name cache entry

Re: svn commit: r232181 - in head/sys: kern sys

2012-03-01 Thread Julian Elischer
On 2/29/12 7:33 AM, Konstantin Belousov wrote: On Wed, Feb 29, 2012 at 09:36:02AM -0500, John Baldwin wrote: On Wednesday, February 29, 2012 8:25:07 am Konstantin Belousov wrote: On Wed, Feb 29, 2012 at 02:37:25PM +0200, Mikolaj Golub wrote: On Wed, 29 Feb 2012 12:03:00 + Robert N. M.

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

2012-03-01 Thread John Baldwin
Author: jhb Date: Thu Mar 1 22:13:10 2012 New Revision: 232367 URL: http://svn.freebsd.org/changeset/base/232367 Log: Properly handle failures in igb_setup_msix() by returning 0 if MSI or MSI-X allocation fails. Reviewed by: jfv MFC after:2 weeks Modified:

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

2012-03-01 Thread Tijl Coosemans
On Wednesday 29 February 2012 00:26:43 Bruce Evans wrote: On Tue, 28 Feb 2012, Tijl Coosemans wrote: Log: Copy amd64 _types.h to x86 and merge with i386 _types.h. Replace existing amd64/i386/pc98 _types.h with stubs. I don't like this much. It gives 2 layers of convolutions for readers

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

2012-03-01 Thread Tijl Coosemans
On Wednesday 29 February 2012 08:44:54 Bruce Evans wrote: On Wed, 29 Feb 2012, Bruce Evans wrote: I cleaned this up a bit according to ideas in my previous mails, and added a comment about the confusing use of __bswap64_const() (now named __bswap64_gen()) in __bswap64_var(): A minor problem

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

2012-03-01 Thread Tijl Coosemans
On Wednesday 29 February 2012 06:01:36 Bruce Evans wrote: On Tue, 28 Feb 2012, Tijl Coosemans wrote: Log: Copy amd64 setjmp.h to x86 and replace amd64/i386/pc98 setjmp.h with stubs. This may be correct (except for comment), but it is confusing. Added: head/sys/x86/include/setjmp.h

Re: svn commit: r226967 - head/sys/ufs/ufs

2012-03-01 Thread Peter Holm
On Thu, Mar 01, 2012 at 04:47:41PM -0500, John Baldwin wrote: On Monday, October 31, 2011 11:01:47 am Peter Holm wrote: Author: pho Date: Mon Oct 31 15:01:47 2011 New Revision: 226967 URL: http://svn.freebsd.org/changeset/base/226967 Log: The kern_renameat() looks up the fvp

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

2012-03-01 Thread Bruce Evans
On Thu, 1 Mar 2012, Tijl Coosemans wrote: On Wednesday 29 February 2012 08:44:54 Bruce Evans wrote: ... So any macro version must use gcc features to be safe. The following seems to work: #define __bswap16(x)__extension__ ({ __uint16_t __x = x; (__uint16_t)(__x 8 | __x 8); })

svn commit: r232373 - head/sys/net80211

2012-03-01 Thread Adrian Chadd
Author: adrian Date: Fri Mar 2 02:53:43 2012 New Revision: 232373 URL: http://svn.freebsd.org/changeset/base/232373 Log: Attempt to catch scan cancellations at exactly the wrong time from occuring. The scan code unlocks the comlock and calls into the driver. It then assumes the state

svn commit: r232374 - head/sys/dev/ath

2012-03-01 Thread Adrian Chadd
Author: adrian Date: Fri Mar 2 02:57:10 2012 New Revision: 232374 URL: http://svn.freebsd.org/changeset/base/232374 Log: Wrap the scan code state change stuff behind ATH_LOCK and the PCU fiddling behind the PCU lock. sc_scanning is being checked without ATH_LOCK behind held and could

svn commit: r232375 - head/sys/dev/ath

2012-03-01 Thread Adrian Chadd
Author: adrian Date: Fri Mar 2 03:11:53 2012 New Revision: 232375 URL: http://svn.freebsd.org/changeset/base/232375 Log: Wrap another ATH_LOCK around the scanning flag. PR: kern/163318 Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c

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

2012-03-01 Thread Bruce Evans
On Thu, 1 Mar 2012, Tijl Coosemans wrote: On Wednesday 29 February 2012 06:01:36 Bruce Evans wrote: ... Here is what current arches have in their machine/setjmp.h: amd64, i386: not much arm: has lots of comments and register offsets. These are defined as _JB_REG_* so they aren't

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

2012-03-01 Thread Bruce Evans
On Thu, 1 Mar 2012, Tijl Coosemans wrote: On Wednesday 29 February 2012 00:26:43 Bruce Evans wrote: The __clock_t case is a perfect example of how duplication leads to differentiation and differentiation to portability issues. Currently clock(3) only starts to return negative values after

svn commit: r232376 - head/release/doc/en_US.ISO8859-1/hardware

2012-03-01 Thread Alexander Motin
Author: mav Date: Fri Mar 2 05:16:53 2012 New Revision: 232376 URL: http://svn.freebsd.org/changeset/base/232376 Log: Add ahci(4) and siis(4) to the hardware notes. MFC after:1 week Modified: head/release/doc/en_US.ISO8859-1/hardware/article.sgml Modified:

svn commit: r232377 - head/lib/libpmc

2012-03-01 Thread Sergey Kandaurov
Author: pluknet Date: Fri Mar 2 05:55:45 2012 New Revision: 232377 URL: http://svn.freebsd.org/changeset/base/232377 Log: Kill EoL whitespaces, and minor lint. Modified: head/lib/libpmc/pmc.sandybridge.3 head/lib/libpmc/pmc.sandybridgeuc.3 Modified: head/lib/libpmc/pmc.sandybridge.3

Re: svn commit: r232339 - head/lib/libc/uuid

2012-03-01 Thread Sergey Kandaurov
On 1 March 2012 18:39, Andrey V. Elsukov a...@freebsd.org wrote: Author: ae Date: Thu Mar  1 14:39:01 2012 New Revision: 232339 URL: http://svn.freebsd.org/changeset/base/232339 Log:  Note that memory should be freed after uuid_to_string(3) call.  MFC after:    1 week PR:

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

2012-03-01 Thread Julian Elischer
On 3/1/12 9:10 PM, Bruce Evans wrote: Grepping for clock_t shows some nice bugs in pthread_condattr(3). It declares some parameters as clock_t * restrict clock_id and clock_t clock_id. This is nonsense, since clock ids aren't clock ticks. POSIX specifies correct declarations clockid_t *

svn commit: r232378 - head/sys/netinet6

2012-03-01 Thread Hiroki Sato
Author: hrs Date: Fri Mar 2 07:22:04 2012 New Revision: 232378 URL: http://svn.freebsd.org/changeset/base/232378 Log: Remove a redundant check. Modified: head/sys/netinet6/nd6.c Modified: head/sys/netinet6/nd6.c ==

svn commit: r232379 - head/sys/netinet6

2012-03-01 Thread Hiroki Sato
Author: hrs Date: Fri Mar 2 07:23:28 2012 New Revision: 232379 URL: http://svn.freebsd.org/changeset/base/232379 Log: Allow to configure net.inet6.ip6.{accept_rtadv,no_radr} by the loader tunables as well because they have to be configured before interface initialization for AF_INET6.