svn commit: r210365 - in head/sys: kern sys

2010-07-21 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jul 22 05:42:29 2010 New Revision: 210365 URL: http://svn.freebsd.org/changeset/base/210365 Log: Remove spurious '/*-' marks and fix some other style problems. Submitted by: bde@ Modified: head/sys/kern/init_main.c head/sys/kern/uipc_usrreq.c head/sys/sys/disk

svn commit: r210361 - head/share/misc

2010-07-21 Thread Andrew Turner
Author: andrew Date: Wed Jul 21 21:23:23 2010 New Revision: 210361 URL: http://svn.freebsd.org/changeset/base/210361 Log: - Add myself to committers-src.dot Approved by: imp (mentor) Modified: head/share/misc/committers-src.dot Modified: head/share/misc/committers-src.dot =

svn commit: r210358 - head/sys/dev/arcmsr

2010-07-21 Thread Xin LI
Author: delphij Date: Wed Jul 21 18:50:24 2010 New Revision: 210358 URL: http://svn.freebsd.org/changeset/base/210358 Log: Apply vendor version 1.20.00.17. This version adds support for ARC1880; additionally this version fixed an issue where all devices on a SAS port gets offlined when an

svn commit: r210357 - head/sys/i386/include

2010-07-21 Thread Rui Paulo
Author: rpaulo Date: Wed Jul 21 18:47:52 2010 New Revision: 210357 URL: http://svn.freebsd.org/changeset/base/210357 Log: MFamd64: Add USD_GETBASE(), USD_SETBASE(), USD_GETLIMIT() and USD_SETLIMIT(). Modified: head/sys/i386/include/segments.h Modified: head/sys/i386/include/segments.h ==

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Ed Schouten
* Alexey Dokuchaev wrote: > Second, I think > blindly converting tabs to spaces would bring even more mess to > alignment than we happen to have now. In what kind of way? -- Ed Schouten WWW: http://80386.nl/ pgpTQmHFYprSv.pgp Description: PGP signature

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Alexey Dokuchaev
On Wed, Jul 21, 2010 at 06:58:49PM +0200, Ed Schouten wrote: > * Ed Schouten wrote: > > * Alexey Dokuchaev wrote: > > > (Just picking random of the similar commits): guys, please, try to > > > uniformly align commit meta tags: > > > > I guess it was aligned properly using tabs, but the whitespac

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Ed Schouten
* Ed Schouten wrote: > * Alexey Dokuchaev wrote: > > (Just picking random of the similar commits): guys, please, try to > > uniformly align commit meta tags: > > I guess it was aligned properly using tabs, but the whitespace added to > the beginning of the line causes it to jump one tab forward.

Re: svn commit: r210350 - head/sys/netinet6

2010-07-21 Thread Remko Lodder
On Jul 21, 2010, at 3:01 PM, Bjoern A. Zeeb wrote: > Author: bz > Date: Wed Jul 21 13:01:21 2010 > New Revision: 210350 > URL: http://svn.freebsd.org/changeset/base/210350 > > Log: > Since r186119 IP6 input counters for octets and packets were not > working anymore. In addition more checks an

svn commit: r210353 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:29:00 2010 New Revision: 210353 URL: http://svn.freebsd.org/changeset/base/210353 Log: * Remove a superfluous error description. * Document an additional error that may be returned: `ELF_E_ARCHIVE`. Obtained from:elftoolchain MFC after:

svn commit: r210352 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:23:07 2010 New Revision: 210352 URL: http://svn.freebsd.org/changeset/base/210352 Log: Add a cross-reference to `elf_rawfile(3)`. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_getdata.3 Modified: head/li

svn commit: r210351 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:18:57 2010 New Revision: 210351 URL: http://svn.freebsd.org/changeset/base/210351 Log: * Note that ar(1) archives may also be opened using `elf_memory(3)`. * Ignore the passed in value of the `fd` argument for ar(1) archives opened with elf_memory(3).

svn commit: r210350 - head/sys/netinet6

