svn commit: r188063 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:54:42 2009 New Revision: 188063 URL: http://svn.freebsd.org/changeset/base/188063 Log: Use NULL in preference to 0 in pointer contexts. Modified: head/sys/kern/subr_devstat.c head/sys/kern/subr_kobj.c Modified: head/sys/kern/subr_devstat.c ==

svn commit: r188062 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:53:51 2009 New Revision: 188062 URL: http://svn.freebsd.org/changeset/base/188062 Log: Make bioq_disksort have a ANSI-C definition rather than a K&R definition. Modified: head/sys/kern/subr_disk.c Modified: head/sys/kern/subr_disk.c ===

svn commit: r188061 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:53:08 2009 New Revision: 188061 URL: http://svn.freebsd.org/changeset/base/188061 Log: rman_debug should be static, so make it static. Modified: head/sys/kern/subr_rman.c Modified: head/sys/kern/subr_rman.c =

svn commit: r188060 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:52:36 2009 New Revision: 188060 URL: http://svn.freebsd.org/changeset/base/188060 Log: Use ANSI function definition for profil. Modified: head/sys/kern/subr_prof.c Modified: head/sys/kern/subr_prof.c

svn commit: r188059 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:52:07 2009 New Revision: 188059 URL: http://svn.freebsd.org/changeset/base/188059 Log: Prefer ANSI function definitions to K&R ones. Modified: head/sys/kern/subr_autoconf.c Modified: head/sys/kern/subr_autoconf.c ===

svn commit: r188058 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:51:41 2009 New Revision: 188058 URL: http://svn.freebsd.org/changeset/base/188058 Log: Use NULL in preference to 0 for pointers. Modified: head/sys/kern/subr_clist.c head/sys/kern/subr_taskqueue.c Modified: head/sys/kern/subr_clist.c

svn commit: r188057 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:51:11 2009 New Revision: 188057 URL: http://svn.freebsd.org/changeset/base/188057 Log: Use NULL in preference to 0 for pointers. Modified: head/sys/kern/subr_firmware.c head/sys/kern/subr_prf.c Modified: head/sys/kern/subr_firmware.c

svn commit: r188056 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:50:41 2009 New Revision: 188056 URL: http://svn.freebsd.org/changeset/base/188056 Log: o Use unsigned for bit fields. o Use NULL for pointers in preference to 0. Modified: head/sys/kern/subr_witness.c Modified: head/sys/kern/subr_witness.c ==

svn commit: r188055 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 07:50:01 2009 New Revision: 188055 URL: http://svn.freebsd.org/changeset/base/188055 Log: int foo(void) is the proper ANSI function definition when there's no parameters. Use it for resettodr(). Modified: head/sys/kern/subr_rtc.c Modified: head/sys/kern/subr_r

Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread M. Warner Losh
In message: <200902021659.54847@freebsd.org> John Baldwin writes: On Mon, 2009-02-02 at 15:54 -0500, John Baldwin wrote: jhb> I haven't looked this over thoroughly yet, but will it support BIOS jhb> mappings as well? Or should I take a crack at adding that? On Monday 02 February

svn commit: r188054 - head/sys/geom

2009-02-02 Thread Marcel Moolenaar
Author: marcel Date: Tue Feb 3 07:07:13 2009 New Revision: 188054 URL: http://svn.freebsd.org/changeset/base/188054 Log: In g_handleattr(), set bp->bio_completed also for the case where len is 0. Otherwise g_getattr() will never succeed when it is handled by g_handleattr_str(). Modified:

svn commit: r188050 - head/sys/sys

2009-02-02 Thread Joseph Koshy
Author: jkoshy Date: Tue Feb 3 06:12:13 2009 New Revision: 188050 URL: http://svn.freebsd.org/changeset/base/188050 Log: Introduce a C type representing the header for GNU-style hash table sections. These ELF sections are generated by newer versions of GNU binutils. Reviewed by:

svn commit: r188048 - in head/sys/dev/usb2: core include quirk

