Re: svn commit: r187700 - head/lib/libc/string

2009-01-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Kaduk wrote: [...] >> + * >> + * This is more than 5.2 times as compared to the raw implementation >> + * on Intel T7300 under EM64T mode for strings longer than word length. > > The grammar is not quite right, here. Did you mean to say "more tha

svn commit: r187707 - head/lib/libc/string

2009-01-25 Thread Xin LI
Author: delphij Date: Mon Jan 26 07:31:28 2009 New Revision: 187707 URL: http://svn.freebsd.org/changeset/base/187707 Log: - Fix grammar. [1] - Use the correct term 'long mode'. [2] - style(9) for return value. [3] Submitted by: Ben Kaduk [1], obrien [2], scf [3] Mo

svn commit: r187704 - in head/lib/libarchive: . test

2009-01-25 Thread Tim Kientzle
Author: kientzle Date: Mon Jan 26 05:44:40 2009 New Revision: 187704 URL: http://svn.freebsd.org/changeset/base/187704 Log: Fix ARCHIVE_EXTRACT_SPARSE handling in libarchive. Add a test to exercise this feature. This should fix --sparse/-S support in tar. Thanks to: Daichi GOTO M

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread M. Warner Losh
In message: <7d6fde3d0901251822o41b128c0h5770ecbcf407e...@mail.gmail.com> Garrett Cooper writes: : On Sun, Jan 25, 2009 at 4:35 PM, M. Warner Losh wrote: : > In message: <20090125235322.gb25...@dragon.nuxi.org> : >"David O'Brien" writes: : > : On Mon, Jan 19, 2009 at 07:1

Re: svn commit: r187700 - head/lib/libc/string

2009-01-25 Thread Ben Kaduk
On Sun, Jan 25, 2009 at 6:08 PM, Xin LI wrote: > Author: delphij > Date: Sun Jan 25 23:08:47 2009 > New Revision: 187700 > URL: http://svn.freebsd.org/changeset/base/187700 > > Log: > Rewrite of MI strlen(3) in a way that can better utilize modern hardware by > reducing branches and doing word-s

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread Garrett Cooper
On Sun, Jan 25, 2009 at 6:22 PM, Garrett Cooper wrote: > On Sun, Jan 25, 2009 at 4:35 PM, M. Warner Losh wrote: >> In message: <20090125235322.gb25...@dragon.nuxi.org> >>"David O'Brien" writes: >> : On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: >> : > I'm >> : > gla

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread Garrett Cooper
On Sun, Jan 25, 2009 at 4:35 PM, M. Warner Losh wrote: > In message: <20090125235322.gb25...@dragon.nuxi.org> >"David O'Brien" writes: > : On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: > : > I'm > : > glad JUNOS can build inside its own VM. Kudos. But given that th

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread Garrett Cooper
On Sun, Jan 25, 2009 at 4:35 PM, M. Warner Losh wrote: > In message: <20090125235013.ga25...@dragon.nuxi.org> >"David O'Brien" writes: > : On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: > : > In message: <20090120012256.gb29...@dragon.nuxi.org> "David O'Brien" > wri

svn commit: r187703 - head/share/man/man7

2009-01-25 Thread Tom Rhodes
Author: trhodes Date: Mon Jan 26 02:15:22 2009 New Revision: 187703 URL: http://svn.freebsd.org/changeset/base/187703 Log: Better description of kern.ipc.maxpipekva. Discussed with: kib Modified: head/share/man/man7/tuning.7 Modified: head/share/man/man7/tuning.7 =

svn commit: r187702 - head/share/man/man4/man4.powerpc

