Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-04 Thread Andrey Chernov
On 04.05.2013 0:48, Sergey Kandaurov wrote: > On 3 May 2013 23:55, Jilles Tjoelker wrote: >> Some sort of perfect hashing can also be an option, although it makes it >> harder to add new properties or adds a build dependency on gperf(1) that >> we would like to get rid of. > I hacked a bit on wcty

svn commit: r250230 - head/lib/libkvm

2013-05-04 Thread Jilles Tjoelker
Author: jilles Date: Sat May 4 09:47:51 2013 New Revision: 250230 URL: http://svnweb.freebsd.org/changeset/base/250230 Log: libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call. MFC after:1 week Modified: head/lib/libkvm/kvm.c Modified: head/lib/libkvm/kvm.c ==

svn commit: r250231 - head/lib/libkvm

2013-05-04 Thread Jilles Tjoelker
Author: jilles Date: Sat May 4 11:45:48 2013 New Revision: 250231 URL: http://svnweb.freebsd.org/changeset/base/250231 Log: libkvm: Make second /dev/null file descriptor close-on-exec as well. MFC after:1 week Modified: head/lib/libkvm/kvm.c Modified: head/lib/libkvm/kvm.c

svn commit: r250232 - stable/9/usr.sbin/syslogd

2013-05-04 Thread Jilles Tjoelker
Author: jilles Date: Sat May 4 11:49:02 2013 New Revision: 250232 URL: http://svnweb.freebsd.org/changeset/base/250232 Log: MFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close() loop. When syslogd forks a process for '|' destinations, it closes all file descriptors g

Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-04 Thread Sergey Kandaurov
On 4 May 2013 15:14, Andrey Chernov wrote: > On 04.05.2013 0:48, Sergey Kandaurov wrote: >> On 3 May 2013 23:55, Jilles Tjoelker wrote: >>> Some sort of perfect hashing can also be an option, although it makes it >>> harder to add new properties or adds a build dependency on gperf(1) that >>> we

Re: svn commit: r250226 - in head/usr.bin/m4: . TEST

2013-05-04 Thread Baptiste Daroussin
On Fri, May 03, 2013 at 11:29:38PM +, Jung-uk Kim wrote: > Author: jkim > Date: Fri May 3 23:29:38 2013 > New Revision: 250226 > URL: http://svnweb.freebsd.org/changeset/base/250226 > > Log: > Reduce diff with upstream. > > Modified: > head/usr.bin/m4/TEST/ack.m4 > head/usr.bin/m4/TEST

svn commit: r250233 - head/lib/libprocstat

2013-05-04 Thread Sergey Kandaurov
Author: pluknet Date: Sat May 4 12:44:00 2013 New Revision: 250233 URL: http://svnweb.freebsd.org/changeset/base/250233 Log: Bump date. Modified: head/lib/libprocstat/libprocstat.3 Modified: head/lib/libprocstat/libprocstat.3 =

Re: svn commit: r250220 - head/sys/kern

2013-05-04 Thread Bruce Evans
Log: Fix FIONREAD on regular files. The computed result was being ignored and it was being passed down to VOP_IOCTL() where it promptly resulted in ENOTTY due to a missing else for the past 8 years. While here, use a shared vnode lock while fetching the current file's size. In another thre

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

2013-05-04 Thread Sergey Kandaurov
Author: pluknet Date: Sat May 4 12:57:21 2013 New Revision: 250234 URL: http://svnweb.freebsd.org/changeset/base/250234 Log: Add entry for errno ECAPMODE. MFC after:3 days Modified: head/lib/libc/nls/C.msg Modified: head/lib/libc/nls/C.msg ==

svn commit: r250235 - in head: etc/rc.d sbin/mount

2013-05-04 Thread Chris Rees
Author: crees (ports committer) Date: Sat May 4 14:00:16 2013 New Revision: 250235 URL: http://svnweb.freebsd.org/changeset/base/250235 Log: Introduce and use new flag -L to mount for mounting only late filesystems. Previously, rc.d/mountlate mounted *all* filesystems, causing problems wit

svn commit: r250236 - in head: contrib/smbfs/lib/smb contrib/smbfs/mount_smbfs sys/fs/smbfs sys/netsmb

2013-05-04 Thread Davide Italiano
Author: davide Date: Sat May 4 14:03:18 2013 New Revision: 250236 URL: http://svnweb.freebsd.org/changeset/base/250236 Log: Completely rewrite the interface to smbdev switching from dev_clone to cdevpriv(9). This commit changes the semantic of mount_smbfs in userland as well, which now pass