2009-02-02 Thread Andrew Thompson
Author: thompsa Date: Tue Feb 3 05:50:36 2009 New Revision: 188048 URL: http://svn.freebsd.org/changeset/base/188048 Log: Move away from autogenerated enums, these values never change and its helpful to be able to look them up. Modified: head/sys/dev/usb2/core/usb2_error.c head/sys/dev/u

svn commit: r188044 - head/sys/dev/mmc

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 04:28:45 2009 New Revision: 188044 URL: http://svn.freebsd.org/changeset/base/188044 Log: o Define some symbols for a few items that are bare constants in the code. o Use NULL in preference to 0 for a few pointers. o default to bus timing normal, like we defa

svn commit: r188042 - head/sys/i386/xen

2009-02-02 Thread Kip Macy
Author: kmacy Date: Tue Feb 3 03:43:00 2009 New Revision: 188042 URL: http://svn.freebsd.org/changeset/base/188042 Log: make sure that interrupts are disabled when handling page faults et al Modified: head/sys/i386/xen/xen_machdep.c Modified: head/sys/i386/xen/xen_machdep.c

svn commit: r188040 - head/sys/sys

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 01:17:34 2009 New Revision: 188040 URL: http://svn.freebsd.org/changeset/base/188040 Log: Use NULL in preference to 0 for pointers. Modified: head/sys/sys/kobj.h Modified: head/sys/sys/kobj.h ===

svn commit: r188039 - head/sys/sys

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 01:17:17 2009 New Revision: 188039 URL: http://svn.freebsd.org/changeset/base/188039 Log: Use NULL in preference to '0' for pointers. Modified: head/sys/sys/sysctl.h Modified: head/sys/sys/sysctl.h =

Re: svn commit: r188017 - head/sbin/geom/core

2009-02-02 Thread Marcel Moolenaar
On Feb 2, 2009, at 11:22 AM, Ulf Lilleengen wrote: - Use a separate pointer to the allocated memory for freeing, as strsep may modify the pointer argument passed to it. This triggered an assert in malloc when a geom command being run under the livefs environment. Thanks Ulf! -- Ma

svn commit: r188038 - head/sbin/ifconfig

2009-02-02 Thread Xin LI
Author: delphij Date: Tue Feb 3 00:15:19 2009 New Revision: 188038 URL: http://svn.freebsd.org/changeset/base/188038 Log: Use %u instead of %zu when we intend to print integer constant. Modified: head/sbin/ifconfig/ifieee80211.c Modified: head/sbin/ifconfig/ifieee80211.c ===

svn commit: r188037 - head/sys/kern

2009-02-02 Thread Warner Losh
Author: imp Date: Tue Feb 3 00:10:21 2009 New Revision: 188037 URL: http://svn.freebsd.org/changeset/base/188037 Log: Declare bus_data_devices to be static: it isn't used elsewhere. Use NULL in a couple of places rather than 0 in the context of pointers to be consistent with the rest of the

Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread Robert Noland
On Mon, 2009-02-02 at 16:59 -0500, John Baldwin wrote: > On Monday 02 February 2009 4:09:35 pm Robert Noland wrote: > > On Mon, 2009-02-02 at 15:54 -0500, John Baldwin wrote: > > > On Monday 02 February 2009 2:54:16 pm John Baldwin wrote: > > > > Author: jhb > > > > Date: Mon Feb 2 19:54:16 2009 >

Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread John Baldwin
On Monday 02 February 2009 4:09:35 pm Robert Noland wrote: > On Mon, 2009-02-02 at 15:54 -0500, John Baldwin wrote: > > On Monday 02 February 2009 2:54:16 pm John Baldwin wrote: > > > Author: jhb > > > Date: Mon Feb 2 19:54:16 2009 > > > New Revision: 188018 > > > URL: http://svn.freebsd.org/chang

svn commit: r188036 - head/sys/dev/xen/netfront

2009-02-02 Thread Kip Macy
Author: kmacy Date: Mon Feb 2 23:04:20 2009 New Revision: 188036 URL: http://svn.freebsd.org/changeset/base/188036 Log: break out of loop if we run out of mbufs Modified: head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netfront/netfront.c