2009-01-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 26 01:08:24 2009 New Revision: 187702 URL: http://svn.freebsd.org/changeset/base/187702 Log: Somehow deleted the .4 at the end of the snd_davbus man page right before commit. Add it back. Pointy hat to:me Modified: head/share/man/man4/man4.power

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread M. Warner Losh
In message: <20090125235013.ga25...@dragon.nuxi.org> "David O'Brien" writes: : On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: : > In message: <20090120012256.gb29...@dragon.nuxi.org> "David O'Brien" writes: : > : On Mon, Jan 19, 2009 at 06:14:35PM -0700, M. Warner Lo

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread M. Warner Losh
In message: <20090125235322.gb25...@dragon.nuxi.org> "David O'Brien" writes: : On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: : > I'm : > glad JUNOS can build inside its own VM. Kudos. But given that the : > world is much more than a tightly controlled development en

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread David O'Brien
On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: > I'm > glad JUNOS can build inside its own VM. Kudos. But given that the > world is much more than a tightly controlled development environment > at a well funded company, I think that we need to be more > accommodating. Especially

Re: svn commit: r187332 - head/tools/regression/usr.bin/jot

2009-01-25 Thread David O'Brien
On Mon, Jan 19, 2009 at 07:12:38PM -0700, M. Warner Losh wrote: > In message: <20090120012256.gb29...@dragon.nuxi.org> "David O'Brien" > writes: > : On Mon, Jan 19, 2009 at 06:14:35PM -0700, M. Warner Losh wrote: > : > In message: <20090119165030.ga18...@dragon.nuxi.org> "David O'Brien" > write

svn commit: r187700 - head/lib/libc/string

2009-01-25 Thread Xin LI
Author: delphij Date: Sun Jan 25 23:08:47 2009 New Revision: 187700 URL: http://svn.freebsd.org/changeset/base/187700 Log: Rewrite of MI strlen(3) in a way that can better utilize modern hardware by reducing branches and doing word-sized operation. The idea is taken from J.T. Conklin's x8

Re: svn commit: r187697 - stable/7/sbin/atacontrol

2009-01-25 Thread Bruce Simpson
Antoine Brodin wrote: Author: antoine Date: Sun Jan 25 19:35:23 2009 New Revision: 187697 URL: http://svn.freebsd.org/changeset/base/187697 Log: MFC r181349 to stable/7: Make atacontrol(8) rebuild work when /usr is not mounted or from /rescue Thanks for this. I didn't realize that dd

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

2009-01-25 Thread Jeff Roberson
On Sun, 25 Jan 2009, Sam Leffler wrote: Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 07:24:34 2009 New Revision: 187677 URL: http://svn.freebsd.org/changeset/base/187677 Log: Fix errors introduced when I rewrote select. - Restructure selscan() and selrescan() to avoid producing extr

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

2009-01-25 Thread Sam Leffler
Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 07:24:34 2009 New Revision: 187677 URL: http://svn.freebsd.org/changeset/base/187677 Log: Fix errors introduced when I rewrote select. - Restructure selscan() and selrescan() to avoid producing extra selfps when we have a fd in multipl

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

2009-01-25 Thread Jeff Roberson
On Sun, 25 Jan 2009, Christoph Mallon wrote: Jeff Roberson schrieb: On Sun, 25 Jan 2009, Christoph Mallon wrote: Jeff Roberson schrieb: On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187

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

2009-01-25 Thread Christoph Mallon
Jeff Roberson schrieb: On Sun, 25 Jan 2009, Christoph Mallon wrote: Jeff Roberson schrieb: On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187693 Log: - bit has to be fd_mask to work prop

svn commit: r187697 - stable/7/sbin/atacontrol

2009-01-25 Thread Antoine Brodin
Author: antoine Date: Sun Jan 25 19:35:23 2009 New Revision: 187697 URL: http://svn.freebsd.org/changeset/base/187697 Log: MFC r181349 to stable/7: Make atacontrol(8) rebuild work when /usr is not mounted or from /rescue PR: bin/125680 MFC after: 1 month Teste

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

2009-01-25 Thread Jeff Roberson
On Sun, 25 Jan 2009, Christoph Mallon wrote: Jeff Roberson schrieb: On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187693 Log: - bit has to be fd_mask to work properly on 64bit platforms.

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

2009-01-25 Thread Christoph Mallon
Jeff Roberson schrieb: On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187693 Log: - bit has to be fd_mask to work properly on 64bit platforms. Constants must also be cast even though t