2010-07-21 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jul 21 13:01:21 2010 New Revision: 210350 URL: http://svn.freebsd.org/changeset/base/210350 Log: Since r186119 IP6 input counters for octets and packets were not working anymore. In addition more checks and operations were missing. In case lla_lookup results in a mat

svn commit: r210349 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:00:01 2010 New Revision: 210349 URL: http://svn.freebsd.org/changeset/base/210349 Log: Remove a redundant word. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf.3 Modified: head/lib/libelf/elf.3 ===

svn commit: r210348 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:54:34 2010 New Revision: 210348 URL: http://svn.freebsd.org/changeset/base/210348 Log: Move helper functions `_libelf_ar_get_{name,number,string}()` and `_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c" to break the circular dependency between

svn commit: r210347 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:30:58 2010 New Revision: 210347 URL: http://svn.freebsd.org/changeset/base/210347 Log: Fix a memory leak. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_update.c Modified: head/lib/libelf/elf_update.c ===

svn commit: r210346 - head/sys/kern

2010-07-21 Thread Alexander Motin
Author: mav Date: Wed Jul 21 12:23:49 2010 New Revision: 210346 URL: http://svn.freebsd.org/changeset/base/210346 Log: Use proper sysctl type (quad) for et_frequency. It fixes output on sparc64. Modified: head/sys/kern/kern_et.c Modified: head/sys/kern/kern_et.c =

svn commit: r210345 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:14:50 2010 New Revision: 210345 URL: http://svn.freebsd.org/changeset/base/210345 Log: * Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()` respectively. * A

Re: svn commit: r210254 - in head/etc: defaults periodic/security

2010-07-21 Thread Jilles Tjoelker
On Tue, Jul 20, 2010 at 08:03:33PM +0300, Alex Kozlov wrote: > On Tue, Jul 20, 2010 at 05:25:05PM +0300, Alex Kozlov wrote: > > > > + echo ${name}: ${one} > > > > > > This handles pathnames with spaces incorrectly. Consider reading lines > > > with > > > IFS= read -

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Alexey Dokuchaev
On Wed, Jul 21, 2010 at 07:51:49PM +1000, Bruce Evans wrote: > On Wed, 21 Jul 2010, Alexey Dokuchaev wrote: > >On Wed, Jul 21, 2010 at 08:43:48AM +, Kai Wang wrote: > >>Log: > >> Remove a superfluous comment. > >> > >> Obtained from: elftoolchain > >> MFC after: 1 month >

svn commit: r210344 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 11:26:18 2010 New Revision: 210344 URL: http://svn.freebsd.org/changeset/base/210344 Log: Avoid switching between "unsigned char" and "char" in the C code generated from "libelf_convert.m4". Obtained from:elftoolchain MFC after:1 month

svn commit: r210341 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:57:22 2010 New Revision: 210341 URL: http://svn.freebsd.org/changeset/base/210341 Log: Add support for translating sections of type ELF_T_GNUHASH. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_types.m4

svn commit: r210340 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:39:29 2010 New Revision: 210340 URL: http://svn.freebsd.org/changeset/base/210340 Log: - Document that the *fsize() functions return a size of 1 for Elf types that don't have a fixed size. - The *fsize() functions should return a size of 1, for variable len

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Dag-Erling Smørgrav
Alexey Dokuchaev writes: > Obtained from:somewhere > MFC after:sometime > Foo bar: baz qux ... > > Broken alignment considerably pessimizes commit log grasping, as it > requires more post-processing work after reading it off. my ($tag, $value) = split(/:\s*/); but perhaps it's c

svn commit: r210338 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:25:02 2010 New Revision: 210338 URL: http://svn.freebsd.org/changeset/base/210338 Log: Perform additional checks when translating between file and memory representations of ELF types. The ELF(3) API allows applications to request a conversion that is `in

svn commit: r210337 - head/sys/kern

2010-07-21 Thread Attilio Rao
Author: attilio Date: Wed Jul 21 10:14:04 2010 New Revision: 210337 URL: http://svn.freebsd.org/changeset/base/210337 Log: Probabilly defaulting to KTR_GEN is not the right decision when KTR_MASK is not defined at all because KTR_GEN is still a valid class and some traces may fit in. Default