svn commit: r188033 - head/sys/dev/cardbus

2009-02-02 Thread John Baldwin
Author: jhb Date: Mon Feb 2 22:06:20 2009 New Revision: 188033 URL: http://svn.freebsd.org/changeset/base/188033 Log: Goof, catch up to constant rename (I renamed it to match the overall PCI style of having register offsets start with PCIR_* rather than PCI_*). Submitted by: rss Modifie

svn commit: r188032 - head/sys/sys

2009-02-02 Thread John Baldwin
Author: jhb Date: Mon Feb 2 22:04:40 2009 New Revision: 188032 URL: http://svn.freebsd.org/changeset/base/188032 Log: - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a device. The details include the current value of the BAR (including all the flag bits and the c

svn commit: r188031 - head/lib/libc/sparc64/sys

2009-02-02 Thread Roman Divacky
Author: rdivacky Date: Mon Feb 2 21:51:52 2009 New Revision: 188031 URL: http://svn.freebsd.org/changeset/base/188031 Log: Provide a type for the argument. Approved by: kib (mentor) Modified: head/lib/libc/sparc64/sys/__sparc_utrap.c Modified: head/lib/libc/sparc64/sys/__sparc_utrap.c

Re: svn commit: r187132 - head/usr.bin/make

2009-02-02 Thread Christian Weisgerber
David O'Brien wrote: > > I think this should be backed out. Those verbose messages: > > - Are completely unexpected, this violates POLA. > > I'm sorry I disagree. You're complaining about something that is > a feature of FreeBSD 1.x, 2.0 - 3.0, 4.4BSD, all NetBSD versions, > all OpenBSD version

Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread Robert Noland
On Mon, 2009-02-02 at 15:54 -0500, John Baldwin wrote: > On Monday 02 February 2009 2:54:16 pm John Baldwin wrote: > > Author: jhb > > Date: Mon Feb 2 19:54:16 2009 > > New Revision: 188018 > > URL: http://svn.freebsd.org/changeset/base/188018 > > > > Log: > > - Add a new ioctl to /dev/pci to f

svn commit: r188030 - head/sys/dev/kbdmux

2009-02-02 Thread Maksim Yevmenkin
Author: emax Date: Mon Feb 2 21:34:04 2009 New Revision: 188030 URL: http://svn.freebsd.org/changeset/base/188030 Log: Properly retun error core from kbdmux_modevent() Reported by: Christoph Mallon < christoph -dot- mallon -at- gmx -dot- de > MFC after:1 week Modified: head/sys/d

svn commit: r188029 - head/usr.sbin/fwcontrol

2009-02-02 Thread Sean Bruno
Author: sbruno Date: Mon Feb 2 21:05:12 2009 New Revision: 188029 URL: http://svn.freebsd.org/changeset/base/188029 Log: Begin basic improvements to fwcontrol in the area of handling video streams from cameras. This patch changes the displayed timer to a time stamp and corrects one or

Re: svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread John Baldwin
On Monday 02 February 2009 2:54:16 pm John Baldwin wrote: > Author: jhb > Date: Mon Feb 2 19:54:16 2009 > New Revision: 188018 > URL: http://svn.freebsd.org/changeset/base/188018 > > Log: > - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a > device. The details inclu

svn commit: r188020 - head/sys/arm/sa11x0

2009-02-02 Thread Olivier Houchard
Author: cognet Date: Mon Feb 2 20:24:29 2009 New Revision: 188020 URL: http://svn.freebsd.org/changeset/base/188020 Log: Move a comment to where it belongs. Spotted out by: Christoph Mallon Modified: head/sys/arm/sa11x0/assabet_machdep.c Modified: head/sys/arm/sa11x0/assabet_mac

Re: svn commit: r188019 - in head/sys/arm: arm sa11x0

2009-02-02 Thread Olivier Houchard
On Mon, Feb 02, 2009 at 09:14:26PM +0100, Christoph Mallon wrote: > Olivier Houchard schrieb: > >Modified: head/sys/arm/sa11x0/assabet_machdep.c > >== > >--- head/sys/arm/sa11x0/assabet_machdep.cMon Feb 2 19:54:16 2009