svn commit: r187694 - head

2009-01-25 Thread Antoine Brodin
Author: antoine Date: Sun Jan 25 19:03:30 2009 New Revision: 187694 URL: http://svn.freebsd.org/changeset/base/187694 Log: Add obsolete files after tzdata2009a and file 4.26 imports Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

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

2009-01-25 Thread Jeff Roberson
On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187693 Log: - bit has to be fd_mask to work properly on 64bit platforms. Constants must also be cast even though the result ultimately is

svn commit: r187693 - head/sys/kern

2009-01-25 Thread Jeff Roberson
Author: jeff Date: Sun Jan 25 18:38:42 2009 New Revision: 187693 URL: http://svn.freebsd.org/changeset/base/187693 Log: - bit has to be fd_mask to work properly on 64bit platforms. Constants must also be cast even though the result ultimately is promoted to 64bit. - Correct a loop

Re: svn commit: r187607 - head/usr.bin/truss

2009-01-25 Thread Bruce Evans
On Sun, 25 Jan 2009, Ed Schouten wrote: * Bruce Evans wrote: I think it is the longstanding kernel bug in permissions checking generally, that the init process and some other non-kernel processes are bogusly marked as P_SYSTEM. I use the following fix (this may be incomplete): I just look

svn commit: r187692 - in head: share/man/man4/man4.powerpc sys/conf sys/dev/sound/macio sys/modules/sound/driver sys/modules/sound/driver/ai2s sys/modules/sound/driver/davbus sys/powerpc/conf

2009-01-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jan 25 18:20:15 2009 New Revision: 187692 URL: http://svn.freebsd.org/changeset/base/187692 Log: Add support for the I2S and davbus audio controllers found in Apple PowerPC hardware. Submitted by: Marco Trillo Added: head/share/man/man4/man4.powerpc/snd_ai2

Re: svn commit: r187607 - head/usr.bin/truss

2009-01-25 Thread Ed Schouten
Hello Bruce, * Bruce Evans wrote: > I think it is the longstanding kernel bug in permissions checking > generally, that the init process and some other non-kernel processes > are bogusly marked as P_SYSTEM. I use the following fix (this may > be incomplete): > > I just looked at the patch and

svn commit: r187691 - head/sys/powerpc/powerpc

2009-01-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jan 25 17:50:53 2009 New Revision: 187691 URL: http://svn.freebsd.org/changeset/base/187691 Log: Fix a race condition where interrupts set up after boot could be enabled in the PIC before the interrupt handler was set. If the interrupt triggered in that window, t

Re: svn commit: r187607 - head/usr.bin/truss

2009-01-25 Thread Bruce Evans
On Sun, 25 Jan 2009, Ed Schouten wrote: Hello Tom, * Tom Rhodes wrote: Author: trhodes Date: Fri Jan 23 00:58:14 2009 New Revision: 187607 URL: http://svn.freebsd.org/changeset/base/187607 Log: Attaching to the init process returns EINVAL, so give an example that is more likely to work.

svn commit: r187690 - in stable/7/sys: . contrib/pf dev/cxgb kern

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 16:59:29 2009 New Revision: 187690 URL: http://svn.freebsd.org/changeset/base/187690 Log: MFC r186747 to releng/7: Remove Giant locking from domains list. During boot, the domain list is locked with Giant. It is not possible to register any protocols

svn commit: r187689 - head/sys/contrib/pf/net

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 16:52:41 2009 New Revision: 187689 URL: http://svn.freebsd.org/changeset/base/187689 Log: Revert my previous two changes. Even though the code seems to be FreeBSD kernel code, it isn't compiled on FreeBSD. I could have known this, because I was a little amazed

Re: svn commit: r187607 - head/usr.bin/truss

