Re: tr A-Z a-z in locales other than C

2011-06-07 Thread perryh
Jilles Tjoelker wrote: > On Tue, Jun 07, 2011 at 04:24:43AM +0400, Andrey Chernov wrote: ... > > Back to the ports: it is not hard to run _any_ port's make > > or configure with LANG=C directly by the ports Mk system to > > eliminate that problem. > > True, but some ports install scripts with pro

Re: tr A-Z a-z in locales other than C

2011-06-07 Thread Andrey Chernov
On Tue, Jun 07, 2011 at 11:17:12PM +0200, Jilles Tjoelker wrote: > In FreeBSD, upper case sorts before lower case, so cases can be > distinguished this way but all letters may require two ranges. In most > other operating systems the cases go together so a single range is > sufficient, but cases ca

Re: tr A-Z a-z in locales other than C

2011-06-07 Thread Atom Smasher
On Wed, 8 Jun 2011, Jilles Tjoelker wrote: maybe another option would be modifying tr to recognize other [new] environment variables... TR_LANG, TR_LC_ALL, TR_LC_CTYPE and TR_LC_COLLATE. done that way, things could be set in /etc/make.conf (or sys.mk), not need any patching, and not interfere

Re: Testing a change to printf(9)

2011-06-07 Thread Julian Elischer
On 6/7/11 6:33 PM, Dieter BSD wrote: I've been working on fixing problems with printf(9), log(9) and related functions. Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console. Pr

Re: Testing a change to printf(9)

2011-06-07 Thread Dieter BSD
>> I've been working on fixing problems with printf(9), log(9) and >> related functions. Today I tried converting printf(9) to write >> to the log rather than directly to the console, unless the log is >> not open, in which case the message is also sent to the console. >> Printf(...) is now the sam

Re: sizeof(function pointer)

2011-06-07 Thread Johannes Totz
On 01/06/2011 00:07, m...@freebsd.org wrote: > I am looking into potentially MFC'ing r212367 and related, that adds > drains to sbufs. The reason for MFC is that several pieces of new > code in CURRENT are using the drain functionality and it would make > MFCing those changes much easier. > > The

Re: Check for 0 ino_t in readdir(3)

2011-06-07 Thread Rick Macklem
mdf wrote: > There is a check in the function implementing readdir(3) for a zero > inode number: > > struct dirent * > _readdir_unlocked(dirp, skip) > DIR *dirp; > int skip; > { > /* ... */ > if (dp->d_ino == 0 && skip) > continue; > /* ... */ > } > > "skip" is 1 except for when coming from _seek

Re: tr A-Z a-z in locales other than C

2011-06-07 Thread Jilles Tjoelker
On Wed, Jun 08, 2011 at 09:56:39AM +1200, Atom Smasher wrote: > the man page makes it clear... > Translate the contents of file1 to upper-case. > tr "[:lower:]" "[:upper:]" < file1 > (This should be preferred over the traditional UNIX idiom of ``tr a-z > A-Z'', sinc

Re: tr A-Z a-z in locales other than C

2011-06-07 Thread Atom Smasher
the man page makes it clear... Translate the contents of file1 to upper-case. tr "[:lower:]" "[:upper:]" < file1 (This should be preferred over the traditional UNIX idiom of ``tr a-z A-Z'', since it works correctly in all locales.) for any other uses, either build

Re: Testing a change to printf(9)

2011-06-07 Thread Julian Elischer
On 6/7/11 12:57 PM, Dieter BSD wrote: I've been working on fixing problems with printf(9), log(9) and related functions. Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console.

Re: tr A-Z a-z in locales other than C

2011-06-07 Thread Jilles Tjoelker
On Tue, Jun 07, 2011 at 04:24:43AM +0400, Andrey Chernov wrote: > On Tue, Jun 07, 2011 at 12:41:05AM +0200, Jilles Tjoelker wrote: > > There is a related issue with ranges in regular expressions, glob and > > fnmatch (likewise unspecified by POSIX outside the POSIX locale), but > > this is less li

Testing a change to printf(9)

2011-06-07 Thread Dieter BSD
I've been working on fixing problems with printf(9), log(9) and related functions.  Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console. Printf(...) is now the same as log(LOG_I

Check for 0 ino_t in readdir(3)

2011-06-07 Thread mdf
There is a check in the function implementing readdir(3) for a zero inode number: struct dirent * _readdir_unlocked(dirp, skip) DIR *dirp; int skip; { /* ... */ if (dp->d_ino == 0 && skip) continue; /* ... */ } "skip" is 1 ex

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-07 Thread K. Macy
All 10GigE NICs and some newer 10 GigE NICs have multiple hardware queues with a separate MSI-x vector per queue, where each vector is directed to a different CPU. The current operating model is to have a separate interrupt thread per vector. This obviously gets bogged down if one has multiple card