Re: svn commit: r188019 - in head/sys/arm: arm sa11x0

2009-02-02 Thread Christoph Mallon
Olivier Houchard schrieb: Modified: head/sys/arm/sa11x0/assabet_machdep.c == --- head/sys/arm/sa11x0/assabet_machdep.c Mon Feb 2 19:54:16 2009 (r188018) +++ head/sys/arm/sa11x0/assabet_machdep.c Mon F

svn commit: r188019 - in head/sys/arm: arm sa11x0

2009-02-02 Thread Olivier Houchard
Author: cognet Date: Mon Feb 2 20:09:14 2009 New Revision: 188019 URL: http://svn.freebsd.org/changeset/base/188019 Log: Remove unused variables. Spotted out by: Christoph Mallon Modified: head/sys/arm/arm/dump_machdep.c head/sys/arm/arm/elf_trampoline.c head/sys/arm/arm/pmap

svn commit: r188018 - in head: sys/dev/pci usr.sbin/pciconf

2009-02-02 Thread John Baldwin
Author: jhb Date: Mon Feb 2 19:54:16 2009 New Revision: 188018 URL: http://svn.freebsd.org/changeset/base/188018 Log: - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a device. The details include the current value of the BAR (including all the flag bits and the c

svn commit: r188017 - head/sbin/geom/core

2009-02-02 Thread Ulf Lilleengen
Author: lulf Date: Mon Feb 2 19:22:53 2009 New Revision: 188017 URL: http://svn.freebsd.org/changeset/base/188017 Log: - Use a separate pointer to the allocated memory for freeing, as strsep may modify the pointer argument passed to it. This triggered an assert in malloc when a geom com

svn commit: r188014 - head/usr.sbin/bluetooth

2009-02-02 Thread Maksim Yevmenkin
Author: emax Date: Mon Feb 2 18:10:51 2009 New Revision: 188014 URL: http://svn.freebsd.org/changeset/base/188014 Log: Hook up btpand(8) to the build MFC after:1 month Modified: head/usr.sbin/bluetooth/Makefile Modified: head/usr.sbin/bluetooth/Makefile

svn commit: r188013 - head/usr.sbin/bluetooth/btpand

2009-02-02 Thread Maksim Yevmenkin
Author: emax Date: Mon Feb 2 18:08:22 2009 New Revision: 188013 URL: http://svn.freebsd.org/changeset/base/188013 Log: Fix client mode. Pick up service availability changes. Obtained from:NetBSD MFC after:1 month Modified: head/usr.sbin/bluetooth/btpand/btpand.c head/usr

svn commit: r188012 - head/sys/dev/ath/ath_hal/ar5212

2009-02-02 Thread Sam Leffler
Author: sam Date: Mon Feb 2 16:56:58 2009 New Revision: 188012 URL: http://svn.freebsd.org/changeset/base/188012 Log: o make SAVE_CCK slightly less error prone by always writing the _flag value used later by RESTORE_CCK o swap arg order in RESTORE_CCK to slightly reduce cost Modified:

svn commit: r188011 - head/sys/dev/ath/ath_hal/ar5212

2009-02-02 Thread Sam Leffler
Author: sam Date: Mon Feb 2 16:55:57 2009 New Revision: 188011 URL: http://svn.freebsd.org/changeset/base/188011 Log: restore variable initialization removed in r187831; this broke the horrible SAVE/RESTORE_CCK macros used by swan/nala cards to implement 11b using 11g Modified: head/sys/

svn commit: r188010 - head/etc/defaults

2009-02-02 Thread Mike Makonnen
Author: mtm Date: Mon Feb 2 15:38:24 2009 New Revision: 188010 URL: http://svn.freebsd.org/changeset/base/188010 Log: Since, rc.d/defaultroute has the ability to wait for a default route to show up we can turn this knob back on without screwing subsequent daemons that expect to be able to

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