2009-01-25 Thread Ed Schouten
Hello Tom, * Tom Rhodes wrote: > Author: trhodes > Date: Fri Jan 23 00:58:14 2009 > New Revision: 187607 > URL: http://svn.freebsd.org/changeset/base/187607 > > Log: > Attaching to the init process returns EINVAL, > so give an example that is more likely to work. > Stolen from the ktrace(1

svn commit: r187688 - head/sys/contrib/pf/net

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 14:39:15 2009 New Revision: 187688 URL: http://svn.freebsd.org/changeset/base/187688 Log: Remove pfopen() and pfclose() entirely. It turns out I was patching functions that weren't used by pf(4) anyway. They still seem to use `struct proc *' instead of `struct

svn commit: r187687 - head/sys/contrib/pf/net

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 14:00:00 2009 New Revision: 187687 URL: http://svn.freebsd.org/changeset/base/187687 Log: Remove unneeded checking for invalid minor numbers from pf(4). Because it is not possible to access the pf(4) character device through any other device node as the one in

svn commit: r187686 - head/sys/kern

2009-01-25 Thread Robert Watson
Author: rwatson Date: Sun Jan 25 12:07:43 2009 New Revision: 187686 URL: http://svn.freebsd.org/changeset/base/187686 Log: When a statically linked binary is executed (or at least, one without an interpreter definition in its program header), set the auxiliary ELF argument AT_BASE to 0 rathe

svn commit: r187685 - head/etc

2009-01-25 Thread Bjoern A. Zeeb
Author: bz Date: Sun Jan 25 10:31:45 2009 New Revision: 187685 URL: http://svn.freebsd.org/changeset/base/187685 Log: Instead of killing the 'watchdog' subshell and leaving a sleep for rcshutdown_timeout (normally 30s) around re-parented to init, make sure both go away using pkill -P. W

svn commit: r187684 - in head/sys: kern net netinet netinet6 sys

2009-01-25 Thread Bjoern A. Zeeb
Author: bz Date: Sun Jan 25 10:11:58 2009 New Revision: 187684 URL: http://svn.freebsd.org/changeset/base/187684 Log: For consistency with prison_{local,remote,check}_ipN rename prison_getipN to prison_get_ipN. Submitted by: jamie (as part of a larger patch) MFC after:1 week Modifi

svn commit: r187683 - head/sys/dev/speaker

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 09:20:59 2009 New Revision: 187683 URL: http://svn.freebsd.org/changeset/base/187683 Log: Remove unneeded checks of device unit number from speaker(4). Calls on the cdev can only be made on existing devices. This means we don't have to check the value of dev2un

svn commit: r187682 - head/sys/kern

2009-01-25 Thread Jeff Roberson
Author: jeff Date: Sun Jan 25 09:17:16 2009 New Revision: 187682 URL: http://svn.freebsd.org/changeset/base/187682 Log: - Correct a typo in a comment. Noticed by: danger Modified: head/sys/kern/sys_generic.c Modified: head/sys/kern/sys_generic.c ==

Re: svn commit: r187681 - in head/sys: kern vm

2009-01-25 Thread Jeff Roberson
On Sun, 25 Jan 2009, Jeff Roberson wrote: Author: jeff Date: Sun Jan 25 09:11:24 2009 New Revision: 187681 URL: http://svn.freebsd.org/changeset/base/187681 Log: - Make the keg abstraction more complete. Permit a zone to have multiple backend kegs so it may source compatible memory from

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

2009-01-25 Thread Jeff Roberson
Author: jeff Date: Sun Jan 25 09:11:24 2009 New Revision: 187681 URL: http://svn.freebsd.org/changeset/base/187681 Log: - Make the keg abstraction more complete. Permit a zone to have multiple backend kegs so it may source compatible memory from multiple backends. This is useful for

svn commit: r187680 - head/sys/kern

2009-01-25 Thread Ed Schouten
Author: ed Date: Sun Jan 25 08:27:11 2009 New Revision: 187680 URL: http://svn.freebsd.org/changeset/base/187680 Log: Remove unneeded use of device unit numbers from pty(4). A much more simple approach to generate the slave device name, is to obtain the device name of the master and repla