svn commit: r250237 - in head/sys: fs/smbfs netsmb

2013-05-04 Thread Davide Italiano
Author: davide Date: Sat May 4 14:18:10 2013 New Revision: 250237 URL: http://svnweb.freebsd.org/changeset/base/250237 Log: Overhaul locking in netsmb, getting rid of the obsolete lockmgr() primitive. This solves a long standing LOR between smb_conn and smb_vc. Tested by:martymac, ph

Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-04 Thread Andrey Chernov
On 04.05.2013 16:03, Sergey Kandaurov wrote: >> BTW, I don't run tests and look in asm code for sure, but it seems >> property[0] == p[0] is unneeded because almost every compiler tries to >> inline strcmp(). > > Doesn't seem so (in-lining), see below. Yes, system's GNU cc don't inline strcmp() b

svn commit: r250238 - head/sys/fs/smbfs

2013-05-04 Thread Davide Italiano
Author: davide Date: Sat May 4 14:27:28 2013 New Revision: 250238 URL: http://svnweb.freebsd.org/changeset/base/250238 Log: Change VM_OBJECT_LOCK/UNLOCK() -> VM_OBJECT_WLOCK/WUNLOCK() to reflect the recent switch of the vm object lock to a rwlock. Reported by: attilio Modified: head/

svn commit: r250239 - head/share/man/man4/man4.i386

2013-05-04 Thread Gavin Atkinson
Author: gavin Date: Sat May 4 15:10:01 2013 New Revision: 250239 URL: http://svnweb.freebsd.org/changeset/base/250239 Log: Kill yet another reference to UserConfig Modified: head/share/man/man4/man4.i386/npx.4 Modified: head/share/man/man4/man4.i386/npx.4 ===

svn commit: r250240 - head/etc/rc.d

2013-05-04 Thread Hiroki Sato
Author: hrs Date: Sat May 4 15:42:55 2013 New Revision: 250240 URL: http://svnweb.freebsd.org/changeset/base/250240 Log: - Fix exit status when ip6addrctl_verbose=yes [*] - Use the absolute pathname for ip6addrctl. - Use "install" instead of "add" to reduce the number of invocations. R

svn commit: r250241 - stable/9/contrib/libcxxrt

2013-05-04 Thread Dimitry Andric
Author: dim Date: Sat May 4 15:43:09 2013 New Revision: 250241 URL: http://svnweb.freebsd.org/changeset/base/250241 Log: MFC r245304 (by theraven): Merge new version of libcxxrt. This brings in three fixes: - Don't treat pointers to members as pointers in catch blocks (they

svn commit: r250242 - head/tools/regression/usr.bin/xargs

2013-05-04 Thread Stefan Farfeleder
Author: stefanf Date: Sat May 4 16:41:14 2013 New Revision: 250242 URL: http://svnweb.freebsd.org/changeset/base/250242 Log: Add a few xargs tests related to -0, -n and quoting. Added: head/tools/regression/usr.bin/xargs/regress.0.in (contents, props changed) head/tools/regression/usr.bi

Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-04 Thread Sergey Kandaurov
On 4 May 2013 18:21, Andrey Chernov wrote: > On 04.05.2013 16:03, Sergey Kandaurov wrote: >>> BTW, I don't run tests and look in asm code for sure, but it seems >>> property[0] == p[0] is unneeded because almost every compiler tries to >>> inline strcmp(). >> >> Doesn't seem so (in-lining), see be

svn commit: r250243 - head/sys/netsmb

2013-05-04 Thread Davide Italiano
Author: davide Date: Sat May 4 16:55:48 2013 New Revision: 250243 URL: http://svnweb.freebsd.org/changeset/base/250243 Log: If the kernel is compiled with VMIMAGE support, the first attempt of mounting smbfs share will cause a panic. Fix setting setting/restoring vnet context when needed.

Re: svn commit: r250237 - in head/sys: fs/smbfs netsmb

2013-05-04 Thread Attilio Rao
On Sat, May 4, 2013 at 4:18 PM, Davide Italiano wrote: > Author: davide > Date: Sat May 4 14:18:10 2013 > New Revision: 250237 > URL: http://svnweb.freebsd.org/changeset/base/250237 > > Log: > Overhaul locking in netsmb, getting rid of the obsolete lockmgr() primitive. > This solves a long st

