Re: svn commit: r244765 - in head/sys: kern tools

2012-12-27 Thread Juli Mallett
Seems like uintmax_t and %ju might be better? At least, truncating a syscall arg to a pointer seems like it could be misleading (e.g. on MIPS n32, even though it's an abomination.) On Thu, Dec 27, 2012 at 10:52 PM, Oleksandr Tymoshenko wrote: > Author: gonzo > Date: Fri Dec 28 06:52:53 2012 > Ne

svn commit: r244767 - head/sys/dev/ath/ath_hal/ar5416

2012-12-27 Thread Adrian Chadd
Author: adrian Date: Fri Dec 28 07:49:45 2012 New Revision: 244767 URL: http://svnweb.freebsd.org/changeset/base/244767 Log: Add radar_bin_thresh_sel (bit 24:26), which defines when to consider the radar FFT report bins as "strong". Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416phy.h Mod

svn commit: r244765 - in head/sys: kern tools

2012-12-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Dec 28 06:52:53 2012 New Revision: 244765 URL: http://svnweb.freebsd.org/changeset/base/244765 Log: Fix build on ARM (and probably other platforms) Modified: head/sys/kern/subr_syscall.c head/sys/tools/vnode_if.awk Modified: head/sys/kern/subr_syscall.c

Re: svn commit: r244752 - head/sys/net

2012-12-27 Thread Pawel Jakub Dawidek
On Thu, Dec 27, 2012 at 09:26:09PM +, Andrey V. Elsukov wrote: > Author: ae > Date: Thu Dec 27 21:26:08 2012 > New Revision: 244752 > URL: http://svnweb.freebsd.org/changeset/base/244752 > > Log: > Add an ability to set net.link.stf.permit_rfc1918 from the loader. I added (very recently) CT

Re: svn commit: r244747 - head/lib/libutil

2012-12-27 Thread Pawel Jakub Dawidek
On Thu, Dec 27, 2012 at 08:47:34PM +, Baptiste Daroussin wrote: > Author: bapt > Date: Thu Dec 27 20:47:34 2012 > New Revision: 244747 > URL: http://svnweb.freebsd.org/changeset/base/244747 > > Log: > avoid arithmetic on uintptr_t /* point dst after the end of all the gr_mem pointer

svn commit: r244762 - head/sys/arm/broadcom/bcm2835

2012-12-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Dec 28 03:18:05 2012 New Revision: 244762 URL: http://svnweb.freebsd.org/changeset/base/244762 Log: Add makeshift implementation for framebuffer console's cursor Basically it's replica of VersatilePB code which is replica of XBox FB code. All of them are linear fra

Re: svn commit: r244758 - head/sys/arm/broadcom/bcm2835

2012-12-27 Thread Oleksandr Tymoshenko
On 12/27/2012 5:38 PM, Oleksandr Tymoshenko wrote: Author: gonzo Date: Fri Dec 28 01:38:43 2012 New Revision: 244758 URL: http://svnweb.freebsd.org/changeset/base/244758 Log: Fix event timer on Raspberry Pi - Disable interrupt when updating compare value in order to make this op

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

2012-12-27 Thread Oleksandr Tymoshenko
On 12/18/2012 1:59 AM, Alan Cox wrote: On 12/17/2012 23:40, Oleksandr Tymoshenko wrote: On 2012-12-08, at 1:21 PM, Alan Cox wrote: On 12/08/2012 14:32, Andre Oppermann wrote: .. skipped .. The trouble seems to come from NSFBUFS which is (512 + maxusers * 16) resulting in a kernel map of (5

svn commit: r244760 - head/sys/kern

2012-12-27 Thread David Xu
Author: davidxu Date: Fri Dec 28 02:43:33 2012 New Revision: 244760 URL: http://svnweb.freebsd.org/changeset/base/244760 Log: Use strlcpy to NULL-terminate error message even if user provided a short buffer. Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c ==

Re: svn commit: r244445 - in head/sys: kern sys tools

2012-12-27 Thread Oleksandr Tymoshenko
On 12/27/2012 6:29 PM, Konstantin Belousov wrote: On Thu, Dec 27, 2012 at 06:25:34PM -0800, Oleksandr Tymoshenko wrote: On 12/27/2012 6:14 PM, Konstantin Belousov wrote: On Thu, Dec 27, 2012 at 06:03:26PM -0800, Oleksandr Tymoshenko wrote: On 12/19/2012 12:10 PM, Jeff Roberson wrote: Author:

Re: svn commit: r244445 - in head/sys: kern sys tools

2012-12-27 Thread Konstantin Belousov
On Thu, Dec 27, 2012 at 06:25:34PM -0800, Oleksandr Tymoshenko wrote: > On 12/27/2012 6:14 PM, Konstantin Belousov wrote: > > On Thu, Dec 27, 2012 at 06:03:26PM -0800, Oleksandr Tymoshenko wrote: > >> On 12/19/2012 12:10 PM, Jeff Roberson wrote: > >>> Author: jeff > >>> Date: Wed Dec 19 20:10:00 20

Re: svn commit: r244445 - in head/sys: kern sys tools

2012-12-27 Thread Oleksandr Tymoshenko
On 12/27/2012 6:14 PM, Konstantin Belousov wrote: On Thu, Dec 27, 2012 at 06:03:26PM -0800, Oleksandr Tymoshenko wrote: On 12/19/2012 12:10 PM, Jeff Roberson wrote: Author: jeff Date: Wed Dec 19 20:10:00 2012 New Revision: 25 URL: http://svnweb.freebsd.org/changeset/base/25 Log: -

Re: svn commit: r244445 - in head/sys: kern sys tools

2012-12-27 Thread Konstantin Belousov
On Thu, Dec 27, 2012 at 06:03:26PM -0800, Oleksandr Tymoshenko wrote: > On 12/19/2012 12:10 PM, Jeff Roberson wrote: > > Author: jeff > > Date: Wed Dec 19 20:10:00 2012 > > New Revision: 25 > > URL: http://svnweb.freebsd.org/changeset/base/25 > > > > Log: > > - Add new machine parsable

Re: svn commit: r244445 - in head/sys: kern sys tools

2012-12-27 Thread Oleksandr Tymoshenko
On 12/19/2012 12:10 PM, Jeff Roberson wrote: Author: jeff Date: Wed Dec 19 20:10:00 2012 New Revision: 25 URL: http://svnweb.freebsd.org/changeset/base/25 Log: - Add new machine parsable KTR macros for timing events. - Use this new format to automatically handle syscalls and VOPs

svn commit: r244758 - head/sys/arm/broadcom/bcm2835

2012-12-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Dec 28 01:38:43 2012 New Revision: 244758 URL: http://svnweb.freebsd.org/changeset/base/244758 Log: Fix event timer on Raspberry Pi - Disable interrupt when updating compare value in order to make this operation atomical - Increase minimum period for event

svn commit: r244757 - head/lib/libc/nls

2012-12-27 Thread Xin LI
Author: delphij Date: Fri Dec 28 01:23:12 2012 New Revision: 244757 URL: http://svnweb.freebsd.org/changeset/base/244757 Log: Add derived versions for common Simplified Chinese encodings. MFC after:2 weeks Added: head/lib/libc/nls/zh_CN.GB18030.msg - copied, changed from r244756

svn commit: r244756 - head/lib/libc/nls

2012-12-27 Thread Xin LI
Author: delphij Date: Fri Dec 28 01:09:30 2012 New Revision: 244756 URL: http://svnweb.freebsd.org/changeset/base/244756 Log: Add zh_CN.UTF-8 catalog. Reviewed by: alphachi MFC after:2 weeks Added: head/lib/libc/nls/zh_CN.UTF-8.msg (contents, props changed) Modified: head/lib

svn commit: r244755 - head/sys/arm/versatile

2012-12-27 Thread Oleksandr Tymoshenko
Author: gonzo Date: Fri Dec 28 00:55:43 2012 New Revision: 244755 URL: http://svnweb.freebsd.org/changeset/base/244755 Log: Add custom renderer for poor man's cursor support for framebuffer console Modified: head/sys/arm/versatile/versatile_clcd.c Modified: head/sys/arm/versatile/versatile_c

Re: svn commit: r244663 - stable/9

2012-12-27 Thread Adrian Chadd
It's an interesting discussion to have (after the new year, of course.) I understand that we sometimes have to change ABIs because we can't fix problems otherwise. However, I don't recall seeing much/any discussion about this. If it appeared on a list that I didn't spot then cool. But any kind of

svn commit: r244752 - head/sys/net

2012-12-27 Thread Andrey V. Elsukov
Author: ae Date: Thu Dec 27 21:26:08 2012 New Revision: 244752 URL: http://svnweb.freebsd.org/changeset/base/244752 Log: Add an ability to set net.link.stf.permit_rfc1918 from the loader. MFC after:2 weeks Modified: head/sys/net/if_stf.c Modified: head/sys/net/if_stf.c =

svn commit: r244750 - in head: share/man/man4 sys/net

2012-12-27 Thread Andrey V. Elsukov
Author: ae Date: Thu Dec 27 20:59:22 2012 New Revision: 244750 URL: http://svnweb.freebsd.org/changeset/base/244750 Log: Add net.link.stf.permit_rfc1918 sysctl variable. It can be used to allow the use of private IPv4 addresses with stf(4). MFC after:2 weeks Modified: head/share/ma

svn commit: r244747 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 20:47:34 2012 New Revision: 244747 URL: http://svnweb.freebsd.org/changeset/base/244747 Log: avoid arithmetic on uintptr_t Submitted by: pjd Reviewed by: jilles Modified: head/lib/libutil/gr_util.c Modified: head/lib/libutil/gr_util.c ===

svn commit: r244745 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 20:31:12 2012 New Revision: 244745 URL: http://svnweb.freebsd.org/changeset/base/244745 Log: cast to uintptr_t to properly calculate offset Reported by: mdf Submitted by: db Modified: head/lib/libutil/gr_util.c Modified: head/lib/libutil/gr_util.c ==

Re: svn commit: r244735 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
On Thu, Dec 27, 2012 at 09:21:13PM +0100, Jilles Tjoelker wrote: > On Thu, Dec 27, 2012 at 02:09:50PM +, Baptiste Daroussin wrote: > > Author: bapt > > Date: Thu Dec 27 14:09:50 2012 > > New Revision: 244735 > > URL: http://svnweb.freebsd.org/changeset/base/244735 > > > Log: > > Use flopen(3

svn commit: r244744 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 20:24:44 2012 New Revision: 244744 URL: http://svnweb.freebsd.org/changeset/base/244744 Log: Add O_CLOEXEC to flopen Requested by: jilles Modified: head/lib/libutil/gr_util.c head/lib/libutil/pw_util.c Modified: head/lib/libutil/gr_util.c

Re: svn commit: r244735 - head/lib/libutil

2012-12-27 Thread Jilles Tjoelker
On Thu, Dec 27, 2012 at 02:09:50PM +, Baptiste Daroussin wrote: > Author: bapt > Date: Thu Dec 27 14:09:50 2012 > New Revision: 244735 > URL: http://svnweb.freebsd.org/changeset/base/244735 > Log: > Use flopen(3) instead of open(2) + flock(2) > Modified: > head/lib/libutil/gr_util.c > h

svn commit: r244743 - head/usr.sbin/pw

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 19:43:29 2012 New Revision: 244743 URL: http://svnweb.freebsd.org/changeset/base/244743 Log: Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil. Modified: head/usr.sbin/pw/pw_vpw.c Modified: head/usr.sbin/pw/pw_vpw.c

svn commit: r244742 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 19:33:43 2012 New Revision: 244742 URL: http://svnweb.freebsd.org/changeset/base/244742 Log: gr_dup: simplify duplication of group Submitted by: db Modified: head/lib/libutil/gr_util.c Modified: head/lib/libutil/gr_util.c ===

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
On Thu, Dec 27, 2012 at 8:37 AM, Attilio Rao wrote: > On Thu, Dec 27, 2012 at 7:26 AM, Attilio Rao wrote: >> On Thu, Dec 27, 2012 at 5:53 AM, Attilio Rao wrote: >>> On Thu, Dec 27, 2012 at 5:25 AM, Gleb Smirnoff wrote: On Thu, Dec 27, 2012 at 04:55:22AM -0800, Attilio Rao wrote: A> On

svn commit: r244739 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 16:51:29 2012 New Revision: 244739 URL: http://svnweb.freebsd.org/changeset/base/244739 Log: - Clean up previous gr_add use malloc instead of calloc - Fix tinderbox error Submitted by: db Modified: head/lib/libutil/gr_util.c head/lib/libutil/libutil.h M

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
On Thu, Dec 27, 2012 at 7:26 AM, Attilio Rao wrote: > On Thu, Dec 27, 2012 at 5:53 AM, Attilio Rao wrote: >> On Thu, Dec 27, 2012 at 5:25 AM, Gleb Smirnoff wrote: >>> On Thu, Dec 27, 2012 at 04:55:22AM -0800, Attilio Rao wrote: >>> A> On Thu, Dec 27, 2012 at 4:46 AM, Gleb Smirnoff >>> wrote: >

Re: svn commit: r244469 - head/sys/arm/arm

2012-12-27 Thread Ian Lepore
On Tue, 2012-12-25 at 08:19 +1100, Peter Jeremy wrote: > On 2012-Dec-20 00:35:27 +, Olivier Houchard wrote: > >Author: cognet > >Date: Thu Dec 20 00:35:26 2012 > >New Revision: 244469 > >URL: http://svnweb.freebsd.org/changeset/base/244469 > > > >Log: > > Use the new allocator in bus_dmamem_a

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
On Thu, Dec 27, 2012 at 5:53 AM, Attilio Rao wrote: > On Thu, Dec 27, 2012 at 5:25 AM, Gleb Smirnoff wrote: >> On Thu, Dec 27, 2012 at 04:55:22AM -0800, Attilio Rao wrote: >> A> On Thu, Dec 27, 2012 at 4:46 AM, Gleb Smirnoff >> wrote: >> A> > Attilio, >> A> > >> A> > On Thu, Dec 27, 2012 at 1

svn commit: r244738 - head/usr.sbin/pw

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 14:44:13 2012 New Revision: 244738 URL: http://svnweb.freebsd.org/changeset/base/244738 Log: Fix a regression in "pw group show" introduced r242349: print a newline after printing each group line. PR: bin/174731 Submitted by: Jan Beich Modified:

svn commit: r244737 - head/usr.sbin/pw

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 14:35:06 2012 New Revision: 244737 URL: http://svnweb.freebsd.org/changeset/base/244737 Log: Simplify the code by using the new gr_add function Modified: head/usr.sbin/pw/pw_user.c Modified: head/usr.sbin/pw/pw_user.c

svn commit: r244736 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 14:30:19 2012 New Revision: 244736 URL: http://svnweb.freebsd.org/changeset/base/244736 Log: New gr_add function to provide a clean and safe method to append a new member into an existing group. Submitted by: db Modified: head/lib/libutil/gr_util.c head/

svn commit: r244735 - head/lib/libutil

2012-12-27 Thread Baptiste Daroussin
Author: bapt Date: Thu Dec 27 14:09:50 2012 New Revision: 244735 URL: http://svnweb.freebsd.org/changeset/base/244735 Log: Use flopen(3) instead of open(2) + flock(2) Modified: head/lib/libutil/gr_util.c head/lib/libutil/pw_util.c Modified: head/lib/libutil/gr_util.c ==

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
On Thu, Dec 27, 2012 at 5:25 AM, Gleb Smirnoff wrote: > On Thu, Dec 27, 2012 at 04:55:22AM -0800, Attilio Rao wrote: > A> On Thu, Dec 27, 2012 at 4:46 AM, Gleb Smirnoff wrote: > A> > Attilio, > A> > > A> > On Thu, Dec 27, 2012 at 12:36:58PM +, Attilio Rao wrote: > A> > A> Author: attilio >

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Gleb Smirnoff
On Thu, Dec 27, 2012 at 04:55:22AM -0800, Attilio Rao wrote: A> On Thu, Dec 27, 2012 at 4:46 AM, Gleb Smirnoff wrote: A> > Attilio, A> > A> > On Thu, Dec 27, 2012 at 12:36:58PM +, Attilio Rao wrote: A> > A> Author: attilio A> > A> Date: Thu Dec 27 12:36:58 2012 A> > A> New Revision: 244732 A

svn commit: r244734 - head/bin/test

2012-12-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Dec 27 13:21:37 2012 New Revision: 244734 URL: http://svnweb.freebsd.org/changeset/base/244734 Log: test(1): Document == alias for =. Reviewed by: gjb Requested by: gjb MFC after:1 week Modified: head/bin/test/test.1 Modified: head/bin/test/test.1 =

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
On Thu, Dec 27, 2012 at 4:46 AM, Gleb Smirnoff wrote: > Attilio, > > On Thu, Dec 27, 2012 at 12:36:58PM +, Attilio Rao wrote: > A> Author: attilio > A> Date: Thu Dec 27 12:36:58 2012 > A> New Revision: 244732 > A> URL: http://svnweb.freebsd.org/changeset/base/244732 > A> > A> Log: > A> br_

svn commit: r244733 - head/sys/sys

2012-12-27 Thread Attilio Rao
Author: attilio Date: Thu Dec 27 12:53:46 2012 New Revision: 244733 URL: http://svnweb.freebsd.org/changeset/base/244733 Log: Remove an unused var. Sponsored by: EMC / Isilon storage division MFC after:3 days Modified: head/sys/sys/buf_ring.h Modified: head/sys/sys/buf_ring.h

Re: svn commit: r244732 - head/sys/sys

2012-12-27 Thread Gleb Smirnoff
Attilio, On Thu, Dec 27, 2012 at 12:36:58PM +, Attilio Rao wrote: A> Author: attilio A> Date: Thu Dec 27 12:36:58 2012 A> New Revision: 244732 A> URL: http://svnweb.freebsd.org/changeset/base/244732 A> A> Log: A> br_prod_tail and br_cons_tail members are used as barrier to A> signal bug

svn commit: r244732 - head/sys/sys

2012-12-27 Thread Attilio Rao
Author: attilio Date: Thu Dec 27 12:36:58 2012 New Revision: 244732 URL: http://svnweb.freebsd.org/changeset/base/244732 Log: br_prod_tail and br_cons_tail members are used as barrier to signal bug_ring ownership. However, instructions can be reordered around members write leading to stale v

svn commit: r244731 - head/tools/tools/netrate/netsend

2012-12-27 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 27 09:15:21 2012 New Revision: 244731 URL: http://svnweb.freebsd.org/changeset/base/244731 Log: use nanosecond resolution, make sure gettimeofday is called at most every 100 packets. Modified: head/tools/tools/netrate/netsend/netsend.c Modified: head/tools/tools

svn commit: r244730 - head/sys/netinet

2012-12-27 Thread Michael Tuexen
Author: tuexen Date: Thu Dec 27 08:10:58 2012 New Revision: 244730 URL: http://svnweb.freebsd.org/changeset/base/244730 Log: Some cleanups. MFC after: 3 days Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c ===

svn commit: r244729 - head/sys/netinet

2012-12-27 Thread Michael Tuexen
Author: tuexen Date: Thu Dec 27 08:06:58 2012 New Revision: 244729 URL: http://svnweb.freebsd.org/changeset/base/244729 Log: Minor cleanups of debug messages. MFC after: 3 days Modified: head/sys/netinet/sctp_pcb.c Modified: head/sys/netinet/sctp_pcb.c ==

svn commit: r244728 - head/sys/netinet

2012-12-27 Thread Michael Tuexen
Author: tuexen Date: Thu Dec 27 08:02:58 2012 New Revision: 244728 URL: http://svnweb.freebsd.org/changeset/base/244728 Log: Fix a copy and paste error. MFC after: 3 days Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c