Re: svn commit: r223877 - in head: include/rpc lib/libc/xdr

2011-07-09 Thread Kevin Lo
On Sat, 2011-07-09 at 08:14 +, Alexander Best wrote: > On Sat Jul 9 11, Kevin Lo wrote: > > Author: kevlo > > Date: Sat Jul 9 07:43:56 2011 > > New Revision: 223877 > > URL: http://svn.freebsd.org/changeset/base/223877 > > > > Log: > > - Add xdr_sizeof(3) to libc > > - Document xdr_sizeo

svn commit: r223903 - head/lib/libc/xdr

2011-07-09 Thread Kevin Lo
Author: kevlo Date: Sun Jul 10 06:57:00 2011 New Revision: 223903 URL: http://svn.freebsd.org/changeset/base/223903 Log: Add a HISTORY section Requested by: arundel Modified: head/lib/libc/xdr/xdr.3 Modified: head/lib/libc/xdr/xdr.3 ==

Re: svn commit: r223854 - head/lib/libstand

2011-07-09 Thread Doug Barton
On 07/09/2011 22:25, Warner Losh wrote: > Having the low WARNS= today motivates people to fix stuff... I see absolutely no evidence of that, but it's clear that your opinion is not likely to change, so I'll leave it alone. -- Nothin' ever doesn't change, but nothin' changes much.

svn commit: r223902 - head/sys/ufs/ffs

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 05:34:49 2011 New Revision: 223902 URL: http://svn.freebsd.org/changeset/base/223902 Log: When first creating snapshots, we may free some blocks within it. These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov Modified: head/

Re: svn commit: r223854 - head/lib/libstand