svn commit: r250244 - head/lib/libc/locale

2013-05-04 Thread Sergey Kandaurov
Author: pluknet Date: Sat May 4 17:06:47 2013 New Revision: 250244 URL: http://svnweb.freebsd.org/changeset/base/250244 Log: mdoc: missing comma in .Dd macro. Modified: head/lib/libc/locale/duplocale.3 head/lib/libc/locale/freelocale.3 head/lib/libc/locale/newlocale.3 head/lib/libc/loc

svn commit: r250245 - head/lib/libc/locale

2013-05-04 Thread Sergey Kandaurov
Author: pluknet Date: Sat May 4 17:21:44 2013 New Revision: 250245 URL: http://svnweb.freebsd.org/changeset/base/250245 Log: Document that the return type is different from 1003.1-2008. MFC after:1 week Modified: head/lib/libc/locale/freelocale.3 Modified: head/lib/libc/locale/free

svn commit: r250246 - head/sys/netpfil/ipfw

2013-05-04 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 4 18:24:30 2013 New Revision: 250246 URL: http://svnweb.freebsd.org/changeset/base/250246 Log: Use unified method for accessing / updating cached rule pointers. MFC after:2 weeks Modified: head/sys/netpfil/ipfw/ip_fw2.c Modified: head/sys/netpfil/ipfw

svn commit: r250247 - head/sys/kern

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:38:16 2013 New Revision: 250247 URL: http://svnweb.freebsd.org/changeset/base/250247 Log: Add missing vdrop() in error case. Submitted by: Fahad (mohd.fahadul...@isilon.com) MFC after:1 week Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern

svn commit: r250248 - stable/9/sys/kern

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:44:14 2013 New Revision: 250248 URL: http://svnweb.freebsd.org/changeset/base/250248 Log: MFC r248933: Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. Modified: stable/9/sys/kern/vfs_extattr.c stable/9/sys/kern/vfs_vnops.c Directory

svn commit: r250249 - in stable/8/sys: . amd64/amd64 dev/sound i386/i386 kern

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:49:04 2013 New Revision: 250249 URL: http://svnweb.freebsd.org/changeset/base/250249 Log: MFC r248933: Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. Modified: stable/8/sys/kern/vfs_extattr.c stable/8/sys/kern/vfs_vnops.c Directory

Re: svn commit: r250249 - in stable/8/sys: . amd64/amd64 dev/sound i386/i386 kern

2013-05-04 Thread mdf
On Sat, May 4, 2013 at 11:49 AM, Matthew D Fleming wrote: > Author: mdf > Date: Sat May 4 18:49:04 2013 > New Revision: 250249 > URL: http://svnweb.freebsd.org/changeset/base/250249 > > Log: > MFC r248933: > > Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. > > Modified

Re: svn commit: r250223 - in head: lib/libprocstat sys/kern sys/sys usr.bin/fstat

