Re: gnu math library

2007-02-02 Thread Ben Pfaff
[EMAIL PROTECTED] (Karl Berry) writes: > There is an ancient GNU package called variously "GNU Math" and "GNU > SSL" (no relation to the cryptographic ssl). The last release was in > 1996, at ftp://ftp.gnu.org/gnu/gnussl. It contains some routines > written in C++ for matrix operations and maybe

Re: portability checks, errors and warnings

2007-02-02 Thread Bruno Haible
Paul Eggert wrote: > > Therefore all problems that installers would face from this technique > > will be noticeable by the maintainer already. > > No, because the code might look like this (taken from mountlist): > > #ifdef MOUNTED_VMOUNT /* AIX. */ > ... > ignore = strstr (optio

Re: pwd fails to traverse unreadable directory

2007-02-02 Thread Jim Meyering
Thank you for reporting that! I've just checked in the patch below. I'll add tests to coreutils some time next week. This bug affects only systems with openat support (glibc-2.4 and newer and Solaris 10). 2007-02-03 Jim Meyering <[EMAIL PROTECTED]> Make pwd and readlink work also when

Re: portability checks, errors and warnings

2007-02-02 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Therefore all problems that installers would face from this technique > will be noticeable by the maintainer already. No, because the code might look like this (taken from mountlist): #ifdef MOUNTED_VMOUNT /* AIX. */ ... ignore = st

Re: enforcing the use of string.h related modules

2007-02-02 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > I reverted the mountlist change, thanks to Bruno's string_.h latest patch not > being so vocal about the use of strstr. This brings both regex and mountlist > back to their state prior to the string link warnings, No it doesn't; regex still has a mempcp

gnu math library

2007-02-02 Thread Karl Berry
There is an ancient GNU package called variously "GNU Math" and "GNU SSL" (no relation to the cryptographic ssl). The last release was in 1996, at ftp://ftp.gnu.org/gnu/gnussl. It contains some routines written in C++ for matrix operations and maybe other stuff, including Fourier transforms, it s

Re: [bug-gnulib] malloc strategies

2007-02-02 Thread Bruno Haible
Andi Kleen wrote: > For allocating memory that big it would be far better to just use mmap() > with the full range and let the kernel serve you freshly zeroed memory > on demand as you touch it. It's malloc's job to do that, and glibc's malloc implementation does this. Do you know of a system wh

Re: xalloc.h (x2nrealloc): Don't always double the buffer size.

2007-02-02 Thread Andi Kleen
On Friday 02 February 2007 00:52, Jim Meyering wrote: > The length of the string being searched matters. More precisely, > it's the offsets (into the buffer being searched) of the beginning > and end of the match. I see. > I've just changed xalloc's x2nrealloc to do n = 3n/2, rather than n *= 2

arpa_inet fix

2007-02-02 Thread Jim Meyering
coreutils didn't bootstrap, due to a syntax error (AC_PROG_MKDIR_P) in its generated lib/Makefile. I fixed it with this: * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac: section, not in the Makefile.am: one. Index: modules/arpa_inet ==

Re: proposed 'string' module for gnulib

2007-02-02 Thread Eric Blake
Paul Eggert CS.UCLA.EDU> writes: > I'd like to add a 'string' module to gnulib, which does for > what the sys_time module does for , namely, sets up a > substitute string.h that has needed GNU declarations. That way, > we don't need to worry about the little include files like "strstr.h" > whic

Re: enforcing the use of string.h related modules

2007-02-02 Thread Eric Blake
Paul Eggert CS.UCLA.EDU> writes: > > Eric Blake byu.net> writes: > > > * modules/mountlist (Depends-on): Add strstr > > The other parts of your patch might be needed, but these aren't quite > right. As far as I can tell, regex does not depend on mempcpy, nor > does mountlist depend on st

Re: [bug-gnulib] enforcing the use of string.h related modules

2007-02-02 Thread Bruno Haible
Eric Blake wrote: > > The Makefile dependency would be highly annoying. Many users don't use the > > automake option 'no-dependencies', therefore use full dependencies. > > A rebuild or modification of a generated header file like string.h or > > unistd.h > > causes large parts of the package to b

Re: socklen problems with Libgcrypt 1.2.4 on mingw32

2007-02-02 Thread Simon Josefsson
Werner Koch <[EMAIL PROTECTED]> writes: > On Fri, 2 Feb 2007 11:37, [EMAIL PROTECTED] said: > >> Hi! Cross-compiling libgcrypt 1.2.4 to mingw32 fails: > > Have you tested your > > # socklen.m4 serial 4 > > for cross-compiling? Yes. socklen_t exists on mingw32 if you include ws2tcpip.h. Code

Re: [bug-gnulib] enforcing the use of string.h related modules

2007-02-02 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 2/1/2007 10:39 AM: > Eric Blake wrote: >> Does this look correct to apply? > > The MKDIR_P changes are ok but are not yet necessary, as there is only 1 > module that creates the 'arpa' subdirectory and only 1 module that c

Re: strstr, strcase, strcasestr, and i18n

2007-02-02 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > - strstr: This function's behaviour is not clearly defined. POSIX says > that it compares a "string" with a "sequence of bytes". Which a priori > is nonsense, since the elements of strings are characters. No, elements of "character strings" are