gl_GETADDRINFO won't work on Tru64 UNIX 5.1

2006-06-30 Thread Albert Chin
gl_GETADDRINFO uses the following to test for getaddrinfo: AC_SEARCH_LIBS(getaddrinfo, [nsl socket]) This won't work on Tru64 UNIX 5.1. No getaddrinfo() function exists in libc. Rather, there exists ngetaddrinfo() and ogetaddrinfo(): $ nm /usr/shlib/libc.so|grep getaddrinfo ngetaddrinfo

Re: [bug-gnulib] proposed simplification rewrite of stdint module

2006-06-30 Thread Bruno Haible
Paul Eggert wrote: > > : zero) + 1) << ((bits) ? (bits) - 1 : 0)) - 1) * 2 + 1) > > Hmm, that's not quite right either, surely you meant (bits) - 2. No, it appears correct as it is. For example, if bits==32, it will be ((1U << 31) - 1) * 2 + 1) = (0x7fffU * 2 + 1) =

Re: new module for temporary files in temporary directories

2006-06-30 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > /* Create a temporary directory. >PREFIX is used as a prefix for the name of the temporary directory. It >should be short and still give an indication about the program. >Return a fresh 'struct temp_dir' on success. Upon error, an error messa

Re: [bug-gnulib] proposed simplification rewrite of stdint module

2006-06-30 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > No, it appears correct as it is. For example, if bits==32, it will be >((1U << 31) - 1) * 2 + 1) > = (0x7fffU * 2 + 1) > = 0xU You're right, of course. That's what I get for writing without testing. Sorry about the noise.

fstat on mingw

2006-06-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This bit me when trying to compile m4 on mingw. Apparently, fstat always returns st_ino of 0 on a regular file, but m4 was trying to see if stdout and a debug file were the same by comparing st_ino, in order to close the debug file only if it wasn't a

Re: fstat on mingw

2006-06-30 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > * functions.texi (Function Portability): Document fstat > limitation on mingw. That's only one of the limitations. As I understand it, the limitations include; st_atime, st_mtime, and st_ctime may not have 1-second resolution. st_gid and st_

typo in getaddrinfo.c

2006-06-30 Thread Mark D. Baushke
Fixed in CVS sources. -- Mark 2006-06-30 Jim Hyslop <[EMAIL PROTECTED]> * getaddrinfo.c: fixed typo Index: getaddrinfo.c === RCS file: /sources/gnulib/gnulib/lib/getaddrinfo.c,v retrieving revision 1.10 diff -u -p

Re: typo in getaddrinfo.c

2006-06-30 Thread Simon Josefsson
"Mark D. Baushke" <[EMAIL PROTECTED]> writes: > Fixed in CVS sources. Installed, thanks! > > -- Mark > > 2006-06-30 Jim Hyslop <[EMAIL PROTECTED]> > > * getaddrinfo.c: fixed typo > > Index: getaddrinfo.c > === > RCS fil