svn commit: r210336 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:11:46 2010 New Revision: 210336 URL: http://svn.freebsd.org/changeset/base/210336 Log: Reduce verbosity. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf_fsize.m4 Modified: head/lib/libelf/libelf_fsize.m

svn commit: r210335 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:08:25 2010 New Revision: 210335 URL: http://svn.freebsd.org/changeset/base/210335 Log: - Return zero for file sizes of ELF types that have a variable size. - Neaten a few comments. Obtained from:elftoolchain MFC after:1 month Modifie

svn commit: r210334 - in head/sys: dev/cas dev/gem dev/hme sparc64/include sparc64/sparc64 sun4v/include sys

2010-07-21 Thread Attilio Rao
Author: attilio Date: Wed Jul 21 10:05:07 2010 New Revision: 210334 URL: http://svn.freebsd.org/changeset/base/210334 Log: KTR_CTx are long time aliased by existing classes so they can't serve their purpose anymore. Axe them out. Sponsored by: Sandvine Incorporated Discussed with:

svn commit: r210333 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:02:59 2010 New Revision: 210333 URL: http://svn.freebsd.org/changeset/base/210333 Log: Note that the *_fsize() functions are only defined for ELF types that have a fixed size. Obtained from:elftoolchain MFC after:1 month Modified:

svn commit: r210332 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:56:42 2010 New Revision: 210332 URL: http://svn.freebsd.org/changeset/base/210332 Log: Changes for supporting GNU Hash sections. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf_align.c head/lib/libelf/

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Bruce Evans
On Wed, 21 Jul 2010, Alexey Dokuchaev wrote: On Wed, Jul 21, 2010 at 08:43:48AM +, Kai Wang wrote: Log: Remove a superfluous comment. Obtained from: elftoolchain MFC after: 1 month (Just picking random of the similar commits): guys, please, try to uniformly alig

svn commit: r210331 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:51:24 2010 New Revision: 210331 URL: http://svn.freebsd.org/changeset/base/210331 Log: Add a new ELF type denoting GNU style hash tables. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf.h Modified: head

svn commit: r210330 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:47:14 2010 New Revision: 210330 URL: http://svn.freebsd.org/changeset/base/210330 Log: Allow an application that updates only the ELF Ehdr to work. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/_libelf.h he

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

2010-07-21 Thread Bruce Evans
On Wed, 21 Jul 2010, Ivan Voras wrote: On 21 July 2010 06:18, Bruce Evans wrote: On Mon, 19 Jul 2010, John Baldwin wrote: Log: ??In keeping with the Age-of-the-fruitbat theme, scale up hirunningspace on ??machines which can clearly afford the memory. ??This is a somewhat conservative versio

svn commit: r210329 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:33:45 2010 New Revision: 210329 URL: http://svn.freebsd.org/changeset/base/210329 Log: Use to declare the prototype for ftruncate(). Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_begin.c Modified: head/

svn commit: r210328 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:27:16 2010 New Revision: 210328 URL: http://svn.freebsd.org/changeset/base/210328 Log: Bug fix: permit the creation of zero-sized sections. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_update.c Modified

svn commit: r210327 - in head/sys: mips/include mips/mips vm

2010-07-21 Thread Jayachandran C.
Author: jchandra Date: Wed Jul 21 09:27:00 2010 New Revision: 210327 URL: http://svn.freebsd.org/changeset/base/210327 Log: Redo the page table page allocation on MIPS, as suggested by a...@. The UMA zone based allocation is replaced by a scheme that creates a new free page list for the