2013-05-04 Thread Mikolaj Golub
On Fri, May 03, 2013 at 09:11:57PM +, John Baldwin wrote: > +static int > +procstat_get_sem_info_kvm(kvm_t *kd, struct filestat *fst, > +struct semstat *sem, char *errbuf) > +{ > + struct ksem ksem; > + void *ksemp; > + char *path; > + int i; > + > + assert(kd); > +

Re: svn commit: r250249 - in stable/8/sys: . amd64/amd64 dev/sound i386/i386 kern

2013-05-04 Thread Dimitry Andric
On May 4, 2013, at 20:51, m...@freebsd.org wrote: > On Sat, May 4, 2013 at 11:49 AM, Matthew D Fleming wrote: > Author: mdf > Date: Sat May 4 18:49:04 2013 > New Revision: 250249 > URL: http://svnweb.freebsd.org/changeset/base/250249 ...lots of changed properties... > stable/8/sys/xen/ (props

svn commit: r250250 - in head: lib/libc/gen lib/libc/nls lib/libc/sys sys/sys

2013-05-04 Thread Sergey Kandaurov
Author: pluknet Date: Sat May 4 19:07:22 2013 New Revision: 250250 URL: http://svnweb.freebsd.org/changeset/base/250250 Log: POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos. Modified: head/lib/libc/gen/errlst.c head/lib/libc/nls/C.msg head/lib/libc/sys/intro.2 head/sys/sys/er

svn commit: r250251 - in head: sbin/ping6 sys/netinet sys/netinet6

2013-05-04 Thread Hiroki Sato
Author: hrs Date: Sat May 4 19:16:26 2013 New Revision: 250251 URL: http://svnweb.freebsd.org/changeset/base/250251 Log: Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group Address. Although KAME implementation used FF02:0:0:0:0:2::/96 based on older versions of draft-ietf

svn commit: r250252 - head/sys/arm/arm

2013-05-04 Thread Ian Lepore
Author: ian Date: Sat May 4 19:50:50 2013 New Revision: 250252 URL: http://svnweb.freebsd.org/changeset/base/250252 Log: EABI unwinder enhancements... When it's time to stop unwinding, don't exit the loop until after printing info about the current frame. Also, if executing the unwind func

svn commit: r250253 - head/sys/arm/arm

2013-05-04 Thread Ian Lepore
Author: ian Date: Sat May 4 19:59:35 2013 New Revision: 250253 URL: http://svnweb.freebsd.org/changeset/base/250253 Log: Insert STOP_UNWINDING directives in the _start (kernel entry point) and fork_trampoline (thread entry point) assembler routines, because it's not possible to unwind beyon

svn commit: r250254 - head/sys/arm/arm

2013-05-04 Thread Ian Lepore
Author: ian Date: Sat May 4 20:02:34 2013 New Revision: 250254 URL: http://svnweb.freebsd.org/changeset/base/250254 Log: Fix comment block formatting. Modified: head/sys/arm/arm/db_trace.c Modified: head/sys/arm/arm/db_trace.c

svn commit: r250255 - head/sys/arm/arm

2013-05-04 Thread Tim Kientzle
Author: kientzle Date: Sat May 4 21:26:11 2013 New Revision: 250255 URL: http://svnweb.freebsd.org/changeset/base/250255 Log: Make a debugging printf a little more useful. Modified: head/sys/arm/arm/trap.c Modified: head/sys/arm/arm/trap.c ===

svn commit: r250257 - in stable/9/sys: fs/nfsclient nfsclient

2013-05-04 Thread Rick Macklem
Author: rmacklem Date: Sat May 4 21:56:39 2013 New Revision: 250257 URL: http://svnweb.freebsd.org/changeset/base/250257 Log: MFC: r249623 Both NFS clients can deadlock when using the "rdirplus" mount option. This can occur when an nfsiod thread that already holds a buffer lock attempts t

svn commit: r250258 - in stable/9/sys: fs/nfsclient nfsclient

2013-05-04 Thread Rick Macklem
Author: rmacklem Date: Sat May 4 22:05:43 2013 New Revision: 250258 URL: http://svnweb.freebsd.org/changeset/base/250258 Log: MFC: r249630 When an NFS unmount occurs, once vflush() writes the last dirty buffer for the last vnode on the mount back to the server, it returns. At that point,

svn commit: r250259 - head/sys/vm

2013-05-04 Thread Alan Cox
Author: alc Date: Sat May 4 22:50:15 2013 New Revision: 250259 URL: http://svnweb.freebsd.org/changeset/base/250259 Log: Optimize vm_radix_lookup_ge() and vm_radix_lookup_le(). Specifically, change the way that these functions ascend the tree when the search for a matching leaf fails at an

svn commit: r250261 - in head/lib/libz: . contrib test

2013-05-04 Thread Xin LI
Author: delphij Date: Sun May 5 06:20:49 2013 New Revision: 250261 URL: http://svnweb.freebsd.org/changeset/base/250261 Log: MFV: Update zlib to 1.2.8. MFC after:1 month Modified: head/lib/libz/ChangeLog head/lib/libz/README head/lib/libz/Symbol.map head/lib/libz/Versions.def

svn commit: r250262 - stable/9/sys/vm

2013-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 5 06:25:28 2013 New Revision: 250262 URL: http://svnweb.freebsd.org/changeset/base/250262 Log: MFC r250026: Convert panic() into KASSERT(). Modified: stable/9/sys/vm/vnode_pager.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/v

svn commit: r250263 - stable/9/sys/vm

2013-05-04 Thread Konstantin Belousov
Author: kib Date: Sun May 5 06:32:13 2013 New Revision: 250263 URL: http://svnweb.freebsd.org/changeset/base/250263 Log: MFC r250028: Assert that the object type for the vnode' non-NULL v_object, passed to vnode_pager_setsize(), is either OBJT_VNODE, or, if vnode was already reclaimed, OB