2009-02-02 Thread Mike Makonnen
Author: mtm Date: Mon Feb 2 15:33:22 2009 New Revision: 188009 URL: http://svn.freebsd.org/changeset/base/188009 Log: The 30 second wait for network interfaces to show up effectively makes the time to boot an unplugged system 30 sec. longer for no good reason. Therefore, add a check to make

svn commit: r188008 - head/usr.sbin/fifolog/lib

2009-02-02 Thread Poul-Henning Kamp
Author: phk Date: Mon Feb 2 14:30:07 2009 New Revision: 188008 URL: http://svn.freebsd.org/changeset/base/188008 Log: The last sector in the first segment might just be a sync, increment before checking validity of segment two. Modified: head/usr.sbin/fifolog/lib/fifolog_reader.c Modified

svn commit: r188007 - head/usr.sbin/fifolog/lib

2009-02-02 Thread Poul-Henning Kamp
Author: phk Date: Mon Feb 2 14:29:15 2009 New Revision: 188007 URL: http://svn.freebsd.org/changeset/base/188007 Log: Don't overwrite it, if only one sector is written yet. Discovered by:"Dewayne Geraghty" Modified: head/usr.sbin/fifolog/lib/fifolog_write_poll.c Modified: hea

Re: svn commit: r188006 - in head/usr.bin: basename dirname

2009-02-02 Thread Gábor Kövesdán
Ed Schouten escribió: Hi Robert, * Robert Watson wrote: - (void)fprintf(stderr, "usage: dirname string\n"); + (void)fprintf(stderr, "usage: dirname string [...]\n"); Maybe we shouldn't use brackets here, like rm(1): usage: rm [-f | -i] [-dIPRrvW] file ... I'd

Re: svn commit: r188006 - in head/usr.bin: basename dirname

2009-02-02 Thread Christoph Mallon
Ed Schouten schrieb: Hi Robert, * Robert Watson wrote: - (void)fprintf(stderr, "usage: dirname string\n"); + (void)fprintf(stderr, "usage: dirname string [...]\n"); Maybe we shouldn't use brackets here, like rm(1): usage: rm [-f | -i] [-dIPRrvW] file ... Also there are

Re: svn commit: r188006 - in head/usr.bin: basename dirname

2009-02-02 Thread Ed Schouten
Hi Robert, * Robert Watson wrote: > - (void)fprintf(stderr, "usage: dirname string\n"); > + (void)fprintf(stderr, "usage: dirname string [...]\n"); Maybe we shouldn't use brackets here, like rm(1): usage: rm [-f | -i] [-dIPRrvW] file ... -- Ed Schouten WWW: http://80386.nl/

svn commit: r188006 - in head/usr.bin: basename dirname

2009-02-02 Thread Robert Watson
Author: rwatson Date: Mon Feb 2 11:19:56 2009 New Revision: 188006 URL: http://svn.freebsd.org/changeset/base/188006 Log: Alow dirname(1) to accept multiple arguments in the same way that basename(1) does. (Two different PRs contained identical patches, both cited below) PR:

svn commit: r188005 - head/sbin/ipfw

2009-02-02 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 2 11:02:19 2009 New Revision: 188005 URL: http://svn.freebsd.org/changeset/base/188005 Log: Explain that we assume AF_INET and only use the addr and port field from a struct sockaddr_in, so there is no need to initialize sin_len Modified: head/sbin/ipfw/ipfw2.c

svn commit: r188004 - head/sbin/ipfw

2009-02-02 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 2 10:58:05 2009 New Revision: 188004 URL: http://svn.freebsd.org/changeset/base/188004 Log: remove duplicate #include Modified: head/sbin/ipfw/dummynet.c Modified: head/sbin/ipfw/dummynet.c =

Re: svn commit: r188001 - head/usr.bin/make

2009-02-02 Thread M. Warner Losh
In message: <200902020625.n126pvt6083...@svn.freebsd.org> Max Khon writes: : Author: fjoe : Date: Mon Feb 2 06:25:57 2009 : New Revision: 188001 : URL: http://svn.freebsd.org/changeset/base/188001 : : Log: : Remove duplicate OPTFLAGS definition. Pointy hat to: imp@ Thanks Max. W