svn commit: r210326 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:20:40 2010 New Revision: 210326 URL: http://svn.freebsd.org/changeset/base/210326 Log: Improve compatibility with other implementations of the ELF(3) API: when an output file has no program headers, set the 'e_phentsize' field of the ELF executable header to

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Kai Wang
On Wed, Jul 21, 2010 at 09:06:23AM +, Alexey Dokuchaev wrote: > On Wed, Jul 21, 2010 at 08:43:48AM +, Kai Wang wrote: > > Author: kaiw > > Date: Wed Jul 21 08:43:48 2010 > > New Revision: 210321 > > URL: http://svn.freebsd.org/changeset/base/210321 > > > > Log: > > Remove a superfluous c

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Ed Schouten
* Alexey Dokuchaev wrote: > (Just picking random of the similar commits): guys, please, try to > uniformly align commit meta tags: I guess it was aligned properly using tabs, but the whitespace added to the beginning of the line causes it to jump one tab forward. -- Ed Schouten WWW: http://8

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Alexey Dokuchaev
On Wed, Jul 21, 2010 at 08:43:48AM +, Kai Wang wrote: > Author: kaiw > Date: Wed Jul 21 08:43:48 2010 > New Revision: 210321 > URL: http://svn.freebsd.org/changeset/base/210321 > > Log: > Remove a superfluous comment. > > Obtained from: elftoolchain > MFC after: 1 mont

Re: svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Kai Wang
On Wed, Jul 21, 2010 at 10:51:17AM +0200, Roman Divacky wrote: > On Wed, Jul 21, 2010 at 08:54:46AM +, Kai Wang wrote: > > Author: kaiw > > Date: Wed Jul 21 08:54:46 2010 > > New Revision: 210324 > > URL: http://svn.freebsd.org/changeset/base/210324 > > > > Log: > > - Correctly handle sectio

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

2010-07-21 Thread Ivan Voras
On 21 July 2010 06:18, Bruce Evans wrote: > On Mon, 19 Jul 2010, John Baldwin wrote: > >>> Log: >>>  In keeping with the Age-of-the-fruitbat theme, scale up hirunningspace >>> on >>>  machines which can clearly afford the memory. >>> >>>  This is a somewhat conservative version of the patch - more

svn commit: r210325 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 08:58:52 2010 New Revision: 210325 URL: http://svn.freebsd.org/changeset/base/210325 Log: Bug fix: when updating headers using the gelf_update_*() functions, the appropriate `dirty' bit needs to be set for both the Elf32 and Elf64 case. Obtained from:

Re: svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Roman Divacky
On Wed, Jul 21, 2010 at 08:54:46AM +, Kai Wang wrote: > Author: kaiw > Date: Wed Jul 21 08:54:46 2010 > New Revision: 210324 > URL: http://svn.freebsd.org/changeset/base/210324 > > Log: > - Correctly handle sections of type SHT_NOBITS. For these sections: > - elf_getdata() and elf_rawda

svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 08:54:46 2010 New Revision: 210324 URL: http://svn.freebsd.org/changeset/base/210324 Log: - Correctly handle sections of type SHT_NOBITS. For these sections: - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure that has its "d_buf" memb

svn commit: r210323 - head/lib/libc/gen

2010-07-21 Thread Ed Schouten
Author: ed Date: Wed Jul 21 08:51:38 2010 New Revision: 210323 URL: http://svn.freebsd.org/changeset/base/210323 Log: Also link getutxent.3 to utmpx.3. If you run `man utmpx', you expect to get some info on it. Modified: head/lib/libc/gen/Makefile.inc Modified: head/lib/libc/gen/Makefil

svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 08:43:48 2010 New Revision: 210321 URL: http://svn.freebsd.org/changeset/base/210321 Log: Remove a superfluous comment. Obtained from: elftoolchain MFC after: 1 month Modified: head/lib/libelf/elf_update.c Modified: head/lib/libelf/elf

svn commit: r210320 - head/tools/build/mk

2010-07-21 Thread Ed Schouten
Author: ed Date: Wed Jul 21 08:27:56 2010 New Revision: 210320 URL: http://svn.freebsd.org/changeset/base/210320 Log: Chase LLVM version bump to 2.8. Modified: head/tools/build/mk/OptionalObsoleteFiles.inc Modified: head/tools/build/mk/OptionalObsoleteFiles.inc ==