2011-07-09 Thread Warner Losh
On Jul 9, 2011, at 11:01 PM, Doug Barton wrote: > On 07/08/2011 15:29, Warner Losh wrote: >> >> On Jul 8, 2011, at 2:25 AM, Craig Rodrigues wrote: >> >>> Hi, >>> >>> While not ideal, would it be possible consider setting WARNS to set >>> different levels >>> depending on what the value of ${MA

Re: svn commit: r223854 - head/lib/libstand

2011-07-09 Thread Doug Barton
On 07/08/2011 15:29, Warner Losh wrote: > > On Jul 8, 2011, at 2:25 AM, Craig Rodrigues wrote: > >> Hi, >> >> While not ideal, would it be possible consider setting WARNS to set >> different levels >> depending on what the value of ${MACHINE_ARCH} is? >> >> Something like: >> >> .if ${MACHINE_ARC

Re: svn commit: r223900 - in head/sys: geom ufs/ffs

2011-07-09 Thread Bruce Evans
On Sun, 10 Jul 2011, Kirk McKusick wrote: Log: Allow disk partitions associated with UFS read-only mounted filesystems to be opened for writing. This functionality used to be special-cased for just the root filesystem, but with this change is now available for all UFS filesystems. This chang

svn commit: r223901 - in head/sys: i386 kern

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 00:53:04 2011 New Revision: 223901 URL: http://svn.freebsd.org/changeset/base/223901 Log: Update tags build script Modified: head/sys/i386/Makefile head/sys/kern/Make.tags.inc Modified: head/sys/i386/Makefile ===

svn commit: r223900 - in head/sys: geom ufs/ffs

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 00:41:31 2011 New Revision: 223900 URL: http://svn.freebsd.org/changeset/base/223900 Log: Allow disk partitions associated with UFS read-only mounted filesystems to be opened for writing. This functionality used to be special-cased for just the root filesyst

svn commit: r223897 - in head: release usr.sbin/bsdinstall/scripts

2011-07-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jul 9 23:01:54 2011 New Revision: 223897 URL: http://svn.freebsd.org/changeset/base/223897 Log: Per request of the docs team, install docs as packages, instead of via the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with

svn commit: r223896 - head/sys/dev/usb/net

2011-07-09 Thread Hans Petter Selasky
Author: hselasky Date: Sat Jul 9 20:16:52 2011 New Revision: 223896 URL: http://svn.freebsd.org/changeset/base/223896 Log: Remove reviewed line from copyright header. Suggested by: joel @ Modified: head/sys/dev/usb/net/if_usie.c Modified: head/sys/dev/usb/net/if_usie.c

Re: svn commit: r223885 - head/sys/dev/pci

2011-07-09 Thread Kostik Belousov
On Sat, Jul 09, 2011 at 12:56:10PM -0600, Warner Losh wrote: > Should't this be called 'pci_find_first_class()"? Also, can you add a > man page for it, or at least document what it is supposed to be used > for in the code? > > Warenr Sure, I will add a man page. Regarding the name, the intended us

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

2011-07-09 Thread Alan Cox
Author: alc Date: Sat Jul 9 19:09:20 2011 New Revision: 223895 URL: http://svn.freebsd.org/changeset/base/223895 Log: Remove the old vm_map_clean man page. Deleted: head/share/man/man9/vm_map_clean.9 ___ svn-src-all@freebsd.org mailing list http://

svn commit: r223894 - in head: . share/man/man9

2011-07-09 Thread Alan Cox
Sat Jul 9 18:47:51 2011(r223893) +++ head/ObsoleteFiles.inc Sat Jul 9 19:05:28 2011(r223894) @@ -38,6 +38,8 @@ # xargs -n1 | sort | uniq -d; # done +# 20110709: vm_map_clean.9 -> vm_map_sync.9 +OLD_FILES+=usr/share/man/man9/vm_map_clean.9.gz # 20110709: Catch up w

Re: svn commit: r223885 - head/sys/dev/pci

2011-07-09 Thread Warner Losh
Should't this be called 'pci_find_first_class()"? Also, can you add a man page for it, or at least document what it is supposed to be used for in the code? Warenr On Jul 9, 2011, at 8:30 AM, Konstantin Belousov wrote: > Author: kib > Date: Sat Jul 9 14:30:13 2011 > New Revision: 223885 > URL:

svn commit: r223893 - head/sys/sys

2011-07-09 Thread Marius Strobl
Author: marius Date: Sat Jul 9 18:47:51 2011 New Revision: 223893 URL: http://svn.freebsd.org/changeset/base/223893 Log: Fix the definition for PCPU_NAME_LEN, which is intended to fit ("CPU %d", cpuid) where cpuid <= MAXCPU. 1. sizeof(__XSTRING(MAXCPU) + 1) is a typo: typeof(__XSTRING(..

svn commit: r223892 - in head: . share/man/man9

2011-07-09 Thread Alan Cox
| uniq -d; # done +# 20110709: Catch up with removal of these functions. +OLD_FILES+=usr/share/man/man9/vm_page_copy.9.gz +OLD_FILES+=usr/share/man/man9/vm_page_protect.9.gz +OLD_FILES+=usr/share/man/man9/vm_page_zero_fill.9.gz # 20110707: script no longer needed by /etc/rc.d/nfsd OLD_FILES+=etc

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

2011-07-09 Thread Alan Cox
Author: alc Date: Sat Jul 9 18:05:27 2011 New Revision: 223891 URL: http://svn.freebsd.org/changeset/base/223891 Log: Remove manual pages for functions that no longer exist. MFC after:1 week Deleted: head/share/man/man9/vm_page_copy.9 head/share/man/man9/vm_page_zero_fill.9 Modifi

Re: svn commit: r223877 - in head: include/rpc lib/libc/xdr

2011-07-09 Thread Bruce Evans
On Sat, 9 Jul 2011, Kevin Lo wrote: Log: - Add xdr_sizeof(3) to libc - Document xdr_sizeof(3); from NetBSD Discussed with:kib Any reason to further break the style of every changed line of the header? Modified: head/include/rpc/xdr.h ==

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

2011-07-09 Thread Kostik Belousov
On Sat, Jul 09, 2011 at 05:36:28PM +0200, Ed Schouten wrote: > Hi Kostik, > > * Konstantin Belousov , 20110709 16:29: > > +static __inline uint16_t > > +bitcount16(uint32_t x) > > Shouldn't we use uint16_t for the argument here? Not sure. uint32_t type of argument

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

2011-07-09 Thread Ed Schouten
Hi Kostik, * Konstantin Belousov , 20110709 16:29: > +static __inline uint16_t > +bitcount16(uint32_t x) Shouldn't we use uint16_t for the argument here? When I saw the code, I thought by myself, this could be done more efficiently: | static __inline uint16_t | bitcount16

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:24:12 2011 New Revision: 223890 URL: http://svn.freebsd.org/changeset/base/223890 Log: Document copyin_nofault, copyout_nofault, uiomove_nofault. Submitted by: alc Modified: head/share/man/man9/Makefile head/share/man/man9/copy.9 head/share/man/man9/ui

svn commit: r223889 - in head/sys: kern sys vm

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:21:10 2011 New Revision: 223889 URL: http://svn.freebsd.org/changeset/base/223889 Log: Add a facility to disable processing page faults. When activated, uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault. Spon

svn commit: r223888 - in head/sys: sys ufs/ffs

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:16:07 2011 New Revision: 223888 URL: http://svn.freebsd.org/changeset/base/223888 Log: Use 'curthread_pflags' instead of 'thread_pflags' to signify that only curthread can be operated upon. Requested by: attilio MFC after:1 week Modified: head/sys/

svn commit: r223887 - head/sys/ufs/ffs

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:42:45 2011 New Revision: 223887 URL: http://svn.freebsd.org/changeset/base/223887 Log: Use helper functions instead of manually managing TDP_INBDFLUSH. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after:1 week Modifie

svn commit: r223886 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:41:28 2011 New Revision: 223886 URL: http://svn.freebsd.org/changeset/base/223886 Log: Implement a helper functions to locally set thread-private flag, and restore it to the previous state. Note that only setting a flag locally is supported. Sponsored by:

svn commit: r223885 - head/sys/dev/pci

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:30:13 2011 New Revision: 223885 URL: http://svn.freebsd.org/changeset/base/223885 Log: Implement pci_find_class(9), the function to find a pci device by its class. Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after:1 week Modified: he

svn commit: r223884 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:29:23 2011 New Revision: 223884 URL: http://svn.freebsd.org/changeset/base/223884 Log: Implement bitcount16. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h

Re: cvs commit: src Makefile.inc1 src/lib/libc Makefile src/lib/libc_r Makefile src/lib/libpthread Makefile pthread.map src/lib/libpthread/thread thr_private.h src/lib/librt Makefile src/lib/libthr Ma

2011-07-09 Thread Jilles Tjoelker
On Fri, Jun 17, 2011 at 01:03:13AM +0300, Kostik Belousov wrote: > On Thu, Jun 16, 2011 at 11:27:38PM +0200, Jilles Tjoelker wrote: > > I think disabling symver completely is too much: it implies a new > > mutually incompatible set of binaries. What should be done instead is > > allowing to compile

svn commit: r223883 - head/bin/expr

2011-07-09 Thread Stefan Esser
Author: se Date: Sat Jul 9 12:20:15 2011 New Revision: 223883 URL: http://svn.freebsd.org/changeset/base/223883 Log: Fix style, since this file has just been touched in a major way. No actual code changes. Modified: head/bin/expr/expr.y Modified: head/bin/expr/expr.y =

svn commit: r223882 - head/bin/expr

2011-07-09 Thread Stefan Esser
Author: se Date: Sat Jul 9 12:14:57 2011 New Revision: 223882 URL: http://svn.freebsd.org/changeset/base/223882 Log: Some refactoring for easier maintenance of the code. This is a follow-up to re-establishment of 64bit arithmetic, but is committed separately, to not obscure that conversion.

svn commit: r223881 - head/bin/expr

2011-07-09 Thread Stefan Esser
Author: se Date: Sat Jul 9 12:05:53 2011 New Revision: 223881 URL: http://svn.freebsd.org/changeset/base/223881 Log: Make /bin/expr support 64bit numeric range and range checks by default, again. This brings back the behaviour of expr in FreeBSD-4, which had been reverted due to an assumed

svn commit: r223880 - stable/8/sbin/geom/class/part

2011-07-09 Thread Andrey V. Elsukov
Author: ae Date: Sat Jul 9 12:02:40 2011 New Revision: 223880 URL: http://svn.freebsd.org/changeset/base/223880 Log: MFC r221363,221967,63,64,222630,222631,222819,223158,223355: r221363: Add "-a alignment" option to gpart(8). When it specified gpart(8) tries to align partit

svn commit: r223879 - in stable/8/sys/dev: sound/usb usb usb/quirk

2011-07-09 Thread Hans Petter Selasky
Author: hselasky Date: Sat Jul 9 11:22:23 2011 New Revision: 223879 URL: http://svn.freebsd.org/changeset/base/223879 Log: MFC r223727 and r223736: - Add quirk for non-compliant USB MIDI hardware. - Reduce MIDI TX buffer size to 512 bytes. Modified: stable/8/sys/dev/sound/usb/uaudio.c

svn commit: r223878 - head/lib/libutil

2011-07-09 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 9 08:42:23 2011 New Revision: 223878 URL: http://svn.freebsd.org/changeset/base/223878 Log: Add missing "swapuse" resource limit. Modified: head/lib/libutil/login.conf.5 Modified: head/lib/libutil/login.conf.5 =

Re: svn commit: r223877 - in head: include/rpc lib/libc/xdr

2011-07-09 Thread Alexander Best
On Sat Jul 9 11, Kevin Lo wrote: > Author: kevlo > Date: Sat Jul 9 07:43:56 2011 > New Revision: 223877 > URL: http://svn.freebsd.org/changeset/base/223877 > > Log: > - Add xdr_sizeof(3) to libc > - Document xdr_sizeof(3); from NetBSD > > Discussed with: kib > > Modified: > head/

svn commit: r223877 - in head: include/rpc lib/libc/xdr

2011-07-09 Thread Kevin Lo
Author: kevlo Date: Sat Jul 9 07:43:56 2011 New Revision: 223877 URL: http://svn.freebsd.org/changeset/base/223877 Log: - Add xdr_sizeof(3) to libc - Document xdr_sizeof(3); from NetBSD Discussed with: kib Modified: head/include/rpc/xdr.h head/lib/libc/xdr/Makefile.inc head/