read-file: reorganize to avoid various issues
[gnulib.git] / ChangeLog
1 2010-12-13  Pádraig Brady <P@draigBrady.com>
2
3         read-file: Improve handling of large files
4         * lib/read-file.c (fread_file): Minimize realloc()s
5         for regular files, and better manage sizes around SIZE_MAX.
6
7 2010-12-13  Eric Blake  <eblake@redhat.com>
8
9         cloexec, fcntl: relax license
10         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11         consent from all contributors.
12         * modules/fcntl (License): Likewise.
13
14 2010-12-10  Bruno Haible  <bruno@clisp.org>
15
16         Tests for module 'pipe-posix'.
17         * modules/pipe-posix-tests: New file.
18         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19
20 2010-12-10  Bruno Haible  <bruno@clisp.org>
21
22         pipe-posix: Make it work in C++ mode.
23         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24         (pipe): Use common idiom, not a macro definition.
25         * lib/pipe.c: New file.
26         * m4/pipe.m4: New file.
27         * modules/pipe-posix (Description): Enhance.
28         (Files): Add lib/pipe.c, m4/pipe.m4.
29         (configure.ac): Invoke gl_FUNC_PIPE.
30         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
31         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
32         * tests/test-unistd-c++.cc: Check the signature of pipe.
33
34 2010-12-10  Bruno Haible  <bruno@clisp.org>
35
36         Rename module 'pipe' to 'spawn-pipe'.
37         * modules/spawn-pipe: New file, renamed from modules/pipe.
38         (Files, configure.ac, Makefile.am): Update.
39         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
40         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
41         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
42         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
43         "spawn-pipe.h" instead of "pipe.h".
44         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
45         to gl_SPAWN_PIPE.
46         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
47         (Files, Makefile.am): Update.
48         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
49         Update.
50         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
51         Include "spawn-pipe.h" instead of "pipe.h".
52         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
53         * lib/javacomp.c: Likewise.
54         * lib/javaversion.c: Likewise.
55         * lib/pipe-filter-gi.c: Likewise.
56         * lib/pipe-filter-ii.c: Likewise.
57         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58         * modules/javacomp (Depends-on): Likewise.
59         * modules/javaversion (Depends-on): Likewise.
60         * modules/pipe-filter-gi (Depends-on): Likewise.
61         * modules/pipe-filter-ii (Depends-on): Likewise.
62         * MODULES.html.sh (Executing programs): Update.
63         * NEWS: Mention the change.
64
65 2010-12-10  Eric Blake  <eblake@redhat.com>
66
67         pipe-posix: new module
68         * modules/pipe-posix: New file.
69         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
70         (gl_UNISTD_H): Check for declaration.
71         * modules/unistd (Makefile.am): Substitute it.
72         * lib/unistd.in.h (pipe): Provide it for mingw.
73         * doc/posix-functions/pipe.texi (pipe): Update documentation.
74         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
75
76 2010-12-07  Bruno Haible  <bruno@clisp.org>
77
78         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
79         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
80         u8_strcmp_gnu.
81         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
82
83 2010-12-06  Bruno Haible  <bruno@clisp.org>
84
85         Update internal documentation.
86         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
87
88 2010-12-04  Bruno Haible  <bruno@clisp.org>
89
90         Put more information about failed tests into the test return codes.
91         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
92         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
93         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
94         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
95         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
96         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
99         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
102         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
103         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
104         * m4/stdint.m4 (gl_STDINT_H): Likewise.
105         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
106         returns a bit mask.
107         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
108         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
109         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
110         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
111         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
113         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
115         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
116         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
117         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
118         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
121         * m4/link.m4 (gl_FUNC_LINK): Likewise.
122         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
123         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
124         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
125         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
126         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
127         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
128         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
130         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
131         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
132         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
133         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
134         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
135         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
136         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
137         gl_PRINTF_PRECISION): Likewise.
138         * m4/regex.m4 (gl_REGEX): Likewise.
139         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
142         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
145         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
146         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
147         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
148         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
149         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
150         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
151         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
153         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
154         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
155         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
156         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
158         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
159         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
160         enumerated value.
161         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
162
163 2010-12-04  Bruno Haible  <bruno@clisp.org>
164
165         Update for Solaris 11 2010-11.
166         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
167         Express, released in November 2010.
168
169 2010-12-04  Bruno Haible  <bruno@clisp.org>
170
171         nproc: Relax license.
172         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
173         and Paul Eggert.
174         Requested by Ludovic Courtès <ludo@gnu.org>.
175
176 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
177
178         utimecmp: fine-grained src to nearby coarse-grained dest
179
180         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
181         and the source is on a file system with higher-resolution time
182         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
183         not work, and the time stamps are close together, the algorithm to
184         determine the exact resolution from the read-back mtime was buggy:
185         it had a "!=" where it should have had an "==".  This bug has been
186         in the code ever since it was introduced to gnulib.
187         Problem reported by Dan Jacobson in
188         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
189
190 2010-11-30  Bruno Haible  <bruno@clisp.org>
191
192         strerror_r-posix: Fix autoconf test.
193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
194
195 2010-11-28  Bruno Haible  <bruno@clisp.org>
196             Paul Eggert  <eggert@cs.ucla.edu>
197
198         Tests for module 'getdomainname'.
199         * modules/getdomainname-tests: New file.
200         * tests/test-getdomainname.c: New file, based on
201         tests/test-gethostname.c.
202
203 2010-11-28  Bruno Haible  <bruno@clisp.org>
204             Paul Eggert  <eggert@cs.ucla.edu>
205
206         getdomainname: Use the system function when possible.
207         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
208         (getdomainname): Replace if needed. Provide the declaration if it is
209         missing. Don't use _GL_CXXALIAS_SYS_CAST.
210         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
211         (getdomainname): When the system has getdomainname, call the system
212         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
213         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
214         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
215         found in libnsl. Look for the declaration also in <netdb.h>. Replace
216         the function if its second argument is of type 'int' or if it is found
217         in libnsl.
218         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
219         <sys/systeminfo.h> and sysinfo().
220         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
222         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
223         HAVE_GETDOMAINNAME.
224         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
225         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
226         * doc/glibc-functions/getdomainname.texi: Document the problems with
227         the getdomainname declaration.
228
229 2010-11-28  Bruno Haible  <bruno@clisp.org>
230
231         sys_socket: Ensure ss_family field on AIX.
232         * lib/sys_socket.in.h (ss_family): New macro definition.
233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
234         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
235         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
236         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
237         * modules/sys_socket (Makefile.am): Substitute
238         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
239         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
240
241 2010-11-27  Bruno Haible  <bruno@clisp.org>
242
243         readline: Improve configure output.
244         * m4/readline.m4 (gl_FUNC_READLINE): Make the
245         "checking for readline..." result understandable.
246
247 2010-11-27  Bruno Haible  <bruno@clisp.org>
248
249         *printf-posix: Detect a bug on Solaris 10/x86.
250         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
251         for floating-point output.
252         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
253         directive.
254         * tests/test-snprintf-posix.h (test_function): Likewise.
255         * tests/test-sprintf-posix.h (test_function): Likewise.
256         * tests/test-vasprintf-posix.c (test_function): Likewise.
257         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
258         * doc/posix-functions/printf.texi: Likewise.
259         * doc/posix-functions/snprintf.texi: Likewise.
260         * doc/posix-functions/sprintf.texi: Likewise.
261         * doc/posix-functions/vfprintf.texi: Likewise.
262         * doc/posix-functions/vprintf.texi: Likewise.
263         * doc/posix-functions/vsnprintf.texi: Likewise.
264         * doc/posix-functions/vsprintf.texi: Likewise.
265         * doc/glibc-functions/obstack_printf.texi: Likewise.
266         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
267
268 2010-11-27  Bruno Haible  <bruno@clisp.org>
269
270         Fix link error when module libunistring-optional is in use.
271         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
272         * modules/striconveha-tests (Makefile.am): Likewise.
273
274 2010-11-27  Bruno Haible  <bruno@clisp.org>
275
276         regex: Mention link dependencies.
277         * modules/regex (Link): New section.
278         * modules/rpmatch (Link): Likewise.
279         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
280
281 2010-11-27  Bruno Haible  <bruno@clisp.org>
282
283         ftoastr: Fix compilation error on Solaris.
284         * lib/ftoastr.c: Include <config.h>.
285
286 2010-11-27  Bruno Haible  <bruno@clisp.org>
287
288         getloadavg: Update documentation.
289         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
290
291 2010-11-27  Bruno Haible  <bruno@clisp.org>
292
293         sys_socket: Fix test whether the functions are declared.
294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
295         not <sys/select.h>.
296
297 2010-11-27  Bruno Haible  <bruno@clisp.org>
298
299         getpass: Make sure to get system declaration on some platforms.
300         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
301         gl_USE_SYSTEM_EXTENSIONS.
302         * modules/getpass (Depends-on): Add extensions.
303
304 2010-11-26  Bruno Haible  <bruno@clisp.org>
305
306         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
307         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
308         'iconv' module is present.
309         (ICONV_CONST): New macro.
310         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
311         ICONV_CONST.
312         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
313         set ICONV_CONST.
314         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
315         here.
316         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
317         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
318         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
319         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
320         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
321         present.
322
323 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
324
325         ftoastr: comment fix
326         * lib/ftoastr.c: "little" -> "little or no" in comment
327
328 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
329
330         stdint: port to GCC 4.3 + OSX + Octave
331         On this platform, stdint.h is buggy and defines int64_t to long
332         long int.  The replacement defined it to long int, causing
333         problems with C++ style name mangling.  Instead, trust the system
334         definition if INT64_MAX is defined, and likewise for the unsigned
335         variant.   Problem reported by Jarno Rajahalme in
336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
337         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
338         and don't mess with int64_t and INT64_MAX in this case.
339         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
340
341 2010-11-24  Bruno Haible  <bruno@clisp.org>
342
343         doc: Corrections regarding MacOS X 10.4 and 10.5.
344         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
345         MacOS X.
346         Reported by Simon Josefsson.
347
348 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
349
350         Uninstall ".bin" files installed by relocwrapper.
351         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
352         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
353         unless it is already there.
354
355 2010-11-21  Bruno Haible  <bruno@clisp.org>
356
357         Update for NetBSD 5.0.
358         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
359         NetBSD; the test fails on NetBSD 5.0.
360         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
361         about NetBSD.
362
363 2010-11-21  Bruno Haible  <bruno@clisp.org>
364
365         Update for HP-UX 11.23 and HP-UX 11.31.
366         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
367         HP-UX.
368
369 2010-11-21  Bruno Haible  <bruno@clisp.org>
370
371         Update for MacOS X 10.5.
372         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
373         MacOS X; the test fails on MacOS X 10.5.8.
374         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
375         about MacOS X.
376
377 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
378
379         bootstrap: add bootstrap_sync option.
380         See discussion at
381         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
383         * build-aux/bootstrap: Accept --bootstrap-sync to update
384         bootstrap if it is not identical to the local gnulib's
385         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
386         enable this by default.  Accept --no-bootstrap-sync to disable
387         it.
388
389 2010-11-20  Bruno Haible  <bruno@clisp.org>
390
391         Ensure that <features.h> is included before __GLIBC__ is tested.
392         * lib/printf-parse.h: Include <features.h>.
393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
394         Reported by Mike Frysinger <vapier@gentoo.org>.
395
396         Ensure that <features.h> is included before __GLIBC__ is tested.
397         * lib/wchar.in.h: Include <features.h>.
398         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
399         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
400         Reported by Mike Frysinger <vapier@gentoo.org>.
401
402         Ensure that <features.h> is included before __GLIBC__ is tested.
403         * lib/arpa_inet.in.h: Include <features.h>.
404         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
405         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
406         Reported by Mike Frysinger <vapier@gentoo.org>.
407
408         Ensure that <features.h> is included before __GLIBC__ is tested.
409         * build-aux/link-warning.h: Include <features.h>.
410         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
411         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
412         Reported by Mike Frysinger <vapier@gentoo.org>.
413
414         Ensure that <features.h> is included before __GLIBC__ is tested.
415         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
416         Reported by Mike Frysinger <vapier@gentoo.org>.
417
418 2010-11-20  Bruno Haible  <bruno@clisp.org>
419
420         memmem: Fix autoconf test.
421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
422
423 2010-11-20  Bruno Haible  <bruno@clisp.org>
424
425         Port to uClibc.
426         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
427         * lib/fcntl.in.h: Likewise.
428         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
429         * lib/mbrtowc.c (mbrtowc): Likewise.
430         * lib/relocatable.c (find_shared_library_fullname): Likewise.
431         * lib/strerror_r.c: Likewise.
432         * lib/unistr/u8-strnlen.c: Likewise.
433         * lib/vasnprintf.c (decimal_point_char): Likewise.
434         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
435         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
437         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
438         * tests/test-sigaction.c (handler, main): Likewise.
439         * lib/freading.h: Treat uClibc like a non-glibc platform.
440         * lib/freading.c: Likewise.
441         * lib/gettext.h: Likewise.
442         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
443         Likewise.
444         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
446         * lib/propername.c (proper_name_utf8): Likewise.
447         * lib/spawn.in.h: Likewise.
448         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
449         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
450         mem_cd_iconveh_internal): Likewise.
451         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
452         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
453         strstr, strcasestr): Likewise.
454         * lib/unicodeio.c (unicode_to_mb): Likewise.
455         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
456         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
457         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
458         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
459         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
460         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
461         * lib/unistr/u8-stpncpy.c: Likewise.
462         * lib/vasnprintf.c (VASNPRINTF): Likewise.
463         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
464         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
465         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
466         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
467         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
471         Likewise.
472         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
473         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
474         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
477         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
478         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
479         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
480         * tests/test-getopt.h (OPTIND_MIN): Likewise.
481         * tests/test-striconveha.c (main): Likewise.
482         * tests/test-vasnprintf-posix.c (test_function): Likewise.
483         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
484         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
485         * doc/posix-functions/getline.texi: Likewise.
486         Reported by Mike Frysinger <vapier@gentoo.org>.
487
488 2010-11-20  Bruno Haible  <bruno@clisp.org>
489
490         nproc: Fix condition.
491         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
492         HAVE_PTHREAD_AFFINITY_NP.
493
494 2010-11-20  Bruno Haible  <bruno@clisp.org>
495
496         Fix a comment.
497         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
498
499 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
500
501         ftoastr: don't assume snprintf
502         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
503         Implement a subset of snprintf here, by using sprintf safely.
504         * modules/ftoastr (Depends-on): Remove snprintf.
505
506 2010-11-19  Jim Meyering  <meyering@redhat.com>
507
508         test-rename.h: fix compilation failure
509         * tests/test-rename.h (test_rename): Add omitted "}".
510
511 2010-11-17  Jim Meyering  <meyering@redhat.com>
512
513         maint.mk: add a URL discussing the no-@acronym policy
514         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
515
516 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
517
518         ftoastr: depend on snprintf, improve comments
519         * lib/ftoastr.c: Also mention Loitsch's draft.
520         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
521         needed in the current implementation, but it might simplify
522         speeding up the code later.
523         * modules/ftoastr: Depend on snprintf; this improves portability.
524         Suggested by Bruno Haible in the same email.
525
526         ftoastr: port to hosts lacking strtof and strtold
527         Problem reported by Bruno Haible in
528         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
529         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
530         environment and strtold (and presumably strtof) are not available.
531         * modules/ftoastr (Files): Add m4/c-strtod.m4.
532         (configure.ac): Require gl_C99_STRTOLD.
533
534 2010-11-18  Bruno Haible  <bruno@clisp.org>
535
536         c-strtold: Avoid link error on AIX 7.
537         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
538         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
539         (gl_C_STRTOLD): Test whether strtold_l exists.
540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
541
542 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
543
544         intprops: new macro INT_BITS_STRLEN_BOUND
545         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
546         ftoastr.h.  This exposes an internal of intprops.h that was formerly
547         not exposed.  Also, it uses a slightly tighter bound than before;
548         though this makes no practical difference, we might as well be as
549         tight as we easily can.
550
551         ftoastr: new module, for lossless conversion of floats to short strings
552         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
553         * modules/ftoastr: New files.
554
555 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
556
557         bootstrap: port to Solaris sed
558         * build-aux/bootstrap (get_version): Port to Solaris sed.
559         See Ralf Wildenhues's note in
560         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
561
562 2010-11-14  Jim Meyering  <meyering@redhat.com>
563
564         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
565         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
566         and move definition closer to sole use.
567
568 2010-11-13  Jim Meyering  <meyering@redhat.com>
569
570         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
571         Now we require at least autoconf-2.59, which means the work-around
572         is no longer needed.
573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
574         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
575         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
576         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
577         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
578
579 2010-11-13  Bruno Haible  <bruno@clisp.org>
580
581         rename, renameat: Avoid test failures at NFS mounted locations.
582         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
583         functions.
584         (test_rename): Use assert_nonexistent.
585         * tests/test-rename.c: Include <dirent.h>.
586         * tests/test-renameat.c: Likewise.
587         Reported by Gary V. Vaughan <gary@gnu.org>.
588
589         rename, renameat: Document Linux bug with NFS
590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
591         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
592         * doc/posix-functions/renameat.texi: Likewise.
593         Suggested by Eric Blake.
594
595 2010-11-13  Bruno Haible  <bruno@clisp.org>
596
597         rename test: Add comments.
598         * tests/test-rename.h (test_rename): Add structure and comments.
599
600 2010-11-13  Eric Blake  <eblake@redhat.com>
601
602         maintainer-makefile: cover a few more files
603         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
604         scripts generated within C files, for libvirt.
605
606 2010-11-13  Bruno Haible  <bruno@clisp.org>
607
608         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
609         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
610         character, return the number of bytes that belong together, not always
611         1.
612         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
613         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
614         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
615         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
616         number of bytes of an invalid character.
617         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
618         (main): Invoke it.
619         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
620         results.
621         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
622         malformed byte sequences.
623         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
624         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
625         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
626         Reported by Ben Pfaff and Paolo Bonzini.
627
628 2010-11-13  Bruno Haible  <bruno@clisp.org>
629
630         openat: Work around glibc bug with fchownat() and empty file names.
631         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
632         (gl_FUNC_FCHOWNAT): Invoke it.
633         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
634         * doc/posix-functions/fchownat.texi: Document the glibc bug.
635         Reported by Gary V. Vaughan <gary@gnu.org>.
636
637 2010-11-13  Bruno Haible  <bruno@clisp.org>
638
639         openat: Ensure autoconf macro ordering.
640         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
641         gl_USE_SYSTEM_EXTENSIONS.
642         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
643
644 2010-11-13  Bruno Haible  <bruno@clisp.org>
645
646         Update comments.
647         * lib/unistr/u8-check.c: Update file name in comments.
648         * lib/unistr/u8-mblen.c: Likewise.
649         * lib/unistr/u8-prev.c: Likewise.
650         * lib/unistr/u8-strmblen.c: Likewise.
651         * lib/unistr/u8-strmbtouc.c: Likewise.
652
653 2010-11-13  Jim Meyering  <meyering@redhat.com>
654
655         tests: avoid test failure on Solaris 10 due to lack of PATH export
656         * tests/test-update-copyright.sh: Don't forget to export PATH.
657
658         init.sh: ensure that IFS is defined, just in case...
659         * tests/init.sh (setup_): Ensure that IFS is defined,
660         so that saving and restoring it works as expected.  This
661         appears to be useful at least for an old version of dash
662         from a long time ago (RH 6).  See here for details:
663         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
664
665         maint.mk: tighten "test a == b" check
666         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
667         test to files that contain something like #!/bin/sh.
668         Without this, coreutils would get two false positives in
669         the comments of C source files.
670
671 2010-11-12  Eric Blake  <eblake@redhat.com>
672
673         bootstrap: fix typo in previous attempt
674         * build-aux/bootstrap (buildreq): Correct the grouping.
675         Reported by Paul Eggert.
676
677         maintainer-makefile: prohibit test x == x
678         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
679         Based on a report by Matthias Bolte.
680
681         bootstrap: allow FreeBSD gzip
682         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
683         which has no '.' and goes to stderr.
684         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
685         Reported by Matthias Bolte.
686
687         maintainer-makefile: check for i18n setup
688         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
689         will likely work.
690
691 2010-11-12  Bruno Haible  <bruno@clisp.org>
692
693         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
694         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
695         * lib/nanosleep.c (nanosleep): Likewise.
696
697 2010-11-11  Bruno Haible  <bruno@clisp.org>
698
699         fcntl-h: Fix for use of C++ on glibc systems.
700         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
701         also on glibc systems in C++ mode.
702         Reported by Gary V. Vaughan <gary@gnu.org>.
703
704 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
705
706         mknod: avoid false failure with dash
707         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
708
709 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
710
711         unlink: Fix "is it should" typo in diagnostic.
712         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
713         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
714
715 2010-11-11  Bruno Haible  <bruno@clisp.org>
716
717         Tests for module 'strerror_r-posix'.
718         * modules/strerror_r-posix-tests: New file.
719         * tests/test-strerror_r.c: New file.
720         * tests/test-string-c++.cc: Check the signature of strerror_r.
721
722         New module 'strerror_r-posix'.
723         * lib/string.in.h (strerror_r): New declaration.
724         * lib/strerror_r.c: New file.
725         * m4/strerror_r.m4: New file.
726         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
727         of strerror_r.
728         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
729         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
730         * modules/strerror_r-posix: New file.
731         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
732         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
733         * doc/posix-functions/strerror_r.texi: Mention the new module and the
734         portability problems.
735
736 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
737
738         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
739         line is also considered for output. Quoted function name in shell
740         command, so temporary files for functions like MyClass::operator()
741         are removed correctly without errors.
742
743 2010-11-09  Bruno Haible  <bruno@clisp.org>
744
745         * doc/posix-functions/strerror.texi: List more failing platforms.
746
747         * doc/posix-functions/strerror.texi: Add a comment.
748
749 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
750
751         fdopendir: fix bug on MacOS X when low on file descriptors
752
753         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
754         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
755         All callers changed.
756         (fdopendir): Invoke save_cwd at the top level, not after using
757         multiple dup() calls to use up file descriptors.  Then retry
758         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
759         less than the maximum number of open file descriptors, because
760         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
761         on Mac OS X 10.6.4 for tar 1.24
762         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
763         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
764         and for tar 1.25
765         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
766
767 2010-11-07  Bruno Haible  <bruno@clisp.org>
768
769         vasnprintf: Support I flag on glibc systems.
770         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
771         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
772         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
773         snprintf function.
774         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
775         glibc systems.
776         * tests/test-vasnprintf-posix3.c: New file.
777         * modules/vasnprintf-posix-tests (Files): Add it.
778         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
779
780 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
781
782         [html] Fix copy/paste bug: Use unique name for compiler warnings.
783         * MODULES.html.sh: For compiler warnings, use name
784         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
785
786 2010-11-05  Eric Blake  <eblake@redhat.com>
787
788         ceil, floor: avoid spurious failure with icc
789         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
790         [denormals-as-zero] when optimizing without -mieee-fp option.
791         * tests/test-floorf2.c (floorf_reference): Likewise.
792         * tests/test-ceilf1.c (dummy): New function.
793         (main): Use it to outsmart icc's optimization.
794         * tests/test-floorf1.c (dummy, main): Likewise.
795
796         tests: require working signbit
797         * modules/ceilf-tests (Depends-on): Add signbit.
798         * modules/ceill-tests (Depends-on): Likewise.
799         * modules/floorf-tests (Depends-on): Likewise.
800         * modules/floorl-tests (Depends-on): Likewise.
801         * modules/round-tests (Depends-on): Likewise.
802         * modules/roundf-tests (Depends-on): Likewise.
803         * modules/roundl-tests (Depends-on): Likewise.
804         * modules/trunc-tests (Depends-on): Likewise.
805         * modules/truncf-tests (Depends-on): Likewise.
806         * modules/truncl-tests (Depends-on): Likewise.
807
808         strtod: work around icc bug
809         * lib/strtod.c (minus_zero): Define to working value.
810         (strtod): Use it to avoid icc bug.
811
812         copysign: enhance tests
813         * modules/copysign-tests (Files): Add minus-zero.h.
814         * tests/test-copysign.c (main): Also test zeros.
815
816 2010-11-04  Eric Blake  <eblake@redhat.com>
817
818         ceil, floor, round, trunc: enhance tests of -0
819         * tests/test-ceilf1.c (main): Ensure correct sign of result.
820         * tests/test-ceill.c (main): Likewise.
821         * tests/test-floorf1.c (main): Likewise.
822         * tests/test-floorl.c (main): Likewise.
823         * tests/test-round1.c (main): Likewise.
824         * tests/test-roundf1.c (main): Likewise.
825         * tests/test-roundl.c (main): Likewise.
826         * tests/test-trunc1.c (main): Likewise.
827         * tests/test-truncf1.c (main): Likewise.
828         * tests/test-truncl.c (main): Likewise.
829
830 2010-11-04  Eric Blake  <eblake@redhat.com>
831
832         frexp, tests: work around ICC bug with -zero
833         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
834         works with more compilers.
835         * tests/minus-zero.h: New file.
836         * modules/ceilf-tests (Files): Include it.
837         * modules/ceill-tests (Files): Likewise.
838         * modules/floorf-tests (Files): Likewise.
839         * modules/floorl-tests (Files): Likewise.
840         * modules/frexp-nolibm-tests (Files): Likewise.
841         * modules/frexp-tests (Files): Likewise.
842         * modules/frexpl-nolibm-tests (Files): Likewise.
843         * modules/frexpl-tests (Files): Likewise.
844         * modules/isnan-tests (Files): Likewise.
845         * modules/isnand-nolibm-tests (Files): Likewise.
846         * modules/isnand-tests (Files): Likewise.
847         * modules/isnanf-nolibm-tests (Files): Likewise.
848         * modules/isnanf-tests (Files): Likewise.
849         * modules/isnanl-nolibm-tests (Files): Likewise.
850         * modules/isnanl-tests (Files): Likewise.
851         * modules/round-tests (Files): Likewise.
852         * modules/roundf-tests (Files): Likewise.
853         * modules/roundl-tests (Files): Likewise.
854         * modules/ldexpl-tests (Files): Likewise.
855         * modules/signbit-tests (Files): Likewise.
856         * modules/snprintf-posix-tests (Files): Likewise.
857         * modules/sprintf-posix-tests (Files): Likewise.
858         * modules/strtod-tests (Files): Likewise.
859         * modules/trunc-tests (Files): Likewise.
860         * modules/truncf-tests (Files): Likewise.
861         * modules/truncl-tests (Files): Likewise.
862         * modules/vsnprintf-posix-tests (Files): Likewise.
863         * modules/vsprintf-posix-tests (Files): Likewise.
864         * modules/vasnprintf-posix-tests (Files): Likewise.
865         * modules/vasprintf-posix-tests (Files): Likewise.
866         * tests/test-ceilf1.c (main): Use it.
867         * tests/test-ceill.c (main): Likewise.
868         * tests/test-floorf1.c (main): Likewise.
869         * tests/test-floorl.c (main): Likewise.
870         * tests/test-frexp.c (main): Likewise.
871         * tests/test-frexpl.c (main): Likewise.
872         * tests/test-isnan.c (main): Likewise.
873         * tests/test-isnand.h (main): Likewise.
874         * tests/test-isnanf.h (main): Likewise.
875         * tests/test-isnanl.h (main): Likewise.
876         * tests/test-ldexpl.c (main): Likewise.
877         * tests/test-round.c (main): Likewise.
878         * tests/test-roundf.c (main): Likewise.
879         * tests/test-roundl.c (main): Likewise.
880         * tests/test-signbit.c (test_signbitf, test_signbitd)
881         (test_signbitl): Likewise.
882         * tests/test-snprintf-posix.h (test_function): Likewise.
883         * tests/test-sprintf-posix.h (test_function): Likewise.
884         * tests/test-strtod.c (main): Likewise.
885         * tests/test-trunc1.c (main): Likewise.
886         * tests/test-truncf1.c (main): Likewise.
887         * tests/test-truncl.c (main): Likewise.
888
889         isnanl: work around icc bug
890         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
891
892 2010-11-03  Eric Blake  <eblake@redhat.com>
893
894         tests: fix compiler warnings
895         * tests/test-getopt.h (test_getopt): Fix condition.
896         * tests/test-getopt_long.h (test_getopt_long): Likewise.
897         * tests/test-pipe2.c (main): Likewise.
898         * tests/test-quotearg-simple.c (main): Avoid icc warning.
899
900         utimens: fix broken m4 test
901         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
902
903 2010-10-28  Bruno Haible  <bruno@clisp.org>
904
905         posix_spawn*, getdtablesize: Relax license.
906         * modules/posix_spawn (License): Change to LGPLv2+.
907         * modules/posix_spawnp (License): Likewise.
908         * modules/posix_spawn-internal (License): Likewise.
909         * modules/posix_spawnattr_init (License): Likewise.
910         * modules/posix_spawnattr_getflags (License): Likewise.
911         * modules/posix_spawnattr_setflags (License): Likewise.
912         * modules/posix_spawnattr_getpgroup (License): Likewise.
913         * modules/posix_spawnattr_setpgroup (License): Likewise.
914         * modules/posix_spawnattr_getschedparam (License): Likewise.
915         * modules/posix_spawnattr_setschedparam (License): Likewise.
916         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
917         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
918         * modules/posix_spawnattr_getsigdefault (License): Likewise.
919         * modules/posix_spawnattr_setsigdefault (License): Likewise.
920         * modules/posix_spawnattr_getsigmask (License): Likewise.
921         * modules/posix_spawnattr_setsigmask (License): Likewise.
922         * modules/posix_spawnattr_destroy (License): Likewise.
923         * modules/posix_spawn_file_actions_init (License): Likewise.
924         * modules/posix_spawn_file_actions_addclose (License): Likewise.
925         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
926         * modules/posix_spawn_file_actions_addopen (License): Likewise.
927         * modules/posix_spawn_file_actions_destroy (License): Likewise.
928         * modules/getdtablesize (License): Likewise.
929         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
930
931 2010-10-26  Bruno Haible  <bruno@clisp.org>
932
933         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
934         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
935         Cygwin and mingw.
936         Suggested by Eric Blake.
937
938 2010-10-26  Bruno Haible  <bruno@clisp.org>
939
940         stdio: Work around compilation error due to renameat() on Solaris 10.
941         * lib/stdio.in.h: Include <unistd.h> on Solaris.
942         * lib/renameat.c: Don't include <unistd.h> here.
943         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
944         Reported by Paul Eggert and Eric Blake.
945
946 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
947
948         renameat: port to Solaris 10, which declares renameat in unistd.h
949
950         * lib/renameat.c: Include unistd.h before stdio.h, because
951         Solaris 10 declares renameat in unistd.h.  Problem encountered
952         when building GNU tar 1.24 on Solaris 10.
953
954 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
955
956         fdopendir: fix C89 compilation
957         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
958         compilers.
959
960 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
961
962         inttostr: simplify by removing unnecessary redundancy
963         * lib/anytostr.c: Don't include verify.h.
964         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
965         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
966         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
967         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
968         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
969         Likewise.
970         * modules/inttostr (Depends-on): Remove 'verify'.
971
972 2010-10-23  Bruno Haible  <bruno@clisp.org>
973
974         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
975         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
976         Reported by Eric Blake.
977
978 2010-10-23  Bruno Haible  <bruno@clisp.org>
979
980         Tests: Fix LOCALE_JA on MirBSD 10.
981         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
982         to an UTF-8 locale.
983         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
984         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
985         Reported by Eric Blake.
986
987 2010-10-21  Bruno Haible  <bruno@clisp.org>
988
989         nl_langinfo test: Avoid test failure on NetBSD 5.
990         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
991         Reported by Eric Blake.
992
993 2010-10-21  Eric Blake  <eblake@redhat.com>
994
995         c-stack: work around libsigsegv 2.8 bug
996         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
997         overflow on at least PowerPC64.
998
999 2010-10-17  Bruno Haible  <bruno@clisp.org>
1000
1001         userspec: Drop redundant file.
1002         * modules/userspec (Files): Remove lib/inttostr.h.
1003
1004 2010-10-17  Bruno Haible  <bruno@clisp.org>
1005
1006         nl_langinfo tests: Silence some warnings.
1007         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1008         Reported by Jim Meyering.
1009
1010 2010-10-17  Bruno Haible  <bruno@clisp.org>
1011
1012         Make use of GCC's attribute __alloc_size__.
1013         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1014         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1015         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1016         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1017         __alloc_size__.
1018         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1019         Suggested by Jim Meyering.
1020
1021 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1022
1023         bootstrap: anchor .gitignore entries.
1024         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1025         with...
1026         (insert_vc_ignore): ... this new function, which prepends `/' to
1027         all .gitignore entries before passing them to
1028         insert_sorted_if_absent.
1029
1030 2010-10-16  Bruno Haible  <bruno@clisp.org>
1031
1032         nextafter: Fix configure check.
1033         * modules/nextafter (configure.ac): Correct expected prototype.
1034
1035 2010-10-16  Bruno Haible  <bruno@clisp.org>
1036
1037         termios: Update documentation.
1038         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1039
1040 2010-10-16  Bruno Haible  <bruno@clisp.org>
1041
1042         tests: Make them compile with TinyCC.
1043         * tests/test-strstr.c (main): Remove parentheses around array
1044         initializer.
1045
1046 2010-10-15  Eric Blake  <eblake@redhat.com>
1047
1048         ignore-value: make header idempotent
1049         * lib/ignore-value.h: Add double-inclusion guards.
1050         Reported by Stefan Berger.
1051
1052 2010-10-15  Jim Meyering  <meyering@redhat.com>
1053
1054         GNUmakefile: handle "stable" target, not "major"
1055         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1056         lists in maint.mk and announce-gen.  Without this, "make stable"
1057         would fail to ensure that $(VERSION) is up to date.
1058
1059 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1060
1061         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1062         & co.
1063
1064 2010-10-14  Bruno Haible  <bruno@clisp.org>
1065
1066         vasnprintf: Don't set errno to 0.
1067         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1068         block that sets it to 0.
1069         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1070
1071 2010-10-14  Bruno Haible  <bruno@clisp.org>
1072
1073         socketlib: Fix.
1074         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1075         gl_PREREQ_SYS_H_WINSOCK2.
1076         Reported by Ian Beckwith <ianb@erislabs.net>.
1077
1078 2010-10-13  Jim Meyering  <meyering@redhat.com>
1079
1080         test-select-stdin.c: avoid warn_unused_result warnings
1081         * tests/test-select-stdin.c: Include "macros.h".
1082         ASSERT that read and fflush succeed.
1083
1084 2010-10-13  Jim Meyering  <meyering@redhat.com>
1085
1086         git-version-gen: do require git-VC'd files in cwd
1087         * build-aux/git-version-gen: Reject a git version string
1088         if there are no commits associated with the current directory.
1089         This avoids an unlikely false-positive (unrelated dir whose parent
1090         repository also contains a tag matching v*), as pointed out
1091         by Giuseppe Scrivano in
1092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1093
1094 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1095
1096         argv-iter: omit nonconforming declaration
1097         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1098         enum arg_iter_err declaration, which doesn't conform to C99.
1099         Solaris 10 cc warns about this.
1100
1101 2010-10-13  Eric Blake  <eblake@redhat.com>
1102
1103         termios: fix compilation on mingw
1104         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1105         (gl_TERMIOS_H): Adjust it on mingw.
1106         * modules/termios (Makefile.am): Substitute new key.
1107         * lib/termios.in.h (includes): Make include_next conditional.
1108         * doc/posix-headers/termios.texi (termios.h): Update
1109         documentation.
1110         Reported by Daniel P. Berrange.
1111
1112 2010-10-13  Jim Meyering  <meyering@redhat.com>
1113
1114         git-version-gen: don't require that .git/ be in the current dir
1115         * build-aux/git-version-gen: Adjust this script so that it works
1116         when run from any working directory beneath the top-level .git/-
1117         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1118         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1119
1120         test-select: avoid warn_unused_result warnings
1121         * tests/test-select.c: Include "macros.h".
1122         ASSERT that each call to read, write, and pipe succeeds.
1123         While not technically required, also check each "close".
1124         * modules/select-tests (Files): Add tests/macros.h.
1125
1126         test-symlinkat: remove declaration of unused local
1127         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1128
1129         test-inttostr: avoid shadowing warnings
1130         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1131         and use malloc rather than the stack for the same reason as
1132         mentioned in the comment justifying the other allocation.
1133
1134 2010-10-11  Bruno Haible  <bruno@clisp.org>
1135
1136         stdlib: Allow multiple gnulib generated replacements to coexist.
1137         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1138         Reported by Sam Steingold <sds@gnu.org>.
1139
1140 2010-10-11  Jim Meyering  <meyering@redhat.com>
1141
1142         fix a documentation typo
1143         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1144
1145 2010-10-11  Eric Blake  <eblake@redhat.com>
1146
1147         futimens: work around Solaris 11 bug
1148         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1149         * tests/test-futimens.h (test_futimens): Enhance, rather than
1150         weaken test.
1151         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1152
1153 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1154
1155         Indentation.
1156         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1157         higher-level operators more to the left.
1158
1159 2010-10-11  Jim Meyering  <meyering@redhat.com>
1160
1161         test-futimens: avoid unwarranted test failure on Solaris 5.11
1162         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1163         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1164         because it tries to dereference the NULL name argument.
1165
1166 2010-10-11  Bruno Haible  <bruno@clisp.org>
1167
1168         Indentation.
1169         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1170         indentation.
1171
1172 2010-10-11  Jim Meyering  <meyering@redhat.com>
1173
1174         spawn.in.h: make indentation consistent with parentheses
1175         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1176         Make indentation consistent with parentheses.
1177
1178 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1179
1180         Fix mismatched parens in previous commit
1181         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1182         parens.
1183
1184 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1185
1186         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1187
1188         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1189         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1190         * lib/malloca.c: Include "verify.h".
1191         (verify1): Remove, replacing with a verify call.
1192         * lib/relocwrapper.c (verify1): Likewise.
1193         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1194         Likewise.
1195         * modules/malloca (Depends-on): Add 'verify'.
1196         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1197         * modules/vasnprintf (Depends-on): Add 'verify'.
1198         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1199         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1200         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1201         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1202         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1204         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1205
1206         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1207
1208         Formerly the style was sometimes 2*X - 1, because the C standard
1209         was wrongly thought to disallow ?: in integral constant expressions.
1210         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1211         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1212         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1213         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1214         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1215         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1216         verify that time_t cannot be floating.
1217
1218 2010-10-08  Eric Blake  <eblake@redhat.com>
1219
1220         time: enforce recent POSIX ruling that time_t is integral
1221         * lib/time.in.h (__time_t_must_be_integral): Detect any
1222         problematic systems, allowing the rest of gnulib to assume POSIX.
1223
1224 2010-10-08  Jim Meyering  <meyering@redhat.com>
1225
1226         fdopendir: fix a bug on systems lacking openat and /proc support
1227         OpenBSD 4.7 is one such system.  The most noticeable effect was
1228         failure of any application making nontrivial use of fts: rm, du,
1229         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1230           ./rm: traversal failed: `a': Bad file descriptor
1231         Debugging that, you see that even though FD 6 was closed just
1232         prior to the opendir call in fd_clone_opendir, its resulting
1233         dir->dd_fd was 8, rather than the expected value of 6:
1234
1235         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1236         93                close (fd);
1237         (gdb) n
1238         94                dir = fd_clone_opendir (dupfd);
1239         (gdb) n
1240         95                saved_errno = errno;
1241         (gdb) p dir->dd_fd
1242         $11 = 8
1243
1244         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1245         The problem is that on OpenBSD, fd_clone_opendir has to resort
1246         to using the old-style save/restore CWD mechanism, due to its
1247         lack of openat/proc support, and *that* would steal the FD (6)
1248         that opendir was supposed to use.
1249
1250         The fix is to squirrel away the desired FD so that save_cwd uses a
1251         different one, and then free the dest FD right before calling opendir.
1252         That guarantees opendir will use the required file descriptor.
1253
1254         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1255
1256 2010-10-08  Bruno Haible  <bruno@clisp.org>
1257
1258         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1259         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1260
1261 2010-10-08  Bruno Haible  <bruno@clisp.org>
1262
1263         nanosleep: Make replacement POSIX compliant.
1264         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1265         is out of range.
1266         Reported by Jim Meyering.
1267
1268 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         bootstrap: add hook for altering gnulib.mk, for Bison
1271         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1272         the Bison bootstrapping process can rewrite file names and variables
1273         in this file before later parts of 'bootstrap' use the file.
1274         Bison wants to include lib/gnulib.mk from the top-level makefile,
1275         so it needs the file names in this file to be relative to the top
1276         level, not relative to lib; plus it needs variable names to be
1277         rewritten.
1278         (slurp): Use the new function.
1279
1280         bootstrap: reformat for readability
1281         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1282
1283 2010-10-08  Eric Blake  <eblake@redhat.com>
1284
1285         docs: update cygwin progress
1286         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1287         1.7.7.
1288         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1289         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1290         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1291         * doc/posix-functions/carg.texi (carg): Likewise.
1292         * doc/posix-functions/cargf.texi (cargf): Likewise.
1293         * doc/posix-functions/casin.texi (casin): Likewise.
1294         * doc/posix-functions/casinf.texi (casinf): Likewise.
1295         * doc/posix-functions/casinh.texi (casinh): Likewise.
1296         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1297         * doc/posix-functions/catan.texi (catan): Likewise.
1298         * doc/posix-functions/catanf.texi (catanf): Likewise.
1299         * doc/posix-functions/catanh.texi (catanh): Likewise.
1300         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1301         * doc/posix-functions/ccos.texi (ccos): Likewise.
1302         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1303         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1304         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1305         * doc/posix-functions/cexp.texi (cexp): Likewise.
1306         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1307         * doc/posix-functions/cimag.texi (cimag): Likewise.
1308         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1309         * doc/posix-functions/clog.texi (clog): Likewise.
1310         * doc/posix-functions/clogf.texi (clogf): Likewise.
1311         * doc/posix-functions/conj.texi (conj): Likewise.
1312         * doc/posix-functions/conjf.texi (conjf): Likewise.
1313         * doc/posix-functions/cpow.texi (cpow): Likewise.
1314         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1315         * doc/posix-functions/cproj.texi (cproj): Likewise.
1316         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1317         * doc/posix-functions/creal.texi (creal): Likewise.
1318         * doc/posix-functions/crealf.texi (crealf): Likewise.
1319         * doc/posix-functions/csin.texi (csin): Likewise.
1320         * doc/posix-functions/csinf.texi (csinf): Likewise.
1321         * doc/posix-functions/csinh.texi (csinh): Likewise.
1322         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1323         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1324         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1325         * doc/posix-functions/ctan.texi (ctan): Likewise.
1326         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1327         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1328         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1329         * doc/posix-headers/complex.texi (complex.h): Likewise.
1330
1331 2010-10-07  Jim Meyering  <meyering@redhat.com>
1332
1333         parse-datetime: avoid compilation failure on OpenBSD 4.7
1334         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1335         This works around a compilation failure on OpenBSD 4.7:
1336         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1337
1338 2010-10-07  Eric Blake  <eblake@redhat.com>
1339
1340         docs: update cygwin progress
1341         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1342         1.7.6.
1343         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1344         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1345         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1346         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1347         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1348         Likewise.
1349         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1350         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1351         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1352         Likewise.
1353         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1354         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1355         Likewise.
1356         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1357         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1358         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1359         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1360         Likewise.
1361         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1362         Likewise.
1363         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1364
1365         docs: update parse-datetime history
1366         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1367         documentation of this function's history and alternatives.
1368
1369         cygwin: use more robust version check
1370         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1371         exclude an eventual cygwin 1.9.1.
1372         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1374         (gl_FUNC_STRCASESTR): Likewise.
1375         Reported by Bruno Haible.
1376
1377 2010-10-06  Bruno Haible  <bruno@clisp.org>
1378
1379         string, sys_select: Avoid #including large headers unless necessary.
1380         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1381         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1382         OSF/1, BeOS, Haiku.
1383         Reported by Jim Meyering.
1384
1385 2010-10-05  Eric Blake  <eblake@redhat.com>
1386
1387         memmem, strstr, strcasestr: fix bug with long periodic needle
1388         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1389         periodic needle having false positive.
1390         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1391         and cygwin 1.7.7.
1392         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1394         (gl_FUNC_STRCASESTR): Likewise.
1395         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1396         * tests/test-memmem.c (main): Expose the bug.
1397         * tests/test-strcasestr.c (main): Likewise.
1398         * tests/test-strstr.c (main): Likewise.
1399         * tests/test-c-strcasestr.c (main): Likewise.
1400         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1401         * doc/posix-functions/strstr.texi (strstr): Likewise.
1402         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1403         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1404
1405 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1406
1407         parse-datetime: do some more renaming
1408         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1409         parse_datetime, not get_date.  Mention the renaming.
1410         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1411         in comments.
1412         * m4/bison.m4: Likewise.
1413
1414 2010-10-05  Eric Blake  <eblake@redhat.com>
1415
1416         parse-datetime: better name than get_date
1417         * NEWS: Reword the deprecation notice.
1418         * modules/get_date: Rename to modules/parse-datetime.
1419         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1420         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1421         * lib/get_date.y: Rename to lib/parse-datetime.y.
1422         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1423         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1424         * doc/getdate.texi: Provide fallback wrapper.
1425         * lib/getdate.h: Move guts, and wrap...
1426         * lib/parse-datetime.h: ...new file.
1427         * lib/parse-datetime.y (get_date): Rename...
1428         (parse_datetime): ...to this.
1429         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1430         (gl_PARSE_DATETIME): ...to this.
1431         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1432         documentation.
1433         * modules/getdate (Files): Provide fallback docs and header.
1434         (Notice, Depends-on): Update references.
1435         * tests/test-parse-datetime.c: Likewise.
1436         * DEPENDENCIES: Likewise.
1437         * MODULES.html.sh (Date and time <time.h>): Likewise.
1438         * doc/parse-datetime.texi (Date input formats)
1439         (Authors of parse_datetime): Likewise.
1440         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1441         (Include): Likewise.
1442         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1443         * gnulib-tool: Likewise.
1444         * m4/bison.m4 (gl_BISON): Likewise.
1445         Suggested by Bruno Haible.
1446
1447 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1448
1449         more ports to Solaris tr, which needs [] around ranges
1450         * gnulib-tool: Solaris tr needs [] around ranges.
1451         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1452         * tests/test-pipe-filter-gi1.c (main): Likewise.
1453         * tests/test-pipe-filter-ii1.c (main): Likewise.
1454
1455 2010-10-05  Eric Blake  <eblake@redhat.com>
1456
1457         bootstrap: fix Solaris regression
1458         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1459         around ranges.
1460         Reported by Pádraig Brady.
1461
1462         bootstrap: work with pkg-config
1463         * build-aux/bootstrap (check_versions): Also transliterate - in
1464         prerequisite name.
1465         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1466         prerequisites that were already found, to avoid confusion.
1467         Reported by Justin Clift.
1468
1469         faccessat: remove unused wrappers
1470         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1471         presence of these wrappers dragged in -lgen on Solaris.
1472         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1473
1474 2010-10-05  Jim Meyering  <meyering@redhat.com>
1475
1476         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1477         * Makefile (sc_pragma_columns): New syntax-check rule.
1478
1479 2010-10-04  Bruno Haible  <bruno@clisp.org>
1480
1481         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1482         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1483         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1484         Reported by Bruce Korb and Eric Blake.
1485
1486 2010-10-04  Bruno Haible  <bruno@clisp.org>
1487
1488         threadlib: Make option --with-libpth-prefix work.
1489         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1490         use $LIBPTH, not just -lpth.
1491
1492 2010-10-04  Bruno Haible  <bruno@clisp.org>
1493
1494         Avoid line length limitation from HP NonStop system header files.
1495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1496         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1497         * lib/ctype.in.h: Likewise.
1498         * lib/dirent.in.h: Likewise.
1499         * lib/errno.in.h: Likewise.
1500         * lib/fcntl.in.h: Likewise.
1501         * lib/float.in.h: Likewise.
1502         * lib/getopt.in.h: Likewise.
1503         * lib/iconv.in.h: Likewise.
1504         * lib/inttypes.in.h: Likewise.
1505         * lib/langinfo.in.h: Likewise.
1506         * lib/locale.in.h: Likewise.
1507         * lib/math.in.h: Likewise.
1508         * lib/netdb.in.h: Likewise.
1509         * lib/netinet_in.in.h: Likewise.
1510         * lib/poll.in.h: Likewise.
1511         * lib/pthread.in.h: Likewise.
1512         * lib/pty.in.h: Likewise.
1513         * lib/sched.in.h: Likewise.
1514         * lib/se-selinux.in.h: Likewise.
1515         * lib/search.in.h: Likewise.
1516         * lib/signal.in.h: Likewise.
1517         * lib/spawn.in.h: Likewise.
1518         * lib/stdarg.in.h: Likewise.
1519         * lib/stddef.in.h: Likewise.
1520         * lib/stdint.in.h: Likewise.
1521         * lib/stdio.in.h: Likewise.
1522         * lib/stdlib.in.h: Likewise.
1523         * lib/string.in.h: Likewise.
1524         * lib/strings.in.h: Likewise.
1525         * lib/sys_file.in.h: Likewise.
1526         * lib/sys_ioctl.in.h: Likewise.
1527         * lib/sys_select.in.h: Likewise.
1528         * lib/sys_socket.in.h: Likewise.
1529         * lib/sys_stat.in.h: Likewise.
1530         * lib/sys_time.in.h: Likewise.
1531         * lib/sys_times.in.h: Likewise.
1532         * lib/sys_utsname.in.h: Likewise.
1533         * lib/sys_wait.in.h: Likewise.
1534         * lib/sysexits.in.h: Likewise.
1535         * lib/termios.in.h: Likewise.
1536         * lib/time.in.h: Likewise.
1537         * lib/unistd.in.h: Likewise.
1538         * lib/wchar.in.h: Likewise.
1539         * lib/wctype.in.h: Likewise.
1540         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1541         * modules/ctype (Makefile.am): Likewise.
1542         * modules/dirent (Makefile.am): Likewise.
1543         * modules/errno (Makefile.am): Likewise.
1544         * modules/fcntl-h (Makefile.am): Likewise.
1545         * modules/float (Makefile.am): Likewise.
1546         * modules/getopt-posix (Makefile.am): Likewise.
1547         * modules/iconv-h (Makefile.am): Likewise.
1548         * modules/inttypes (Makefile.am): Likewise.
1549         * modules/langinfo (Makefile.am): Likewise.
1550         * modules/locale (Makefile.am): Likewise.
1551         * modules/math (Makefile.am): Likewise.
1552         * modules/netdb (Makefile.am): Likewise.
1553         * modules/netinet_in (Makefile.am): Likewise.
1554         * modules/poll-h (Makefile.am): Likewise.
1555         * modules/pthread (Makefile.am): Likewise.
1556         * modules/pty (Makefile.am): Likewise.
1557         * modules/sched (Makefile.am): Likewise.
1558         * modules/search (Makefile.am): Likewise.
1559         * modules/selinux-h (Makefile.am): Likewise.
1560         * modules/signal (Makefile.am): Likewise.
1561         * modules/spawn (Makefile.am): Likewise.
1562         * modules/stdarg (Makefile.am): Likewise.
1563         * modules/stddef (Makefile.am): Likewise.
1564         * modules/stdint (Makefile.am): Likewise.
1565         * modules/stdio (Makefile.am): Likewise.
1566         * modules/stdlib (Makefile.am): Likewise.
1567         * modules/string (Makefile.am): Likewise.
1568         * modules/strings (Makefile.am): Likewise.
1569         * modules/sys_file (Makefile.am): Likewise.
1570         * modules/sys_ioctl (Makefile.am): Likewise.
1571         * modules/sys_select (Makefile.am): Likewise.
1572         * modules/sys_socket (Makefile.am): Likewise.
1573         * modules/sys_stat (Makefile.am): Likewise.
1574         * modules/sys_time (Makefile.am): Likewise.
1575         * modules/sys_times (Makefile.am): Likewise.
1576         * modules/sys_utsname (Makefile.am): Likewise.
1577         * modules/sys_wait (Makefile.am): Likewise.
1578         * modules/sysexits (Makefile.am): Likewise.
1579         * modules/termios (Makefile.am): Likewise.
1580         * modules/time (Makefile.am): Likewise.
1581         * modules/unistd (Makefile.am): Likewise.
1582         * modules/wchar (Makefile.am): Likewise.
1583         * modules/wctype (Makefile.am): Likewise.
1584
1585 2010-10-04  Bruno Haible  <bruno@clisp.org>
1586
1587         read-file tests: Avoid a test failure on NonStop Kernel.
1588         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1589         a regular file.
1590         Reported by Joachim Schmitz <schmitz@hp.com>.
1591
1592 2010-10-03  Bruno Haible  <bruno@clisp.org>
1593
1594         gnulib-tool: Fixes for --create-testdir with --libtool.
1595         * gnulib-tool (func_get_automake_snippet): Don't augment
1596         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1597         an executable.
1598         (func_create_testdir): Handle module 'alloca' like func_import.
1599         Reported by Bruce Korb <bruce.korb@gmail.com>.
1600
1601 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         Avoid some lines longer than 80 characters.
1604         * lib/stdint.in.h: Break long comment lines.
1605         * lib/math.in.h: Likewise.
1606         (_GL_NUM_UINT_WORDS): New macro, for readability.
1607         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1608         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1609         * lib/stdlib.in.h: Likewise.
1610         * lib/spawn.in.h: Likewise.
1611         * lib/sys_socket.in.h: Update an URL.
1612         * lib/sys_stat.in.h: Break long line.
1613
1614 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1615
1616         Improve pmccabe2html.
1617         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1618         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1619         when the sources change. Remove the line in the HTML about "Used
1620         ranges" (which implied that there might be other unused ranges),
1621         rename "Resume" to "Summary" (easier to understand for more users).
1622         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1623         styles, and some unnecessary blank lines.
1624
1625 2010-10-03  Bruno Haible  <bruno@clisp.org>
1626             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1627
1628         acl: Add support for ACLs on NonStop Kernel.
1629         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1630         Check whether the function aclsort() exists.
1631         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1632         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1633         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1634         (acl_nontrivial [HAVE_ACLSORT]: New function.
1635         (file_has_acl): Implement for NonStop Kernel.
1636         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1637         (qset_acl): Implement for NonStop Kernel.
1638         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1639         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1640         (main): Implement for NonStop Kernel.
1641         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1642         Kernel. Handle this flavor.
1643         * tests/test-set-mode-acl.sh: Likewise.
1644         * tests/test-copy-acl.sh: Likewise.
1645         * tests/test-copy-file.sh: Likewise.
1646
1647 2010-10-03  Bruno Haible  <bruno@clisp.org>
1648
1649         Info about ACLs on NonStop Kernel.
1650         * doc/acl-resources.txt: Add info about NonStop Kernel.
1651         References by Joachim Schmitz <schmitz@hp.com>.
1652
1653 2010-10-02  Bruno Haible  <bruno@clisp.org>
1654
1655         Define missing EDQUOT on NonStop Kernel.
1656         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1657         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1658         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1659         missing.
1660         * doc/posix-headers/errno.texi: Mention the NSK bug.
1661         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1662         Reported by Joachim Schmitz <schmitz@hp.com>.
1663
1664 2010-10-02  Bruno Haible  <bruno@clisp.org>
1665
1666         Update doc for POSIX:2008.
1667         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1668         Update URL of POSIX specification.
1669
1670 2010-10-02  Bruno Haible  <bruno@clisp.org>
1671
1672         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1673         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1674         from gnulib, not from Automake.
1675
1676 2010-10-02  Bruno Haible  <bruno@clisp.org>
1677
1678         New module 'system-posix'.
1679         * modules/system-posix: New file.
1680         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1681         module is present.
1682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1683         GNULIB_SYSTEM_POSIX.
1684         * modules/stdlib (Depends-on): Remove sys_wait.
1685         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1686         * doc/posix-functions/system.texi: Mention the new module.
1687         * doc/posix-headers/stdlib.texi: Likewise.
1688         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1689         define test_sys_wait_macros to a no-op.
1690         Reported by Sam Steingold <sds@gnu.org>.
1691
1692 2010-09-30  Bruno Haible  <bruno@clisp.org>
1693
1694         More renaming from 'getdate' to 'get_date'.
1695         * doc/get_date.texi: Renamed from doc/getdate.texi.
1696         * modules/get_date (Files): Update.
1697         * MODULES.html.sh (Date and time <time.h>): Update.
1698         * DEPENDENCIES: Update.
1699         * gnulib-tool: Update comment.
1700         * m4/bison.m4 (gl_BISON): Likewise.
1701         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1702
1703 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1704
1705         bootstrap: support ACLOCAL_FLAGS during aclocal
1706         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1707         can add additional -I dir for third-party .m4 files.
1708
1709 2010-09-30  Eric Blake  <eblake@redhat.com>
1710
1711         bootstrap: use glibtoolize on MacOS
1712         * build-aux/bootstrap (check_versions): Convert libtool into
1713         libtoolize.
1714         (tool search): Move libtool check earlier, and look for
1715         glibtoolize for MacOS.
1716         (gnulib_tool_options): Auto-add --libtool when appropriate.
1717         Reported by Justin Clift.
1718
1719         poll: fix typo that broke test on MacOS
1720         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1721         Reported by Justin Clift.
1722
1723         getdate: rename to get_date
1724         Note: getdate.h is not renamed, to minimize client impact.
1725         * modules/getdate: Mark obsolete.  Move old contents...
1726         * modules/get_date: ...to new module name.
1727         * modules/getdate-tests: Move...
1728         * modules/get_date-tests: ...here.
1729         * m4/getdate.m4: Move...
1730         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1731         * lib/getdate.y: Move...
1732         * lib/get_date.y: ...here.
1733         * tests/test-getdate.c: Move...
1734         * tests/test-get_date.c: ...here.
1735         * doc/posix-functions/getdate.texi (getdate): Update name.
1736         * NEWS: Mention the change.
1737
1738 2010-09-29  Bruno Haible  <bruno@clisp.org>
1739
1740         Separate the module 'waitpid' from the module 'sys_wait'.
1741         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1742         present.
1743         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1744         gl_MODULE_INDICATOR_FOR_TESTS.
1745         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1746         * modules/sys_wait (Depends-on): Remove waitpid.
1747         (Makefile.am): Substitute GNULIB_WAITPID.
1748         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1749         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1750         signature only if the 'waitpid' module is present.
1751         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1752         * NEWS: Mention the change.
1753         * modules/grantpt (Depends-on): Add waitpid.
1754         * modules/wait-process (Depends-on): Likewise.
1755
1756 2010-09-29  Bruno Haible  <bruno@clisp.org>
1757
1758         More tests for module 'sys_wait'.
1759         * modules/sys_wait-c++-tests: New file.
1760         * tests/test-sys_wait-c++.cc: New file.
1761         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1762         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1763
1764 2010-09-29  Bruno Haible  <bruno@clisp.org>
1765
1766         New module 'waitpid'.
1767         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1768         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1769         Don't include <process.h>.
1770         (waitpid): Declare only, using modern idiom.
1771         * m4/waitpid.m4: New file.
1772         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1773         * modules/waitpid: New file.
1774         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1775         (Makefile.am): Update.
1776         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1777
1778 2010-09-28  Bruno Haible  <bruno@clisp.org>
1779
1780         poll: Assume ANSI C.
1781         * lib/poll.c (poll): Use an ANSI C declaration.
1782
1783 2010-09-28  Bruno Haible  <bruno@clisp.org>
1784
1785         poll-h: Create poll.h on all platforms.
1786         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1787         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1788         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1789         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1790         (gl_REPLACE_POLL_H): Don't set POLL_H.
1791         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1792         * modules/poll-h (Depends-on): Add include_next.
1793         (Makefile.am): Create poll.h unconditionally. Substitute also
1794         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1795
1796 2010-09-28  Bruno Haible  <bruno@clisp.org>
1797
1798         Tests for module 'poll-h'.
1799         * modules/poll-h-c++-tests: New file.
1800         * tests/test-poll-h-c++.cc: New file.
1801
1802         Tests for module 'poll-h'.
1803         * modules/poll-h-tests: New file.
1804         * tests/test-poll-h.c: New file.
1805
1806 2010-09-28  Bruno Haible  <bruno@clisp.org>
1807
1808         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1809         * modules/poll-h (Depends-on): Add 'extensions'.
1810
1811 2010-09-28  Bruno Haible  <bruno@clisp.org>
1812
1813         New module 'poll-h'.
1814         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1815         (poll): Use modern idiom.
1816         * modules/poll-h: New file.
1817         * modules/poll (Files): Remove lib/poll.in.h.
1818         (Depends-on): Add poll-h.
1819         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1820         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1821         * m4/poll_h.m4: New file.
1822         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1823         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1824         and invoke gl_REPLACE_POLL_H.
1825         * lib/poll.c: Use common idiom.
1826         * tests/test-poll.c: Likewise.
1827         * doc/posix-headers/poll.texi: Mention the poll-h module.
1828         Suggested by Eric Blake.
1829
1830 2010-09-26  Bruno Haible  <bruno@clisp.org>
1831
1832         sys_wait: Implement WSTOPSIG.
1833         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1834         Reported by Simon Josefsson.
1835
1836 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1837
1838         stdlib, sys_wait: Avoid compilation error on mingw.
1839         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1840
1841 2010-09-26  Bruno Haible  <bruno@clisp.org>
1842
1843         stdlib tests: Avoid code duplication.
1844         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1845         * modules/sys_wait-tests (Files): Likewise.
1846         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1847         * tests/test-stdlib.c: Include test-sys_wait.h.
1848         (main): Invoke test_sys_wait_macros.
1849         * tests/test-sys_wait.c: Include test-sys_wait.h.
1850         (main): Invoke test_sys_wait_macros.
1851
1852 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1853
1854         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1855         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1856         sure Windows sockets are working before calling getaddrinfo.
1857         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1858         * doc/gnulib.texi (Windows sockets): Fix typo.
1859
1860 2010-09-25  Bruno Haible  <bruno@clisp.org>
1861
1862         Tests for module 'regex-quote'.
1863         * modules/regex-quote-tests: New file.
1864         * tests/test-regex-quote.c: New file.
1865
1866         New module 'regex-quote'.
1867         * lib/regex-quote.h: New file.
1868         * lib/regex-quote.c: New file.
1869         * modules/regex-quote: New file.
1870         Suggested by Reuben Thomas <rrt@sc3d.org>.
1871
1872 2010-09-24  Bruno Haible  <bruno@clisp.org>
1873
1874         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1875         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1876
1877 2010-09-23  Bruno Haible  <bruno@clisp.org>
1878
1879         setenv: Relax license.
1880         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1881         Blake.
1882         Requested by Eric Blake.
1883
1884 2010-09-22  Bruno Haible  <bruno@clisp.org>
1885
1886         termios: Relax license.
1887         * modules/termios (License): Change to LGPLv2+.
1888         Requested by Eric Blake.
1889
1890 2010-09-22  Bruno Haible  <bruno@clisp.org>
1891
1892         threadlib: Allow the package to change the default to 'no'.
1893         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1894         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1895         Reported by Paul Eggert.
1896
1897 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1898             Bruno Haible  <bruno@clisp.org>
1899
1900         Fix endless loop in mbmemcasecoll.
1901         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1902         byte.
1903         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1904
1905 2010-09-22  Bruno Haible  <bruno@clisp.org>
1906
1907         Tests for module 'memcoll'.
1908         * modules/memcoll-tests: New file.
1909         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1910
1911         memcoll, xmemcoll: Clarify size vs. length.
1912         * modules/memcoll.c (memcoll0): Clarify specification.
1913         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1914         passed to collate_error.
1915
1916 2010-09-22  Bruno Haible  <bruno@clisp.org>
1917
1918         Tests for module 'memcasecmp'.
1919         * modules/memcasecmp-tests: New file.
1920         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1921
1922 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1923
1924         * lib/pthread.in.h: Add split double-inclusion guard, and include
1925         system <pthread.h> if there is one.  Use @@-style as in other
1926         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1927         pthread.h doesn't.
1928         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1929         (pthread_mutexattr_settype, pthread_mutex_trylock):
1930         New static inline functions, if there's no system <pthread.h>.
1931         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1932         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1933         Approximate with mutexes if the system lacks spinlocks, as in
1934         MacOS.
1935         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1936         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1937         @@-style.  Check for spinlocks separately.
1938         (gl_PTHREAD_DEFAULTS): New macro.
1939         * modules/pthread: Redo to use a more typical style for in.h files.
1940
1941 2010-09-21  Eric Blake  <eblake@redhat.com>
1942
1943         net_if: enhance tests
1944         * tests/test-net_if.c (main): Move signature checks earlier.
1945         Print failures to stderr.
1946         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1947         Document the bug that we do not yet fix.
1948
1949 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1950
1951         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1952         about gnulib, not GSS.
1953
1954 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1955
1956         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1957         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1958         for Emacs.
1959         * build-aux/pmccabe2html: Make Makefile.am example code more
1960         cut-and-paste friendly.
1961
1962 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1963
1964         * tests/test-net_if.c: New file.
1965         * modules/net_if-tests: New file.
1966
1967 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1968
1969         pthread: add pthread_spin_destroy
1970         * lib/pthread.in.h (pthread_spin_destroy): New function.
1971
1972 2010-09-19  Bruno Haible  <bruno@clisp.org>
1973
1974         gnulib-tool: Fix --help output.
1975         * gnulib-tool (func_usage): Fix help message.
1976         Reported by Reuben Thomas <rrt@sc3d.org>.
1977
1978 2010-09-18  Jim Meyering  <meyering@redhat.com>
1979
1980         maint.mk: avoid unexpanded \n in two diagnostics
1981         * top/maint.mk (sc_prohibit_always_true_header_tests):
1982         Don't use a literal \n in a halt=... assignment.  It would not be
1983         expanded, and the two \n bytes would appear in the diagnostic output
1984         rather than the desired newline.  Use halt=$$(printf ... instead.
1985         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1986
1987 2010-09-18  Bruno Haible  <bruno@clisp.org>
1988
1989         netinet_in: Doc tweak.
1990         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1991         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1992
1993 2010-09-18  Jim Meyering  <meyering@redhat.com>
1994
1995         init.sh: correct an outdated comment
1996         * tests/init.sh (create_exe_shims_):  s/function/alias/
1997
1998         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1999         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2000         a file named "*.exe" is removed between the glob expansion and the
2001         processing of that oddly named file.
2002
2003 2010-09-17  Eric Blake  <eblake@redhat.com>
2004
2005         mirbsd: add some more support
2006         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2007         in BSD family.
2008         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2009         devices as OpenBSD.
2010         * m4/host-os.m4 (mirbsd): Add MirBSD.
2011
2012         tests: fix unportable assumption on sys/wait.h
2013         * tests/test-sys_wait.c (main): Relax test.
2014         * tests/test-stdlib.c (main): Likewise.
2015
2016         init.sh: accomodate directory with no .exes
2017         * tests/init.sh: Accomodate directory containing only scripts.
2018
2019         tests: avoid compiler warning
2020         * tests/test-stdlib.c (main): Use the variable.
2021
2022         fdutimens, fdutimensat: update signature, again
2023         * lib/utimens.h (gl_futimens): Delete, and move signature...
2024         (fdutimens): ...here.
2025         (fdutimensat): Rearrange signature.
2026         (lutimensat): Rename variable for clarity.
2027         * lib/fdutimensat.c (fdutimensat): Update signature.
2028         * lib/utimens.c (fdutimens): Likewise.
2029         (gl_futimens): Delete.
2030         (utimens, lutimens): Update callers.
2031         * lib/futimens.c (futimens): Likewise.
2032         * tests/test-fdutimensat.c: Likewise.
2033         * tests/test-utimens.c: Likewise.
2034         * tests/test-futimens.h: Update comment.
2035         * NEWS: Mention this.
2036         Suggested by Paul Eggert.
2037
2038 2010-09-17  Bruno Haible  <bruno@clisp.org>
2039
2040         Take over the maintenance of some older macros from Autoconf.
2041         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2042         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2043         GNU Autoconf.
2044         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2045         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2046
2047 2010-09-17  Eric Blake  <eblake@redhat.com>
2048
2049         fdutimensat: drop atflag validation
2050         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2051         with valid fd, to close a race scenario where futimens is
2052         unsupported and FILE was replaced by a symlink.
2053         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2054         accordingly.
2055         Suggested by Paul Eggert.
2056
2057 2010-09-16  Bruno Haible  <bruno@clisp.org>
2058
2059         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2060         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2061
2062 2010-09-16  Bruno Haible  <bruno@clisp.org>
2063
2064         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2065         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2066         login_tty exists.
2067         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2068
2069 2010-09-16  Bruno Haible  <bruno@clisp.org>
2070
2071         login_tty: Make the replacement code work on BSD systems.
2072         * lib/login_tty.c: Include <sys/ioctl.h>.
2073         (login_tty): Use ioctl TIOCSCTTY when available.
2074         * modules/login_tty (Depends-on): Add sys_ioctl.
2075         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2076
2077 2010-09-16  Bruno Haible  <bruno@clisp.org>
2078
2079         login_tty: Stricter unit test.
2080         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2081         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2082         and tcgetsid() after login_tty.
2083         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2084
2085 2010-09-16  Bruno Haible  <bruno@clisp.org>
2086
2087         New module 'tcgetsid'.
2088         * lib/tcgetsid.c: New file.
2089         * m4/tcgetsid.m4: New file.
2090         * modules/tcgetsid: New file.
2091         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2092         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2093         GNULIB_TCGETSID, HAVE_TCGETSID.
2094         * lib/termios.in.h: Include <sys/types.h>.
2095         (tcgetsid): New declaration.
2096         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2097         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2098         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2099         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2100
2101 2010-09-16  Bruno Haible  <bruno@clisp.org>
2102
2103         Tests for module 'termios'.
2104         * modules/termios-c++-tests: New file.
2105         * modules/termios-tests: New file.
2106         * tests/test-termios-c++.cc: New file.
2107         * tests/test-termios.c: New file.
2108
2109         New module 'termios'.
2110         * modules/termios: New file.
2111         * lib/termios.in.h: New file.
2112         * m4/termios_h.m4: New file.
2113         * doc/posix-headers/termios.texi: Mention the new module.
2114
2115 2010-09-16  Eric Blake  <eblake@redhat.com>
2116
2117         fdutimensat: add an atflag parameter
2118         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2119         * lib/utimens.h (fdutimensat): Update prototype.
2120         * tests/test-fdutimensat.c: Adjust test to match.
2121         * NEWS: Document the change.
2122         Suggested by Paul Eggert.
2123
2124 2010-09-16  Bruno Haible  <bruno@clisp.org>
2125
2126         Fix typos in comments.
2127         * lib/striconveh.h: Fix typo in comment.
2128         * lib/login_tty.c (login_tty): Likewise.
2129
2130 2010-09-15  Bruno Haible  <bruno@clisp.org>
2131
2132         stdlib: clarify MirBSD WEXITSTATUS bug
2133         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2134         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2135
2136 2010-09-15  Eric Blake  <eblake@redhat.com>
2137
2138         stdlib: work around MirBSD WEXITSTATUS bug
2139         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2140         * modules/stdlib (Depends-on): Add sys_wait.
2141         * tests/test-sys_wait.c (main): Enhance test.
2142         * tests/test-stdlib.c (main): Likewise.
2143         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2144
2145         docs: mention MacOS issue with WEXITSTATUS(constant)
2146         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2147         issue.
2148         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2149
2150         strnlen: add tests
2151         * modules/strnlen-tests: New file.
2152         * tests/test-strnlen.c: Likewise.
2153
2154 2010-09-14  Bruno Haible  <bruno@clisp.org>
2155
2156         unistr/base: Avoid link errors when module 'libunistring' is also used.
2157         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2158         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2159         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2160         Declare also when HAVE_LIBUNISTRING is set.
2161         Reported by Pádraig Brady <P@draigbrady.com>.
2162
2163 2010-09-14  Eric Blake  <eblake@redhat.com>
2164
2165         test-rawmemchr: make more robust
2166         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2167         (Depends-on, configure.ac): Add needed prerequisites to use it.
2168         * modules/memchr-tests (Files, Depends-on, configure.ac):
2169         Likewise, to avoid implicit reliance on memchr module prereqs.
2170         * tests/test-memchr.c (main): Ensure proper masking.
2171         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2172         reads.
2173
2174         memchr: detect glibc Alpha bug
2175         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2176         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2177         Alpha.
2178         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2179         * tests/test-memchr.c (main): Enhance test.
2180         Reported by Nelson H. F. Beebe.
2181
2182 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2183
2184         fts, getcwd, glob: audit for dirfd returning -1
2185         * lib/fts.c (opendir): Remove #define; no longer used.
2186         (opendirat): New arg PDIR_FD.  All callers changed.
2187         (fts_build, _opendir2): Use new opendirat to avoid the need for
2188         dirfd, or for checking whether dirfd returns a negative value.
2189         Don't use opendir; always use openat followed by fdopendir.
2190         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2191         it.
2192         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2193         returns -1 here.
2194         * modules/fts (Depends-on): Remove dirfd.
2195         * modules/getcwd (Depends-on): Likewise.
2196
2197 2010-09-13  Eric Blake  <eblake@redhat.com>
2198
2199         float: fix broken MirBSD header
2200         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2201         * doc/posix-headers/float.texi (float.h): Document it.
2202
2203 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2206         * lib/fts.c (opendirat): New arg extra_flags.
2207         (__opendir2): Use it to avoid following symlinks when opening
2208         a directory, if symlinks are not supposed to be followed.  See
2209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2210
2211         fdopendir: preserve argument fd before returning
2212         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2213         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2214         (fdopendir): Use them, arranging for FD to be open to the same
2215         directory that it was when it started.  (It might be temporarily
2216         closed while fdopendir is running, so this not thread- or
2217         signal-safe.)  Be careful to do the right thing even when file
2218         descriptors are scarce and dup fails with errno == EMFILE.  See
2219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2220
2221 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2222
2223         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2224         * NEWS: Document change.
2225         * m4/regex.m4: Disable test for regoff_t size.
2226
2227 2010-09-13  Jim Meyering  <meyering@redhat.com>
2228
2229         fts: don't operate on an invalid file descriptor after failed dup
2230         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2231         negative file descriptor.
2232
2233 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         savedir: add streamsavedir, deprecate fdsavedir
2236         * NEWS: Mention deprecation of fdsavedir.
2237         * lib/savedir.c (streamsavedir): New extern function, whose name
2238         ends in "savedir" to be consistent with the others.  This differs
2239         from savedirstream in that it doesn't close its argument.  The
2240         next version of GNU tar will use this instead of fdsavedir, to
2241         avoid some race conditions and conserve file descriptors.
2242         (savedirstream): Reimplement as a wrapper around streamsavedir.
2243         (fdsavedir): Add a comment deprecating this function.  As far as
2244         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2245         * lib/savedir.h (streamsavedir): New decl.
2246         (fdsavedir): Add a comment deprecating this.
2247
2248 2010-09-10  Bruno Haible  <bruno@clisp.org>
2249
2250         langinfo: Fix last commit.
2251         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2252         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2254
2255 2010-09-10  Bruno Haible  <bruno@clisp.org>
2256
2257         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2258         * lib/progreloc.c (O_EXEC): Define fallback.
2259
2260 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2261
2262         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2263         * NEWS: Document recent changes to fcntl-h.
2264         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2265         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2266         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2267         Similarly for O_SEARCH; this last was already true, but not documented.
2268         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2269         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2270         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2271         Likewise.
2272         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2273         is zero, not whether it is defined.
2274         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2275         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2276         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2277
2278 2010-09-10  Bruno Haible  <bruno@clisp.org>
2279
2280         langinfo, nl_langinfo: Fix for IRIX 5.3.
2281         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2282         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2283         HAVE_LANGINFO_YESEXPR.
2284         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2285         HAVE_LANGINFO_YESEXPR.
2286         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2287         HAVE_LANGINFO_T_FMT_AMPM is 0.
2288         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2289         HAVE_LANGINFO_YESEXPR is 0.
2290         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2291         NOEXPR.
2292         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2293         * doc/posix-functions/nl_langinfo.texi: Likewise.
2294         Reported by Eric Blake.
2295
2296 2010-09-10  Bruno Haible  <bruno@clisp.org>
2297
2298         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2299         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2300         on FreeBSD 8.0 and OpenBSD 4.6.
2301         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2302         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2303         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2304         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2305         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2306         ac_includes_default.
2307         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2308
2309 2010-09-09  Eric Blake  <eblake@redhat.com>
2310
2311         strsignal: work around NetBSD bug
2312         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2313         * lib/string.in.h (includes): Likewise.
2314         * doc/posix-functions/strsignal.texi (strsignal): Document the
2315         bug.
2316         Reported by Nelson H. F. Beebe.
2317
2318         gnulib-tool: work with NetBSD /bin/sh
2319         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2320         (func_get_description, func_get_comment, func_get_status)
2321         (func_get_notice, func_get_applicability, func_get_filelist)
2322         (func_get_dependencies, func_get_autoconf_early_snippet)
2323         (func_get_autoconf_snippet, func_get_automake_snippet)
2324         (func_get_include_directive, func_get_link_directive)
2325         (func_get_license, func_get_maintainer, func_import): Avoid
2326         shell syntax errors from parsing syntax extensions.
2327
2328 2010-09-09  Bruno Haible  <bruno@clisp.org>
2329
2330         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2331         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2332         a reliable way to determine whether the 'alias' command works.
2333
2334 2010-09-08  Jim Meyering  <meyering@redhat.com>
2335
2336         init.sh: penalize a set-x-impaired shell; don't disqualify it
2337         * tests/init.sh: Too many shells corrupt application stderr when
2338         you set -x, so we can't afford to disqualify them, since at least
2339         on Irix-6.5, that would disqualify all bourne shells.
2340         Instead, use a two-pass approach.
2341         On the first pass, try to find a shell that meets the stricter
2342         condition that set -x does not corrupt stderr.
2343         If no shell meets the stricter condition, retest each candidate
2344         shell, but without that extra condition.  Finally, when
2345         VERBOSE=yes is requested and set -x might cause trouble, simply
2346         issue a warning and refrain from enabling debug output.
2347
2348 2010-09-08  Eric Blake  <eblake@redhat.com>
2349
2350         unsetenv: fix OpenBSD bug
2351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2352         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2353         documentation.
2354         Reported by Jim Meyering.
2355
2356         strtod: work around IRIX 6.5 bug
2357         * lib/strtod.c (strtod): Reparse number on shorter string if
2358         exponent parse was invalid.
2359         * tests/test-strtod.c (main): Add check for "0x1p 2".
2360         Reported by Tom G. Christensen.
2361
2362         getopt: optimize previous patch
2363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2364         empty variable.  Speed up awk script.
2365         Reported by Paolo Bonzini.
2366
2367 2010-09-08  Jim Meyering  <meyering@redhat.com>
2368
2369         test.sh: disqualify shells for which set -x corrupts stderr
2370         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2371         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2372         appear in stderr output.  For example, this command:
2373             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2374         prints "P=1" on those two systems:
2375
2376 2010-09-08  Bruno Haible  <bruno@clisp.org>
2377
2378         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2379         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2380         commands, because some shells ignore redirections when there is an
2381         error in the command lookup.
2382         Reported by Eric Blake.
2383
2384 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2385
2386         * lib/regex.h: Fix a mention of `regex_compile' (should be
2387         `re_compile_pattern').
2388         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2389         (re_set_registers): Correct name of parameter in comment.
2390
2391         * doc/regex.texi: Add documentation for missing syntax flags.
2392         Remove commented-out documentation of defunct syntax option
2393         RE_NO_EMPTY_ALTS.
2394         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2395         Add documentation of re_set_registers.
2396         Document trick to re-use a pattern buffer by setting fastmap manually.
2397         Update documentation of struct re_pattern_buffer per public members.
2398         Uncomment documentation of equivalence class operators and
2399         collating symbol operators, since they are now implemented,
2400         Explain leftmost-longest matching in relation to alternatives.
2401         Tidy documentation of substring matching.
2402         Remove POSIX documentation, which is done better in
2403         glibc, and refer the reader there. Keep BSD API documentation, as
2404         that is not readily available elsewhere.
2405
2406 2010-09-07  Eric Blake  <eblake@redhat.com>
2407
2408         getopt: handle POSIXLY_CORRECT set but not exported
2409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2410         export state of POSIXLY_CORRECT, due to bash set -o posix.
2411         Reported by Dustin J. Mitchell.
2412
2413 2010-09-05  Bruno Haible  <bruno@clisp.org>
2414
2415         gnulib-tool: Highlight the changed options.
2416         * gnulib-tool (func_usage): Display the --import, --add-import,
2417         --remove-import explanations in bold font.
2418
2419 2010-09-06  Karl Berry  <karl@gnu.org>
2420
2421         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2422
2423 2010-09-05  Bruno Haible  <bruno@clisp.org>
2424
2425         uniwidth/width: Update comment.
2426         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2427         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2428
2429 2010-09-05  Bruno Haible  <bruno@clisp.org>
2430
2431         isinf, isnan: Relax license.
2432         * modules/isinf (License): Change from GPL to LGPL, with consent from
2433         Ben Pfaff.
2434         * modules/isnan (License): Likewise.
2435         Requested by Ludovic Courtès.
2436
2437 2010-09-04  Bruno Haible  <bruno@clisp.org>
2438
2439         gnulib-tool: Help migration from --import to --add-import or --update.
2440         * gnulib-tool: Emit a verbose error message when --import is used
2441         without any module name.
2442
2443 2010-09-04  Bruno Haible  <bruno@clisp.org>
2444
2445         Update doc about gnulib-tool.
2446         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2447         'gnulib-tool --update' in more detail.
2448         Reported by Eric Blake.
2449
2450 2010-09-04  Bruno Haible  <bruno@clisp.org>
2451
2452         gnulib-tool: Change --import. New options --add/remove-import.
2453         * gnulib-tool: New options --add-import, --remove-import.
2454         (func_usage): Document them.
2455         (have_associative): Define always.
2456         (func_import): In import mode, don't merge the specified settings with
2457         the cached settings. Implement remove-import mode.
2458         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2459         Explain when to use them versus --import.
2460         (Simple update): Use --add-import instead of --import.
2461         * NEWS: Mention the change.
2462
2463 2010-09-04  Bruno Haible  <bruno@clisp.org>
2464
2465         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2466         separate gnulib.mk.
2467
2468 2010-09-04  Bruno Haible  <bruno@clisp.org>
2469
2470         gnulib-tool: Don't talk about CVS any more.
2471         * gnulib-tool (func_usage, func_import): Write "version control"
2472         instead of CVS.
2473
2474 2010-09-04  Jim Meyering  <meyering@redhat.com>
2475
2476         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2477         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2478         false positives (whose names may be ill-chosen) when searching
2479         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2480         would cause a false-positive.
2481
2482         avoid coreutils "make distcheck" failure
2483         Coreutils tests with an absolute build directory name that contains
2484         a space.  Not quoting this directory name caused a failure.
2485         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2486         * tests/test-vc-list-files-cvs.sh: Likewise.
2487
2488 2010-09-04  Bruno Haible  <bruno@clisp.org>
2489
2490         gnulib-tool: Avoid error when run in a package without Makefile.am.
2491         * gnulib-tool: When collecting the m4dirs in a package that does not
2492         have a Makefile.am, eliminate those directories that contain no
2493         gnulib-cache.m4. Fix expression that counts these directories.
2494
2495 2010-09-04  Bruno Haible  <bruno@clisp.org>
2496
2497         update-copyright test: Improve output when perl is missing or too old.
2498         * tests/test-update-copyright.sh: Move test of Perl version down after
2499         the test whether Perl exists. Provide an explanation relating Perl's
2500         error message to Automake's SKIP: message.
2501
2502 2010-09-04  Bruno Haible  <bruno@clisp.org>
2503
2504         Don't augment PATH in TESTS_ENVIRONMENT.
2505         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2506         set abs_aux_dir instead of augmenting PATH.
2507         * modules/vc-list-files-tests (Makefile.am): Likewise.
2508         * tests/test-update-copyright.sh: Augment PATH here.
2509         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2510         path_prepend_.
2511         * tests/test-vc-list-files-git.sh: Likewise.
2512
2513 2010-09-04  Jim Meyering  <meyering@redhat.com>
2514
2515         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2516         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2517
2518 2010-09-04  Bruno Haible  <bruno@clisp.org>
2519
2520         strdup: Fix compilation error in C++ mode.
2521         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2522         the macro.
2523
2524 2010-09-04  Bruno Haible  <bruno@clisp.org>
2525
2526         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2527         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2528         macro into a function.
2529         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2530
2531 2010-09-04  Bruno Haible  <bruno@clisp.org>
2532
2533         Set PATH_SEPARATOR the same way autoconf does.
2534         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2535         the value of PATH_SEPARATOR the same way autoconf-generated configure
2536         scripts do.
2537         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2538         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2539
2540 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2541
2542         Set PATH_SEPARATOR the same way autoconf does.
2543         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2544         the same way autoconf-generated configure scripts do.
2545         * posix-modules: Likewise.
2546
2547 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2548
2549         hash: fix safe_hasher const typo
2550         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2551         const; otherwise, there is a type error later.
2552
2553 2010-09-02  Jim Meyering  <meyering@redhat.com>
2554
2555         test-update-copyright.sh: require perl 5.8.0
2556         * tests/test-update-copyright.sh: Require 5.8.0,
2557         which Tom G. Christensen has confirmed is adequate,
2558         while 5.6.1 is not.
2559
2560 2010-09-02  Eric Blake  <eblake@redhat.com>
2561
2562         tests: init.sh improvements for re-exec'ing with zsh
2563         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2564         -vx through shell re-exec.
2565         Reported by Tom G. Christensen.
2566
2567         wctype: fix typo in previous commit
2568         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2569         Reported by Ludovic Courtès.
2570
2571 2010-09-02  Jim Meyering  <meyering@redhat.com>
2572
2573         test-update-copyright.sh: skip test if Perl is too old
2574         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2575         Reported by Tom G. Christensen.
2576
2577 2010-09-02  Bruno Haible  <bruno@clisp.org>
2578
2579         wctype: Avoid compilation error on IRIX 6.5.30.
2580         * lib/wctype.in.h (iswblank): Declare with a replacement if
2581         REPLACE_ISWBLANK is set.
2582         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2583         declared. Set REPLACE_ISWBLANK.
2584         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2585         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2586         * doc/posix-headers/wctype.texi: Likewise.
2587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2588
2589 2010-09-01  Bruno Haible  <bruno@clisp.org>
2590
2591         New module 'socketlib'.
2592         * modules/socketlib: New file.
2593         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2594         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2595         * modules/sockets (Depends-on): Add socketlib.
2596         Suggested by Sam Steingold <sds@gnu.org>.
2597
2598 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2599
2600         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2601
2602         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2603         when one needs search access to a directory but not read access.
2604         On systems where it is available, it works in some cases where
2605         O_RDONLY does not, namely on directories that are searchable but
2606         not readable, and which need only to be searchable.  If O_SEARCH
2607         is not available, fall back to the traditional method of using
2608         O_RDONLY.
2609
2610         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2611         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2612         when opening a directory that needs only to be searchable.
2613         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2614         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2615         * lib/openat-proc.c (openat_proc_name): Likewise.
2616         * lib/openat.c (openat_needs_fchdir): Likewise.
2617         * lib/save-cwd.c (save_cwd): Likewise.
2618         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2619
2620 2010-08-28  Bruno Haible  <bruno@clisp.org>
2621
2622         New module 'host-cpu-c-abi'.
2623         * modules/host-cpu-c-abi: New file.
2624         * m4/host-cpu-c-abi.m4: New file, based on part of
2625         clisp/src/m4/general.m4.
2626         Requested by Sam Steingold <sds@gnu.org>.
2627
2628 2010-08-31  Eric Blake  <eblake@redhat.com>
2629         and Jim Meyering  <meyering@redhat.com>
2630
2631         hash: factor, and guard against misbehaving hasher function
2632         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2633         of table->hasher's return value.  Also protect against a hash value
2634         so large that adding it to table->bucket results in a NULL pointer.
2635         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2636         Use it in place of open-coded check-and-abort.
2637
2638 2010-08-30  Bruno Haible  <bruno@clisp.org>
2639
2640         hash: silence spurious clang warning
2641         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2642         Reported by Eric Blake.
2643
2644 2010-08-30  Eric Blake  <eblake@redhat.com>
2645
2646         strstr, memmem, strcasestr: avoid leaked shell message
2647         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2648         FreeBSD.
2649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2651
2652         tests: silence clang warning
2653         * tests/test-malloca.c (do_allocation): Avoid dead store.
2654
2655 2010-08-29  Bruno Haible  <bruno@clisp.org>
2656
2657         gettext: Fix recent mistake.
2658         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2659
2660 2010-08-29  Bruno Haible  <bruno@clisp.org>
2661
2662         selinux-h: Offer a --without-selinux option.
2663         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2664         --without-selinux was specified, skip all tests and define
2665         HAVE_SELINUX_SELINUX_H to 0.
2666         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2667         set LIB_SELINUX to empty.
2668         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2669         gl_LIBSELINUX. If --without-selinux was specified, replace
2670         selinux/context.h.
2671         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2672
2673 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2674             Bruno Haible  <bruno@clisp.org>
2675
2676         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2677         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2678         of HAVE_REALLOC.
2679         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2680         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2681         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2682         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2683
2684 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2685             Bruno Haible  <bruno@clisp.org>
2686
2687         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2688         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2689         HAVE_CALLOC.
2690         * lib/xmalloc.c: Update accordingly.
2691         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2692         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2693         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2694
2695 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2696             Bruno Haible  <bruno@clisp.org>
2697
2698         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2699         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2700         HAVE_MALLOC.
2701         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2702         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2703         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2704
2705 2010-08-29  Bruno Haible  <bruno@clisp.org>
2706
2707         Update modules list.
2708         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2709         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2710         (String handling <string.h>): Add astrxfrm.
2711         (File system functions): Add readlinkat.
2712
2713 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2714
2715         Tests for module 'realloc-gnu'.
2716         * modules/realloc-gnu-tests: New file.
2717         * tests/test-realloc-gnu.c: New file.
2718
2719         Tests for module 'calloc-gnu'.
2720         * modules/calloc-gnu-tests: New file.
2721         * tests/test-calloc-gnu.c: New file.
2722
2723         Tests for module 'malloc-gnu'.
2724         * modules/malloc-gnu-tests: New file.
2725         * tests/test-malloc-gnu.c: New file.
2726
2727 2010-08-28  Bruno Haible  <bruno@clisp.org>
2728
2729         Rename module 'realloc' -> 'realloc-gnu'.
2730         * modules/realloc-gnu: New file, copied from modules/realloc.
2731         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2732         obsolete.
2733         * modules/mgetgroups (Depends-on): Update.
2734         * doc/posix-functions/realloc.texi: Update.
2735         * NEWS: Mention the change.
2736
2737         Rename module 'calloc' -> 'calloc-gnu'.
2738         * modules/calloc-gnu: New file, copied from modules/calloc.
2739         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2740         obsolete.
2741         * doc/posix-functions/calloc.texi: Update.
2742         * NEWS: Mention the change.
2743
2744         Rename module 'malloc' -> 'malloc-gnu'.
2745         * modules/malloc-gnu: New file, copied from modules/malloc.
2746         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2747         obsolete.
2748         * modules/argp (Depends-on): Update.
2749         * modules/regex (Depends-on): Update.
2750         * doc/posix-functions/malloc.texi: Update.
2751         * NEWS: Mention the change.
2752
2753 2010-08-28  Eric Blake  <eblake@redhat.com>
2754
2755         pread, pwrite: add missing dependency
2756         * modules/pread (Depends-on): Add extensions.
2757         * modules/pwrite (Depends-on): Likewise.
2758
2759 2010-08-28  Bruno Haible  <bruno@clisp.org>
2760
2761         unistr/u*-strchr: Fix tests dependencies.
2762         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2763         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2764         Reported by Ian Beckwith <ianb@erislabs.net>.
2765
2766 2010-08-28  Bruno Haible  <bruno@clisp.org>
2767
2768         read-file: Don't occupy too much unused memory.
2769         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2770
2771 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2772             Eric Blake  <eblake@redhat.com>
2773             Bruno Haible  <bruno@clisp.org>
2774
2775         read-file: Avoid memory reallocations with regular files.
2776         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2777         (fread_file): With regular files, use the remaining length as the
2778         initial buffer size.  Check against overflow.
2779         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2780         sys_stat.
2781
2782 2010-08-28  Bruno Haible  <bruno@clisp.org>
2783
2784         ftello: Relax license.
2785         * modules/ftello (License): Relax to LGPLv2+.
2786         Reported by Eric Blake.
2787
2788 2010-08-28  Bruno Haible  <bruno@clisp.org>
2789
2790         Avoid relocwrapper link errors due to gnulib replacement functions.
2791         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2792         function.
2793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2794
2795 2010-08-28  Bruno Haible  <bruno@clisp.org>
2796
2797         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2798         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2799         defined.
2800         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2801         Suggested by Eric Blake.
2802
2803 2010-08-28  Bruno Haible  <bruno@clisp.org>
2804
2805         sys_socket, netdb: Ensure socklen_t gets defined.
2806         * modules/sys_socket (Depends-on): Add socklen.
2807         * modules/netdb (Depends-on): Likewise.
2808         * modules/getaddrinfo (Depends-on): Remove socklen.
2809         * modules/getsockopt (Depends-on): Likewise.
2810         * modules/setsockopt (Depends-on): Likewise.
2811         * tests/test-sys_socket.c: Check that socklen_t is defined.
2812         * tests/test-netdb.c: Likewise.
2813         * m4/socklen.m4: Update comments.
2814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2815
2816 2010-08-27  Eric Blake  <eblake@redhat.com>
2817
2818         login_tty: add missing dependency
2819         * modules/login_tty (Depends-on): Add pty.
2820
2821 2010-08-26  Eric Blake  <eblake@redhat.com>
2822
2823         lib-symbol-versions: fix m4 quoting
2824         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2825         format for AC_LINK_IFELSE.
2826
2827         glob: fix compile test
2828         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2829
2830         btowc: fix missing file
2831         * modules/btowc (Files): Also ship locale-fr.m4.
2832
2833         lseek: fix link test
2834         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2835         AC_LINK_IFELSE.
2836
2837         include_next: silence autoconf 2.68 warning
2838         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2839         AC_COMPILE_IFELSE as special.
2840         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2841         autoconf < 2.68.
2842
2843         acl: fix compilation test
2844         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2845         AC_COMPILE_IFELSE.
2846
2847 2010-08-26  Bruno Haible  <bruno@clisp.org>
2848
2849         Modernize AC_TRY_RUN invocations.
2850         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2851         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2852         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2853         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2854         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2855         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2856         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2858         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2859         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2861         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2862         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2863         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2865         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2866         gl_MBRLEN_NUL_RETVAL): Likewise.
2867         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2868         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2869         Likewise.
2870         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2871         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2872         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2873         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2874         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2875         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2876         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2877         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2878         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2879         Likewise.
2880         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2881         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2883         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2885         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2886         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2887         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2888         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2890
2891 2010-08-26  Bruno Haible  <bruno@clisp.org>
2892
2893         Modernize AC_TRY_LINK invocations.
2894         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2895         AC_TRY_LINK.
2896         * m4/argp.m4 (gl_ARGP): Likewise.
2897         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2898         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2899         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2900         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2901         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2902         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2903         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2904         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2905         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2907         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2908         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2909         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2910         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2911         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2912         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2913         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2914         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2915         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2916         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2917         Likewise.
2918         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2919         Likewise.
2920         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2921         Likewise.
2922         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2923         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2924         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2925         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2926         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2927         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2928         * m4/servent.m4 (gl_SERVENT): Likewise.
2929         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2930         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2931         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2932         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2933         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2934         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2935         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2936         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2937         * modules/tsearch-tests (configure.ac): Likewise.
2938
2939 2010-08-26  Bruno Haible  <bruno@clisp.org>
2940
2941         Modernize AC_TRY_COMPILE invocations.
2942         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2943         AC_TRY_COMPILE.
2944         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2945         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2946         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2947         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2948         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2949         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2950         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2951         * m4/lock.m4 (gl_LOCK): Likewise.
2952         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2953         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2954         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2955         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2956         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2957         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2958         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2960         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2961         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2962         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2963         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2964         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2965         extraneous semicolon.
2966
2967 2010-08-26  Jim Meyering  <meyering@redhat.com>
2968
2969         stat-time: relax license LGPL
2970         * modules/stat-time (License): Change from GPL to LGPL,
2971         with consent from all contributors, for use in libguile.
2972         Requested by Ludovic Courtès.
2973
2974 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2975
2976         poll: return immediately on POLLHUP.
2977         * lib/poll.c (poll): Always set timeout before wait_timeout is
2978         computed.
2979
2980 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2981
2982         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2983         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2984         rmdir ("dir/.//"), unlinkat.
2985
2986 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         stdbool: avoid spurious failure with modern xlc
2989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2990
2991 2010-08-24  Bruno Haible  <bruno@clisp.org>
2992
2993         getloadavg: simplify code
2994         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2995         gl_have_func. Update comments.
2996
2997 2010-08-24  Eric Blake  <eblake@redhat.com>
2998
2999         getloadavg: don't define SVR4 on cygwin
3000         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3001         only define SVR4 when -lkvm is required.
3002         Reported by Yaakov Selkowitz.
3003
3004 2010-08-24  Bruno Haible  <bruno@clisp.org>
3005
3006         priv-set: fix comment
3007         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3008
3009 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3010
3011         priv-set: fix comments
3012         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3013         to match code, as suggested by David Bartley in:
3014         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3015
3016 2010-08-23  Eric Blake  <eblake@redhat.com>
3017
3018         stdbool: avoid rejecting clang
3019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3020         * tests/test-stdbool.c: Enable more tests if using the system
3021         <stdbool.h> instead of the gnulib replacement.
3022         (main): Move xlc bug test to a runtime test for all compilers.
3023         Reported by Anders Kaseorg.
3024
3025         argz: fix shell quoting issue
3026         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3027         Reported by Charles Wilson.
3028
3029 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3030             Erik Faye-Lund <kusmabite@gmail.com>
3031
3032         poll, select: handle ERROR_BROKEN_PIPE.
3033         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3034         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3035         * lib/select.c (win32_compute_revents): Do not mark a pipe
3036         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3037
3038 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3039
3040         fts: allow compilation with C++
3041         * lib/fts_.h: Specify extern "C" linkage with C++.
3042
3043 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3044
3045         Fix gnulib-tool sed script de-commentation for AIX sed.
3046         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3047         sed.
3048
3049 2010-08-17  Eric Blake  <eblake@redhat.com>
3050
3051         test-stddef: test for (some) offsetof bugs
3052         * tests/test-stddef.c: Enhance test to ensure correct type of
3053         offsetof.
3054         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3055         that we are not fixing at this time.
3056
3057 2010-08-15  Bruno Haible  <bruno@clisp.org>
3058
3059         stpncpy: Allow stpncpy to be defined as a macro.
3060         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3061         if it's already correctly declared.
3062         * lib/string.in.h (stpncpy): Undefine before redefining.
3063         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3064
3065 2010-08-14  Bruno Haible  <bruno@clisp.org>
3066
3067         Rename module 'memxfrm' to 'amemxfrm'.
3068         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3069         (amemxfrm): Renamed from memxfrm.
3070         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3071         (amemxfrm): Renamed from memxfrm.
3072         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3073         * NEWS: Mention the change.
3074         * MODULES.html.sh (String handling <string.h>): Update.
3075         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3076         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3077         * lib/unicase/u16-casexfrm.c: Likewise.
3078         * lib/unicase/u32-casexfrm.c: Likewise.
3079         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3080         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3081         * lib/uninorm/u16-normxfrm.c: Likewise.
3082         * lib/uninorm/u32-normxfrm.c: Likewise.
3083         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3084         memxfrm.
3085         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3086         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3087         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3088         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3089         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3090         Suggested by Paul Eggert.
3091
3092 2010-08-14  Bruno Haible  <bruno@clisp.org>
3093
3094         Tests for module 'astrxfrm'.
3095         * modules/astrxfrm-tests: New file.
3096         * tests/test-astrxfrm.c: New file.
3097
3098         New module 'astrxfrm'.
3099         * lib/astrxfrm.h: New file.
3100         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3101         * modules/astrxfrm: New file.
3102
3103 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3104
3105         regex: Tweak doc.
3106         * doc/regex.texi (Overview): Don't mention regex.c.
3107         (GNU Regular Expression Compiling): Likewise.
3108         (Match-end-of-line Operator): Mention 'not_eol'.
3109
3110 2010-08-14  Brian Gough  <bjg@gnu.org>
3111             Bruno Haible  <bruno@clisp.org>
3112
3113         git-merge-changelog: add doc relating to use with bzr and hg.
3114         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3115
3116 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3117
3118         pthread: fix pthread.h creation for srcdir != builddir
3119         * modules/pthread (Makefile.am): Fix the rule to work also in a
3120         non-srcdir build.
3121
3122 2010-08-13  Karl Berry  <karl@gnu.org>
3123
3124         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3125         * doc/posix-*/*: force line break before @url of POSIX
3126         specifications.
3127         Suggested by Werner Lemberg.
3128
3129 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3130
3131         strtod: fix const diagnostic
3132         * lib/strtod.c (strtod): Don't assign const char * to char *,
3133         as this elicits a warning from GCC when warnings are enabled.
3134
3135 2010-08-10  Pádraig Brady <P@draigbrady.com>
3136         and Eric Blake  <eblake@redhat.com>
3137
3138         copy-acl: ignore ENOTSUP on HP-UX
3139         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3140         so that it is available for HP-UX.
3141         * lib/copy-acl.c (qcopy_acl): Use it.
3142         Reported by Patrick M. Callahan.
3143
3144 2010-08-10  Eric Blake  <eblake@redhat.com>
3145
3146         open, chown: relax license
3147         * modules/open (License): Change to LGPLv2+, with consent by all
3148         authors, for use in augeas.
3149         * modules/chown (License): Likewise.
3150         * modules/lchown (Likewise): Likewise.
3151         Requested by Adam Stokes.
3152
3153 2010-08-09  Karl Berry  <karl@gnu.org>
3154
3155         * build-aux/ar-lib: new file, import from Automake.
3156         * config/srclist.txt: autocheck for updates.
3157
3158 2010-08-09  Eric Blake  <eblake@redhat.com>
3159
3160         readlinkat: adjust client modules
3161         * modules/areadlinkat (Depends-on): Use readlinkat, not
3162         symlinkat.
3163         * modules/areadlinkat-with-size (Depends-on): Likewise.
3164
3165         mknod: be more vocal about danger of running tests as root
3166         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3167         root, since that is just asking for problems.
3168         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3169
3170         readlinkat: split into its own module
3171         * modules/symlinkat: Split readlinkat...
3172         * modules/readlinkat: ...into separate module.
3173         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3174         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3175         * lib/symlinkat.c (readlinkat): Move...
3176         * lib/readlinkat.c: ...into new file.
3177         * modules/symlinkat-tests: Split readlinkat test...
3178         * modules/readlinkat-tests: ...into separate module.
3179         * tests/test-symlinkat.c: Split...
3180         * tests/test-readlinkat.c: ...into new file.
3181         * NEWS: Document the split.
3182         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3183         * lib/unistd.in.h (readlinkat): Likewise.
3184         Suggested by Bruno Haible.
3185
3186 2010-08-08  Bruno Haible  <bruno@clisp.org>
3187
3188         memxfrm: Speed up.
3189         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3190         that usually only one call to strxfrm is necessary for each string
3191         part.
3192         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3193
3194 2010-08-07  Karl Berry  <karl@gnu.org>
3195
3196         * doc/posix-headers/limits.texi,
3197         * doc/posix-functions/malloc.texi,
3198         * doc/posix-functions/strsignal.texi: missing @item.
3199         * doc/ld-version-script.texi: spurious leading i.
3200         * doc/regex.texi (Interval Operators): no commas inside @var.
3201
3202 2010-08-01  Bruno Haible  <bruno@clisp.org>
3203
3204         Integrate the regex documentation.
3205         * doc/gnulib.texi: Define 'cn' index.
3206         (Regular expressions): New a chapter that includes regex.texi and
3207         regexprops-generic.texi.
3208         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3209         syntax.
3210
3211         Whitespace cleanup.
3212         * doc/regex.texi: Remove trailing spaces.
3213
3214         Add regex documentation.
3215         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3216         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3217         Written by Kathy A. Hargreaves and Karl Berry.
3218
3219 2010-08-01  Bruno Haible  <bruno@clisp.org>
3220
3221         link: Update documentation.
3222         * doc/posix-functions/link.texi: Update regarding Solaris.
3223
3224 2010-07-31  Bruno Haible  <bruno@clisp.org>
3225
3226         Update modules list.
3227         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3228         (String handling <string.h>): Add memcmp2, memxfrm.
3229         (Container data structures): Add xlist, xsublist, xoset.
3230         (Core language properties): Add alignof, unused-parameter.
3231         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3232         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3233         (Unibyte characters <ctype.h>): New section.
3234         (String handling <string.h>): New section.
3235         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3236         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3237         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3238         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3239         tan, tanh, tanl, y0, y1, yn.
3240         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3241         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3242         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3243         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3244         unlockpt, vdprintf, vdprintf-posix.
3245         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3246         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3247         xconcat-filename.
3248         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3249         getdtablesize, pipe2, pipe2-safer.
3250         (Security): New section.
3251         (Networking functions): Add accept4.
3252         (Signal handling): Add sigpipe.
3253         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3254         mbmemcasecoll.
3255         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3256         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3257         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3258         pipe-filter-ii.
3259         (Misc): Add argp-version-etc, login_tty, parse-duration.
3260
3261 2010-07-31  Bruno Haible  <bruno@clisp.org>
3262
3263         Improve doc in MODULES.html.
3264         * modules/linkat (Description): Add the word "function".
3265         * modules/mkfifo (Description): Likewise.
3266         * modules/mknod (Description): Likewise.
3267         * modules/remove (Description): Likewise.
3268         * modules/renameat (Description): Likewise.
3269         * modules/stat (Description): Likewise.
3270         * modules/symlink (Description): Likewise.
3271         * modules/unlink (Description): Likewise.
3272
3273 2010-07-31  Bruno Haible  <bruno@clisp.org>
3274
3275         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3276         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3277         option --enable/disable-c++ instead of --enable/disable-cxx.
3278         * NEWS: Mention the change.
3279
3280 2010-07-31  Bruno Haible  <bruno@clisp.org>
3281
3282         readlink, areadlink: Relax test a bit.
3283         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3284         alternative to ENOTDIR.
3285         * tests/test-areadlink.h (test_areadlink): Likewise.
3286         Reported by Rainer Tammer.
3287
3288 2010-07-31  Bruno Haible  <bruno@clisp.org>
3289
3290         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3291         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3292         character, perform the search using U_STRCHR.
3293         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3294         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3295         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3296         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3297         Suggested by Paolo Bonzini.
3298
3299 2010-07-31  Bruno Haible  <bruno@clisp.org>
3300
3301         unistr/u*-strstr: Fix dependencies.
3302         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3303         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3304         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3305
3306 2010-07-31  Bruno Haible  <bruno@clisp.org>
3307
3308         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3309         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3310         the beginning of the loop.
3311         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3312         cases in 'switch' statement.
3313
3314         unistr/u8-strchr: Fix several bugs.
3315         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3316         the string. When not found, return NULL, not a pointer near the end.
3317
3318         More tests for unistr/u8-strchr.
3319         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3320         that the function does not read past the first occurrence of the byte
3321         being searched.
3322         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3323         * tests/unistr/test-u16-strchr.c (main): New function.
3324         * tests/unistr/test-u32-strchr.c (main): New function.
3325
3326 2010-07-31  Bruno Haible  <bruno@clisp.org>
3327
3328         posix-modules: Ignore backup files of documentation files.
3329         * posix-modules: grep only through files named *.texi.
3330
3331 2010-07-31  Bruno Haible  <bruno@clisp.org>
3332
3333         symlinkat: Fix documentation.
3334         * doc/posix-functions/readlinkat.texi: Fix module name.
3335
3336 2010-07-31  Bruno Haible  <bruno@clisp.org>
3337
3338         fchownat: Replace also when chown has the trailing slash bug.
3339         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3340         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3341         introduced on 2010-04-10.
3342         Reported by Rainer Tammer.
3343
3344 2010-07-31  Bruno Haible  <bruno@clisp.org>
3345
3346         linkat: Work around AIX 7.1 bug.
3347         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3348         whether linkat handles trailing slash correctly. If not, replace linkat
3349         and define LINKAT_TRAILING_SLASH_BUG.
3350         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3351         check whether (fd1,file1) points to a directory if file1 or file2 ends
3352         in a slash. Code taken from lib/link.c.
3353         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3354         Reported by Rainer Tammer.
3355
3356 2010-07-31  Bruno Haible  <bruno@clisp.org>
3357
3358         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3359         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3360         This disables an xlc optimization that was causing wrong test results.
3361         Reported by Rainer Tammer.
3362
3363 2010-07-31  Bruno Haible  <bruno@clisp.org>
3364
3365         iconv: Work around AIX 6.1..7.1 bug.
3366         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3367         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3368         cross-compiling, guess no on all versions of AIX.
3369         Reported by Rainer Tammer.
3370
3371 2010-07-31  Bruno Haible  <bruno@clisp.org>
3372
3373         readlink: Relax test a bit.
3374         * tests/test-readlink.h (test_readlink): Allow different errno value
3375         when readlink is called with a file name that ends in / and refers to
3376         a file.
3377         Suggested by Eric Blake.
3378         Reported by Rainer Tammer.
3379
3380 2010-07-31  Bruno Haible  <bruno@clisp.org>
3381
3382         copysign: Does not require -lm on glibc systems.
3383         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3384         gl_COMMON_DOUBLE_MATHFUNC.
3385         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3386
3387 2010-07-31  Bruno Haible  <bruno@clisp.org>
3388
3389         duplocale: Work around AIX 7.1 bug.
3390         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3391         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3392         * lib/duplocale.c (rpl_duplocale): Update comment.
3393         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3394         Reported by Rainer Tammer.
3395
3396 2010-07-30  Bruno Haible  <bruno@clisp.org>
3397
3398         dirfd: Avoid link error on AIX 7.1.
3399         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3400         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3401         exist, set REPLACE_DIRFD.
3402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3403         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3404         * doc/posix-functions/dirfd.texi: Update.
3405         Reported by Rainer Tammer.
3406
3407 2010-07-30  Eric Blake  <eblake@redhat.com>
3408
3409         strtod: next round of AIX fixes
3410         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3411         exponent.
3412         * tests/test-strtod.c (main): Enhance tests.
3413         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3414         Reported by Rainer Tammer.
3415
3416         futimens: fix configure check
3417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3418         Reported by Bruno Haible.
3419
3420 2010-07-30  Bruno Haible  <bruno@clisp.org>
3421
3422         getline: Update regarding AIX.
3423         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3424         Reported by Rainer Tammer.
3425
3426 2010-07-30  Bruno Haible  <bruno@clisp.org>
3427
3428         wcwidth: Drop replacement on AIX 7.
3429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3430         AIX 7.
3431         Reported by Rainer Tammer.
3432
3433 2010-07-30  Bruno Haible  <bruno@clisp.org>
3434
3435         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3437         a 'char *'.
3438         Reported by Rainer Tammer.
3439
3440 2010-07-30  Bruno Haible  <bruno@clisp.org>
3441
3442         unlink: Update regarding AIX.
3443         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3444         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3445         Reported by Rainer Tammer.
3446
3447 2010-07-30  Bruno Haible  <bruno@clisp.org>
3448
3449         symlink: Update regarding AIX.
3450         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3451         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3452         Reported by Rainer Tammer.
3453
3454 2010-07-30  Bruno Haible  <bruno@clisp.org>
3455
3456         strndup: Update regarding AIX.
3457         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3458         AIX 7.
3459         Reported by Rainer Tammer.
3460
3461 2010-07-30  Bruno Haible  <bruno@clisp.org>
3462
3463         stat: Update regarding AIX.
3464         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3465         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3466         Reported by Rainer Tammer.
3467
3468 2010-07-30  Bruno Haible  <bruno@clisp.org>
3469
3470         truncl: Fix autoconf test.
3471         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3472         whether truncl works.
3473         Reported by Rainer Tammer.
3474
3475 2010-07-30  Bruno Haible  <bruno@clisp.org>
3476
3477         round: Update regarding AIX.
3478         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3479         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3480         Reported by Rainer Tammer.
3481
3482 2010-07-30  Bruno Haible  <bruno@clisp.org>
3483
3484         rename: Update regarding AIX.
3485         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3486         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3487         Reported by Rainer Tammer.
3488
3489 2010-07-30  Bruno Haible  <bruno@clisp.org>
3490
3491         printf.m4: Update regarding AIX.
3492         * m4/printf.m4: Update comments regarding AIX.
3493         Reported by Rainer Tammer.
3494
3495 2010-07-30  Bruno Haible  <bruno@clisp.org>
3496
3497         iconv: Update regarding AIX.
3498         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3499         AIX 7.
3500         Reported by Rainer Tammer.
3501
3502 2010-07-30  Bruno Haible  <bruno@clisp.org>
3503
3504         getopt: Update regarding AIX.
3505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3506         no on AIX.
3507         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3508         Reported by Rainer Tammer.
3509
3510 2010-07-30  Bruno Haible  <bruno@clisp.org>
3511
3512         ldexpl; Update regarding AIX.
3513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3514         on AIX 7.
3515         Reported by Rainer Tammer.
3516
3517 2010-07-30  Bruno Haible  <bruno@clisp.org>
3518
3519         frexpl: Update regarding AIX.
3520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3521         on AIX 7.
3522         Reported by Rainer Tammer.
3523
3524 2010-07-30  Bruno Haible  <bruno@clisp.org>
3525
3526         open, fopen: Update regarding AIX.
3527         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3528         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3529         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3530         * doc/posix-functions/fopen.texi: Likewise.
3531         Reported by Rainer Tammer.
3532
3533 2010-07-30  Bruno Haible  <bruno@clisp.org>
3534
3535         chown: Update doc regarding AIX.
3536         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3537         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3538         Reported by Rainer Tammer.
3539
3540 2010-07-30  Eric Blake  <eblake@redhat.com>
3541
3542         strtod: fix bug in replacement function on AIX
3543         * lib/strtod.c (strtod): Special case broken "0x" parse in
3544         underlying strtod.
3545         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3546         * doc/posix-functions/strtod.texi (strtod): Likewise.
3547         Reported by Rainer Tammer.
3548
3549 2010-07-30  Bruno Haible  <bruno@clisp.org>
3550
3551         mbrlen: Fix cross-compilation guess for AIX.
3552         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3553         guess. Leftover from 2008-12-22.
3554
3555 2010-07-30  Bruno Haible  <bruno@clisp.org>
3556
3557         mbrtowc: Fix cross-compilation guess for AIX.
3558         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3559         guess. Leftover from 2008-12-21.
3560
3561 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3562
3563         init.sh: work around trap limitation of some shells
3564         * tests/init.sh (setup_): Move exit trap outside of shell function.
3565
3566 2010-07-29  Eric Blake  <eblake@redhat.com>
3567
3568         strtod: aid debugging
3569         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3570         understanding why strtod is rejected.
3571
3572 2010-07-28  Bruno Haible  <bruno@clisp.org>
3573
3574         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3575         * lib/unistr/u8-chr.c: Include <string.h>.
3576         * tests/unistr/test-u8-chr.c: Likewise.
3577         * tests/unistr/test-u16-chr.c: Likewise.
3578         * tests/unistr/test-u32-chr.c: Likewise.
3579         * tests/unistr/test-u8-strchr.c: Likewise.
3580         * tests/unistr/test-u16-strchr.c: Likewise.
3581         * tests/unistr/test-u32-strchr.c: Likewise.
3582         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3583         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3584         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3585         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3586
3587 2010-07-28  Bruno Haible  <bruno@clisp.org>
3588
3589         Use spaces for indentation, not tabs.
3590         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3591
3592 2010-07-27  Bruno Haible  <bruno@clisp.org>
3593
3594         mbspcasecmp: Fix function specification.
3595         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3596         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3597         Reported by Eric Blake <eblake@redhat.com>.
3598
3599 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3600
3601         timespec: use cast and not conditional, as truncation isn't possible
3602         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3603         instead of a conditional.  Comment about the situation in more detail.
3604         This undoes most of the 2009-10-29 patch.
3605
3606 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3607
3608         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3609         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3610         * lib/unistr/u8-strchr.c: Likewise.
3611         * modules/unistr/u8-chr: Depend on memchr.
3612
3613         unistr/u*-strchr: add tests
3614         * modules/unistr/u8-strchr-tests: New file.
3615         * modules/unistr/u16-strchr-tests: New file.
3616         * modules/unistr/u32-strchr-tests: New file.
3617         * tests/unistr/test-strchr.h: New file.
3618         * tests/unistr/test-u8-strchr.c: New file.
3619         * tests/unistr/test-u16-strchr.c: New file.
3620         * tests/unistr/test-u32-strchr.c: New file.
3621
3622         unistr/u*-chr: test multibyte sequences more
3623         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3624         test vector.
3625         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3626         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3627         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3628
3629         unistr/u*-chr: test multibyte sequences
3630         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3631
3632         unistr/u*-chr: prepare for multibyte tests
3633         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3634         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3635         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3636         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3637         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3638         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3639
3640 2010-07-18  Bruno Haible  <bruno@clisp.org>
3641
3642         unistr/u8-strchr: Optimize non-ASCII argument case.
3643         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3644         because the first byte often matches anyway.
3645         Reported by Pádraig Brady <P@draigbrady.com>.
3646
3647 2010-07-15  Karl Berry  <karl@gnu.org>
3648
3649         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3650
3651 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3652
3653         getcwd: on Solaris, work better if ancestors are inaccessible
3654         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3655         buffer and size, try again with a large buffer.  This works better
3656         on Solaris, since its getcwd succeeds even if the path to the root
3657         is inaccessible, and this is helpful in common cases such as .zfs
3658         hidden directories.  Problem reported by J Chapman Flack in
3659         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3660         Use system getcwd if it's declared, not merely if it's partly
3661         working; use the partly-working test only to avoid needless effort
3662         if the system getcwd fails.
3663         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3664         comment that was already obsolete and is now even more obsolete.
3665         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3666         now might call strdup.
3667
3668 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3669
3670         pthread: Add enough so that coreutils/src/sort.c compiles.
3671         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3672         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3673         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3674         Include <sys/types.h>, in case it defines pthread_t.
3675         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3676         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3677         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3678         (pthread_rwlockattr_t, pthread_spinlock_t):
3679         New typedefs, if HAVE_PTHREAD_T is not defined.
3680         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3681         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3682         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3683         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3684         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3685         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3686         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3687         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3688         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3689         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3690         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3691         New macros.
3692         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3693         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3694         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3695         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3696         (pthread_spin_unlock): New dummy functions.
3697         (pthread_create): Return EAGAIN; don't set errno.
3698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3699         require AC_C_INLINE.
3700         * modules/pthread (Depends-on): Add sched, time.
3701         (pthread.h): Use AM_V_GEN.
3702
3703 2010-07-13  Bruno Haible  <bruno@clisp.org>
3704
3705         striconveh: Don't malloc memory if the result buffer is sufficient.
3706         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3707         buffer if its size is sufficient.
3708         Reported by Ludovic Courtès <ludo@gnu.org>.
3709
3710 2010-07-13  Bruno Haible  <bruno@clisp.org>
3711
3712         strtod: Add safety check.
3713         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3714
3715 2010-07-12  Bruno Haible  <bruno@clisp.org>
3716
3717         Unify tests that set gl_cv_func_ldexpl_no_libm.
3718         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3719         gl_FUNC_LDEXPL.
3720         (gl_FUNC_LDEXPL): Invoke it.
3721         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3722
3723 2010-07-12  Bruno Haible  <bruno@clisp.org>
3724
3725         Unify tests that set gl_cv_func_ldexp_no_libm.
3726         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3727         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3728         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3729         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3730         * modules/strtod (Files): Add m4/ldexp.m4.
3731
3732 2010-07-12  Bruno Haible  <bruno@clisp.org>
3733
3734         Unify tests that set gl_cv_func_frexpl_no_libm.
3735         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3736         gl_FUNC_FREXPL_NO_LIBM.
3737         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3739
3740 2010-07-12  Bruno Haible  <bruno@clisp.org>
3741
3742         Unify tests that set gl_cv_func_frexp_no_libm.
3743         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3744         gl_FUNC_FREXP_NO_LIBM.
3745         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3746         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3747
3748 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3749
3750         memcoll: clarify sizes versus lengths, document better, and tweak perf
3751         * lib/memcoll.c (strcoll_loop, memcoll0):
3752         Improve quality of descriptive comments.  Name variables
3753         consistently as to whether they are lengths (which do not include
3754         terminating null) versus sizes (which do).
3755         * lib/xmemcoll.c (xmemcoll0): Likewise.
3756         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3757         returned when s1size == 0; this is easier to compile and saves
3758         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3759
3760 2010-07-12  Bruno Haible  <bruno@clisp.org>
3761
3762         Tests for module '_Exit'.
3763         * modules/_Exit-tests: New file.
3764         * tests/test-_Exit.sh: New file.
3765         * tests/test-_Exit.c: New file.
3766
3767         New module '_Exit'.
3768         * lib/stdlib.in.h (__attribute__): New macro.
3769         (_Exit): New declaration.
3770         * lib/_Exit.c: New file.
3771         * m4/_Exit.m4: New file.
3772         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3773         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3774         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3775         * modules/_Exit: New file.
3776         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3777         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3778
3779 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3780
3781         strtod: make it more-accurate typically, and don't require libm
3782         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3783         Include limits.h.  Don't include string.h.
3784         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3785         (locale_isspace): New function, so that no casts are needed to
3786         check whether *s is a space.
3787         (ldexp): Provide an unused dummy if not available.
3788         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3789         (strtod): Use them.  This implementation prefers to use the
3790         underlying strtod if available, falling back on our own code
3791         only to fix known bugs.  This is more likely to produce an
3792         accurate result.  Also, it avoids the use of libm functions.
3793         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3794         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3795         was absent, but it caused a test failure with coreutils.
3796         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3797         with libm.
3798         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3799         * modules/strtod-tests (Makefile.am): Likewise.
3800
3801 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3802             Bruno Haible  <bruno@clisp.org>
3803
3804         unistr/u8-strchr: Optimize ASCII argument case.
3805         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3806
3807 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         (x)memcoll: minor tweaks
3810         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3811         is after the type that it qualifies.
3812         (memcoll0): Likewise.
3813         * lib/memcoll.h (memcoll0): Likewise.
3814         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3815         * lib/xmemcoll.h (xmemcoll0): Likewise.
3816         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3817         differs from memcoll in that the NUL byte is part of the argument.
3818         Omit the abort-checks, as performance is a real issue here.  Plus,
3819         the checks were wrong anyway (an off-by-one error).  Omit local
3820         variable 'diff', as it's a bit clearer that way.
3821         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3822         no longer needed.
3823
3824 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3825
3826         (x)memcoll: speedup when input is known to be NUL delimited
3827         * lib/memcoll.c: Include stdlib.
3828         (memcoll0) New function.
3829         (strcoll_loop) New function, refactored for use in both memcoll
3830         and memcoll0.
3831         * lib/memcoll.h: Add prototype for memcoll0.
3832         * lib/xmemcoll.c: (xmemcoll0) New function.
3833         (collate_error) New function, refactored for use in both xmemcoll
3834         and xmemcoll0.
3835         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3836         * m4/memcoll.m4: add inline invocation.
3837
3838 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3839
3840         * build-aux/bootstrap: Remove any local translations
3841         from the translation project synchronization directory,
3842         so that local only translations are not distributed.
3843
3844 2010-07-04  Bruno Haible  <bruno@clisp.org>
3845
3846         fsusage: Clarify which code applies to which platforms.
3847         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3848         platform.
3849         * lib/fsusage.c (get_fs_usage): Likewise.
3850
3851 2010-07-04  Bruno Haible  <bruno@clisp.org>
3852
3853         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3854         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3855         Reported by Martin Lambers <marlam@marlam.de>.
3856
3857 2010-07-04  Jim Meyering  <meyering@redhat.com>
3858
3859         hash: once again explicitly disallow insertion of NULL
3860         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3861         inserting a NULL pointer cannot work with these functions.
3862         Add a comment with details.
3863         This reverts part of the 2010-07-01 commit, 5bef1a35
3864         "hash: extend module to deal with non-pointer keys".
3865
3866 2010-07-01  Bruno Haible  <bruno@clisp.org>
3867
3868         stdbool: Update doc.
3869         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3870         Info from Christian Weisgerber <naddy@mips.inka.de>.
3871
3872 2010-07-01  Jim Meyering  <meyering@redhat.com>
3873
3874         hash: extend module to deal with non-pointer keys
3875         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3876         but that allows insertion of non-pointer entries.
3877         Do not disallow an ENTRY value of NULL.
3878         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3879         * lib/hash.h (hash_insert0): Declare.
3880
3881 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3882
3883         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3884         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3885         not present (i.e. with autoconf 2.59 and when using gettextize, not
3886         gnulib), require AC_GNU_SOURCE instead.
3887
3888 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3889
3890         idpriv-drop: Fix tests.
3891         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3892         not to the test-idpriv-droptemp program.
3893
3894 2010-06-29  Bruno Haible  <bruno@clisp.org>
3895
3896         string: Fix syntax error with g++ 2.96.
3897         * lib/string.in.h (__pure__): Remove definition.
3898         (_GL_ATTRIBUTE_PURE): New macro.
3899         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3900         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3901         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3902
3903 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3904
3905         unitypes: Fix bug introduced on 2010-05-18.
3906         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3907
3908 2010-06-22  Eric Blake  <eblake@redhat.com>
3909
3910         memmem: slight optimization
3911         * lib/str-two-way.h (critical_factorization): Update comments.
3912         Reduce work during factorization phase.
3913         Reported by Carlos Bueno <carlos@bueno.org>.
3914
3915 2010-06-21  Bruno Haible  <bruno@clisp.org>
3916
3917         Fix HAVE_CALLOC_POSIX misnomer.
3918         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3919         !HAVE_CALLOC_POSIX.
3920         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3921         HAVE_CALLOC_POSIX.
3922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3923         instead of HAVE_CALLOC_POSIX.
3924         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3925         HAVE_CALLOC_POSIX.
3926
3927         Use modern idiom for calloc() replacement.
3928         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3929         AC_FUNC_CALLOC.
3930         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3931         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3932         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3933         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3934         (gl_REPLACE_CALLOC): New macro.
3935
3936 2010-06-21  Bruno Haible  <bruno@clisp.org>
3937
3938         Fix HAVE_REALLOC_POSIX misnomer.
3939         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3940         !HAVE_REALLOC_POSIX.
3941         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3942         HAVE_REALLOC_POSIX.
3943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3944         instead of HAVE_REALLOC_POSIX.
3945         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3946         HAVE_REALLOC_POSIX.
3947
3948         Use modern idiom for realloc() replacement.
3949         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3950         AC_FUNC_REALLOC.
3951         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3952         Autoconf's AC_FUNC_REALLOC.
3953         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3954         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3955         (gl_REPLACE_REALLOC): New macro.
3956         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3957
3958 2010-06-21  Bruno Haible  <bruno@clisp.org>
3959
3960         Fix HAVE_MALLOC_POSIX misnomer.
3961         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3962         !HAVE_MALLOC_POSIX.
3963         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3964         HAVE_MALLOC_POSIX.
3965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3966         instead of HAVE_MALLOC_POSIX.
3967         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3968         HAVE_MALLOC_POSIX.
3969
3970         Use modern idiom for malloc() replacement.
3971         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3972         AC_FUNC_MALLOC.
3973         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3974         Autoconf's AC_FUNC_MALLOC.
3975         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3976         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3977         (gl_REPLACE_MALLOC): New macro.
3978         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3979
3980 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3981
3982         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3983         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3984         This macro takes 3 arguments, not 4.
3985
3986 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3987
3988         ipv6: fix detection under mingw
3989         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3990         in6_addr.
3991
3992 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3993
3994         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3995         that strtod() works when cross-compiling to a glibc version known
3996         to work.
3997
3998 2010-06-15  Bruno Haible  <bruno@clisp.org>
3999
4000         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4001
4002 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4003
4004         select: Correct timeout.
4005         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4006
4007 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4008
4009         git-version-gen: init shell var to avoid env var influence
4010         * build-aux/git-version-gen (v): Init shell var to empty.
4011
4012 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4013
4014         priv-set: Don't assume that priv.h exists merely because getppriv does.
4015         See Jan Andersen's bug report about AIX 5L in
4016         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4017         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4018         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4019         * lib/priv-set.h: Likewise.
4020         * tests/test-priv-set.c: Likewise.
4021
4022 2010-06-13  Bruno Haible  <bruno@clisp.org>
4023
4024         relocatable: Make it easier to test whether to install wrappers.
4025         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4026         RELOCATABLE_VIA_WRAPPER.
4027
4028 2010-06-13  Bruno Haible  <bruno@clisp.org>
4029
4030         gnulib-tool: Display specified modules and dependencies differently.
4031         * gnulib-tool (func_show_module_list): New function.
4032         (func_import, func_create_testdir): Invoke it.
4033         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4034
4035 2010-06-13  Bruno Haible  <bruno@clisp.org>
4036
4037         gnulib-tool: Align code of func_import and func_create_testdir.
4038         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4039         specified_modules.
4040
4041 2010-06-12  Jim Meyering  <meyering@redhat.com>
4042
4043         test-inttostr: avoid spurious failure on Solaris 9
4044         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4045         to accept "%ju".  Reported by Bruno Haible.
4046
4047 2010-06-11  Jim Meyering  <meyering@redhat.com>
4048
4049         test-sys_socket: mark variables as used more readably
4050         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4051         as "used" explicitly via (void) statement casts.  This is more
4052         readable than using them in an artificial return expression.
4053         Suggestion from Bruno Haible.
4054
4055 2010-06-11  Bruno Haible  <bruno@clisp.org>
4056
4057         Avoid some more warnings from "gcc -Wwrite-strings".
4058         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4059         to 'const char *'.
4060         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4061         * tests/test-c-strcasestr.c (main): Likewise.
4062         * tests/test-mbscasestr1.c (main): Likewise.
4063         * tests/test-mbscasestr2.c (main): Likewise.
4064         * tests/test-memmem.c (main): Likewise.
4065         * tests/test-strstr.c (main): Likewise.
4066         * tests/test-strcasestr.c (main): Likewise.
4067
4068 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4069
4070         init.sh: change framework_failure_ to fail with status 99, not 1
4071         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4072         automake's parallel-tests rule that this is an unexpected failure,
4073         even if the test is listed in XFAIL_TESTS.
4074
4075 2010-06-11  Jim Meyering  <meyering@redhat.com>
4076
4077         test-inttostr: avoid warnings about 4-6KB literal strings
4078         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4079         Include "macros.h", for its definition of ASSERT.
4080         (CK): s/assert/ASSERT/
4081         * modules/inttostr-tests (Files): Add macros.h.
4082
4083         init.sh: don't use $ME_ or skip_ before they are defined
4084         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4085         their first uses.  Also hoist their companions: warn_, fail_,
4086         framework_failure_, $stderr_fileno.  Prompted by a patch from
4087         Stefano Lattarini.
4088
4089         test-sys_socket: avoid set-but-not-used warnings from gcc
4090         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4091         avoid warning about set-but-not-used variables.
4092
4093         test-xvasprintf: avoid 'const' discard warnings
4094         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4095         "const" when assigning from literal strings.
4096         (test_xasprintf): Add "void" in function argument list to placate
4097         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4098
4099         tests: avoid compilation warnings in argmatch and exclude tests...
4100         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4101         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4102         Since it always exits, declare with the "noreturn" attribute.
4103         * tests/test-argmatch.c: Likewise.
4104
4105         tests: avoid 'const' discard warnings in mbsstr tests
4106         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4107         * tests/test-mbsstr2.c (main): Likewise.
4108
4109         test-verify: avoid warning from gcc's -Wmissing-declarations
4110         * tests/test-verify.c (function): Declare to be static.
4111
4112         test-inttostr.c: include <string.h> for use of strcmp
4113         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4114
4115         test-linkat: avoid failed assertion on "other" architectures
4116         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4117         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4118         sparc: https://bugs.launchpad.net/bugs/591968
4119
4120 2010-06-11  Jim Meyering  <meyering@redhat.com>
4121
4122         printf.m4: avoid autoconf's "Expanded Before Required" warning
4123         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4124         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4125         autoconf warning.
4126
4127 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4128
4129         Replacement header templates are now named with ".in", not "_".
4130         * doc/gnulib-intro.texi: Correct.
4131
4132 2010-06-10  Jim Meyering  <meyering@redhat.com>
4133
4134         inttostr-tests: depend on snprintf, not snprintf-posix
4135         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4136         snprintf-posix, to avoid this aclocal failure:
4137           missing file gnulib-tests/vasnprintf.c
4138           configure.ac:45: error: expected source file, required through \
4139           AC_LIBSOURCES, not found
4140
4141 2010-06-10  Jim Meyering  <meyering@redhat.com>
4142
4143         inttostr: add a new function, inttostr, and tests
4144         The namesake function was not available.  The existence of the
4145         template file, inttostr.c makes its addition nontrivial.
4146         * lib/anytostr.c: Rename from inttostr.c.
4147         (anytostr): Rename from inttostr.
4148         * lib/inttostr.c: New file.
4149         * modules/inttostr (Files): Add anytostr.c.
4150         (Makefile.am): Set lib_SOURCES instead of ...
4151         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4152         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4153         * lib/offtostr.c: Likewise.
4154         * lib/uinttostr.c: Likewise.
4155         * lib/umaxtostr.c: Likewise.
4156         * modules/inttostr-tests: New file.
4157         * tests/test-inttostr.c: New file.  Test these functions.
4158
4159 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4160             Bruno Haible  <bruno@clisp.org>
4161
4162         Add "Extending Gnulib" chapter to manual.
4163         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4164         chapter.
4165         (Extending Gnulib): New chapter.
4166         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4167         chapter.
4168
4169 2010-06-09  Bruno Haible  <bruno@clisp.org>
4170
4171         Avoid relocwrapper link errors due to gnulib replacement functions.
4172         * lib/areadlink.c: Use the system's malloc, realloc functions.
4173         (areadlink): Set errno to ENOMEM explicitly.
4174         * modules/areadlink (Depends-on): Remove malloc-posix.
4175         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4176
4177 2010-06-09  Bruno Haible  <bruno@clisp.org>
4178
4179         Avoid relocwrapper link errors due to gnulib replacement functions.
4180         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4181         * lib/malloca.c: Likewise.
4182         * lib/relocatable.c: Likewise.
4183         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4184         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4185         * lib/setenv.c: Use the system's malloc, realloc functions.
4186         * lib/strerror.c: Use the system's sprintf function.
4187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4188
4189 2010-06-04  Bruno Haible  <bruno@clisp.org>
4190
4191         Prefer documented low-level autoconf macro names.
4192         * m4/lib-link.m4: Use m4_translit instead of translit.
4193         * m4/environ.m4: Likewise.
4194         * m4/mathfunc.m4: Likewise.
4195         * m4/onceonly.m4: Likewise.
4196         * m4/stdint.m4: Likewise.
4197         Suggested by Eric Blake.
4198
4199 2010-06-04  Martin Lambers  <marlam@marlam.de>
4200             Bruno Haible  <bruno@clisp.org>
4201
4202         havelib: Allow library names with '+' characters.
4203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4204         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4205
4206 2010-06-09  Bruno Haible  <bruno@clisp.org>
4207
4208         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4209         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4210         realloc failed.
4211
4212 2010-06-08  Peter Simons  <simons@cryp.to>
4213
4214         maint.mk: make the news-check rule more configurable
4215         * top/maint.mk (news-check-lines-spec) New variable.
4216         (news-check): Use "sed -n 1,10p" in place of "head".
4217
4218 2010-06-07  Jim Meyering  <meyering@redhat.com>
4219
4220         do-release-commit-and-tag: fix typo in --help
4221         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4222
4223         regex: avoid new dead-code warning with gcc-4.6.0
4224         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4225         if-block containing a while-loop.  It's been unused for at least
4226         5 years.
4227
4228 2010-06-05  Bruno Haible  <bruno@clisp.org>
4229
4230         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4231         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4232
4233 2010-06-04  Bruno Haible  <bruno@clisp.org>
4234
4235         Update to GNU gettext 0.18.1.
4236         * modules/gettext (configure.ac): Require gettext infrastructure from
4237         version 0.18.1.
4238
4239 2010-06-03  Bruno Haible  <bruno@clisp.org>
4240
4241         Don't use AC_LIBOBJ with file names in subdirectories.
4242         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4243         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4244         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4245         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4246         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4247         gl_LIBUNISTRING_LIBSOURCE.
4248         (Makefile.am): Augment lib_SOURCES here, conditionally.
4249         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4250
4251 2010-06-03  Bruno Haible  <bruno@clisp.org>
4252
4253         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4254         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4255         expansion does not end with a newline.
4256         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4257         unnecessary newline.
4258
4259 2010-06-03  Bruno Haible  <bruno@clisp.org>
4260
4261         Reduce dependencies.
4262         * tests/test-quotearg.h: New file, extracted from
4263         tests/test-quotearg.c.
4264         * tests/test-quotearg-simple.c: New file, extracted from
4265         tests/test-quotearg.c.
4266         * tests/test-quotearg.c: Don't include <ctype.h>.
4267         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4268         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4269         use_quote_double_quotes, use_quotearg_colon): Moved to
4270         tests/test-quotearg.h.
4271         (results_g, flag_results, custom_quotes, custom_results): Moved
4272         to tests/test-quotearg-simple.c.
4273         (main): Moved the part that does not depend on gettext to
4274         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4275         performed.
4276         * modules/quotearg-simple: New file.
4277         * modules/quotearg-simple-tests: New file.
4278         * modules/quotearg (Depends-on): Add quotearg-simple.
4279         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4280         (Files): Add tests/test-quotearg.h.
4281         Reported by Paolo Bonzini.
4282
4283 2010-06-03  Bruno Haible  <bruno@clisp.org>
4284
4285         Reduce dependencies.
4286         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4287
4288 2010-06-03  Bruno Haible  <bruno@clisp.org>
4289
4290         time: Undefine more broken macros.
4291         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4292         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4293         Reported by Eric Blake.
4294
4295 2010-06-03  Bruno Haible  <bruno@clisp.org>
4296
4297         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4298         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4299         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4300         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4301         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4302         Reported by Ludovic Courtès <ludo@gnu.org>.
4303
4304 2010-06-02  Eric Blake  <eblake@redhat.com>
4305
4306         time: work with mingw + pthreads-win32 library
4307         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4308         if timespec is defined only in pthread.h.
4309         * modules/time (Makefile.am): Substitute it.
4310         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4311         <pthread.h>, when needed.
4312         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4313         from the library.
4314
4315 2010-05-31  Bruno Haible  <bruno@clisp.org>
4316
4317         Avoid expanding two macros in the wrong order.
4318         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4319         gl_LIBUNISTRING if it is defined.
4320         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4321         autoconf >= 2.64.
4322         Reported by Ludovic Courtès <ludo@gnu.org>.
4323
4324 2010-05-27  Jim Meyering  <meyering@redhat.com>
4325
4326         maint.mk: also prohibit "#undef" of always-defined symbols
4327         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4328         Allow more than one space before the symbol name.
4329         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4330         the regexp uses alternation.
4331
4332 2010-05-26  Eric Blake  <eblake@redhat.com>
4333
4334         maint.mk: avoid echo -e
4335         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4336         Convert all uses of echo -* to printf.
4337         Reported by Matthias Bolte.
4338
4339 2010-05-25  Bruno Haible  <bruno@clisp.org>
4340
4341         Update to GNU gettext 0.18, part 2.
4342         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4343         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4344
4345 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4346
4347         Add missing include in test-pwrite.c.
4348         * tests/test-pwrite.c: Include string.h, for strcmp.
4349
4350 2010-05-24  Bruno Haible  <bruno@clisp.org>
4351
4352         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4353
4354 2010-05-24  Bruno Haible  <bruno@clisp.org>
4355
4356         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4357         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4358         iconveh_error argument.
4359         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4360         U_STRCONV_TO_LOCALE.
4361         * lib/unistr/u16-strcoll.c: Likewise.
4362         * lib/unistr/u32-strcoll.c: Likewise.
4363         * modules/unistr/u8-strcoll (Depends-on): Add
4364         uniconv/u8-strconv-to-enc, localcharset. Remove
4365         uniconv/u8-strconv-to-locale.
4366         (configure.ac): Bump version number.
4367         * modules/unistr/u16-strcoll (Depends-on): Add
4368         uniconv/u16-strconv-to-enc, localcharset. Remove
4369         uniconv/u16-strconv-to-locale.
4370         (configure.ac): Bump version number.
4371         * modules/unistr/u32-strcoll (Depends-on): Add
4372         uniconv/u32-strconv-to-enc, localcharset. Remove
4373         uniconv/u32-strconv-to-locale.
4374         (configure.ac): Bump version number.
4375
4376 2010-05-24  Bruno Haible  <bruno@clisp.org>
4377
4378         Avoid a test failure on NetBSD 5.0.
4379         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4380         an iconv() bug.
4381
4382 2010-05-24  Bruno Haible  <bruno@clisp.org>
4383
4384         Adjust #include directive style.
4385         * modules/regex (Includes): Recommend to write <regex.h>.
4386
4387 2010-05-24  Bruno Haible  <bruno@clisp.org>
4388
4389         regex: Don't require alloca.
4390         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4391         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4392         only inside if (0).
4393
4394 2010-05-23  Jim Meyering  <meyering@redhat.com>
4395
4396         test-renameat.c: include <sys/stat.h>
4397         * tests/test-renameat.c: Include <sys/stat.h>; required for
4398         definition of S_IS* macros.
4399
4400 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4401
4402         Update maintainer documentation for 'relocatable-prog' module.
4403         * doc/relocatable-maint.texi: Update.
4404         Comments by Bruno Haible.
4405
4406 2010-05-23  Bruno Haible  <bruno@clisp.org>
4407
4408         git-merge-changelog: Enable --split-merged-entry by default.
4409         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4410         (usage): Don't mention this option any more.
4411         Reported by Ralf Wildenhues.
4412
4413 2010-05-23  Jim Meyering  <meyering@redhat.com>
4414
4415         test-pwrite: do not leave behind a test file named "out"
4416         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4417         The trivial-looking use of init.sh is really necessary.
4418         It ensures that the temporary file, "out", is created in
4419         a temporary directory, and removed upon termination.
4420         * tests/test-pwrite.sh: Re-add file.
4421         * modules/pwrite-tests: Reference it.
4422
4423 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4424
4425         Fix output redirection buglet in init.sh.
4426         * tests/init.sh: Fix redirection of stderr.
4427
4428 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4429
4430         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4431
4432 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4433
4434         * modules/valgrind-tests: New file.
4435         * m4/valgrind-tests.m4: New file.
4436         * doc/valgrind-tests.texi: New file.
4437         * doc/gnulib.texi (Running self-tests under valgrind): New
4438         section.
4439
4440 2010-05-19  Bruno Haible  <bruno@clisp.org>
4441
4442         Clean up dead code in recent commit.
4443         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4444         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4445         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4446         Suggested by Paolo Bonzini.
4447
4448 2010-05-19  Bruno Haible  <bruno@clisp.org>
4449
4450         Avoid valgrind error reports from libunistring.
4451         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4452         * modules/libunistring (Files): Add it.
4453         * modules/libunistring-optional (Files): Likewise.
4454
4455 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4456             Bruno Haible  <bruno@clisp.org>
4457
4458         New module 'libunistring-optional'.
4459         * modules/libunistring-optional: New file.
4460         * m4/libunistring-base.m4: New file.
4461         * m4/libunistring-optional.m4: New file.
4462         * lib/unicase.in.h: Renamed from lib/unicase.h.
4463         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4464         * lib/unictype.in.h: Renamed from lib/unictype.h.
4465         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4466         * lib/uniname.in.h: Renamed from lib/uniname.h.
4467         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4468         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4469         * lib/unistr.in.h: Renamed from lib/unistr.h.
4470         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4471         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4472         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4473         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4474         gl_LIBUNISTRING. If the library was found, determine the installed
4475         version and set LIBUNISTRING_VERSION.
4476         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4477         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4478         handle a configuration option --with-included-libunistring.
4479         * modules/libunistring (Files): Add m4/absolute-header.m4.
4480         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4481         Add m4/libunistring-base.m4.
4482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4483         (Makefile.am): Build unicase.h from unicase.in.h.
4484         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4485         Add m4/libunistring-base.m4.
4486         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4487         (Makefile.am): Build uniconv.h from uniconv.in.h.
4488         * modules/unictype/base (Files): Use unictype.in.h instead of
4489         unictype.h. Add m4/libunistring-base.m4.
4490         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4491         (Makefile.am): Build unictype.h from unictype.in.h.
4492         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4493         Add m4/libunistring-base.m4.
4494         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4495         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4496         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4497         Add m4/libunistring-base.m4.
4498         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4499         (Makefile.am): Build uniname.h from uniname.in.h.
4500         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4501         Add m4/libunistring-base.m4.
4502         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4503         (Makefile.am): Build uninorm.h from uninorm.in.h.
4504         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4505         unistdio.h. Add m4/libunistring-base.m4.
4506         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4507         (Makefile.am): Build unistdio.h from unistdio.in.h.
4508         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4509         Add m4/libunistring-base.m4.
4510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4511         (Makefile.am): Build unistr.h from unistr.in.h.
4512         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4513         Add m4/libunistring-base.m4.
4514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4515         (Makefile.am): Build unitypes.h from unitypes.in.h.
4516         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4517         Add m4/libunistring-base.m4.
4518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4519         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4520         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4521         uniwidth.h. Add m4/libunistring-base.m4.
4522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4523         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4524         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4525         instead of augmenting lib_SOURCES.
4526         * modules/unicase/empty-suffix-context: Likewise.
4527         * modules/unicase/locale-language: Likewise.
4528         * modules/unicase/tolower: Likewise.
4529         * modules/unicase/totitle: Likewise.
4530         * modules/unicase/toupper: Likewise.
4531         * modules/unicase/u8-casecmp: Likewise.
4532         * modules/unicase/u8-casecoll: Likewise.
4533         * modules/unicase/u8-casefold: Likewise.
4534         * modules/unicase/u8-casexfrm: Likewise.
4535         * modules/unicase/u8-ct-casefold: Likewise.
4536         * modules/unicase/u8-ct-tolower: Likewise.
4537         * modules/unicase/u8-ct-totitle: Likewise.
4538         * modules/unicase/u8-ct-toupper: Likewise.
4539         * modules/unicase/u8-is-cased: Likewise.
4540         * modules/unicase/u8-is-casefolded: Likewise.
4541         * modules/unicase/u8-is-lowercase: Likewise.
4542         * modules/unicase/u8-is-titlecase: Likewise.
4543         * modules/unicase/u8-is-uppercase: Likewise.
4544         * modules/unicase/u8-prefix-context: Likewise.
4545         * modules/unicase/u8-suffix-context: Likewise.
4546         * modules/unicase/u8-tolower: Likewise.
4547         * modules/unicase/u8-totitle: Likewise.
4548         * modules/unicase/u8-toupper: Likewise.
4549         * modules/unicase/u16-casecmp: Likewise.
4550         * modules/unicase/u16-casecoll: Likewise.
4551         * modules/unicase/u16-casefold: Likewise.
4552         * modules/unicase/u16-casexfrm: Likewise.
4553         * modules/unicase/u16-ct-casefold: Likewise.
4554         * modules/unicase/u16-ct-tolower: Likewise.
4555         * modules/unicase/u16-ct-totitle: Likewise.
4556         * modules/unicase/u16-ct-toupper: Likewise.
4557         * modules/unicase/u16-is-cased: Likewise.
4558         * modules/unicase/u16-is-casefolded: Likewise.
4559         * modules/unicase/u16-is-lowercase: Likewise.
4560         * modules/unicase/u16-is-titlecase: Likewise.
4561         * modules/unicase/u16-is-uppercase: Likewise.
4562         * modules/unicase/u16-prefix-context: Likewise.
4563         * modules/unicase/u16-suffix-context: Likewise.
4564         * modules/unicase/u16-tolower: Likewise.
4565         * modules/unicase/u16-totitle: Likewise.
4566         * modules/unicase/u16-toupper: Likewise.
4567         * modules/unicase/u32-casecmp: Likewise.
4568         * modules/unicase/u32-casecoll: Likewise.
4569         * modules/unicase/u32-casefold: Likewise.
4570         * modules/unicase/u32-casexfrm: Likewise.
4571         * modules/unicase/u32-ct-casefold: Likewise.
4572         * modules/unicase/u32-ct-tolower: Likewise.
4573         * modules/unicase/u32-ct-totitle: Likewise.
4574         * modules/unicase/u32-ct-toupper: Likewise.
4575         * modules/unicase/u32-is-cased: Likewise.
4576         * modules/unicase/u32-is-casefolded: Likewise.
4577         * modules/unicase/u32-is-lowercase: Likewise.
4578         * modules/unicase/u32-is-titlecase: Likewise.
4579         * modules/unicase/u32-is-uppercase: Likewise.
4580         * modules/unicase/u32-prefix-context: Likewise.
4581         * modules/unicase/u32-suffix-context: Likewise.
4582         * modules/unicase/u32-tolower: Likewise.
4583         * modules/unicase/u32-totitle: Likewise.
4584         * modules/unicase/u32-toupper: Likewise.
4585         * modules/unicase/ulc-casecmp: Likewise.
4586         * modules/unicase/ulc-casecoll: Likewise.
4587         * modules/unicase/ulc-casexfrm: Likewise.
4588         * modules/uniconv/u8-conv-from-enc: Likewise.
4589         * modules/uniconv/u8-conv-to-enc: Likewise.
4590         * modules/uniconv/u8-strconv-from-enc: Likewise.
4591         * modules/uniconv/u8-strconv-from-locale: Likewise.
4592         * modules/uniconv/u8-strconv-to-enc: Likewise.
4593         * modules/uniconv/u8-strconv-to-locale: Likewise.
4594         * modules/uniconv/u16-conv-from-enc: Likewise.
4595         * modules/uniconv/u16-conv-to-enc: Likewise.
4596         * modules/uniconv/u16-strconv-from-enc: Likewise.
4597         * modules/uniconv/u16-strconv-from-locale: Likewise.
4598         * modules/uniconv/u16-strconv-to-enc: Likewise.
4599         * modules/uniconv/u16-strconv-to-locale: Likewise.
4600         * modules/uniconv/u32-conv-from-enc: Likewise.
4601         * modules/uniconv/u32-conv-to-enc: Likewise.
4602         * modules/uniconv/u32-strconv-from-enc: Likewise.
4603         * modules/uniconv/u32-strconv-from-locale: Likewise.
4604         * modules/uniconv/u32-strconv-to-enc: Likewise.
4605         * modules/uniconv/u32-strconv-to-locale: Likewise.
4606         * modules/unictype/bidicategory-byname: Likewise.
4607         * modules/unictype/bidicategory-name: Likewise.
4608         * modules/unictype/bidicategory-of: Likewise.
4609         * modules/unictype/bidicategory-test: Likewise.
4610         * modules/unictype/block-list: Likewise.
4611         * modules/unictype/block-test: Likewise.
4612         * modules/unictype/category-C: Likewise.
4613         * modules/unictype/category-Cc: Likewise.
4614         * modules/unictype/category-Cf: Likewise.
4615         * modules/unictype/category-Cn: Likewise.
4616         * modules/unictype/category-Co: Likewise.
4617         * modules/unictype/category-Cs: Likewise.
4618         * modules/unictype/category-L: Likewise.
4619         * modules/unictype/category-Ll: Likewise.
4620         * modules/unictype/category-Lm: Likewise.
4621         * modules/unictype/category-Lo: Likewise.
4622         * modules/unictype/category-Lt: Likewise.
4623         * modules/unictype/category-Lu: Likewise.
4624         * modules/unictype/category-M: Likewise.
4625         * modules/unictype/category-Mc: Likewise.
4626         * modules/unictype/category-Me: Likewise.
4627         * modules/unictype/category-Mn: Likewise.
4628         * modules/unictype/category-N: Likewise.
4629         * modules/unictype/category-Nd: Likewise.
4630         * modules/unictype/category-Nl: Likewise.
4631         * modules/unictype/category-No: Likewise.
4632         * modules/unictype/category-P: Likewise.
4633         * modules/unictype/category-Pc: Likewise.
4634         * modules/unictype/category-Pd: Likewise.
4635         * modules/unictype/category-Pe: Likewise.
4636         * modules/unictype/category-Pf: Likewise.
4637         * modules/unictype/category-Pi: Likewise.
4638         * modules/unictype/category-Po: Likewise.
4639         * modules/unictype/category-Ps: Likewise.
4640         * modules/unictype/category-S: Likewise.
4641         * modules/unictype/category-Sc: Likewise.
4642         * modules/unictype/category-Sk: Likewise.
4643         * modules/unictype/category-Sm: Likewise.
4644         * modules/unictype/category-So: Likewise.
4645         * modules/unictype/category-Z: Likewise.
4646         * modules/unictype/category-Zl: Likewise.
4647         * modules/unictype/category-Zp: Likewise.
4648         * modules/unictype/category-Zs: Likewise.
4649         * modules/unictype/category-and: Likewise.
4650         * modules/unictype/category-and-not: Likewise.
4651         * modules/unictype/category-byname: Likewise.
4652         * modules/unictype/category-name: Likewise.
4653         * modules/unictype/category-none: Likewise.
4654         * modules/unictype/category-of: Likewise.
4655         * modules/unictype/category-or: Likewise.
4656         * modules/unictype/category-test: Likewise.
4657         * modules/unictype/combining-class: Likewise.
4658         * modules/unictype/ctype-alnum: Likewise.
4659         * modules/unictype/ctype-alpha: Likewise.
4660         * modules/unictype/ctype-blank: Likewise.
4661         * modules/unictype/ctype-cntrl: Likewise.
4662         * modules/unictype/ctype-digit: Likewise.
4663         * modules/unictype/ctype-graph: Likewise.
4664         * modules/unictype/ctype-lower: Likewise.
4665         * modules/unictype/ctype-print: Likewise.
4666         * modules/unictype/ctype-punct: Likewise.
4667         * modules/unictype/ctype-space: Likewise.
4668         * modules/unictype/ctype-upper: Likewise.
4669         * modules/unictype/ctype-xdigit: Likewise.
4670         * modules/unictype/decimal-digit: Likewise.
4671         * modules/unictype/digit: Likewise.
4672         * modules/unictype/mirror: Likewise.
4673         * modules/unictype/numeric: Likewise.
4674         * modules/unictype/property-alphabetic: Likewise.
4675         * modules/unictype/property-ascii-hex-digit: Likewise.
4676         * modules/unictype/property-bidi-arabic-digit: Likewise.
4677         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4678         * modules/unictype/property-bidi-block-separator: Likewise.
4679         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4680         * modules/unictype/property-bidi-common-separator: Likewise.
4681         * modules/unictype/property-bidi-control: Likewise.
4682         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4683         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4684         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4685         * modules/unictype/property-bidi-european-digit: Likewise.
4686         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4687         * modules/unictype/property-bidi-left-to-right: Likewise.
4688         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4689         * modules/unictype/property-bidi-other-neutral: Likewise.
4690         * modules/unictype/property-bidi-pdf: Likewise.
4691         * modules/unictype/property-bidi-segment-separator: Likewise.
4692         * modules/unictype/property-bidi-whitespace: Likewise.
4693         * modules/unictype/property-byname: Likewise.
4694         * modules/unictype/property-combining: Likewise.
4695         * modules/unictype/property-composite: Likewise.
4696         * modules/unictype/property-currency-symbol: Likewise.
4697         * modules/unictype/property-dash: Likewise.
4698         * modules/unictype/property-decimal-digit: Likewise.
4699         * modules/unictype/property-default-ignorable-code-point: Likewise.
4700         * modules/unictype/property-deprecated: Likewise.
4701         * modules/unictype/property-diacritic: Likewise.
4702         * modules/unictype/property-extender: Likewise.
4703         * modules/unictype/property-format-control: Likewise.
4704         * modules/unictype/property-grapheme-base: Likewise.
4705         * modules/unictype/property-grapheme-extend: Likewise.
4706         * modules/unictype/property-grapheme-link: Likewise.
4707         * modules/unictype/property-hex-digit: Likewise.
4708         * modules/unictype/property-hyphen: Likewise.
4709         * modules/unictype/property-id-continue: Likewise.
4710         * modules/unictype/property-id-start: Likewise.
4711         * modules/unictype/property-ideographic: Likewise.
4712         * modules/unictype/property-ids-binary-operator: Likewise.
4713         * modules/unictype/property-ids-trinary-operator: Likewise.
4714         * modules/unictype/property-ignorable-control: Likewise.
4715         * modules/unictype/property-iso-control: Likewise.
4716         * modules/unictype/property-join-control: Likewise.
4717         * modules/unictype/property-left-of-pair: Likewise.
4718         * modules/unictype/property-line-separator: Likewise.
4719         * modules/unictype/property-logical-order-exception: Likewise.
4720         * modules/unictype/property-lowercase: Likewise.
4721         * modules/unictype/property-math: Likewise.
4722         * modules/unictype/property-non-break: Likewise.
4723         * modules/unictype/property-not-a-character: Likewise.
4724         * modules/unictype/property-numeric: Likewise.
4725         * modules/unictype/property-other-alphabetic: Likewise.
4726         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4727         * modules/unictype/property-other-grapheme-extend: Likewise.
4728         * modules/unictype/property-other-id-continue: Likewise.
4729         * modules/unictype/property-other-id-start: Likewise.
4730         * modules/unictype/property-other-lowercase: Likewise.
4731         * modules/unictype/property-other-math: Likewise.
4732         * modules/unictype/property-other-uppercase: Likewise.
4733         * modules/unictype/property-paired-punctuation: Likewise.
4734         * modules/unictype/property-paragraph-separator: Likewise.
4735         * modules/unictype/property-pattern-syntax: Likewise.
4736         * modules/unictype/property-pattern-white-space: Likewise.
4737         * modules/unictype/property-private-use: Likewise.
4738         * modules/unictype/property-punctuation: Likewise.
4739         * modules/unictype/property-quotation-mark: Likewise.
4740         * modules/unictype/property-radical: Likewise.
4741         * modules/unictype/property-sentence-terminal: Likewise.
4742         * modules/unictype/property-soft-dotted: Likewise.
4743         * modules/unictype/property-space: Likewise.
4744         * modules/unictype/property-terminal-punctuation: Likewise.
4745         * modules/unictype/property-test: Likewise.
4746         * modules/unictype/property-titlecase: Likewise.
4747         * modules/unictype/property-unassigned-code-value: Likewise.
4748         * modules/unictype/property-unified-ideograph: Likewise.
4749         * modules/unictype/property-uppercase: Likewise.
4750         * modules/unictype/property-variation-selector: Likewise.
4751         * modules/unictype/property-white-space: Likewise.
4752         * modules/unictype/property-xid-continue: Likewise.
4753         * modules/unictype/property-xid-start: Likewise.
4754         * modules/unictype/property-zero-width: Likewise.
4755         * modules/unictype/scripts: Likewise.
4756         * modules/unictype/syntax-c-ident: Likewise.
4757         * modules/unictype/syntax-c-whitespace: Likewise.
4758         * modules/unictype/syntax-java-ident: Likewise.
4759         * modules/unictype/syntax-java-whitespace: Likewise.
4760         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4761         * modules/unilbrk/u8-width-linebreaks: Likewise.
4762         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4763         * modules/unilbrk/u16-width-linebreaks: Likewise.
4764         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4765         * modules/unilbrk/u32-width-linebreaks: Likewise.
4766         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4767         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4768         * modules/uniname/uniname: Likewise.
4769         * modules/uninorm/canonical-decomposition: Likewise.
4770         * modules/uninorm/composition: Likewise.
4771         * modules/uninorm/decomposing-form: Likewise.
4772         * modules/uninorm/decomposition: Likewise.
4773         * modules/uninorm/filter: Likewise.
4774         * modules/uninorm/nfc: Likewise.
4775         * modules/uninorm/nfd: Likewise.
4776         * modules/uninorm/nfkc: Likewise.
4777         * modules/uninorm/nfkd: Likewise.
4778         * modules/uninorm/u8-normalize: Likewise.
4779         * modules/uninorm/u8-normcmp: Likewise.
4780         * modules/uninorm/u8-normcoll: Likewise.
4781         * modules/uninorm/u8-normxfrm: Likewise.
4782         * modules/uninorm/u16-normalize: Likewise.
4783         * modules/uninorm/u16-normcmp: Likewise.
4784         * modules/uninorm/u16-normcoll: Likewise.
4785         * modules/uninorm/u16-normxfrm: Likewise.
4786         * modules/uninorm/u32-normalize: Likewise.
4787         * modules/uninorm/u32-normcmp: Likewise.
4788         * modules/uninorm/u32-normcoll: Likewise.
4789         * modules/uninorm/u32-normxfrm: Likewise.
4790         * modules/unistdio/u8-asnprintf: Likewise.
4791         * modules/unistdio/u8-asprintf: Likewise.
4792         * modules/unistdio/u8-snprintf: Likewise.
4793         * modules/unistdio/u8-sprintf: Likewise.
4794         * modules/unistdio/u8-u8-asnprintf: Likewise.
4795         * modules/unistdio/u8-u8-asprintf: Likewise.
4796         * modules/unistdio/u8-u8-snprintf: Likewise.
4797         * modules/unistdio/u8-u8-sprintf: Likewise.
4798         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4799         * modules/unistdio/u8-u8-vasprintf: Likewise.
4800         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4801         * modules/unistdio/u8-u8-vsprintf: Likewise.
4802         * modules/unistdio/u8-vasnprintf: Likewise.
4803         * modules/unistdio/u8-vasprintf: Likewise.
4804         * modules/unistdio/u8-vsnprintf: Likewise.
4805         * modules/unistdio/u8-vsprintf: Likewise.
4806         * modules/unistdio/u16-asnprintf: Likewise.
4807         * modules/unistdio/u16-asprintf: Likewise.
4808         * modules/unistdio/u16-snprintf: Likewise.
4809         * modules/unistdio/u16-sprintf: Likewise.
4810         * modules/unistdio/u16-u16-asnprintf: Likewise.
4811         * modules/unistdio/u16-u16-asprintf: Likewise.
4812         * modules/unistdio/u16-u16-snprintf: Likewise.
4813         * modules/unistdio/u16-u16-sprintf: Likewise.
4814         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4815         * modules/unistdio/u16-u16-vasprintf: Likewise.
4816         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4817         * modules/unistdio/u16-u16-vsprintf: Likewise.
4818         * modules/unistdio/u16-vasnprintf: Likewise.
4819         * modules/unistdio/u16-vasprintf: Likewise.
4820         * modules/unistdio/u16-vsnprintf: Likewise.
4821         * modules/unistdio/u16-vsprintf: Likewise.
4822         * modules/unistdio/u32-asnprintf: Likewise.
4823         * modules/unistdio/u32-asprintf: Likewise.
4824         * modules/unistdio/u32-snprintf: Likewise.
4825         * modules/unistdio/u32-sprintf: Likewise.
4826         * modules/unistdio/u32-u32-asnprintf: Likewise.
4827         * modules/unistdio/u32-u32-asprintf: Likewise.
4828         * modules/unistdio/u32-u32-snprintf: Likewise.
4829         * modules/unistdio/u32-u32-sprintf: Likewise.
4830         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4831         * modules/unistdio/u32-u32-vasprintf: Likewise.
4832         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4833         * modules/unistdio/u32-u32-vsprintf: Likewise.
4834         * modules/unistdio/u32-vasnprintf: Likewise.
4835         * modules/unistdio/u32-vasprintf: Likewise.
4836         * modules/unistdio/u32-vsnprintf: Likewise.
4837         * modules/unistdio/u32-vsprintf: Likewise.
4838         * modules/unistdio/ulc-asnprintf: Likewise.
4839         * modules/unistdio/ulc-asprintf: Likewise.
4840         * modules/unistdio/ulc-fprintf: Likewise.
4841         * modules/unistdio/ulc-snprintf: Likewise.
4842         * modules/unistdio/ulc-sprintf: Likewise.
4843         * modules/unistdio/ulc-vasnprintf: Likewise.
4844         * modules/unistdio/ulc-vasprintf: Likewise.
4845         * modules/unistdio/ulc-vfprintf: Likewise.
4846         * modules/unistdio/ulc-vsnprintf: Likewise.
4847         * modules/unistdio/ulc-vsprintf: Likewise.
4848         * modules/unistr/u8-check: Likewise.
4849         * modules/unistr/u8-chr: Likewise.
4850         * modules/unistr/u8-cmp: Likewise.
4851         * modules/unistr/u8-cmp2: Likewise.
4852         * modules/unistr/u8-cpy: Likewise.
4853         * modules/unistr/u8-cpy-alloc: Likewise.
4854         * modules/unistr/u8-endswith: Likewise.
4855         * modules/unistr/u8-mblen: Likewise.
4856         * modules/unistr/u8-mbsnlen: Likewise.
4857         * modules/unistr/u8-mbtouc: Likewise.
4858         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4859         * modules/unistr/u8-mbtoucr: Likewise.
4860         * modules/unistr/u8-move: Likewise.
4861         * modules/unistr/u8-next: Likewise.
4862         * modules/unistr/u8-prev: Likewise.
4863         * modules/unistr/u8-set: Likewise.
4864         * modules/unistr/u8-startswith: Likewise.
4865         * modules/unistr/u8-stpcpy: Likewise.
4866         * modules/unistr/u8-stpncpy: Likewise.
4867         * modules/unistr/u8-strcat: Likewise.
4868         * modules/unistr/u8-strchr: Likewise.
4869         * modules/unistr/u8-strcmp: Likewise.
4870         * modules/unistr/u8-strcoll: Likewise.
4871         * modules/unistr/u8-strcpy: Likewise.
4872         * modules/unistr/u8-strcspn: Likewise.
4873         * modules/unistr/u8-strdup: Likewise.
4874         * modules/unistr/u8-strlen: Likewise.
4875         * modules/unistr/u8-strmblen: Likewise.
4876         * modules/unistr/u8-strmbtouc: Likewise.
4877         * modules/unistr/u8-strncat: Likewise.
4878         * modules/unistr/u8-strncmp: Likewise.
4879         * modules/unistr/u8-strncpy: Likewise.
4880         * modules/unistr/u8-strnlen: Likewise.
4881         * modules/unistr/u8-strpbrk: Likewise.
4882         * modules/unistr/u8-strrchr: Likewise.
4883         * modules/unistr/u8-strspn: Likewise.
4884         * modules/unistr/u8-strstr: Likewise.
4885         * modules/unistr/u8-strtok: Likewise.
4886         * modules/unistr/u8-to-u16: Likewise.
4887         * modules/unistr/u8-to-u32: Likewise.
4888         * modules/unistr/u8-uctomb: Likewise.
4889         * modules/unistr/u16-check: Likewise.
4890         * modules/unistr/u16-chr: Likewise.
4891         * modules/unistr/u16-cmp: Likewise.
4892         * modules/unistr/u16-cmp2: Likewise.
4893         * modules/unistr/u16-cpy: Likewise.
4894         * modules/unistr/u16-cpy-alloc: Likewise.
4895         * modules/unistr/u16-endswith: Likewise.
4896         * modules/unistr/u16-mblen: Likewise.
4897         * modules/unistr/u16-mbsnlen: Likewise.
4898         * modules/unistr/u16-mbtouc: Likewise.
4899         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4900         * modules/unistr/u16-mbtoucr: Likewise.
4901         * modules/unistr/u16-move: Likewise.
4902         * modules/unistr/u16-next: Likewise.
4903         * modules/unistr/u16-prev: Likewise.
4904         * modules/unistr/u16-set: Likewise.
4905         * modules/unistr/u16-startswith: Likewise.
4906         * modules/unistr/u16-stpcpy: Likewise.
4907         * modules/unistr/u16-stpncpy: Likewise.
4908         * modules/unistr/u16-strcat: Likewise.
4909         * modules/unistr/u16-strchr: Likewise.
4910         * modules/unistr/u16-strcmp: Likewise.
4911         * modules/unistr/u16-strcoll: Likewise.
4912         * modules/unistr/u16-strcpy: Likewise.
4913         * modules/unistr/u16-strcspn: Likewise.
4914         * modules/unistr/u16-strdup: Likewise.
4915         * modules/unistr/u16-strlen: Likewise.
4916         * modules/unistr/u16-strmblen: Likewise.
4917         * modules/unistr/u16-strmbtouc: Likewise.
4918         * modules/unistr/u16-strncat: Likewise.
4919         * modules/unistr/u16-strncmp: Likewise.
4920         * modules/unistr/u16-strncpy: Likewise.
4921         * modules/unistr/u16-strnlen: Likewise.
4922         * modules/unistr/u16-strpbrk: Likewise.
4923         * modules/unistr/u16-strrchr: Likewise.
4924         * modules/unistr/u16-strspn: Likewise.
4925         * modules/unistr/u16-strstr: Likewise.
4926         * modules/unistr/u16-strtok: Likewise.
4927         * modules/unistr/u16-to-u32: Likewise.
4928         * modules/unistr/u16-to-u8: Likewise.
4929         * modules/unistr/u16-uctomb: Likewise.
4930         * modules/unistr/u32-check: Likewise.
4931         * modules/unistr/u32-chr: Likewise.
4932         * modules/unistr/u32-cmp: Likewise.
4933         * modules/unistr/u32-cmp2: Likewise.
4934         * modules/unistr/u32-cpy: Likewise.
4935         * modules/unistr/u32-cpy-alloc: Likewise.
4936         * modules/unistr/u32-endswith: Likewise.
4937         * modules/unistr/u32-mblen: Likewise.
4938         * modules/unistr/u32-mbsnlen: Likewise.
4939         * modules/unistr/u32-mbtouc: Likewise.
4940         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4941         * modules/unistr/u32-mbtoucr: Likewise.
4942         * modules/unistr/u32-move: Likewise.
4943         * modules/unistr/u32-next: Likewise.
4944         * modules/unistr/u32-prev: Likewise.
4945         * modules/unistr/u32-set: Likewise.
4946         * modules/unistr/u32-startswith: Likewise.
4947         * modules/unistr/u32-stpcpy: Likewise.
4948         * modules/unistr/u32-stpncpy: Likewise.
4949         * modules/unistr/u32-strcat: Likewise.
4950         * modules/unistr/u32-strchr: Likewise.
4951         * modules/unistr/u32-strcmp: Likewise.
4952         * modules/unistr/u32-strcoll: Likewise.
4953         * modules/unistr/u32-strcpy: Likewise.
4954         * modules/unistr/u32-strcspn: Likewise.
4955         * modules/unistr/u32-strdup: Likewise.
4956         * modules/unistr/u32-strlen: Likewise.
4957         * modules/unistr/u32-strmblen: Likewise.
4958         * modules/unistr/u32-strmbtouc: Likewise.
4959         * modules/unistr/u32-strncat: Likewise.
4960         * modules/unistr/u32-strncmp: Likewise.
4961         * modules/unistr/u32-strncpy: Likewise.
4962         * modules/unistr/u32-strnlen: Likewise.
4963         * modules/unistr/u32-strpbrk: Likewise.
4964         * modules/unistr/u32-strrchr: Likewise.
4965         * modules/unistr/u32-strspn: Likewise.
4966         * modules/unistr/u32-strstr: Likewise.
4967         * modules/unistr/u32-strtok: Likewise.
4968         * modules/unistr/u32-to-u16: Likewise.
4969         * modules/unistr/u32-to-u8: Likewise.
4970         * modules/unistr/u32-uctomb: Likewise.
4971         * modules/uniwbrk/u8-wordbreaks: Likewise.
4972         * modules/uniwbrk/u16-wordbreaks: Likewise.
4973         * modules/uniwbrk/u32-wordbreaks: Likewise.
4974         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4975         * modules/uniwbrk/wordbreak-property: Likewise.
4976         * modules/uniwidth/u8-strwidth: Likewise.
4977         * modules/uniwidth/u8-width: Likewise.
4978         * modules/uniwidth/u16-strwidth: Likewise.
4979         * modules/uniwidth/u16-width: Likewise.
4980         * modules/uniwidth/u32-strwidth: Likewise.
4981         * modules/uniwidth/u32-width: Likewise.
4982         * modules/uniwidth/width: Likewise.
4983         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4984         with $(LIBUNISTRING).
4985         * modules/unicase/ignorable-tests: Likewise.
4986         * modules/unicase/locale-language-tests: Likewise.
4987         * modules/unicase/tolower-tests: Likewise.
4988         * modules/unicase/totitle-tests: Likewise.
4989         * modules/unicase/toupper-tests: Likewise.
4990         * modules/unicase/u8-casecmp-tests: Likewise.
4991         * modules/unicase/u8-casecoll-tests: Likewise.
4992         * modules/unicase/u8-casefold-tests: Likewise.
4993         * modules/unicase/u8-is-cased-tests: Likewise.
4994         * modules/unicase/u8-is-casefolded-tests: Likewise.
4995         * modules/unicase/u8-is-lowercase-tests: Likewise.
4996         * modules/unicase/u8-is-titlecase-tests: Likewise.
4997         * modules/unicase/u8-is-uppercase-tests: Likewise.
4998         * modules/unicase/u8-tolower-tests: Likewise.
4999         * modules/unicase/u8-totitle-tests: Likewise.
5000         * modules/unicase/u8-toupper-tests: Likewise.
5001         * modules/unicase/u16-casecmp-tests: Likewise.
5002         * modules/unicase/u16-casecoll-tests: Likewise.
5003         * modules/unicase/u16-casefold-tests: Likewise.
5004         * modules/unicase/u16-is-cased-tests: Likewise.
5005         * modules/unicase/u16-is-casefolded-tests: Likewise.
5006         * modules/unicase/u16-is-lowercase-tests: Likewise.
5007         * modules/unicase/u16-is-titlecase-tests: Likewise.
5008         * modules/unicase/u16-is-uppercase-tests: Likewise.
5009         * modules/unicase/u16-tolower-tests: Likewise.
5010         * modules/unicase/u16-totitle-tests: Likewise.
5011         * modules/unicase/u16-toupper-tests: Likewise.
5012         * modules/unicase/u32-casecmp-tests: Likewise.
5013         * modules/unicase/u32-casecoll-tests: Likewise.
5014         * modules/unicase/u32-casefold-tests: Likewise.
5015         * modules/unicase/u32-is-cased-tests: Likewise.
5016         * modules/unicase/u32-is-casefolded-tests: Likewise.
5017         * modules/unicase/u32-is-lowercase-tests: Likewise.
5018         * modules/unicase/u32-is-titlecase-tests: Likewise.
5019         * modules/unicase/u32-is-uppercase-tests: Likewise.
5020         * modules/unicase/u32-tolower-tests: Likewise.
5021         * modules/unicase/u32-totitle-tests: Likewise.
5022         * modules/unicase/u32-toupper-tests: Likewise.
5023         * modules/unicase/ulc-casecmp-tests: Likewise.
5024         * modules/unicase/ulc-casecoll-tests: Likewise.
5025         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5026         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5027         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5028         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5029         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5030         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5031         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5032         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5033         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5034         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5035         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5036         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5037         * modules/unictype/bidicategory-byname-tests: Likewise.
5038         * modules/unictype/bidicategory-name-tests: Likewise.
5039         * modules/unictype/bidicategory-of-tests: Likewise.
5040         * modules/unictype/bidicategory-test-tests: Likewise.
5041         * modules/unictype/block-list-tests: Likewise.
5042         * modules/unictype/block-of-tests: Likewise.
5043         * modules/unictype/block-test-tests: Likewise.
5044         * modules/unictype/category-C-tests: Likewise.
5045         * modules/unictype/category-Cc-tests: Likewise.
5046         * modules/unictype/category-Cf-tests: Likewise.
5047         * modules/unictype/category-Cn-tests: Likewise.
5048         * modules/unictype/category-Co-tests: Likewise.
5049         * modules/unictype/category-Cs-tests: Likewise.
5050         * modules/unictype/category-L-tests: Likewise.
5051         * modules/unictype/category-Ll-tests: Likewise.
5052         * modules/unictype/category-Lm-tests: Likewise.
5053         * modules/unictype/category-Lo-tests: Likewise.
5054         * modules/unictype/category-Lt-tests: Likewise.
5055         * modules/unictype/category-Lu-tests: Likewise.
5056         * modules/unictype/category-M-tests: Likewise.
5057         * modules/unictype/category-Mc-tests: Likewise.
5058         * modules/unictype/category-Me-tests: Likewise.
5059         * modules/unictype/category-Mn-tests: Likewise.
5060         * modules/unictype/category-N-tests: Likewise.
5061         * modules/unictype/category-Nd-tests: Likewise.
5062         * modules/unictype/category-Nl-tests: Likewise.
5063         * modules/unictype/category-No-tests: Likewise.
5064         * modules/unictype/category-P-tests: Likewise.
5065         * modules/unictype/category-Pc-tests: Likewise.
5066         * modules/unictype/category-Pd-tests: Likewise.
5067         * modules/unictype/category-Pe-tests: Likewise.
5068         * modules/unictype/category-Pf-tests: Likewise.
5069         * modules/unictype/category-Pi-tests: Likewise.
5070         * modules/unictype/category-Po-tests: Likewise.
5071         * modules/unictype/category-Ps-tests: Likewise.
5072         * modules/unictype/category-S-tests: Likewise.
5073         * modules/unictype/category-Sc-tests: Likewise.
5074         * modules/unictype/category-Sk-tests: Likewise.
5075         * modules/unictype/category-Sm-tests: Likewise.
5076         * modules/unictype/category-So-tests: Likewise.
5077         * modules/unictype/category-Z-tests: Likewise.
5078         * modules/unictype/category-Zl-tests: Likewise.
5079         * modules/unictype/category-Zp-tests: Likewise.
5080         * modules/unictype/category-Zs-tests: Likewise.
5081         * modules/unictype/category-and-not-tests: Likewise.
5082         * modules/unictype/category-and-tests: Likewise.
5083         * modules/unictype/category-byname-tests: Likewise.
5084         * modules/unictype/category-name-tests: Likewise.
5085         * modules/unictype/category-none-tests: Likewise.
5086         * modules/unictype/category-of-tests: Likewise.
5087         * modules/unictype/category-or-tests: Likewise.
5088         * modules/unictype/category-test-withtable-tests: Likewise.
5089         * modules/unictype/combining-class-tests: Likewise.
5090         * modules/unictype/ctype-alnum-tests: Likewise.
5091         * modules/unictype/ctype-alpha-tests: Likewise.
5092         * modules/unictype/ctype-blank-tests: Likewise.
5093         * modules/unictype/ctype-cntrl-tests: Likewise.
5094         * modules/unictype/ctype-digit-tests: Likewise.
5095         * modules/unictype/ctype-graph-tests: Likewise.
5096         * modules/unictype/ctype-lower-tests: Likewise.
5097         * modules/unictype/ctype-print-tests: Likewise.
5098         * modules/unictype/ctype-punct-tests: Likewise.
5099         * modules/unictype/ctype-space-tests: Likewise.
5100         * modules/unictype/ctype-upper-tests: Likewise.
5101         * modules/unictype/ctype-xdigit-tests: Likewise.
5102         * modules/unictype/decimal-digit-tests: Likewise.
5103         * modules/unictype/digit-tests: Likewise.
5104         * modules/unictype/mirror-tests: Likewise.
5105         * modules/unictype/numeric-tests: Likewise.
5106         * modules/unictype/property-alphabetic-tests: Likewise.
5107         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5108         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5109         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5110         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5111         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5112         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5113         * modules/unictype/property-bidi-control-tests: Likewise.
5114         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5115         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5116         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5117         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5118         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5119         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5120         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5121         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5122         * modules/unictype/property-bidi-pdf-tests: Likewise.
5123         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5124         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5125         * modules/unictype/property-byname-tests: Likewise.
5126         * modules/unictype/property-combining-tests: Likewise.
5127         * modules/unictype/property-composite-tests: Likewise.
5128         * modules/unictype/property-currency-symbol-tests: Likewise.
5129         * modules/unictype/property-dash-tests: Likewise.
5130         * modules/unictype/property-decimal-digit-tests: Likewise.
5131         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5132         * modules/unictype/property-deprecated-tests: Likewise.
5133         * modules/unictype/property-diacritic-tests: Likewise.
5134         * modules/unictype/property-extender-tests: Likewise.
5135         * modules/unictype/property-format-control-tests: Likewise.
5136         * modules/unictype/property-grapheme-base-tests: Likewise.
5137         * modules/unictype/property-grapheme-extend-tests: Likewise.
5138         * modules/unictype/property-grapheme-link-tests: Likewise.
5139         * modules/unictype/property-hex-digit-tests: Likewise.
5140         * modules/unictype/property-hyphen-tests: Likewise.
5141         * modules/unictype/property-id-continue-tests: Likewise.
5142         * modules/unictype/property-id-start-tests: Likewise.
5143         * modules/unictype/property-ideographic-tests: Likewise.
5144         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5145         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5146         * modules/unictype/property-ignorable-control-tests: Likewise.
5147         * modules/unictype/property-iso-control-tests: Likewise.
5148         * modules/unictype/property-join-control-tests: Likewise.
5149         * modules/unictype/property-left-of-pair-tests: Likewise.
5150         * modules/unictype/property-line-separator-tests: Likewise.
5151         * modules/unictype/property-logical-order-exception-tests: Likewise.
5152         * modules/unictype/property-lowercase-tests: Likewise.
5153         * modules/unictype/property-math-tests: Likewise.
5154         * modules/unictype/property-non-break-tests: Likewise.
5155         * modules/unictype/property-not-a-character-tests: Likewise.
5156         * modules/unictype/property-numeric-tests: Likewise.
5157         * modules/unictype/property-other-alphabetic-tests: Likewise.
5158         * modules/unictype/property-other-default-ignorable-code-point-tests:
5159         Likewise.
5160         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5161         * modules/unictype/property-other-id-continue-tests: Likewise.
5162         * modules/unictype/property-other-id-start-tests: Likewise.
5163         * modules/unictype/property-other-lowercase-tests: Likewise.
5164         * modules/unictype/property-other-math-tests: Likewise.
5165         * modules/unictype/property-other-uppercase-tests: Likewise.
5166         * modules/unictype/property-paired-punctuation-tests: Likewise.
5167         * modules/unictype/property-paragraph-separator-tests: Likewise.
5168         * modules/unictype/property-pattern-syntax-tests: Likewise.
5169         * modules/unictype/property-pattern-white-space-tests: Likewise.
5170         * modules/unictype/property-private-use-tests: Likewise.
5171         * modules/unictype/property-punctuation-tests: Likewise.
5172         * modules/unictype/property-quotation-mark-tests: Likewise.
5173         * modules/unictype/property-radical-tests: Likewise.
5174         * modules/unictype/property-sentence-terminal-tests: Likewise.
5175         * modules/unictype/property-soft-dotted-tests: Likewise.
5176         * modules/unictype/property-space-tests: Likewise.
5177         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5178         * modules/unictype/property-test-tests: Likewise.
5179         * modules/unictype/property-titlecase-tests: Likewise.
5180         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5181         * modules/unictype/property-unified-ideograph-tests: Likewise.
5182         * modules/unictype/property-uppercase-tests: Likewise.
5183         * modules/unictype/property-variation-selector-tests: Likewise.
5184         * modules/unictype/property-white-space-tests: Likewise.
5185         * modules/unictype/property-xid-continue-tests: Likewise.
5186         * modules/unictype/property-xid-start-tests: Likewise.
5187         * modules/unictype/property-zero-width-tests: Likewise.
5188         * modules/unictype/scripts-tests: Likewise.
5189         * modules/unictype/syntax-c-ident-tests: Likewise.
5190         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5191         * modules/unictype/syntax-java-ident-tests: Likewise.
5192         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5193         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5194         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5195         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5196         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5197         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5198         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5199         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5200         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5201         * modules/uniname/uniname-tests: Likewise.
5202         * modules/uninorm/canonical-decomposition-tests: Likewise.
5203         * modules/uninorm/compat-decomposition-tests: Likewise.
5204         * modules/uninorm/composition-tests: Likewise.
5205         * modules/uninorm/decomposing-form-tests: Likewise.
5206         * modules/uninorm/decomposition-tests: Likewise.
5207         * modules/uninorm/filter-tests: Likewise.
5208         * modules/uninorm/nfc-tests: Likewise.
5209         * modules/uninorm/nfd-tests: Likewise.
5210         * modules/uninorm/nfkc-tests: Likewise.
5211         * modules/uninorm/nfkd-tests: Likewise.
5212         * modules/uninorm/u8-normcmp-tests: Likewise.
5213         * modules/uninorm/u8-normcoll-tests: Likewise.
5214         * modules/uninorm/u16-normcmp-tests: Likewise.
5215         * modules/uninorm/u16-normcoll-tests: Likewise.
5216         * modules/uninorm/u32-normcmp-tests: Likewise.
5217         * modules/uninorm/u32-normcoll-tests: Likewise.
5218         * modules/unistdio/u8-asnprintf-tests: Likewise.
5219         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5220         * modules/unistdio/u8-vasprintf-tests: Likewise.
5221         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5222         * modules/unistdio/u8-vsprintf-tests: Likewise.
5223         * modules/unistdio/u16-asnprintf-tests: Likewise.
5224         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5225         * modules/unistdio/u16-vasprintf-tests: Likewise.
5226         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5227         * modules/unistdio/u16-vsprintf-tests: Likewise.
5228         * modules/unistdio/u32-asnprintf-tests: Likewise.
5229         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5230         * modules/unistdio/u32-vasprintf-tests: Likewise.
5231         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5232         * modules/unistdio/u32-vsprintf-tests: Likewise.
5233         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5234         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5235         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5236         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5237         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5238         * modules/unistr/u8-check-tests: Likewise.
5239         * modules/unistr/u8-chr-tests: Likewise.
5240         * modules/unistr/u8-cmp-tests: Likewise.
5241         * modules/unistr/u8-cmp2-tests: Likewise.
5242         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5243         * modules/unistr/u8-cpy-tests: Likewise.
5244         * modules/unistr/u8-mblen-tests: Likewise.
5245         * modules/unistr/u8-mbsnlen-tests: Likewise.
5246         * modules/unistr/u8-mbtouc-tests: Likewise.
5247         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5248         * modules/unistr/u8-mbtoucr-tests: Likewise.
5249         * modules/unistr/u8-move-tests: Likewise.
5250         * modules/unistr/u8-next-tests: Likewise.
5251         * modules/unistr/u8-prev-tests: Likewise.
5252         * modules/unistr/u8-set-tests: Likewise.
5253         * modules/unistr/u8-stpcpy-tests: Likewise.
5254         * modules/unistr/u8-stpncpy-tests: Likewise.
5255         * modules/unistr/u8-strcat-tests: Likewise.
5256         * modules/unistr/u8-strcmp-tests: Likewise.
5257         * modules/unistr/u8-strcoll-tests: Likewise.
5258         * modules/unistr/u8-strcpy-tests: Likewise.
5259         * modules/unistr/u8-strdup-tests: Likewise.
5260         * modules/unistr/u8-strlen-tests: Likewise.
5261         * modules/unistr/u8-strmblen-tests: Likewise.
5262         * modules/unistr/u8-strmbtouc-tests: Likewise.
5263         * modules/unistr/u8-strncat-tests: Likewise.
5264         * modules/unistr/u8-strncmp-tests: Likewise.
5265         * modules/unistr/u8-strncpy-tests: Likewise.
5266         * modules/unistr/u8-strnlen-tests: Likewise.
5267         * modules/unistr/u8-to-u16-tests: Likewise.
5268         * modules/unistr/u8-to-u32-tests: Likewise.
5269         * modules/unistr/u8-uctomb-tests: Likewise.
5270         * modules/unistr/u16-check-tests: Likewise.
5271         * modules/unistr/u16-chr-tests: Likewise.
5272         * modules/unistr/u16-cmp-tests: Likewise.
5273         * modules/unistr/u16-cmp2-tests: Likewise.
5274         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5275         * modules/unistr/u16-cpy-tests: Likewise.
5276         * modules/unistr/u16-mblen-tests: Likewise.
5277         * modules/unistr/u16-mbsnlen-tests: Likewise.
5278         * modules/unistr/u16-mbtouc-tests: Likewise.
5279         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5280         * modules/unistr/u16-mbtoucr-tests: Likewise.
5281         * modules/unistr/u16-move-tests: Likewise.
5282         * modules/unistr/u16-next-tests: Likewise.
5283         * modules/unistr/u16-prev-tests: Likewise.
5284         * modules/unistr/u16-set-tests: Likewise.
5285         * modules/unistr/u16-stpcpy-tests: Likewise.
5286         * modules/unistr/u16-stpncpy-tests: Likewise.
5287         * modules/unistr/u16-strcat-tests: Likewise.
5288         * modules/unistr/u16-strcmp-tests: Likewise.
5289         * modules/unistr/u16-strcoll-tests: Likewise.
5290         * modules/unistr/u16-strcpy-tests: Likewise.
5291         * modules/unistr/u16-strdup-tests: Likewise.
5292         * modules/unistr/u16-strlen-tests: Likewise.
5293         * modules/unistr/u16-strmblen-tests: Likewise.
5294         * modules/unistr/u16-strmbtouc-tests: Likewise.
5295         * modules/unistr/u16-strncat-tests: Likewise.
5296         * modules/unistr/u16-strncmp-tests: Likewise.
5297         * modules/unistr/u16-strncpy-tests: Likewise.
5298         * modules/unistr/u16-strnlen-tests: Likewise.
5299         * modules/unistr/u16-to-u32-tests: Likewise.
5300         * modules/unistr/u16-to-u8-tests: Likewise.
5301         * modules/unistr/u16-uctomb-tests: Likewise.
5302         * modules/unistr/u32-check-tests: Likewise.
5303         * modules/unistr/u32-chr-tests: Likewise.
5304         * modules/unistr/u32-cmp-tests: Likewise.
5305         * modules/unistr/u32-cmp2-tests: Likewise.
5306         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5307         * modules/unistr/u32-cpy-tests: Likewise.
5308         * modules/unistr/u32-mblen-tests: Likewise.
5309         * modules/unistr/u32-mbsnlen-tests: Likewise.
5310         * modules/unistr/u32-mbtouc-tests: Likewise.
5311         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5312         * modules/unistr/u32-mbtoucr-tests: Likewise.
5313         * modules/unistr/u32-move-tests: Likewise.
5314         * modules/unistr/u32-next-tests: Likewise.
5315         * modules/unistr/u32-prev-tests: Likewise.
5316         * modules/unistr/u32-set-tests: Likewise.
5317         * modules/unistr/u32-stpcpy-tests: Likewise.
5318         * modules/unistr/u32-stpncpy-tests: Likewise.
5319         * modules/unistr/u32-strcat-tests: Likewise.
5320         * modules/unistr/u32-strcmp-tests: Likewise.
5321         * modules/unistr/u32-strcoll-tests: Likewise.
5322         * modules/unistr/u32-strcpy-tests: Likewise.
5323         * modules/unistr/u32-strdup-tests: Likewise.
5324         * modules/unistr/u32-strlen-tests: Likewise.
5325         * modules/unistr/u32-strmblen-tests: Likewise.
5326         * modules/unistr/u32-strmbtouc-tests: Likewise.
5327         * modules/unistr/u32-strncat-tests: Likewise.
5328         * modules/unistr/u32-strncmp-tests: Likewise.
5329         * modules/unistr/u32-strncpy-tests: Likewise.
5330         * modules/unistr/u32-strnlen-tests: Likewise.
5331         * modules/unistr/u32-to-u16-tests: Likewise.
5332         * modules/unistr/u32-to-u8-tests: Likewise.
5333         * modules/unistr/u32-uctomb-tests: Likewise.
5334         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5335         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5336         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5337         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5338         * modules/uniwidth/u8-strwidth-tests: Likewise.
5339         * modules/uniwidth/u8-width-tests: Likewise.
5340         * modules/uniwidth/u16-strwidth-tests: Likewise.
5341         * modules/uniwidth/u16-width-tests: Likewise.
5342         * modules/uniwidth/u32-strwidth-tests: Likewise.
5343         * modules/uniwidth/u32-width-tests: Likewise.
5344         * modules/uniwidth/width-tests: Likewise.
5345
5346 2010-05-18  Richard Jones  <rjones@redhat.com>
5347
5348         doc: users.txt: list hivex
5349         * users.txt: Add hivex.
5350
5351 2010-05-18  Richard Jones  <rjones@redhat.com>
5352
5353         doc: users.txt: list febootstrap
5354         * users.txt: Add febootstrap.
5355
5356 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5357
5358         bootstrap: fix an error when gnulib is not used as a git submodule
5359         * build-aux/bootstrap (gnulib_path): If its length is zero then
5360         assign "gnulib" to it.
5361         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5362
5363 2010-05-16  Bruno Haible  <bruno@clisp.org>
5364
5365         Avoid autoconf warnings about AM_ICONV.
5366         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5367         2.64.
5368
5369 2010-05-16  Bruno Haible  <bruno@clisp.org>
5370
5371         absolute-header: Make the macro usable in more situations.
5372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5373         from gl_ABSOLUTE_HEADER.
5374         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5375
5376 2010-05-16  James Youngman  <jay@gnu.org>
5377
5378         doc: update users.txt
5379         * users.txt: Add CSSC.
5380
5381 2010-05-16  Jim Meyering  <meyering@redhat.com>
5382
5383         init.sh: fix an error in the previous change; add more comments
5384         * tests/init.sh: Compare exit code in loop against 9, not 2.
5385         Patch by Bruno Haible.
5386         Make the two tests more similar by adding an empty "then" clause.
5387         Add comments.
5388
5389         init.sh: avoid unnecessary shell re-exec
5390         * tests/init.sh: Improve the re-exec-required check to first test the
5391         current shell.  If it passes the test, do not search for a shell that
5392         does pass, and do not re-exec.  This test is particularly contorted to
5393         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5394         of $(...) evokes a syntax error and causes immediate shell exit with
5395         status 2.  Bruno Haible reported that the re-exec made it impossible
5396         to single-step through any init.sh-using script.
5397
5398 2010-05-16  Bruno Haible  <bruno@clisp.org>
5399
5400         Fix collision between gnulib's and libintl's printf replacements.
5401         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5402         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5403         (printf): When using GNU C, map the __printf__ function to rpl_printf
5404         via __asm__. When not using GNU C, define rpl_printf instead of
5405         __printf__.
5406         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5407         commit.
5408         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5409         commit.
5410         * m4/asm-underscore.m4: New file.
5411         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5412         * modules/stdio (Files): Add m4/asm-underscore.m4.
5413         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5414         Reported by Ben Pfaff.
5415
5416 2010-05-16  Bruno Haible  <bruno@clisp.org>
5417
5418         verify: Avoid skipping the test on openSUSE 11.0.
5419         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5420
5421 2010-05-13  Bruno Haible  <bruno@clisp.org>
5422
5423         Avoid useless warnings from G++.
5424         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5425         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5426         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5427
5428 2010-05-11  Jim Meyering  <meyering@redhat.com>
5429
5430         maint.mk: tweak preceding change
5431         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5432         regexps tighter by anchoring at EOL, and make the new group "shy"
5433         for slightly decreased overhead.
5434
5435 2010-05-11  Eric Blake  <eblake@redhat.com>
5436
5437         maint.mk: gnulib doesn't guarantee NSIG
5438         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5439
5440 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5441
5442         test-pwrite.c: Remove unused variable declaration.
5443         * tests/test-pwrite.c (main): Remove read_buf declaration.
5444
5445         Remove useless test-pwrite.sh file.
5446         * tests/test-pwrite.sh: Delete file.
5447         * modules/pwrite-tests: Remove references.
5448         Reported by Bruno Haible.
5449
5450 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5451
5452         init.sh: fix a typo
5453         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5454
5455 2010-05-10  Jim Meyering  <meyering@redhat.com>
5456
5457         maint.mk: avoid using a temporary file in the always-defined-macros check
5458         * top/maint.mk (.re-defmac): Remove rule.
5459         (gl_trap_): Remove definition.
5460         (sc_prohibit_always-defined_macros): Rewrite not to create and
5461         depend on a temporary file.  Instead, depend on GNU grep's ability
5462         to read a list of regular expressions from stdin when given "-f -".
5463
5464 2010-05-09  Bruno Haible  <bruno@clisp.org>
5465
5466         Update to GNU gettext 0.18, part 1.
5467         * m4/gettext.m4: Update to GNU gettext 0.18.
5468         * m4/intl.m4: Likewise.
5469         * m4/po.m4: Likewise.
5470         * modules/gettext (Files): Add m4/fcntl-o.m4.
5471         (configure.ac): Require gettext infrastructure from version 0.18.
5472
5473 2010-05-09  Jim Meyering  <meyering@redhat.com>
5474
5475         init.sh: enable MALLOC_PERTURB_
5476         * tests/init.sh: Enable glibc's malloc-perturbing option.
5477
5478         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5479         With my recent change in init.sh from the two-line form:
5480             -#   : ${srcdir=.}
5481             -#   . "$srcdir/init.sh"; path_prepend_ .
5482             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5483         I noticed that using the one-line form would cause this test
5484         to fail with a false-positive, or to stop working altogether,
5485         depending on whether help-version changed or all the tests did.
5486         * top/maint.mk (_hv_regex): Remove this definition.
5487         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5488         (_hv_regex_strong): Use a stronger regex to check for conformance.
5489         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5490         Give a separate diagnostic for lack of conforming use.
5491
5492         maint.mk: prohibit definition of symbols defined by gnulib
5493         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5494         definition of symbols defined by gnulib.
5495
5496 2010-05-09  Bruno Haible  <bruno@clisp.org>
5497
5498         acl: Avoid test failure on Cygwin-hosted mingw.
5499         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5500
5501 2010-05-09  Bruno Haible  <bruno@clisp.org>
5502
5503         error: Use system's fcntl function.
5504         * lib/error.c (fcntl): Undefine.
5505
5506 2010-05-09  Jim Meyering  <meyering@redhat.com>
5507
5508         verify: adjust formatting to be more consistent
5509         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5510         argument-list '('s, and after one comma.
5511
5512 2010-05-09  Bruno Haible  <bruno@clisp.org>
5513
5514         error: More reliable output on mingw.
5515         * lib/error.c: Include <windows.h>.
5516         (is_open): New function.
5517         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5518         defined.
5519
5520 2010-05-09  Bruno Haible  <bruno@clisp.org>
5521
5522         vasnprintf: Fix syntax errors in libintl build on mingw.
5523         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5524         pad_ourselves and prec_ourselves after use.
5525
5526 2010-05-08  Bruno Haible  <bruno@clisp.org>
5527
5528         * lib/config.charset: Update comments for Cygwin 1.7.
5529         * lib/localcharset.c: Likewise.
5530
5531 2010-05-07  Jim Meyering  <meyering@redhat.com>
5532
5533         init.sh: improve comments
5534         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5535         . "${srcdir=.}/init.sh"; path_prepend_ .
5536         Add a note about path_prepend_ and the alternative of using
5537         TESTS_ENVIRONMENT.
5538
5539 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5540
5541         exclude: Unescape hashed patterns in wildcard mode.
5542         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5543         to the hash list.
5544         * tests/test-exclude8.sh: New test case.
5545         * modules/exclude-tests: Add new test.
5546
5547 2010-05-05  Eric Blake  <eblake@redhat.com>
5548
5549         verify: automate tests
5550         * modules/verify-tests: New module.
5551         * tests/test-verify.sh: New file.
5552         * tests/test-verify.c: Guard each negative test with a unique id.
5553         Also avoid warning about unused left hand of comma expressions.
5554
5555 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5556
5557         Further improvements to verify.h, suggested by Eric Blake.
5558         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5559         the GL_* versions, to avoid collision with OpenGL.
5560         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5561         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5562         than testing merely whether it's defined.
5563
5564         Modify verify.h to pacify gcc -Wredundant_decls.
5565         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5566         These use the prefix "GL_" since they're likely to be useful elsewhere.
5567         We may need to break them out into a different .h file.
5568         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5569         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5570         of verify_function__.
5571
5572 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5573
5574         Tests for module pwrite.
5575         * modules/pwrite-tests: New file.
5576         * tests/test-pwrite.sh: New file.
5577         * tests/test-pwrite.c: New file.
5578
5579         New module pwrite.
5580         * lib/unistd.in.h (pwrite): New declaration.
5581         * lib/pwrite.c: New file, from glibc with modifications.
5582         * m4/pwrite.m4: New file.
5583         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5584         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5585         REPLACE_PWRITE.
5586         * modules/pwrite: New file.
5587         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5588         REPLACE_PWRITE.
5589         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5590         * doc/posix-functions/pwrite.texi: Mention the new module.
5591
5592 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5593
5594         pread: Update documentation.
5595         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5596
5597 2010-05-04  Eric Blake  <eblake@redhat.com>
5598
5599         docs: update cygwin progress
5600         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5601         this bug.
5602         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5603         Added in cygwin 1.7.2.
5604         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5605         Likewise.
5606         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5607         Likewise.
5608         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5609         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5610         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5611         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5612         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5613         Mention nproc module.
5614         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5615         bug in cygwin 1.7.5 addition.
5616         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5617         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5618         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5619         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5620         1.7.5.
5621         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5622         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5623         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5624         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5625         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5626         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5627         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5628         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5629         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5630         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5631         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5632         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5633         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5634         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5635         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5636         Likewise.
5637         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5638         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5639         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5640         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5641         Likewise.
5642         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5643         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5644         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5645         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5646         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5647         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5648         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5649         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5650         Likewise.
5651         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5652         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5653         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5654         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5655         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5656         Likewise.
5657         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5658         Likewise.
5659         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5660         Likewise.
5661         * doc/glibc-functions/xdrrec_endofrecord.texi
5662         (xdrrec_endofrecord): Likewise.
5663         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5664         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5665         Likewise.
5666         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5667         Likewise.
5668
5669 2010-05-04  Jim Meyering  <meyering@redhat.com>
5670
5671         gendocs.sh: make its "-s FILE" option more useful
5672         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5673         $PACKAGE to reflect the probably-different basename of "FILE".
5674
5675 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5676
5677         bootstrap: don't ignore download_po_files failure
5678         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5679         failure.
5680
5681 2010-05-03  Jim Meyering  <meyering@redhat.com>
5682
5683         maint.mk: allow to pass options to gendocs.sh
5684         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5685         (gendocs_options_): New overridable variable.
5686
5687         gnu-web-doc-update: don't ignore configure or build failure
5688         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5689
5690         announce-gen: backslash-escape '@'s in --help output
5691         * build-aux/announce-gen: Fix syntax errors.
5692
5693         maint.mk, announce-gen: allow project-specific announcement mail headers
5694         * top/maint.mk (translation_project_): Define default.
5695         (announcement_Cc_, announcement_mail_headers_): Likewise.
5696         (announcement): Invoke announce-gen with new --mail-headers option.
5697         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5698
5699         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5700         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5701         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5702         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5703         line in the "err2" output file when running "make check" in verbose
5704         mode (i.e., with set -x enabled).
5705
5706 2010-05-03  Bruno Haible  <bruno@clisp.org>
5707
5708         wctob: Fix for weird platforms.
5709         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5710         argument value.
5711
5712 2010-05-03  Jim Meyering  <meyering@redhat.com>
5713
5714         maint.mk: prohibit unwarranted use of <strings.h>
5715         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5716         strings.h in a file that does not also use strcasecmp, strncasecmp,
5717         ffs or ffsll.
5718
5719         maint.mk: remove obsolete comments
5720         * top/maint.mk: Remove stale, commented-out rules.
5721
5722 2010-05-02  Bruno Haible  <bruno@clisp.org>
5723
5724         wcwidth: Declare also when it's aliased.
5725         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5726         macro.
5727
5728 2010-05-02  Bruno Haible  <bruno@clisp.org>
5729
5730         Fix regression from 2010-04-25.
5731         * gnulib-tool (func_modules_transitive_closure): Check the status of
5732         all modules, not only of the tests that are of the form foo-tests where
5733         foo is a module.
5734
5735 2010-05-02  Bruno Haible  <bruno@clisp.org>
5736
5737         wctob: Work around nasty Cygwin 1.7.2 bug.
5738         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5739         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5740
5741 2010-05-01  Bruno Haible  <bruno@clisp.org>
5742
5743         fpurge: Sharper test.
5744         * tests/test-fpurge.c (main): Add one more ftell check.
5745         * modules/fpurge-tests (Depends-on): Add ftell.
5746         Suggested by Eric Blake.
5747
5748 2010-05-01  Bruno Haible  <bruno@clisp.org>
5749
5750         ftello: Another test.
5751         * tests/test-ftello3.c: New file.
5752         * modules/ftello-tests (Files): Add it.
5753         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5754         MOSTLYCLEANFILES.
5755
5756         ftell: Another test.
5757         * tests/test-ftell3.c: New file.
5758         * modules/ftell-tests (Files): Add it.
5759         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5760         MOSTLYCLEANFILES.
5761
5762 2010-05-01  Bruno Haible  <bruno@clisp.org>
5763
5764         ftell, ftello: Work around Solaris bug.
5765         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5766         * lib/ftello.c: Include stdio-impl.h.
5767         (ftello): On Solaris, when _IOWRT is set, compute the result without
5768         looking at _IOREAD.
5769         * modules/ftello (Files): Add lib/stdio-impl.h.
5770         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5771         * doc/posix-functions/ftello.texi: Likewise.
5772         Reported by Eric Blake.
5773
5774 2010-05-01  Bruno Haible  <bruno@clisp.org>
5775
5776         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5777         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5778         the _IOWRT flag is also set.
5779
5780 2010-05-01  Bruno Haible  <bruno@clisp.org>
5781
5782         Fix doc about a HP-UX stdio bug.
5783         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5784         * doc/posix-functions/ftello.texi: Likewise.
5785
5786 2010-05-01  Bruno Haible  <bruno@clisp.org>
5787
5788         lseek test: Fix failure on Solaris.
5789         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5790         output.
5791
5792 2010-04-30  Jim Meyering  <meyering@redhat.com>
5793
5794         bootstrap: don't ignore failure to generate po*/Makevars
5795         * build-aux/bootstrap (with_gettext): Don't ignore failure
5796         to create po/Makevars or runtime-po/Makevars.
5797
5798 2010-04-29  Eric Blake  <eblake@redhat.com>
5799
5800         headers: relax license to LGPLv2+
5801         * modules/fcntl-h (License): Relax license.
5802         * modules/getopt-posix (License): Likewise.
5803         * modules/locale (License): Likewise.
5804         * modules/math (License): Likewise.
5805         * modules/pty (License): Likewise.
5806         * modules/sched (License): Likewise.
5807         * modules/search (License): Likewise.
5808         * modules/spawn (License): Likewise.
5809         * modules/stdarg (License): Likewise.
5810         * modules/sysexits (License): Likewise.
5811
5812 2010-04-29  Jim Meyering  <meyering@redhat.com>
5813
5814         inttypes: relax license to LGPLv2+
5815         * modules/inttypes (License): Relax license.
5816
5817 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5818
5819         * top/maint.mk (indent): Run twice to produce idempotent results.
5820
5821 2010-04-28  Bruno Haible  <bruno@clisp.org>
5822
5823         getdate: Generate getdate.c in the source directory.
5824         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5825         MOSTLYCLEANFILES.
5826         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5827
5828 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5829
5830         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5831         is not declared as a const *; avoid warnings in that case.
5832
5833 2010-04-28  Eric Blake  <eblake@redhat.com>
5834
5835         canonicalize-lgpl: avoid compiler warning
5836         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5837         declaration' / 'extraneous semicolon' warning with some compilers.
5838         Reported by Andreas Gruenbacher.
5839
5840 2010-04-28  Jim Meyering  <meyering@redhat.com>
5841
5842         init.sh: ensure a more reliable exit status when exiting via trap
5843         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5844         Inspired by patches from Dmitry V. Levin.
5845         Also trap on signal 3 (SIGQUIT).
5846
5847 2010-04-27  Bruno Haible  <bruno@clisp.org>
5848
5849         Update doc about utimes().
5850         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5851         'utimens' module.
5852         Reported by Andreas Gruenbacher <agruen@suse.de>.
5853
5854 2010-04-27  Eric Blake  <eblake@redhat.com>
5855
5856         full-read, full-write: relax license
5857         * modules/full-read (License): Drop to LGPLv2+.
5858         * modules/full-write (License): Likewise.
5859         * modules/safe-read (License): Likewise.
5860         * modules/safe-write (License): Likewise.
5861
5862         pthread: mention library for linking
5863         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5864
5865 2010-04-27  Jim Meyering  <meyering@redhat.com>
5866
5867         maint.mk: fix a bug introduced in last change
5868         * top/maint.mk (gl_assured_headers_): Now that all names are on
5869         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5870         is not anchored to end of word, it should be adequate.
5871
5872         maint.mk: avoid side-effect in latest syntax-check
5873         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5874         to run commands via $(shell...), and hence to incur cost only when
5875         the new rule is actually run.
5876
5877         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5878         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5879         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5880         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5881         (gl_assured_headers_, az_, AZ_): Define.
5882         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5883
5884 2010-04-26  Jim Meyering  <jim@meyering.net>
5885             Bruno Haible  <bruno@clisp.org>
5886
5887         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5888         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5889         Prompted by an exchange with Gilles Espinasse.
5890
5891 2010-04-26  Jim Meyering  <meyering@redhat.com>
5892
5893         git-version-gen: aesthetic tweak
5894         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5895         so that the command remains on a single line.
5896
5897 2010-04-26  Eric Blake  <eblake@redhat.com>
5898
5899         git-version-gen: allow use on EBCDIC hosts
5900         * build-aux/git-version-gen (dirty): Use literal rather than tying
5901         ourselves to ascii.
5902         Reported by Steve Goetze.
5903
5904 2010-04-25  Bruno Haible  <bruno@clisp.org>
5905
5906         netdb: Add support for GNULIB_POSIXCHECK.
5907         * lib/netdb.in.h: Include warn-on-use.h.
5908         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5909         functions are used when GNULIB_POSIXCHECK is defined and the
5910         getaddrinfo module is not in use.
5911         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5912         freeaddrinfo, gai_strerror, getnameinfo are declared.
5913         * modules/netdb (Depends-on): Add warn-on-use.
5914         (Makefile.am): Include warn-on-use.h in netdb.h.
5915
5916 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5917
5918         build: avoid "make check" failure without .git/ directory
5919         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5920         there is no .git/ directory.
5921
5922 2010-04-25  Bruno Haible  <bruno@clisp.org>
5923
5924         ptsname: Fix misuse of ttyname_r.
5925         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5926         of errno.
5927
5928 2010-04-25  Bruno Haible  <bruno@clisp.org>
5929
5930         ttyname_r: Make it work on Solaris 10.
5931         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5932         if the system function has the POSIX declaration. Test whether the
5933         function fails if the buffer is less than 128 bytes large.
5934         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5935         system's ttyname_r function. Provide a reasonably large buffer.
5936         * modules/ttyname_r (Depends-on): Add extensions.
5937         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5938
5939 2010-04-25  Bruno Haible  <bruno@clisp.org>
5940
5941         Use the 'extensions' module for some more functions on Solaris.
5942         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5943         module.
5944         * doc/posix-functions/ctime_r.texi: Likewise.
5945         * doc/posix-functions/getgrgid_r.texi: Likewise.
5946         * doc/posix-functions/getgrnam_r.texi: Likewise.
5947         * doc/posix-functions/getpwnam_r.texi: Likewise.
5948         * doc/posix-functions/getpwuid_r.texi: Likewise.
5949         * doc/posix-functions/readdir_r.texi: Likewise.
5950         * doc/posix-functions/sigwait.texi: Likewise.
5951         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5952         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5953
5954 2010-04-25  Bruno Haible  <bruno@clisp.org>
5955
5956         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5957         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5958         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5959         * lib/ttyname_r.c: Include <limits.h>.
5960         (ttyname_r): Define using the system's ttyname_r function, if it exists
5961         and not on Solaris.
5962         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5963         set.
5964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5965         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5966         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5967         Reported by Simon Josefsson.
5968
5969 2010-04-25  Bruno Haible  <bruno@clisp.org>
5970
5971         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5972         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5973         * doc/posix-functions/ctime_r.texi: Likewise.
5974         * doc/posix-functions/getgrgid_r.texi: Likewise.
5975         * doc/posix-functions/getgrnam_r.texi: Likewise.
5976         * doc/posix-functions/getlogin_r.texi: Likewise.
5977         * doc/posix-functions/getpwnam_r.texi: Likewise.
5978         * doc/posix-functions/getpwuid_r.texi: Likewise.
5979         * doc/posix-functions/readdir_r.texi: Likewise.
5980         * doc/posix-functions/sigwait.texi: Likewise.
5981         * doc/posix-functions/ttyname_r.texi: Likewise.
5982         Reported by Simon Josefsson.
5983
5984 2010-04-25  Bruno Haible  <bruno@clisp.org>
5985
5986         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5987         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5988         also to --create-testdir.
5989         (func_acceptable): Don't consider the status of *-tests modules here.
5990         (func_modules_transitive_closure): Consider it here, before including a
5991         test module.
5992         (func_import, func_create_testdir): Set inc_all_direct_tests,
5993         inc_all_indirect_tests.
5994         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5995         --create-testdir and --create-megatestdir.
5996
5997 2010-04-25  Bruno Haible  <bruno@clisp.org>
5998
5999         gnulib-tool: Add --without-*-tests options.
6000         * gnulib-tool (func_usage): Document the --without-*-tests options.
6001         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6002         excl_unportable_tests): New variables.
6003         Fail if they are specified with --import or --update.
6004         (func_acceptable): Respect the excl_*_tests variables.
6005         (func_import): Set the excl_*_tests variables to empty.
6006
6007 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6008             Bruno Haible  <bruno@clisp.org>
6009
6010         Work around a MacOS X 10.4 bug with openpty.
6011         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6012         * tests/test-openpty.c (main): Close the master side explicitly.
6013
6014 2010-04-25  Bruno Haible  <bruno@clisp.org>
6015
6016         strnlen: Fix a C++ test error on MacOS X and Solaris.
6017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6018         the function is not declared.
6019         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6020         Simon Josefsson.
6021
6022 2010-04-24  Bruno Haible  <bruno@clisp.org>
6023
6024         Avoid a gcc warning.
6025         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6026         of correct type for %08lx directive.
6027         Reported by Eric Blake.
6028
6029 2010-04-24  Bruno Haible  <bruno@clisp.org>
6030
6031         vasnprintf: Correct errno value in case of out-of-memory.
6032         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6033         or sprintf. Use the errno value from SNPRINTF or sprintf.
6034         Reported by Ian Beckwith <ianb@erislabs.net>.
6035
6036 2010-04-24  Bruno Haible  <bruno@clisp.org>
6037
6038         ansi-c++-opt: Find correct compiler when cross-compiling.
6039         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6040         AC_CHECK_PROGS.
6041         Reported by Simon Josefsson.
6042
6043 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6044
6045         vc-list-files: Add support for subversion
6046         * build-aux/vc-list-files: Use "svn list" to generate the list of
6047         files controlled by subversion.
6048
6049 2010-04-23  Jim Meyering  <meyering@redhat.com>
6050
6051         vc-list-files tests: convert to use init.sh
6052         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6053         path_prepend_.
6054         Use Exit, not exit.
6055         Use skip_ rather than open coding it.
6056         Remove trap set-up and compare definitions.
6057         * tests/test-vc-list-files-git.sh: Likewise.
6058         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6059
6060 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6061
6062         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6063         backup files.
6064
6065 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6066
6067         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6068
6069 2010-04-20  Eric Blake  <eblake@redhat.com>
6070
6071         tests: be robust to ignored SIGPIPE
6072         * tests/test-select-in.sh: Consume all output.
6073         * tests/test-lseek.sh: Check correct exit status, while avoiding
6074         EPIPE.
6075
6076 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6077             Bruno Haible  <bruno@clisp.org>
6078
6079         visibility: Don't use -fvisibility if it leads to a warning.
6080         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6081         yes, don't pretend that visibility works if it leads to a warning.
6082         Reported by Mike Gran <spk121@yahoo.com>.
6083
6084 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6085
6086         * build-aux/bootstrap: Use "git -h" for testing for supported options
6087         instead of "git --help".  The short-form option only shows a summary,
6088         and doesn't layout the full man page.  Grep for the full option name
6089         in the summary, too.
6090
6091 2010-04-19  Bruno Haible  <bruno@clisp.org>
6092
6093         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6094         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6095         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6096         mention of RELOCATABLE_STRIP.
6097         Reported by Sylvain Beucler <beuc@beuc.net>.
6098
6099 2010-04-19  Bruno Haible  <bruno@clisp.org>
6100
6101         * lib/diffseq.h: Fix typo in comment.
6102         Reported by Eric Blake.
6103
6104 2010-04-19  Bruno Haible  <bruno@clisp.org>
6105
6106         ioctl: Move autoconf macro to a .m4 file.
6107         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6108         * modules/ioctl (Files): Add it.
6109         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6110         Reported by Ian Beckwith <ianb@erislabs.net>.
6111
6112 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6113             Bruno Haible  <bruno@clisp.org>
6114
6115         diffseq: Accommodate use-case with abstract arrays.
6116         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6117         is not defined.
6118         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6119         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6120
6121 2010-04-18  Bruno Haible  <bruno@clisp.org>
6122
6123         * doc/posix-headers/stdbool.texi: More precise wording.
6124
6125 2010-04-17  Jim Meyering  <meyering@redhat.com>
6126
6127         maint.mk: use gnu-style indentation in an embedded perl script
6128         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6129         Rename variable: s/two/last_two_bytes/
6130
6131 2010-04-16  Eric Blake  <eblake@redhat.com>
6132
6133         test-stdbool: skip test that fails with Solaris CC
6134         * tests/test-stdbool.c (f): Skip test that causes compilation
6135         error under buggy C++ compiler.
6136         * lib/stdbool.in.h: Document the limitation.
6137         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6138
6139         setenv: allow compilation with C++
6140         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6141         register keyword.
6142
6143         stdint: allow test to pass with C++
6144         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6145
6146         getopt: allow compilation with C++
6147         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6148         struct.
6149         * lib/getopt.c (_getopt_internal_r): Use correct type.
6150         Reported by Dagobert Michelson, via Joel E. Denny.
6151
6152 2010-04-16  Bruno Haible  <bruno@clisp.org>
6153
6154         Override netdb.h always.
6155         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6156         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6157         Reported by Ludovic Courtès <ludo@gnu.org>.
6158
6159 2010-04-15  Bruno Haible  <bruno@clisp.org>
6160
6161         openpty: Fix mistake from 2010-03-21.
6162         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6163         Reported by Simon Josefsson.
6164
6165 2010-04-15  Eric Blake  <eblake@redhat.com>
6166
6167         test-forkpty: fix expected signature
6168         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6169         Reported by Simon Josefsson.
6170
6171 2010-04-15  Jim Meyering  <meyering@redhat.com>
6172
6173         maint.mk: texinfo_suffix_re_: correct the default regexp
6174         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6175
6176         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6177         make it configurable via texinfo_suffix_re_.
6178
6179 2010-04-14  Eric Blake  <eblake@redhat.com>
6180
6181         strtok_r: relax license to LGPLv2+
6182         * modules/strtok_r (License): Relax license.
6183         Reported by Matthias Bolte.
6184
6185 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6186
6187         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6188         version 1.4.4 by default instead of requiring the libgcrypt
6189         version used during build.  This makes it possible to use the
6190         application with older but still binary compatible libgcrypt
6191         versions.
6192
6193 2010-04-13  Eric Blake  <eblake@redhat.com>
6194
6195         getopt-gnu: match recent glibc fixes and posix ruling
6196         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6197         '+' handling, when requesting extensions.
6198         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6199         'W;' handling.
6200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6201         * doc/posix-functions/getopt.texi (getopt): Document this.
6202         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6203         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6204         Likewise.
6205
6206         getopt: merge bug fixes from glibc
6207         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6208         diagnostics.  Honor '+:' correctly.  Reject ';'.
6209
6210         getopt-posix: detect MacOS bug
6211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6212         optind when missing a required argument.
6213         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6214         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6215         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6216         Likewise.
6217
6218         getopt-posix: avoid spurious failure on Solaris
6219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6220         an indicator that setting optind=1 is sufficient for reset.
6221
6222         getopt-posix: avoid spurious failure on FreeBSD
6223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6224         in POSIX mode, since the m4 test uses it.
6225
6226         gnulib-tool: silence warning on BSD sh
6227         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6228
6229 2010-04-13  Jim Meyering  <meyering@redhat.com>
6230
6231         doc: users.txt: GNU patch now uses gnulib
6232         * users.txt: Add patch.
6233
6234 2010-04-12  Jim Meyering  <meyering@redhat.com>
6235
6236         maint.mk: generate more concise timing data for syntax-check rules
6237         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6238         " done" from each line that reports a syntax-check test duration.
6239
6240 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6241
6242         git-version-gen: use "git update-index..." rather than "git status"
6243         * build-aux/git-version-gen: Use git update-index --refresh, not
6244         "git status".  With some versions of git, "git status" would fail
6245         to update the index and result in an unwarranted "-dirty" suffix.
6246
6247 2010-04-11  Jim Meyering  <meyering@redhat.com>
6248
6249         openat: correct formatting (no semantic change)
6250         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6251         Suggested by Bruno Haible.
6252
6253 2010-04-11  Bruno Haible  <bruno@clisp.org>
6254
6255         Stricter declaration checking in testdirs.
6256         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6257         If for_tests is true, augment AM_CPPFLAGS to define
6258         GNULIB_STRICT_CHECKING.
6259         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6260         GNULIB_STRICT_CHECKING is defined, verify that the function is
6261         declared.
6262
6263 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6264             Bruno Haible  <bruno@clisp.org>
6265
6266         libunistring: Improve configure output.
6267         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6268         Don't say "consider installing GNU libunistring" when checking again
6269         with libiconv.
6270
6271 2010-04-11  Bruno Haible  <bruno@clisp.org>
6272
6273         libunistring: Correct value of $LTLIBUNISTRING.
6274         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6275         correct the value of $LTLIBUNISTRING.
6276
6277 2010-04-11  Bruno Haible  <bruno@clisp.org>
6278
6279         havelib: Add static libraries to LIBS in the right order.
6280         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6281         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6282
6283 2010-04-11  Bruno Haible  <bruno@clisp.org>
6284
6285         libunistring: Detect libunistring also when it depends on libiconv.
6286         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6287         the second AC_LIB_HAVE_LINKFLAGS invocation.
6288
6289 2010-04-11  James Youngman  <jay@gnu.org>
6290
6291         close-stream: declare local scalars to be "const"
6292         * lib/close-stream.c (close_stream): Make boolean variables const
6293         to document the fact that we set but do not change them.
6294
6295 2010-04-11  Bruno Haible  <bruno@clisp.org>
6296
6297         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6298
6299 2010-04-11  Jim Meyering  <meyering@redhat.com>
6300
6301         maint.mk: don't include dist-check.mk
6302         * top/maint.mk: Remove bogus include directive.
6303
6304         maint.mk: improve empty-line-at-EOF check
6305         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6306         solution, rather than tail+Perl-based one.  The latter would read
6307         a few kilobytes from the end of each file, and did not handle empty
6308         files properly.
6309
6310         maint.mk: print the elapsed time for each syntax-check rule
6311         * top/maint.mk (sc_m_rules_): Save start time in a file.
6312         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6313         (local-check): Interpose the .z rules
6314
6315 2010-04-11  Jim Meyering  <meyering@redhat.com>
6316
6317         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6318         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6319         empty file with one that ends in an empty line.
6320
6321 2010-04-10  Bruno Haible  <bruno@clisp.org>
6322
6323         mkdir: Make it work on mingw64.
6324         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6325         * lib/mkdir.c: Update comment.
6326         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
6327
6328 2010-04-10  Bruno Haible  <bruno@clisp.org>
6329
6330         Don't override improved macro from newer autoconf.
6331         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6332         autoconf >= 2.62.
6333         Reported by Joel E. Denny <jdenny@clemson.edu>.
6334
6335 2010-04-10  Jim Meyering  <meyering@redhat.com>
6336
6337         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6338         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6339
6340         maint.mk: correct a diagnostic
6341         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6342         in diagnostic; now use $prohibit.
6343
6344 2010-04-10  Bruno Haible  <address@hidden>
6345
6346         fchownat: Fix a C++ test error on Solaris 8.
6347         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6348         the function does not exist.
6349
6350 2010-04-10  Bruno Haible  <bruno@clisp.org>
6351
6352         vasnprintf: Add more tests.
6353         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6354         (test_function): Test converting an invalid wide string.
6355
6356         vasnprintf: Correct handling of unconvertible wide string arguments.
6357         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6358         VASNPRINTF.
6359         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6360         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6361         smaller than the expected maximum need for the directive. Set errno to
6362         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6363         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6365         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6366         * modules/vasnprintf (Files): Add m4/printf.m4.
6367         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6368
6369 2010-04-10  Bruno Haible  <bruno@clisp.org>
6370
6371         vasnprintf: Fix crash in %ls directive.
6372         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6373         string is passed as argument to %ls, with no precision and no width.
6374         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6375
6376 2010-04-10  Bruno Haible  <bruno@clisp.org>
6377
6378         vasnprintf: Fix multiple test failures on mingw.
6379         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6380         _snprintf, or snwprintf, not _snwprintf.
6381
6382 2010-04-10  Bruno Haible  <bruno@clisp.org>
6383
6384         write: Fix a C++ test error on mingw.
6385         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6386
6387 2010-04-10  Bruno Haible  <bruno@clisp.org>
6388
6389         vasnprintf test: Reduce code duplication.
6390         * tests/test-vasnprintf.c (test_function): New function, extracted from
6391         test_vasnprintf.
6392         (test_vasnprintf, test_asnprintf): Invoke it.
6393
6394 2010-04-10  Bruno Haible  <bruno@clisp.org>
6395
6396         strnlen: Fix warning in C++ mode on MacOS X.
6397         * lib/string.in.h (strnlen): Use the modern idiom.
6398         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6399         defining strnlen as a macro already in <config.h>.
6400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6401         REPLACE_STRNLEN.
6402         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6403         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6404
6405 2010-04-08  James Youngman  <jay@gnu.org>
6406
6407         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6408         the example.
6409
6410 2010-04-09  Jim Meyering  <meyering@redhat.com>
6411
6412         maint.mk: print better diagnostic when there is no $(_hv_file)
6413         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6414         announce that when $(_hv_file) (aka help-version) does not exist.
6415
6416         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6417         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6418         not try to interpret its random input bytes.  Jarno Rajahalme reported
6419         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6420         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6421         (mktempd_): Likewise, just in case.
6422
6423         ftruncate: add two years to projected module removal date: 2012
6424         * m4/ftruncate.m4: Adjust comments.
6425
6426         ftruncate: mark module as obsolete; even MinGW provides it, now
6427         * modules/ftruncate (Status): Obsolete.
6428         (Notice): Say that.
6429         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6430         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6431
6432 2010-04-08  Bruno Haible  <bruno@clisp.org>
6433
6434         Fix side effects from tests-related modules.
6435         * modules/dprintf-posix (Comment): New section.
6436         * modules/fprintf-posix (Comment): Likewise.
6437         * modules/obstack-printf-posix (Comment): Likewise.
6438         * modules/printf-posix (Comment): Likewise.
6439         * modules/snprintf-posix (Comment): Likewise.
6440         * modules/sprintf-posix (Comment): Likewise.
6441         * modules/vasnprintf-posix (Comment): Likewise.
6442         * modules/vasprintf-posix (Comment): Likewise.
6443         * modules/vdprintf-posix (Comment): Likewise.
6444         * modules/vfprintf-posix (Comment): Likewise.
6445         * modules/vprintf-posix (Comment): Likewise.
6446         * modules/vsnprintf-posix (Comment): Likewise.
6447         * modules/vsprintf-posix (Comment): Likewise.
6448         * modules/xprintf-posix (Comment): Likewise.
6449         * modules/xvasprintf-posix (Comment): Likewise.
6450         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6451         * modules/floorf-tests (Depends-on): Likewise.
6452         * modules/round-tests (Depends-on): Likewise.
6453         * modules/roundf-tests (Depends-on): Likewise.
6454         * modules/trunc-tests (Depends-on): Likewise.
6455         * modules/truncf-tests (Depends-on): Likewise.
6456         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6457         'fprintf-posix' module is not present.
6458         * tests/test-floorf2.c (check): Likewise.
6459         * tests/test-trunc2.c (check): Likewise.
6460         * tests/test-truncf2.c (check): Likewise.
6461         * tests/test-round2.c (equal): Likewise.
6462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6463
6464 2010-04-07  Karl Berry  <karl@gnu.org>
6465
6466         * config/srclist.txt,
6467         * config/srclistvars.sh,
6468         * config/srclist-update: doc fixes.
6469
6470 2010-04-07  Jim Meyering  <meyering@redhat.com>
6471
6472         maint.mk: add a PATH crosschecking syntax-check rule
6473         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6474         Useful if you use a test like the one in help-version (coreutils,
6475         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6476         printed by prog --version.
6477
6478 2010-04-06  Bruno Haible  <bruno@clisp.org>
6479
6480         Fix link error on mingw.
6481         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6482         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6483
6484 2010-04-06  Bruno Haible  <bruno@clisp.org>
6485
6486         Assume rmdir exists.
6487         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6488
6489 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6490
6491         doc: update users.txt
6492         * users.txt: Add gcal.
6493
6494 2010-04-06  Jim Meyering  <meyering@redhat.com>
6495
6496         init.sh: simply unset TMPDIR rather than risking env -i
6497         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6498         although it probably works fine on all Unix-based systems, some
6499         systems (Cygwin?) cannot tolerate a totally cleared environment.
6500         Suggestion from Eric Blake.
6501
6502 2010-04-06  Jim Meyering  <meyering@redhat.com>
6503
6504         init.sh: portability fix: use env's POSIX-specified -i option not -u
6505         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6506         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6507
6508 2010-04-05  Bruno Haible  <bruno@clisp.org>
6509
6510         btowc: Work around Cygwin 1.7.2 bug.
6511         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6512         does not map NUL to 0.
6513         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6514
6515 2010-04-05  Bruno Haible  <bruno@clisp.org>
6516
6517         Make the multithread modules work on Cygwin 1.7.2.
6518         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6519         imported symbols can be declared weak, so that it returns "no" on
6520         Cygwin 1.7.2.
6521
6522 2010-04-05  Bruno Haible  <bruno@clisp.org>
6523
6524         Use the module 'strncat'.
6525         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6526
6527         Tests for module 'strncat'.
6528         * modules/strncat-tests: New file.
6529         * tests/test-strncat.c: New file.
6530
6531         New module 'strncat'.
6532         * lib/string.in.h (strncat): New declaration.
6533         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6534         * m4/strncat.m4: New file, based on m4/memchr.m4.
6535         * modules/strncat: New file.
6536         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6537         is declared.
6538         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6539         REPLACE_STRNCAT.
6540         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6541         REPLACE_STRNCAT.
6542         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6543         module.
6544         * tests/test-string-c++.cc: Check signature of strncat.
6545
6546 2010-04-05  Jim Meyering  <meyering@redhat.com>
6547
6548         xstrtoumax-tests: convert to use init.sh
6549         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6550         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6551         Use Exit, not exit.
6552         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6553
6554         xstrtoimax-tests: convert to use init.sh
6555         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6556         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6557         Use Exit, not exit.
6558         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6559
6560 2010-04-05  Bruno Haible  <bruno@clisp.org>
6561
6562         sys_socket: Avoid #define replacements in C++ mode.
6563         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6564         warning to the function if possible, rather than #defining the symbol
6565         to a dysfunctional alias.
6566
6567 2010-04-05  Bruno Haible  <bruno@clisp.org>
6568
6569         fseeko: Fix C++ test error on mingw.
6570         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6571         gl_FUNC_FSEEKO.
6572         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6573         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6574         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6575         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6576
6577 2010-04-05  Bruno Haible  <bruno@clisp.org>
6578
6579         duplocale: Improve test output.
6580         * tests/test-duplocale.c (main): Print reason for skipped test.
6581
6582 2010-04-05  Bruno Haible  <bruno@clisp.org>
6583
6584         Assume rmdir exists.
6585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6586         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6587
6588 2010-04-05  Bruno Haible  <bruno@clisp.org>
6589
6590         Fix link error on Solaris 8 with cc.
6591         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6592
6593 2010-04-05  Bruno Haible  <bruno@clisp.org>
6594
6595         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6596         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6597
6598 2010-04-05  Bruno Haible  <bruno@clisp.org>
6599
6600         vasprintf: Update documentation.
6601         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6602
6603 2010-04-05  Bruno Haible  <bruno@clisp.org>
6604
6605         ptsname: Improve test.
6606         * tests/test-ptsname.c (main): Also try the various master names of BSD
6607         systems.
6608
6609 2010-04-05  Bruno Haible  <bruno@clisp.org>
6610
6611         memchr: Avoid a possible C++ test error.
6612         * lib/string.in.h (memchr): Provide declaration if function is missing.
6613         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6614         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6616         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6617
6618 2010-04-05  Bruno Haible  <bruno@clisp.org>
6619
6620         strtok_r: Improve idiom.
6621         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6622         AC_LIBOBJ is used.
6623
6624 2010-04-05  Bruno Haible  <bruno@clisp.org>
6625
6626         strdup: Improve idiom.
6627         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6628         AC_LIBOBJ is used.
6629         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6630         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6631         when AC_LIBOBJ is used.
6632
6633 2010-04-05  Bruno Haible  <bruno@clisp.org>
6634
6635         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6636         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6637         don't set REPLACE_MBSINIT to 1.
6638         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6639         don't set REPLACE_MBRTOWC to 1.
6640         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6641         exist, don't set REPLACE_MBSRTOWCS to 1.
6642         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6643         exist, don't set REPLACE_MBSNRTOWCS to 1.
6644         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6645         don't set REPLACE_WCRTOMB to 1.
6646         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6647         exist, don't set REPLACE_WCSRTOMBS to 1.
6648         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6649         exist, don't set REPLACE_WCSNRTOMBS to 1.
6650
6651 2010-04-05  Bruno Haible  <bruno@clisp.org>
6652
6653         ldexpl: Improve idiom.
6654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6655         make sure to set HAVE_DECL_LDEXPL to 0.
6656
6657 2010-04-05  Jim Meyering  <meyering@redhat.com>
6658
6659         xstrtol-tests: convert to use init.sh
6660         * modules/xstrtol-tests (Files): Add tests/init.sh.
6661         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6662         Use Exit, not exit.
6663         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6664
6665         atexit-tests: convert to use init.sh
6666         * modules/atexit-tests (Files): Add tests/init.sh.
6667         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6668         Use Exit, not exit.
6669         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6670
6671         init.sh: fix typo
6672         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6673
6674         init.sh: make it easier for a test script to write to the tty, ...
6675         when using automake's parallel-tests mode.
6676         * tests/init.sh (stderr_fileno_): Define overridable variable.
6677         (warn_): New function, to use it.
6678         (fail_, skip_, framework_failure_): Use warn_.
6679
6680 2010-04-04  Bruno Haible  <bruno@clisp.org>
6681
6682         btowc: Avoid warning.
6683         * lib/btowc.c: Include <stdlib.h>.
6684         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6685
6686 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6687             Bruno Haible  <bruno@clisp.org>
6688
6689         wchar: Port to NetBSD 1.5.
6690         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6691         * lib/wctype.in.h (WEOF): Likewise.
6692
6693 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6694             Bruno Haible  <bruno@clisp.org>
6695
6696         Port extended stdio to NetBSD 1.5.
6697         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6698         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6699         older.
6700
6701 2010-04-04  Bruno Haible  <bruno@clisp.org>
6702
6703         string: Remove unused substitution.
6704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6705         HAVE_DECL_STRERROR.
6706         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6707
6708 2010-04-04  Bruno Haible  <bruno@clisp.org>
6709
6710         strtod: Avoid a possible C++ test error.
6711         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6712         set REPLACE_STRTOD.
6713
6714 2010-04-04  Bruno Haible  <bruno@clisp.org>
6715
6716         strerror: Update documentation.
6717         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6718
6719 2010-04-04  Bruno Haible  <bruno@clisp.org>
6720
6721         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6722         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6723         _GL_CXXALIAS_SYS_CAST.
6724
6725 2010-04-04  Bruno Haible  <bruno@clisp.org>
6726
6727         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6728         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6729         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6730         REPLACE_FREXPL to 1.
6731         * doc/posix-functions/frexpl.texi: Update documentation.
6732
6733 2010-04-04  Bruno Haible  <bruno@clisp.org>
6734
6735         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6736         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6737
6738 2010-04-04  Bruno Haible  <bruno@clisp.org>
6739
6740         Implement nanosleep for native Windows.
6741         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6742
6743 2010-04-04  Bruno Haible  <bruno@clisp.org>
6744
6745         math: Fix some C++ test errors on Solaris 8.
6746         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6747
6748 2010-04-04  Bruno Haible  <bruno@clisp.org>
6749
6750         math: Fix some C++ test errors on Cygwin.
6751         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6752         truncl): Provide declaration if the system does not have it.
6753         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6754         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6755         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6756         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6757         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6758         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6759         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6760         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6761         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6762         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6763         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6764         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6765         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6766         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6767         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6768         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6770         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6771         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6772         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6773         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6774         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6775
6776 2010-04-04  Bruno Haible  <bruno@clisp.org>
6777
6778         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6779         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6780         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6781         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6782         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6783         * m4/isinf.m4 (gl_ISINF): Likewise.
6784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6785
6786 2010-04-04  Bruno Haible  <bruno@clisp.org>
6787
6788         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6789         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6790
6791 2010-04-04  Bruno Haible  <bruno@clisp.org>
6792
6793         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6794         * modules/tmpfile (configure.ac): Update.
6795
6796         tmpfile: Fix C++ test error on mingw.
6797         * lib/stdio.in.h (tmpfile): New declaration.
6798         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6799         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6800         * modules/tmpfile (Depends-on): Add stdio.
6801         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6802         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6803         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6804         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6805         REPLACE_TMPFILE.
6806         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6807
6808 2010-04-04  Bruno Haible  <bruno@clisp.org>
6809
6810         ioctl: Fix C++ test error on mingw.
6811         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6812         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6813         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6814
6815 2010-04-03  Bruno Haible  <bruno@clisp.org>
6816
6817         wcwidth: Fix C++ test error on mingw.
6818         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6820         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6821
6822 2010-04-03  Bruno Haible  <bruno@clisp.org>
6823
6824         nanosleep: Fix C++ test error on mingw.
6825         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6826         * lib/time.in.h (nanosleep): Use modern idiom.
6827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6828         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6829         REPLACE_NANOSLEEP to 1.
6830         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6831         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6832
6833 2010-04-03  Bruno Haible  <bruno@clisp.org>
6834
6835         strptime: Fix C++ test error on mingw.
6836         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6837         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6838         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6839         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6840         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6841         not REPLACE_STRPTIME.
6842         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6843         REPLACE_STRPTIME.
6844
6845 2010-04-03  Bruno Haible  <bruno@clisp.org>
6846
6847         timegm: Fix C++ test error on mingw.
6848         * lib/time.in.h (timegm): Use modern idiom.
6849         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6850         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6851         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6852         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6853
6854 2010-04-03  Bruno Haible  <bruno@clisp.org>
6855
6856         timegm: Assume declaration if function exists.
6857         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6858         if it exists. Don't clobber ac_cv_func_timegm.
6859
6860 2010-04-03  Bruno Haible  <bruno@clisp.org>
6861
6862         time_r: Fix C++ test error on mingw.
6863         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6864         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6865         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6866         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6867         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6868
6869 2010-04-03  Bruno Haible  <bruno@clisp.org>
6870
6871         time_r: Minor updates.
6872         * modules/time_r (Description): Mention the provided functions.
6873         * lib/time_r.c: Don't include <string.h>.
6874         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6875         * doc/posix-functions/localtime_r.texi: Likewise.
6876
6877 2010-04-03  Bruno Haible  <bruno@clisp.org>
6878
6879         time: Fix regression introduced on 2010-03-08.
6880         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6881         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6882
6883 2010-04-03  Jim Meyering  <meyering@redhat.com>
6884
6885         maint.mk: don't silently disable project-specific syntax-check rules
6886         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6887         that they need to convert their project-specific syntax-check rules
6888         to use the new _sc_search_regexp.
6889
6890 2010-04-03  Bruno Haible  <bruno@clisp.org>
6891
6892         fchdir: Fix regression introduced on 2010-03-08.
6893         * lib/unistd.in.h (fchdir): Fix declaration.
6894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6896         REPLACE_FCHDIR.
6897         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6898         REPLACE_FCHDIR.
6899
6900 2010-04-03  Bruno Haible  <bruno@clisp.org>
6901
6902         getpagesize: Fix C++ test error on mingw.
6903         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6904         system does not declare the function.
6905         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6906         declared.
6907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6908         HAVE_DECL_GETPAGESIZE.
6909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6910
6911 2010-04-03  Bruno Haible  <bruno@clisp.org>
6912
6913         stdio: Make C++ tests work on mingw.
6914         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6915         does not declare the function.
6916
6917 2010-04-03  Bruno Haible  <bruno@clisp.org>
6918
6919         ftello: Fix C++ test error on mingw.
6920         * lib/stdio.in.h (ftello): Use modern idiom.
6921         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6922         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6923         is missing and that it needs to be replaced.
6924         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6926         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6927
6928 2010-04-03  Bruno Haible  <bruno@clisp.org>
6929
6930         fseeko: Fix C++ test error on mingw.
6931         * lib/stdio.in.h (fseeko): Use modern idiom.
6932         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6934         is missing and that it needs to be replaced.
6935         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6937         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6938
6939 2010-04-03  Bruno Haible  <bruno@clisp.org>
6940
6941         mkstemp: Fix C++ test error on mingw.
6942         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6944         function is missing and that it needs to be replaced.
6945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6946         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6947
6948 2010-04-03  Bruno Haible  <bruno@clisp.org>
6949
6950         stpncpy: Fix C++ test error on mingw.
6951         * lib/string.in.h (stpncpy): Use modern idiom.
6952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6953         function is missing and that it needs to be replaced.
6954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6955         REPLACE_STPNCPY.
6956         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6957
6958 2010-04-03  Bruno Haible  <bruno@clisp.org>
6959
6960         sys_stat: Fix C++ test error on mingw.
6961         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6962         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6963
6964 2010-04-03  Bruno Haible  <bruno@clisp.org>
6965
6966         pty: Update doc.
6967         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6968
6969 2010-04-03  Bruno Haible  <bruno@clisp.org>
6970
6971         unistd: Fix C++ test error on mingw.
6972         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6973
6974 2010-04-03  Bruno Haible  <bruno@clisp.org>
6975
6976         Update doc regarding mingw.
6977         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6978         * doc/glibc-functions/login_tty.texi: Likewise.
6979         * doc/glibc-functions/forkpty.texi: Likewise.
6980
6981 2010-04-03  Bruno Haible  <bruno@clisp.org>
6982
6983         stdlib: Avoid compilation failure of c-strtold on mingw.
6984         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6985
6986 2010-04-03  Bruno Haible  <bruno@clisp.org>
6987
6988         locale: Make C++ tests work on Cygwin and mingw.
6989         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6990         cannot provide the function.
6991         Reported by Simon Josefsson.
6992
6993 2010-04-03  Bruno Haible  <bruno@clisp.org>
6994
6995         localename: Port to MacOS X 10.6.
6996         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6997         memory layout of the locales in MacOS X 10.6 as well.
6998         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6999
7000 2010-04-02  Bruno Haible  <bruno@clisp.org>
7001
7002         gnulib-tool: Ensure that long-running tests are executed last.
7003         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7004         running tests after the one for the other tests.
7005
7006 2010-04-02  Bruno Haible  <bruno@clisp.org>
7007
7008         gnulib-tool: Ensure the tests in the main directory are executed first.
7009         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7010         start with the current directory.
7011
7012 2010-04-02  Bruno Haible  <bruno@clisp.org>
7013
7014         Tests for module 'havelib', moved here from GNU gettext.
7015         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7016         modifications.
7017         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7018         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7019         with modifications.
7020         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7021         modifications.
7022         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7023         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7024         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7025         with modifications.
7026         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7027         with modifications.
7028         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7029         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7030         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7031         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7032         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7033         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7034         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7035         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7036         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7037         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7038         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7039         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7040         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7041         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7042         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7043         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7044         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7045         with modifications.
7046         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7047         with modifications.
7048         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7049         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7050         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7051         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7052         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7053         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7054         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7055         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7056         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7057         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7058         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7059         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7060         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7061         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7062         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7063         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7064         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7065         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7066         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7067         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7068         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7069         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7070         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7071         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7072         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7073         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7074         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7075         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7076         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7077         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7078         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7079         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7080         * tests/havelib/rpathx/rpathx.c: New file, from
7081         gettext/autoconf-lib-link.
7082         * tests/havelib/rpathx/Makefile.am: New file, from
7083         gettext/autoconf-lib-link.
7084         * tests/havelib/rpathx/configure.ac: New file, from
7085         gettext/autoconf-lib-link with modifications.
7086         * tests/havelib/rpathy/rpathy.c: New file, from
7087         gettext/autoconf-lib-link.
7088         * tests/havelib/rpathy/Makefile.am: New file, from
7089         gettext/autoconf-lib-link.
7090         * tests/havelib/rpathy/configure.ac: New file, from
7091         gettext/autoconf-lib-link with modifications.
7092         * tests/havelib/rpathz/rpathz.c: New file, from
7093         gettext/autoconf-lib-link.
7094         * tests/havelib/rpathz/Makefile.am: New file, from
7095         gettext/autoconf-lib-link.
7096         * tests/havelib/rpathz/configure.ac: New file, from
7097         gettext/autoconf-lib-link with modifications.
7098         * tests/havelib/rpathlx/usex.c: New file, from
7099         gettext/autoconf-lib-link.
7100         * tests/havelib/rpathlx/Makefile.am: New file, from
7101         gettext/autoconf-lib-link.
7102         * tests/havelib/rpathlx/configure.ac: New file, from
7103         gettext/autoconf-lib-link with modifications.
7104         * tests/havelib/rpathly/usey.c: New file, from
7105         gettext/autoconf-lib-link.
7106         * tests/havelib/rpathly/Makefile.am: New file, from
7107         gettext/autoconf-lib-link.
7108         * tests/havelib/rpathly/configure.ac: New file, from
7109         gettext/autoconf-lib-link with modifications.
7110         * tests/havelib/rpathlz/usez.c: New file, from
7111         gettext/autoconf-lib-link.
7112         * tests/havelib/rpathlz/Makefile.am: New file, from
7113         gettext/autoconf-lib-link.
7114         * tests/havelib/rpathlz/configure.ac: New file, from
7115         gettext/autoconf-lib-link with modifications.
7116         * tests/havelib/rpathlyx/usey.c: New file, from
7117         gettext/autoconf-lib-link.
7118         * tests/havelib/rpathlyx/Makefile.am: New file, from
7119         gettext/autoconf-lib-link.
7120         * tests/havelib/rpathlyx/configure.ac: New file, from
7121         gettext/autoconf-lib-link with modifications.
7122         * tests/havelib/rpathlzyx/usez.c: New file, from
7123         gettext/autoconf-lib-link.
7124         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7125         gettext/autoconf-lib-link.
7126         * tests/havelib/rpathlzyx/configure.ac: New file, from
7127         gettext/autoconf-lib-link with modifications.
7128         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7129         with modifications.
7130
7131 2010-04-02  Bruno Haible  <bruno@clisp.org>
7132
7133         gnulib-tool: Create distributed built sources also for the tests.
7134         * gnulib-tool (func_create_testdir): Also generate distributed built
7135         sources in the tests directory.
7136
7137 2010-04-02  Bruno Haible  <bruno@clisp.org>
7138
7139         gnulib-tool: Obey user's environment variables.
7140         * gnulib-tool (func_create_testdir): When creating built sources,
7141         respect the environment variables for autoconf, automake, etc. given by
7142         the user.
7143
7144 2010-04-02  Bruno Haible  <bruno@clisp.org>
7145
7146         gnulib-tool: Provide the value of --m4-base to modules.
7147         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7148         of gl_m4_base.
7149
7150 2010-04-02  Eric Blake  <eblake@redhat.com>
7151
7152         maint.mk: fix some fallout
7153         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7154         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7155
7156 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7157
7158         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7159         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7160         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7161         (sc_cast_of_x_alloc_return_value): Likewise.
7162         (sc_cast_of_alloca_return_value): Likewise.
7163         (sc_space_tab): Likewise.
7164         (sc_prohibit_atoi_atof): Likewise.
7165         (sc_prohibit_magic_number_exit): Likewise.
7166         (sc_error_exit_success): Likewise.
7167         (sc_file_system): Likewise.
7168         (sc_prohibit_have_config_h): Likewise.
7169         (sc_require_config_h): Likewise.
7170         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7171         (sc_obsolete_symbols): Likewise.
7172         (sc_changelog): Likewise.
7173         (sc_program_name): Likewise.
7174         (sc_the_the): Likewise.
7175         (sc_trailing_blank): Likewise.
7176         (sc_two_space_separator_in_usage): Likewise.
7177         (sc_useless_cpp_parens): Likewise.
7178         (sc_GPL_version): Likewise.
7179         (sc_GFDL_version): Likewise.
7180         (sc_texinfo_acronym): Likewise.
7181         (sc_prohibit_cvs_keyword): Likewise.
7182         (sc_prohibit_stat_st_blocks): Likewise.
7183         (sc_prohibit_S_IS_definition): Likewise.
7184         (sc_redundant_const): Likewise.
7185         (sc_makefile_TAB_only_indentation): Likewise.
7186         (sc_m4_quote_check): Likewise.
7187         (sc_makefile_path_separator_check): Likewise.
7188         (sc_copyright_check): Likewise.
7189         (sc_Wundef_boolean): Likewise.
7190         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7191
7192         maint.mk: match 0 or more whitespace-before-function-call '('
7193         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7194         that have zero or two-and-more spaces between the function name
7195         and the open parenthesis.
7196         (sc_error_message_warn_fatal): Likewise.
7197         (sc_error_message_uppercase): Likewise.
7198         (sc_error_message_period): Likewise.
7199
7200 2010-03-31  Eric Blake  <eblake@redhat.com>
7201
7202         maint.mk: check for [ as well as test
7203         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7204         Based on a libvirt report by Matthias Bolte.
7205
7206         gnumakefile: don't squelch _version output
7207         * top/GNUmakefile (_version): Create one-shot dependency rather
7208         than using $(shell) when version must be regenerated.
7209         (_autoreconf): Run verbosely, by default.
7210
7211         sys_time: avoid compiler warnings
7212         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7213         unconditional, fixing regression from 2010-03-29.
7214         Reported by Simon Josefsson.
7215
7216 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7217
7218         maint.mk: s/_header_without_use/_sc_header_without_use/
7219         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7220         (sc_prohibit_assert_without_use): Use the new name.
7221         (sc_prohibit_close_stream_without_use): Likewise.
7222         (sc_prohibit_getopt_without_use): Likewise.
7223         (sc_prohibit_quotearg_without_use): Likewise.
7224         (sc_prohibit_quote_without_use): Likewise.
7225         (sc_prohibit_long_options_without_use): Likewise.
7226         (sc_prohibit_inttostr_without_use): Likewise.
7227         (sc_prohibit_ignore_value_without_use): Likewise.
7228         (sc_prohibit_error_without_use): Likewise.
7229         (sc_prohibit_xalloc_without_use): Likewise.
7230         (sc_prohibit_hash_without_use): Likewise.
7231         (sc_prohibit_hash_pjw_without_use): Likewise.
7232         (sc_prohibit_safe_read_without_use): Likewise.
7233         (sc_prohibit_argmatch_without_use): Likewise.
7234         (sc_prohibit_canonicalize_without_use): Likewise.
7235         (sc_prohibit_root_dev_ino_without_use): Likewise.
7236         (sc_prohibit_openat_without_use): Likewise.
7237         (sc_prohibit_c_ctype_without_use): Likewise.
7238         (sc_prohibit_signal_without_use): Likewise.
7239         (sc_prohibit_intprops_without_use): Likewise.
7240
7241 2010-03-30  Eric Blake  <eblake@redhat.com>
7242
7243         maint: improve module indicators
7244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7245         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7246         columns, and avoid extra macro expansion.
7247
7248         fdopendir: work around FreeBSD bug
7249         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7250         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7251         * modules/dirent (Makefile.am): Substitute it.
7252         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7253         declaration.
7254         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7255         fix.
7256         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7257
7258 2010-03-29  Bruno Haible  <bruno@clisp.org>
7259
7260         Emit #pragma system_header after the inclusion guard, not before.
7261         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7262         guard that spans the entire file, not before. This enables an
7263         optimization in GCC's preprocessor.
7264         * lib/ctype.in.h: Likewise.
7265         * lib/dirent.in.h: Likewise.
7266         * lib/errno.in.h: Likewise.
7267         * lib/float.in.h: Likewise.
7268         * lib/getopt.in.h: Likewise.
7269         * lib/iconv.in.h: Likewise.
7270         * lib/langinfo.in.h: Likewise.
7271         * lib/locale.in.h: Likewise.
7272         * lib/math.in.h: Likewise.
7273         * lib/netdb.in.h: Likewise.
7274         * lib/netinet_in.in.h: Likewise.
7275         * lib/pty.in.h: Likewise.
7276         * lib/sched.in.h: Likewise.
7277         * lib/se-selinux.in.h: Likewise.
7278         * lib/search.in.h: Likewise.
7279         * lib/spawn.in.h: Likewise.
7280         * lib/stdarg.in.h: Likewise.
7281         * lib/stdint.in.h: Likewise.
7282         * lib/string.in.h: Likewise.
7283         * lib/strings.in.h: Likewise.
7284         * lib/sys_file.in.h: Likewise.
7285         * lib/sys_ioctl.in.h: Likewise.
7286         * lib/sys_time.in.h: Likewise.
7287         * lib/sys_times.in.h: Likewise.
7288         * lib/sys_utsname.in.h: Likewise.
7289         * lib/sys_wait.in.h: Likewise.
7290         * lib/sysexits.in.h: Likewise.
7291         * lib/wctype.in.h: Likewise.
7292
7293 2010-03-28  James Youngman  <jay@gnu.org>
7294
7295         save-cwd: don't leak a file descriptor when the caller execs.
7296         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7297         saved file descriptor.
7298         * modules/save-cwd (Depends-on): Depend on cloexec.
7299
7300 2010-03-29  Bruno Haible  <bruno@clisp.org>
7301
7302         Remove vestiges of fts-lgpl module.
7303         * lib/fts_.h: Assume GNULIB_FTS is 1.
7304         * lib/fts.c: Likewise.
7305         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7306
7307 2010-03-28  Bruno Haible  <bruno@clisp.org>
7308
7309         Fix definition of tests witness macro.
7310         * gnulib-tool (func_import): Fix definition of witness macro.
7311
7312 2010-03-28  Bruno Haible  <bruno@clisp.org>
7313
7314         Fix ioctl's protoype on glibc systems.
7315         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7316         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7317         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7318         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7319         signature. If not, arrange to replace the ioctl function.
7320         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7321         REPLACE_IOCTL.
7322         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7323         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7324         Reported by Ludovic Courtès <ludo@gnu.org>.
7325
7326 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7327
7328         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7329         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7330         made it so grep -r --include=GLOB* ... did not work.
7331
7332 2010-03-26  Jim Meyering  <meyering@redhat.com>
7333             Eric Blake  <eblake@redhat.com>
7334
7335         maint.mk: prohibit use of test's -o and -a operators
7336         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7337
7338 2010-03-28  Bruno Haible  <bruno@clisp.org>
7339
7340         Remove unused GNULIB_XYZ macro definitions.
7341         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7342         invocation.
7343
7344 2010-03-28  Bruno Haible  <bruno@clisp.org>
7345
7346         Mark privileged tests modules.
7347         * modules/idpriv-drop-tests (Status): New section.
7348         * modules/idpriv-droptemp-tests (Status): New section.
7349
7350 2010-03-28  Bruno Haible  <bruno@clisp.org>
7351
7352         Split C++ tests into separate tests modules.
7353         * modules/dirent-c++-tests: New file, extracted from
7354         modules/dirent-tests.
7355         * modules/dirent-tests: Depend on it.
7356         * modules/fcntl-h-c++-tests: New file, extracted from
7357         modules/fcntl-h-tests.
7358         * modules/fcntl-h-tests: Depend on it.
7359         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7360         * modules/glob-tests: Depend on it.
7361         * modules/iconv-h-c++-tests: New file, extracted from
7362         modules/iconv-h-tests.
7363         * modules/iconv-h-tests: Depend on it.
7364         * modules/langinfo-c++-tests: New file, extracted from
7365         modules/langinfo-tests.
7366         * modules/langinfo-tests: Depend on it.
7367         * modules/locale-c++-tests: New file, extracted from
7368         modules/locale-tests.
7369         * modules/locale-tests: Depend on it.
7370         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7371         * modules/math-tests: Depend on it.
7372         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7373         * modules/pty-tests: Depend on it.
7374         * modules/search-c++-tests: New file, extracted from
7375         modules/search-tests.
7376         * modules/search-tests: Depend on it.
7377         * modules/signal-c++-tests: New file, extracted from
7378         modules/signal-tests.
7379         * modules/signal-tests: Depend on it.
7380         * modules/spawn-c++-tests: New file, extracted from
7381         modules/spawn-tests.
7382         * modules/spawn-tests: Depend on it.
7383         * modules/stdio-c++-tests: New file, extracted from
7384         modules/stdio-tests.
7385         * modules/stdio-tests: Depend on it.
7386         * modules/stdlib-c++-tests: New file, extracted from
7387         modules/stdlib-tests.
7388         * modules/stdlib-tests: Depend on it.
7389         * modules/string-c++-tests: New file, extracted from
7390         modules/string-tests.
7391         * modules/string-tests: Depend on it.
7392         * modules/sys_ioctl-c++-tests: New file, extracted from
7393         modules/sys_ioctl-tests.
7394         * modules/sys_ioctl-tests: Depend on it.
7395         * modules/sys_select-c++-tests: New file, extracted from
7396         modules/sys_select-tests.
7397         * modules/sys_select-tests: Depend on it.
7398         * modules/sys_socket-c++-tests: New file, extracted from
7399         modules/sys_socket-tests.
7400         * modules/sys_socket-tests: Depend on it.
7401         * modules/sys_stat-c++-tests: New file, extracted from
7402         modules/sys_stat-tests.
7403         * modules/sys_stat-tests: Depend on it.
7404         * modules/sys_time-c++-tests: New file, extracted from
7405         modules/sys_time-tests.
7406         * modules/sys_time-tests: Depend on it.
7407         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7408         * modules/time-tests: Depend on it.
7409         * modules/unistd-c++-tests: New file, extracted from
7410         modules/unistd-tests.
7411         * modules/unistd-tests: Depend on it.
7412         * modules/wchar-c++-tests: New file, extracted from
7413         modules/wchar-tests.
7414         * modules/wchar-tests: Depend on it.
7415         * modules/wctype-c++-tests: New file, extracted from
7416         modules/wctype-tests.
7417         * modules/wctype-tests: Depend on it.
7418         Reported by Simon Josefsson.
7419
7420 2010-03-28  Bruno Haible  <bruno@clisp.org>
7421
7422         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7423         * gnulib-tool (func_exists_module): New function, extracted from
7424         func_verify_module.
7425         (func_verify_module): Use it.
7426         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7427         'foo' only if 'foo' exists.
7428         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7429         module.
7430
7431 2010-03-28  Bruno Haible  <bruno@clisp.org>
7432
7433         gnulib-tool: Add support for special categories of tests.
7434         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7435         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7436         (func_usage): Document them.
7437         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7438         inc_unportable_tests, inc_all_tests): New variables.
7439         (func_acceptable): Consider these variables.
7440         (func_modules_transitive_closure): Make it work when the 'Status' field
7441         consists of multiple words.
7442         (func_import): Store and restore the values of inc_cxx_tests,
7443         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7444         inc_all_tests in gnulib-comp.m4.
7445         (func_create_testdir): Set inc_all_tests to true.
7446         * doc/gnulib.texi (Extra tests modules): New section.
7447         Suggested by Jim Meyering.
7448
7449 2010-03-28  Bruno Haible  <bruno@clisp.org>
7450
7451         ansi-c++-opt: Allow turning off the C++ build by default.
7452         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7453         gl_CXX_CHOICE_DEFAULT_NO is defined.
7454         Requested by Eric Blake.
7455
7456 2010-03-28  Bruno Haible  <bruno@clisp.org>
7457
7458         unistd: Avoid #define replacements in C++ mode.
7459         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7460         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7461         setsockopt, shutdown, select): In C++, attach a warning to the function
7462         if possible, rather than #defining the symbol to a dysfunctional alias.
7463         Reported by John W. Eaton <jwe@gnu.org>.
7464
7465 2010-03-28  Bruno Haible  <bruno@clisp.org>
7466
7467         Fix link errors on mingw.
7468         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7469         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7470         $(LIBSOCKET).
7471         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7472         $(LIBSOCKET).
7473
7474 2010-03-28  Bruno Haible  <bruno@clisp.org>
7475             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7476
7477         lib-ignore: Determine different options for different compilers.
7478         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7479         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7480         Add comments.
7481         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7482         * NEWS: Mention the change.
7483
7484 2010-03-27  Bruno Haible  <bruno@clisp.org>
7485
7486         Remove unused GNULIB_XYZ macro definitions.
7487         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7488         * modules/fseek (configure.ac): Likewise.
7489         * modules/ioctl (configure.ac): Likewise.
7490         * modules/open (configure.ac): Likewise.
7491         * modules/stdlib-safer (configure.ac): Likewise.
7492
7493 2010-03-27  Bruno Haible  <bruno@clisp.org>
7494
7495         Add a remark about certain modules.
7496         * modules/malloc (Comment): New section.
7497         * modules/realloc (Comment): Likewise.
7498         * modules/sigpipe (Comment): Likewise.
7499
7500 2010-03-27  Bruno Haible  <bruno@clisp.org>
7501
7502         Resolve conflict between the two kinds of module indicators.
7503         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7504         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7505         * modules/canonicalize (configure.ac): Invoke
7506         gl_MODULE_INDICATOR_FOR_TESTS.
7507         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7508         GNULIB_XYZ.
7509         * tests/test-dirent-c++.cc: Likewise.
7510         * tests/test-dirent-safer.c: Likewise.
7511         * tests/test-dup2.c: Likewise.
7512         * tests/test-fchdir.c: Likewise.
7513         * tests/test-fcntl-h-c++.cc: Likewise.
7514         * tests/test-getopt.c: Likewise.
7515         * tests/test-getopt.h: Likewise.
7516         * tests/test-langinfo-c++.cc: Likewise.
7517         * tests/test-locale-c++.cc: Likewise.
7518         * tests/test-math-c++.cc: Likewise.
7519         * tests/test-pty-c++.cc: Likewise.
7520         * tests/test-search-c++.cc: Likewise.
7521         * tests/test-signal-c++.cc: Likewise.
7522         * tests/test-spawn-c++.cc: Likewise.
7523         * tests/test-stdio-c++.cc: Likewise.
7524         * tests/test-stdlib-c++.cc: Likewise.
7525         * tests/test-string-c++.cc: Likewise.
7526         * tests/test-sys_ioctl-c++.cc: Likewise.
7527         * tests/test-sys_select-c++.cc: Likewise.
7528         * tests/test-sys_socket-c++.cc: Likewise.
7529         * tests/test-sys_stat-c++.cc: Likewise.
7530         * tests/test-sys_time-c++.cc: Likewise.
7531         * tests/test-time-c++.cc: Likewise.
7532         * tests/test-unistd-c++.cc: Likewise.
7533         * tests/test-wchar-c++.cc: Likewise.
7534         * tests/uninorm/test-u8-nfc.c: Likewise.
7535         * tests/uninorm/test-u8-nfd.c: Likewise.
7536         * tests/uninorm/test-u8-nfkc.c: Likewise.
7537         * tests/uninorm/test-u8-nfkd.c: Likewise.
7538         * tests/uninorm/test-u16-nfc.c: Likewise.
7539         * tests/uninorm/test-u16-nfd.c: Likewise.
7540         * tests/uninorm/test-u16-nfkc.c: Likewise.
7541         * tests/uninorm/test-u16-nfkd.c: Likewise.
7542         * tests/uninorm/test-u32-nfc.c: Likewise.
7543         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7544         * tests/uninorm/test-u32-nfd.c: Likewise.
7545         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7546         * tests/uninorm/test-u32-nfkc.c: Likewise.
7547         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7548         * tests/uninorm/test-u32-nfkd.c: Likewise.
7549         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7550         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7551
7552 2010-03-27  Bruno Haible  <bruno@clisp.org>
7553
7554         Distinguish two kinds of module indicators.
7555         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7556         gl_MODULE_INDICATOR.
7557         (gl_MODULE_INDICATOR): New macro.
7558         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7559         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7560         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7561         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7562         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7563         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7564         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7565         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7566         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7567         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7568         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7569         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7572         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7573         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7574         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7575         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7576         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7577         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7578         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7579         * modules/cloexec (configure.ac): Likewise.
7580         * modules/getopt-gnu (configure.ac): Likewise.
7581         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7582         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7583         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7584         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7585
7586 2010-03-27  Bruno Haible  <bruno@clisp.org>
7587
7588         New module description field 'Comment'.
7589         * gnulib-tool: New option --extract-comment.
7590         (func_usage): Document it.
7591         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7592         (func_get_comment): New function.
7593         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7594
7595 2010-03-27  Bruno Haible  <bruno@clisp.org>
7596
7597         Addendum to 2010-02-07 commit.
7598         * gnulib-tool (func_usage): Document --extract-applicability option.
7599
7600 2010-03-27  Bruno Haible  <bruno@clisp.org>
7601
7602         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7603         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7604         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7605         rather than link errors.
7606
7607 2010-03-27  Bruno Haible  <bruno@clisp.org>
7608
7609         Avoid side effects from tests-related modules on the compilation of lib.
7610         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7611         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7612         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7613         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7614         macro.
7615         (func_import): Define a witness macro. Assign it a value that depends
7616         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7617         tests-related modules.
7618         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7619         Reported by Jim Meyering.
7620
7621 2010-03-27  Bruno Haible  <bruno@clisp.org>
7622
7623         Factorize common .m4 code.
7624         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7625         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7626         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7627         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7628         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7629         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7630         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7631         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7632         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7633         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7634         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7635         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7636         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7637         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7638         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7639         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7640         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7641         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7643         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7644         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7645         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7646         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7648         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7649         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7650         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7651         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7652         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7653         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7654         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7655         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7656
7657 2010-03-27  Bruno Haible  <bruno@clisp.org>
7658
7659         Fix a compilation error on Cygwin with g++ >= 4.3.
7660         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7661         if it is undefined or if we alias it to chmod.
7662         (lstat): Don't warn about the use of this function if it is undefined
7663         or if we alias it to stat.
7664         Reported by Simon Josefsson.
7665
7666 2010-03-27  Bruno Haible  <bruno@clisp.org>
7667
7668         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7669         * modules/getlogin (configure.ac): Update.
7670
7671         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7672         * modules/getlogin_r (configure.ac): Update.
7673
7674         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7675         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7676         * modules/inet_ntop (configure.ac): Update.
7677
7678         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7679         * modules/inet_pton (configure.ac): Update.
7680
7681         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7682         * modules/mbslen (configure.ac): Update.
7683
7684         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7685         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7686         * modules/forkpty (configure.ac): Update.
7687         * modules/openpty (configure.ac): Update.
7688
7689 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7690
7691         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7692         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7693
7694 2010-03-25  Eric Blake  <eblake@redhat.com>
7695
7696         maint: use pragma consistently across replacement headers
7697         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7698         * lib/dirent.in.h (system_header): Likewise.
7699         * lib/errno.in.h (system_header): Likewise.
7700         * lib/float.in.h (system_header): Likewise.
7701         * lib/getopt.in.h (system_header): Likewise.
7702         * lib/iconv.in.h (system_header): Likewise.
7703         * lib/inttypes.in.h (system_header): Likewise.
7704         * lib/langinfo.in.h (system_header): Likewise.
7705         * lib/locale.in.h (system_header): Likewise.
7706         * lib/math.in.h (system_header): Likewise.
7707         * lib/netdb.in.h (system_header): Likewise.
7708         * lib/netinet_in.in.h (system_header): Likewise.
7709         * lib/pty.in.h (system_header): Likewise.
7710         * lib/sched.in.h (system_header): Likewise.
7711         * lib/se-selinux.in.h (system_header): Likewise.
7712         * lib/search.in.h (system_header): Likewise.
7713         * lib/spawn.in.h (system_header): Likewise.
7714         * lib/stdarg.in.h (system_header): Likewise.
7715         * lib/stdint.in.h (system_header): Likewise.
7716         * lib/string.in.h (system_header): Likewise.
7717         * lib/strings.in.h (system_header): Likewise.
7718         * lib/sys_file.in.h (system_header): Likewise.
7719         * lib/sys_ioctl.in.h (system_header): Likewise.
7720         * lib/sys_socket.in.h (system_header): Likewise.
7721         * lib/sys_times.in.h (system_header): Likewise.
7722         * lib/sys_utsname.in.h (system_header): Likewise.
7723         * lib/sys_wait.in.h (system_header): Likewise.
7724         * lib/sysexits.in.h (system_header): Likewise.
7725         * lib/unistd.in.h (system_header): Likewise.
7726         * lib/wctype.in.h (system_header): Likewise.
7727
7728         arpa/inet: fix mingw compilation warning
7729         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7730         Reported by Matthew Bolte.
7731
7732 2010-03-25  Bruno Haible  <bruno@clisp.org>
7733
7734         Avoid collision between gnulib wrapper and libintl wrapper.
7735         * lib/printf.c (printf): Don't define if a printf wrapper is already
7736         defined in intl/printf.c.
7737         Reported by Michel Boaventura <michel@michelboaventura.com>.
7738
7739 2010-03-25  Bruno Haible  <bruno@clisp.org>
7740
7741         Use ANSI C.
7742         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7743
7744 2010-03-25  Bruno Haible  <bruno@clisp.org>
7745
7746         Minor formatting changes.
7747         * lib/acosl.c: Insert space before function argument list.
7748         * lib/argz.c: Likewise.
7749         * lib/asinl.c: Likewise.
7750         * lib/expl.c: Likewise.
7751         * lib/gen-uni-tables.c: Likewise.
7752         * lib/gettext.h: Likewise.
7753         * lib/glthread/lock.h: Likewise.
7754         * lib/tanl.c: Likewise.
7755         * lib/uniname/uniname.c: Likewise.
7756         * tests/test-idpriv-drop.c: Likewise.
7757         * tests/test-idpriv-droptemp.c: Likewise.
7758         * tests/test-lock.c: Likewise.
7759         * tests/test-tls.c: Likewise.
7760         * lib/argp-help.c: Insert space before function-like macro argument
7761         list.
7762         * lib/memcmp.c: Likewise.
7763         * tests/test-base64.c: Likewise.
7764         * lib/localename.c: Insert space before sizeof's argument list.
7765         * lib/safe-alloc.h: Likewise.
7766         * lib/file-set.h: Insert space before macro argument list.
7767         * tests/test-argp.c: Likewise.
7768         * lib/argp-namefrob.h: Insert space before function parameter list.
7769         * lib/getaddrinfo.c: Likewise.
7770         * lib/netdb.in.h: Likewise.
7771         * lib/parse-duration.h: Likewise.
7772         * lib/parse-duration.c: Likewise.
7773         * lib/poll.c: Likewise.
7774         * lib/select.c: Likewise.
7775         * lib/trim.h: Likewise.
7776         * tests/test-usleep.c: Likewise.
7777         * lib/ldexpl.c: Insert space before function parameter list and before
7778         function argument list.
7779         * lib/logl.c: Likewise.
7780         * lib/sqrtl.c: Likewise.
7781         * lib/trim.c: Likewise.
7782         * lib/cosl.c: Use GNU style indentation. Insert space before function
7783         argument list.
7784         * lib/sinl.c: Likewise.
7785         * lib/tsearch.c: Insert space after 'for'.
7786         Reported by Jim Meyering.
7787
7788 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7789
7790         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7791         config header before grepping, as it's not present before
7792         autoreconf/configure are run.  Reported by Simon Josefsson.
7793
7794 2010-03-23  Bruno Haible  <bruno@clisp.org>
7795
7796         pt_chown: Make it work with automake < 1.11.
7797         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7798         Reported by Simon Josefsson.
7799
7800 2010-03-23  Bruno Haible  <bruno@clisp.org>
7801
7802         pt_chown: Don't depend on GPLed modules.
7803         * lib/pt_chown.c: Don't include idpriv.h.
7804         (main): Don't drop privileges.
7805         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7806         Reported by Simon Josefsson.
7807
7808 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7809
7810         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7811         suggestions from karl@freefriends.org (Karl Berry).
7812
7813 2010-03-22  Eric Blake  <eblake@redhat.com>
7814
7815         gethostname: further tweaks
7816         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7817         are overriding gethostname.
7818         Suggested by Bruno Haible.
7819
7820 2010-03-21  Bruno Haible  <bruno@clisp.org>
7821
7822         Fix comments.
7823         * lib/forkpty.c (rpl_forkpty): Fix comment.
7824         * lib/openpty.c (rpl_openpty): Likewise.
7825         Reported by Eric Blake.
7826
7827 2010-03-22  Eric Blake  <eblake@redhat.com>
7828
7829         gethostname: fix build on mingw
7830         * lib/unistd.in.h (includes): Work around fact that mingw
7831         <winsock2.h> re-includes <unistd.h>, by avoiding any
7832         redeclarations if we are being included by <winsock2.h>.
7833         Reported by Matthias Bolte.
7834
7835 2010-03-21  Bruno Haible  <bruno@clisp.org>
7836
7837         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7838         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7839         modifications.
7840         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7841         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7842         provide the replacement.
7843         * modules/forkpty (Depends-on): Add openpty, login_tty.
7844         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7845         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7846         * doc/glibc-functions/forkpty.texi: More supported platforms.
7847         * config/srclist.txt: Add forkpty.c (commented).
7848
7849 2010-03-21  Bruno Haible  <bruno@clisp.org>
7850
7851         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7852         (Makefile.am): Verify that PTY_LIB is defined.
7853
7854         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7855
7856 2010-03-21  Bruno Haible  <bruno@clisp.org>
7857
7858         Tests for module 'login_tty'.
7859         * modules/login_tty-tests: New file.
7860         * tests/test-login_tty.c: New file.
7861
7862         New module 'login_tty'.
7863         * lib/login_tty.c: New file.
7864         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7865         * modules/login_tty: New file.
7866         * doc/glibc-functions/login_tty.texi: Mention the new module.
7867
7868 2010-03-21  Bruno Haible  <bruno@clisp.org>
7869
7870         login_tty: Documentation.
7871         * doc/glibc-functions/login_tty.texi: New file.
7872         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7873
7874 2010-03-21  Bruno Haible  <bruno@clisp.org>
7875
7876         pty: Consistent macro naming.
7877         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7878         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7879         * modules/pty (configure.ac): Update.
7880
7881 2010-03-21  Bruno Haible  <bruno@clisp.org>
7882
7883         Tests for openpty: Make stricter.
7884         * tests/test-openpty.c (main): Add test of canonical processing and
7885         erase.
7886         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7887
7888         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7889         * lib/openpty.c (openpty): New replacement function.
7890         * lib/pty.in.h: Include <termios.h>.
7891         (openpty): Update declaration. Add comments.
7892         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7893         is not declared, arrange to provide the replacement. Check for _getpty
7894         and posix_openpt.
7895         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7896         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7897         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7898         * modules/pty-tests (test_pty_c___LDADD): New variable.
7899         * doc/glibc-functions/openpty.texi: More supported platforms.
7900
7901 2010-03-21  Bruno Haible  <bruno@clisp.org>
7902
7903         setenv: Tweaks.
7904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7905         the test program.
7906         * doc/posix-functions/setenv.texi: Update platforms list.
7907
7908 2010-03-21  Bruno Haible  <bruno@clisp.org>
7909
7910         New module 'unlockpt'.
7911         * lib/unlockpt.c: New file, from glibc with modifications.
7912         * m4/unlockpt.m4: New file.
7913         * modules/unlockpt: New file.
7914         * lib/stdlib.in.h (unlockpt): New declaration.
7915         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7916         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7917         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7918         HAVE_UNLOCKPT.
7919         * doc/posix-functions/unlockpt.texi: Mention the new module.
7920         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7921         * config/srclist.txt: Add unlockpt.c (commented).
7922
7923 2010-03-21  Jim Meyering  <meyering@redhat.com>
7924
7925         maint.mk: prohibit inclusion of "intprops.h" without use
7926         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7927
7928 2010-03-21  Bruno Haible  <bruno@clisp.org>
7929
7930         New module 'grantpt'.
7931         * lib/grantpt.c: New file, from glibc with modifications.
7932         * m4/grantpt.m4: New file.
7933         * modules/grantpt: New file.
7934         * lib/stdlib.in.h (grantpt): New declaration.
7935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7937         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7938         HAVE_GRANTPT.
7939         * doc/posix-functions/grantpt.texi: Mention the new module.
7940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7941         * config/srclist.txt: Add grantpt.c (commented).
7942
7943 2010-03-21  Bruno Haible  <bruno@clisp.org>
7944
7945         New module 'pt_chown'.
7946         * lib/pt_chown.c: New file, from glibc with modifications.
7947         * lib/pty-private.h: New file, from glibc with modifications.
7948         * modules/pt_chown: New file.
7949         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7950
7951 2010-03-21  Bruno Haible  <bruno@clisp.org>
7952
7953         Tests for module 'ptsname'.
7954         * modules/ptsname-tests: New file.
7955         * tests/test-ptsname.c: New file.
7956
7957         New module 'ptsname'.
7958         * lib/ptsname.c: New file, from glibc with modifications.
7959         * m4/ptsname.m4: New file.
7960         * modules/ptsname: New file.
7961         * lib/stdlib.in.h (ptsname): New declaration.
7962         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7963         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7964         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7965         HAVE_PTSNAME.
7966         * doc/posix-functions/ptsname.texi: Mention the new module.
7967         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7968         * config/srclist.txt: Add ptsname.c (commented).
7969
7970 2010-03-21  Bruno Haible  <bruno@clisp.org>
7971
7972         Tests for module 'ttyname_r'.
7973         * modules/ttyname_r-tests: New file.
7974         * tests/test-ttyname_r.c: New file.
7975
7976         New module 'ttyname_r'.
7977         * lib/ttyname_r.c: New file.
7978         * m4/ttyname_r.m4: New file.
7979         * modules/ttyname_r: New file.
7980         * lib/unistd.in.h (ttyname_r): New declaration.
7981         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7982         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7983         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7984         HAVE_TTYNAME_R.
7985         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7986         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7987
7988 2010-03-20  Bruno Haible  <bruno@clisp.org>
7989
7990         signal: Undefine macro definitions in C++ mode.
7991         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7992         sigfillset): Undefine macro definitions from the system header in C++
7993         mode.
7994         Reported by John W. Eaton <jwe@gnu.org>.
7995
7996 2010-03-20  Bruno Haible  <bruno@clisp.org>
7997
7998         Ensure no #include statements inside extern "C" { ... }.
7999         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8000         contain #include statements.
8001         * lib/time.in.h: Likewise.
8002
8003 2010-03-20  Bruno Haible  <bruno@clisp.org>
8004
8005         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8006         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8007         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8008         Reported by John W. Eaton <jwe@gnu.org>.
8009
8010 2010-03-20  Bruno Haible  <bruno@clisp.org>
8011
8012         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8013         Reported by Jim Meyering.
8014
8015 2010-03-20  Bruno Haible  <bruno@clisp.org>
8016
8017         pipe: Set errno upon failure.
8018         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8019         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8020         errno value in error message.
8021
8022 2010-03-20  Bruno Haible  <bruno@clisp.org>
8023             Jim Meyering  <meyering@redhat.com>
8024
8025         lchown: Avoid "unused variable" warning.
8026         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8027
8028 2010-03-20  Bruno Haible  <bruno@clisp.org>
8029
8030         Work around unlink() bug on MacOS X 10.5.6.
8031         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8032         attempting to unlink a parent directory.
8033         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8034         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8035         activate for the replacement function.
8036         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8037
8038 2010-03-20  Bruno Haible  <bruno@clisp.org>
8039
8040         Fix link errors on Solaris 8.
8041         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8042         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8043
8044 2010-03-19  Jim Meyering  <meyering@redhat.com>
8045
8046         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8047         The _LIBC implementation of build_range_exp correctly honors the
8048         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8049         However, the non-_LIBC implementation would ignore that syntax-bit
8050         flag and return REG_ERANGE unconditionally.
8051         This change makes it honor that flag.
8052         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8053         Make two pointer parameters "const".
8054         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8055         (parse_bracket_exp): Update caller.
8056
8057         regex.m4: correct the reversed range endpoint ([b-a]) test
8058         * m4/regex.m4: When requiring that [b-a] evoke failure,
8059         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8060         test pass once again for x86-based systems.
8061
8062 2010-03-19  Bruno Haible  <bruno@clisp.org>
8063
8064         scandir: Fix link error on Solaris 8.
8065         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8066         macros.
8067
8068 2010-03-19  Bruno Haible  <bruno@clisp.org>
8069
8070         getusershell: Fix documentation.
8071         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8072         module.
8073         * doc/glibc-functions/setusershell.texi: Likewise.
8074
8075         getusershell: Provide declaration, missing on Solaris 9.
8076         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8077         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8078         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8079         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8081         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8082         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8083         HAVE_GETUSERSHELL.
8084         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8085
8086 2010-03-19  Bruno Haible  <bruno@clisp.org>
8087
8088         wctype: Provide iswblank function.
8089         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8090         exists and is fine.
8091         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8092         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8093         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8094         * doc/posix-functions/iswblank.texi: Update.
8095
8096 2010-03-19  Bruno Haible  <bruno@clisp.org>
8097
8098         Tests of module 'pty' in C++ mode.
8099         * modules/pty-tests: New file.
8100         * tests/test-pty-c++.cc: New file.
8101         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8102
8103 2010-03-19  Eric Blake  <eblake@redhat.com>
8104
8105         logb: fix documentation
8106         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8107         1.5 declaration bug.
8108
8109         forkpty, openpty: prefer glibc's const-safe prototype
8110         * lib/forkpty.c (rpl_forkpty): New file.
8111         * lib/openpty.c (rpl_openpty): Likewise.
8112         * modules/forkpty (Files): Distribute it.
8113         * modules/openpty (Files): Likewise.
8114         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8115         check...
8116         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8117         replacement for for non-const BSD signature.
8118         * modules/pty (Makefile.am): Substitute witnesses.
8119         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8120         * tests/test-forkpty.c: Update signature check.
8121         * tests/test-openpty.c: Likewise.
8122         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8123         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8124
8125         forkpty, openpty: split functions into new modules
8126         * modules/pty (Makefile.am): Substitute new witnesses.
8127         (Libraries): Move library detection...
8128         * modules/forkpty: ...into new module.
8129         * modules/openpty: Another new module.
8130         * modules/pty-tests: Rename and split...
8131         * modules/forkpty-tests: ...to this...
8132         * modules/openpty-tests: ...and this.
8133         * tests/test-pty.c: Rename and split...
8134         * tests/test-forkpty.c: ...to this...
8135         * tests/test-openpty.c: ...and this.
8136         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8137         (gl_PTY): Split library searching...
8138         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8139         (gl_FORKPTY, gl_OPENPTY): New macros.
8140         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8141         * NEWS: Mention the split.
8142         * MODULES.html.sh (Misc): Document the modules.
8143         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8144         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8145
8146         pty: improve replacement header
8147         * lib/pty.in.h: New file.
8148         * modules/pty (Files): Ship it.
8149         (Makefile.am): Always build replacement.
8150         * m4/pty.m4: Rename...
8151         * m4/pty_h.m4: ...to this.
8152         (gl_PTY): Modernize setting of witness macros; update check of
8153         forkpty to take proper advantage of cache.
8154         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8155
8156         getopt: avoid compiler warning
8157         * lib/getopt.c (attribute_hidden): Remove unused macro.
8158
8159 2010-03-18  Bruno Haible  <bruno@clisp.org>
8160
8161         Fix link errors on Solaris 8.
8162         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8163         * modules/search-tests (test_search_c___LDADD): Likewise.
8164         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8165         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8166         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8167         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8168         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8169         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8170         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8171
8172 2010-03-18  Bruno Haible  <bruno@clisp.org>
8173
8174         Fix bug introduced on 2010-03-14.
8175         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8176         (gl_SPAWN_H): Require it.
8177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8178         Reported by Simon Josefsson.
8179
8180 2010-03-18  Bruno Haible  <bruno@clisp.org>
8181
8182         Fix typo introduced on 2009-12-31.
8183         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8184         posix_spawn_file_actions_adddup2.
8185
8186 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8187         and Eric Blake  <eblake@redhat.com>
8188
8189         test-vc-list-files-git: make more robust
8190         * tests/test-vc-list-files-git.sh: Unset problematic environment
8191         variables.  Chain commands together.
8192
8193 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8194
8195         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8196         `AC_CHECK_DECL' invocation.
8197
8198 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8199
8200         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8201         appears before executable statements. Suggested by Petr Sumbera
8202         <Petr.Sumbera@Sun.COM>.
8203
8204 2010-03-14  Bruno Haible  <bruno@clisp.org>
8205
8206         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8207         portability problems. Instead use a simpler test.
8208         (main): Check that invalid arguments are rejected only on Linux.
8209
8210 2010-03-14  Bruno Haible  <bruno@clisp.org>
8211
8212         Fix bug introduced on 2009-12-31.
8213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8214         gl_PREREQ_SYS_H_WINSOCK2 always.
8215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8216         SYS_SOCKET_H variable.
8217         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8218         Update comments.
8219         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8221         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8222         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8223         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8224
8225 2010-03-14  Bruno Haible  <bruno@clisp.org>
8226
8227         Fix values returned by sinl, cosl.
8228         * lib/trigl.h: Add specification comments.
8229         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8230         that combines the values from the precomputed table with the values of
8231         the Chebyshev polynomials.
8232
8233 2010-03-14  Bruno Haible  <bruno@clisp.org>
8234
8235         Fix compilation error when modules 'posix_spawn[p]' are not used.
8236         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8238
8239 2010-03-14  Bruno Haible  <bruno@clisp.org>
8240
8241         Fix compilation error on mingw when module 'time_r' is not used.
8242         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8243         is 1.
8244         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8245         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8246         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8247         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8248
8249 2010-03-14  Bruno Haible  <bruno@clisp.org>
8250
8251         Fix compilation error with Sun C.
8252         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8253         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8254         instead of GCC specific ULONG_LONG_MAX.
8255         * lib/xstrtoll.c: Likewise.
8256         * lib/xstrtoull.c: Likewise.
8257
8258 2010-03-13  Bruno Haible  <bruno@clisp.org>
8259
8260         Allow the user to disable C++ code and tests.
8261         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8262         (gl_PROG_ANSI_CXX): Require it.
8263
8264 2010-03-13  Bruno Haible  <bruno@clisp.org>
8265
8266         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8267         cases.
8268
8269 2010-03-13  Bruno Haible  <bruno@clisp.org>
8270
8271         Test that gnulib does not break the standard C++ headers.
8272         * tests/test-locale-c++2.cc: New file.
8273         * modules/locale-tests (Files): Add it.
8274         (Makefile.am): Compile it for test-locale-c++.
8275         * tests/test-math-c++2.cc: New file.
8276         * modules/math-tests (Files): Add it.
8277         (Makefile.am): Compile it for test-math-c++.
8278         * tests/test-signal-c++2.cc: New file.
8279         * modules/signal-tests (Files): Add it.
8280         (Makefile.am): Compile it for test-signal-c++.
8281         * tests/test-stdio-c++2.cc: New file.
8282         * modules/stdio-tests (Files): Add it.
8283         (Makefile.am): Compile it for test-stdio-c++.
8284         * tests/test-stdlib-c++2.cc: New file.
8285         * modules/stdlib-tests (Files): Add it.
8286         (Makefile.am): Compile it for test-stdlib-c++.
8287         * tests/test-string-c++2.cc: New file.
8288         * modules/string-tests (Files): Add it.
8289         (Makefile.am): Compile it for test-string-c++.
8290         * tests/test-time-c++2.cc: New file.
8291         * modules/time-tests (Files): Add it.
8292         (Makefile.am): Compile it for test-time-c++.
8293         Reported by John W. Eaton <jwe@gnu.org>.
8294
8295 2010-03-13  Bruno Haible  <bruno@clisp.org>
8296
8297         * gnulib-tool (func_usage): Clarify which options are available for
8298         --create-testdir and --create-megatestdir.
8299
8300 2010-03-13  Bruno Haible  <bruno@clisp.org>
8301
8302         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8303         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8304         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8305         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8306         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8307         when appropriate.
8308         Reported by Jim Meyering.
8309
8310 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8311
8312         * gnulib-tool (func_import): Explain origin of code.
8313
8314 2010-03-12  Bruno Haible  <bruno@clisp.org>
8315
8316         Fix problem with automake's definition of CXXLINK.
8317         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8318         Reported by Simon Josefsson and Ludovic Courtès.
8319
8320 2010-03-12  Bruno Haible  <bruno@clisp.org>
8321
8322         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8323         stable releases.
8324
8325 2010-03-11  Bruno Haible  <bruno@clisp.org>
8326
8327         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8328         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8329         whether the system provides one variant or multiple variants of the
8330         function.
8331         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8332         C++ compilers.
8333         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8334         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8335         Reported by Jim Meyering.
8336
8337 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8338
8339         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8340
8341 2010-03-08  Bruno Haible  <bruno@clisp.org>
8342
8343         gnulib-tool: Add support for --libtool in --create-testdir.
8344         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8345         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8346
8347 2010-03-08  Eric Blake  <eblake@redhat.com>
8348
8349         gnulib-tool.texi: mention possibility of git submodule
8350         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8351         submodules.
8352         * doc/.gitignore: Ignore another generated file.
8353
8354 2010-03-08  Karl Berry  <karl@gnu.org>
8355
8356         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8357         of committing gnulib files while skipping others.
8358
8359 2010-03-07  Bruno Haible  <bruno@clisp.org>
8360
8361         Tests of module 'wctype' in C++ mode.
8362         * tests/test-wctype-c++.cc: New file.
8363         * modules/wctype-tests (Files): Add it and tests/signature.h.
8364         (Depends-on): Add ansi-c++-opt.
8365         (Makefile.am): Arrange to compile and run test-wctype-c++.
8366
8367         Tests of module 'wchar' in C++ mode.
8368         * tests/test-wchar-c++.cc: New file.
8369         * modules/wchar-tests (Files): Add it and tests/signature.h.
8370         (Depends-on): Add ansi-c++-opt.
8371         (Makefile.am): Arrange to compile and run test-wchar-c++.
8372         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8373         gl_MODULE_INDICATOR.
8374
8375         Tests of module 'unistd' in C++ mode.
8376         * tests/test-unistd-c++.cc: New file.
8377         * modules/unistd-tests (Files): Add it and tests/signature.h.
8378         (Depends-on): Add ansi-c++-opt.
8379         (Makefile.am): Arrange to compile and run test-unistd-c++.
8380         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8381         gl_MODULE_INDICATOR.
8382
8383         Tests of module 'time' in C++ mode.
8384         * tests/test-time-c++.cc: New file.
8385         * modules/time-tests (Files): Add it and tests/signature.h.
8386         (Depends-on): Add ansi-c++-opt.
8387         (Makefile.am): Arrange to compile and run test-time-c++.
8388         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8389
8390         Tests of module 'sys_time' in C++ mode.
8391         * tests/test-sys_time-c++.cc: New file.
8392         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8393         (Depends-on): Add ansi-c++-opt.
8394         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8395         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8396         gl_MODULE_INDICATOR.
8397
8398         Tests of module 'sys_stat' in C++ mode.
8399         * tests/test-sys_stat-c++.cc: New file.
8400         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8401         (Depends-on): Add ansi-c++-opt.
8402         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8403         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8404         gl_MODULE_INDICATOR.
8405
8406         Tests of module 'sys_socket' in C++ mode.
8407         * tests/test-sys_socket-c++.cc: New file.
8408         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8409         (Depends-on): Add ansi-c++-opt.
8410         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8411         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8412         gl_MODULE_INDICATOR.
8413
8414         Tests of module 'sys_select' in C++ mode.
8415         * tests/test-sys_select-c++.cc: New file.
8416         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8417         (Depends-on): Add ansi-c++-opt.
8418         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8419         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8420         gl_MODULE_INDICATOR.
8421
8422         Tests of module 'sys_ioctl' in C++ mode.
8423         * tests/test-sys_ioctl-c++.cc: New file.
8424         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8425         (Depends-on): Add ansi-c++-opt.
8426         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8427         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8428         gl_MODULE_INDICATOR.
8429
8430         Tests of module 'string' in C++ mode.
8431         * tests/test-string-c++.cc: New file.
8432         * modules/string-tests (Files): Add it and tests/signature.h.
8433         (Depends-on): Add ansi-c++-opt.
8434         (Makefile.am): Arrange to compile and run test-string-c++.
8435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8436         gl_MODULE_INDICATOR.
8437
8438         Tests of module 'stdlib' in C++ mode.
8439         * tests/test-stdlib-c++.cc: New file.
8440         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8441         (Depends-on): Add ansi-c++-opt.
8442         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8443         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8444         gl_MODULE_INDICATOR.
8445
8446         Tests of module 'stdio' in C++ mode.
8447         * tests/test-stdio-c++.cc: New file.
8448         * modules/stdio-tests (Files): Add it and tests/signature.h.
8449         (Depends-on): Add ansi-c++-opt.
8450         (Makefile.am): Arrange to compile and run test-stdio-c++.
8451         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8452         gl_MODULE_INDICATOR.
8453
8454         Tests of module 'spawn' in C++ mode.
8455         * tests/test-spawn-c++.cc: New file.
8456         * modules/spawn-tests (Files): Add it and tests/signature.h.
8457         (Depends-on): Add ansi-c++-opt.
8458         (Makefile.am): Arrange to compile and run test-spawn-c++.
8459         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8460         gl_MODULE_INDICATOR.
8461
8462         Tests of module 'signal' in C++ mode.
8463         * tests/test-signal-c++.cc: New file.
8464         * modules/signal-tests (Files): Add it and tests/signature.h.
8465         (Depends-on): Add ansi-c++-opt.
8466         (Makefile.am): Arrange to compile and run test-signal-c++.
8467         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8468         gl_MODULE_INDICATOR.
8469
8470         Tests of module 'search' in C++ mode.
8471         * tests/test-search-c++.cc: New file.
8472         * modules/search-tests (Files): Add it and tests/signature.h.
8473         (Depends-on): Add ansi-c++-opt.
8474         (Makefile.am): Arrange to compile and run test-search-c++.
8475         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8476         gl_MODULE_INDICATOR.
8477
8478         Tests of module 'math' in C++ mode.
8479         * tests/test-math-c++.cc: New file.
8480         * modules/math-tests (Files): Add it and tests/signature.h.
8481         (Depends-on): Add ansi-c++-opt.
8482         (Makefile.am): Arrange to compile and run test-math-c++.
8483         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8484
8485         Tests of module 'locale' in C++ mode.
8486         * tests/test-locale-c++.cc: New file.
8487         * modules/locale-tests (Files): Add it and tests/signature.h.
8488         (Depends-on): Add ansi-c++-opt.
8489         (Makefile.am): Arrange to compile and run test-locale-c++.
8490         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8491         gl_MODULE_INDICATOR.
8492
8493         Tests of module 'langinfo' in C++ mode.
8494         * tests/test-langinfo-c++.cc: New file.
8495         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8496         (Depends-on): Add ansi-c++-opt.
8497         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8498         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8499         gl_MODULE_INDICATOR.
8500
8501         Tests of module 'iconv-h' in C++ mode.
8502         * tests/test-iconv-h-c++.cc: New file.
8503         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8504         (Depends-on): Add ansi-c++-opt.
8505         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8506
8507         Tests of module 'glob' in C++ mode.
8508         * tests/test-glob-c++.cc: New file.
8509         * modules/glob-tests (Files): Add it.
8510         (Depends-on): Add ansi-c++-opt.
8511         (Makefile.am): Arrange to compile and run test-glob-c++.
8512
8513         Tests of module 'fcntl-h' in C++ mode.
8514         * tests/test-fcntl-h-c++.cc: New file.
8515         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8516         (Depends-on): Add ansi-c++-opt.
8517         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8518         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8519         gl_MODULE_INDICATOR.
8520
8521         Tests of module 'dirent' in C++ mode.
8522         * tests/test-dirent-c++.cc: New file.
8523         * modules/dirent-tests (Files): Add it and tests/signature.h.
8524         (Depends-on): Add ansi-c++-opt.
8525         (Makefile.am): Arrange to compile and run test-dirent-c++.
8526         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8527         gl_MODULE_INDICATOR.
8528
8529         New module 'ansi-c++-opt'.
8530         * modules/ansi-c++-opt: New file.
8531         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8532
8533         Document C++ namespace mode.
8534         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8535
8536         wctype: Avoid #define replacements in C++ mode.
8537         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8538         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8539         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8540         In C++, define a namespaced alias symbol.
8541         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8542         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8543         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8544         rule.
8545
8546         wchar: Avoid #define replacements in C++ mode.
8547         * lib/wchar.in.h: Include c++defs.h.
8548         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8549         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8550         symbol.
8551         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8552         * modules/wchar (Depends-on): Add c++defs.
8553         (Makefile.am): Update wchar.h rule.
8554
8555         unistd: Avoid #define replacements in C++ mode.
8556         * lib/unistd.in.h: Include c++defs.h.
8557         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8558         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8559         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8560         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8561         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8562         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8563         symbol.
8564         (environ): Update.
8565         * modules/unistd (Depends-on): Add c++defs.
8566         (Makefile.am): Update unistd.h rule.
8567
8568         time: Avoid #define replacements in C++ mode.
8569         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8570         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8571         define a namespaced alias symbol.
8572         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8573         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8574         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8575         * modules/time (Depends-on): Add c++defs, warn-on-use.
8576         (Makefile.am): Update time.h rule.
8577         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8578         * modules/nanosleep (configure.ac): Likewise.
8579         * modules/strptime (configure.ac): Likewise.
8580         * modules/timegm (configure.ac): Likewise.
8581
8582         sys_time: Avoid #define replacements in C++ mode.
8583         * lib/sys_time.in.h: Include c++defs.h.
8584         (gettimeofday): In C++, define a namespaced alias symbol.
8585         * modules/sys_time (Depends-on): Add c++defs.
8586         (Makefile.am): Update sys/time.h rule.
8587
8588         sys_stat: Avoid #define replacements in C++ mode.
8589         * lib/sys_stat.in.h: Include c++defs.h.
8590         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8591         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8592         namespaced alias symbol.
8593         In C++, define a namespaced alias symbol.
8594         * modules/sys_stat (Depends-on): Add c++defs.
8595         (Makefile.am): Update sys/stat.h rule.
8596
8597         sys_socket: Avoid #define replacements in C++ mode.
8598         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8599         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8600         definitions also when the system has a <sys/socket.h>.
8601         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8602         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8603         In C++, define a namespaced alias symbol.
8604         * modules/sys_socket (Depends-on): Add c++defs.
8605         (Makefile.am): Update sys/socket.h rule.
8606
8607         sys_select: Avoid #define replacements in C++ mode.
8608         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8609         definitions also when the system has a <sys/select.h>.
8610         (select): In C++, define a namespaced alias symbol.
8611         * modules/sys_select (Depends-on): Add c++defs.
8612         (Makefile.am): Update sys/select.h rule.
8613
8614         sys_ioctl: Avoid #define replacements in C++ mode.
8615         * lib/sys_ioctl.in.h: Include c++defs.h.
8616         (ioctl): In C++, define a namespaced alias symbol.
8617         * modules/sys_ioctl (Depends-on): Add c++defs.
8618         (Makefile.am): Update sys/ioctl.h rule.
8619
8620         string: Avoid #define replacements in C++ mode.
8621         * lib/string.in.h: Include c++defs.h.
8622         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8623         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8624         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8625         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8626         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8627         * modules/string (Depends-on): Add c++defs.
8628         (Makefile.am): Update string.h rule.
8629
8630         stdlib: Avoid #define replacements in C++ mode.
8631         * lib/stdlib.in.h: Include c++defs.h.
8632         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8633         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8634         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8635         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8636         symbol.
8637         * modules/stdlib (Depends-on): Add c++defs.
8638         (Makefile.am): Update stdlib.h rule.
8639
8640         stdio: Avoid #define replacements in C++ mode.
8641         * lib/stdio.in.h: Include c++defs.h.
8642         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8643         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8644         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8645         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8646         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8647         namespaced alias symbol.
8648         * modules/stdio (Depends-on): Add c++defs.
8649         (Makefile.am): Update stdio.h rule.
8650
8651         spawn: Avoid #define replacements in C++ mode.
8652         * lib/spawn.in.h: Include c++defs.h.
8653         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8654         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8655         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8656         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8657         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8658         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8659         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8660         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8661         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8662         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8663         In C++, define a namespaced alias symbol.
8664         * modules/spawn (Depends-on): Add c++defs.
8665         (Makefile.am): Update spawn.h rule.
8666
8667         signal: Avoid #define replacements in C++ mode.
8668         * lib/signal.in.h: Include c++defs.h.
8669         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8670         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8671         namespaced alias symbol.
8672         * modules/signal (Depends-on): Add c++defs.
8673         (Makefile.am): Update signal.h rule.
8674
8675         search: Avoid #define replacements in C++ mode.
8676         * lib/search.in.h: Include c++defs.h.
8677         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8678         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8679         symbol.
8680         * modules/search (Depends-on): Add c++defs.
8681         (Makefile.am): Update search.h rule.
8682
8683         math: Avoid #define replacements in C++ mode.
8684         * lib/math.in.h: Include c++defs.h.
8685         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8686         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8687         trunc, truncl): In C++, define a namespaced alias symbol.
8688         * modules/math (Depends-on): Add c++defs.
8689         (Makefile.am): Update math.h rule.
8690
8691         locale: Avoid #define replacements in C++ mode.
8692         * lib/locale.in.h: Include c++defs.h.
8693         (duplocale): In C++, define a namespaced alias symbol.
8694         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8695         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8696         * modules/locale (Depends-on): Add c++defs.
8697         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8698
8699         langinfo: Avoid #define replacements in C++ mode.
8700         * lib/langinfo.in.h: Include c++defs.h.
8701         (nl_langinfo): In C++, define a namespaced alias symbol.
8702         * modules/langinfo (Depends-on): Add c++defs.
8703         (Makefile.am): Update langinfo.h rule.
8704
8705         iconv-h: Avoid #define replacements in C++ mode.
8706         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8707         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8708         symbol.
8709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8710         whenever iconv is present.
8711         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8712         (Makefile.am): Update iconv.h rule.
8713
8714         glob: Avoid #define replacements in C++ mode.
8715         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8716         (_gl_glob_errfunc_fn): New type.
8717         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8718         symbol.
8719         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8720         (Makefile.am): Update glob.h rule.
8721
8722         fcntl-h: Avoid #define replacements in C++ mode.
8723         * lib/fcntl.in.h: Include c++defs.h.
8724         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8725         * modules/fcntl-h (Depends-on): Add c++defs.
8726         (Makefile.am): Update fcntl.h rule.
8727
8728         dirent: Avoid #define replacements in C++ mode.
8729         * lib/dirent.in.h: Include c++defs.h.
8730         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8731         namespaced alias symbol.
8732         (dirfd): Update declaration.
8733         * modules/dirent (Depends-on): Add c++defs.
8734         (Makefile.am): Update dirent.h rule.
8735
8736         ctype: Make it usable in C++ code.
8737         * lib/ctype.in.h: Include c++defs.h.
8738         (isblank): Declare as extern "C".
8739         * modules/ctype (Depends-on): Add c++defs.
8740         (Makefile.am): Update ctype.h rule.
8741
8742         New module 'c++defs'.
8743         * modules/c++defs: New file.
8744         * build-aux/c++defs.h: New file.
8745         Reported by John W. Eaton <jwe@gnu.org>.
8746
8747 2010-03-07  Bruno Haible  <bruno@clisp.org>
8748
8749         logb: Provide missing declaration for Cygwin.
8750         * lib/math.in.h (logb): New declaration.
8751         * m4/logb.m4: New file.
8752         * modules/logb (Files): Add m4/logb.m4.
8753         (Depends-on): Add math.
8754         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8755         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8757         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8758         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8759
8760 2010-03-07  Bruno Haible  <bruno@clisp.org>
8761
8762         Fix test-cond link error.
8763         * tests/test-cond.c: Include <stdio.h>.
8764
8765 2010-03-07  Bruno Haible  <bruno@clisp.org>
8766
8767         Fix test-dirent-safer link error.
8768         * modules/dirent-safer-tests (Makefile.am): Define
8769         test_dirent_safer_LDADD.
8770
8771 2010-03-07  Bruno Haible  <bruno@clisp.org>
8772
8773         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8774         among default module list.
8775
8776 2010-03-07  Bruno Haible  <bruno@clisp.org>
8777
8778         Fix link error on platforms with GNU libiconv.
8779         * modules/unistr/u8-strcoll-tests (Makefile): Define
8780         test_u8_strcoll_LDADD.
8781         * modules/unistr/u16-strcoll-tests (Makefile): Define
8782         test_u16_strcoll_LDADD.
8783         * modules/unistr/u32-strcoll-tests (Makefile): Define
8784         test_u32_strcoll_LDADD.
8785
8786 2010-03-07  Bruno Haible  <bruno@clisp.org>
8787
8788         Use POSIX declarations for socket functions.
8789         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8790         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8791         rpl_sendto): Change declaration to match POSIX.
8792         * lib/connect.c (rpl_connect): Likewise.
8793         * lib/accept.c (rpl_accept): Likewise.
8794         * lib/bind.c (rpl_bind): Likewise.
8795         * lib/getpeername.c (rpl_getpeername): Likewise.
8796         * lib/getsockname.c (rpl_getsockname): Likewise.
8797         * lib/recv.c (rpl_recv): Likewise.
8798         * lib/send.c (rpl_send): Likewise.
8799         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8800         * lib/sendto.c (rpl_sendto): Likewise.
8801
8802 2010-03-06  Bruno Haible  <bruno@clisp.org>
8803
8804         Clarify access, euidaccess, faccessat.
8805         * doc/posix-functions/faccessat.texi: Mention security problem under
8806         "Other problems", not "Portability problems".
8807         * doc/posix-functions/access.texi: Likewise. Mention a related security
8808         problem.
8809         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8810         * lib/euidaccess.c: Add comments about platforms.
8811         * lib/unistd.in.h (access, euidaccess): Add warnings.
8812
8813 2010-03-07  Bruno Haible  <bruno@clisp.org>
8814
8815         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8816         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8817         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8818         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8819         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8820         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8821         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8822         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8823         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8824         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8825         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8826         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8827         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8828         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8829         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8830         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8831         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8832         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8833         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8834         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8835         Likewise.
8836         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8837         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8838         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8839         Likewise.
8840         * tests/test-spawn.c (main): Make it work when
8841         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8842
8843 2010-03-07  Bruno Haible  <bruno@clisp.org>
8844
8845         Fix incorrect Makefile.am generation in German locale.
8846         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8847         Execute sed command with character range in C locale.
8848
8849 2010-03-06  Bruno Haible  <bruno@clisp.org>
8850
8851         Tests for module 'iconv-h'.
8852         * modules/iconv-h-tests: New file.
8853         * tests/test-iconv-h.c: New file.
8854
8855         New module 'iconv-h'.
8856         * modules/iconv-h: New file.
8857         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8858         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8859         (configure.ac): Remove gl_ICONV_H.
8860         (Makefile.am): Remove rule for iconv.h.
8861
8862 2010-03-06  Bruno Haible  <bruno@clisp.org>
8863
8864         More consistent naming of *.m4 files.
8865         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8866         * modules/wctype (Files): Update.
8867
8868         More consistent naming of *.m4 files.
8869         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8870         * modules/wchar (Files): Update.
8871
8872 2010-03-06  Jim Meyering  <meyering@redhat.com>
8873
8874         euidaccess: relax license to LGPLv2+
8875         * modules/euidaccess (License): Relax to LGPLv2+.
8876
8877 2010-03-06  Bruno Haible  <bruno@clisp.org>
8878
8879         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8880         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8881         (Makefile.am): Augment lib_SOURCES instead.
8882
8883 2010-03-04  Jim Meyering  <meyering@redhat.com>
8884
8885         utime: remove obsolete module
8886         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8887         unnecessary for years, and has been marked as obsolete for 10 months.
8888         * modules/utime: Remove file.
8889         * lib/utime.c: Remove file.
8890         * m4/utime.m4: Remove file.
8891         * m4/utimes-null.m4: Remove file.
8892         * doc/posix-functions/utime.texi (utime): Remove reference to
8893         the module.  Move the sole "fixed by gnulib" item into the
8894         "problems not fixed by Gnulib" list.
8895         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8896
8897 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8898
8899         * modules/exit (License): Relax license to LGPLv2+.
8900         (Status): Mark as obsolete.
8901         * NEWS: Mention deprecated 'exit' module.
8902         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8903         of now obsolete 'exit'.
8904
8905 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8906
8907         fts-lgpl: remove unused module
8908         * modules/fts-lgpl: Remove.
8909         * MODULES.html.sh (func_all_modules): Adjust.
8910         * check-module (find_included_lib_files): Adjust.
8911         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8912
8913 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8914
8915         copy-acl: enhance Solaris ACL error handling
8916         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8917         * lib/set-mode-acl.c (qset_acl): Likewise.
8918
8919 2010-03-02  Bruno Haible  <bruno@clisp.org>
8920
8921         spawn: Don't override the system defined values on FreeBSD 8.
8922         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8923         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8924         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8925         if HAVE_POSIX_SPAWN is 1.
8926         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8927
8928 2010-03-01  Bruno Haible  <bruno@clisp.org>
8929
8930         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8931         regarding Automake.
8932
8933 2010-02-25  Bruno Haible  <bruno@clisp.org>
8934
8935         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8936         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8937         setting, not afterwards.
8938         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8939
8940 2010-02-24  Eric Blake  <eblake@redhat.com>
8941
8942         bootstrap, git-version-gen: use timestamp
8943         * build-aux/git-version-gen (scriptversion): Force UTC.
8944         * build-aux/bootstrap (scriptversion): New variable.
8945
8946         bootstrap: allow older git
8947         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8948         older than 1.6.4.  Requested by the libvirt project.
8949
8950 2010-02-23  Eric Blake  <eblake@redhat.com>
8951
8952         warn-on-use: work with old autoconf
8953         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8954         AS_VAR semantics of autoconf 2.60.
8955         Reported by Bruno Haible.
8956
8957         bootstrap: improve some comments
8958         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8959         clarification comments.
8960
8961         gettimeofday: provide correct function
8962         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8963         when replacement is declared, otherwise provide gettimeofday.
8964         Reported by Michael Goffioul.
8965
8966 2010-02-23  Jim Meyering  <meyering@redhat.com>
8967
8968         lib-ignore: relax license to "unlimited", not LGPLv2+
8969         * modules/lib-ignore (License): Relax to "unlimited".
8970
8971 2010-02-23  Jim Meyering  <meyering@redhat.com>
8972
8973         lib-ignore: relax license to LGPLv2+
8974         * modules/lib-ignore (License): Relax to LGPLv2+.
8975
8976 2010-02-22  Eric Blake  <eblake@redhat.com>
8977
8978         lseek: avoid bash 3.2 broken pipe bug
8979         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8980         warning from bash 3.2.
8981         Reported by Ben Pfaff, with analysis from Bruno Haible.
8982
8983         bootstrap: support non-FSF copyright holder
8984         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8985         bootstrap.conf override of COPYRIGHT_HOLDER.
8986         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8987
8988         bootstrap: interoperate with gettext 0.14.1
8989         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8990
8991         bootstrap: allow for alternate submodule location
8992         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8993         hardcoding submodule location.
8994         (gnulib_mk): Allow direct use of Makefile.am.
8995
8996         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8997         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8998         rather than reconfiguring where the submodule points.
8999
9000         gettimeofday: restore support for platforms that lack function
9001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9002         replacement if function is missing.
9003         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9004         * modules/sys_time (Makefile.am): Substitute it.
9005         * lib/sys_time.in.h (gettimeofday): Check it.
9006         Reported by Michael Goffioul.
9007
9008 2010-02-21  Bruno Haible  <bruno@clisp.org>
9009
9010         * lib/stdio.in.h (obstack_printf): Fix typo.
9011
9012 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9013
9014         vc-list-files: use bzr ls's -R option
9015         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9016         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9017
9018 2010-02-21  Jim Meyering  <meyering@redhat.com>
9019
9020         init.sh: fix EXEEXT shims to work also for names like test-prog
9021         * tests/init.sh: Re-exec a better shell, when needed.
9022         If the current shell lacks support for posix $(...), an init.sh-using
9023         test will now try to find a shell that supports that.  If EXEEXT is
9024         nonempty, we also require support for hyphen-in-alias-name and shell
9025         substitutions like ${var#glob}.  Failure to find such a shell results
9026         in a skipped test.
9027
9028 2010-02-21  Bruno Haible  <bruno@clisp.org>
9029
9030         Really work around around "broken pipe" error message from bash 3.2.
9031         * gnulib-tool (func_reset_sigpipe): Remove function.
9032         (echo): In bash 3.2, define to a function that uses printf.
9033         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9034
9035 2010-02-20  Bruno Haible  <bruno@clisp.org>
9036
9037         Restore support for automake 1.9.6 with autoconf 2.61.
9038         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9039         Reported by James Youngman <jay@gnu.org>.
9040
9041 2010-02-20  Bruno Haible  <bruno@clisp.org>
9042
9043         Improve *printf warning condition.
9044         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9045         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9046         and the function is overridden due to SIGPIPE emulation.
9047
9048 2010-02-20  Bruno Haible  <bruno@clisp.org>
9049
9050         * lib/stdio.in.h: Tweak comments.
9051
9052 2010-02-19  Bruno Haible  <bruno@clisp.org>
9053
9054         Make it easier to find modules. New gnulib-tool option '--find'.
9055         * gnulib-tool: New option --find.
9056         (func_usage): Document it.
9057         (func_sanitize_modulelist): New function, extracted from
9058         func_all_modules.
9059         (func_all_modules): Invoke it.
9060         * doc/gnulib-tool.texi (Which modules?): New node.
9061
9062 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9063
9064         * lib/sys_select.in.h: Provide select replacement even if
9065         sys/select.h exists on a system, for Interix.
9066
9067 2010-02-18  Jim Meyering  <meyering@redhat.com>
9068
9069         init.sh: don't use $(...) just yet
9070         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9071         to accommodate e.g., Solaris' /bin/sh.
9072
9073 2010-02-17  Bruno Haible  <bruno@clisp.org>
9074
9075         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9076         Reported by Ludovic Courtès <ludo@gnu.org>.
9077
9078 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9079
9080         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9081         linking with -lintl.
9082
9083 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9084
9085         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9086         if not provided by the system's netdb.h.  Reported by
9087         ludo@gnu.org (Ludovic Courtès).
9088
9089 2010-02-15  Jim Meyering  <meyering@redhat.com>
9090
9091         init.sh: improve portability and efficiency
9092         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9093         "dummy" in a for loop.
9094         Use '!', not '^' to select the complement of a character set used
9095         in a "case" statement.
9096         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9097         Suggestions from Eric Blake.
9098
9099         init.sh: automatically accommodate programs with the .exe suffix
9100         Automatically arrange for an invocation of "prog" to execute the
9101         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9102         may use the simpler "prog", yet still work when built on a system
9103         that requires specifying the added suffix.
9104         Do this by constructing a function named "prog" that invokes
9105         "prog.exe" for each .exe file in selected directories.
9106         * tests/init.sh (find_exe_basenames_): New function.
9107         (create_exe_shim_functions_): New function.
9108         (path_prepend_): Use it.
9109
9110         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9111         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9112         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9113
9114 2010-02-14  Jim Meyering  <meyering@redhat.com>
9115
9116         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9117         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9118         (sc_prohibit_hash_pjw_without_use): New rule.
9119
9120         maint.mk: allow the default upload destination dir to be overridden
9121         * top/maint.mk (upload_dest_dir_): Define with a default that
9122         preserves the status quo.
9123         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9124         Reported by Peter Simons.
9125
9126         maint.mk: prohibit inclusion of "hash.h" without_use
9127         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9128
9129 2010-02-10  Jim Meyering  <meyering@redhat.com>
9130
9131         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9132         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9133
9134 2010-02-09  Eric Blake  <ebb9@byu.net>
9135         and Bruno Haible  <bruno@clisp.org>
9136
9137         obstack-printf-posix: ensure declaration
9138         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9139         extracted from gl_FUNC_OBSTACK_PRINTF.
9140         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9141         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9142         Likewise.
9143         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9144         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9145         0.
9146
9147 2010-02-08  Bruno Haible  <bruno@clisp.org>
9148
9149         gnulib-tool: Fix typo in 2010-02-07 commit.
9150         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9151         Reported by Eric Blake.
9152
9153 2010-02-07  Bruno Haible  <bruno@clisp.org>
9154
9155         gnulib-tool: Fix up caching patches.
9156         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9157         option --no-cache. Use associative arrays when supported by the shell.
9158         (sed_comments): New variable.
9159         (modcache): Renamed from do_cache.
9160         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9161         abbreviate unnecessarily.
9162         (have_associative): New variable.
9163         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9164         way also for ksh and zsh.
9165         (func_init_sed_convert_to_cache_statements): New function, extracted
9166         from func_cache_lookup_module. Add support for associative arrays.
9167         Don't set the c_MODULE_cached variable here. Ignore all lines before
9168         the first field header. Remove only the final newline, not all trailing
9169         newlines. Support empty fields correctly. Limit the use of 'eval' to
9170         assignments.
9171         (func_get_description, func_get_status, func_get_notice,
9172         func_get_applicability, func_get_filelist, func_get_dependencies,
9173         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9174         func_get_automake_snippet, func_get_include_directive,
9175         func_get_link_directive, func_get_license, func_get_maintainer):
9176         Update documentation. List the unoptimized code first. Add support for
9177         associative arrays. Limit the use of 'eval' to assignments.
9178         (func_get_applicability): Undo stylistic pessimisations.
9179         (func_get_automake_snippet, func_get_include_directive): Reduce code
9180         duplication.
9181         (func_modules_transitive_closure, func_modules_add_dummy,
9182         func_modules_notice, func_modules_to_filelist, func_add_file,
9183         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9184         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9185         func_create_testdir, func_create_megatestdir): Update documentation.
9186
9187 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9188
9189         * gnulib-tool (func_cache_lookup_module): Store the module name
9190         belonging to the cache variable; error out if two different
9191         module names map to the same cache variable name.
9192
9193 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9194
9195         gnulib-tool: Make caching optional.
9196         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9197         Update matching short versions of --no-changelog.
9198         (func_usage): Update.
9199         (sed_extract_cache_prog): Renamed from ...
9200         (sed_extract_prog): ... this; revert to old extraction script.
9201         (func_get_description, func_get_status)
9202         (func_get_notice, func_get_applicability, func_get_filelist)
9203         (func_get_dependencies, func_get_autoconf_early_snippet)
9204         (func_get_autoconf_snippet, func_get_automake_snippet)
9205         (func_get_include_directive, func_get_link_directive)
9206         (func_get_license, func_get_maintainer): If $do_cache is false,
9207         use old, non-caching extraction scripts.
9208         Suggestion by Bruno Haible.
9209
9210 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9211
9212         gnulib-tool: cache module metainformation.
9213         * gnulib-tool (sed_extract_prog): Match newline before each
9214         header, and rewrite header to a shell variable suffix.
9215         (func_cache_var, func_cache_lookup_module): New functions,
9216         to turn a module name into a cache variable prefix, and to
9217         look up and cache module metainformation.
9218         (func_get_description, func_get_status)
9219         (func_get_notice, func_get_applicability, func_get_filelist)
9220         (func_get_dependencies, func_get_autoconf_early_snippet)
9221         (func_get_autoconf_snippet, func_get_automake_snippet)
9222         (func_get_include_directive, func_get_link_directive)
9223         (func_get_license, func_get_maintainer): Use
9224         func_cache_lookup_module.
9225
9226 2010-02-07  Bruno Haible  <bruno@clisp.org>
9227
9228         fnctl: Fix missing dependency.
9229         * modules/fcntl (Depends-on): Add getdtablesize.
9230         Reported by John W. Eaton <jwe@gnu.org>.
9231
9232 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9233
9234         Argp: fix recognition of short alias options.
9235
9236         * lib/argp-parse.c (convert_options): Fix improper use of
9237         `|' between character values.
9238         * tests/test-argp.c (group1_option): New alias option
9239         --read (-r).
9240         (group1_parser): Special handling for 'r'.
9241         (test15): New test case.
9242         (test_fun): Add test15.
9243         * tests/test-argp-2.sh: Update expected --help and --usage
9244         outputs.
9245
9246 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9247
9248         * tests/test-argp.c: Fix indentation.
9249
9250 2010-02-04  Eric Blake  <ebb9@byu.net>
9251
9252         gettimeofday: expose type of second argument
9253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9254         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9255         * tests/test-gettimeofday.c: Use it to silence warning.
9256         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9257         the issue.
9258
9259 2010-02-03  Jim Meyering  <meyering@redhat.com>
9260
9261         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9262         * lib/regcomp.c (TYPE_SIGNED): Define.
9263         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9264
9265         regcomp.c: avoid a new -Wshadow warning
9266         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9267
9268 2010-02-01  Jim Meyering  <meyering@redhat.com>
9269
9270         removing useless parentheses in cpp #define directives
9271         For motivation, see commit c0221df4, "define STREQ(a,b)
9272         consistently, removing useless parentheses"
9273         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9274         * lib/mountlist.c (MNT_IGNORE): Likewise.
9275         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9276
9277 2010-02-01  Eric Blake  <ebb9@byu.net>
9278
9279         sys_time: use link-warning
9280         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9281         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9282         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9283         * modules/sys_time (Depends-on): Add warn-on-use.
9284         (Makefile.am): Always build replacement.
9285         (configure.ac): Update substitutions.
9286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9287         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9288         bother with SYS_TIME_H.
9289         * modules/gettimeofday (configure.ac): Declare indicator.
9290         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9291         in use.
9292
9293         closein-tests: silence compiler warning
9294         * tests/test-closein.c (main): Ignore fread result.
9295         * modules/closein-tests (Depends-on): Add ignore-value.
9296
9297         tests: silence warning about system return
9298         * tests/test-areadlink-with-size.c (main): Ignore system result.
9299         * tests/test-areadlink.c (main): Likewise.
9300         * tests/test-areadlinkat-with-size.c (main): Likewise.
9301         * tests/test-areadlinkat.c (main): Likewise.
9302         * tests/test-canonicalize-lgpl.c (main): Likewise.
9303         * tests/test-canonicalize.c (main): Likewise.
9304         * tests/test-chown.c (main): Likewise.
9305         * tests/test-fchownat.c (main): Likewise.
9306         * tests/test-fdutimensat.c (main): Likewise.
9307         * tests/test-fstatat.c (main): Likewise.
9308         * tests/test-futimens.c (main): Likewise.
9309         * tests/test-lchown.c (main): Likewise.
9310         * tests/test-link.c (main): Likewise.
9311         * tests/test-linkat.c (main): Likewise.
9312         * tests/test-lstat.c (main): Likewise.
9313         * tests/test-mkdir.c (main): Likewise.
9314         * tests/test-mkdirat.c (main): Likewise.
9315         * tests/test-mkfifo.c (main): Likewise.
9316         * tests/test-mkfifoat.c (main): Likewise.
9317         * tests/test-mknod.c (main): Likewise.
9318         * tests/test-readlink.c (main): Likewise.
9319         * tests/test-remove.c (main): Likewise.
9320         * tests/test-rename.c (main): Likewise.
9321         * tests/test-renameat.c (main): Likewise.
9322         * tests/test-rmdir.c (main): Likewise.
9323         * tests/test-symlink.c (main): Likewise.
9324         * tests/test-symlinkat.c (main): Likewise.
9325         * tests/test-unlink.c (main): Likewise.
9326         * tests/test-unlinkat.c (main): Likewise.
9327         * tests/test-utimens.c (main): Likewise.
9328         * tests/test-utimensat.c (main): Likewise.
9329         * modules/areadlink-tests (Depends-on): Add ignore-value.
9330         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9331         * modules/areadlinkat-tests (Depends-on): Likewise.
9332         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9333         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9334         * modules/canonicalize-tests (Depends-on): Likewise.
9335         * modules/chown-tests (Depends-on): Likewise.
9336         * modules/fdutimensat-tests (Depends-on): Likewise.
9337         * modules/futimens-tests (Depends-on): Likewise.
9338         * modules/lchown-tests (Depends-on): Likewise.
9339         * modules/link-tests (Depends-on): Likewise.
9340         * modules/linkat-tests (Depends-on): Likewise.
9341         * modules/lstat-tests (Depends-on): Likewise.
9342         * modules/mkdir-tests (Depends-on): Likewise.
9343         * modules/mkfifo-tests (Depends-on): Likewise.
9344         * modules/mkfifoat-tests (Depends-on): Likewise.
9345         * modules/mknod-tests (Depends-on): Likewise.
9346         * modules/openat-tests (Depends-on): Likewise.
9347         * modules/readlink-tests (Depends-on): Likewise.
9348         * modules/remove-tests (Depends-on): Likewise.
9349         * modules/rename-tests (Depends-on): Likewise.
9350         * modules/renameat-tests (Depends-on): Likewise.
9351         * modules/rmdir-tests (Depends-on): Likewise.
9352         * modules/symlink-tests (Depends-on): Likewise.
9353         * modules/symlinkat-tests (Depends-on): Likewise.
9354         * modules/unlink-tests (Depends-on): Likewise.
9355         * modules/utimens-tests (Depends-on): Likewise.
9356         * modules/utimensat-tests (Depends-on): Likewise.
9357
9358 2010-01-31  Bruno Haible  <bruno@clisp.org>
9359
9360         Perform the same test for many <math.h> functions.
9361         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9362         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9363         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9364         of gl_MATHFUNC.
9365         * modules/acos (configure.ac): Likewise.
9366         * modules/asin (configure.ac): Likewise.
9367         * modules/atan (configure.ac): Likewise.
9368         * modules/atan2 (configure.ac): Likewise.
9369         * modules/cbrt (configure.ac): Likewise.
9370         * modules/copysign (configure.ac): Likewise.
9371         * modules/cos (configure.ac): Likewise.
9372         * modules/cosh (configure.ac): Likewise.
9373         * modules/erf (configure.ac): Likewise.
9374         * modules/erfc (configure.ac): Likewise.
9375         * modules/exp (configure.ac): Likewise.
9376         * modules/fmod (configure.ac): Likewise.
9377         * modules/hypot (configure.ac): Likewise.
9378         * modules/j0 (configure.ac): Likewise.
9379         * modules/j1 (configure.ac): Likewise.
9380         * modules/jn (configure.ac): Likewise.
9381         * modules/lgamma (configure.ac): Likewise.
9382         * modules/log (configure.ac): Likewise.
9383         * modules/log10 (configure.ac): Likewise.
9384         * modules/log1p (configure.ac): Likewise.
9385         * modules/pow (configure.ac): Likewise.
9386         * modules/remainder (configure.ac): Likewise.
9387         * modules/sin (configure.ac): Likewise.
9388         * modules/sinh (configure.ac): Likewise.
9389         * modules/tan (configure.ac): Likewise.
9390         * modules/tanh (configure.ac): Likewise.
9391         * modules/y0 (configure.ac): Likewise.
9392         * modules/y1 (configure.ac): Likewise.
9393         * modules/yn (configure.ac): Likewise.
9394         Suggested by Paolo Bonzini.
9395
9396 2010-01-31  Bruno Haible  <bruno@clisp.org>
9397
9398         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9399
9400 2010-01-31  Bruno Haible  <bruno@clisp.org>
9401
9402         Work around getdelim() bug on FreeBSD 8.0.
9403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9404         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9405         not work.
9406         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9407         is 1.
9408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9409         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9410         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9411         a non-zero size.
9412         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9413
9414 2010-01-31  Bruno Haible  <bruno@clisp.org>
9415
9416         Work around getline() bug on FreeBSD 8.0.
9417         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9418         and a non-zero size.
9419         * tests/test-getline.c (main): Likewise.
9420         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9421         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9422
9423 2010-01-28  Eric Blake  <ebb9@byu.net>
9424
9425         regex: fix build failure
9426         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9427         platforms.
9428
9429 2010-01-28  Jim Meyering  <meyering@redhat.com>
9430
9431         regex: do not ignore memory allocation failure
9432         * lib/regex_internal.c (create_cd_newstate): Detect
9433         re_node_set_init_copy failure.   Extracted from glibc commit
9434         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9435
9436         regex: sync more white-space changes from libc
9437         * lib/regex_internal.c: White-space only changes.
9438         * lib/regexec.c: Likewise.
9439
9440         regex: add many uses of __attribute_warn_unused_result__
9441         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9442         * lib/regexec.c: Likewise.
9443         Extracted from a messy glibc commit.
9444
9445         regcomp.c: spelling and merge-artifact from glibc
9446         * lib/regcomp.c: Merge remainder of glibc's
9447         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9448
9449         regcomp.c: sync white-space changes from glibc
9450         * lib/regcomp.c: Merge to accommodate white space
9451         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9452
9453         regcomp.c: do not ignore internal return values
9454         * lib/regcomp.c: Do not ignore internal return values.
9455         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9456         but without its white-space changes and spelling fixes.
9457
9458         regex_internal.h: define __attribute_warn_unused_result__
9459         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9460
9461         maint: add a syntax-check rule to check for vulnerable Makefile.in
9462         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9463
9464 2010-01-27  Jim Meyering  <meyering@redhat.com>
9465
9466         ncftpput-ftp: clean up spaces
9467         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9468         Remove trailing blanks.
9469
9470 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9471
9472         * build-aux/git-version-gen: Fix copyright statement.
9473         * build-aux/gnupload: Likewise.
9474         * tests/test-arcfour.c: Likewise.
9475         * tests/test-arctwo.c: Likewise.
9476         * tests/test-count-one-bits.c: Likewise.
9477         * tests/test-crc.c: Likewise.
9478         * tests/test-des.c: Likewise.
9479         * tests/test-gc-arcfour.c: Likewise.
9480         * tests/test-gc-arctwo.c: Likewise.
9481         * tests/test-gc-des.c: Likewise.
9482         * tests/test-gc-hmac-md5.c: Likewise.
9483         * tests/test-gc-hmac-sha1.c: Likewise.
9484         * tests/test-gc-md2.c: Likewise.
9485         * tests/test-gc-md4.c: Likewise.
9486         * tests/test-gc-md5.c: Likewise.
9487         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9488         * tests/test-gc-rijndael.c: Likewise.
9489         * tests/test-gc-sha1.c: Likewise.
9490         * tests/test-gc.c: Likewise.
9491         * tests/test-gethostname.c: Likewise.
9492         * tests/test-gettimeofday.c: Likewise.
9493         * tests/test-hash.c: Likewise.
9494         * tests/test-hmac-md5.c: Likewise.
9495         * tests/test-hmac-sha1.c: Likewise.
9496         * tests/test-md2.c: Likewise.
9497         * tests/test-md4.c: Likewise.
9498         * tests/test-md5.c: Likewise.
9499         * tests/test-memchr.c: Likewise.
9500         * tests/test-memchr2.c: Likewise.
9501         * tests/test-memcmp.c: Likewise.
9502         * tests/test-memmem.c: Likewise.
9503         * tests/test-memrchr.c: Likewise.
9504         * tests/test-rawmemchr.c: Likewise.
9505         * tests/test-read-file.c: Likewise.
9506         * tests/test-rijndael.c: Likewise.
9507         * tests/test-sockets.c: Likewise.
9508         * tests/test-strchrnul.c: Likewise.
9509         * tests/test-strstr.c: Likewise.
9510         * tests/test-strtod.c: Likewise.
9511         * build-aux/ncftpput-ftp: Likewise.
9512
9513 2010-01-26  Eric Blake  <ebb9@byu.net>
9514
9515         ignore-value: update recommended header name
9516         * modules/ignore-value (Include): Only use <> for headers that
9517         exist in glibc.
9518
9519 2010-01-26  Jim Meyering  <meyering@redhat.com>
9520
9521         test-userspec.c: avoid compiler warnings
9522         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9523         and "initialization discards qualifiers..." warnings.
9524         Put the first "uid" in its own scope, and make char* members "const".
9525
9526 2010-01-25  Bruno Haible  <bruno@clisp.org>
9527
9528         gnulib-tool: Make warning diagnostics consistent.
9529         * gnulib-tool (func_warning): New function.
9530         Use it everywhere where gnulib-tool produces output to stderr and it is
9531         not a fatal error.
9532
9533 2010-01-25  Bruno Haible  <bruno@clisp.org>
9534
9535         Fix test dependencies.
9536         * modules/xstrtol-tests (Depends-on): Add inttypes.
9537         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9538
9539 2010-01-25 Pádraig Brady <P@draigBrady.com>
9540
9541         syntax-check: detect incorrect boolean macro values in config.h
9542         * modules/maintainer-makefile (configure.ac): Parameterize the location
9543         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9544         The logic is from Eric Blake and the location indicated by Jim Meyering.
9545         Note the more natural CONFIG_HEADER name is prohibited by automake
9546         for backwards compatibility reasons.
9547         * top/maint.mk (sc_Wundef_boolean): New rule.
9548
9549 2010-01-25  Jim Meyering  <meyering@redhat.com>
9550
9551         bootstrap: detect MacOS 10.6's shasum, too
9552         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9553         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9554
9555 2010-01-23  Jim Meyering  <meyering@redhat.com>
9556
9557         xstrtoll: new module
9558         * modules/xstrtoll: New file.
9559         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9560         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9561         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9562         ./configure fails if you use this module and lack "long long".
9563         * modules/xstrtoll-tests: New module.
9564         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9565         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9566         new init.sh-based test framework.
9567
9568 2010-01-24  Bruno Haible  <bruno@clisp.org>
9569
9570         Tests for module 'yn'.
9571         * modules/yn-tests: New file.
9572         * tests/test-yn.c: New file.
9573
9574         Tests for module 'y1'.
9575         * modules/y1-tests: New file.
9576         * tests/test-y1.c: New file.
9577
9578         Tests for module 'y0'.
9579         * modules/y0-tests: New file.
9580         * tests/test-y0.c: New file.
9581
9582         Tests for module 'tanh'.
9583         * modules/tanh-tests: New file.
9584         * tests/test-tanh.c: New file.
9585
9586         Tests for module 'tan'.
9587         * modules/tan-tests: New file.
9588         * tests/test-tan.c: New file.
9589
9590         Tests for module 'sqrt'.
9591         * modules/sqrt-tests: New file.
9592         * tests/test-sqrt.c: New file.
9593
9594         Tests for module 'sinh'.
9595         * modules/sinh-tests: New file.
9596         * tests/test-sinh.c: New file.
9597
9598         Tests for module 'sin'.
9599         * modules/sin-tests: New file.
9600         * tests/test-sin.c: New file.
9601
9602         Tests for module 'rint'.
9603         * modules/rint-tests: New file.
9604         * tests/test-rint.c: New file.
9605
9606         Tests for module 'remainder'.
9607         * modules/remainder-tests: New file.
9608         * tests/test-remainder.c: New file.
9609
9610         Tests for module 'pow'.
9611         * modules/pow-tests: New file.
9612         * tests/test-pow.c: New file.
9613
9614         Tests for module 'nextafter'.
9615         * modules/nextafter-tests: New file.
9616         * tests/test-nextafter.c: New file.
9617
9618         Tests for module 'modf'.
9619         * modules/modf-tests: New file.
9620         * tests/test-modf.c: New file.
9621
9622         Tests for module 'logb'.
9623         * modules/logb-tests: New file.
9624         * tests/test-logb.c: New file.
9625
9626         Tests for module 'log1p'.
9627         * modules/log1p-tests: New file.
9628         * tests/test-log1p.c: New file.
9629
9630         Tests for module 'log10'.
9631         * modules/log10-tests: New file.
9632         * tests/test-log10.c: New file.
9633
9634         Tests for module 'log'.
9635         * modules/log-tests: New file.
9636         * tests/test-log.c: New file.
9637
9638         Tests for module 'lgamma'.
9639         * modules/lgamma-tests: New file.
9640         * tests/test-lgamma.c: New file.
9641
9642         Tests for module 'ldexp'.
9643         * modules/ldexp-tests: New file.
9644         * tests/test-ldexp.c: New file.
9645
9646         Tests for module 'jn'.
9647         * modules/jn-tests: New file.
9648         * tests/test-jn.c: New file.
9649
9650         Tests for module 'j1'.
9651         * modules/j1-tests: New file.
9652         * tests/test-j1.c: New file.
9653
9654         Tests for module 'j0'.
9655         * modules/j0-tests: New file.
9656         * tests/test-j0.c: New file.
9657
9658         Tests for module 'hypot'.
9659         * modules/hypot-tests: New file.
9660         * tests/test-hypot.c: New file.
9661
9662         Tests for module 'fmod'.
9663         * modules/fmod-tests: New file.
9664         * tests/test-fmod.c: New file.
9665
9666         Tests for module 'fabs'.
9667         * modules/fabs-tests: New file.
9668         * tests/test-fabs.c: New file.
9669
9670         Tests for module 'exp'.
9671         * modules/exp-tests: New file.
9672         * tests/test-exp.c: New file.
9673
9674         Tests for module 'erfc'.
9675         * modules/erfc-tests: New file.
9676         * tests/test-erfc.c: New file.
9677
9678         Tests for module 'erf'.
9679         * modules/erf-tests: New file.
9680         * tests/test-erf.c: New file.
9681
9682         Tests for module 'cosh'.
9683         * modules/cosh-tests: New file.
9684         * tests/test-cosh.c: New file.
9685
9686         Tests for module 'cos'.
9687         * modules/cos-tests: New file.
9688         * tests/test-cos.c: New file.
9689
9690         Tests for module 'copysign'.
9691         * modules/copysign-tests: New file.
9692         * tests/test-copysign.c: New file.
9693
9694         Tests for module 'cbrt'.
9695         * modules/cbrt-tests: New file.
9696         * tests/test-cbrt.c: New file.
9697
9698         Tests for module 'atan2'.
9699         * modules/atan2-tests: New file.
9700         * tests/test-atan2.c: New file.
9701
9702         Tests for module 'atan'.
9703         * modules/atan-tests: New file.
9704         * tests/test-atan.c: New file.
9705
9706         Tests for module 'asin'.
9707         * modules/asin-tests: New file.
9708         * tests/test-asin.c: New file.
9709
9710         Tests for module 'acos'.
9711         * modules/acos-tests: New file.
9712         * tests/test-acos.c: New file.
9713
9714 2010-01-24  Bruno Haible  <bruno@clisp.org>
9715
9716         Fix tests for common <math.h> functions.
9717         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9718         code snippet that references the function pointer, rather than merely
9719         calling the function. Substitute the FUNC_LIBM variable.
9720         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9721         * modules/acos (configure.ac): Likewise.
9722         * modules/asin (configure.ac): Likewise.
9723         * modules/atan (configure.ac): Likewise.
9724         * modules/atan2 (configure.ac): Likewise.
9725         * modules/cbrt (configure.ac): Likewise.
9726         * modules/copysign (configure.ac): Likewise.
9727         * modules/cos (configure.ac): Likewise.
9728         * modules/cosh (configure.ac): Likewise.
9729         * modules/erf (configure.ac): Likewise.
9730         * modules/erfc (configure.ac): Likewise.
9731         * modules/exp (configure.ac): Likewise.
9732         * modules/fabs (configure.ac): Likewise.
9733         * modules/fmod (configure.ac): Likewise.
9734         * modules/hypot (configure.ac): Likewise.
9735         * modules/j0 (configure.ac): Likewise.
9736         * modules/j1 (configure.ac): Likewise.
9737         * modules/jn (configure.ac): Likewise.
9738         * modules/ldexp (configure.ac): Likewise.
9739         * modules/lgamma (configure.ac): Likewise.
9740         * modules/log (configure.ac): Likewise.
9741         * modules/log10 (configure.ac): Likewise.
9742         * modules/log1p (configure.ac): Likewise.
9743         * modules/logb (configure.ac): Likewise.
9744         * modules/modf (configure.ac): Likewise.
9745         * modules/nextafter (configure.ac): Likewise.
9746         * modules/pow (configure.ac): Likewise.
9747         * modules/remainder (configure.ac): Likewise.
9748         * modules/rint (configure.ac): Likewise.
9749         * modules/sin (configure.ac): Likewise.
9750         * modules/sinh (configure.ac): Likewise.
9751         * modules/tan (configure.ac): Likewise.
9752         * modules/tanh (configure.ac): Likewise.
9753         * modules/y0 (configure.ac): Likewise.
9754         * modules/y1 (configure.ac): Likewise.
9755         * modules/yn (configure.ac): Likewise.
9756
9757 2010-01-24  Bruno Haible  <bruno@clisp.org>
9758
9759         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9760         * tests/test-acosl.c (x): New variable.
9761         (main): Store argument in x and fetch it from x.
9762         * tests/test-asinl.c (x): New variable.
9763         (main): Store argument in x and fetch it from x.
9764         * tests/test-atanl.c (x): New variable.
9765         (main): Store argument in x and fetch it from x.
9766         * tests/test-cosl.c (x): New variable.
9767         (main): Store argument in x and fetch it from x.
9768         * tests/test-expl.c (x): New variable.
9769         (main): Store argument in x and fetch it from x.
9770         * tests/test-logl.c (x): New variable.
9771         (main): Store argument in x and fetch it from x.
9772         * tests/test-sinl.c (x): New variable.
9773         (main): Store argument in x and fetch it from x.
9774         * tests/test-sqrtl.c (x): New variable.
9775         (main): Store argument in x and fetch it from x.
9776         * tests/test-tanl.c (x): New variable.
9777         (main): Store argument in x and fetch it from x.
9778
9779 2010-01-24  Bruno Haible  <bruno@clisp.org>
9780
9781         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9782         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9783         assignments to the initial TESTS_ENVIRONMENT.
9784         * doc/gnulib.texi (Unit test modules): Document it.
9785         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9786         TESTS_ENVIRONMENT.
9787         * modules/btowc-tests (Makefile.am): Likewise.
9788         * modules/c-stack-tests (Makefile.am): Likewise.
9789         * modules/c-strcase-tests (Makefile.am): Likewise.
9790         * modules/copy-file-tests (Makefile.am): Likewise.
9791         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9792         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9793         * modules/mbrtowc-tests (Makefile.am): Likewise.
9794         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9795         * modules/mbscasestr-tests (Makefile.am): Likewise.
9796         * modules/mbschr-tests (Makefile.am): Likewise.
9797         * modules/mbscspn-tests (Makefile.am): Likewise.
9798         * modules/mbsinit-tests (Makefile.am): Likewise.
9799         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9800         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9801         * modules/mbspbrk-tests (Makefile.am): Likewise.
9802         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9803         * modules/mbsrchr-tests (Makefile.am): Likewise.
9804         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9805         * modules/mbsspn-tests (Makefile.am): Likewise.
9806         * modules/mbsstr-tests (Makefile.am): Likewise.
9807         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9808         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9809         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9810         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9811         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9812         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9813         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9814         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9815         * modules/wcrtomb-tests (Makefile.am): Likewise.
9816         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9817         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9818         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9819         assignments from TESTS_ENVIRONMENT.
9820         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9821         augmentation.
9822         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9823         * modules/atexit-tests (Makefile.am): Likewise.
9824         * modules/binary-io-tests (Makefile.am): Likewise.
9825         * modules/closein-tests (Makefile.am): Likewise.
9826         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9827         * modules/exclude-tests (Makefile.am): Likewise.
9828         * modules/fflush-tests (Makefile.am): Likewise.
9829         * modules/fpending-tests (Makefile.am): Likewise.
9830         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9831         * modules/freadahead-tests (Makefile.am): Likewise.
9832         * modules/freadptr-tests (Makefile.am): Likewise.
9833         * modules/freadseek-tests (Makefile.am): Likewise.
9834         * modules/fseek-tests (Makefile.am): Likewise.
9835         * modules/fseeko-tests (Makefile.am): Likewise.
9836         * modules/ftell-tests (Makefile.am): Likewise.
9837         * modules/ftello-tests (Makefile.am): Likewise.
9838         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9839         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9840         * modules/lseek-tests (Makefile.am): Likewise.
9841         * modules/parse-duration-tests (Makefile.am): Likewise.
9842         * modules/perror-tests (Makefile.am): Likewise.
9843         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9844         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9845         * modules/pipe-tests (Makefile.am): Likewise.
9846         * modules/pread-tests (Makefile.am): Likewise.
9847         * modules/printf-posix-tests (Makefile.am): Likewise.
9848         * modules/select-tests (Makefile.am): Likewise.
9849         * modules/sigpipe-tests (Makefile.am): Likewise.
9850         * modules/tsearch-tests (Makefile.am): Likewise.
9851         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9852         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9853         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9854         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9855         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9856         * modules/version-etc-tests (Makefile.am): Likewise.
9857         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9858         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9859         * modules/xalloc-die-tests (Makefile.am): Likewise.
9860         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9861         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9862         * modules/xstrtol-tests (Makefile.am): Likewise.
9863         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9864         * modules/yesno-tests (Makefile.am): Likewise.
9865         Suggested by Jim Meyering.
9866
9867 2010-01-24  Bruno Haible  <bruno@clisp.org>
9868
9869         More documentation.
9870         * doc/gnulib.texi (Writing modules): New chapter.
9871         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9872         the new chapter.
9873
9874 2010-01-24  Jim Meyering  <meyering@redhat.com>
9875
9876         maint.mk: do not prepend "./" after filtering
9877         * top/maint.mk (_prepend_srcdir_prefix): New variable
9878         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9879         "./" when $(srcdir) is ".".
9880
9881         define STREQ(a,b) consistently, removing useless parentheses
9882         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9883         since the only risk is that "a" or "b" contains an unparenthesized
9884         comma, but if either did that, STREQ would have 3 or more arguments.
9885         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9886         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9887         * lib/hash-triple.c (STREQ): Likewise.
9888         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9889         * lib/getugroups.c (STREQ): Likewise.
9890
9891 2010-01-23  Jim Meyering  <meyering@redhat.com>
9892
9893         maint.mk: fix syntax-check in a non-srcdir build directory
9894         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9895         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9896
9897 2010-01-22  Jim Meyering  <meyering@redhat.com>
9898
9899         userspec: add unit tests
9900         * tests/test-userspec.c: New file.
9901         * modules/userspec-tests: Likewise.
9902
9903 2010-01-21  Jim Meyering  <meyering@redhat.com>
9904
9905         maint.mk: handle source file names containing "." robustly
9906         * top/maint.mk (_dot_escaped_srcdir): Define.
9907         (VC_LIST): Use it in LHS of sed substitution.
9908
9909 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9910
9911         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9912         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9913         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9914         from a non-srcdir build.
9915
9916 2010-01-20  Eric Blake  <ebb9@byu.net>
9917
9918         warn-on-use: use instead of link-warning
9919         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9920         * modules/unistd (Depends-on, Makefile.am): Likewise.
9921         * modules/arpa_inet (Depends-on): Replace link-warning with
9922         warn-on-use.
9923         (Makefile.am): Update rules accordingly.
9924         * modules/ctype (Depends-on, Makefile.am): Likewise.
9925         * modules/dirent (Depends-on, Makefile.am): Likewise.
9926         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9927         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9928         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9929         * modules/locale (Depends-on, Makefile.am): Likewise.
9930         * modules/math (Depends-on, Makefile.am): Likewise.
9931         * modules/search (Depends-on, Makefile.am): Likewise.
9932         * modules/signal (Depends-on, Makefile.am): Likewise.
9933         * modules/spawn (Depends-on, Makefile.am): Likewise.
9934         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9935         * modules/string (Depends-on, Makefile.am): Likewise.
9936         * modules/strings (Depends-on, Makefile.am): Likewise.
9937         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9938         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9939         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9940         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9941         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9942         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9943         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9944         * modules/wchar (Depends-on, Makefile.am): Likewise.
9945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9946         should be poisoned.
9947         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9948         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9949         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9950         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9951         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9952         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9953         * m4/math_h.m4 (gl_MATH_H): Likewise.
9954         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9955         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9956         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9957         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9958         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9959         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9960         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9961         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9962         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9966         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9967         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9968         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9969         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9970         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9971         GL_LINK_WARNING.
9972         * lib/ctype.in.h: Likewise.
9973         * lib/dirent.in.h: Likewise.
9974         * lib/fcntl.in.h: Likewise.
9975         * lib/inttypes.in.h: Likewise.
9976         * lib/langinfo.in.h: Likewise.
9977         * lib/locale.in.h: Likewise.
9978         * lib/math.in.h: Likewise.
9979         * lib/search.in.h: Likewise.
9980         * lib/signal.in.h: Likewise.
9981         * lib/spawn.in.h: Likewise.
9982         * lib/stdio.in.h: Likewise.
9983         * lib/stdlib.in.h: Likewise.
9984         * lib/string.in.h: Likewise.
9985         * lib/strings.in.h: Likewise.
9986         * lib/sys_file.in.h: Likewise.
9987         * lib/sys_ioctl.in.h: Likewise.
9988         * lib/sys_select.in.h: Likewise.
9989         * lib/sys_socket.in.h: Likewise.
9990         * lib/sys_stat.in.h: Likewise.
9991         * lib/sys_times.in.h: Likewise.
9992         * lib/sys_utsname.in.h: Likewise.
9993         * lib/unistd.in.h: Likewise.
9994         * lib/wchar.in.h: Likewise.
9995
9996 2010-01-20  Bruno Haible  <bruno@clisp.org>
9997
9998         Avoid duplicate -lm.
9999         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10000         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10001         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10003         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10004         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10005         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10006         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10007         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10008         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10009         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10010         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10011         Reported by Paolo Bonzini.
10012
10013 2010-01-19  Bruno Haible  <bruno@clisp.org>
10014
10015         langinfo, nl_langinfo: Relicense under LGPLv2+.
10016         * modules/langinfo (License): Change to LGPLv2+.
10017         * modules/nl_langinfo (License): Likewise.
10018         Patch by David Lutterkort <lutter@redhat.com>.
10019
10020 2010-01-19  Bruno Haible  <bruno@clisp.org>
10021
10022         Avoid compilation error with cc on OSF/1 5.1.
10023         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10024         statement, not before.
10025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10026
10027 2010-01-18  Bruno Haible  <bruno@clisp.org>
10028
10029         Avoid a link error due to the __printf__ symbol.
10030         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10031         and 2.6.x.
10032         (__format__, __printf__): Remove definitions.
10033         * lib/argp-fmtstream.h: Likewise.
10034         * lib/argp.h: Likewise.
10035         * lib/error.h: Likewise.
10036         * lib/vasnprintf.h: Likewise.
10037         * lib/xprintf.h: Likewise.
10038         * lib/xvasprintf.h: Likewise.
10039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10040
10041 2010-01-18  Bruno Haible  <bruno@clisp.org>
10042
10043         Tests for module 'tanl'.
10044         * modules/tanl-tests: New file.
10045         * tests/test-tanl.c: New file.
10046
10047         Tests for module 'sqrtl'.
10048         * modules/sqrtl-tests: New file.
10049         * tests/test-sqrtl.c: New file.
10050
10051         Tests for module 'sinl'.
10052         * modules/sinl-tests: New file.
10053         * tests/test-sinl.c: New file.
10054
10055         Tests for module 'logl'.
10056         * modules/logl-tests: New file.
10057         * tests/test-logl.c: New file.
10058
10059         Tests for module 'expl'.
10060         * modules/expl-tests: New file.
10061         * tests/test-expl.c: New file.
10062
10063         Tests for module 'cosl'.
10064         * modules/cosl-tests: New file.
10065         * tests/test-cosl.c: New file.
10066
10067         Tests for module 'atanl'.
10068         * modules/atanl-tests: New file.
10069         * tests/test-atanl.c: New file.
10070
10071         Tests for module 'asinl'.
10072         * modules/asinl-tests: New file.
10073         * tests/test-asinl.c: New file.
10074
10075         Tests for module 'acosl'.
10076         * modules/acosl-tests: New file.
10077         * tests/test-acosl.c: New file.
10078
10079         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10080         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10081         tanl): Use the standard gnulib idiom.
10082         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10083         * lib/sinl.c: Likewise.
10084         * lib/tanl.c: Don't include trigl.c.
10085         (kernel_tanl): Make static.
10086         * lib/sincosl.c: Include trigl.h first.
10087         * lib/trigl.c: Likewise.
10088         * m4/acosl.m4: New file.
10089         * m4/asinl.m4: New file.
10090         * m4/atanl.m4: New file.
10091         * m4/cosl.m4: New file.
10092         * m4/expl.m4: New file.
10093         * m4/logl.m4: New file.
10094         * m4/sinl.m4: New file.
10095         * m4/sqrtl.m4: New file.
10096         * m4/tanl.m4: New file.
10097         * m4/mathl.m4: Remove file.
10098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10099         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10100         Don't initialize GNULIB_MATHL.
10101         * modules/acosl: New file.
10102         * modules/asinl: New file.
10103         * modules/atanl: New file.
10104         * modules/cosl: New file.
10105         * modules/expl: New file.
10106         * modules/logl: New file.
10107         * modules/sinl: New file.
10108         * modules/sqrtl: New file.
10109         * modules/tanl: New file.
10110         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10111         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10112         substitute GNULIB_MATHL.
10113         * modules/mathl: Rewritten.
10114         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10115         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10116         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10117         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10118         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10119         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10120         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10121         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10122         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10123
10124 2010-01-18  Bruno Haible  <bruno@clisp.org>
10125
10126         sqrt: Make gl_FUNC_SQRT requirable.
10127         * m4/sqrt.m4: New file.
10128         * modules/sqrt (Files): Add it.
10129         (configure.ac): Invoke gl_FUNC_SQRT.
10130
10131 2010-01-18  Bruno Haible  <bruno@clisp.org>
10132
10133         New modules for common <math.h> functions.
10134         * m4/mathfunc.m4: New file.
10135         * modules/acos: New file.
10136         * modules/asin: New file.
10137         * modules/atan: New file.
10138         * modules/atan2: New file.
10139         * modules/cbrt: New file.
10140         * modules/copysign: New file.
10141         * modules/cos: New file.
10142         * modules/cosh: New file.
10143         * modules/erf: New file.
10144         * modules/erfc: New file.
10145         * modules/exp: New file.
10146         * modules/fabs: New file.
10147         * modules/fmod: New file.
10148         * modules/hypot: New file.
10149         * modules/j0: New file.
10150         * modules/j1: New file.
10151         * modules/jn: New file.
10152         * modules/ldexp: New file.
10153         * modules/lgamma: New file.
10154         * modules/log: New file.
10155         * modules/log10: New file.
10156         * modules/log1p: New file.
10157         * modules/logb: New file.
10158         * modules/modf: New file.
10159         * modules/nextafter: New file.
10160         * modules/pow: New file.
10161         * modules/remainder: New file.
10162         * modules/rint: New file.
10163         * modules/sin: New file.
10164         * modules/sinh: New file.
10165         * modules/sqrt: New file.
10166         * modules/tan: New file.
10167         * modules/tanh: New file.
10168         * modules/y0: New file.
10169         * modules/y1: New file.
10170         * modules/yn: New file.
10171         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10172         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10173         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10174         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10175         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10176         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10177         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10178         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10179         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10180         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10181         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10182         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10183         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10184         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10185         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10186         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10187         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10188         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10189         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10190         * doc/posix-functions/log.texi: Mention the 'log' module.
10191         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10192         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10193         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10194         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10195         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10196         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10197         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10198         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10199         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10200         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10201         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10202         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10203         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10204         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10205         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10206         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10207
10208 2010-01-18  Jim Meyering  <meyering@redhat.com>
10209
10210         ignore-value: relax license to LGPLv2+
10211         * modules/ignore-value (License): Relax to LGPLv2+.
10212
10213         getdate: don't leak when TZ contains two or more '"'s
10214         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10215         double quote in TZ after the first one.
10216
10217         readtokens: do not leak internal token_lengths buffer
10218         * lib/readtokens.c (readtokens): Free the local, lengths,
10219         when the supplied "token_lengths" parameter is NULL.
10220
10221 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10222
10223         Fix a couple of missing LIBTHREAD link failures on AIX.
10224         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10225         $(LIBTHREAD).
10226         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10227
10228         Link test-poll against INET_PTON_LIB.
10229         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10230         for inet_pton on Solaris 10.
10231
10232 2010-01-17  Bruno Haible  <bruno@clisp.org>
10233
10234         unistdio/*-sprintf: Fix typo in module description.
10235         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10236         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10237         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10238         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10239         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10240         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10241         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10242         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10243
10244 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10245
10246         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10247         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10248         variables in shell case patterns, for AIX and HP-UX ksh.
10249
10250         Split large sed scripts, for HP-UX sed.
10251         * modules/stdio: Split sed scripts around 50 sed commands,
10252         to avoid HP-UX limit of 99 commands, in the near future.
10253         * modules/string: Likewise.
10254         * modules/unistd: Likewise.
10255
10256         gnulib-tool: avoid writing in the current directory.
10257         * gnulib-tool (func_emit_lib_Makefile_am)
10258         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10259         not in the current directory, so concurrent gnulib-tool
10260         instances do not interfere.
10261
10262 2010-01-16  Jim Meyering  <meyering@redhat.com>
10263
10264         doc: update users.txt
10265         * users.txt: Add grep.
10266         (diffutils, gzip): Update URLs.
10267
10268 2010-01-12  Bruno Haible  <bruno@clisp.org>
10269
10270         posix_spawn: Avoid test failure on Cygwin.
10271         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10272         characters.
10273         Reported by Simon Josefsson.
10274
10275 2010-01-12  Bruno Haible  <bruno@clisp.org>
10276
10277         * tests/test-cond.c (main): When skipping the test, show the reason.
10278
10279 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10280
10281         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10282
10283 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10284
10285         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10286         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10287
10288 2010-01-12  Eric Blake  <ebb9@byu.net>
10289
10290         build: guarantee AS_VAR_IF
10291         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10292         (gl_AS_VAR_IF): Move...
10293         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10294         Reported by Simon Josefsson.
10295
10296 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10297
10298         * lib/stdio.in.h: Fix typo.
10299
10300 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10301
10302         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10303         libgpg-error.
10304
10305 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10306
10307         * tests/test-xalloc-die.sh: Use $EXEEXT.
10308
10309 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10310             Bruno Haible  <bruno@clisp.org>
10311
10312         getlogin, getlogin_r: Avoid test failure.
10313         * tests/test-getlogin.c: Include <stdio.h>.
10314         (main): Skip the test when the function fails because stdin is not a
10315         tty.
10316         * tests/test-getlogin_r.c: Include <stdio.h>.
10317         (main): Skip the test when the function fails because stdin is not a
10318         tty.
10319
10320 2010-01-11  Eric Blake  <ebb9@byu.net>
10321
10322         tests: avoid more large file warnings
10323         * tests/test-fflush.c: Avoid warning about ftell use.
10324         * tests/test-fseek.c: Avoid warning about fseek use.
10325
10326 2010-01-10  Bruno Haible  <bruno@clisp.org>
10327
10328         nproc: Work better on Linux when /proc and /sys are not mounted.
10329         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10330         as lower bound when, on glibc/Linux systems,
10331         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10332         Suggested by Pádraig Brady <P@draigbrady.com>.
10333         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10334
10335         nproc: Refactor.
10336         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10337         extracted from num_processors.
10338         (num_processors): Call it.
10339
10340 2010-01-11  Jim Meyering  <meyering@redhat.com>
10341
10342         utimecmp: avoid new warning from upcoming gcc-4.5.0
10343         * lib/utimecmp.c (BILLION): Define using #define rather than an
10344         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10345
10346 2010-01-11  Eric Blake  <ebb9@byu.net>
10347
10348         math: add portability warnings for classification macros
10349         * modules/math (Depends-on): Add warn-on-use.
10350         (Makefile.am): Provide new substitutions.
10351         * m4/math_h.m4 (gl_MATH_H): Require inline.
10352         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10353         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10354         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10355         implement warnings.
10356
10357         unistd: warn on use of environ without module
10358         * modules/unistd (Depends-on): Add warn-on-use.
10359         (Makefile.am): Provide new substitutions.
10360         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10361         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10362
10363         stdio: warn on suspicious uses
10364         * modules/stdio (Depends-on): Add warn-on-use.
10365         (Makefile.am): Provide new substitutions.
10366         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10367         fseeko.
10368         * lib/stdio.in.h (gets): Always warn on use.
10369         (fseek, ftell): Adjust when warnings are issued, and honor
10370         _GL_NO_LARGE_FILES as a way to silence the warning.
10371         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10372         any warning about large file offsets.
10373         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10374         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10375         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10376         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10377         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10378         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10379         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10380         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10381
10382         warn-on-use: new module
10383         * modules/warn-on-use: New file.
10384         * build-aux/warn-on-use.h: Likewise.
10385         * m4/warn-on-use.m4: Likewise.
10386         * MODULES.html.sh (Support for building): Mention it.
10387
10388 2010-01-10  Bruno Haible  <bruno@clisp.org>
10389
10390         Tests for module 'unistr/u32-strdup'.
10391         * modules/unistr/u32-strdup-tests: New file.
10392         * tests/unistr/test-u32-strdup.c: New file.
10393
10394         Tests for module 'unistr/u16-strdup'.
10395         * modules/unistr/u16-strdup-tests: New file.
10396         * tests/unistr/test-u16-strdup.c: New file.
10397
10398         Tests for module 'unistr/u8-strdup'.
10399         * modules/unistr/u8-strdup-tests: New file.
10400         * tests/unistr/test-u8-strdup.c: New file.
10401         * tests/unistr/test-strdup.h: New file.
10402
10403         Tests for module 'unistr/u32-strncmp'.
10404         * modules/unistr/u32-strncmp-tests: New file.
10405         * tests/unistr/test-u32-strncmp.c: New file.
10406
10407         Tests for module 'unistr/u16-strncmp'.
10408         * modules/unistr/u16-strncmp-tests: New file.
10409         * tests/unistr/test-u16-strncmp.c: New file.
10410
10411         Tests for module 'unistr/u8-strncmp'.
10412         * modules/unistr/u8-strncmp-tests: New file.
10413         * tests/unistr/test-u8-strncmp.c: New file.
10414         * tests/unistr/test-strncmp.h: New file.
10415
10416         Tests for module 'unistr/u32-strcoll'.
10417         * modules/unistr/u32-strcoll-tests: New file.
10418         * tests/unistr/test-u32-strcoll.c: New file.
10419
10420         Tests for module 'unistr/u16-strcoll'.
10421         * modules/unistr/u16-strcoll-tests: New file.
10422         * tests/unistr/test-u16-strcoll.c: New file.
10423
10424         Tests for module 'unistr/u8-strcoll'.
10425         * modules/unistr/u8-strcoll-tests: New file.
10426         * tests/unistr/test-u8-strcoll.c: New file.
10427
10428         Tests for module 'unistr/u32-strcmp'.
10429         * modules/unistr/u32-strcmp-tests: New file.
10430         * tests/unistr/test-u32-strcmp.c: New file.
10431         * tests/unistr/test-u32-strcmp.h: New file.
10432
10433         Tests for module 'unistr/u16-strcmp'.
10434         * modules/unistr/u16-strcmp-tests: New file.
10435         * tests/unistr/test-u16-strcmp.c: New file.
10436         * tests/unistr/test-u16-strcmp.h: New file.
10437
10438         Tests for module 'unistr/u8-strcmp'.
10439         * modules/unistr/u8-strcmp-tests: New file.
10440         * tests/unistr/test-u8-strcmp.c: New file.
10441         * tests/unistr/test-u8-strcmp.h: New file.
10442         * tests/unistr/test-strcmp.h: New file.
10443
10444         Tests for module 'unistr/u32-strncat'.
10445         * modules/unistr/u32-strncat-tests: New file.
10446         * tests/unistr/test-u32-strncat.c: New file.
10447
10448         Tests for module 'unistr/u16-strncat'.
10449         * modules/unistr/u16-strncat-tests: New file.
10450         * tests/unistr/test-u16-strncat.c: New file.
10451
10452         Tests for module 'unistr/u8-strncat'.
10453         * modules/unistr/u8-strncat-tests: New file.
10454         * tests/unistr/test-u8-strncat.c: New file.
10455         * tests/unistr/test-strncat.h: New file.
10456
10457         Tests for module 'unistr/u32-strcat'.
10458         * modules/unistr/u32-strcat-tests: New file.
10459         * tests/unistr/test-u32-strcat.c: New file.
10460
10461         Tests for module 'unistr/u16-strcat'.
10462         * modules/unistr/u16-strcat-tests: New file.
10463         * tests/unistr/test-u16-strcat.c: New file.
10464
10465         Tests for module 'unistr/u8-strcat'.
10466         * modules/unistr/u8-strcat-tests: New file.
10467         * tests/unistr/test-u8-strcat.c: New file.
10468         * tests/unistr/test-strcat.h: New file.
10469
10470         Tests for module 'unistr/u32-stpncpy'.
10471         * modules/unistr/u32-stpncpy-tests: New file.
10472         * tests/unistr/test-u32-stpncpy.c: New file.
10473
10474         Tests for module 'unistr/u16-stpncpy'.
10475         * modules/unistr/u16-stpncpy-tests: New file.
10476         * tests/unistr/test-u16-stpncpy.c: New file.
10477
10478         Tests for module 'unistr/u8-stpncpy'.
10479         * modules/unistr/u8-stpncpy-tests: New file.
10480         * tests/unistr/test-u8-stpncpy.c: New file.
10481         * tests/unistr/test-stpncpy.h: New file.
10482
10483         Tests for module 'unistr/u32-strncpy'.
10484         * modules/unistr/u32-strncpy-tests: New file.
10485         * tests/unistr/test-u32-strncpy.c: New file.
10486
10487         Tests for module 'unistr/u16-strncpy'.
10488         * modules/unistr/u16-strncpy-tests: New file.
10489         * tests/unistr/test-u16-strncpy.c: New file.
10490
10491         Tests for module 'unistr/u8-strncpy'.
10492         * modules/unistr/u8-strncpy-tests: New file.
10493         * tests/unistr/test-u8-strncpy.c: New file.
10494         * tests/unistr/test-strncpy.h: New file.
10495
10496         Tests for module 'unistr/u32-stpcpy'.
10497         * modules/unistr/u32-stpcpy-tests: New file.
10498         * tests/unistr/test-u32-stpcpy.c: New file.
10499
10500         Tests for module 'unistr/u16-stpcpy'.
10501         * modules/unistr/u16-stpcpy-tests: New file.
10502         * tests/unistr/test-u16-stpcpy.c: New file.
10503
10504         Tests for module 'unistr/u8-stpcpy'.
10505         * modules/unistr/u8-stpcpy-tests: New file.
10506         * tests/unistr/test-u8-stpcpy.c: New file.
10507         * tests/unistr/test-stpcpy.h: New file.
10508
10509         Tests for module 'unistr/u32-strcpy'.
10510         * modules/unistr/u32-strcpy-tests: New file.
10511         * tests/unistr/test-u32-strcpy.c: New file.
10512
10513         Tests for module 'unistr/u16-strcpy'.
10514         * modules/unistr/u16-strcpy-tests: New file.
10515         * tests/unistr/test-u16-strcpy.c: New file.
10516
10517         Tests for module 'unistr/u8-strcpy'.
10518         * modules/unistr/u8-strcpy-tests: New file.
10519         * tests/unistr/test-u8-strcpy.c: New file.
10520         * tests/unistr/test-strcpy.h: New file.
10521
10522         Tests for module 'unistr/u32-strnlen'.
10523         * modules/unistr/u32-strnlen-tests: New file.
10524         * tests/unistr/test-u32-strnlen.c: New file.
10525
10526         Tests for module 'unistr/u16-strnlen'.
10527         * modules/unistr/u16-strnlen-tests: New file.
10528         * tests/unistr/test-u16-strnlen.c: New file.
10529
10530         Tests for module 'unistr/u8-strnlen'.
10531         * modules/unistr/u8-strnlen-tests: New file.
10532         * tests/unistr/test-u8-strnlen.c: New file.
10533         * tests/unistr/test-strnlen.h: New file.
10534
10535         Tests for module 'unistr/u32-strlen'.
10536         * modules/unistr/u32-strlen-tests: New file.
10537         * tests/unistr/test-u32-strlen.c: New file.
10538
10539         Tests for module 'unistr/u16-strlen'.
10540         * modules/unistr/u16-strlen-tests: New file.
10541         * tests/unistr/test-u16-strlen.c: New file.
10542
10543         Tests for module 'unistr/u8-strlen'.
10544         * modules/unistr/u8-strlen-tests: New file.
10545         * tests/unistr/test-u8-strlen.c: New file.
10546
10547         Tests for module 'unistr/u32-prev'.
10548         * modules/unistr/u32-prev-tests: New file.
10549         * tests/unistr/test-u32-prev.c: New file.
10550
10551         Tests for module 'unistr/u16-prev'.
10552         * modules/unistr/u16-prev-tests: New file.
10553         * tests/unistr/test-u16-prev.c: New file.
10554
10555         Tests for module 'unistr/u8-prev'.
10556         * modules/unistr/u8-prev-tests: New file.
10557         * tests/unistr/test-u8-prev.c: New file.
10558
10559         Tests for module 'unistr/u32-next'.
10560         * modules/unistr/u32-next-tests: New file.
10561         * tests/unistr/test-u32-next.c: New file.
10562
10563         Tests for module 'unistr/u16-next'.
10564         * modules/unistr/u16-next-tests: New file.
10565         * tests/unistr/test-u16-next.c: New file.
10566
10567         Tests for module 'unistr/u8-next'.
10568         * modules/unistr/u8-next-tests: New file.
10569         * tests/unistr/test-u8-next.c: New file.
10570
10571         Tests for module 'unistr/u32-strmbtouc'.
10572         * modules/unistr/u32-strmbtouc-tests: New file.
10573         * tests/unistr/test-u32-strmbtouc.c: New file.
10574
10575         Tests for module 'unistr/u16-strmbtouc'.
10576         * modules/unistr/u16-strmbtouc-tests: New file.
10577         * tests/unistr/test-u16-strmbtouc.c: New file.
10578
10579         Tests for module 'unistr/u8-strmbtouc'.
10580         * modules/unistr/u8-strmbtouc-tests: New file.
10581         * tests/unistr/test-u8-strmbtouc.c: New file.
10582
10583         Tests for module 'unistr/u32-strmblen'.
10584         * modules/unistr/u32-strmblen-tests: New file.
10585         * tests/unistr/test-u32-strmblen.c: New file.
10586
10587         Tests for module 'unistr/u16-strmblen'.
10588         * modules/unistr/u16-strmblen-tests: New file.
10589         * tests/unistr/test-u16-strmblen.c: New file.
10590
10591         Tests for module 'unistr/u8-strmblen'.
10592         * modules/unistr/u8-strmblen-tests: New file.
10593         * tests/unistr/test-u8-strmblen.c: New file.
10594
10595         Tests for module 'unistr/u32-cpy-alloc'.
10596         * modules/unistr/u32-cpy-alloc-tests: New file.
10597         * tests/unistr/test-u32-cpy-alloc.c: New file.
10598
10599         Tests for module 'unistr/u16-cpy-alloc'.
10600         * modules/unistr/u16-cpy-alloc-tests: New file.
10601         * tests/unistr/test-u16-cpy-alloc.c: New file.
10602
10603         Tests for module 'unistr/u8-cpy-alloc'.
10604         * modules/unistr/u8-cpy-alloc-tests: New file.
10605         * tests/unistr/test-u8-cpy-alloc.c: New file.
10606         * tests/unistr/test-cpy-alloc.h: New file.
10607
10608         Tests for module 'unistr/u32-mbsnlen'.
10609         * modules/unistr/u32-mbsnlen-tests: New file.
10610         * tests/unistr/test-u32-mbsnlen.c: New file.
10611
10612         Tests for module 'unistr/u16-mbsnlen'.
10613         * modules/unistr/u16-mbsnlen-tests: New file.
10614         * tests/unistr/test-u16-mbsnlen.c: New file.
10615
10616         Tests for module 'unistr/u8-mbsnlen'.
10617         * modules/unistr/u8-mbsnlen-tests: New file.
10618         * tests/unistr/test-u8-mbsnlen.c: New file.
10619
10620         Tests for module 'unistr/u32-chr'.
10621         * modules/unistr/u32-chr-tests: New file.
10622         * tests/unistr/test-u32-chr.c: New file.
10623
10624         Tests for module 'unistr/u16-chr'.
10625         * modules/unistr/u16-chr-tests: New file.
10626         * tests/unistr/test-u16-chr.c: New file.
10627
10628         Tests for module 'unistr/u8-chr'.
10629         * modules/unistr/u8-chr-tests: New file.
10630         * tests/unistr/test-u8-chr.c: New file.
10631         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10632
10633         Tests for module 'unistr/u32-cmp2'.
10634         * modules/unistr/u32-cmp2-tests: New file.
10635         * tests/unistr/test-u32-cmp2.c: New file.
10636
10637         Tests for module 'unistr/u16-cmp2'.
10638         * modules/unistr/u16-cmp2-tests: New file.
10639         * tests/unistr/test-u16-cmp2.c: New file.
10640
10641         Tests for module 'unistr/u8-cmp2'.
10642         * modules/unistr/u8-cmp2-tests: New file.
10643         * tests/unistr/test-u8-cmp2.c: New file.
10644         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10645
10646         Tests for module 'unistr/u32-cmp'.
10647         * modules/unistr/u32-cmp-tests: New file.
10648         * tests/unistr/test-u32-cmp.c: New file.
10649
10650         Tests for module 'unistr/u16-cmp'.
10651         * modules/unistr/u16-cmp-tests: New file.
10652         * tests/unistr/test-u16-cmp.c: New file.
10653
10654         Tests for module 'unistr/u8-cmp'.
10655         * modules/unistr/u8-cmp-tests: New file.
10656         * tests/unistr/test-u8-cmp.c: New file.
10657         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10658
10659         Tests for module 'unistr/u32-set'.
10660         * modules/unistr/u32-set-tests: New file.
10661         * tests/unistr/test-u32-set.c: New file.
10662
10663         Tests for module 'unistr/u16-set'.
10664         * modules/unistr/u16-set-tests: New file.
10665         * tests/unistr/test-u16-set.c: New file.
10666
10667         Tests for module 'unistr/u8-set'.
10668         * modules/unistr/u8-set-tests: New file.
10669         * tests/unistr/test-u8-set.c: New file.
10670         * tests/unistr/test-set.h: New file.
10671
10672         Tests for module 'unistr/u32-move'.
10673         * modules/unistr/u32-move-tests: New file.
10674         * tests/unistr/test-u32-move.c: New file.
10675
10676         Tests for module 'unistr/u16-move'.
10677         * modules/unistr/u16-move-tests: New file.
10678         * tests/unistr/test-u16-move.c: New file.
10679
10680         Tests for module 'unistr/u8-move'.
10681         * modules/unistr/u8-move-tests: New file.
10682         * tests/unistr/test-u8-move.c: New file.
10683         * tests/unistr/test-move.h: New file.
10684
10685         Tests for module 'unistr/u32-cpy'.
10686         * modules/unistr/u32-cpy-tests: New file.
10687         * tests/unistr/test-u32-cpy.c: New file.
10688
10689         Tests for module 'unistr/u16-cpy'.
10690         * modules/unistr/u16-cpy-tests: New file.
10691         * tests/unistr/test-u16-cpy.c: New file.
10692
10693         Tests for module 'unistr/u8-cpy'.
10694         * modules/unistr/u8-cpy-tests: New file.
10695         * tests/unistr/test-u8-cpy.c: New file.
10696         * tests/unistr/test-cpy.h: New file.
10697
10698 2010-01-09  Bruno Haible  <bruno@clisp.org>
10699
10700         Tests for module 'unistr/u32-uctomb'.
10701         * modules/unistr/u32-uctomb-tests: New file.
10702         * tests/unistr/test-u32-uctomb.c: New file.
10703
10704         Tests for module 'unistr/u16-uctomb'.
10705         * modules/unistr/u16-uctomb-tests: New file.
10706         * tests/unistr/test-u16-uctomb.c: New file.
10707
10708         Tests for module 'unistr/u8-uctomb'.
10709         * modules/unistr/u8-uctomb-tests: New file.
10710         * tests/unistr/test-u8-uctomb.c: New file.
10711
10712         Tests for module 'unistr/u32-mbtoucr'.
10713         * modules/unistr/u32-mbtoucr-tests: New file.
10714         * tests/unistr/test-u32-mbtoucr.c: New file.
10715
10716         Tests for module 'unistr/u16-mbtoucr'.
10717         * modules/unistr/u16-mbtoucr-tests: New file.
10718         * tests/unistr/test-u16-mbtoucr.c: New file.
10719
10720         Tests for module 'unistr/u8-mbtoucr'.
10721         * modules/unistr/u8-mbtoucr-tests: New file.
10722         * tests/unistr/test-u8-mbtoucr.c: New file.
10723
10724         Tests for module 'unistr/u32-mbtouc'.
10725         * modules/unistr/u32-mbtouc-tests: New file.
10726         * tests/unistr/test-u32-mbtouc.c: New file.
10727
10728         Tests for module 'unistr/u16-mbtouc'.
10729         * modules/unistr/u16-mbtouc-tests: New file.
10730         * tests/unistr/test-u16-mbtouc.c: New file.
10731
10732         Tests for module 'unistr/u8-mbtouc'.
10733         * modules/unistr/u8-mbtouc-tests: New file.
10734         * tests/unistr/test-u8-mbtouc.c: New file.
10735
10736         Tests for module 'unistr/u32-mbtouc-unsafe'.
10737         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10738         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10739         * tests/unistr/test-u32-mbtouc.h: New file.
10740
10741         Tests for module 'unistr/u16-mbtouc-unsafe'.
10742         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10743         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10744         * tests/unistr/test-u16-mbtouc.h: New file.
10745
10746         Tests for module 'unistr/u8-mbtouc-unsafe'.
10747         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10748         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10749         * tests/unistr/test-u8-mbtouc.h: New file.
10750
10751         Tests for module 'unistr/u32-mblen'.
10752         * modules/unistr/u32-mblen-tests: New file.
10753         * tests/unistr/test-u32-mblen.c: New file.
10754
10755         Tests for module 'unistr/u16-mblen'.
10756         * modules/unistr/u16-mblen-tests: New file.
10757         * tests/unistr/test-u16-mblen.c: New file.
10758
10759         Tests for module 'unistr/u8-mblen'.
10760         * modules/unistr/u8-mblen-tests: New file.
10761         * tests/unistr/test-u8-mblen.c: New file.
10762
10763         Tests for module 'unistr/u32-to-u16'.
10764         * modules/unistr/u32-to-u16-tests: New file.
10765         * tests/unistr/test-u32-to-u16.c: New file.
10766
10767         Tests for module 'unistr/u32-to-u8'.
10768         * modules/unistr/u32-to-u8-tests: New file.
10769         * tests/unistr/test-u32-to-u8.c: New file.
10770
10771         Tests for module 'unistr/u16-to-u32'.
10772         * modules/unistr/u16-to-u32-tests: New file.
10773         * tests/unistr/test-u16-to-u32.c: New file.
10774
10775         Tests for module 'unistr/u16-to-u8'.
10776         * modules/unistr/u16-to-u8-tests: New file.
10777         * tests/unistr/test-u16-to-u8.c: New file.
10778
10779         Tests for module 'unistr/u8-to-u32'.
10780         * modules/unistr/u8-to-u32-tests: New file.
10781         * tests/unistr/test-u8-to-u32.c: New file.
10782
10783         Tests for module 'unistr/u8-to-u16'.
10784         * modules/unistr/u8-to-u16-tests: New file.
10785         * tests/unistr/test-u8-to-u16.c: New file.
10786
10787         Tests for module 'unistr/u32-check'.
10788         * modules/unistr/u32-check-tests: New file.
10789         * tests/unistr/test-u32-check.c: New file.
10790
10791         Tests for module 'unistr/u16-check'.
10792         * modules/unistr/u16-check-tests: New file.
10793         * tests/unistr/test-u16-check.c: New file.
10794
10795         Tests for module 'unistr/u8-check'.
10796         * modules/unistr/u8-check-tests: New file.
10797         * tests/unistr/test-u8-check.c: New file.
10798
10799         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10800         (category_equals): New function.
10801         (main): Add more tests.
10802         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10803
10804         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10805
10806 2010-01-10  Bruno Haible  <bruno@clisp.org>
10807
10808         unistr/u*-strcoll: Try harder to distinguish different strings.
10809         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10810         compare s1 and s2 to see if they are different.
10811
10812 2010-01-10  Bruno Haible  <bruno@clisp.org>
10813
10814         unistr/u*-stpncpy: Fix the return value.
10815         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10816         description of the return value consistent with stpncpy in glibc.
10817         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10818         written non-NUL unit.
10819
10820 2010-01-10  Bruno Haible  <bruno@clisp.org>
10821
10822         unistr/u*-next: Add missing dependencies.
10823         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10824         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10825         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10826
10827 2010-01-10  Bruno Haible  <bruno@clisp.org>
10828
10829         unistr/u8-mbsnlen: Fix return value for incomplete character.
10830         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10831         u8_mblen.
10832         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10833         Remove unistr/u8-mblen.
10834         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10835         u16_mblen.
10836         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10837         Remove unistr/u16-mblen.
10838
10839 2010-01-10  Bruno Haible  <bruno@clisp.org>
10840
10841         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10842         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10843         Reported by Brian Gough <bjg@gnu.org> and
10844         Chris Clayton <chris2553@googlemail.com> via
10845         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10846
10847 2010-01-09  Bruno Haible  <bruno@clisp.org>
10848
10849         unistr/u16-to-u32: Reject invalid input.
10850         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10851         u16_mbtouc.
10852         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10853         Remove unistr/u16-mbtouc.
10854
10855         unistr/u16-to-u8: Reject invalid input.
10856         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10857         u16_mbtouc.
10858         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10859         Remove unistr/u16-mbtouc.
10860
10861         unistr/u8-to-u32: Reject invalid input.
10862         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10863         u8_mbtouc.
10864         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10865         Remove unistr/u8-mbtouc.
10866
10867         unistr/u8-to-u16: Reject invalid input.
10868         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10869         u8_mbtouc.
10870         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10871         Remove unistr/u8-mbtouc.
10872
10873 2010-01-09  Bruno Haible  <bruno@clisp.org>
10874
10875         Tests for module 'getlogin'.
10876         * modules/getlogin-tests: New file.
10877         * tests/test-getlogin.c: New file.
10878
10879         New module 'getlogin'.
10880         * lib/unistd.in.h (getlogin): New declaration.
10881         * lib/getlogin.c: New file.
10882         * m4/getlogin.m4: New file.
10883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10884         HAVE_GETLOGIN.
10885         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10886         HAVE_GETLOGIN.
10887         * modules/getlogin: New file.
10888         * doc/posix-functions/getlogin.texi: Mention the new module.
10889         Reported by John W. Eaton <jwe@gnu.org>.
10890
10891 2010-01-09  Bruno Haible  <bruno@clisp.org>
10892
10893         getlogin_r: Support for native Windows.
10894         * lib/getlogin_r.c: Include <windows.h>
10895         (getlogin_r): Implement for native Windows.
10896         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10897         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10898         via John W. Eaton <jwe@gnu.org>.
10899
10900 2010-01-09  Bruno Haible  <bruno@clisp.org>
10901
10902         getlogin_r: Small fixes.
10903         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10904         succeeds.
10905         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10906         before testing whether getlogin_r is declared. No need to set
10907         HAVE_DECL_GETLOGIN_R to 1.
10908         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10909
10910 2010-01-09  Bruno Haible  <bruno@clisp.org>
10911
10912         * lib/unistd.in.h (getlogin_r): Add comment.
10913
10914 2010-01-09  Bruno Haible  <bruno@clisp.org>
10915
10916         Tests for module 'getlogin_r'.
10917         * modules/getlogin_r-tests: New file.
10918         * tests/test-getlogin_r.c: New file.
10919
10920 2010-01-09  Jim Meyering  <meyering@redhat.com>
10921
10922         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10923         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10924         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10925
10926 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10927
10928         * lib/dup2.c (rpl_dup2): Improve comment.
10929
10930 2010-01-08  Eric Blake  <ebb9@byu.net>
10931
10932         maint.mk: allow packages to add makefile @@ exceptions
10933         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10934         (sc_makefile_check): Rename...
10935         (sc_makefile_at_at_check): ...to this, and use hook.
10936
10937         dup2: work around mingw bug
10938         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10939         Reported by Simon Josefsson.
10940
10941 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10942
10943         glob: Fix C++ compilation.
10944         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10945         C++.
10946
10947 2010-01-07  Bruno Haible  <bruno@clisp.org>
10948
10949         Fix indentation of wctype.in.h, broken since 2007-01-06.
10950         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10951
10952 2010-01-07  Bruno Haible  <bruno@clisp.org>
10953
10954         mbslen: Avoid collision with system function.
10955         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10956         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10957         * m4/mbslen.m4: New file.
10958         * modules/mbslen (Files): Add it.
10959         (configure.ac): Invoke gl_MBSLEN.
10960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10961         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10963         via Ian Beckwith <ianb@erislabs.net>.
10964
10965 2010-01-07  Bruno Haible  <bruno@clisp.org>
10966
10967         dirent: Document the last fix.
10968         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10969
10970 2010-01-07  Bruno Haible  <bruno@clisp.org>
10971
10972         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10973         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10974         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10975         va_list are defined.
10976         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10977         Reported by Eric Blake.
10978
10979 2010-01-07  Bruno Haible  <bruno@clisp.org>
10980
10981         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10982         * modules/xlist (Depends-on): Add 'list',
10983         * modules/xoset (Depends-on): Add 'oset'.
10984         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10985
10986 2010-01-07  Bruno Haible  <bruno@clisp.org>
10987
10988         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10989         * doc/posix-functions/strncasecmp.texi: Likewise.
10990
10991 2010-01-07  Bruno Haible  <bruno@clisp.org>
10992
10993         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10994
10995 2010-01-07  John W. Eaton  <jwe@octave.org>
10996
10997         wctype: allow C++ use
10998         * lib/wctype.in.h: Add extern "C" block for C++.
10999
11000 2010-01-06  Eric Blake  <ebb9@byu.net>
11001
11002         maint.mk: detect incorrect GFDL usage
11003         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11004
11005 2010-01-06  Jim Meyering  <meyering@redhat.com>
11006         and Eric Blake  <ebb9@byu.net>
11007
11008         maint.mk: ignore multi-line copyright in NEWS
11009         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11010
11011 2010-01-06  Eric Blake  <ebb9@byu.net>
11012
11013         select: add missing dependency
11014         * modules/select-tests (Depends-on): Move sockets dependency...
11015         * modules/select (Depends-on): ...here.
11016         Reported by Ian Beckwith.
11017
11018         doc: regenerate INSTALL
11019         * doc/INSTALL: Reflect recent autoconf update.
11020         * doc/INSTALL.ISO: Likewise.
11021         * doc/INSTALL.UTF-8: Likewise.
11022
11023         pread: fix compilation on glibc
11024         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11025         Reported by Ralf Wildenhues.
11026
11027         dirent: fix test failure
11028         * lib/dirent.in.h (includes): Guarantee ino_t.
11029         Reported by Ralf Wildenhues.
11030
11031 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11032
11033         linkat, renameat: avoid bad free
11034         * lib/at-func2.c (at_func2): Fix typo.
11035         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11036
11037 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11038
11039         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11040         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11041         to avoid failure of symlink test later.
11042
11043 2010-01-06  Eric Blake  <ebb9@byu.net>
11044
11045         stdio, unistd: guarantee ssize_t
11046         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11047         2008 are exposed when needed.
11048         * lib/stdio.in.h (includes): Likewise.
11049         Reported by Ralf Wildenhues.
11050
11051 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11052
11053         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11054         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11055         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11056
11057 2010-01-06  Jim Meyering  <meyering@redhat.com>
11058
11059         readtokens: this module *does* require xalloc.h
11060         It uses only functions that were omitted by the old syntax-check rule.
11061         * lib/readtokens.c: Include "xalloc.h" once again.
11062         * modules/readtokens (Depends-on): Add xalloc.
11063         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11064
11065 2010-01-05  Eric Blake  <ebb9@byu.net>
11066
11067         maint: support 'make announcement' from a VPATH build
11068         * top/maint.mk (announcement): Look for correct NEWS file.
11069
11070 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11071
11072         utimens (fdutimens): ignore a negative FD, per contract
11073         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11074         when we have a valid file descriptor.  Otherwise, using a brand
11075         new glibc (with just-patched futimens that now fails with EBADF)
11076         would cause this function to fail with ENOSYS.
11077         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11078         See also http://bugzilla.redhat.com/552320.
11079
11080 2010-01-05  Eric Blake  <ebb9@byu.net>
11081
11082         strcase: document what it provides
11083         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11084         gnulib module.
11085         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11086         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11087
11088 2010-01-05  Jim Meyering  <meyering@redhat.com>
11089
11090         maint: remove useless inclusions of "xalloc.h"
11091         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11092         * lib/readtokens.c: Likewise.
11093         * lib/same.c: Likewise.
11094         * modules/getloadavg (Depends-on): Remove xalloc.
11095         * modules/readtokens: Likewise.
11096         * modules/same: Likewise.
11097
11098         maint.mk: include 4 more function names in alloca.h-checking regexp
11099         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11100         regexp.  Before, we would give a false-positive (saying alloca.h
11101         is included unnecessarily) when the only uses involved omitted symbols.
11102
11103         xalloc.h: use consistent formatting
11104         * lib/xalloc.h: Move declarations to start in the first column.
11105
11106 2010-01-05  Eric Blake  <ebb9@byu.net>
11107
11108         mkdir: avoid xalloc
11109         * lib/mkdir.c (includes): Drop unused header.
11110         Reported by John W. Eaton.
11111
11112 2010-01-04  Jim Meyering  <meyering@redhat.com>
11113
11114         nl_langinfo: avoid configure-time syntax error
11115         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11116         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11117         the empty string.  Don't let that provoke a shell syntax error.
11118
11119         regcomp, regexec, fnmatch: avoid array bounds read error
11120         * lib/regcomp.c (build_equiv_class): From glibc:
11121         Use only the low 24 bits of a findidx return value as an index
11122         into the weights array.  Patch by Ulrich Drepper:
11123         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11124         * lib/regexec.c (check_node_accept_bytes): Likewise.
11125         * lib/fnmatch_loop.c (FCT): Likewise.
11126
11127         regcomp: skip collseq lookup when there are no rules
11128         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11129         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11130
11131         regcomp: recognize ill-formed { } expressions
11132         * lib/regcomp.c (parse_dup_op): From glibc:
11133         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11134
11135         regcomp: fix typo in comment
11136         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11137         s/satisfy/satisfies/.
11138
11139         regcomp: sync from glibc: remove dead store
11140         * lib/regcomp.c (duplicate_node_closure): Remove useless
11141         search_duplicated_node call and dead store.
11142
11143         regcomp: sync from glibc; always use nl_langinfo
11144         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11145         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11146         * modules/regex (Depends-on): Add nl_langinfo.
11147
11148 2010-01-04  Eric Blake  <ebb9@byu.net>
11149
11150         fdopendir: fix configure test
11151         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11152
11153 2010-01-01  Bruno Haible  <bruno@clisp.org>
11154
11155         wchar: Remove unused configure check.
11156         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11157
11158 2010-01-01  Eric Blake  <ebb9@byu.net>
11159
11160         headers: make check of system header explicit
11161         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11162         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11163         ourselves.
11164         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11167         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11168         internals.
11169         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11170         missing.
11171         Suggested by Bruno Haible.
11172
11173 2010-01-01  Jim Meyering  <meyering@redhat.com>
11174
11175         ChangeLog: tweak to eliminate unnecessary copyright line
11176         * ChangeLog: Remove a copyright line that was mistakenly updated
11177         by today's update-copyright run.  Reported by Eric Blake.
11178
11179         test-update-copyright: don't let envvar setting cause test failure
11180         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11181
11182 2010-01-01  Bruno Haible  <bruno@clisp.org>
11183
11184         localename: Avoid gcc warning.
11185         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11186         function if it is not used.
11187
11188 2010-01-01  Jim Meyering  <meyering@redhat.com>
11189
11190         update nearly all FSF copyright year lists to include 2010
11191         Use the same procedure as for 2009, outlined in
11192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11193
11194         version-etc: set COPYRIGHT_YEAR to 2010
11195         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11196
11197 2009-12-31  Eric Blake  <ebb9@byu.net>
11198
11199         doc: correct availability of cygwin 1.5.x getopt
11200         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11201         variables.
11202         * doc/posix-functions/opterr.texi (opterr): Likewise.
11203         * doc/posix-functions/optind.texi (optind): Likewise.
11204         * doc/posix-functions/optopt.texi (optopt): Likewise.
11205         * doc/posix-functions/tzname.texi (tzname): Likewise.
11206
11207         openat: update maintainer
11208         * modules/openat (Maintainer): Add myself.
11209
11210         utimens: avoid shadowing warning
11211         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11212         buffers into one, to avoid shadowing, as well as avoiding a
11213         redundant stat.
11214         Reported by Jim Meyering.
11215
11216         test-dup2: avoid compiler warning
11217         * tests/test-dup2.c (is_inheritable): Only define if used.
11218
11219 2010-01-01  Bruno Haible  <bruno@clisp.org>
11220
11221         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11222         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11223         defined, use wctomb instead of wcrtomb.
11224
11225 2010-01-01  Bruno Haible  <bruno@clisp.org>
11226
11227         iconv: Reject native Solaris iconv.
11228         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11229         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11230
11231 2009-12-31  Bruno Haible  <bruno@clisp.org>
11232
11233         * tests/test-signal.c (main): Remove test of 'SIG'.
11234
11235 2009-12-31  Bruno Haible  <bruno@clisp.org>
11236
11237         spawn: Fix incomplete fix.
11238         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11239         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11240         warnings for GNULIB_POSIXCHECK again.
11241         Reported by Eric Blake.
11242
11243 2009-12-31  Bruno Haible  <bruno@clisp.org>
11244
11245         Avoid namespace pollution on glibc systems.
11246         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11247         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11248         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11249         glibc systems.
11250
11251 2009-12-31  Bruno Haible  <bruno@clisp.org>
11252
11253         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11254         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11255         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11256         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11257         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11258         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11259         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11260
11261 2009-12-31  Bruno Haible  <bruno@clisp.org>
11262
11263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11264         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11265         afterwards.
11266
11267 2009-12-31  Bruno Haible  <bruno@clisp.org>
11268
11269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11270         SYS_UTSNAME_H.
11271
11272 2009-12-31  Bruno Haible  <bruno@clisp.org>
11273
11274         spawn: Fix misapplied patch.
11275         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11276         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11277         warnings for GNULIB_POSIXCHECK.
11278
11279 2009-12-31  Bruno Haible  <bruno@clisp.org>
11280
11281         times: Update after sys_times changed.
11282         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11283         * modules/times (Files): Add it.
11284         (configure.ac): Invoke gl_FUNC_TIMES.
11285
11286 2009-12-31  Bruno Haible  <bruno@clisp.org>
11287
11288         Use AC_C_INLINE where necessary.
11289         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11290         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11291         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11292         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11293         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11294         * m4/mbiter.m4 (gl_MBITER): Likewise.
11295         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11296         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11297         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11298         * modules/u64 (configure.ac): Likewise.
11299
11300 2009-12-31  Bruno Haible  <bruno@clisp.org>
11301
11302         Use AC_C_INLINE instead of module 'inline' where possible.
11303         * modules/inline (Description): Clarify purpose.
11304         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11305         * modules/count-one-bits (Depends-on): Remove inline.
11306         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11307         * modules/openat (Depends-on): Remove inline.
11308         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11309         instead of depending on module 'inline'.
11310         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11311         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11312         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11313         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11314         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11315         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11316         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11317         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11318         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11319         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11320         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11321         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11322         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11323         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11324         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11325         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11326         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11327         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11328         Likewise.
11329         * modules/unictype/property-ascii-hex-digit (Depends-on,
11330         configure.ac): Likewise.
11331         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11332         configure.ac): Likewise.
11333         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11334         configure.ac): Likewise.
11335         * modules/unictype/property-bidi-block-separator (Depends-on,
11336         configure.ac): Likewise.
11337         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11338         configure.ac): Likewise.
11339         * modules/unictype/property-bidi-common-separator (Depends-on,
11340         configure.ac): Likewise.
11341         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11342         Likewise.
11343         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11344         configure.ac): Likewise.
11345         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11346         configure.ac): Likewise.
11347         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11348         configure.ac): Likewise.
11349         * modules/unictype/property-bidi-european-digit (Depends-on,
11350         configure.ac): Likewise.
11351         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11352         configure.ac): Likewise.
11353         * modules/unictype/property-bidi-left-to-right (Depends-on,
11354         configure.ac): Likewise.
11355         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11356         configure.ac): Likewise.
11357         * modules/unictype/property-bidi-other-neutral (Depends-on,
11358         configure.ac): Likewise.
11359         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11360         Likewise.
11361         * modules/unictype/property-bidi-segment-separator (Depends-on,
11362         configure.ac): Likewise.
11363         * modules/unictype/property-bidi-whitespace (Depends-on,
11364         configure.ac): Likewise.
11365         * modules/unictype/property-combining (Depends-on, configure.ac):
11366         Likewise.
11367         * modules/unictype/property-composite (Depends-on, configure.ac):
11368         Likewise.
11369         * modules/unictype/property-currency-symbol (Depends-on,
11370         configure.ac): Likewise.
11371         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11372         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11373         Likewise.
11374         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11375         configure.ac): Likewise.
11376         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11377         Likewise.
11378         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11379         Likewise.
11380         * modules/unictype/property-extender (Depends-on, configure.ac):
11381         Likewise.
11382         * modules/unictype/property-format-control (Depends-on, configure.ac):
11383         Likewise.
11384         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11385         Likewise.
11386         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11387         Likewise.
11388         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11389         Likewise.
11390         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11391         Likewise.
11392         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11393         Likewise.
11394         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11395         Likewise.
11396         * modules/unictype/property-id-start (Depends-on, configure.ac):
11397         Likewise.
11398         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11399         Likewise.
11400         * modules/unictype/property-ids-binary-operator (Depends-on,
11401         configure.ac): Likewise.
11402         * modules/unictype/property-ids-trinary-operator (Depends-on,
11403         configure.ac): Likewise.
11404         * modules/unictype/property-ignorable-control (Depends-on,
11405         configure.ac): Likewise.
11406         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11407         Likewise.
11408         * modules/unictype/property-join-control (Depends-on, configure.ac):
11409         Likewise.
11410         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11411         Likewise.
11412         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11413         Likewise.
11414         * modules/unictype/property-logical-order-exception (Depends-on,
11415         configure.ac): Likewise.
11416         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11417         Likewise.
11418         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11419         * modules/unictype/property-non-break (Depends-on, configure.ac):
11420         Likewise.
11421         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11422         Likewise.
11423         * modules/unictype/property-numeric (Depends-on, configure.ac):
11424         Likewise.
11425         * modules/unictype/property-other-alphabetic (Depends-on,
11426         configure.ac): Likewise.
11427         * modules/unictype/property-other-default-ignorable-code-point
11428         (Depends-on, configure.ac): Likewise.
11429         * modules/unictype/property-other-grapheme-extend (Depends-on,
11430         configure.ac): Likewise.
11431         * modules/unictype/property-other-id-continue (Depends-on,
11432         configure.ac): Likewise.
11433         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11434         Likewise.
11435         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11436         Likewise.
11437         * modules/unictype/property-other-math (Depends-on, configure.ac):
11438         Likewise.
11439         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11440         Likewise.
11441         * modules/unictype/property-paired-punctuation (Depends-on,
11442         configure.ac): Likewise.
11443         * modules/unictype/property-paragraph-separator (Depends-on,
11444         configure.ac): Likewise.
11445         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11446         Likewise.
11447         * modules/unictype/property-pattern-white-space (Depends-on,
11448         configure.ac): Likewise.
11449         * modules/unictype/property-private-use (Depends-on, configure.ac):
11450         Likewise.
11451         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11452         Likewise.
11453         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11454         Likewise.
11455         * modules/unictype/property-radical (Depends-on, configure.ac):
11456         Likewise.
11457         * modules/unictype/property-sentence-terminal (Depends-on,
11458         configure.ac): Likewise.
11459         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11460         Likewise.
11461         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11462         * modules/unictype/property-terminal-punctuation (Depends-on,
11463         configure.ac): Likewise.
11464         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11465         Likewise.
11466         * modules/unictype/property-unassigned-code-value (Depends-on,
11467         configure.ac): Likewise.
11468         * modules/unictype/property-unified-ideograph (Depends-on,
11469         configure.ac): Likewise.
11470         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11471         Likewise.
11472         * modules/unictype/property-variation-selector (Depends-on,
11473         configure.ac): Likewise.
11474         * modules/unictype/property-white-space (Depends-on, configure.ac):
11475         Likewise.
11476         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11477         Likewise.
11478         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11479         Likewise.
11480         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11481         Likewise.
11482         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11483         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11484         Likewise.
11485
11486 2009-12-31  Bruno Haible  <bruno@clisp.org>
11487
11488         Remove unnecessary AC_C_INLINE invocation.
11489         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11490         since 2009-08-21.
11491
11492 2009-12-31  Jim Meyering  <meyering@redhat.com>
11493
11494         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11495         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11496         With this change, we can all remove the gpg_key_ID = ... definition
11497         from our respective cfg.mk files.
11498
11499         maint.mk: create announcement template in ~/, not in /tmp
11500         * top/maint.mk (emit_upload_commands): Adjust.
11501         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11502         Remove temporary file, .ci-msg.
11503
11504 2009-12-31  Eric Blake  <ebb9@byu.net>
11505
11506         link-warning: always build headers with link warnings
11507         * modules/arpa_inet (Makefile.am): Always build replacement
11508         header.
11509         * modules/ctype (Makefile.am): Likewise.
11510         * modules/dirent (Makefile.am): Likewise.
11511         * modules/inttypes (Makefile.am): Likewise.
11512         * modules/langinfo (Makefile.am): Likewise.
11513         * modules/locale (Makefile.am): Likewise.
11514         * modules/spawn (Makefile.am): Likewise.
11515         * modules/sys_file (Makefile.am): Likewise.
11516         * modules/sys_ioctl (Makefile.am): Likewise.
11517         * modules/sys_select (Makefile.am): Likewise.
11518         * modules/sys_socket (Makefile.am): Likewise.
11519         * modules/sys_times (Makefile.am): Likewise.
11520         * modules/sys_utsname (Makefile.am): Likewise.
11521         * modules/sys_wait (Makefile.am): Likewise.
11522         * modules/wchar (Makefile.am): Likewise.
11523         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11524         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11525         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11526         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11527         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11528         Likewise.
11529         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11530         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11531         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11532         Likewise.
11533         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11534         Likewise.
11535         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11536         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11537         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11538         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11539         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11540         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11541         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11542         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11543         (gl_WCHAR_H_DEFAULTS): Likewise.
11544
11545 2009-12-31  Eric Blake  <ebb9@byu.net>
11546
11547         signal, spawn: use link warnings
11548         * lib/signal.in.h (sigset_t): Make unconditional.
11549         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11550         (sigpending, sigprocmask, sigaction): Add link warnings.
11551         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11552         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11553         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11554         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11555         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11556         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11557         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11558         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11559         (posix_spawn_file_actions_destroy)
11560         (posix_spawn_file_actions_addopen)
11561         (posix_spawn_file_actions_addclose)
11562         (posix_spawn_file_actions_adddup2): Likewise.
11563         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11564         * tests/test-signal.c (main): Enhance test.
11565
11566         spawn: improve wrapper support
11567         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11568         (gl_SPAWN_H_DEFAULTS): New defaults.
11569         * modules/spawn (Makefile.am): Substitute them.
11570         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11571         Only declare if missing or broken.
11572
11573         sys_times, sys_utsname: use include_next
11574         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11575         header.
11576         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11578         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11579         * modules/sys_times (Depends-on): Add include_next.
11580         (Makefile.am): Substitute additional values.
11581         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11582         * lib/sys_times.in.h (includes): Include native header, if
11583         available.
11584         * lib/sys_utsname.in.h (includes): Likewise.
11585         * tests/test-sys_times.c (main): Enhance test.
11586
11587         fdutimensat: revert prior patch
11588         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11589         utimens.h.
11590         Reported by Bruno Haible.
11591
11592 2009-12-30  Eric Blake  <ebb9@byu.net>
11593
11594         sys_wait: drop link-warning dependency
11595         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11596         link-warning efforts.
11597         * lib/sys_wait.in.h: Likewise.
11598
11599         fdutimensat: remove bogus dependency
11600         * modules/fdutimensat (Depends-on): Drop inline.
11601
11602         unistd: fix typo
11603         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11604
11605 2009-12-30  Bruno Haible  <bruno@clisp.org>
11606
11607         Fix compilation error with Solaris cc.
11608         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11609         * lib/unicase/u16-is-invariant.c: Likewise.
11610         * lib/unicase/u32-is-invariant.c: Likewise.
11611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11612
11613 2009-12-30  Bruno Haible  <bruno@clisp.org>
11614
11615         Fix test crash.
11616         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11617         locales.
11618         Reported by Simon Josefsson <simon@josefsson.org>.
11619
11620 2009-12-30  Bruno Haible  <bruno@clisp.org>
11621
11622         Fix compilation error on most platforms.
11623         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11624         Reported by Simon Josefsson <simon@josefsson.org>
11625         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11626
11627 2009-12-30  Eric Blake  <ebb9@byu.net>
11628
11629         futimens, utimensat: work around ntfs-3g bug
11630         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11631         a ctime bug is present, and expand workaround to cover ntfs-3g.
11632         * lib/utimens.c (fdutimens, lutimens): Likewise.
11633         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11634         (validate_timespec): Adjust return value.
11635         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11636         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11637         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11638
11639 2009-12-29  Eric Blake  <ebb9@byu.net>
11640
11641         link-warning: make usage consistent
11642         * modules/ctype (Depends-on): Add link-warning.
11643         (Makefile.am): Update rules accordingly.
11644         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11645         * modules/locale (Depends-on, Makefile.am): Likewise.
11646         * modules/sys_file (Makefile.am): Likewise.
11647         * modules/getopt-posix (Makefile.am): Delete unused link warning
11648         efforts.
11649         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11650         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11651         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11652         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11653
11654         stdio: remove unused variables
11655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11656         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11657         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11658
11659         tests: test more substitute headers
11660         * modules/ctype-tests: New file.
11661         * modules/dirent-tests: Likewise.
11662         * modules/spawn-tests: Likewise.
11663         * modules/sys_file-tests: Likewise.
11664         * modules/sys_ioctl-tests: Likewise.
11665         * modules/sys_wait-tests: Likewise.
11666         * tests/test-ctype.c: Likewise.
11667         * tests/test-dirent.c: Likewise.
11668         * tests/test-spawn.c: Likewise.
11669         * tests/test-sys_file.c: Likewise.
11670         * tests/test-sys_ioctl.c: Likewise.
11671         * tests/test-sys_wait.c: Likewise.
11672         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11673         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11674         whether or not flock is in use.
11675
11676         tests: remove License section from module
11677         * modules/arpa_inet-tests: Remove unneeded section.
11678         * modules/byteswap-tests: Likewise.
11679         * modules/ceilf-tests: Likewise.
11680         * modules/ceill-tests: Likewise.
11681         * modules/crypto/des-tests: Likewise.
11682         * modules/crypto/gc-arcfour-tests: Likewise.
11683         * modules/crypto/gc-arctwo-tests: Likewise.
11684         * modules/crypto/gc-des-tests: Likewise.
11685         * modules/crypto/gc-hmac-md5-tests: Likewise.
11686         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11687         * modules/crypto/gc-md2-tests: Likewise.
11688         * modules/crypto/gc-md4-tests: Likewise.
11689         * modules/crypto/gc-md5-tests: Likewise.
11690         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11691         * modules/crypto/gc-rijndael-tests: Likewise.
11692         * modules/crypto/gc-sha1-tests: Likewise.
11693         * modules/crypto/gc-tests: Likewise.
11694         * modules/crypto/md2-tests: Likewise.
11695         * modules/crypto/md4-tests: Likewise.
11696         * modules/fcntl-h-tests: Likewise.
11697         * modules/floorf-tests: Likewise.
11698         * modules/floorl-tests: Likewise.
11699         * modules/frexp-nolibm-tests: Likewise.
11700         * modules/frexp-tests: Likewise.
11701         * modules/frexpl-nolibm-tests: Likewise.
11702         * modules/frexpl-tests: Likewise.
11703         * modules/getaddrinfo-tests: Likewise.
11704         * modules/inttypes-tests: Likewise.
11705         * modules/isfinite-tests: Likewise.
11706         * modules/isinf-tests: Likewise.
11707         * modules/ldexpl-tests: Likewise.
11708         * modules/locale-tests: Likewise.
11709         * modules/math-tests: Likewise.
11710         * modules/netdb-tests: Likewise.
11711         * modules/netinet_in-tests: Likewise.
11712         * modules/printf-frexp-tests: Likewise.
11713         * modules/printf-frexpl-tests: Likewise.
11714         * modules/priv-set-tests: Likewise.
11715         * modules/random_r-tests: Likewise.
11716         * modules/round-tests: Likewise.
11717         * modules/roundf-tests: Likewise.
11718         * modules/roundl-tests: Likewise.
11719         * modules/search-tests: Likewise.
11720         * modules/select-tests: Likewise.
11721         * modules/signal-tests: Likewise.
11722         * modules/stdbool-tests: Likewise.
11723         * modules/stddef-tests: Likewise.
11724         * modules/stdint-tests: Likewise.
11725         * modules/stdio-tests: Likewise.
11726         * modules/stdlib-tests: Likewise.
11727         * modules/string-tests: Likewise.
11728         * modules/strings-tests: Likewise.
11729         * modules/sys_select-tests: Likewise.
11730         * modules/sys_socket-tests: Likewise.
11731         * modules/sys_stat-tests: Likewise.
11732         * modules/sys_time-tests: Likewise.
11733         * modules/sys_utsname-tests: Likewise.
11734         * modules/sysexits-tests: Likewise.
11735         * modules/time-tests: Likewise.
11736         * modules/trunc-tests: Likewise.
11737         * modules/truncf-tests: Likewise.
11738         * modules/truncl-tests: Likewise.
11739         * modules/tsearch-tests: Likewise.
11740         * modules/unistd-tests: Likewise.
11741         * modules/wchar-tests: Likewise.
11742         * modules/wctype-tests: Likewise.
11743
11744         tests: fix license on several tests
11745         * tests/test-des.c: Update to GPLv3+.
11746         * tests/test-flock.c: Likewise.
11747         * tests/test-fsync.c: Likewise.
11748         * tests/test-futimens.h: Likewise.
11749         * tests/test-gc-arcfour.c: Likewise.
11750         * tests/test-gc-arctwo.c: Likewise.
11751         * tests/test-gc-des.c: Likewise.
11752         * tests/test-gc-hmac-md5.c: Likewise.
11753         * tests/test-gc-hmac-sha1.c: Likewise.
11754         * tests/test-gc-md2.c: Likewise.
11755         * tests/test-gc-md4.c: Likewise.
11756         * tests/test-gc-md5.c: Likewise.
11757         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11758         * tests/test-gc-rijndael.c: Likewise.
11759         * tests/test-gc-sha1.c: Likewise.
11760         * tests/test-gc.c: Likewise.
11761         * tests/test-getcwd.c: Likewise.
11762         * tests/test-link.c: Likewise.
11763         * tests/test-link.h: Likewise.
11764         * tests/test-lutimens.h: Likewise.
11765         * tests/test-md2.c: Likewise.
11766         * tests/test-md4.c: Likewise.
11767         * tests/test-mkdir.h: Likewise.
11768         * tests/test-rename.c: Likewise.
11769         * tests/test-rename.h: Likewise.
11770         * tests/test-safe-alloc.c: Likewise.
11771         * tests/test-utimens-common.h: Likewise.
11772         * tests/test-utimens.h: Likewise.
11773
11774         maint: sync license texts
11775         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11776         * doc/gpl-3.0.texi: Revert copyright year update.
11777         * doc/lgpl-3.0.texi: Likewise.
11778
11779 2009-12-29  Jim Meyering  <meyering@redhat.com>
11780
11781         update nearly all FSF copyright year lists to include 2009
11782         The files named by the following are exempted:
11783             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11784               test -f "$dst" && { echo "$dst"; continue; }
11785               test -d "$dst" || continue
11786               echo "$dst"/$(basename "$src")
11787             done > exempt
11788             git ls-files tests/unictype >> exempt
11789         In the remaining files, convert to all-interval notation if
11790         - there is already at least one year interval like 2000-2003
11791         - the file is maintained by me
11792         - the file is in lib/uni*/, where that style already prevails
11793         Otherwise, use update-copyright's default.
11794
11795 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11796         and Eric Blake  <ebb9@byu.net>
11797
11798         tests: don't require debug system() to pass
11799         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11800         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11801         * tests/test-unlink.h (test_unlink_func): Likewise.
11802         * tests/test-fstatat.c (main): ...into callers.
11803         * tests/test-lstat.c (main): Likewise.
11804         * tests/test-rmdir.c (main): Likewise.
11805         * tests/test-unlink.c (main): Likewise.
11806         * tests/test-unlinkat.c (main): Likewise.
11807         * tests/test-areadlink-with-size.c (main): Don't require a
11808         debug-only system call to pass, aiding cross-testing to mingw.
11809         * tests/test-areadlink.c (main): Likewise.
11810         * tests/test-areadlinkat-with-size.c (main): Likewise.
11811         * tests/test-areadlinkat.c (main): Likewise.
11812         * tests/test-canonicalize-lgpl.c (main): Likewise.
11813         * tests/test-canonicalize.c (main): Likewise.
11814         * tests/test-chown.c (main): Likewise.
11815         * tests/test-fchownat.c (main): Likewise.
11816         * tests/test-lchown.c (main): Likewise.
11817         * tests/test-fdutimensat.c (main): Likewise.
11818         * tests/test-futimens.c (main): Likewise.
11819         * tests/test-link.c (main): Likewise.
11820         * tests/test-linkat.c (main): Likewise.
11821         * tests/test-mkdir.c (main): Likewise.
11822         * tests/test-mkdirat.c (main): Likewise.
11823         * tests/test-mkfifo.c (main): Likewise.
11824         * tests/test-mkfifoat.c (main): Likewise.
11825         * tests/test-mknod.c (main): Likewise.
11826         * tests/test-readlink.c (main): Likewise.
11827         * tests/test-remove.c (main): Likewise.
11828         * tests/test-rename.c (main): Likewise.
11829         * tests/test-renameat.c (main): Likewise.
11830         * tests/test-symlink.c (main): Likewise.
11831         * tests/test-symlinkat.c (main): Likewise.
11832         * tests/test-utimens.c (main): Likewise.
11833         * tests/test-utimensat.c (main): Likewise.
11834
11835 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11836
11837         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11838         on $(UNUSED_PARAMETER_H) to avoid build failure.
11839
11840 2009-12-28  Jim Meyering  <meyering@redhat.com>
11841
11842         update-copyright: you may specify a max. line length other than 72
11843         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11844
11845         maint: use consistent FSF copyright line syntax
11846         * lib/posixtm.c: Add missing comma in FSF copyright line.
11847         * lib/posixtm.h: Likewise.
11848         * lib/getugroups.c: Add missing ", Inc.".
11849
11850         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11851         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11852         FSF copyright line.  Remove trailing blanks.
11853
11854 2009-12-28  Eric Blake  <ebb9@byu.net>
11855
11856         test-dup2: reduce dependencies
11857         * modules/cloexec (Configure.ac): Set witness.
11858         * modules/dup2-tests (Depends-on): Drop cloexec.
11859         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11860         not present.
11861         Suggested by Bruno Haible.
11862
11863 2009-12-26  Bruno Haible  <bruno@clisp.org>
11864
11865         Remove an unneeded dependency.
11866         * modules/fseterr (Depends-on): Remove dup2.
11867
11868 2009-12-26  Eric Blake  <ebb9@byu.net>
11869
11870         tests: use macros.h in more places
11871         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11872         (ASSERT_STREAM): Provide default of stderr.
11873         * tests/test-dirent-safer.c: Include macros.h, using alternate
11874         stream for assertions.
11875         * tests/test-dup-safer.c: Likewise.
11876         * tests/test-freopen-safer.c: Likewise.
11877         * tests/test-getopt.c: Likewise.
11878         * tests/test-openat-safer.c: Likewise.
11879         * tests/test-pipe.c: Likewise.
11880         * tests/test-popen-safer.c: Likewise.
11881         * modules/dirent-safer-tests (Files): Include macros.h.
11882         * modules/unistd-safer-tests (Files): Likewise.
11883         * modules/freopen-safer-tests (Files): Likewise.
11884         * modules/getopt-posix-tests (Files): Likewise.
11885         * modules/openat-safer-tests (Files): Likewise.
11886         * modules/pipe-tests (Files): Likewise.
11887
11888 2009-12-26  Bruno Haible  <bruno@clisp.org>
11889
11890         javacomp: Portability fix.
11891         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11892         that it also works on Solaris.
11893
11894 2009-12-26  Bruno Haible  <bruno@clisp.org>
11895
11896         localename: Fix storage allocation of gl_locale_name_thread's result.
11897         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11898         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11899         all platforms that have 'uselocale'.
11900         (gl_locale_name_thread_unsafe): New function, extracted from
11901         gl_locale_name_thread.
11902         (gl_locale_name_thread): Call struniq on all platforms that have
11903         'uselocale'.
11904         * tests/test-localename.c (test_locale_name_thread): Check that the
11905         resulting strings are permanently allocated.
11906         * modules/localename-tests (Depends-on): Add strdup.
11907
11908 2009-12-26  Bruno Haible  <bruno@clisp.org>
11909
11910         * tests/test-localename.c (categories): Fill in the strings.
11911
11912 2009-12-26  Jim Meyering  <meyering@redhat.com>
11913
11914         isdir: complete the removal of m4/isdir.m4
11915         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11916
11917         isdir: clean up, since at least grep still uses it
11918         * lib/isdir.c: Include "isdir.h".
11919         (S_ISDIR): Remove now-unneeded definition.
11920         * modules/isdir (Files): Add lib/isdir.h.
11921         * lib/isdir.h: New file, with declaration.
11922         * m4/isdir.m4: Remove file -- unneeded.
11923
11924 2009-12-25  Bruno Haible  <bruno@clisp.org>
11925
11926         selinux-h: Make generated .h files standalone.
11927         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11928         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11929         * lib/se-selinux.in.h: Likewise.
11930         * modules/selinux-h (Depends-on): Add unused-parameter.
11931         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11932         selinux/selinux.h and selinux/context.h.
11933         Suggested by Eric Blake.
11934
11935 2009-12-25  Bruno Haible  <bruno@clisp.org>
11936
11937         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11938         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11939         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11940         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11941         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11942
11943 2009-12-24  Bruno Haible  <bruno@clisp.org>
11944
11945         openat: Fix warning.
11946         * lib/openat-proc.c: Include <unistd.h>.
11947
11948 2009-12-24  Bruno Haible  <bruno@clisp.org>
11949
11950         New module 'unused-parameter'.
11951         * build-aux/unused-parameter.h: New file, extracted from earlier
11952         gnulib-common.m4.
11953         * modules/unused-parameter: New file.
11954         * lib/unistr.h: Include unused-parameter.h.
11955         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11956         _GL_UNUSED.
11957         * modules/unistr/base (Depends-on): Add unused-parameter.
11958
11959 2009-12-24  Bruno Haible  <bruno@clisp.org>
11960
11961         Add missing dependencies to 'extensions' module.
11962         * m4/extensions.m4: Add comment.
11963         * modules/accept4 (Depends-on): Add extensions.
11964         * modules/dup3 (Depends-on): Likewise.
11965         * modules/fcntl (Depends-on): Likewise.
11966         * modules/futimens (Depends-on): Likewise.
11967         * modules/mknod (Depends-on): Likewise.
11968         * modules/pipe2 (Depends-on): Likewise.
11969         * modules/stat-time (Depends-on): Likewise.
11970         * modules/strcasestr-simple (Depends-on): Likewise.
11971         * modules/strsignal (Depends-on): Likewise.
11972         * modules/utimensat (Depends-on): Likewise.
11973         * modules/localcharset (Depends-on): Likewise. Needed because of
11974         gl_FCNTL_O_FLAGS.
11975         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11976         AC_TYPE_MBSTATE_T.
11977         * modules/wcsnrtombs (Depends-on): Likewise.
11978         * modules/wcsrtombs (Depends-on): Likewise.
11979
11980 2009-12-24  Bruno Haible  <bruno@clisp.org>
11981
11982         binary-io: Avoid gcc warning due to SET_BINARY.
11983         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11984         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11985
11986 2009-12-24  Bruno Haible  <bruno@clisp.org>
11987
11988         Avoid future namespace pollution on glibc systems.
11989         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11990         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11991         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11992         glibc systems.
11993
11994 2009-12-24  Bruno Haible  <bruno@clisp.org>
11995
11996         Refactor common macros used in tests.
11997         * tests/macros.h: New file.
11998         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11999         and/or <stdlib.h>, if appropriate.
12000         (ASSERT, SIZEOF): Remove macros.
12001         * tests/test-areadlink-with-size.c: Likewise.
12002         * tests/test-areadlinkat.c: Likewise.
12003         * tests/test-areadlinkat-with-size.c: Likewise.
12004         * tests/test-argmatch.c: Likewise.
12005         * tests/test-argv-iter.c: Likewise.
12006         * tests/test-array-mergesort.c: Likewise.
12007         * tests/test-array_list.c: Likewise.
12008         * tests/test-array_oset.c: Likewise.
12009         * tests/test-avltree_list.c: Likewise.
12010         * tests/test-avltree_oset.c: Likewise.
12011         * tests/test-avltreehash_list.c: Likewise.
12012         * tests/test-base64.c: Likewise.
12013         * tests/test-binary-io.c: Likewise.
12014         * tests/test-bitrotate.c: Likewise.
12015         * tests/test-btowc.c: Likewise.
12016         * tests/test-byteswap.c: Likewise.
12017         * tests/test-c-ctype.c: Likewise.
12018         * tests/test-c-stack.c: Likewise.
12019         * tests/test-c-strcasecmp.c: Likewise.
12020         * tests/test-c-strcasestr.c: Likewise.
12021         * tests/test-c-strncasecmp.c: Likewise.
12022         * tests/test-c-strstr.c: Likewise.
12023         * tests/test-canonicalize-lgpl.c: Likewise.
12024         * tests/test-canonicalize.c: Likewise.
12025         * tests/test-carray_list.c: Likewise.
12026         * tests/test-ceilf1.c: Likewise.
12027         * tests/test-ceilf2.c: Likewise.
12028         * tests/test-ceill.c: Likewise.
12029         * tests/test-chown.c: Likewise.
12030         * tests/test-cloexec.c: Likewise.
12031         * tests/test-copy-acl.c: Likewise.
12032         * tests/test-copy-file.c: Likewise.
12033         * tests/test-count-one-bits.c: Likewise.
12034         * tests/test-dprintf-posix.c: Likewise.
12035         * tests/test-dup2.c: Likewise.
12036         * tests/test-dup3.c: Likewise.
12037         * tests/test-duplocale.c: Likewise.
12038         * tests/test-fbufmode.c: Likewise.
12039         * tests/test-fchdir.c: Likewise.
12040         * tests/test-fchownat.c: Likewise.
12041         * tests/test-fcntl-safer.c: Likewise.
12042         * tests/test-fcntl.c: Likewise.
12043         * tests/test-fdopendir.c: Likewise.
12044         * tests/test-fdutimensat.c: Likewise.
12045         * tests/test-fflush2.c: Likewise.
12046         * tests/test-file-has-acl.c: Likewise.
12047         * tests/test-filevercmp.c: Likewise.
12048         * tests/test-flock.c: Likewise.
12049         * tests/test-floorf1.c: Likewise.
12050         * tests/test-floorf2.c: Likewise.
12051         * tests/test-floorl.c: Likewise.
12052         * tests/test-fnmatch.c: Likewise.
12053         * tests/test-fopen.h: Likewise.
12054         * tests/test-fpending.c: Likewise.
12055         * tests/test-fprintf-posix.c: Likewise.
12056         * tests/test-fpurge.c: Likewise.
12057         * tests/test-freadable.c: Likewise.
12058         * tests/test-freadahead.c: Likewise.
12059         * tests/test-freading.c: Likewise.
12060         * tests/test-freadptr.c: Likewise.
12061         * tests/test-freadptr2.c: Likewise.
12062         * tests/test-freadseek.c: Likewise.
12063         * tests/test-freopen.c: Likewise.
12064         * tests/test-frexp.c: Likewise.
12065         * tests/test-frexpl.c: Likewise.
12066         * tests/test-fseek.c: Likewise.
12067         * tests/test-fseeko.c: Likewise.
12068         * tests/test-fstatat.c: Likewise.
12069         * tests/test-fstrcmp.c: Likewise.
12070         * tests/test-fsync.c: Likewise.
12071         * tests/test-ftell.c: Likewise.
12072         * tests/test-ftello.c: Likewise.
12073         * tests/test-func.c: Likewise.
12074         * tests/test-futimens.c: Likewise.
12075         * tests/test-fwritable.c: Likewise.
12076         * tests/test-fwriting.c: Likewise.
12077         * tests/test-getcwd.c: Likewise.
12078         * tests/test-getdate.c: Likewise.
12079         * tests/test-getdelim.c: Likewise.
12080         * tests/test-getdtablesize.c: Likewise.
12081         * tests/test-getgroups.c: Likewise.
12082         * tests/test-getline.c: Likewise.
12083         * tests/test-getndelim2.c: Likewise.
12084         * tests/test-glob.c: Likewise.
12085         * tests/test-hash.c: Likewise.
12086         * tests/test-i-ring.c: Likewise.
12087         * tests/test-iconv-utf.c: Likewise.
12088         * tests/test-iconv.c: Likewise.
12089         * tests/test-idpriv-drop.c: Likewise.
12090         * tests/test-idpriv-droptemp.c: Likewise.
12091         * tests/test-inet_ntop.c: Likewise.
12092         * tests/test-inet_pton.c: Likewise.
12093         * tests/test-isblank.c: Likewise.
12094         * tests/test-isfinite.c: Likewise.
12095         * tests/test-isinf.c: Likewise.
12096         * tests/test-isnan.c: Likewise.
12097         * tests/test-isnand.h: Likewise.
12098         * tests/test-isnanf.h: Likewise.
12099         * tests/test-isnanl.h: Likewise.
12100         * tests/test-lchown.c: Likewise.
12101         * tests/test-ldexpl.c: Likewise.
12102         * tests/test-link.c: Likewise.
12103         * tests/test-linkat.c: Likewise.
12104         * tests/test-linked_list.c: Likewise.
12105         * tests/test-linkedhash_list.c: Likewise.
12106         * tests/test-localename.c: Likewise.
12107         * tests/test-lseek.c: Likewise.
12108         * tests/test-lstat.c: Likewise.
12109         * tests/test-mbmemcasecmp.c: Likewise.
12110         * tests/test-mbmemcasecoll.c: Likewise.
12111         * tests/test-mbrtowc.c: Likewise.
12112         * tests/test-mbscasecmp.c: Likewise.
12113         * tests/test-mbscasestr1.c: Likewise.
12114         * tests/test-mbscasestr2.c: Likewise.
12115         * tests/test-mbscasestr3.c: Likewise.
12116         * tests/test-mbscasestr4.c: Likewise.
12117         * tests/test-mbschr.c: Likewise.
12118         * tests/test-mbscspn.c: Likewise.
12119         * tests/test-mbsinit.c: Likewise.
12120         * tests/test-mbsncasecmp.c: Likewise.
12121         * tests/test-mbsnrtowcs.c: Likewise.
12122         * tests/test-mbspbrk.c: Likewise.
12123         * tests/test-mbspcasecmp.c: Likewise.
12124         * tests/test-mbsrchr.c: Likewise.
12125         * tests/test-mbsrtowcs.c: Likewise.
12126         * tests/test-mbsspn.c: Likewise.
12127         * tests/test-mbsstr1.c: Likewise.
12128         * tests/test-mbsstr2.c: Likewise.
12129         * tests/test-mbsstr3.c: Likewise.
12130         * tests/test-memchr.c: Likewise.
12131         * tests/test-memchr2.c: Likewise.
12132         * tests/test-memcmp.c: Likewise.
12133         * tests/test-memmem.c: Likewise.
12134         * tests/test-memrchr.c: Likewise.
12135         * tests/test-mkdir.c: Likewise.
12136         * tests/test-mkdirat.c: Likewise.
12137         * tests/test-mkfifo.c: Likewise.
12138         * tests/test-mkfifoat.c: Likewise.
12139         * tests/test-mknod.c: Likewise.
12140         * tests/test-nanosleep.c: Likewise.
12141         * tests/test-nl_langinfo.c: Likewise.
12142         * tests/test-obstack-printf.c: Likewise.
12143         * tests/test-open.c: Likewise.
12144         * tests/test-openat.c: Likewise.
12145         * tests/test-pipe-filter-gi1.c: Likewise.
12146         * tests/test-pipe-filter-gi2-main.c: Likewise.
12147         * tests/test-pipe-filter-ii1.c: Likewise.
12148         * tests/test-pipe-filter-ii2-main.c: Likewise.
12149         * tests/test-pipe2.c: Likewise.
12150         * tests/test-popen.h: Likewise.
12151         * tests/test-posixtm.c: Likewise.
12152         * tests/test-pread.c: Likewise.
12153         * tests/test-printf-frexp.c: Likewise.
12154         * tests/test-printf-frexpl.c: Likewise.
12155         * tests/test-printf-posix.c: Likewise.
12156         * tests/test-priv-set.c: Likewise.
12157         * tests/test-quotearg.c: Likewise.
12158         * tests/test-random_r.c: Likewise.
12159         * tests/test-rawmemchr.c: Likewise.
12160         * tests/test-rbtree_list.c: Likewise.
12161         * tests/test-rbtree_oset.c: Likewise.
12162         * tests/test-rbtreehash_list.c: Likewise.
12163         * tests/test-readlink.c: Likewise.
12164         * tests/test-remove.c: Likewise.
12165         * tests/test-rename.c: Likewise.
12166         * tests/test-renameat.c: Likewise.
12167         * tests/test-rmdir.c: Likewise.
12168         * tests/test-round1.c: Likewise.
12169         * tests/test-roundf1.c: Likewise.
12170         * tests/test-roundl.c: Likewise.
12171         * tests/test-safe-alloc.c: Likewise.
12172         * tests/test-sameacls.c: Likewise.
12173         * tests/test-set-mode-acl.c: Likewise.
12174         * tests/test-setenv.c: Likewise.
12175         * tests/test-sigaction.c: Likewise.
12176         * tests/test-signbit.c: Likewise.
12177         * tests/test-sleep.c: Likewise.
12178         * tests/test-snprintf-posix.c: Likewise.
12179         * tests/test-snprintf.c: Likewise.
12180         * tests/test-sprintf-posix.c: Likewise.
12181         * tests/test-stat-time.c: Likewise.
12182         * tests/test-stat.c: Likewise.
12183         * tests/test-strcasestr.c: Likewise.
12184         * tests/test-strchrnul.c: Likewise.
12185         * tests/test-strerror.c: Likewise.
12186         * tests/test-striconv.c: Likewise.
12187         * tests/test-striconveh.c: Likewise.
12188         * tests/test-striconveha.c: Likewise.
12189         * tests/test-strsignal.c: Likewise.
12190         * tests/test-strstr.c: Likewise.
12191         * tests/test-strtod.c: Likewise.
12192         * tests/test-strverscmp.c: Likewise.
12193         * tests/test-symlink.c: Likewise.
12194         * tests/test-symlinkat.c: Likewise.
12195         * tests/test-trunc1.c: Likewise.
12196         * tests/test-trunc2.c: Likewise.
12197         * tests/test-truncf1.c: Likewise.
12198         * tests/test-truncf2.c: Likewise.
12199         * tests/test-truncl.c: Likewise.
12200         * tests/test-uname.c: Likewise.
12201         * tests/test-unlink.c: Likewise.
12202         * tests/test-unlinkat.c: Likewise.
12203         * tests/test-unsetenv.c: Likewise.
12204         * tests/test-usleep.c: Likewise.
12205         * tests/test-utimens.c: Likewise.
12206         * tests/test-utimensat.c: Likewise.
12207         * tests/test-vasnprintf-posix.c: Likewise.
12208         * tests/test-vasnprintf-posix2.c: Likewise.
12209         * tests/test-vasnprintf.c: Likewise.
12210         * tests/test-vasprintf-posix.c: Likewise.
12211         * tests/test-vasprintf.c: Likewise.
12212         * tests/test-vdprintf-posix.c: Likewise.
12213         * tests/test-vfprintf-posix.c: Likewise.
12214         * tests/test-vprintf-posix.c: Likewise.
12215         * tests/test-vsnprintf-posix.c: Likewise.
12216         * tests/test-vsnprintf.c: Likewise.
12217         * tests/test-vsprintf-posix.c: Likewise.
12218         * tests/test-wcrtomb.c: Likewise.
12219         * tests/test-wcsnrtombs.c: Likewise.
12220         * tests/test-wcsrtombs.c: Likewise.
12221         * tests/test-wctype.c: Likewise.
12222         * tests/test-wcwidth.c: Likewise.
12223         * tests/test-xfprintf-posix.c: Likewise.
12224         * tests/test-xmemdup0.c: Likewise.
12225         * tests/test-xprintf-posix.c: Likewise.
12226         * tests/test-xvasprintf.c: Likewise.
12227         * tests/unicase/test-locale-language.c: Likewise.
12228         * tests/unicase/test-mapping-part1.h: Likewise.
12229         * tests/unicase/test-predicate-part1.h: Likewise.
12230         * tests/unicase/test-u8-casecmp.c: Likewise.
12231         * tests/unicase/test-u8-casecoll.c: Likewise.
12232         * tests/unicase/test-u8-casefold.c: Likewise.
12233         * tests/unicase/test-u8-is-cased.c: Likewise.
12234         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12235         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12236         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12237         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12238         * tests/unicase/test-u8-tolower.c: Likewise.
12239         * tests/unicase/test-u8-totitle.c: Likewise.
12240         * tests/unicase/test-u8-toupper.c: Likewise.
12241         * tests/unicase/test-u16-casecmp.c: Likewise.
12242         * tests/unicase/test-u16-casecoll.c: Likewise.
12243         * tests/unicase/test-u16-casefold.c: Likewise.
12244         * tests/unicase/test-u16-is-cased.c: Likewise.
12245         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12246         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12247         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12248         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12249         * tests/unicase/test-u16-tolower.c: Likewise.
12250         * tests/unicase/test-u16-totitle.c: Likewise.
12251         * tests/unicase/test-u16-toupper.c: Likewise.
12252         * tests/unicase/test-u32-casecmp.c: Likewise.
12253         * tests/unicase/test-u32-casecoll.c: Likewise.
12254         * tests/unicase/test-u32-casefold.c: Likewise.
12255         * tests/unicase/test-u32-is-cased.c: Likewise.
12256         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12257         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12258         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12259         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12260         * tests/unicase/test-u32-tolower.c: Likewise.
12261         * tests/unicase/test-u32-totitle.c: Likewise.
12262         * tests/unicase/test-u32-toupper.c: Likewise.
12263         * tests/unicase/test-ulc-casecmp.c: Likewise.
12264         * tests/unicase/test-ulc-casecoll.c: Likewise.
12265         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12266         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12267         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12268         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12269         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12270         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12271         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12272         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12273         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12274         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12275         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12276         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12277         * tests/unictype/test-bidi_byname.c: Likewise.
12278         * tests/unictype/test-bidi_name.c: Likewise.
12279         * tests/unictype/test-bidi_of.c: Likewise.
12280         * tests/unictype/test-bidi_test.c: Likewise.
12281         * tests/unictype/test-block_list.c: Likewise.
12282         * tests/unictype/test-block_of.c: Likewise.
12283         * tests/unictype/test-block_test.c: Likewise.
12284         * tests/unictype/test-categ_and.c: Likewise.
12285         * tests/unictype/test-categ_and_not.c: Likewise.
12286         * tests/unictype/test-categ_byname.c: Likewise.
12287         * tests/unictype/test-categ_name.c: Likewise.
12288         * tests/unictype/test-categ_none.c: Likewise.
12289         * tests/unictype/test-categ_of.c: Likewise.
12290         * tests/unictype/test-categ_or.c: Likewise.
12291         * tests/unictype/test-categ_test_withtable.c: Likewise.
12292         * tests/unictype/test-combining.c: Likewise.
12293         * tests/unictype/test-decdigit.c: Likewise.
12294         * tests/unictype/test-digit.c: Likewise.
12295         * tests/unictype/test-mirror.c: Likewise.
12296         * tests/unictype/test-numeric.c: Likewise.
12297         * tests/unictype/test-pr_byname.c: Likewise.
12298         * tests/unictype/test-pr_test.c: Likewise.
12299         * tests/unictype/test-predicate-part1.h: Likewise.
12300         * tests/unictype/test-scripts.c: Likewise.
12301         * tests/unictype/test-sy_c_ident.c: Likewise.
12302         * tests/unictype/test-sy_java_ident.c: Likewise.
12303         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12304         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12305         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12306         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12307         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12308         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12309         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12310         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12311         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12312         * tests/uninorm/test-compat-decomposition.c: Likewise.
12313         * tests/uninorm/test-composition.c: Likewise.
12314         * tests/uninorm/test-decomposing-form.c: Likewise.
12315         * tests/uninorm/test-decomposition.c: Likewise.
12316         * tests/uninorm/test-u8-nfc.c: Likewise.
12317         * tests/uninorm/test-u8-nfd.c: Likewise.
12318         * tests/uninorm/test-u8-nfkc.c: Likewise.
12319         * tests/uninorm/test-u8-nfkd.c: Likewise.
12320         * tests/uninorm/test-u8-normcmp.c: Likewise.
12321         * tests/uninorm/test-u8-normcoll.c: Likewise.
12322         * tests/uninorm/test-u16-nfc.c: Likewise.
12323         * tests/uninorm/test-u16-nfd.c: Likewise.
12324         * tests/uninorm/test-u16-nfkc.c: Likewise.
12325         * tests/uninorm/test-u16-nfkd.c: Likewise.
12326         * tests/uninorm/test-u16-normcmp.c: Likewise.
12327         * tests/uninorm/test-u16-normcoll.c: Likewise.
12328         * tests/uninorm/test-u32-nfc.c: Likewise.
12329         * tests/uninorm/test-u32-nfd.c: Likewise.
12330         * tests/uninorm/test-u32-nfkc.c: Likewise.
12331         * tests/uninorm/test-u32-nfkd.c: Likewise.
12332         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12333         * tests/uninorm/test-u32-normcmp.c: Likewise.
12334         * tests/uninorm/test-u32-normcoll.c: Likewise.
12335         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12336         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12337         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12338         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12339         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12340         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12341         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12342         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12343         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12344         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12345         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12346         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12347         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12348         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12349         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12350         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12351         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12352         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12353         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12354         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12355         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12356         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12357         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12358         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12359         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12360         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12361         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12362         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12363         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12364         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12365         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12366         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12367         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12368         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12369         * tests/uniwidth/test-u8-width.c: Likewise.
12370         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12371         * tests/uniwidth/test-u16-width.c: Likewise.
12372         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12373         * tests/uniwidth/test-u32-width.c: Likewise.
12374         * tests/uniwidth/test-uc_width.c: Likewise.
12375         * tests/uniwidth/test-uc_width2.c: Likewise.
12376         * modules/acl-tests (Files): Add tests/macros.h.
12377         * modules/areadlink-tests (Files): Likewise.
12378         * modules/areadlink-with-size-tests (Files): Likewise.
12379         * modules/areadlinkat-tests (Files): Likewise.
12380         * modules/areadlinkat-with-size-tests (Files): Likewise.
12381         * modules/argmatch-tests (Files): Likewise.
12382         * modules/argv-iter-tests (Files): Likewise.
12383         * modules/array-list-tests (Files): Likewise.
12384         * modules/array-mergesort-tests (Files): Likewise.
12385         * modules/array-oset-tests (Files): Likewise.
12386         * modules/avltree-list-tests (Files): Likewise.
12387         * modules/avltree-oset-tests (Files): Likewise.
12388         * modules/avltreehash-list-tests (Files): Likewise.
12389         * modules/base64-tests (Files): Likewise.
12390         * modules/binary-io-tests (Files): Likewise.
12391         * modules/bitrotate-tests (Files): Likewise.
12392         * modules/btowc-tests (Files): Likewise.
12393         * modules/byteswap-tests (Files): Likewise.
12394         * modules/c-ctype-tests (Files): Likewise.
12395         * modules/c-stack-tests (Files): Likewise.
12396         * modules/c-strcase-tests (Files): Likewise.
12397         * modules/c-strcasestr-tests (Files): Likewise.
12398         * modules/c-strstr-tests (Files): Likewise.
12399         * modules/canonicalize-lgpl-tests (Files): Likewise.
12400         * modules/canonicalize-tests (Files): Likewise.
12401         * modules/carray-list-tests (Files): Likewise.
12402         * modules/ceilf-tests (Files): Likewise.
12403         * modules/ceill-tests (Files): Likewise.
12404         * modules/chown-tests (Files): Likewise.
12405         * modules/cloexec-tests (Files): Likewise.
12406         * modules/copy-file-tests (Files): Likewise.
12407         * modules/count-one-bits-tests (Files): Likewise.
12408         * modules/dprintf-posix-tests (Files): Likewise.
12409         * modules/dup2-tests (Files): Likewise.
12410         * modules/dup3-tests (Files): Likewise.
12411         * modules/duplocale-tests (Files): Likewise.
12412         * modules/fbufmode-tests (Files): Likewise.
12413         * modules/fchdir-tests (Files): Likewise.
12414         * modules/fcntl-safer-tests (Files): Likewise.
12415         * modules/fcntl-tests (Files): Likewise.
12416         * modules/fdopendir-tests (Files): Likewise.
12417         * modules/fdutimensat-tests (Files): Likewise.
12418         * modules/fflush-tests (Files): Likewise.
12419         * modules/filevercmp-tests (Files): Likewise.
12420         * modules/flock-tests (Files): Likewise.
12421         * modules/floorf-tests (Files): Likewise.
12422         * modules/floorl-tests (Files): Likewise.
12423         * modules/fnmatch-tests (Files): Likewise.
12424         * modules/fopen-safer-tests (Files): Likewise.
12425         * modules/fopen-tests (Files): Likewise.
12426         * modules/fpending-tests (Files): Likewise.
12427         * modules/fprintf-posix-tests (Files): Likewise.
12428         * modules/fpurge-tests (Files): Likewise.
12429         * modules/freadable-tests (Files): Likewise.
12430         * modules/freadahead-tests (Files): Likewise.
12431         * modules/freading-tests (Files): Likewise.
12432         * modules/freadptr-tests (Files): Likewise.
12433         * modules/freadseek-tests (Files): Likewise.
12434         * modules/freopen-tests (Files): Likewise.
12435         * modules/frexp-nolibm-tests (Files): Likewise.
12436         * modules/frexp-tests (Files): Likewise.
12437         * modules/frexpl-nolibm-tests (Files): Likewise.
12438         * modules/frexpl-tests (Files): Likewise.
12439         * modules/fseek-tests (Files): Likewise.
12440         * modules/fseeko-tests (Files): Likewise.
12441         * modules/fstrcmp-tests (Files): Likewise.
12442         * modules/fsync-tests (Files): Likewise.
12443         * modules/ftell-tests (Files): Likewise.
12444         * modules/ftello-tests (Files): Likewise.
12445         * modules/func-tests (Files): Likewise.
12446         * modules/futimens-tests (Files): Likewise.
12447         * modules/fwritable-tests (Files): Likewise.
12448         * modules/fwriting-tests (Files): Likewise.
12449         * modules/getcwd-tests (Files): Likewise.
12450         * modules/getdate-tests (Files): Likewise.
12451         * modules/getdelim-tests (Files): Likewise.
12452         * modules/getdtablesize-tests (Files): Likewise.
12453         * modules/getgroups-tests (Files): Likewise.
12454         * modules/getline-tests (Files): Likewise.
12455         * modules/getndelim2-tests (Files): Likewise.
12456         * modules/glob-tests (Files): Likewise.
12457         * modules/hash-tests (Files): Likewise.
12458         * modules/i-ring-tests (Files): Likewise.
12459         * modules/iconv-tests (Files): Likewise.
12460         * modules/iconv_open-utf-tests (Files): Likewise.
12461         * modules/idpriv-drop-tests (Files): Likewise.
12462         * modules/idpriv-droptemp-tests (Files): Likewise.
12463         * modules/inet_ntop-tests (Files): Likewise.
12464         * modules/inet_pton-tests (Files): Likewise.
12465         * modules/isblank-tests (Files): Likewise.
12466         * modules/isfinite-tests (Files): Likewise.
12467         * modules/isinf-tests (Files): Likewise.
12468         * modules/isnan-tests (Files): Likewise.
12469         * modules/isnand-nolibm-tests (Files): Likewise.
12470         * modules/isnand-tests (Files): Likewise.
12471         * modules/isnanf-nolibm-tests (Files): Likewise.
12472         * modules/isnanf-tests (Files): Likewise.
12473         * modules/isnanl-nolibm-tests (Files): Likewise.
12474         * modules/isnanl-tests (Files): Likewise.
12475         * modules/lchown-tests (Files): Likewise.
12476         * modules/ldexpl-tests (Files): Likewise.
12477         * modules/link-tests (Files): Likewise.
12478         * modules/linkat-tests (Files): Likewise.
12479         * modules/linked-list-tests (Files): Likewise.
12480         * modules/linkedhash-list-tests (Files): Likewise.
12481         * modules/localename-tests (Files): Likewise.
12482         * modules/lseek-tests (Files): Likewise.
12483         * modules/lstat-tests (Files): Likewise.
12484         * modules/mbmemcasecmp-tests (Files): Likewise.
12485         * modules/mbmemcasecoll-tests (Files): Likewise.
12486         * modules/mbrtowc-tests (Files): Likewise.
12487         * modules/mbscasecmp-tests (Files): Likewise.
12488         * modules/mbscasestr-tests (Files): Likewise.
12489         * modules/mbschr-tests (Files): Likewise.
12490         * modules/mbscspn-tests (Files): Likewise.
12491         * modules/mbsinit-tests (Files): Likewise.
12492         * modules/mbsncasecmp-tests (Files): Likewise.
12493         * modules/mbsnrtowcs-tests (Files): Likewise.
12494         * modules/mbspbrk-tests (Files): Likewise.
12495         * modules/mbspcasecmp-tests (Files): Likewise.
12496         * modules/mbsrchr-tests (Files): Likewise.
12497         * modules/mbsrtowcs-tests (Files): Likewise.
12498         * modules/mbsspn-tests (Files): Likewise.
12499         * modules/mbsstr-tests (Files): Likewise.
12500         * modules/memchr-tests (Files): Likewise.
12501         * modules/memchr2-tests (Files): Likewise.
12502         * modules/memcmp-tests (Files): Likewise.
12503         * modules/memmem-tests (Files): Likewise.
12504         * modules/memrchr-tests (Files): Likewise.
12505         * modules/mkdir-tests (Files): Likewise.
12506         * modules/mkfifo-tests (Files): Likewise.
12507         * modules/mkfifoat-tests (Files): Likewise.
12508         * modules/mknod-tests (Files): Likewise.
12509         * modules/nanosleep-tests (Files): Likewise.
12510         * modules/nl_langinfo-tests (Files): Likewise.
12511         * modules/obstack-printf-tests (Files): Likewise.
12512         * modules/open-tests (Files): Likewise.
12513         * modules/openat-tests (Files): Likewise.
12514         * modules/pipe-filter-gi-tests (Files): Likewise.
12515         * modules/pipe-filter-ii-tests (Files): Likewise.
12516         * modules/pipe2-tests (Files): Likewise.
12517         * modules/popen-safer-tests (Files): Likewise.
12518         * modules/popen-tests (Files): Likewise.
12519         * modules/posixtm-tests (Files): Likewise.
12520         * modules/pread-tests (Files): Likewise.
12521         * modules/printf-frexp-tests (Files): Likewise.
12522         * modules/printf-frexpl-tests (Files): Likewise.
12523         * modules/printf-posix-tests (Files): Likewise.
12524         * modules/priv-set-tests (Files): Likewise.
12525         * modules/quotearg-tests (Files): Likewise.
12526         * modules/random_r-tests (Files): Likewise.
12527         * modules/rawmemchr-tests (Files): Likewise.
12528         * modules/rbtree-list-tests (Files): Likewise.
12529         * modules/rbtree-oset-tests (Files): Likewise.
12530         * modules/rbtreehash-list-tests (Files): Likewise.
12531         * modules/readlink-tests (Files): Likewise.
12532         * modules/remove-tests (Files): Likewise.
12533         * modules/rename-tests (Files): Likewise.
12534         * modules/renameat-tests (Files): Likewise.
12535         * modules/rmdir-tests (Files): Likewise.
12536         * modules/round-tests (Files): Likewise.
12537         * modules/roundf-tests (Files): Likewise.
12538         * modules/roundl-tests (Files): Likewise.
12539         * modules/safe-alloc-tests (Files): Likewise.
12540         * modules/setenv-tests (Files): Likewise.
12541         * modules/sigaction-tests (Files): Likewise.
12542         * modules/signbit-tests (Files): Likewise.
12543         * modules/sleep-tests (Files): Likewise.
12544         * modules/snprintf-posix-tests (Files): Likewise.
12545         * modules/snprintf-tests (Files): Likewise.
12546         * modules/sprintf-posix-tests (Files): Likewise.
12547         * modules/stat-tests (Files): Likewise.
12548         * modules/stat-time-tests (Files): Likewise.
12549         * modules/strcasestr-tests (Files): Likewise.
12550         * modules/strchrnul-tests (Files): Likewise.
12551         * modules/strerror-tests (Files): Likewise.
12552         * modules/striconv-tests (Files): Likewise.
12553         * modules/striconveh-tests (Files): Likewise.
12554         * modules/striconveha-tests (Files): Likewise.
12555         * modules/strsignal-tests (Files): Likewise.
12556         * modules/strstr-tests (Files): Likewise.
12557         * modules/strtod-tests (Files): Likewise.
12558         * modules/strverscmp-tests (Files): Likewise.
12559         * modules/symlink-tests (Files): Likewise.
12560         * modules/symlinkat-tests (Files): Likewise.
12561         * modules/trunc-tests (Files): Likewise.
12562         * modules/truncf-tests (Files): Likewise.
12563         * modules/truncl-tests (Files): Likewise.
12564         * modules/uname-tests (Files): Likewise.
12565         * modules/unicase/cased-tests (Files): Likewise.
12566         * modules/unicase/ignorable-tests (Files): Likewise.
12567         * modules/unicase/locale-language-tests (Files): Likewise.
12568         * modules/unicase/tolower-tests (Files): Likewise.
12569         * modules/unicase/totitle-tests (Files): Likewise.
12570         * modules/unicase/toupper-tests (Files): Likewise.
12571         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12572         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12573         * modules/unicase/u8-casefold-tests (Files): Likewise.
12574         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12575         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12576         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12577         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12578         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12579         * modules/unicase/u8-tolower-tests (Files): Likewise.
12580         * modules/unicase/u8-totitle-tests (Files): Likewise.
12581         * modules/unicase/u8-toupper-tests (Files): Likewise.
12582         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12583         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12584         * modules/unicase/u16-casefold-tests (Files): Likewise.
12585         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12586         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12587         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12588         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12589         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12590         * modules/unicase/u16-tolower-tests (Files): Likewise.
12591         * modules/unicase/u16-totitle-tests (Files): Likewise.
12592         * modules/unicase/u16-toupper-tests (Files): Likewise.
12593         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12594         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12595         * modules/unicase/u32-casefold-tests (Files): Likewise.
12596         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12597         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12598         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12599         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12600         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12601         * modules/unicase/u32-tolower-tests (Files): Likewise.
12602         * modules/unicase/u32-totitle-tests (Files): Likewise.
12603         * modules/unicase/u32-toupper-tests (Files): Likewise.
12604         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12605         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12606         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12607         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12608         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12609         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12610         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12611         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12612         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12613         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12614         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12615         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12616         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12617         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12618         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12619         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12620         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12621         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12622         * modules/unictype/block-list-tests (Files): Likewise.
12623         * modules/unictype/block-of-tests (Files): Likewise.
12624         * modules/unictype/block-test-tests (Files): Likewise.
12625         * modules/unictype/category-C-tests (Files): Likewise.
12626         * modules/unictype/category-Cc-tests (Files): Likewise.
12627         * modules/unictype/category-Cf-tests (Files): Likewise.
12628         * modules/unictype/category-Cn-tests (Files): Likewise.
12629         * modules/unictype/category-Co-tests (Files): Likewise.
12630         * modules/unictype/category-Cs-tests (Files): Likewise.
12631         * modules/unictype/category-L-tests (Files): Likewise.
12632         * modules/unictype/category-Ll-tests (Files): Likewise.
12633         * modules/unictype/category-Lm-tests (Files): Likewise.
12634         * modules/unictype/category-Lo-tests (Files): Likewise.
12635         * modules/unictype/category-Lt-tests (Files): Likewise.
12636         * modules/unictype/category-Lu-tests (Files): Likewise.
12637         * modules/unictype/category-M-tests (Files): Likewise.
12638         * modules/unictype/category-Mc-tests (Files): Likewise.
12639         * modules/unictype/category-Me-tests (Files): Likewise.
12640         * modules/unictype/category-Mn-tests (Files): Likewise.
12641         * modules/unictype/category-N-tests (Files): Likewise.
12642         * modules/unictype/category-Nd-tests (Files): Likewise.
12643         * modules/unictype/category-Nl-tests (Files): Likewise.
12644         * modules/unictype/category-No-tests (Files): Likewise.
12645         * modules/unictype/category-P-tests (Files): Likewise.
12646         * modules/unictype/category-Pc-tests (Files): Likewise.
12647         * modules/unictype/category-Pd-tests (Files): Likewise.
12648         * modules/unictype/category-Pe-tests (Files): Likewise.
12649         * modules/unictype/category-Pf-tests (Files): Likewise.
12650         * modules/unictype/category-Pi-tests (Files): Likewise.
12651         * modules/unictype/category-Po-tests (Files): Likewise.
12652         * modules/unictype/category-Ps-tests (Files): Likewise.
12653         * modules/unictype/category-S-tests (Files): Likewise.
12654         * modules/unictype/category-Sc-tests (Files): Likewise.
12655         * modules/unictype/category-Sk-tests (Files): Likewise.
12656         * modules/unictype/category-Sm-tests (Files): Likewise.
12657         * modules/unictype/category-So-tests (Files): Likewise.
12658         * modules/unictype/category-Z-tests (Files): Likewise.
12659         * modules/unictype/category-Zl-tests (Files): Likewise.
12660         * modules/unictype/category-Zp-tests (Files): Likewise.
12661         * modules/unictype/category-Zs-tests (Files): Likewise.
12662         * modules/unictype/category-and-not-tests (Files): Likewise.
12663         * modules/unictype/category-and-tests (Files): Likewise.
12664         * modules/unictype/category-byname-tests (Files): Likewise.
12665         * modules/unictype/category-name-tests (Files): Likewise.
12666         * modules/unictype/category-none-tests (Files): Likewise.
12667         * modules/unictype/category-of-tests (Files): Likewise.
12668         * modules/unictype/category-or-tests (Files): Likewise.
12669         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12670         * modules/unictype/combining-class-tests (Files): Likewise.
12671         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12672         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12673         * modules/unictype/ctype-blank-tests (Files): Likewise.
12674         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12675         * modules/unictype/ctype-digit-tests (Files): Likewise.
12676         * modules/unictype/ctype-graph-tests (Files): Likewise.
12677         * modules/unictype/ctype-lower-tests (Files): Likewise.
12678         * modules/unictype/ctype-print-tests (Files): Likewise.
12679         * modules/unictype/ctype-punct-tests (Files): Likewise.
12680         * modules/unictype/ctype-space-tests (Files): Likewise.
12681         * modules/unictype/ctype-upper-tests (Files): Likewise.
12682         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12683         * modules/unictype/decimal-digit-tests (Files): Likewise.
12684         * modules/unictype/digit-tests (Files): Likewise.
12685         * modules/unictype/mirror-tests (Files): Likewise.
12686         * modules/unictype/numeric-tests (Files): Likewise.
12687         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12688         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12689         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12690         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12691         Likewise.
12692         * modules/unictype/property-bidi-block-separator-tests (Files):
12693         Likewise.
12694         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12695         Likewise.
12696         * modules/unictype/property-bidi-common-separator-tests (Files):
12697         Likewise.
12698         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12699         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12700         Likewise.
12701         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12702         Likewise.
12703         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12704         Likewise.
12705         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12706         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12707         Likewise.
12708         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12709         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12710         Likewise.
12711         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12712         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12713         * modules/unictype/property-bidi-segment-separator-tests (Files):
12714         Likewise.
12715         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12716         * modules/unictype/property-byname-tests (Files): Likewise.
12717         * modules/unictype/property-combining-tests (Files): Likewise.
12718         * modules/unictype/property-composite-tests (Files): Likewise.
12719         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12720         * modules/unictype/property-dash-tests (Files): Likewise.
12721         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12722         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12723         Likewise.
12724         * modules/unictype/property-deprecated-tests (Files): Likewise.
12725         * modules/unictype/property-diacritic-tests (Files): Likewise.
12726         * modules/unictype/property-extender-tests (Files): Likewise.
12727         * modules/unictype/property-format-control-tests (Files): Likewise.
12728         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12729         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12730         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12731         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12732         * modules/unictype/property-hyphen-tests (Files): Likewise.
12733         * modules/unictype/property-id-continue-tests (Files): Likewise.
12734         * modules/unictype/property-id-start-tests (Files): Likewise.
12735         * modules/unictype/property-ideographic-tests (Files): Likewise.
12736         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12737         * modules/unictype/property-ids-trinary-operator-tests (Files):
12738         Likewise.
12739         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12740         * modules/unictype/property-iso-control-tests (Files): Likewise.
12741         * modules/unictype/property-join-control-tests (Files): Likewise.
12742         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12743         * modules/unictype/property-line-separator-tests (Files): Likewise.
12744         * modules/unictype/property-logical-order-exception-tests (Files):
12745         Likewise.
12746         * modules/unictype/property-lowercase-tests (Files): Likewise.
12747         * modules/unictype/property-math-tests (Files): Likewise.
12748         * modules/unictype/property-non-break-tests (Files): Likewise.
12749         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12750         * modules/unictype/property-numeric-tests (Files): Likewise.
12751         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12752         * modules/unictype/property-other-default-ignorable-code-point-tests
12753         (Files): Likewise.
12754         * modules/unictype/property-other-grapheme-extend-tests (Files):
12755         Likewise.
12756         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12757         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12758         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12759         * modules/unictype/property-other-math-tests (Files): Likewise.
12760         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12761         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12762         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12763         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12764         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12765         * modules/unictype/property-private-use-tests (Files): Likewise.
12766         * modules/unictype/property-punctuation-tests (Files): Likewise.
12767         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12768         * modules/unictype/property-radical-tests (Files): Likewise.
12769         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12770         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12771         * modules/unictype/property-space-tests (Files): Likewise.
12772         * modules/unictype/property-terminal-punctuation-tests (Files):
12773         Likewise.
12774         * modules/unictype/property-test-tests (Files): Likewise.
12775         * modules/unictype/property-titlecase-tests (Files): Likewise.
12776         * modules/unictype/property-unassigned-code-value-tests (Files):
12777         Likewise.
12778         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12779         * modules/unictype/property-uppercase-tests (Files): Likewise.
12780         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12781         * modules/unictype/property-white-space-tests (Files): Likewise.
12782         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12783         * modules/unictype/property-xid-start-tests (Files): Likewise.
12784         * modules/unictype/property-zero-width-tests (Files): Likewise.
12785         * modules/unictype/scripts-tests (Files): Likewise.
12786         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12787         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12788         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12789         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12790         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12791         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12792         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12793         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12794         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12795         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12796         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12797         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12798         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12799         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12800         * modules/uninorm/composition-tests (Files): Likewise.
12801         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12802         * modules/uninorm/decomposition-tests (Files): Likewise.
12803         * modules/uninorm/filter-tests (Files): Likewise.
12804         * modules/uninorm/nfc-tests (Files): Likewise.
12805         * modules/uninorm/nfd-tests (Files): Likewise.
12806         * modules/uninorm/nfkc-tests (Files): Likewise.
12807         * modules/uninorm/nfkd-tests (Files): Likewise.
12808         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12809         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12810         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12811         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12812         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12813         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12814         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12815         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12816         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12817         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12818         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12819         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12820         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12821         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12822         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12823         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12824         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12825         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12826         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12827         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12828         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12829         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12830         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12831         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12832         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12833         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12834         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12835         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12836         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12837         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12838         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12839         * modules/uniwidth/u8-width-tests (Files): Likewise.
12840         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12841         * modules/uniwidth/u16-width-tests (Files): Likewise.
12842         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12843         * modules/uniwidth/u32-width-tests (Files): Likewise.
12844         * modules/uniwidth/width-tests (Files): Likewise.
12845         * modules/unlink-tests (Files): Likewise.
12846         * modules/unsetenv-tests (Files): Likewise.
12847         * modules/usleep-tests (Files): Likewise.
12848         * modules/utimens-tests (Files): Likewise.
12849         * modules/utimensat-tests (Files): Likewise.
12850         * modules/vasnprintf-posix-tests (Files): Likewise.
12851         * modules/vasnprintf-tests (Files): Likewise.
12852         * modules/vasprintf-posix-tests (Files): Likewise.
12853         * modules/vasprintf-tests (Files): Likewise.
12854         * modules/vdprintf-posix-tests (Files): Likewise.
12855         * modules/vfprintf-posix-tests (Files): Likewise.
12856         * modules/vprintf-posix-tests (Files): Likewise.
12857         * modules/vsnprintf-posix-tests (Files): Likewise.
12858         * modules/vsnprintf-tests (Files): Likewise.
12859         * modules/vsprintf-posix-tests (Files): Likewise.
12860         * modules/wcrtomb-tests (Files): Likewise.
12861         * modules/wcsnrtombs-tests (Files): Likewise.
12862         * modules/wcsrtombs-tests (Files): Likewise.
12863         * modules/wctype-tests (Files): Likewise.
12864         * modules/wcwidth-tests (Files): Likewise.
12865         * modules/xmemdup0-tests (Files): Likewise.
12866         * modules/xprintf-posix-tests (Files): Likewise.
12867         * modules/xvasprintf-tests (Files): Likewise.
12868
12869 2009-12-24  Eric Blake  <ebb9@byu.net>
12870
12871         test-nanosleep: fix typo
12872         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12873         patch.
12874         Reported by Bruno Haible.
12875
12876 2009-12-24  Bruno Haible  <bruno@clisp.org>
12877
12878         Reduce namespace pollution on glibc systems.
12879         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12880         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12881         systems.
12882         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12883         <getopt.h> on glibc systems.
12884         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12885         systems.
12886         * lib/fcntl.c: Include <unistd.h> here instead.
12887
12888 2009-12-24  Bruno Haible  <bruno@clisp.org>
12889
12890         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12891
12892 2009-12-24  Eric Blake  <ebb9@byu.net>
12893
12894         tests: add signature checks
12895         * tests/signature.h (SIGNATURE_CHECK): New file.
12896         * modules/atexit-tests (Files): Use it.
12897         * modules/btowc-tests (Files): Likewise.
12898         * modules/canonicalize-lgpl-tests (Files): Likewise.
12899         * modules/ceilf-tests (Files): Likewise.
12900         * modules/ceill-tests (Files): Likewise.
12901         * modules/chown-tests (Files): Likewise.
12902         * modules/dprintf-posix-tests (Files): Likewise.
12903         * modules/dup2-tests (Files): Likewise.
12904         * modules/dup3-tests (Files): Likewise.
12905         * modules/duplocale-tests (Files): Likewise.
12906         * modules/fchdir-tests (Files): Likewise.
12907         * modules/fcntl-tests (Files): Likewise.
12908         * modules/fdopendir-tests (Files): Likewise.
12909         * modules/fflush-tests (Files): Likewise.
12910         * modules/flock-tests (Files): Likewise.
12911         * modules/floorf-tests (Files): Likewise.
12912         * modules/floorl-tests (Files): Likewise.
12913         * modules/fnmatch-tests (Files): Likewise.
12914         * modules/fopen-tests (Files): Likewise.
12915         * modules/fprintf-posix-tests (Files): Likewise.
12916         * modules/freopen-tests (Files): Likewise.
12917         * modules/frexp-nolibm-tests (Files): Likewise.
12918         * modules/frexp-tests (Files): Likewise.
12919         * modules/frexpl-nolibm-tests (Files): Likewise.
12920         * modules/frexpl-tests (Files): Likewise.
12921         * modules/fseek-tests (Files): Likewise.
12922         * modules/fseeko-tests (Files): Likewise.
12923         * modules/fsync-tests (Files): Likewise.
12924         * modules/ftell-tests (Files): Likewise.
12925         * modules/ftello-tests (Files): Likewise.
12926         * modules/futimens-tests (Files): Likewise.
12927         * modules/getaddrinfo-tests (Files): Likewise.
12928         * modules/getcwd-tests (Files): Likewise.
12929         * modules/getdelim-tests (Files): Likewise.
12930         * modules/getdtablesize-tests (Files): Likewise.
12931         * modules/getgroups-tests (Files): Likewise.
12932         * modules/gethostname-tests (Files): Likewise.
12933         * modules/getline-tests (Files): Likewise.
12934         * modules/getopt-posix-tests (Files): Likewise.
12935         * modules/gettimeofday-tests (Files): Likewise.
12936         * modules/glob-tests (Files): Likewise.
12937         * modules/iconv-tests (Files): Likewise.
12938         * modules/inet_ntop-tests (Files): Likewise.
12939         * modules/inet_pton-tests (Files): Likewise.
12940         * modules/isblank-tests (Files): Likewise.
12941         * modules/lchown-tests (Files): Likewise.
12942         * modules/ldexpl-tests (Files): Likewise.
12943         * modules/link-tests (Files): Likewise.
12944         * modules/linkat-tests (Files): Likewise.
12945         * modules/lseek-tests (Files): Likewise.
12946         * modules/lstat-tests (Files): Likewise.
12947         * modules/mbrtowc-tests (Files): Likewise.
12948         * modules/mbsinit-tests (Files): Likewise.
12949         * modules/mbsnrtowcs-tests (Files): Likewise.
12950         * modules/mbsrtowcs-tests (Files): Likewise.
12951         * modules/memchr-tests (Files): Likewise.
12952         * modules/memcmp-tests (Files): Likewise.
12953         * modules/memmem-tests (Files): Likewise.
12954         * modules/memrchr-tests (Files): Likewise.
12955         * modules/mkdir-tests (Files): Likewise.
12956         * modules/mkfifo-tests (Files): Likewise.
12957         * modules/mkfifoat-tests (Files): Likewise.
12958         * modules/mknod-tests (Files): Likewise.
12959         * modules/nanosleep-tests (Files): Likewise.
12960         * modules/nl_langinfo-tests (Files): Likewise.
12961         * modules/obstack-printf-tests (Files): Likewise.
12962         * modules/open-tests (Files): Likewise.
12963         * modules/openat-tests (Files): Likewise.
12964         * modules/perror-tests (Files): Likewise.
12965         * modules/pipe2-tests (Files): Likewise.
12966         * modules/poll-tests (Files): Likewise.
12967         * modules/popen-tests (Files): Likewise.
12968         * modules/posix_spawn-tests (Files): Likewise.
12969         * modules/posix_spawnp-tests (Files): Likewise.
12970         * modules/pread-tests (Files): Likewise.
12971         * modules/printf-posix-tests (Files): Likewise.
12972         * modules/pty-tests (Files): Likewise.
12973         * modules/random_r-tests (Files): Likewise.
12974         * modules/rawmemchr-tests (Files): Likewise.
12975         * modules/readlink-tests (Files): Likewise.
12976         * modules/remove-tests (Files): Likewise.
12977         * modules/rename-tests (Files): Likewise.
12978         * modules/renameat-tests (Files): Likewise.
12979         * modules/rmdir-tests (Files): Likewise.
12980         * modules/round-tests (Files): Likewise.
12981         * modules/roundf-tests (Files): Likewise.
12982         * modules/roundl-tests (Files): Likewise.
12983         * modules/select-tests (Files): Likewise.
12984         * modules/setenv-tests (Files): Likewise.
12985         * modules/sigaction-tests (Files): Likewise.
12986         * modules/sleep-tests (Files): Likewise.
12987         * modules/snprintf-posix-tests (Files): Likewise.
12988         * modules/snprintf-tests (Files): Likewise.
12989         * modules/sprintf-posix-tests (Files): Likewise.
12990         * modules/stat-tests (Files): Likewise.
12991         * modules/strcasestr-tests (Files): Likewise.
12992         * modules/strchrnul-tests (Files): Likewise.
12993         * modules/strerror-tests (Files): Likewise.
12994         * modules/strsignal-tests (Files): Likewise.
12995         * modules/strstr-tests (Files): Likewise.
12996         * modules/strtod-tests (Files): Likewise.
12997         * modules/strverscmp-tests (Files): Likewise.
12998         * modules/symlink-tests (Files): Likewise.
12999         * modules/symlinkat-tests (Files): Likewise.
13000         * modules/times-tests (Files): Likewise.
13001         * modules/trunc-tests (Files): Likewise.
13002         * modules/truncf-tests (Files): Likewise.
13003         * modules/truncl-tests (Files): Likewise.
13004         * modules/tsearch-tests (Files): Likewise.
13005         * modules/uname-tests (Files): Likewise.
13006         * modules/unlink-tests (Files): Likewise.
13007         * modules/unsetenv-tests (Files): Likewise.
13008         * modules/usleep-tests (Files): Likewise.
13009         * modules/utimensat-tests (Files): Likewise.
13010         * modules/vasprintf-tests (Files): Likewise.
13011         * modules/vdprintf-posix-tests (Files): Likewise.
13012         * modules/vfprintf-posix-tests (Files): Likewise.
13013         * modules/vprintf-posix-tests (Files): Likewise.
13014         * modules/vsnprintf-posix-tests (Files): Likewise.
13015         * modules/vsnprintf-tests (Files): Likewise.
13016         * modules/vsprintf-posix-tests (Files): Likewise.
13017         * modules/wcrtomb-tests (Files): Likewise.
13018         * modules/wcsnrtombs-tests (Files): Likewise.
13019         * modules/wcsrtombs-tests (Files): Likewise.
13020         * modules/wcwidth-tests (Files): Likewise.
13021         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13022         * tests/test-isinf.c (isinf): Likewise.
13023         * tests/test-isnan.c (isnan): Likewise.
13024         * tests/test-signbit.c (signbit): Likewise.
13025         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13026         declaration, either as macro or with correct signature.
13027         (select): Ensure function under test is declared with correct
13028         signature in correct header.
13029         * tests/test-atexit.c (atexit): Likewise.
13030         * tests/test-btowc.c (btowc): Likewise.
13031         * tests/test-canonicalize-lgpl.c (realpath)
13032         (canonicalize_file_name): Likewise.
13033         * tests/test-ceilf1.c (ceilf): Likewise.
13034         * tests/test-ceill.c (ceill): Likewise.
13035         * tests/test-chown.c (chown): Likewise.
13036         * tests/test-dprintf-posix.c (dprintf): Likewise.
13037         * tests/test-dup2.c (dup2): Likewise.
13038         * tests/test-dup3.c (dup3): Likewise.
13039         * tests/test-duplocale.c (duplocale): Likewise.
13040         * tests/test-fchdir.c (fchdir): Likewise.
13041         * tests/test-fchownat.c (fchownat): Likewise.
13042         * tests/test-fcntl.c (fcntl): Likewise.
13043         * tests/test-fdopendir.c (fdopendir): Likewise.
13044         * tests/test-fflush.c (fflush): Likewise.
13045         * tests/test-flock.c (flock): Likewise.
13046         * tests/test-floorf1.c (floorf): Likewise.
13047         * tests/test-floorl.c (floorl): Likewise.
13048         * tests/test-fnmatch.c (fnmatch): Likewise.
13049         * tests/test-fopen.c (fopen): Likewise.
13050         * tests/test-fprintf-posix.c (fprintf): Likewise.
13051         * tests/test-freopen.c (freopen): Likewise.
13052         * tests/test-frexp.c (frexp): Likewise.
13053         * tests/test-frexpl.c (frexpl): Likewise.
13054         * tests/test-fseek.c (fseek): Likewise.
13055         * tests/test-fseeko.c (fseeko): Likewise.
13056         * tests/test-fstatat.c (fstatat): Likewise.
13057         * tests/test-fsync.c (fsync): Likewise.
13058         * tests/test-ftell.c (ftell): Likewise.
13059         * tests/test-ftello.c (ftello): Likewise.
13060         * tests/test-futimens.c (futimens): Likewise.
13061         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13062         (gai_strerror): Likewise.
13063         * tests/test-getcwd.c (getcwd): Likewise.
13064         * tests/test-getdelim.c (getdelim): Likewise.
13065         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13066         * tests/test-getgroups.c (getgroups): Likewise.
13067         * tests/test-gethostname.c (gethostname): Likewise.
13068         * tests/test-getline.c (getline): Likewise.
13069         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13070         Likewise.
13071         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13072         * tests/test-glob.c (glob, globfree): Likewise.
13073         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13074         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13075         * tests/test-inet_pton.c (inet_pton): Likewise.
13076         * tests/test-isblank.c (isblank): Likewise.
13077         * tests/test-lchown.c (lchown): Likewise.
13078         * tests/test-ldexpl.c (ldexpl): Likewise.
13079         * tests/test-link.c (link): Likewise.
13080         * tests/test-linkat.c (linkat): Likewise.
13081         * tests/test-lseek.c (lseek): Likewise.
13082         * tests/test-lstat.c (lstat): Likewise.
13083         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13084         * tests/test-mbsinit.c (mbsinit): Likewise.
13085         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13086         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13087         * tests/test-memchr.c (memchr): Likewise.
13088         * tests/test-memcmp.c (memcmp): Likewise.
13089         * tests/test-memmem.c (memmem): Likewise.
13090         * tests/test-memrchr.c (memrchr): Likewise.
13091         * tests/test-mkdir.c (mkdir): Likewise.
13092         * tests/test-mkdirat.c (mkdirat): Likewise.
13093         * tests/test-mkfifo.c (mkfifo): Likewise.
13094         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13095         * tests/test-mknod.c (mknod): Likewise.
13096         * tests/test-nanosleep.c (nanosleep): Likewise.
13097         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13098         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13099         Likewise.
13100         * tests/test-open.c (open): Likewise.
13101         * tests/test-openat.c (openat): Likewise.
13102         * tests/test-perror.c (perror): Likewise.
13103         * tests/test-pipe2.c (pipe2): Likewise.
13104         * tests/test-poll.c (poll): Likewise.
13105         * tests/test-popen.c (popen, pclose): Likewise.
13106         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13107         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13108         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13109         (posix_spawn_file_actions_destroy)
13110         (posix_spawn_file_actions_addclose)
13111         (posix_spawn_file_actions_addopen)
13112         (posix_spawn_file_actions_adddup2): Likewise.
13113         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13114         * tests/test-pread.c (pread): Likewise.
13115         * tests/test-printf-posix.c (printf): Likewise.
13116         * tests/test-pty.c (openpty, forkpty): Likewise.
13117         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13118         (random_r): Likewise.
13119         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13120         * tests/test-readlink.c (readlink): Likewise.
13121         * tests/test-remove.c (remove): Likewise.
13122         * tests/test-rename.c (rename): Likewise.
13123         * tests/test-renameat.c (renameat): Likewise.
13124         * tests/test-rmdir.c (rmdir): Likewise.
13125         * tests/test-round1.c (round): Likewise.
13126         * tests/test-roundf1.c (roundf): Likewise.
13127         * tests/test-roundl.c (roundl): Likewise.
13128         * tests/test-setenv.c (setenv): Likewise.
13129         * tests/test-sigaction.c (sigaction): Likewise.
13130         * tests/test-sleep.c (sleep): Likewise.
13131         * tests/test-snprintf.c (snprintf): Likewise.
13132         * tests/test-sprintf-posix.c (sprintf): Likewise.
13133         * tests/test-stat.c (stat): Likewise.
13134         * tests/test-stpncpy.c (stpncpy): Likewise.
13135         * tests/test-strcasestr.c (strcasestr): Likewise.
13136         * tests/test-strchrnul.c (strchrnul): Likewise.
13137         * tests/test-strerror.c (strerror): Likewise.
13138         * tests/test-strsignal.c (strsignal): Likewise.
13139         * tests/test-strstr.c (strstr): Likewise.
13140         * tests/test-strtod.c (strtod): Likewise.
13141         * tests/test-strverscmp.c (strverscmp): Likewise.
13142         * tests/test-symlink.c (symlink): Likewise.
13143         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13144         * tests/test-times.c (times): Likewise.
13145         * tests/test-trunc1.c (trunc): Likewise.
13146         * tests/test-truncf1.c (truncf): Likewise.
13147         * tests/test-truncl.c (truncl): Likewise.
13148         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13149         Likewise.
13150         * tests/test-uname.c (uname): Likewise.
13151         * tests/test-unlink.c (unlink): Likewise.
13152         * tests/test-unlinkat.c (unlinkat): Likewise.
13153         * tests/test-unsetenv.c (unsetenv): Likewise.
13154         * tests/test-usleep.c (usleep): Likewise.
13155         * tests/test-utimensat.c (utimensat): Likewise.
13156         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13157         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13158         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13159         * tests/test-vprintf-posix.c (vprintf): Likewise.
13160         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13161         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13162         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13163         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13164         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13165         * tests/test-wcwidth.c (wcwidth): Likewise.
13166
13167         build: pull in conditional headers during GNULIB_POSIXCHECK
13168         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13169         definitions from any conditionally-included headers.
13170         * lib/stdlib.in.h (includes): Likewise.
13171         * lib/unistd.in.h (includes): Likewise.
13172
13173 2009-12-24  Bruno Haible  <bruno@clisp.org>
13174
13175         * tests/test-argv-iter.c: Include header file being tested immediately
13176         after config.h.
13177         * tests/test-base64.c: Likewise.
13178         * tests/test-flock.c: Likewise.
13179         * tests/test-fsync.c: Likewise.
13180         * tests/test-getdate.c: Likewise.
13181         * tests/test-getndelim2.c: Likewise.
13182         * tests/test-isfinite.c: Likewise.
13183         * tests/test-isinf.c: Likewise.
13184         * tests/test-strerror.c: Likewise.
13185         * tests/test-strsignal.c: Likewise.
13186
13187 2009-12-23  Eric Blake  <ebb9@byu.net>
13188
13189         unistd: work around cygwin bug
13190         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13191         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13192         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13193
13194 2009-12-23  Bruno Haible  <bruno@clisp.org>
13195
13196         localename: More tests.
13197         * tests/test-localename.c (SIZEOF): New macro.
13198         (categories): New variable.
13199         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13200         test_locale_name_default): Add test w.r.t. thread locale.
13201         (test_locale_name_thread): New function.
13202         (main): Invoke it.
13203
13204         localename: Make aware of thread locale.
13205         * lib/localename.h (gl_locale_name_thread): New declaration.
13206         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13207         behaviour with respect to thread locale.
13208         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13209         <langinfo.h>, glthread/lock.h.
13210         (SIZE_BITS): New macro.
13211         (string_hash): New function.
13212         (struct hash_node): New type.
13213         (HASH_TABLE_SIZE): New macro.
13214         (struniq_hash_table, struniq_lock): New variables.
13215         (struniq): New function.
13216         (gl_locale_name_thread): New function.
13217         (gl_locale_name): Invoke it.
13218         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13219         * modules/localename (Depends-on): Add lock.
13220         Reported by Mike Gran <spk121@yahoo.com>.
13221
13222 2009-12-23  Eric Blake  <ebb9@byu.net>
13223
13224         va-args: new module
13225         * modules/va-args: New file.
13226         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13227         * MODULES.html.sh (Core language properties): Mention it.
13228
13229         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13230         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13231         named alias for __attribute__((__unused__)).
13232         * lib/chown.c: Update client.
13233         * lib/fchmodat.c: Likewise.
13234         * lib/fts.c: Likewise.
13235         * lib/getdate.y: Likewise.
13236         * lib/getgroups.c: Likewise.
13237         * lib/getopt.c: Likewise.
13238         * lib/getugroups.c: Likewise.
13239         * lib/mkdir.c: Likewise.
13240         * lib/mkfifo.c: Likewise.
13241         * lib/mkfifoat.c: Likewise.
13242         * lib/mknod.c: Likewise.
13243         * lib/mknodat.c: Likewise.
13244         * lib/readlink.c: Likewise.
13245         * lib/se-context.in.h: Likewise.
13246         * lib/se-selinux.in.h: Likewise.
13247         * lib/sockets.c: Likewise.
13248         * lib/symlink.c: Likewise.
13249         * lib/symlinkat.c: Likewise.
13250         * lib/unicodeio.c: Likewise.
13251         * lib/unistr.h: Likewise.
13252         * tests/test-areadlink.c: Likewise.
13253         * tests/test-areadlinkat.c: Likewise.
13254         * tests/test-filenamecat.c: Likewise.
13255         * tests/test-fseeko.c: Likewise.
13256         * tests/test-ftello.c: Likewise.
13257         * tests/test-getdate.c: Likewise.
13258         * tests/test-getgroups.c: Likewise.
13259         * tests/test-gethostname.c: Likewise.
13260         * tests/test-quotearg.c: Likewise.
13261         * tests/test-version-etc.c: Likewise.
13262         * tests/test-xalloc-die.c: Likewise.
13263         * tests/test-xfprintf-posix.c: Likewise.
13264         * tests/test-xprintf-posix.c: Likewise.
13265         * tests/test-xvasprintf.c: Likewise.
13266
13267         tests: avoid compiler warnings
13268         * tests/test-fcntl.c (main): Delete unused parameters.
13269         * tests/test-freopen-safer.c (main): Likewise.
13270         * tests/test-xalloc-die.c (main): Mark unused parameters.
13271         * tests/test-fseeko.c (main): Likewise.
13272         * tests/test-ftello.c (main): Likewise.
13273         * tests/test-nanosleep.c (main): Avoid declaration warning.
13274         * tests/test-sleep.c (main): Likewise.
13275         * tests/test-unsetenv.c (main): Silence warning about string
13276         literal.
13277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13278
13279 2009-12-23  Bruno Haible  <bruno@clisp.org>
13280
13281         * tests/test-localename.c (test_locale_name): New function, extracted
13282         from main. Also test mixed situations.
13283         (test_locale_name_posix, test_locale_name_environ,
13284         test_locale_name_default): New functions.
13285         (main): Invoke them all.
13286         * modules/localename-tests (configure.ac): Test for newlocale.
13287
13288 2009-12-23  Bruno Haible  <bruno@clisp.org>
13289
13290         unistd: Ensure getcwd gets declared before being overridden.
13291         * lib/unistd.in.h: Conditionally include <io.h>.
13292
13293 2009-12-22  Bruno Haible  <bruno@clisp.org>
13294
13295         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13296         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13297         (gl_WCHAR_H): Invoke it.
13298         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13299         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13300         Reported by Karl Berry <karl@freefriends.org>.
13301
13302 2009-12-22  Eric Blake  <ebb9@byu.net>
13303
13304         math, unistd: avoid redundant includes
13305         * lib/math.in.h (isnan): No need to re-include <math.h>.
13306         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13307
13308         getsubopt: work around cygwin bug
13309         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13310         avoid conflicting with system getsubopt.
13311         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13312         bug.
13313
13314         getopt: synchronize from glibc
13315         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13316         parameter order.  Adjust all callers.
13317         (_getopt_internal_r, main): Adjust quoting in error messages.
13318         Drop considerations for outdated POSIX 1003.2 error message.
13319         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13320         callers.
13321         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13322
13323         test-getopt: test stderr behavior
13324         * modules/getopt-posix-tests (Depends-on): Add dup2.
13325         * tests/test-getopt.c (ASSERT): Avoid stderr.
13326         (main): Move stderr to a temporary file.
13327         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13328         Instead, add parameter to inform caller if output occurred.
13329         (test_getopt): Adjust all existing tests to expect silence, and
13330         add new tests of leading ":".
13331         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13332         glibc shortcomings with leading "-:" or "+:" in optstring.
13333         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13334         Likewise.
13335         * doc/posix-functions/getopt.texi (getopt): Likewise.
13336
13337         test-getopt: enhance test
13338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13339         supports optind=0.
13340         * tests/test-getopt.c (OPTIND_MIN): Move...
13341         * tests/test-getopt.h (OPTIND_MIN): ...here.
13342         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13343         Require that optind=0 works, since modern BSD supports it in
13344         addition to optreset, and since coreutils expects it.
13345         (test_getopt_long_only): New test.
13346         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13347         glibc shortcomings with 'W;', and enforcement of optind=0.
13348         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13349         Likewise.
13350
13351 2009-12-21  Bruno Haible  <bruno@clisp.org>
13352
13353         localename: Improvements for MacOS X and Cygwin.
13354         * lib/localename.h (gl_locale_name_environ): New declaration.
13355         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13356         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13357         (gl_locale_name_posix): Invoke it.
13358         (gl_locale_name_default): Add comments. Use Windows native API also on
13359         Cygwin.
13360
13361 2009-12-21  Bruno Haible  <bruno@clisp.org>
13362
13363         Update list of Win32 locale ids.
13364         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13365         (LANG_SAMI): Renamed from LANG_SAAMI.
13366         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13367         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13368         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13369         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13370         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13371         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13372         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13373         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13374         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13375         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13376         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13377         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13378         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13379         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13380         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13381         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13382         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13383         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13384         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13385         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13386         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13387         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13388         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13389         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13390         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13391         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13392         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13393         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13394         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13395         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13396         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13397         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13398         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13399         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13400         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13401         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13402         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13403         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13404         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13405         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13406         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13407         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13408         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13409         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13410         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13411         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13412         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13413         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13414         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13415         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13416         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13417         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13418         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13419         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13420         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13421         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13422         Add more languages and countries for Sami, Sorbian. Add more countries
13423         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13424         for Pashto. Change country for Syriac, Tswana.
13425
13426 2009-12-21  Eric Blake  <ebb9@byu.net>
13427
13428         test-utimens: avoid spurious failure
13429         * tests/test-chown.h (nap): Factor...
13430         * tests/nap.h: ...into new file.
13431         * tests/test-lchown.h (nap): Avoid duplication.
13432         * tests/test-utimens-common.h (nap): Use shared implementation,
13433         necessary on file systems with 1-second resolution.
13434         * modules/chown-tests (Files): Include new file.
13435         * modules/fdutimensat-tests (Files): Likewise.
13436         * modules/futimens-tests (Files): Likewise.
13437         * modules/lchown-tests (Files): Likewise.
13438         * modules/openat-tests (Files): Likewise.
13439         * modules/utimens-tests (Files): Likewise.
13440         * modules/utimensat-tests (Files): Likewise.
13441
13442 2009-12-19  Eric Blake  <ebb9@byu.net>
13443
13444         futimens, utimensat: work around Linux bug
13445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13446         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13447         * lib/utimensat.c (rpl_utimensat): Work around it.
13448         * lib/futimens.c (rpl_futimens): Adjust comment.
13449
13450         utimens: work around Linux ctime bug
13451         * lib/utimens.c (detect_ctime_bug): New helper function.
13452         (update_timespec): Differentiate between workaround needed for
13453         this bug vs. what is needed for systems that lack utimensat.
13454         (fdutimens, lutimens): Work around bug.
13455
13456         utimens: check for ctime update
13457         * tests/test-utimens-common.h (check_ctime): Define.
13458         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13459         * tests/test-futimens.h (test_futimens): Likewise.
13460         * tests/test-lutimens.h (test_lutimens): Likewise.
13461         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13462         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13463
13464 2009-12-19  Bruno Haible  <bruno@clisp.org>
13465
13466         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13467         * tests/test-dprintf-posix2.sh: New file.
13468         * tests/test-dprintf-posix2.c: New file.
13469         * modules/dprintf-posix-tests (Files): Add them.
13470         (configure.ac): Check for getrlimit and setrlimit.
13471         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13472
13473 2009-12-19  Bruno Haible  <bruno@clisp.org>
13474
13475         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13476         * tests/test-fprintf-posix3.sh: New file.
13477         * tests/test-fprintf-posix3.c: New file.
13478         * modules/fprintf-posix-tests (Files): Add them.
13479         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13480
13481 2009-12-19  Eric Blake  <ebb9@byu.net>
13482
13483         dirfd: fix prototype
13484         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13485         * lib/dirfd.c (dirfd): Likewise.
13486
13487         canonicalize: reduce memory usage
13488         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13489         allocation to size.
13490         Reported by Solar Designer <solar@openwall.com>.
13491
13492 2009-12-19  Bruno Haible  <bruno@clisp.org>
13493
13494         New module attribute 'Applicability'.
13495         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13496         * gnulib-tool: New option --extract-applicability.
13497         (func_usage): Document it.
13498         (sed_extract_prog): Recognize it.
13499         (func_get_applicability): New function.
13500         (func_import): Generalize handling of 'link-warning' module.
13501         * modules/link-warning (Applicability): New section.
13502         * modules/arg-nonnull (Applicability): New section.
13503         Repoted by Simon Josefsson <simon@josefsson.org>.
13504
13505 2009-12-19  Bruno Haible  <bruno@clisp.org>
13506
13507         fflush: tweak
13508         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13509         * lib/fseeko.c (rpl_fseeko): Likewise.
13510
13511 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13512
13513         * lib/gl_list.h: Fix typo in comment.
13514
13515 2009-12-16  Eric Blake  <ebb9@byu.net>
13516
13517         fcntl: use to simplify other modules
13518         * modules/cloexec (Depends-on): Add fcntl.
13519         * modules/fchdir (Depends-on): Likewise.
13520         * modules/fd-safer-flag (Depends-on): Likewise.
13521         * modules/unistd-safer (Depends-on): Likewise.
13522         * modules/dup3 (configure.ac): Set module indicator.
13523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13524         missing.
13525         * lib/fchdir.c (_gl_register_dup): Fix comment.
13526         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13527         * lib/dup-safer.c (dup_safer): Likewise.
13528         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13529         * lib/dup3.c (dup3): Likewise.
13530         * tests/test-fchdir.c (main): Enhance test.
13531         Fixes a dup_cloexec bug reported by Ondřej Vašík.
13532
13533         fcntl: port portions of fcntl to mingw
13534         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13535         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13536         replacement for mingw.
13537         * modules/fcntl (Description): Update.
13538         (Depends-on): Add dup2.
13539         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13540         * modules/fcntl-h (Makefile.am): Substitute it.
13541         * lib/fcntl.in.h (fcntl): Update declaration.
13542         (F_DUPFD, F_GETFD): New macros, when needed.
13543         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13544         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13545         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13546         we now guarantee.
13547
13548         fcntl: work around cygwin bug in F_DUPFD
13549         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13550         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13551         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13552         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13553         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13554
13555         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13556         * modules/fcntl (Files): List new files.
13557         (configure.ac): Run a test.
13558         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13559         * lib/fcntl.c (rpl_fcntl): Likewise.
13560         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13561         (gl_FCNTL_H): Always replace fcntl.h.
13562         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13563         * lib/fcntl.in.h (fcntl): Declare replacement.
13564         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13565         needed, plus a witness.
13566         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13567         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13568         * tests/test-fcntl.c: New file.
13569         * modules/fcntl-tests: Likewise.
13570
13571         binary-io: avoid potential compilation warning
13572         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13573         directives.
13574
13575         fflush: avoid compilation error on NetBSD
13576         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13577         between off_t and fpos_t, since the latter is sometimes a struct.
13578         * lib/fseeko.c (rpl_fseeko): Likewise.
13579         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13580
13581 2009-12-15  Eric Blake  <ebb9@byu.net>
13582
13583         fcntl-h, stdio, sys_ioctl: fix declarations
13584         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13585         function must not take arguments.
13586         * lib/sys_ioctl.in.h (ioctl): Likewise.
13587         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13588         (open): Add a link warning.
13589
13590 2009-12-15  Jim Meyering  <meyering@redhat.com>
13591
13592         areadlink, areadlink-with-size: relax license to LGPLv2+
13593         * modules/areadlink (License): Relax to LGPLv2+.
13594         * modules/areadlink-with-size (License): Likewise.
13595
13596 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13597             Bruno Haible  <bruno@clisp.org>
13598
13599         *printf: Fix memory leak.
13600         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13601         * lib/vfprintf.c (vfprintf): Likewise.
13602         * lib/dprintf.c (dprintf): Likewise.
13603         * lib/vdprintf.c (vdprintf): Likewise.
13604
13605 2009-12-14  Eric Blake  <ebb9@byu.net>
13606
13607         accept4: adjust module dependencies
13608         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13609
13610         utimens: one more try at avoiding compiler warning
13611         * lib/utimens.c (lutimens): Lower scope of result.
13612
13613 2009-12-13  Bruno Haible  <bruno@clisp.org>
13614
13615         Move the malloc checking from module 'list' to new module 'xlist'.
13616         * modules/xlist: New file.
13617         * lib/gl_xlist.h: New file.
13618         * lib/gl_xlist.c: New file.
13619         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13620         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13621         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13622         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13623         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13624         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13625         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13626         gl_sortedlist_nx_add): New declarations.
13627         (struct gl_list_implementation): Rename and change methods accordingly.
13628         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13629         (gl_list_nx_create): Renamed from gl_list_create.
13630         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13631         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13632         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13633         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13634         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13635         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13636         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13637         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13638         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13639         gl_list_create_empty.
13640         (gl_list_nx_create): Renamed from gl_list_create.
13641         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13642         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13643         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13644         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13645         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13646         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13647         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13648         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13649         * lib/gl_array_list.c: Don't include xalloc.h.
13650         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13651         NULL upon out-of-memory.
13652         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13653         out-of-memory.
13654         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13655         Change return type to 'int'.
13656         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13657         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13658         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13659         upon out-of-memory.
13660         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13661         upon out-of-memory.
13662         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13663         upon out-of-memory.
13664         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13665         upon out-of-memory.
13666         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13667         out-of-memory.
13668         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13669         Update.
13670         (gl_array_list_implementation): Update.
13671         * lib/gl_carray_list.c: Don't include xalloc.h.
13672         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13673         Return NULL upon out-of-memory.
13674         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13675         out-of-memory.
13676         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13677         Change return type to 'int'.
13678         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13679         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13680         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13681         upon out-of-memory.
13682         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13683         upon out-of-memory.
13684         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13685         out-of-memory.
13686         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13687         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13688         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13689         Update.
13690         (gl_carray_list_implementation): Update.
13691         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13692         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13693         gl_linked_create_empty. Return NULL upon out-of-memory.
13694         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13695         out-of-memory.
13696         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13697         Change return type to 'int'. Return -1 upon out-of-memory.
13698         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13699         out-of-memory.
13700         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13701         upon out-of-memory.
13702         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13703         upon out-of-memory.
13704         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13705         NULL upon out-of-memory.
13706         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13707         upon out-of-memory.
13708         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13709         out-of-memory.
13710         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13711         Update.
13712         * lib/gl_linked_list.c: Don't include xalloc.h.
13713         (gl_linked_list_implementation): Update.
13714         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13715         (add_to_bucket): Change return type to 'int'.
13716         (gl_linkedhash_list_implementation): Update.
13717         * lib/gl_anytree_list1.h (free_subtree): New function.
13718         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13719         gl_tree_create_empty. Return NULL upon out-of-memory.
13720         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13721         Change return type to 'int'. Return -1 upon out-of-memory.
13722         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13723         out-of-memory.
13724         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13725         (gl_tree_remove_node): New function, moved here from
13726         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13727         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13728         Update.
13729         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13730         malloc, not xmalloc. Return NULL upon out-of-memory.
13731         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13732         out-of-memory.
13733         (gl_tree_remove_node_from_tree): New function, extracted from
13734         gl_tree_remove_node.
13735         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13736         upon out-of-memory.
13737         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13738         out-of-memory.
13739         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13740         upon out-of-memory.
13741         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13742         upon out-of-memory.
13743         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13744         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13745         not xmalloc. Return NULL upon out-of-memory.
13746         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13747         out-of-memory.
13748         (gl_tree_remove_node_from_tree): New function, extracted from
13749         gl_tree_remove_node.
13750         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13751         upon out-of-memory.
13752         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13753         out-of-memory.
13754         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13755         upon out-of-memory.
13756         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13757         upon out-of-memory.
13758         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13759         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13760         gl_anytree_list1.h before gl_anyavltree_list2.h.
13761         (gl_avltree_list_implementation): Update.
13762         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13763         gl_anytree_list1.h before gl_anyavltree_list2.h.
13764         (gl_rbtree_list_implementation): Update.
13765         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13766         Change return type to 'int'. Return -1 upon out-of-memory. Use
13767         __builtin_expect.
13768         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13769         (gl_avltreehash_list_implementation): Update.
13770         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13771         (gl_rbtreehash_list_implementation): Update.
13772         * modules/array-list (Depends-on): Remove xalloc.
13773         * modules/carray-list (Depends-on): Likewise.
13774         * modules/linked-list (Depends-on): Likewise.
13775         * modules/linkedhash-list (Depends-on): Likewise.
13776         * modules/avltree-list (Depends-on): Likewise.
13777         * modules/rbtree-list (Depends-on): Likewise.
13778         * modules/avltreehash-list (Depends-on): Likewise.
13779         * modules/rbtreehash-list (Depends-on): Likewise.
13780
13781         * modules/xsublist: New file.
13782         * lib/gl_xsublist.h: New file.
13783         * lib/gl_xsublist.c: New file.
13784         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13785         (gl_sublist_nx_create): New declaration.
13786         * lib/gl_sublist.c: Don't include xalloc.h.
13787         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13788         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13789         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13790         Change return type to 'int'. Return -1 upon out-of-memory.
13791         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13792         upon out-of-memory.
13793         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13794         NULL upon out-of-memory.
13795         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13796         upon out-of-memory.
13797         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13798         NULL upon out-of-memory.
13799         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13800         NULL upon out-of-memory.
13801         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13802         upon out-of-memory.
13803         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13804         (gl_sublist_list_implementation): Update.
13805         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13806         upon out-of-memory.
13807         * modules/sublist (Depends-on): Remove xalloc.
13808
13809         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13810         * tests/test-carray_list.c: Likewise.
13811         * tests/test-linked_list.c: Likewise.
13812         * tests/test-linkedhash_list.c: Likewise.
13813         * tests/test-avltree_list.c: Likewise.
13814         * tests/test-rbtree_list.c: Likewise.
13815         * tests/test-avltreehash_list.c: Likewise.
13816         * tests/test-rbtreehash_list.c: Likewise.
13817         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13818         * modules/carray-list-tests (Makefile.am): Likewise.
13819         * modules/linked-list-tests (Makefile.am): Likewise.
13820         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13821         * modules/avltree-list-tests (Makefile.am): Likewise.
13822         * modules/rbtree-list-tests (Makefile.am): Likewise.
13823         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13824         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13825
13826         * NEWS: Mention the changes.
13827
13828         * lib/clean-temp.c: Include gl_xlist.h.
13829         * modules/clean-temp (Depends-on): Add xlist.
13830
13831         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13832         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13833
13834         * tests/test-array_oset.c: Include gl_xlist.h.
13835         * modules/array-oset-tests (Depends-on): Add xlist.
13836
13837         Reported by José E. Marchesi <jemarch@gnu.org>.
13838
13839 2009-12-13  Bruno Haible  <bruno@clisp.org>
13840
13841         Move the malloc checking from module 'oset' to new module 'xoset'.
13842         * modules/xoset: New file.
13843         * lib/gl_xoset.h: New file.
13844         * lib/gl_xoset.c: New file.
13845         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13846         declarations.
13847         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13848         (struct gl_oset_implementation): Rename and change methods accordingly.
13849         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13850         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13851         'int'. Mark as __warn_unused_result__.
13852         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13853         gl_oset_create_empty.
13854         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13855         'int'.
13856         * lib/gl_array_oset.c: Don't include xalloc.h.
13857         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13858         malloc, not xmalloc.
13859         (grow): Change return type to 'int'. Don't call xalloc_die.
13860         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13861         to 'int'.
13862         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13863         'int'.
13864         (gl_array_oset_implementation): Update.
13865         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13866         gl_tree_create_empty.
13867         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13868         'int'.
13869         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13870         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13871         xmalloc.
13872         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13873         not xmalloc.
13874         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13875         xmalloc.
13876         (gl_avltree_oset_implementation): Update.
13877         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13878         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13879         xmalloc.
13880         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13881         not xmalloc.
13882         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13883         xmalloc.
13884         (gl_rbtree_oset_implementation): Update.
13885         * modules/array-oset (Depends-on): Remove xalloc.
13886         * modules/avltree-oset (Depends-on): Likewise.
13887         * modules/rbtree-oset (Depends-on): Likewise.
13888         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13889         * tests/test-avltree_oset.c: Likewise.
13890         * tests/test-rbtree_oset.c: Likewise.
13891         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13892         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13893         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13894         * NEWS: Mention the change.
13895
13896 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13897
13898         maint.mk: allow a project to override release-prep commands
13899         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13900         commands into a new rule.
13901         (release-prep): New rule.
13902         (release-prep-hook): New overridable variable.
13903
13904 2009-12-13  Bruno Haible  <bruno@clisp.org>
13905
13906         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13907
13908 2009-12-13  Jim Meyering  <meyering@redhat.com>
13909
13910         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13911         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13912
13913 2009-12-12  Bruno Haible  <bruno@clisp.org>
13914
13915         duplocale: Tweak.
13916         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13917
13918 2009-12-12  Karl Berry  <karl@gnu.org>
13919
13920         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13921
13922 2009-12-12  Bruno Haible  <bruno@clisp.org>
13923
13924         * m4/po.m4: Undo incorrect untabification.
13925
13926 2009-12-12  Bruno Haible  <bruno@clisp.org>
13927
13928         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13929         * modules/c-strtod (Depends-on): Add locale.
13930         * modules/c-strtold (Depends-on): Likewise.
13931
13932 2009-12-12  Bruno Haible  <bruno@clisp.org>
13933
13934         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13935
13936 2009-12-11  Eric Blake  <ebb9@byu.net>
13937
13938         setenv: relax requirement in light of POSIX ruling
13939         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13940         not NULL.
13941         * tests/test-setenv.c (main): Relax test.
13942         * tests/test-unsetenv.c (main): Likewise.
13943         * doc/posix-functions/setenv.texi (setenv): Document this.
13944         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13945
13946 2009-12-11  Bruno Haible  <bruno@clisp.org>
13947
13948         New module 'fd-safer-flag'.
13949         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13950         * lib/dup-safer.c (dup_safer_flag): Remove function.
13951         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13952         * lib/fd-safer.c (fd_safer_flag): Remove function.
13953         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13954         * modules/cloexec (configure.ac): Drop indicator macro.
13955         * modules/fd-safer-flag: New file.
13956         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13957         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13958         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13959
13960 2009-12-11  Bruno Haible  <bruno@clisp.org>
13961
13962         Tests for module 'nl_langinfo'.
13963         * modules/nl_langinfo-tests: New file.
13964         * tests/test-nl_langinfo.sh: New file.
13965         * tests/test-nl_langinfo.c: New file.
13966
13967         New module 'nl_langinfo'.
13968         * lib/nl_langinfo.c: New file.
13969         * m4/nl_langinfo.m4: New file.
13970         * modules/nl_langinfo: New file.
13971         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13972
13973 2009-12-11  Bruno Haible  <bruno@clisp.org>
13974
13975         Tests for module 'langinfo'.
13976         * modules/langinfo-tests: New file.
13977         * tests/test-langinfo.c: New file.
13978
13979         New module 'langinfo'.
13980         * lib/langinfo.in.h: New file.
13981         * m4/langinfo_h.m4: New file.
13982         * modules/langinfo: New file.
13983         * doc/posix-headers/langinfo.texi: Mention the new module.
13984
13985 2009-12-11  Bruno Haible  <bruno@clisp.org>
13986
13987         * lib/config.charset: Untabify.
13988
13989 2009-12-11  Bruno Haible  <bruno@clisp.org>
13990
13991         * modules/unistd-safer (configure.ac): Drop indicator macro.
13992
13993 2009-12-11  Bruno Haible  <bruno@clisp.org>
13994
13995         Move pipe2-safer code to its own file.
13996         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13997         * lib/pipe-safer.c (pipe2_safer): Remove function.
13998         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13999         (Makefile.am): Add it to lib_SOURCES.
14000
14001 2009-12-10  Bruno Haible  <bruno@clisp.org>
14002
14003         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14004
14005 2009-12-10  Bruno Haible  <bruno@clisp.org>
14006
14007         Declare which arguments expect non-NULL values, for GCC and clang.
14008         * build-aux/arg-nonnull.h: New file.
14009         * modules/arg-nonnull: New file.
14010         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14011         (inet_ntop, inet_pton): Use it.
14012         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14013         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14014         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14015         (open, openat): Use it.
14016         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14017         (fnmatch): Use it.
14018         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14019         (getopt, getopt_long, getopt_long_only): Use it.
14020         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14021         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14022         Use it.
14023         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14024         (iconv_open): Use it.
14025         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14026         (strtoimax, strtoumax): Use it.
14027         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14028         (duplocale): Use it.
14029         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14030         (frexp, frexpl): Use it.
14031         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14032         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14033         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14034         (tsearch, tfind, tdelete, twalk): Use it.
14035         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14036         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14037         sigpending): Use it.
14038         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14039         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14040         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14041         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14042         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14043         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14044         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14045         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14046         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14047         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14048         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14049         Use it.
14050         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14051         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14052         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14053         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14054         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14055         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14056         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14057         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14058         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14059         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14060         strtoull, unsetenv): Use it.
14061         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14062         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14063         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14064         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14065         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14066         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14067         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14068         (strcasecmp, strncasecmp): Use it.
14069         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14070         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14071         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14072         rpl_setsockopt): Use it.
14073         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14074         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14075         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14076         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14077         (gettimeofday): Use it.
14078         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14079         (times): Use it.
14080         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14081         (uname): Use it.
14082         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14083         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14084         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14085         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14086         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14087         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14088         unlinkat, write): Use it.
14089         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14090         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14091         * lib/argv-iter.h: Include arg-nonnull.h.
14092         (_ATTRIBUTE_NONNULL_): Remove macro.
14093         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14094         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14095         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14096         optimization.
14097         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14098         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14099         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14100         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14101         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14102         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14103         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14104         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14105         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14106         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14107         * modules/dirent (Depends-on): Add arg-nonnull.
14108         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14109         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14110         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14111         * modules/fnmatch (Depends-on): Add arg-nonnull.
14112         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14113         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14114         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14115         * modules/glob (Depends-on): Add arg-nonnull.
14116         (Makefile.am): Insert arg-nonnull.h into glob.h.
14117         * modules/iconv_open (Depends-on): Add arg-nonnull.
14118         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14119         * modules/inttypes (Depends-on): Add arg-nonnull.
14120         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14121         * modules/locale (Depends-on): Add arg-nonnull.
14122         (Makefile.am): Insert arg-nonnull.h into locale.h.
14123         * modules/math (Depends-on): Add arg-nonnull.
14124         (Makefile.am): Insert arg-nonnull.h into math.h.
14125         * modules/netdb (Depends-on): Add arg-nonnull.
14126         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14127         * modules/search (Depends-on): Add arg-nonnull.
14128         (Makefile.am): Insert arg-nonnull.h into search.h.
14129         * modules/signal (Depends-on): Add arg-nonnull.
14130         (Makefile.am): Insert arg-nonnull.h into signal.h.
14131         * modules/spawn (Depends-on): Add arg-nonnull.
14132         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14133         * modules/stdio (Depends-on): Add arg-nonnull.
14134         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14135         * modules/stdlib (Depends-on): Add arg-nonnull.
14136         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14137         * modules/string (Depends-on): Add arg-nonnull.
14138         (Makefile.am): Insert arg-nonnull.h into string.h.
14139         * modules/strings (Depends-on): Add arg-nonnull.
14140         (Makefile.am): Insert arg-nonnull.h into strings.h.
14141         * modules/sys_socket (Depends-on): Add arg-nonnull.
14142         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14143         * modules/sys_stat (Depends-on): Add arg-nonnull.
14144         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14145         * modules/sys_time (Depends-on): Add arg-nonnull.
14146         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14147         * modules/sys_times (Depends-on): Add arg-nonnull.
14148         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14149         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14150         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14151         * modules/time (Depends-on): Add arg-nonnull.
14152         (Makefile.am): Insert arg-nonnull.h into time.h.
14153         * modules/unistd (Depends-on): Add arg-nonnull.
14154         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14155         * modules/wchar (Depends-on): Add arg-nonnull.
14156         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14157         * modules/argv-iter (Depends-on): Add arg-nonnull.
14158         * tests/test-canonicalize.c (null_ptr): New function.
14159         (main): Use it.
14160         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14161         (main): Use it.
14162         * tests/test-memmem.c (null_ptr): New function.
14163         (main): Use it.
14164         Reported by Jim Meyering.
14165
14166 2009-12-10  Bruno Haible  <bruno@clisp.org>
14167
14168         Use spaces for indentation, not tabs.
14169         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14170         * m4/*.m4: Untabify.
14171         * build-aux/*.h: Untabify.
14172         * tests/**/*.[hc]: Untabify.
14173         * README: New section "Indent with spaces, not TABs", based on
14174         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14175         * NEWS: Mention the change.
14176
14177 2009-12-10  Bruno Haible  <bruno@clisp.org>
14178
14179         pty test: Fix link error.
14180         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14181         test_pty_LDADD.
14182
14183 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14184
14185         * modules/pty: New file.
14186         * modules/pty-tests: New file.
14187         * m4/pty.m4: New file.
14188         * tests/test-pty.c: New file.
14189         * doc/glibc-headers/pty.texi: Modified.
14190         * doc/glibc-functions/forkpty.texi: Modified.
14191         * doc/glibc-functions/openpty.texi: Modified.
14192
14193 2009-12-10  Bruno Haible  <bruno@clisp.org>
14194
14195         Avoid syntax error in C++ mode.
14196         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14197
14198 2009-12-10  Bruno Haible  <bruno@clisp.org>
14199
14200         Use sed with option -e.
14201         * gnulib-tool (func_version, func_emit_copyright_notice,
14202         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14203         option -e to sed.
14204         * modules/link-warning (Makefile.am): Likewise.
14205
14206 2009-12-10  Jim Meyering  <meyering@redhat.com>
14207
14208         mgetgroups: do not write bytes beyond end of malloc'd buffer
14209         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14210         username, we call getgroups with a one-element-shorter buffer,
14211         but still told it the length was original, max_n_groups.
14212
14213 2009-12-09  Eric Blake  <ebb9@byu.net>
14214
14215         cloexec: relax license
14216         * modules/cloexec (Maintainer): Add myself.
14217         (License): Use LGPL, not GPL.
14218
14219         link-warning: optimize generation
14220         * modules/link-warning (Makefile.am): Reduce process usage.
14221
14222 2009-12-09  Bruno Haible  <bruno@clisp.org>
14223
14224         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14225         workaround was added on 2009-11-17.
14226
14227 2009-12-09  Jim Meyering  <meyering@redhat.com>
14228             Bruno Haible  <bruno@clisp.org>
14229
14230         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14231         * modules/link-warning (Makefile.am): Make the comment-removing sed
14232         command more robust in the face of bootstrap-prepended comment lines.
14233
14234 2009-12-09  Bruno Haible  <bruno@clisp.org>
14235
14236         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14237         most one group.
14238
14239 2009-12-09  Simon Josefsson <simon@josefsson.org>
14240             Bruno Haible  <bruno@clisp.org>
14241
14242         * build-aux/link-warning.h: Add copyright notice.
14243         * modules/link-warning (Makefile.am): Generate link-warning.h from
14244         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14245         * NEWS: Mention change in link-warning module.
14246         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14247         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14248         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14249         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14250         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14251         * modules/math (Makefile.am): Add dependency to math.h.
14252         * modules/search (Makefile.am): Add dependency to search.h.
14253         * modules/signal (Makefile.am): Add dependency to signal.h.
14254         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14255         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14256         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14257         * modules/string (Makefile.am): Add dependency to string.h.
14258         * modules/strings (Makefile.am): Add dependency to strings.h.
14259         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14260         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14261         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14262         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14263         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14264         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14265         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14266         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14267         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14268
14269 2009-12-09  Bruno Haible  <bruno@clisp.org>
14270
14271         fchdir: Optimize away rpl_fstat when possible.
14272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14273         REPLACE_OPEN_DIRECTORY.
14274         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14275
14276 2009-12-09  Bruno Haible  <bruno@clisp.org>
14277
14278         * lib/fchdir.c: Update comment.
14279
14280 2009-12-09  Bruno Haible  <bruno@clisp.org>
14281
14282         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14283
14284 2009-12-08  Eric Blake  <ebb9@byu.net>
14285
14286         fchdir: avoid memory leak on re-registration.
14287         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14288
14289 2009-12-08  Jim Meyering  <meyering@redhat.com>
14290
14291         init.sh: avoid Solaris 10 /bin/sh portability problem
14292         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14293         sourced script:
14294           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14295           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14296           bar
14297         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14298         and two tests used that idiom.
14299         * tests/init.sh: Update suggested usage comments.
14300         (path_prepend_): New function, to be used in place
14301         of the --src-path=DIR option.
14302         (setup_): Move PATH-prepending code into path_prepend_.
14303         * tests/test-pread.sh: Adapt to new usage.
14304         * tests/test-xalloc-die.sh: Likewise.
14305
14306 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14307
14308         * doc/gnulib.texi (Glibc pty.h): Add.
14309         * doc/glibc-functions/forkpty.texi: Add.
14310         * doc/glibc-functions/openpty.texi: Add.
14311         Suggested by Bruno Haible.
14312
14313 2009-12-08  Eric Blake  <ebb9@byu.net>
14314
14315         fchdir: fix logic bugs
14316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14317         * tests/test-fchdir.c (main): Enhance test.
14318         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14319         is in use.
14320
14321         dup2: fix logic bugs
14322         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14323         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14324         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14325         exists.
14326         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14327
14328 2009-12-07  Eric Blake  <ebb9@byu.net>
14329
14330         unlink: fix m4 detection
14331         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14332
14333         unistd-safer: add unit test
14334         * modules/unistd-safer-tests: New file.
14335         * tests/test-dup-safer.c: Likewise.
14336         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14337         * tests/test-dup2.c (setmode): Likewise.
14338         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14339
14340         cloexec: preserve text vs. binary across dup_cloexec
14341         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14342         mode.
14343         * modules/dup2-tests (Depends-on): Add binary-io.
14344         * modules/cloexec-tests (Depends-on): Likewise.
14345         * tests/test-dup2.c (setmode, is_mode): New helpers.
14346         (main): Add tests that translation mode is preserved.
14347         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14348         Reported by Bruno Haible.
14349
14350         mgetgroups: reduce duplicate listings
14351         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14352         resulting array.
14353         * tests/test-chown.h (test_chown): Simplify client.
14354         * tests/test-lchown.h (test_lchown): Likewise.
14355
14356 2009-12-06  Bruno Haible  <bruno@clisp.org>
14357
14358         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14359         value.
14360
14361 2009-12-06  Bruno Haible  <bruno@clisp.org>
14362
14363         * lib/progname.c: Include stdio.h, stdlib.h.
14364         (set_program_name): Reject a NULL argument.
14365
14366 2009-12-05  Eric Blake  <ebb9@byu.net>
14367
14368         pipe2-safer: new module
14369         * modules/pipe2-safer: New file.
14370         * lib/unistd-safer.h (pipe2_safer): New prototype.
14371         * lib/unistd--.h (pipe2): New wrapper.
14372         * lib/pipe-safer.c (pipe2_safer): New function.
14373         * modules/pipe (Depends-on): Add pipe2-safer.
14374         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14375
14376         stdlib-safer: preserve cloexec flag for mkostemp[s]
14377         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14378         fd_safer_flag.
14379
14380         unistd-safer: allow preservation of cloexec status via flag
14381         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14382         prototypes.
14383         * lib/dup-safer.c (dup_safer_flag): New function.
14384         * lib/fd-safer.c (fd_safer_flag): Likewise.
14385         * modules/cloexec (configure.ac): Set witness.
14386
14387         test-dup2: enhance test
14388         * modules/dup2-tests (Depends-on): Add cloexec.
14389         * tests/test-dup2.c (main): Enhance test.
14390
14391         cloexec: add dup_cloexec
14392         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14393         header and comments.
14394         * lib/cloexec.c (set_cloexec_flag): Add comments.
14395         (dup_cloexec): New function, with mingw implementation borrowed
14396         from...
14397         * lib/w32spawn.h (dup_noinherit): ...here.
14398         * modules/execute (Depends-on): Add cloexec.
14399         * modules/pipe (Depends-on): Likewise.
14400         * modules/cloexec (Depends-on): Add dup2.
14401         * modules/cloexec-tests (Files): New file.
14402         * tests/test-cloexec.c: Likewise.
14403
14404         test-xalloc-die: fix test for mingw
14405         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14406         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14407         directory and .exe suffix off argv[0] output.
14408
14409         test-fseeko: fix test for mingw
14410         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14411         than undefining fseek, so test will pass on mingw.
14412
14413 2009-12-05  Bruno Haible  <bruno@clisp.org>
14414
14415         * lib/progname.h (set_program_name): Clarify specification.
14416         * lib/progname.c (set_program_name): Likewise.
14417         Reported by Jim Meyering.
14418
14419 2009-12-05  Jim Meyering  <meyering@redhat.com>
14420
14421         maint.mk: backslash-escape parens in default regexp
14422         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14423         backslash-escape the literal parentheses.
14424
14425         maint.mk: news-date-check: use grep -E
14426         * top/maint.mk (today): Define a Make variable, not a...
14427         (news-date-check): ...shell variable.
14428         (news-date-regexp): Use the Make variable.
14429         Use grep's -E option.  Change the failing diagnostic to mention
14430         the variable, $(news-date-regexp).
14431
14432 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14433
14434         maintainer-makefile: allow customization of NEWS entry format
14435         * top/maint.mk (news-date-regexp): New overridable variable.
14436         (news-date-check): Use it.
14437
14438 2009-12-04  Eric Blake  <ebb9@byu.net>
14439
14440         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14441         * lib/mgetgroups.h (xgetgroups): New prototype.
14442         * lib/mgetgroups.c (xgetgroups): New wrapper.
14443         (mgetgroups): Handle ENOSYS.
14444         * modules/mgetgroups (Depends-on): Add realloc.
14445         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14446
14447         mgetgroups: avoid argument promotion issues with -1
14448         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14449         for invalid gid_t.
14450         * tests/test-chown.h (getegid, test_chown): Likewise.
14451         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14452
14453 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14454
14455         exclude: Fix header file problems.
14456         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14457
14458 2009-12-01  Jim Meyering  <meyering@redhat.com>
14459
14460         fts: fts_open: do not let an empty string cause immediate failure
14461         This is required in support of GNU rm, for which the command
14462         "rm A '' B" must process and remove both A and B, in spite of
14463         the empty string argument.
14464         * lib/fts.c (fts_open): Do not let the presence of an empty string
14465         cause fts_open to fail immediately.  Most fts-using tools must be
14466         able to process all arguments, in order, and can be expected to
14467         diagnose such arguments themselves.
14468
14469 2009-11-30  Eric Blake  <ebb9@byu.net>
14470
14471         utimens: fix compilation error
14472         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14473         Declare variable at right scope.
14474
14475 2009-11-29  Jim Meyering  <meyering@redhat.com>
14476
14477         bootstrap: handle perl-5.11's changed --version output
14478         * build-aux/bootstrap (get_version): Handle perl separately,
14479         since perl-5.11's --version output is different.
14480
14481 2009-11-28  Jim Meyering  <meyering@redhat.com>
14482
14483         userspec: depend on the inttostr module, too
14484         * modules/userspec (Depends-on): Add inttostr.
14485
14486         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14487         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14488         number of MAXUID when it evaluates to (uid_t) -1.
14489         Likewise for group ID.  Reported by Matt McCutchen in
14490         <http://savannah.gnu.org/bugs/?28113>
14491
14492         userspec: reformat to use spaces, not TABs
14493         * lib/userspec.c: Expand TABs to spaces.
14494         Add Emacs' "indent-tabs-mode: nil" hint.
14495
14496 2009-11-27  Eric Blake  <ebb9@byu.net>
14497
14498         getopt-gnu: flush out another BSD bug
14499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14500         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14501         flush out BSD bug.
14502         * tests/test-getopt.h (test_getopt): End lists with NULL.
14503         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14504         (test_getopt_long_posix): Enhance test.
14505         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14506         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14507         getopt-gnu.
14508         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14509         Likewise.
14510
14511 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14512
14513         * modules/idpriv-droptemp-tests (Notice): Fix text.
14514
14515 2009-11-27  Jim Meyering  <meyering@redhat.com>
14516
14517         test-xalloc-die: avoid spurious failure due to libtool argv difference
14518         In a libtool-enabled project, this test would fail due to a difference
14519         in the emitted program name, e.g.,
14520         -test-xalloc-die: memory exhausted
14521         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14522         Use program to avoid that.
14523         * modules/xalloc-die-tests (Depends-on): Add progname.
14524         * tests/test-xalloc-die.c: Include progname.h".
14525         (program_name): Remove decl.
14526         (main): Call set_program_name.
14527         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14528
14529 2009-11-26  Richard Jones  <rjones@redhat.com>
14530
14531         w32sock: leave win32 error in place.
14532         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14533
14534 2009-11-26  Eric Blake  <ebb9@byu.net>
14535
14536         init.sh: suggest to use skip_ and fail_ functions in comments
14537         * tests/init.sh: Add a sentence.
14538
14539 2009-11-25  Bruno Haible  <bruno@clisp.org>
14540
14541         init.sh: add documentation in comments
14542         * tests/init.sh: Add some developer and user documentation.
14543
14544 2009-11-26  Jim Meyering  <meyering@redhat.com>
14545
14546         init.sh: accommodate even those who specify bogus srcdir manually
14547         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14548         configure-time tests to be sanitized, so that there is no need to
14549         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14550         (with no double quotes) suffices.  However, since tests may be
14551         invoked manually, and since you may explicitly set srcdir to the
14552         name of a directory containing spaces, do quote its uses here.
14553         * tests/test-pread.sh: Likewise.
14554         Suggested by Bruno Haible.
14555
14556         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14557         * tests/test-pread.sh: Write no data into the pipe, because
14558         test-pread actually reads none.  This avoids a diagnostic,
14559         "bash: echo: write error: Broken pipe", that arises in the unusual
14560         event something is ignoring SIGPIPE, and might be interpreted
14561         as some sort of failure.  Reported by Bruno Haible.
14562
14563 2009-11-25  Jim Meyering  <meyering@redhat.com>
14564
14565         test-pread: cover failure with ESPIPE and EINVAL
14566         * tests/test-pread.c (main): Test for failure, too.
14567         * tests/test-pread.sh: Invoke with stdin on a pipe.
14568         Suggested by Eric Blake.
14569
14570         pread: improvement and fix
14571         * modules/pread (Depends-on): Depend on lseek, for portability to
14572         e.g., mingw.  Suggested by Eric Blake.
14573         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14574
14575         unistd.in.h: correct declaration of pread
14576         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14577         Reported by Richard W.M. Jones.
14578
14579         test-pread.sh: distribute the test script
14580         * modules/pread-tests (Files): Include test-pread.sh.
14581
14582         test-pread.sh: clean up
14583         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14584         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14585         That is unnecessary, since it's always ".".
14586         Suggestion from Eric Blake.
14587
14588         test-pread.sh: make executable
14589         * tests/test-pread.sh: Set executable bit.
14590         Reported by Eric Blake.
14591
14592         correct typo in test-pread.sh
14593         * tests/test-pread.sh: Add #! line.
14594
14595         test pread
14596         * tests/test-pread.c: New file.
14597         * tests/test-pread.sh: Likewise.
14598         * modules/pread-tests: Likewise.
14599
14600         pread: new module
14601         * modules/pread: New file.
14602         * lib/unistd.in.h (pread): Define/declare.
14603         * lib/pread.c (pread): New file.
14604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14605         * modules/unistd (Makefile.am): Substitute witnesses.
14606         * doc/posix-functions/pread.texi (pread): Update.
14607         * MODULES.html.sh: Add pread.
14608
14609 2009-11-25  Jim Meyering  <meyering@redhat.com>
14610
14611         tests/init.sh: new file to be used via most *.sh tests
14612         * tests/init.sh: New file.
14613
14614 2009-11-25  Eric Blake  <ebb9@byu.net>
14615
14616         utimens: work around older Linux failure with symlinks
14617         * lib/utimens.c (lutimensat_works_really): New variable.
14618         (fdutimens, lutimens): Use it to manage kernels that support
14619         nanosecond times on files, but not on symlinks.
14620         Reported by Ondřej Vašík.
14621
14622         utimes: fix configure grammar
14623         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14624
14625 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14626
14627         regex: Fix fastmap for multibyte character ranges.
14628         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14629         characters when a multibyte character range is included.
14630
14631 2009-11-22  Andy Wingo  <wingo@pobox.com>
14632
14633         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14634         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14635
14636 2009-11-24  Bruno Haible  <bruno@clisp.org>
14637
14638         doc: Most *_l functions exist in MacOS X 10.5.
14639         * doc/posix-functions/duplocale.texi: Update platforms list.
14640         * doc/posix-functions/freelocale.texi: Likewise.
14641         * doc/posix-functions/newlocale.texi: Likewise.
14642         * doc/posix-functions/uselocale.texi: Likewise.
14643         * doc/posix-functions/isalnum_l.texi: Likewise.
14644         * doc/posix-functions/isalpha_l.texi: Likewise.
14645         * doc/posix-functions/isblank_l.texi: Likewise.
14646         * doc/posix-functions/iscntrl_l.texi: Likewise.
14647         * doc/posix-functions/isdigit_l.texi: Likewise.
14648         * doc/posix-functions/isgraph_l.texi: Likewise.
14649         * doc/posix-functions/islower_l.texi: Likewise.
14650         * doc/posix-functions/isprint_l.texi: Likewise.
14651         * doc/posix-functions/ispunct_l.texi: Likewise.
14652         * doc/posix-functions/isspace_l.texi: Likewise.
14653         * doc/posix-functions/isupper_l.texi: Likewise.
14654         * doc/posix-functions/iswalnum_l.texi: Likewise.
14655         * doc/posix-functions/iswalpha_l.texi: Likewise.
14656         * doc/posix-functions/iswblank_l.texi: Likewise.
14657         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14658         * doc/posix-functions/iswctype_l.texi: Likewise.
14659         * doc/posix-functions/iswdigit_l.texi: Likewise.
14660         * doc/posix-functions/iswgraph_l.texi: Likewise.
14661         * doc/posix-functions/iswlower_l.texi: Likewise.
14662         * doc/posix-functions/iswprint_l.texi: Likewise.
14663         * doc/posix-functions/iswpunct_l.texi: Likewise.
14664         * doc/posix-functions/iswspace_l.texi: Likewise.
14665         * doc/posix-functions/iswupper_l.texi: Likewise.
14666         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14667         * doc/posix-functions/isxdigit_l.texi: Likewise.
14668         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14669         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14670         * doc/posix-functions/strcoll_l.texi: Likewise.
14671         * doc/posix-functions/strfmon_l.texi: Likewise.
14672         * doc/posix-functions/strftime_l.texi: Likewise.
14673         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14674         * doc/posix-functions/strxfrm_l.texi: Likewise.
14675         * doc/posix-functions/tolower_l.texi: Likewise.
14676         * doc/posix-functions/toupper_l.texi: Likewise.
14677         * doc/posix-functions/towctrans_l.texi: Likewise.
14678         * doc/posix-functions/towlower_l.texi: Likewise.
14679         * doc/posix-functions/towupper_l.texi: Likewise.
14680         * doc/posix-functions/wcscoll_l.texi: Likewise.
14681         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14682         * doc/posix-functions/wctrans_l.texi: Likewise.
14683         * doc/posix-functions/wctype_l.texi: Likewise.
14684         * doc/glibc-functions/strptime_l.texi: Likewise.
14685         * doc/glibc-functions/strtod_l.texi: Likewise.
14686         * doc/glibc-functions/strtof_l.texi: Likewise.
14687         * doc/glibc-functions/strtol_l.texi: Likewise.
14688         * doc/glibc-functions/strtold_l.texi: Likewise.
14689         * doc/glibc-functions/strtoll_l.texi: Likewise.
14690         * doc/glibc-functions/strtoul_l.texi: Likewise.
14691         * doc/glibc-functions/strtoull_l.texi: Likewise.
14692         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14693         * doc/glibc-functions/wcstod_l.texi: Likewise.
14694         * doc/glibc-functions/wcstof_l.texi: Likewise.
14695         * doc/glibc-functions/wcstol_l.texi: Likewise.
14696         * doc/glibc-functions/wcstold_l.texi: Likewise.
14697         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14698         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14699         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14700
14701 2009-11-24  Bruno Haible  <bruno@clisp.org>
14702
14703         duplocale: Fix logic bug.
14704         * lib/duplocale.c: Don't include <langinfo.h>.
14705         (_NL_LOCALE_NAME): Remove macro.
14706         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14707         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14708
14709 2009-11-23  Jim Meyering  <meyering@redhat.com>
14710
14711         test-update-copyright: don't hard-code /usr/bin/perl
14712         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14713         perl to print the current year.  Gilles Espinasse reported that
14714         the replaced use of perl was hard-coded as /usr/bin/perl.
14715
14716 2009-11-23  Bruno Haible  <bruno@clisp.org>
14717
14718         duplocale: Add support for glibc 2.3.x.
14719         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14720
14721 2009-11-22  Bruno Haible  <bruno@clisp.org>
14722
14723         vasnprintf: Tiny optimization.
14724         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14725         MacOS X.
14726
14727 2009-11-22  Bruno Haible  <bruno@clisp.org>
14728
14729         Tests for module 'duplocale'.
14730         * modules/duplocale-tests: New file.
14731         * tests/test-duplocale.c: New file.
14732
14733         New module 'duplocale'.
14734         * m4/duplocale.m4: New file.
14735         * lib/locale.in.h (duplocale): New declaration.
14736         * lib/duplocale.c: New file.
14737         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14738         gl_LOCALE_H_DEFAULTS): New macros.
14739         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14740         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14741         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14742         REPLACE_DUPLOCALE.
14743         * modules/duplocale: New file.
14744         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14745
14746 2009-11-22  Bruno Haible  <bruno@clisp.org>
14747
14748         * modules/locale-tests (configure.ac): Test for newlocale function.
14749         * tests/test-locale.c: When the system has extended locale functions,
14750         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14751
14752         locale: Make locale_t available when possible.
14753         * lib/locale.in.h: Include <xlocale.h> when it exists.
14754         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14755         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14756         * modules/locale (Depends-on): Add extensions.
14757         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14758         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14759
14760 2009-11-22  Bruno Haible  <bruno@clisp.org>
14761
14762         Add comments.
14763         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14764         invocation.
14765         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14766         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14767         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14768
14769 2009-11-22  Bruno Haible  <bruno@clisp.org>
14770
14771         error: account for the possibility of freopen (stdout).
14772         * lib/error.c: Include <unistd.h>.
14773         (flush_stdout): New function, extracted from error and error_at_line.
14774         Determine stdout's fd dynamically.
14775         (error, error_at_line): Invoke flush_stdout.
14776         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14777         * modules/error (Depends-on): Add unistd.
14778
14779 2009-11-22  Bruno Haible  <bruno@clisp.org>
14780
14781         diffseq: Add comment.
14782         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14783
14784 2009-11-22  Jim Meyering  <meyering@redhat.com>
14785
14786         c-stack: avoid defining an unused static function
14787         * lib/c-stack.c (find_stack_direction): Do not define this function
14788         when it will not be used.
14789
14790         diffseq: avoid spurious gcc warnings
14791         * lib/diffseq.h (IF_LINT2): Define.
14792         (compareseq): Use it to initialize two members of "part".
14793         This avoids two used-uninitialized warnings.
14794
14795 2009-11-21  Jim Meyering  <meyering@redhat.com>
14796
14797         c-stack: avoid "ignoring return value of `write'" warning
14798         * lib/c-stack.c: Include "ignore-value.h".
14799         (die): Explicitly ignore each write return value.
14800         * modules/c-stack (Depends-on): Add ignore-value.
14801
14802 2009-11-21  Bruno Haible  <bruno@clisp.org>
14803
14804         diffseq: reduce scope of variable 'best'.
14805         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14806         variable, earlier used for two different purposes.
14807
14808 2009-11-21  Jim Meyering  <meyering@redhat.com>
14809
14810         diffseq: remove useless assignment to "best"
14811         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14812         assignment.  At that point "best" is already guaranteed to be zero.
14813
14814 2009-11-20  Eric Blake  <ebb9@byu.net>
14815
14816         build: mention ftp redirector in release announcements
14817         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14818         values that used to come from cfg.mk; mention FTP redirect URL.
14819         * build-aux/announce-gen: Mention the mirror list.
14820         Suggested by Karl Berry.
14821
14822         nanosleep: improve port to mingw
14823         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14825         LIB_NANOSLEEP, but only when needed.
14826         * modules/select (Link): Document LIBSOCKET.
14827         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14828         enough.
14829
14830         nanosleep: work around cygwin bug
14831         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14832         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14833         bug.
14834         (getnow): Delete, not needed.
14835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14836         LIB_CLOCK_GETTIME.
14837         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14838         clock-time, gettime.
14839         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14840         bug.
14841         * modules/nanosleep-tests: New test.
14842         * tests/test-nanosleep.c: New file.
14843
14844         sleep: work around cygwin bug
14845         * lib/sleep.c (rpl_sleep): Work around the bug.
14846         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14847         (gl_PREREQ_SLEEP): Delete unused macro.
14848         * modules/sleep (Depends-on): Add verify.
14849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14850         * modules/unistd (Makefile.am): Substitute witness.
14851         * lib/unistd.in.h (sleep): Update prototype.
14852         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14853         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14854         * modules/sleep-tests (Depends-on): Check for alarm.
14855
14856 2009-11-20  Jim Meyering  <meyering@redhat.com>
14857
14858         maint.mk: improve sc_prohibit_magic_number_exit
14859         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14860         so it does not match uses like System.exit(1).
14861         Add comments showing how to correct all offenders.
14862
14863 2009-11-19  Eric Blake  <ebb9@byu.net>
14864
14865         xalloc-die-tests: add missing library
14866         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14867
14868         test-xvasprintf: silence compiler warnings
14869         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14870         empty string from gcc.
14871
14872 2009-11-19  Jim Meyering  <meyering@redhat.com>
14873
14874         xfreopen: new module, from coreutils
14875         * modules/xfreopen: New module.
14876         * lib/xfreopen.c: New file.
14877         * lib/xfreopen.h: New file.
14878         * MODULES.html.sh (File stream based Input/Output"): Add it.
14879
14880 2009-11-19  Eric Blake  <ebb9@byu.net>
14881
14882         manywarnings: depend on warnings
14883         * modules/manywarnings (Depends-on): Add warnings.
14884
14885         build: avoid compiler warnings
14886         * lib/select.c (rpl_select): Delete unused variable.
14887         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14888
14889 2009-11-18  Eric Blake  <ebb9@byu.net>
14890
14891         tests: avoid false negative with --with-packager
14892         * tests/test-version-etc.sh: Discard packager information.
14893         * tests/test-argp-version-etc-1.sh: Likewise.
14894         Reported by Mike Frysinger.
14895
14896         utimens: fix regression on Solaris
14897         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14898         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14899         can only change fd timestamps via futimesat.  Instead, use an
14900         additional witness macro to avoid BSD bug.
14901         Reported by Jim Meyering.
14902
14903 2009-11-17  Eric Blake  <ebb9@byu.net>
14904
14905         usleep: use it to simplify tests
14906         * modules/stat-time-tests (Depends-on): Add usleep.
14907         (configure.ac): Drop usleep check.
14908         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14909         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14910         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14911         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14912         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14913         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14914         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14915         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14916         Likewise.
14917         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14918         * tests/test-lchown.h (nap): Likewise.
14919         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14920         * tests/test-stat-time.c (nap): Likewise.
14921         * tests/test-utimens-common.h (nap): Update comments.
14922
14923         usleep: new module
14924         * modules/usleep: New file.
14925         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14926         * lib/usleep.c (usleep): Likewise.
14927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14928         * modules/unistd (Makefile.am): Substitute witnesses.
14929         * lib/unistd.in.h (usleep): Add declaration.
14930         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14931         * MODULES.html.sh (Date and time): Likewise.
14932         * modules/usleep-tests (Depends-on): New test.
14933         * tests/test-usleep.c: New file.
14934
14935         chown: work around OpenBSD bug
14936         * lib/chown.c (rpl_chown): Work around the bug.
14937         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14938         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14939         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14940         * modules/chown (Depends-on): Add stdbool.
14941         * modules/lchown (Depends-on): Likewise.
14942         * doc/posix-functions/chown.texi (chown): Document the bug.
14943         * doc/posix-functions/lchown.texi (lchown): Likewise.
14944         * tests/test-lchown.h (test_chown): Relax test.
14945
14946         mkstemp: avoid conflict with C++ keyword template
14947         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14948         * lib/mkostemp.c (mkostemp): Likewise.
14949         * lib/mkostemps.c (mkostemps): Likewise.
14950         * lib/mkstemp.c (mkstemp): Likewise.
14951         * lib/mkstemps.c (mkstemps): Likewise.
14952
14953         xalloc-die-tests: optimize
14954         * tests/test-xalloc-die.sh: Reduce number of processes.
14955
14956 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14957
14958         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14959         patch from ludo@gnu.org (Ludovic Courtès).
14960
14961 2009-11-17  Jim Meyering  <meyering@redhat.com>
14962
14963         version-etc: use proper license string
14964         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14965         * modules/version-etc-fsf: Likewise.
14966
14967 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14968
14969         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14970         printed to stdout.  Deal with EOL differences.
14971
14972 2009-11-17  Eric Blake  <ebb9@byu.net>
14973
14974         unsetenv: work around Solaris bug
14975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14976         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14977         Reported by Jim Meyering.
14978
14979         vasnprintf: avoid compiler warnings
14980         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14981         variables.
14982         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14983
14984 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14985
14986         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14987         settings since xalloc-die is no longer the self test,
14988         xalloc-die.sh is.
14989
14990 2009-11-17  Jim Meyering  <meyering@redhat.com>
14991
14992         test-xalloc-die.sh: make the code agree with the commit log
14993         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14994         at the end, just in case you happen to have a test-xalloc-die
14995         program in some other PATH directory.
14996
14997         test-xalloc-die.sh: fix a portability bug
14998         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14999         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15000         Otherwise, argv[0] (as often seen in diagnostics) would be too
15001         system-dependent, sometimes with, and sometimes without the leading "./".
15002
15003         version-etc-fsf: relax license to LGPLv3+
15004         * modules/version-etc-fsf (License): Relax license.
15005
15006 2009-11-16  Eric Blake  <ebb9@byu.net>
15007
15008         xalloc-die-tests: avoid printing null pointer
15009         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15010         shell script.
15011         * tests/test-xalloc-die.c (program_name): Declare.
15012         * tests/test-xalloc-die.sh (tmpfiles): New file.
15013
15014         setenv, unsetenv: work around various bugs
15015         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15016         (setenv) [HAVE_SETENV]: Work around bugs.
15017         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15018         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15019         for bugs.
15020         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15021         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15023         * modules/stdlib (Makefile.am): Update substitutions.
15024         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15025         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15026         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15027         * modules/setenv-tests: New test.
15028         * modules/unsetenv-tests: Likewise.
15029         * tests/test-setenv.c: New file.
15030         * tests/test-unsetenv.c: Likewise.
15031
15032 2009-11-16  Jim Meyering  <meyering@redhat.com>
15033
15034         version-etc: relax license to LGPLv3+
15035         * modules/version-etc (License): Relax license.
15036
15037         better AC_REQUIRE expanded-before-required-warning avoidance
15038         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15039         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15040         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15041         which is no longer needed.
15042
15043 2009-11-16  Eric Blake  <ebb9@byu.net>
15044
15045         test-freading: clean up temporary file
15046         * tests/test-freading.c (main): Remove file on success, and use
15047         ASSERT more liberally.
15048         Reported by Jim Meyering.
15049
15050 2009-11-16  Jim Meyering  <meyering@redhat.com>
15051
15052         avoid new AC_REQUIRE expanded-before-required warnings
15053         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15054         merely using it.
15055         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15056         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15057
15058 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15059
15060         * tests/test-xalloc-die.c: New file.
15061         * modules/xalloc-die-tests: New file.
15062         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15063         XFAIL_TESTS so it can be appended by modules.
15064
15065 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15066
15067         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15068         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15069
15070 2009-11-14  Eric Blake  <ebb9@byu.net>
15071
15072         fnmatch: avoid compiler warning
15073         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15074         to silence compiler warning about mismatch signedness in ?:.
15075         Reported by Robert Millan.
15076
15077         intprops: add double-inclusion guard
15078         * lib/intprops.h: Allow idempotent includes.
15079         Suggested by Bruce Korb.
15080
15081         openat: detect Solaris fchownat bug
15082         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15083         penalizing glibc chownat when only lchownat is broken.
15084         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15085         trailing slash bugs.
15086         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15087         * modules/openat-tests (Files): Include more files.
15088         (Depends-on): Add mgetgroups, sleep, stat-time.
15089         (configure.ac): Add additional checks.
15090         (Makefile.am): Build new test.
15091         * tests/test-fchownat.c: New file.
15092
15093         lchown: detect Solaris and FreeBSD bug
15094         * lib/lchown.c (rpl_lchown): Work around bug.
15095         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15097         * modules/unistd (Makefile.am): Populate it.
15098         * lib/unistd.in.h (lchown): Update declaration.
15099         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15100         * modules/lchown-tests: New file.
15101         * tests/test-lchown.h (test_lchown): Likewise.
15102         * tests/test-lchown.c (main): Likewise.
15103
15104         chown: detect Solaris and FreeBSD bug
15105         * lib/chown.c (rpl_chown): Work around bug.
15106         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15107         (gl_PREREQ_CHOWN): Delete.
15108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15109         * modules/unistd (Makefile.am): Populate it.
15110         * lib/unistd.in.h (chown): Update declaration.
15111         * lib/lchown.c (chown): Update client.
15112         * modules/lchown (Depends-on): Add lstat.
15113         * doc/posix-functions/chown.texi (chown): Document the bug.
15114         * doc/posix-functions/getgroups.texi (getgroups): Document
15115         getgroups pitfall.
15116         * modules/chown-tests: New file.
15117         * tests/test-chown.h (test_chown): Likewise.
15118         * tests/test-chown.c (main): Likewise.
15119
15120 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15121
15122         gnulib-tool: correctly detect absence of m4 directories
15123         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15124
15125 2009-11-14  Jim Meyering  <meyering@redhat.com>
15126
15127         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15128         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15129
15130 2009-11-14  John W. Eaton  <jwe@gnu.org>
15131
15132         strftime.h: wrap funtion declaration in extern "C" block
15133         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15134
15135 2009-11-13  Eric Blake  <ebb9@byu.net>
15136
15137         getgroups: avoid compiler warning
15138         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15139
15140         getgroups: work around FreeBSD bug
15141         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15142         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15143         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15144         * tests/test-getgroups.c (main): Fix buffer overrun.
15145
15146         getgroups: avoid compilation failure
15147         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15148         * modules/getgroups (Depends-on): Add stdint.
15149
15150 2009-11-13  Jim Meyering  <meyering@redhat.com>
15151
15152         test-getgroups: avoid compilation failure
15153         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15154
15155 2009-11-13  Eric Blake  <ebb9@byu.net>
15156
15157         mgetgroups: new module, taken from coreutils
15158         * modules/mgetgroups: New file.
15159         * lib/mgetgroups.h: Likewise.
15160         * lib/mgetgroups.c (mgetgroups): Likewise.
15161         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15162         * MODULES.html.sh (Users and groups): Mention it.
15163
15164         getgroups: don't expose GETGROUPS_T to user
15165         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15166         an element at a time if GETGROUPS_T is wrong size.
15167         * lib/getugroups.h (getugroups): Change signature.
15168         * lib/unistd.in.h (getgroups): Likewise.
15169         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15170         signature needs fixing.
15171         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15172         AC_TYPE_GETGROUPS.
15173         * modules/group-member (Depends-on): Add getgroups.
15174         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15175         (group_member): Rely on getgroups replacement.
15176         * lib/getugroups.c (getugroups): Use gid_t.
15177         * tests/test-getgroups.c (main): Likewise.
15178         * NEWS: Mention the signature change.
15179         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15180         problem with signature.
15181         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15182         GETGROUPS_T is still useful for setgroups.
15183
15184         getgroups, getugroups: provide stubs for mingw
15185         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15186         * lib/getugroups.c (getugroups): Likewise.
15187         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15188         function.  Modernize replacement scheme.
15189         (gl_PREREQ_GETGROUPS): Delete.
15190         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15191         * modules/getgroups (configure.ac): Declare witness.
15192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15193         * modules/unistd (Depends-on): Substitute witness.
15194         * lib/unistd.in.h (getgroups): Declare replacement.
15195
15196         getgroups: avoid calling exit
15197         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15198         drop xalloc.
15199         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15200         dependencies.
15201         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15202         exiting, in the rare case of malloc failure.
15203
15204         getgroups: fix logic error
15205         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15206         has more than 20 groups.
15207         * modules/getgroups-tests: New test.
15208         * tests/test-getgroups.c: New file.
15209
15210 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15211
15212         * tests/test-base64.c: Improve.
15213
15214 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15215
15216         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15217         Blake <ebb9@byu.net>.
15218
15219 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15220
15221         * tests/test-xvasprintf.c: Add %s%s related checks.
15222
15223 2009-11-12  Eric Blake  <ebb9@byu.net>
15224
15225         version-etc: match standards.texi style
15226         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15227         and use <> only for URLs.
15228
15229 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15230
15231         fts: do not fail on a submount during traversal
15232         * lib/fts.c (fts_build): Read the stat info again after opening
15233         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15234         Original report at http://bugzilla.redhat.com/501848.
15235
15236 2009-11-12  Jim Meyering  <meyering@redhat.com>
15237
15238         bootstrap: sync from coreutils
15239         * build-aux/bootstrap (bootstrap_epilogue): New function.
15240         Use git_modules_config in one more place.  This make bootstrap's
15241         --gnulib-srcdir option more useful for testing.
15242
15243         bootstrap: generalize autoheader check
15244         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15245         AC_CONFIG_HEADERS.
15246
15247 2009-11-11  Eric Blake  <ebb9@byu.net>
15248
15249         mkfifoat: use new modules for Solaris and BSD bugs
15250         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15251         * lib/mkfifoat.c (mknodat): Split...
15252         * lib/mknodat.c (mknodat): ...into new file.
15253         * modules/mkfifoat (Files): Ship new file.
15254         (Depends-on): Add mkfifo, mknod.
15255         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15256         (Depends-on): Add symlink.
15257         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15258         redundant with test_mkfifo.h.
15259         (do_mkfifoat, do_mknodat): New helpers.
15260
15261         mknod: new module
15262         * modules/mknod: New file.
15263         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15264         * lib/mknod.c (mknod): Likewise.
15265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15266         defaults.
15267         * modules/sys_stat (Makefile.am): Substitute them.
15268         * lib/sys_stat.in.h (mknod): Declare replacement.
15269         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15270         Document it.
15271         * doc/posix-functions/mknod.texi (mknod): Likewise.
15272         * modules/mknod-tests: New test.
15273         * tests/test-mknod.c: Likewise.
15274
15275         mkfifo: new module
15276         * modules/mkfifo: New file.
15277         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15278         * lib/mkfifo.c (mkfifo): Likewise.
15279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15280         defaults.
15281         * modules/sys_stat (Makefile.am): Substitute them.
15282         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15283         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15284         Document it.
15285         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15286         * modules/mkfifo-tests: New test.
15287         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15288         from test-mkfifoat.c.
15289         * tests/test-mkfifo.c: New file.
15290
15291         readlink: detect FreeBSD bug
15292         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15293         slash on symlink.
15294         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15295         * tests/test-readlink.h (test_readlink): Enhance test.
15296
15297         symlink: detect FreeBSD bug
15298         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15299         slash on symlink.
15300         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15301         * tests/test-symlink.h (test_symlink): Enhance test.
15302
15303 2009-11-10  Eric Blake  <ebb9@byu.net>
15304
15305         link: detect FreeBSD bug
15306         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15307         symlink.
15308         * doc/posix-functions/link.texi (link): Document the bug.
15309         * tests/test-link.h (test_link): Enhance test.
15310         * tests/test-linkat.c (main): Update caller.
15311
15312         unlink, remove: detect FreeBSD bug
15313         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15314         slash on symlink.
15315         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15316         * doc/posix-functions/remove.texi (remove): Likewise.
15317         * tests/test-unlink.h (test_unlink): Enhance test.
15318         * tests/test-remove.c (main): Likewise.
15319
15320 2009-11-09  Eric Blake  <ebb9@byu.net>
15321
15322         rename: detect FreeBSD bug
15323         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15324         slash on symlink.
15325         * modules/renameat-tests (Depends-on): Add filenamecat.
15326         * tests/test-rename.h (test_rename): Allow one more errno.
15327         * tests/test-renameat.c (main): Likewise.
15328         * doc/posix-functions/rename.texi (rename): Document the bug.
15329
15330         open: detect FreeBSD bug
15331         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15332         symlink.
15333         * doc/posix-functions/open.texi (open): Document the bug.
15334         * doc/posix-functions/utimes.texi (utimes): Likewise.
15335         * tests/test-open.h (test_open): Add parameters, and test symlink
15336         handling.
15337         * tests/test-open.c (main): Adjust caller.
15338         * tests/test-fcntl-safer.c (main): Likewise.
15339         * modules/open-tests (Depends-on): Add stdbool, symlink.
15340         * modules/fcntl-safer-tests (Depends-on): Likewise.
15341         * tests/test-openat.c (main): Add test-open tests.
15342
15343         stat: detect FreeBSD bug
15344         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15345         symlink.
15346         * doc/posix-functions/stat.texi (stat): Document the bug.
15347         * tests/test-stat.h (test_stat_func): Add argument.
15348         * tests/test-stat.c (main): Adjust caller.
15349         * tests/test-fstatat.c (main): Likewise.
15350         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15351         Reported by Jim Meyering.
15352
15353 2009-11-09  James Youngman  <jay@gnu.org>
15354
15355         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15356         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15357
15358 2009-11-08  Jim Meyering  <meyering@redhat.com>
15359
15360         utimens: remove invalid futimesat call
15361         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15362         It used the file descriptor of the target file as the DIR_FD
15363         parameter and NULL as the file name.  That caused failure with
15364         errno == EFAULT on FreeBSD-8.0-rc2
15365
15366 2009-11-07  Eric Blake  <ebb9@byu.net>
15367
15368         fflush, freadseek: use fseeko, not fseek
15369         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15370         (clear_ungetc_buffer): Avoid potential problems on large files.
15371         * lib/freadseek.c (freadseek): Likewise.
15372         * modules/freadseek (Depends-on): Add fseeko.
15373         * modules/fseek (configure.ac): Set a witness.
15374         * tests/test-fflush.c (main): Use fseeko.
15375         * tests/test-fpurge.c (fseek): Disable link warning.
15376         * tests/test-freadable.c (fseek): Likewise.
15377         * tests/test-freading.c (fseek): Likewise.
15378         * tests/test-fseeko.c (fseek): Likewise.
15379         * tests/test-ftell.c (fseek): Likewise.
15380         * tests/test-ftello.c (fseek): Likewise.
15381         * tests/test-fwritable.c (fseek): Likewise.
15382         * tests/test-fwriting.c (fseek): Likewise.
15383
15384 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15385
15386         * modules/memchr (Depends-on): Drop getpagesize dependency.
15387
15388 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15389
15390         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15391         Reported by Ludovic Courtès.
15392         * build-aux/pmccabe2html: Improve example usage.
15393         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15394
15395 2009-11-06  Jim Meyering  <meyering@redhat.com>
15396
15397         do-release-commit-and-tag: New module.
15398         Automate the release-commit and tag process.
15399         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15400         * modules/do-release-commit-and-tag: New file.
15401         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15402
15403 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15404
15405         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15406         because test-select.c uses inet_pton.
15407
15408 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15409
15410         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15411         GETADDRINFO_LIB.  Bump serial number.
15412         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15413         Suggested by Eric Blake <ebb9@byu.net>.
15414
15415 2009-11-05  Eric Blake  <ebb9@byu.net>
15416
15417         strtod: detect darwin bug
15418         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15419         Reported by Leo Davis.
15420
15421         freopen-safer: new module
15422         * modules/freopen-safer: New module.
15423         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15424         * lib/freopen-safer.c (freopen_safer): New file.
15425         * lib/stdio-safer.h (freopen_safer): New declaration.
15426         * lib/stdio--.h (freopen): New override.
15427         * MODULES.html.sh (File stream based Input/Output): Mention it.
15428         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15429         freopen-safer module.
15430         * doc/posix-functions/stderr.texi (stderr): Likewise.
15431         * doc/posix-functions/stdin.texi (stdin): Likewise.
15432         * doc/posix-functions/stdout.texi (stdout): Likewise.
15433         * modules/freopen-safer-tests: New test.
15434         * tests/test-reopen-safer.c: New file.
15435
15436 2009-11-05  Jim Meyering  <meyering@redhat.com>
15437
15438         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15439         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15440
15441 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15442
15443         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15444
15445 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15446
15447         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15448
15449 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15450
15451         Fix link error.
15452         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15453         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15454
15455 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15456
15457         * tests/test-func.c: Also test value of __func__.
15458
15459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15460
15461         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15462         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15463
15464 2009-11-05  Bruno Haible  <bruno@clisp.org>
15465
15466         Fix link error.
15467         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15468         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15469         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15470
15471 2009-11-05  Bruno Haible  <bruno@clisp.org>
15472
15473         Tests for module 'inet_pton'.
15474         * modules/inet_pton-tests: New file.
15475         * tests/test-inet_pton.c: New file.
15476
15477 2009-11-05  Bruno Haible  <bruno@clisp.org>
15478
15479         Tests for module 'inet_ntop'.
15480         * modules/inet_ntop-tests: New file.
15481         * tests/test-inet_ntop.c: New file.
15482
15483 2009-11-04  Eric Blake  <ebb9@byu.net>
15484
15485         stdlib-safer: wrap all mkstemp variants
15486         * modules/mkostemp (configure.ac): Set witness.
15487         * modules/mkostemps (configure.ac): Likewise.
15488         * modules/mkstemps (configure.ac): Likewise.
15489         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15490         (mkstemps_safer): Wrap more functions.
15491         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15492         wrapping.
15493         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15494         (mkstemps_safer): Implement the wrappers.
15495
15496         mkstemps, mkostemps: new modules
15497         * modules/mkostemps: New module.
15498         * modules/mkstemps: Likewise.
15499         * lib/mkostemps.c (mkostemps): New file.
15500         * lib/mkstemps.c (mkstemps): Likewise.
15501         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15502         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15504         * modules/stdlib (Makefile.am): Substitute them.
15505         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15506         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15507         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15508         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15509         * MODULES.html.sh (File system functions): Mention them.
15510
15511         tempname: resync from glibc
15512         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15513         same values for __GT_FILE as glibc.  Abort even when assertions
15514         are disabled.
15515         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15516         match its value otherwise.  Allow idempotent inclusion.
15517         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15518         * lib/mkostemp.c (mkostemp): Likewise.
15519         * lib/mkstemp.c (mkstemp): Likewise.
15520         * lib/tmpfile.c (tmpfile): Likewise.
15521         * NEWS: Document this.
15522
15523         utimens: fix use of futimens on older Linux
15524         * lib/utimens.c (fdutimens): Use updated, rather than original,
15525         timespec to avoid bug in older Linux kernel.
15526         Reported by Simon Josefsson.
15527
15528 2009-11-04  Bruno Haible  <bruno@clisp.org>
15529
15530         Make num_processors more flexible and consistent.
15531         * lib/nproc.h (enum nproc_query): New type.
15532         (num_processors): Add a 'query' argument.
15533         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15534         (num_processors): Add a 'query' argument. Test the value of the
15535         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15536         mingw, count the number of CPUs available for the current process.
15537         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15538         Check for sched_getaffinity and sched_getaffinity_np.
15539         * modules/nproc (Depends-on): Add c-ctype, extensions.
15540         * NEWS: Mention the change.
15541
15542 2009-11-03  Bruno Haible  <bruno@clisp.org>
15543
15544         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15545
15546 2009-11-03  Jim Meyering  <meyering@redhat.com>
15547
15548         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15549         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15550         if it is defined.
15551
15552 2009-11-02  Eric Blake  <ebb9@byu.net>
15553
15554         mktime, timegm: share common declaration
15555         * lib/mktime-internal.h: New file.
15556         * lib/mktime.c: Use it rather than open-coding a declaration.
15557         * lib/timegm.c: Likewise.
15558         * modules/mktime (Files): Ship it.
15559         * modules/timegm (Files): Likewise.
15560         Suggested by Bruno Haible.
15561
15562         test-update-copyright: update test to match script changes
15563         * tests/test-update-copyright.sh: Avoid hard-coding perl
15564         location.  Don't update *.bak created by earlier runs.
15565
15566 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15567             Simon Josefsson  <simon@josefsson.org>
15568             Bruno Haible  <bruno@clisp.org>
15569
15570         Fix link error on Solaris 8.
15571         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15572         also in libnsl. Define also INET_PTON_LIB.
15573         * modules/inet_pton (Link): New section.
15574
15575 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15576             Bruno Haible  <bruno@clisp.org>
15577
15578         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15579         * modules/inet_ntop (Link): New section.
15580         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15581
15582 2009-11-02  Eric Blake  <ebb9@byu.net>
15583
15584         maint: avoid compiler warnings in m4 macros
15585         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15586         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15587
15588 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15589
15590         * m4/pmccabe2html.m4: Remove file.
15591         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15592         function.  Change maintainer.
15593         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15594         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15595         Courtès).
15596
15597 2009-10-31  Eric Blake  <ebb9@byu.net>
15598
15599         fseeko: fix m4 regression
15600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15601         regression from 2009-10-27.
15602         Reported by Ralf Wildenhues.
15603
15604 2009-10-31  Jim Meyering  <meyering@redhat.com>
15605
15606         inttostr: aesthetics and improved (compile-time) safety
15607         Define inttype_is_signed rather than inttype_is_unsigned,
15608         since the sole use is via "#if inttype_is_signed".
15609         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15610         inttype_is_unsigned.
15611         * lib/offtostr.c (inttype_is_signed): Likewise.
15612         * lib/uinttostr.c (inttype_is_signed): Likewise.
15613         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15614         * lib/inttostr.c (inttostr): Use verify to cross-check the
15615         inttype_is_signed value and the signedness of the actual type.
15616         * modules/inttostr (Depends-on): Add verify.
15617
15618 2009-10-30  Eric Blake  <ebb9@byu.net>
15619
15620         build: avoid compiler warnings
15621         * lib/fchmodat.c (lchmod): Mark unused variables.
15622         * lib/getopt.c (_getopt_initialize): Likewise.
15623         * lib/mktime.c (__mktime_internal): Provide prototype.
15624         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15625         older gcc that do not understand #pragma GCC diagnostic.
15626         * lib/uinttostr.c (inttype_is_unsigned): Define.
15627         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15628
15629 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15630
15631         stat: fix compilation on AIX
15632         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15633         only see struct stat64.
15634
15635 2009-10-30  Eric Blake  <ebb9@byu.net>
15636
15637         exclude: make more robust
15638         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15639         rather than masking a coding bug.
15640         Suggested by Bruno Haible.
15641
15642 2009-10-30  Jim Meyering  <meyering@redhat.com>
15643
15644         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15645         Rather than putting #!/usr/bin/perl on the first line,
15646         start with a variant of what's recommended by "man perlrun" that
15647         invokes the first "perl" program from your shell's search path.
15648         * build-aux/gitlog-to-changelog: Replace #!... as above.
15649         Add a "Local Variables" perl mode setting.
15650         Prompted by a patch from Ludovic Courtès.
15651         Improved by Eric Blake.
15652         * build-aux/useless-if-before-free: Likewise.
15653         * build-aux/announce-gen: Likewise.
15654         * build-aux/update-copyright: Likewise.
15655
15656 2009-10-29  Eric Blake  <ebb9@byu.net>
15657
15658         filenamecat-lgpl: adjust clients
15659         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15660         filenamecat.
15661         * modules/renameat (Depends-on): Likewise.
15662
15663         filenamecat: split into filenamecat-lgpl
15664         * modules/filenamecat-lgpl: New module.
15665         * modules/filenamecat (Files): Move library-safe files into
15666         filenamecat-lgpl.
15667         (Depends-on): Add filenamecat-lgpl.
15668         (configure.ac): Declare witness.
15669         * lib/filenamecat.h (file_name_concat): Only declare when using
15670         GPL module.
15671         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15672         Move...
15673         * lib/filenamecat-lgpl.c: ...into new file.
15674         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15675         (gl_FILE_NAME_CONCAT): Use it.
15676         * MODULES.html.sh (File system functions): Mention new module.
15677
15678         argp: avoid memory leak
15679         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15680         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15681         base_name, since the latter malloc()s and can call exit().
15682         Leak introduced 2006-07-03.
15683
15684         dirname-lgpl: adjust clients that don't need full dirname
15685         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15686         * modules/filenamecat (Depends-on): Likewise.
15687         * modules/linkat (Depends-on): Likewise.
15688         * modules/mkancesdirs (Depends-on): Likewise.
15689         * modules/mkdir (Depends-on): Likewise.
15690         * modules/openat (Depends-on): Likewise.
15691         * modules/savewd (Depends-on): Likewise.
15692         * modules/rename (Depends-on): Likewise.
15693         (License): Relax license.
15694         * modules/mkdir-tests (Depends-on): Drop progname.
15695         (Makefile.am): Delete unneeded LDADD.
15696         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15697
15698         dirname: split into dirname-lgpl
15699         * modules/dirname-lgpl: New module.
15700         * modules/dirname (Files): Move library-safe files into
15701         dirname-lgpl.
15702         (Depends-on): Add dirname-lgpl.
15703         (configure.ac): Declare witness.
15704         * modules/double-slash-root (License): Relax license.
15705         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15706         module.
15707         * lib/dirname.c (dir_len, mdir_name): Move...
15708         * lib/dirname-lgpl.c: ...into new file.
15709         * lib/basename.c (last_component, base_len): Move...
15710         * lib/basename-lgpl.c: ...into new file.
15711         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15712         (gl_DIRNAME): Use it.
15713         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15714         Mention new module.
15715         * modules/dirname-tests (Depends-on): Add progname.
15716         * tests/test-dirname.c (program_name): Delete.
15717
15718         mkdir: make safe for libraries
15719         * modules/mkdir (Depends-on): Drop xalloc.
15720         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15721         exit.
15722
15723         tests: avoid some compiler warnings
15724         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15725         literals.
15726         * tests/test-memchr.c (main): Avoid type mismatch.
15727         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15728         * tests/test-base64.c (main): Likewise.
15729         * tests/test-getdelim.c (main): Likewise.
15730         * tests/test-gethostname.c (main): Likewise.
15731         * tests/test-getline.c (main): Likewise.
15732         * tests/test-netinet_in.c (main): Likewise.
15733         * tests/test-select.c (open_server_socket, main): Likewise.
15734         * tests/test-select-stdin.c (main): Likewise.
15735         * tests/test-sockets.c (main): Likewise.
15736         * tests/test-strsignal.c (main): Likewise.
15737         * tests/test-sys_select.c (main): Likewise.
15738         * tests/test-sys_socket.c (main): Likewise.
15739         * tests/test-u64.c (main): Likewise.
15740         * tests/test-xfprintf-posix.c (main): Likewise.
15741         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15742
15743         sockets: avoid compiler warning
15744         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15745
15746         maint: detect usage(1) and other suspicious exits
15747         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15748
15749 2009-10-29  Jim Meyering  <meyering@redhat.com>
15750
15751         timespec: long-to-int truncation could make timespec_cmp malfunction
15752         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15753         a multiple of 2^32 nanoseconds as no difference.
15754
15755 2009-10-28  Jim Meyering  <meyering@redhat.com>
15756
15757         fprintftime: wrap macro code argument in "do {...} while(0)"
15758         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15759         cpy macro must be a statement that can be followed by a semicolon.
15760         Now that the else clause contains a comment and is hence longer
15761         than one line, I require curly braces.  That in turn requires
15762         that we wrap this code block in the standard do...while(0).
15763
15764         fprintftime: remove stray semicolon from previous change
15765         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15766
15767         fprintftime: avoid a warning about ignored fwrite return value
15768         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15769         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15770         that is unsafe.
15771         * modules/fprintftime (Depends-on): Add ignore-value.
15772
15773         exclude: avoid an unwarranted warning
15774         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15775
15776 2009-10-27  Eric Blake  <ebb9@byu.net>
15777
15778         fseek: avoid compilation failure when fflush is replaced
15779         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15780         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15781         module is in use.
15782         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15783         module is not in use; since REPLACE_FSEEK worked otherwise.
15784         (GNULIB_FTELLO): Likewise for ftell.
15785         Reported by Ian Beckwith and others.
15786
15787 2009-10-27  Bruno Haible  <bruno@clisp.org>
15788
15789         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15790         Reported by Jim Meyering.
15791
15792 2009-10-27  Jim Meyering  <jim@meyering.net>
15793             Bruno Haible  <bruno@clisp.org>
15794
15795         Avoid warning despite dropping the return value of fwrite.
15796         * lib/unicodeio.c: Include ignore-value.h.
15797         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15798         * modules/unicodeio (Depends-on): Add ignore-value.
15799
15800 2009-10-26  Eric Blake  <ebb9@byu.net>
15801
15802         areadlinkat: fix fallback path
15803         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15804         pointer and zero.
15805
15806 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15807
15808         Use a better IO block size for modern systems
15809         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15810         * lib/md2.c: Likewise.
15811         * lib/md4.c: Likewise.
15812         * lib/md5.c: Likewise.
15813         * lib/sha1.c: Likewise.
15814         * lib/sha256.c: Likewise.
15815         * lib/sha512.c: Likewise.
15816
15817 2009-10-22  Eric Blake  <ebb9@byu.net>
15818
15819         tests: avoid several compiler warnings
15820         * tests/test-getcwd.c (main): Avoid buffer underflow.
15821         * tests/test-getdate.c (main): String literals are not safe with
15822         putenv, so use setenv.  Declare unused argument.
15823         * modules/getdate-tests (Depends-on): Add setenv.
15824         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15825         problems with string literals in char *.
15826         * tests/test-hash.c (main): Avoid shadowing declaration.
15827         (insert_new): Treat string literals as char const *.
15828         * tests/test-getopt.h (test_getopt): Likewise.
15829         (getopt_loop): Alter types to minimize casting elsewhere.
15830         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15831         (test_getopt_long_posix): Likewise.
15832         (do_getopt_long): Add wrapper to minimize casting.
15833         * tests/test-atexit.c (clear_temp_file): Use void.
15834         * tests/test-areadlink-with-size.c (main): Declare unused
15835         arguments.
15836         * tests/test-areadlink.c (main): Likewise.
15837         * tests/test-areadlinkat-with-size.c (main): Likewise.
15838         * tests/test-areadlinkat.c (main): Likewise.
15839         * tests/test-canonicalize-lgpl.c (main): Likewise.
15840         * tests/test-canonicalize.c (main): Likewise.
15841         * tests/test-dirent-safer.c (main): Likewise.
15842         * tests/test-dirname.c (main): Likewise.
15843         * tests/test-dup2.c (main): Likewise.
15844         * tests/test-fchdir.c (main): Likewise.
15845         * tests/test-fcntl-h.c (main): Likewise.
15846         * tests/test-fcntl-safer.c (main): Likewise.
15847         * tests/test-fdopendir.c (main): Likewise.
15848         * tests/test-fdutimensat.c (main): Likewise.
15849         * tests/test-fflush.c (main): Likewise.
15850         * tests/test-filenamecat.c (main): Likewise.
15851         * tests/test-filevercmp.c (main): Likewise.
15852         * tests/test-fopen-safer.c (main): Likewise.
15853         * tests/test-fopen.c (main): Likewise.
15854         * tests/test-fpending.c (main): Likewise.
15855         * tests/test-fpurge.c (main): Likewise.
15856         * tests/test-freading.c (main): Likewise.
15857         * tests/test-fstatat.c (main): Likewise.
15858         * tests/test-fsync.c (main): Likewise.
15859         * tests/test-futimens.c (main): Likewise.
15860         * tests/test-getndelim2.c (main): Likewise.
15861         * tests/test-gettimeofday.c (main): Likewise.
15862         * tests/test-getopt.c (main): Likewise.
15863         * tests/test-i-ring.c (main): Likewise.
15864         * tests/test-inttypes.c (main): Likewise.
15865         * tests/test-link.c (main): Likewise.
15866         * tests/test-lstat.c (main): Likewise.
15867         * tests/test-math.c (main): Likewise.
15868         * tests/test-md5.c (main): Likewise.
15869         * tests/test-memchr2.c (main): Likewise.
15870         * tests/test-memrchr.c (main): Likewise.
15871         * tests/test-mkdir.c (main): Likewise.
15872         * tests/test-mkdirat.c (main): Likewise.
15873         * tests/test-mkfifoat.c (main): Likewise.
15874         * tests/test-open.c (main): Likewise.
15875         * tests/test-openat-safer.c (main): Likewise.
15876         * tests/test-openat.c (main): Likewise.
15877         * tests/test-quotearg.c (main): Likewise.
15878         * tests/test-rawmemchr.c (main): Likewise.
15879         * tests/test-readlink.c (main): Likewise.
15880         * tests/test-remove.c (main): Likewise.
15881         * tests/test-rename.c (main): Likewise.
15882         * tests/test-renameat.c (main): Likewise.
15883         * tests/test-rmdir.c (main): Likewise.
15884         * tests/test-sha1.c (main): Likewise.
15885         * tests/test-signal.c (main): Likewise.
15886         * tests/test-sigaction.c (main): Likewise.
15887         * tests/test-stat.c (main): Likewise.
15888         * tests/test-stat-time.c (main): Likewise.
15889         * tests/test-stddef.c (main): Likewise.
15890         * tests/test-stdint.c (main): Likewise.
15891         * tests/test-stdio.c (main): Likewise.
15892         * tests/test-stdlib.c (main): Likewise.
15893         * tests/test-strchrnul.c (main): Likewise.
15894         * tests/test-strerror.c (main): Likewise.
15895         * tests/test-string.c (main): Likewise.
15896         * tests/test-strtod.c (main): Likewise.
15897         * tests/test-strverscmp.c (main): Likewise.
15898         * tests/test-symlink.c (main): Likewise.
15899         * tests/test-symlinkat.c (main): Likewise.
15900         * tests/test-sys_stat.c (main): Likewise.
15901         * tests/test-sys_time.c (main): Likewise.
15902         * tests/test-time.c (main): Likewise.
15903         * tests/test-unistd.c (main): Likewise.
15904         * tests/test-unlink.c (main): Likewise.
15905         * tests/test-unlinkat.c (main): Likewise.
15906         * tests/test-utimens.c (main): Likewise.
15907         * tests/test-utimensat.c (main): Likewise.
15908         * tests/test-version-etc.c (main): Likewise.
15909         * tests/test-wchar.c (main): Likewise.
15910         * tests/test-wctype.c (main): Likewise.
15911         * tests/test-xprintf-posix.c (main): Likewise.
15912         * tests/test-posixtm.c (main): Likewise.
15913         (STREQ): Delete unused macro.
15914         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15915         shadowed variables.
15916         * tests/test-memchr.c (main): Likewise.
15917
15918 2009-10-21  Eric Blake  <ebb9@byu.net>
15919
15920         areadlinkat: avoid failure on older glibc
15921         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15922         rather than mis-comparing 0 against FUNC_RESULT of char*.
15923
15924 2009-10-21  Bruno Haible  <bruno@clisp.org>
15925
15926         * modules/stpncpy (License): Relicense under LGPLv2+.
15927         Reported by David Lutterkort <lutter@redhat.com>.
15928
15929 2009-10-20  Eric Blake  <ebb9@byu.net>
15930
15931         utimensat: work around Solaris 9 bug
15932         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15933         has trailing slash bugs.
15934         * tests/test-lutimens.h (test_lutimens): Enhance test.
15935         * tests/test-utimens.h (test_utimens): Likewise.
15936         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15937         * doc/posix-functions/utimes.texi (utimes): Likewise.
15938         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15939         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15940         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15941         * doc/posix-functions/futimens.texi (futimens): Likewise.
15942
15943         fdutimensat: new module
15944         * modules/fdutimensat: New file.
15945         * lib/fdutimensat.c (fdutimensat): Likewise.
15946         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15947         * MODULES.html.sh (File system functions): Mention module.
15948         * modules/fdutimensat-tests: New test.
15949         * tests/test-fdutimensat.c: Likewise.
15950
15951         doc: regenerate INSTALL
15952         * doc/INSTALL: Reflect recent autoconf update.
15953         * doc/INSTALL.ISO: Likewise.
15954         * doc/INSTALL.UTF-8: Likewise.
15955
15956 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15957
15958         acl: warn if ACL support is not detected
15959         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15960
15961 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15962
15963         * lib/nproc.h: Add extern "C" block for C++.
15964
15965 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15966             Bruno Haible  <bruno@clisp.org>
15967
15968         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15969         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15970         * doc/posix-functions/isalpha.texi: Likewise.
15971         * doc/posix-functions/isblank.texi: Likewise.
15972         * doc/posix-functions/iscntrl.texi: Likewise.
15973         * doc/posix-functions/isdigit.texi: Likewise.
15974         * doc/posix-functions/isgraph.texi: Likewise.
15975         * doc/posix-functions/islower.texi: Likewise.
15976         * doc/posix-functions/isprint.texi: Likewise.
15977         * doc/posix-functions/ispunct.texi: Likewise.
15978         * doc/posix-functions/isspace.texi: Likewise.
15979         * doc/posix-functions/isupper.texi: Likewise.
15980         * doc/posix-functions/isxdigit.texi: Likewise.
15981
15982 2009-10-18  Bruno Haible  <bruno@clisp.org>
15983
15984         Tests for module 'isblank'.
15985         * modules/isblank-tests: New file.
15986         * tests/test-isblank.c: New file.
15987
15988         New module 'isblank'.
15989         * lib/isblank.c: New file.
15990         * m4/isblank.m4: New file.
15991         * modules/isblank: New file.
15992         * doc/posix-functions/isblank.texi: Mention the new module.
15993
15994 2009-10-18  Bruno Haible  <bruno@clisp.org>
15995
15996         New module 'ctype'.
15997         * lib/ctype.in.h: New file.
15998         * m4/ctype.m4: New file.
15999         * modules/ctype: New file.
16000         * doc/posix-headers/ctype.texi: Mention the new module.
16001
16002 2009-10-18  Jim Meyering  <meyering@redhat.com>
16003
16004         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16005         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16006         right after its initialization, rather than farther down.
16007         Keeping these in close proximity makes it easier to ensure
16008         that each such variable is initialized.  E.g.,
16009
16010             LIB_CLOCK_GETTIME=
16011             AC_SUBST([LIB_CLOCK_GETTIME])
16012
16013         This change also increments these serial numbers.
16014         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16017
16018 2009-10-18  Bruno Haible  <bruno@clisp.org>
16019
16020         Don't let environment variables perturb build.
16021         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16022         (gl_PREREQ_GETHRXTIME): ... not here.
16023
16024 2009-10-18  Bruno Haible  <bruno@clisp.org>
16025
16026         Avoid symlink attack in localcharset module.
16027         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16028         (O_NOFOLLOW): Define fallback.
16029         (get_charset_aliases): Don't open the file if it is a symbolic link.
16030         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16031         gl_FCNTL_H.
16032         (gl_FCNTL_H): Require it.
16033         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16034         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16035         Reported by Fergal Glynn <fglynn@veracode.com>.
16036
16037 2009-10-18  Bruno Haible  <bruno@clisp.org>
16038
16039         Implement nproc for mingw.
16040         * lib/nproc.c: Include <windows.h>
16041         (num_processors): On native Windows platforms, try GetSystemInfo.
16042
16043 2009-10-18  Bruno Haible  <bruno@clisp.org>
16044
16045         Implement nproc for IRIX.
16046         * lib/nproc.c: Include <sys/sysmp.h>.
16047         (num_processors): On IRIX systems, try sysmp.
16048         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16049
16050 2009-10-18  Bruno Haible  <bruno@clisp.org>
16051
16052         Implement nproc for HP-UX.
16053         * lib/nproc.c: Include <sys/pstat.h>
16054         (num_processors): On HP-UX systems, try pstat_getdynamic.
16055         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16056         pstat_getdynamic.
16057
16058 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16059             Bruno Haible  <bruno@clisp.org>
16060
16061         Implement nproc for NetBSD, OpenBSD.
16062         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16063         (ARRAY_SIZE): New macro.
16064         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16065         * m4/nproc.m4: New file.
16066         * modules/nproc (Files): Add m4/nproc.m4.
16067         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16068         (Makefile.am): Instead, augment lib_SOURCES.
16069
16070 2009-10-18  Bruno Haible  <bruno@clisp.org>
16071
16072         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16073         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16074         sys/param.h.
16075
16076 2009-10-16  Eric Blake  <ebb9@byu.net>
16077
16078         utimensat: new module
16079         * modules/utimensat: New file.
16080         * lib/utimensat.c (utimensat): Likewise.
16081         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16082         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16083         so we can work around Linux bugs.
16084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16085         * modules/sys_stat (Makefile.am): Substitute them.
16086         * lib/sys_stat.in.h (utimensat): Declare it.
16087         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16088         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16089         * modules/utimensat-tests: New test.
16090         * tests/test-utimensat.c: Likewise.
16091
16092         utimens: let lutimens work on non-symlinks
16093         * lib/utimens.c (lutimens): Fall back to utimens rather than
16094         failing with ENOSYS, when file is not a symlink.
16095         (utimens): Reduce redirection.
16096         * tests/test-lutimens.h (test_lutimens): Update test to cover
16097         non-symlinks.
16098         * tests/test-utimens.h (test_utimens): Update test to cover
16099         symlinks.
16100         * tests/test-utimens.c (main): Update caller.
16101
16102         utimens: cache whether utimensat syscall works
16103         * lib/utimens.c (utimensat_works_really): New cache variable.
16104         (fdutimens, lutimens): Use it to avoid failing syscall.
16105
16106         test-stat-time, test-utimens: improve portability
16107         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16108         ext4 on alpha, and for cygwin.
16109         * tests/test-utimens-common.h: New file.
16110         (nap): Factor delays into single function.
16111         * tests/test-lutimens.h (test_lutimens): Use new header.
16112         * tests/test-futimens.h (test_futimens): Likewise.
16113         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16114         timestamps to occur from same machine, as was done previously for
16115         test_utimens.
16116         * modules/utimens-tests (Files): Ship new file.
16117         * modules/futimens-tests (Files): Likewise.
16118         Reported in part by Jim Meyering.
16119
16120         sys_stat: sort replacement declarations
16121         * lib/sys_stat.in.h: Sort declarations.
16122         * lib/futimens.c (futimens): Fix typo.
16123
16124 2009-10-15  Jim Meyering  <meyering@redhat.com>
16125
16126         don't let environment settings perturb build
16127         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16128         could cause a configure-time and/or build-time malfunction.
16129         Typically, a configure-time function-in-library test is performed
16130         via code like this:
16131
16132           LIB_VAR=
16133           AC_SUBST([LIB_VAR])
16134           prefix_saved_LIBS=$LIBS
16135             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16136                        [test "$ac_cv_search_FUNC" = "none required" ||
16137                         LIB_VAR=$ac_cv_search_FUNC])
16138           LIBS=$prefix_saved_LIBS
16139
16140         However, in each of the files affected by this change, the LIB_VAR=
16141         initialization was omitted.  Thus, when set in the environment, its
16142         value would propagate into generated Makefiles when FUNC is not found
16143         in LIB_NAME.
16144         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16145         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16147
16148 2009-10-14  Eric Blake  <ebb9@byu.net>
16149
16150         fchdir: avoid infinite recursion in mingw
16151         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16152         recursing.
16153
16154         test-stat-time: port to mingw
16155         * tests/test-stat-time.c (force_unlink): Return a value.
16156         (test_ctime) [W32]: Fix compilation error.
16157         (nap): Don't call usleep with too large an argument.  Use
16158         force_unlink.
16159         * doc/pastposix-functions/usleep.texi (usleep): Document the
16160         portability issue.
16161
16162 2009-10-13  Jim Meyering  <meyering@redhat.com>
16163
16164         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16165         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16166         * modules/pipe-filter-ii: Likewise.
16167         * modules/sys_socket-tests: Likewise.
16168         * modules/tsearch-tests: Likewise.
16169         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16170         (check): Depend on it.
16171
16172 2009-10-12  Eric Blake  <ebb9@byu.net>
16173
16174         utimens-tests: port to NFS file systems
16175         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16176         comparisons to avoid spurious failures from timestamp drift
16177         between NFS machines.
16178
16179 2009-10-12  Eric Blake  <ebb9@byu.net>
16180
16181         stat-time-tests: minor cleanups
16182         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16183         * tests/test-stat-time.c (nap): Separate assignment from call.
16184         Suggested by Paolo Bonzini and Bruno Haible.
16185
16186         sys_stat: guarantee struct timespec
16187         * lib/sys_stat.in.h (includes): Always include <time.h>
16188         * modules/sys_stat (Depends-on): Add time.
16189         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16190         mode_t permission values.
16191         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16192         get at subsecond timestamps.
16193
16194 2009-10-10  Eric Blake  <ebb9@byu.net>
16195
16196         futimens: new module
16197         * modules/futimens: New file.
16198         * lib/futimens.c (futimens): Likewise.
16199         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16200         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16201         we can work around Linux bugs.
16202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16203         * modules/sys_stat (Makefile.am): Substitute them.
16204         * lib/sys_stat.in.h (futimens): Declare it.
16205         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16206         * doc/posix-functions/futimens.texi (futimens): Likewise.
16207         * modules/futimens-tests: New test.
16208         * tests/test-futimens.c: Likewise.
16209
16210         utimens: introduce fdutimens
16211         * lib/utimens.h (fdutimens): New prototype.
16212         * lib/utimens.c (gl_futimens): Move guts...
16213         (fdutimens): ...to new interface.
16214         * tests/test-utimens.c (do_fdutimens): Use it.
16215
16216         utimens: add UTIME_NOW and UTIME_OMIT support
16217         * lib/utimens.c (validate_timespec, update_timespec): New helper
16218         functions.
16219         (gl_futimens, lutimens): Use them.
16220         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16221         stdbool, sys_stat.
16222         (Link): Mention resulting library dependency.
16223         * modules/utimecmp (Link): Likewise.
16224         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16225         (Makefile.am): Pick up library dependency.
16226         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16227         definition.
16228         * tests/test-sys_stat.c: Test the definitions.
16229         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16230         * NEWS: Document library dependency.
16231
16232         utimecmp: support symlink timestamps
16233         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16234         hashing when possible.  Use pathconf when available.
16235         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16236         * modules/utimecmp (Depends-on): Add lstat.
16237
16238         utimens: add lutimens interface
16239         * lib/utimens.c (lutimens): New function.
16240         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16241         * lib/utimens.h (lutimens): Declare new interface.
16242         * tests/test-utimens.c (main): Enhance test.
16243         * tests/test-lutimens.h (test_lutimens): New file.
16244         * modules/utimens-tests (Files): Distribute it.
16245         (Depends-on): Add symlink.
16246         (configure.ac): Check for usleep.
16247
16248         utimens: validate futimens usage
16249         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16250         fewer syscalls on failure later on.  Avoid compiler warning on
16251         mingw.
16252         * modules/utimens (Depends-on): Add dup2.
16253
16254         utimens: add test
16255         * modules/utimens-tests: New test.
16256         * tests/test-utimens.h: New file.
16257         * tests/test-futimens.h: Likewise.
16258         * tests/test-utimens.c: Likewise.
16259
16260         doc: mention timestamp portability issues
16261         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16262         instead.
16263         * doc/posix-functions/utime.texi (utime): Likewise.
16264         * doc/posix-functions/utimes.texi (utimes): Likewise.
16265         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16266         instead.
16267         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16268         module.
16269         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16270         Mention weakness with symlink timestamps.
16271         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16272         to utimensat/futimens instead.
16273         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16274
16275         test-dup2: enhance test
16276         * tests/test-dup2.c (main): Also check AT_FDCWD.
16277
16278         test-stat-time: avoid more spurious failures
16279         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16280         xfs; and avoid race if the two timestamps cross quantization edge.
16281
16282         relocatable: prefer 'file system' over 'filesystem'
16283         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16284         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16285         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16286         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16287         * lib/relocatable.c (compute_curr_prefix): Likewise.
16288
16289 2009-10-10  Jim Meyering  <meyering@redhat.com>
16290
16291         stat-time-tests: check for the usleep function
16292         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16293
16294 2009-10-10  Bruno Haible  <bruno@clisp.org>
16295
16296         * modules/xnanosleep: Put the Link section after the Include section.
16297
16298 2009-10-09  Eric Blake  <ebb9@byu.net>
16299
16300         dup2: work around FreeBSD 6.1 bug
16301         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16302         * doc/posix-functions/dup2.texi (dup2): Document it.
16303         Reported by Nelson H. F. Beebe and Jim Meyering.
16304
16305         test-stat-time: port to buggy NFS clients
16306         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16307         (test_ctime): Also skip test if mtime and ctime are skewed.
16308
16309         maint: prefer 'file system' over 'filesystem'
16310         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16311         * doc/posix-functions/lstat.texi (lstat): Likewise.
16312         * lib/file-has-acl.c (file_has_acl): Likewise.
16313         * lib/fwriteerror.c [TEST]: Likewise.
16314         * tests/test-areadlink.h (test_areadlink): Likewise.
16315         * tests/test-areadlinkat-with-size.c (main): Likewise.
16316         * tests/test-areadlinkat.c (main): Likewise.
16317         * tests/test-canonicalize-lgpl.c (main): Likewise.
16318         * tests/test-canonicalize.c (main): Likewise.
16319         * tests/test-fstatat.c (main): Likewise.
16320         * tests/test-linkat.c (main): Likewise.
16321         * tests/test-lstat.h (test_lstat_func): Likewise.
16322         * tests/test-mkdir.h (test_mkdir): Likewise.
16323         * tests/test-readlink.h (test_readlink): Likewise.
16324         * tests/test-remove.c (main): Likewise.
16325         * tests/test-rename.h (test_rename): Likewise.
16326         * tests/test-renameat.c (main): Likewise.
16327         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16328         * tests/test-symlink.h (test_symlink): Likewise.
16329         * tests/test-symlinkat.c (main): Likewise.
16330         * tests/test-unlink.h (test_unlink_func): Likewise.
16331         * tests/test-unlinkat.c (main): Likewise.
16332
16333         maint: make realtime library usage explicit
16334         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16335         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16336         * modules/settime (Link): Likewise.
16337         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16338
16339         test-stat-time: speed up execution
16340         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16341         warning on mingw.
16342         (nap): New helper function.
16343         (prepare_test): Use it to reduce sleep time.
16344         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16345         execution.
16346         * modules/stat-time-tests (configure.ac): Check for usleep.
16347
16348 2009-10-09  Jim Meyering  <meyering@redhat.com>
16349
16350         selinux-h: always use getfilecon wrappers
16351         * lib/getfilecon.c: New file.
16352         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16353         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16354         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16355         (fgetfilecon): Provide a stub.
16356         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16357         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16358         file unconditionally.
16359         When <selinux/selinux.h> is found, arrange to use wrappers.
16360         * modules/selinux-h (Files): Add getfilecon.c.
16361         (Makefile.am): Substitute include-next-related bits
16362         into the now-always-generated selinux/selinux.h file.
16363         * doc/glibc-functions/lgetfilecon.texi: New file.
16364         * doc/glibc-functions/fgetfilecon.texi: New file.
16365         * doc/glibc-functions/getfilecon.texi: New file.
16366         * doc/glibc-functions/getfilecon-desc.texi: New file.
16367         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16368         which to pull in the new files.
16369         * MODULES.html.sh (Misc): Add selinux-h.
16370
16371 2009-10-08  Jim Meyering  <meyering@redhat.com>
16372
16373         unistd: fix comment typo
16374         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16375
16376 2009-10-08  Eric Blake  <ebb9@byu.net>
16377
16378         areadlink: use SIZE_MAX consistently
16379         * modules/areadlink (Depends-on): Add stdint.
16380         * modules/areadlink-with-size (Depends-on): Likewise.
16381         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16382         gives NULL; drop sys/types, since unistd gives size_t; and add
16383         stdint for SIZE_MAX.
16384         (SIZE_MAX): Rely on headers.
16385         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16386         and add stdint.
16387         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16388         (SIZE_MAX): Likewise.
16389         (INITIAL_BUF_SIZE): Turn into enum.
16390         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16391
16392 2009-10-08  Jim Meyering  <meyering@redhat.com>
16393
16394         areadlinkat: avoid compilation failure
16395         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16396         Fix typo in comment.
16397
16398 2009-10-07  Eric Blake  <ebb9@byu.net>
16399
16400         areadlinkat-with-size: new module
16401         * modules/areadlinkat-with-size: New module.
16402         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16403         * lib/areadlink.h (areadlinkat): Declare it.
16404         * MODULES.html.sh (File system functions): Mention it.
16405         * modules/areadlinkat-with-size-tests: New test.
16406         * tests/test-areadlinkat-with-size.c: New file.
16407
16408         xreadlinkat: new module
16409         * modules/xreadlinkat: New module.
16410         * lib/xreadlinkat.c (xreadlinkat): New file.
16411         * lib/xreadlink.h (xreadlinkat): Declare it.
16412         * MODULES.html.sh (File system functions): Mention it.
16413
16414         areadlinkat: new module
16415         * lib/at-func.c (FUNC_FAIL): New define.
16416         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16417         * modules/areadlinkat: New module.
16418         * lib/linkat.c (areadlinkat): Move...
16419         * lib/areadlinkat.c (areadlinkat): ...to new file.
16420         * lib/areadlink.h (areadlinkat): Declare it.
16421         * modules/linkat (Depends-on): Add areadlinkat.
16422         * MODULES.html.sh (File system functions): Mention it.
16423         * modules/areadlinkat-tests: New test.
16424         * tests/test-areadlinkat.c: New file.
16425
16426         areadlink, areadlink-with-size: add tests
16427         * modules/areadlink-tests: New test.
16428         * modules/areadlink-with-size-tests: Likewise.
16429         * tests/test-areadlink.h: New file.
16430         * tests/test-areadlink.c: Likewise.
16431         * tests/test-areadlink-with-size.c: Likewise.
16432
16433         maint: minor cleanups
16434         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16435         _UNUSED_PARAMETER_ instead.
16436         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16437         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16438         * modules/linkat-tests (Files): Distribute test-link.h.
16439
16440         openat, utimens: whitespace cleanup
16441         * lib/openat.c: Prefer space throughout, rather than mix of 8
16442         spaces vs. tabs.
16443         * lib/at-func.c: Likewise.
16444         * lib/utimens.c: Likewise.
16445
16446         openat: avoid using wrong fd
16447         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16448         working directory chooses same fd.
16449         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16450
16451         mkdir, mkdirat: fix cygwin 1.5.x bug
16452         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16453         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16454         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16455         bug.
16456         (gl_PREREQ_MKDIR): Delete unused macro.
16457         * modules/mkdir (Files): Track file rename.
16458         (configure.ac): Update macro name.
16459         * modules/openat (Depends-on): Add mkdir.
16460         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16461
16462         mkdir, mkdirat: add tests
16463         * modules/mkdir-tests: New test.
16464         * tests/test-mkdir.h: New file.
16465         * tests/test-mkdir.c: Likewise.
16466         * tests/test-mkdirat.c: Likewise.
16467         * modules/openat-tests (Files): Add new files.
16468         (Makefile.am): Run new test.
16469
16470 2009-10-06  Eric Blake  <ebb9@byu.net>
16471
16472         doc: tweak *at function documentation
16473         * doc/posix-functions/faccessat.texi (faccessat): Mention
16474         known issue with replacement.
16475         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16476         * doc/posix-functions/linkat.texi (linkat): Likewise.
16477         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16478         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16479         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16480         * doc/posix-functions/renameat.texi (renameat): Likewise.
16481         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16482
16483         openat: fix GNU/Hurd bug in unlinkat
16484         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16485         broken.
16486         * doc/posix-functions/unlink.texi (unlink): Document this.
16487         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16488
16489         fdopendir: fix GNU/Hurd bug
16490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16491         allowing non-directory fds.
16492         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16493         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16494         * modules/dirent (Makefile.am): Substitute it.
16495         * lib/dirent.in.h (fdopendir): Declare replacement.
16496         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16497         * tests/test-fdopendir.c (main): Test something other than
16498         /dev/null, since on Hurd that behaves like a directory.
16499
16500         test-symlink: port to GNU/Hurd
16501         * tests/test-symlink.h (test_symlink): Relax expected errno.
16502
16503         doc: tweak more cygwin information
16504         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16505         now compatible with glibc.
16506         * doc/posix-functions/getopt.texi (getopt): Likewise.
16507
16508         getopt-gnu: add another test
16509         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16510         guarantee behavior relied on by m4.
16511         * tests/test-getopt.c (main): Use it.
16512         * modules/getopt-posix-tests (Depends-on): Add setenv.
16513         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16514
16515         getopt: fix compilation on darwin
16516         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16517         include.
16518         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16519         Reported by Ludovic Courtès.
16520
16521 2009-10-06  Bruno Haible  <bruno@clisp.org>
16522
16523         * modules/size_max (Description): Discourage its use.
16524         Reported by Simon Josefsson.
16525
16526 2009-10-06  Jim Meyering  <meyering@redhat.com>
16527
16528         linkat: avoid compilation failure
16529         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16530
16531 2009-10-05  Eric Blake  <ebb9@byu.net>
16532
16533         linkat: support Linux 2.6.17
16534         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16535         linkat on Linux, but allow cache variable override.
16536         * lib/linkat.c (rpl_linkat): Define override.
16537         * modules/linkat (Depends-on): Add symlinkat.
16538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16539         * modules/unistd (Makefile.am): Substitute it.
16540         * lib/unistd.in.h (linkat): Declare replacement.
16541         Reported by Pádraig Brady.
16542
16543         quotearg: port test to systems with C.UTF-8 locale
16544         * tests/test-quotearg.c (struct result_strings): Add another
16545         member, differentiating between C.ASCII and C.UTF-8 handling.
16546         (compare_strings): Add parameter.
16547         (main): Adjust all callers.
16548
16549         getopt: avoid clash with FreeBSD _getopt_internal
16550         * lib/getopt.in.h (_getopt_internal): Override the name.
16551         * lib/getopt_int.h (includes): Pick up any overrides.
16552         Reported by Reuben Thomas.
16553
16554         hash: allow C89 compilation
16555         * lib/hash.c (check_tuning): Move declaration before statement.
16556         Reported by Reuben Thomas.
16557
16558 2009-10-05  Karl Berry  <karl@gnu.org>
16559
16560         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16561
16562 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16563             Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/uname.c (uname): Use a table-driven algorithm to compute
16566         Windows NT versions.
16567
16568 2009-10-04  Bruno Haible  <bruno@clisp.org>
16569
16570         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16571         program_invocation_short_name.
16572         * modules/progname (configure.ac): Test for presence of
16573         program_invocation_short_name.
16574         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16575
16576 2009-10-04  Bruno Haible  <bruno@clisp.org>
16577
16578         * lib/progname.c (set_program_name): Fix comment.
16579         Reported by Jim Meyering.
16580
16581 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16582             Bruno Haible  <bruno@clisp.org>
16583
16584         * lib/uname.c: Include <string.h>.
16585         (uname): Do only one call to GetVersionEx in the common case.
16586
16587 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16588             Bruno Haible  <bruno@clisp.org>
16589
16590         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16591         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16592         (uname): Add support for Windows CE and various non-x86 CPU types.
16593
16594 2009-10-03  Bruno Haible  <bruno@clisp.org>
16595
16596         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16597         invocation to tests/configure.ac.
16598         Reported by Ian Beckwith <ianb@erislabs.net>.
16599
16600 2009-10-02  Eric Blake  <ebb9@byu.net>
16601
16602         fchdir: avoid compiler warning
16603         * lib/fchdir.c (canonicalize_file_name)
16604         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16605
16606         test-open: support mingw errno values
16607         * tests/test-open.h (test_open): Relax test.
16608         * tests/test-fopen.h (test_fopen): Likewise.
16609         * tests/test-openat-safer.c (main): Likewise.
16610
16611         open: fix opening directory on mingw
16612         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16613
16614         test-open: on GNU/Hurd, /dev/null is a directory
16615         * tests/test-fopen.h (main): Rename...
16616         (test_fopen): ...to this.  Use a guaranteed non-directory when
16617         confirming open behavior on trailing slash.
16618         * tests/test-openat-safer.c (main): Likewise.
16619         * tests/test-open.h (main): Likewise....
16620         (test_open): ...to this.
16621         * tests/test-fopen.c (main): Adjust caller.
16622         * tests/test-fopen-safer.c (main): Likewise.
16623         * tests/test-open.c (main): Likewise.
16624         * tests/test-fcntl-safer.c (main): Likewise.
16625         Reported by Samuel Thibault.
16626
16627         rename, fchdir: don't ignore chdir failure
16628         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16629         * lib/rename.c (rpl_rename) [W32]: Likewise.
16630         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16631         an empty destination directory if source cannot be renamed,
16632         although there is still possibility for failure.
16633         * doc/posix-functions/rename.texi (rename): Document the race.
16634         Reported by Jim Meyering.
16635
16636         maint: cleanup whitespace in recent commits
16637         * lib/rename.c (rpl_rename): Remove tabs.
16638         * tests/test-link.h (test_link): Likewise.
16639         * lib/fchdir.c (get_name): Likewise.
16640         Reported by Jim Meyering.
16641
16642 2009-10-02  Ben Pfaff  <blp@gnu.org>
16643
16644         relocatable-prog-wrapper: Add missing dependency on
16645         double-slash-root.
16646         * modules/relocatable-prog-wrapper: Add dependency.
16647         Reported by Ian Beckwith <ianb@erislabs.net>.
16648
16649 2009-10-02  Eric Blake  <ebb9@byu.net>
16650
16651         renameat: fix Solaris bugs
16652         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16653         needed fixing.
16654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16655         * modules/stdio (Makefile.am): Substitute it.
16656         * lib/stdio.in.h (renameat): Declare replacement.
16657         * lib/renameat.c (rpl_renameat): Implement fix.
16658
16659         renameat: new module
16660         * modules/renameat: New file.
16661         * lib/renameat.c (renameat): Likewise.
16662         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16664         * modules/stdio (Makefile.am): Substitute them.
16665         * lib/stdio.in.h (renameat): Declare it.
16666         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16667         * doc/posix-functions/renameat.texi (renameat): Likewise.
16668         * modules/renameat-tests: New test.
16669         * tests/test-renameat.c: Likewise.
16670
16671         rename: fix mingw bugs
16672         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16673         directory overwrite bugs.
16674
16675         rename: fix another cygwin 1.5 bug
16676         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16677         checks.
16678         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16679         unnecessary cygwin workarounds.  Also work around bug with moving
16680         full directory onto an empty one.
16681         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16682
16683         rename-dest-slash: merge into rename module
16684         * modules/rename-dest-slash (Status): Mark obsolete.
16685         (Depends-on): Add rename.
16686         (Files): Let rename do it all.
16687         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16688         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16689         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16690         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16691         * lib/rename.c (rpl_rename): Update comments.
16692
16693         rename: fix cygwin 1.5.x bugs
16694         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16695         * lib/rename.c (rpl_rename): Work around them.
16696         * modules/rename (Depends-on): Add same-inode.
16697
16698         rename: fix Solaris 10 bug
16699         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16700         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16701         was the only bug.
16702
16703         rename: fix Solaris 9 bug
16704         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16705         on non-directory.  Avoid calling exit.
16706         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16707         strdup.
16708         * modules/rename-tests (Depends-on): Drop lstat.
16709         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16710         (gl_PREREQ_RENAME): Delete unused macro.
16711
16712         rename-dest-slash: fix NetBSD bug
16713         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16714         links.
16715         * modules/rename-dest-slash (Depends-on): Add same-inode.
16716
16717         rename-tests: new test, exposes several platform bugs
16718         * modules/rename-tests: New file.
16719         * tests/test-rename.h: Likewise.
16720         * tests/test-rename.c: Likewise.
16721         * doc/posix-functions/rename.texi (rename): Improve documentation,
16722         including bugs that will eventually be fixed in gnulib.
16723
16724 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16725
16726         * lib/uname.c: Include <stdlib.h>
16727         (uname): Assume version info is available.
16728
16729 2009-10-02  Jim Meyering  <meyering@redhat.com>
16730
16731         gnu-web-doc-update: correct --help output
16732         * build-aux/gnu-web-doc-update: Make --help output relevant.
16733
16734         gnu-web-doc-update: add standard options
16735         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16736
16737         gnu-web-doc-update: New module.
16738         Use this script to automatically update the on-line web documentation
16739         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16740         * modules/gnu-web-doc-update: New file, from coreutils.
16741         * build-aux/gnu-web-doc-update: New script.
16742
16743 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16744
16745         link: LoadLibrary is not needed.
16746         * lib/link.c: Use GetModuleHandle.
16747
16748 2009-10-01  Eric Blake  <ebb9@byu.net>
16749
16750         getopt: bump serial number
16751         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16752         change.
16753
16754         tests: tighten link, rmdir, and remove tests
16755         * tests/test-link.h (includes): No need to use <config.h> here.
16756         Clean up if directory hard link was created, otherwise test for
16757         trailing '.'.
16758         * tests/test-linkat.c (main): Simplify.
16759         * tests/test-remove.c (main): Enhance test for trailing '.'.
16760         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16761
16762 2009-10-01  Jim Meyering  <meyering@redhat.com>
16763
16764         maint.mk: requiring "make major" was annoying, for a "minor" release.
16765         What is intended is "stable", to contrast with alpha and beta,
16766         so require "make stable", not "make major".
16767         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16768         (get_tool_versions): Likewise.
16769         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16770
16771 2009-09-30  Ben Pfaff  <blp@gnu.org>
16772
16773         Fix broken build of replacement for Windows tmpfile().
16774         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16775         flags argument added along with the 'mkostemp' module.
16776
16777 2009-09-28  Bruno Haible  <bruno@clisp.org>
16778
16779         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16780         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16781         to 'remove_elt'.
16782         (gl_list_remove): Update.
16783         * lib/gl_list.c (gl_list_remove): Update.
16784         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16785         to 'remove_elt'.
16786         (gl_oset_remove): Update.
16787         * lib/gl_list.c (gl_oset_remove): Update.
16788         Reported by Eric Blake.
16789
16790 2009-09-28  Eric Blake  <ebb9@byu.net>
16791
16792         doc: mention yet more cygwin 1.7 status
16793         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16794         cygwin.
16795         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16796         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16797
16798         argp: fix test failure
16799         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16800         that are not upper-case.  Pass correct range to tolower.
16801
16802 2009-09-27  Jim Meyering  <meyering@redhat.com>
16803
16804         test-yesno: work around sparc-dash here-document infelicity
16805         Without this change, the literal \177 byte in a here document
16806         would make dash 0.5.5.1-3 access uninitialized memory.
16807         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16808         Instead, use a marker, "@", and filter through tr to create the desired
16809         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16810
16811 2009-09-27  Bruno Haible  <bruno@clisp.org>
16812
16813         Disable untested support for new flavours of ACLs on AIX.
16814         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16815         progress.
16816         * lib/set-mode-acl.c (qset_acl): Likewise.
16817
16818 2008-12-07  Bruno Haible  <bruno@clisp.org>
16819
16820         Add support for new flavours of ACLs on AIX. (Untested.)
16821         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16822         (file_has_acl): Add support for newer AIX.
16823         * lib/set-mode-acl.c (qset_acl): Likewise.
16824         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16825         Rainer Tammer <tammer@tammer.net>.
16826
16827 2009-09-26  Eric Blake  <ebb9@byu.net>
16828
16829         argp: fix compilation of getopt
16830         * lib/getopt.in.h (includes): Use different guard than glibc.
16831         Reported by Sergey Poznyakoff.
16832
16833         doc: mention more cygwin 1.7 status
16834         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16835         bug.
16836         * doc/posix-functions/execl.texi (execl): Likewise.
16837         * doc/posix-functions/execle.texi (execle): Likewise.
16838         * doc/posix-functions/execlp.texi (execlp): Likewise.
16839         * doc/posix-functions/execv.texi (execv): Likewise.
16840         * doc/posix-functions/execve.texi (execve): Likewise.
16841         * doc/posix-functions/execvp.texi (execvp): Likewise.
16842         * doc/glibc-functions/canonicalize_file_name.texi
16843         (canonicalize_file_name): Cygwin 1.7 now provides this.
16844         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16845         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16846         on AT_SYMLINK_NOFOLLOW.
16847
16848 2009-09-24  Eric Blake  <ebb9@byu.net>
16849
16850         test-linkat: make test more robust
16851         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16852
16853         getopt: fix inclusion guards for cygwin
16854         * modules/getopt-posix (Depends-on): Add include-next.
16855         (Makefile.am): Substitute more items in replacement header.
16856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16857         <getopt.h>.
16858         * lib/getopt.in.h (includes): Use split inclusion guard, and
16859         prefer <getopt.h> over include <unistd.h> when one is present.
16860         (option): Also override name of 'struct option'.
16861
16862         same-inode: revert prior change; it is not yet ready
16863         * NEWS: Undo mention of this change.
16864         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16865         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16866         * lib/cycle-check.c (cycle_check): Likewise.
16867         * lib/same.c (same_name): Likewise.
16868         * lib/at-func2.c (at_func2): Likewise.
16869
16870 2009-09-23  Eric Blake  <ebb9@byu.net>
16871
16872         linkat: new module
16873         * modules/linkat: New file.
16874         * lib/at-func2.c (at_func2): Likewise.
16875         * lib/linkat.c (linkat): Likewise.
16876         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16877         * lib/openat-priv.h (at_func2): Add declaration.
16878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16879         * modules/unistd (Makefile.am): Substitute them.
16880         * lib/unistd.in.h (linkat): Declare it.
16881         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16882         * doc/posix-functions/linkat.texi (linkat): Likewise.
16883         * doc/posix-functions/link.texi (link): Tweak wording.
16884         * tests/test-link.c (main): Move guts...
16885         * tests/test-link.h (test_link): ...into new file.
16886         * modules/linkat-tests: New test.
16887         * tests/test-linkat.c: Likewise.
16888         * modules/link-tests (Files): Ship new file.
16889         (Depends-on): Add stdbool.
16890
16891         dirname: add library-safe mdir_name
16892         * lib/dirname.h (mdir_name): New prototype.
16893         * lib/dirname.c (dir_name): Move guts...
16894         (mdir_name): ...to new function that avoids xalloc_die.
16895
16896         fchdir: another mingw fix
16897         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16898         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16899         on mingw (where it has not yet been ported), and make it optional
16900         elsewhere.
16901         (_gl_register_fd): Use it.
16902
16903         same-inode: make SAME_INODE tri-state, to port to mingw
16904         * NEWS: Mention this change.
16905         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16906         st_ino always being 0.
16907         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16908         * lib/cycle-check.c (cycle_check): Likewise.
16909         * lib/same.c (same_name): Likewise.
16910
16911         lstat: avoid mingw compilation error
16912         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16913         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16914         lstat ourselves.
16915         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16916         was adequate.
16917         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16918         the checks for lstat.
16919         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16920
16921         link: fix test failure on Solaris 9
16922         * lib/link.c (rpl_link): Don't assume link will catch bogus
16923         trailing slash on source.
16924
16925         test-symlinkat: enhance test
16926         * tests/test-readlink.c (main): Move guts...
16927         * tests/test-readlink.h (test_readlink): ...into new file.
16928         * tests/test-symlink.c (main): Move guts...
16929         * tests/test-symlink.h (test_symlink): ...into new file.
16930         * tests/test-symlinkat.c (main): Use new files for further
16931         coverage.
16932         (do_symlink, do_readlink): New helper functions.
16933         * modules/symlink-tests (Files): Ship new file.
16934         (Depends-on): Add stdbool.
16935         * modules/readlink-tests (Files): Ship new file.
16936         (Depends-on): Add stdbool.
16937         * modules/symlinkat-tests (Files): Use new files.
16938
16939 2009-09-23  Eric Blake  <ebb9@byu.net>
16940
16941         readlink: document portability issue with symlink length
16942         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16943         systems have bogus st_size on symlinks, and mention the
16944         areadlink-with-size module.
16945         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16946         * doc/posix-functions/readlink.texi (readlink): Mention the
16947         areadlink module, and ERANGE failure.
16948         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16949         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16950
16951         readlink: fix Solaris 9 bug with trailing slash
16952         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16953         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16954         * doc/posix-functions/readlink.texi (readlink): Document this.
16955         * modules/readlink-tests: New test.
16956         * tests/test-readlink.c: Likewise.
16957
16958         readlink: fix cygwin 1.5.x bug with return type
16959         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16960         * lib/unistd.in.h (readlink): Use ssize_t.
16961         * lib/readlink.c (readlink): Likewise.
16962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16963         * modules/unistd (Makefile.am): Substitute it.
16964         * lib/unistd.in.h (readlink): Declare replacement.
16965         * doc/posix-functions/readlink.texi (readlink): Document this.
16966
16967         symlink: use throughout gnulib
16968         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16969         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16970         symlink is not used.
16971         * modules/symlinkat (Depends-on): Add symlink.
16972         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16973         * modules/canonicalize-tests (Depends-on): Likewise.
16974         * modules/lstat-tests (Depends-on): Likewise.
16975         * modules/openat-tests (Depends-on): Likewise.
16976         * modules/remove-tests (Depends-on): Likewise.
16977         * modules/rmdir-tests (Depends-on): Likewise.
16978         * modules/unlink-tests (Depends-on): Likewise.
16979         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16980         * tests/test-canonicalize.c (symlink): Likewise.
16981         * tests/test-fstatat.c (symlink): Likewise.
16982         * tests/test-lstat.c (symlink): Likewise.
16983         * tests/test-remove.c (symlink): Likewise.
16984         * tests/test-rmdir.c (symlink): Likewise.
16985         * tests/test-unlink.c (symlink): Likewise.
16986         * tests/test-unlinkat.c (symlink): Likewise.
16987
16988         symlink: new module, for Solaris 9 bug
16989         * modules/symlink: New file.
16990         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16991         * lib/symlink.c: Likewise.
16992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16993         * modules/unistd (Makefile.am): Substitute them.
16994         * lib/unistd.in.h (symlink): Declare replacement.
16995         * MODULES.html.sh (File system functions): Mention it.
16996         * doc/posix-functions/symlink.texi (symlink): Likewise.
16997         * modules/symlink-tests: New test.
16998         * tests/test-symlink.c: Likewise.
16999
17000 2009-09-23  Bruno Haible  <bruno@clisp.org>
17001
17002         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17003         when needed.
17004         Test case: gnulib-tool --import --with-tests atexit inttypes.
17005         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17006
17007 2009-09-23  Bruno Haible  <bruno@clisp.org>
17008
17009         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17010         subcommand, not in a subshell.
17011
17012 2009-09-22  Eric Blake  <ebb9@byu.net>
17013
17014         unistd: sort replacement declarations
17015         * lib/unistd.in.h: Sort declarations.
17016
17017         open, openat: minor optimization
17018         * lib/open.c (open): If open succeeded, len is non-zero.
17019         * lib/openat.c (rpl_openat): Likewise.
17020
17021         link-follow: ensure correct result
17022         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17023         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17024         distinguish between possible failures.
17025
17026 2009-09-21  Eric Blake  <ebb9@byu.net>
17027
17028         fts: avoid compiler warning
17029         * lib/fts.c (dirent_inode_sort_may_be_useful)
17030         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17031
17032 2009-09-19  Bruno Haible  <bruno@clisp.org>
17033
17034         * lib/progreloc.c (canonicalize_file_name): New declaration.
17035
17036 2009-09-19  Eric Blake  <ebb9@byu.net>
17037
17038         link: fix quoting
17039         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17040
17041         openat: fix openat bugs on Solaris 9
17042         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17043         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17044         * modules/openat (Depends-on): Add open.
17045         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17046         * modules/fcntl-h (Makefile.am): Substitute it.
17047         * lib/fcntl.in.h (openat): Declare replacement.
17048         * doc/posix-functions/openat.texi (openat): Document this.
17049
17050         openat: move fstatat and unlinkat into correct files
17051         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17052         compiled.
17053         * lib/openat.c (fstatat, unlinkat): Move...
17054         * lib/fstatat.c (fstatat): ...into correct files.
17055         * lib/unlinkat.c (unlinkat): Likewise.
17056
17057         openat: fix unlinkat bugs on Solaris 9
17058         * lib/unlinkat.c (unlinkat): New file.
17059         * modules/openat (Depends-on): Add unlink.
17060         (Files): Distribute it.
17061         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17062         trailing slash behavior is broken.
17063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17064         * modules/unistd (Makefile.am): Substitute it.
17065         * lib/unistd.in.h (unlinkat): Declare replacement.
17066         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17067
17068         openat: fix fstatat bugs on Solaris 9
17069         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17070         stat.
17071         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17072
17073         test-unlinkat: enhance test, to expose Solaris 9 bug
17074         * tests/test-unlink.c (main): Factor guts...
17075         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17076         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17077         * tests/test-rmdir.c (main): Adjust caller.
17078         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17079         (unlinker): New helper function.
17080         (rmdirat): Enhance check.
17081         * modules/rmdir-tests (Depends-on): Add stdbool.
17082         * modules/unlink-tests (Depends-on): Likewise.
17083         (Files): Add test-unlink.h.
17084         * modules/openat-tests (Files): Likewise.
17085         (Depends-on): Add unlinkdir.
17086
17087         test-fstatat: new test, to expose Solaris 9 bugs
17088         * tests/test-stat.c (main): Factor guts...
17089         * tests/test-stat.h (test_stat_func): ...into new file.
17090         * tests/test-lstat.c (main): Factor guts...
17091         * tests/test-lstat.h (test_lstat_func): ...into new file.
17092         * tests/test-fstatat.c: New file.
17093         * modules/stat-tests (Files): Add test-stat.h.
17094         * modules/lstat-tests (Files): Add test-lstat.h.
17095         (Depends-on): Add stdbool.
17096         * modules/openat-tests (Depends-on): Add pathmax.
17097         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17098         (Makefile.am): Run new test.
17099
17100         remove: new module, for mingw and Solaris 9 bugs
17101         * modules/remove: New file.
17102         * lib/remove.c: Likewise.
17103         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17105         * modules/stdio (Makefile.am): Use them.
17106         * lib/stdio.in.h (remove): Declare replacement.
17107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17108         * doc/posix-functions/remove.texi (remove): Likewise.
17109         * modules/remove-tests: New test.
17110         * tests/test-remove.c: Likewise.
17111
17112         unlink: new module, for Solaris 9 bug
17113         * modules/unlink: New file.
17114         * lib/unlink.c: Likewise.
17115         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17117         * modules/unistd (Makefile.am): Use them.
17118         * lib/unistd.in.h (stat): Declare replacement.
17119         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17120         * doc/posix-functions/unlink.texi (unlink): Likewise.
17121         * modules/unlink-tests: New test.
17122         * tests/test-unlink.c: Likewise.
17123
17124         lstat: fix Solaris 9 bug
17125         * lib/lstat.c (lstat): Also check for trailing slash on
17126         non-symlink, non-directories.  Use stat module to simplify logic.
17127         * doc/posix-functions/lstat.texi (lstat): Document it.
17128         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17129         (configure.ac): Check for symlink.
17130         * tests/test-lstat.c (main): Add more tests.
17131
17132         stat: add as dependency to other modules
17133         * modules/chown (Depends-on): Add stat.
17134         * modules/euidaccess (Depends-on): Likewise.
17135         * modules/fchdir (Depends-on): Likewise.
17136         * modules/isdir (Depends-on): Likewise.
17137         * modules/link (Depends-on): Likewise.
17138         * modules/lstat (Depends-on): Likewise.
17139         * modules/mkdir-p (Depends-on): Likewise.
17140         * modules/modechange (Depends-on): Likewise.
17141         * modules/open (Depends-on): Likewise.
17142         * modules/readlink (Depends-on): Likewise.
17143         * modules/same (Depends-on): Likewise.
17144
17145         stat: fix Solaris 9 bug
17146         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17147         slash.
17148         * lib/stat.c (rpl_stat): Work around it.
17149         * doc/posix-functions/stat.texi (stat): Update documentation.
17150
17151         stat: new module, for mingw bug
17152         * modules/stat: New file.
17153         * lib/stat.c: Likewise.
17154         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17155         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17156         * modules/sys_stat (Makefile.am): Use them.
17157         * lib/sys_stat.in.h (stat): Declare replacement.
17158         * lib/openat.c (fstatat): Deal with lstat and stat being function
17159         macros.
17160         * modules/openat (Depends-on): Add inline.
17161         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17162         * doc/posix-functions/stat.texi (stat): Likewise.
17163         * modules/stat-tests: New test.
17164         * tests/test-stat.c: Likewise.
17165
17166 2009-09-19  Jim Meyering  <meyering@redhat.com>
17167
17168         syntax-check: detect unnecessary inclusion of canonicalize.h
17169         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17170
17171 2009-09-19  Eric Blake  <ebb9@byu.net>
17172
17173         canonicalize-lgpl: adjust clients to use correct header
17174         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17175         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17176         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17177         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17178         * lib/progreloc.c (includes): Likewise.
17179
17180 2009-09-19  Jim Meyering  <meyering@redhat.com>
17181
17182         test-posixtm.c: correct a comment
17183         * tests/test-posixtm.c: Correct first-line comment.
17184         Spotted by Eric Blake.
17185
17186 2009-09-16  Jim Meyering  <meyering@redhat.com>
17187
17188         posixtm-tests: make T const-correct; add a test case
17189         * tests/test-posixtm.c (T): Declare const.
17190         Add a test for -(2^31+1).
17191         Remove useless can-succeed-only-in-2002 test.
17192
17193         posixtm-tests: adjust the sole failing test
17194         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17195         expected output matches what mktime now produces.  Cross-checked via
17196         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17197
17198         posixtm: move #ifdef'd tests into a new module
17199         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17200         * tests/test-posixtm.c: ... this new file.
17201         * modules/posixtm-tests: New module.
17202
17203 2009-09-19  Eric Blake  <ebb9@byu.net>
17204
17205         openat: simplify use of at-func.c
17206         * lib/at-func.c (includes): Include prerequisites here, to
17207         simplify requirements on client files.
17208         * lib/openat-priv.h: Add double-inclusion guard.
17209         * lib/faccessat.c (includes): Simplify.
17210         * lib/fchmodat.c (includes): Likewise.
17211         * lib/fchownat.c (includes): Likewise.
17212         * lib/mkdirat.c (includes): Likewise.
17213         * lib/mkfifoat.c (includes): Likewise.
17214         * lib/symlinkat.c (includes): Likewise.
17215
17216         openat: allow return of fd 0
17217         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17218         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17219         unistd-safer.
17220         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17221         <fcntl.h>; this module does not leak fds.
17222         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17223         must be allowed to return 0, leaving openat_safer to add the
17224         safety.
17225         (openat_permissive): Avoid writing to just-opened fd 2 if
17226         restoring the current directory fails.
17227         * lib/openat-die.c (openat_restore_fail): Add comment.
17228         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17229         (save_cwd): Guarantee safe fd, but without use of open_safer.
17230         * tests/test-openat.c: New test.
17231         * modules/openat-tests (Files, Makefile.am): Distribute and build
17232         new file.
17233
17234         relocatable-prog-wrapper: fix build
17235         * modules/relocatable-prog-wrapper (Files): Update name of
17236         canonicalize m4 file, broken on 2009-09-17.
17237         Reported by emad hajjar <aleppos@hotmail.com>.
17238
17239 2009-09-19  Bruno Haible  <bruno@clisp.org>
17240
17241         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17242         * lib/safe-alloc.c: Likewise.
17243         Reported by Ian Beckwith <ianb@erislabs.net>.
17244
17245 2009-09-18  Bruno Haible  <bruno@clisp.org>
17246
17247         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17248         Reported by <erobles@sensacd.com.mx>.
17249
17250 2009-09-17  Eric Blake  <ebb9@byu.net>
17251
17252         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17253         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17254         slashes when checking if last component is missing.
17255         * tests/test-canonicalize.c (main): Test this.
17256
17257         canonicalize, canonicalize-lgpl: honor // if distinct from /
17258         * modules/canonicalize (Files): Add double-slash-root.m4.
17259         * modules/canonicalize-lgpl (Files): Likewise.
17260         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17261         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17262         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17263         fallback definition.
17264         (canonicalize_filename_mode): Use it to protect //.
17265         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17266         (__realpath): Likewise.
17267         * tests/test-canonicalize.c (main): Test this.
17268         * tests/test-canonicalize-lgpl.c (main): Likewise.
17269         * modules/canonicalize-tests (Depends-on): Add same-inode.
17270         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17271
17272         canonicalize-lgpl: fix glibc bug with trailing slash
17273         * m4/canonicalize-lgpl.m4: Move contents...
17274         * m4/canonicalize.m4: ...here.
17275         (gl_CANONICALIZE_LGPL): Factor realpath check...
17276         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17277         glibc 2.3.5 bug, fixed 2005-04-27.
17278         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17279         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17280         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17281         * modules/canonicalize-lgpl (Files): Manage file rename.
17282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17283         * modules/stdlib (Makefile.am): Substitute witness.
17284         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17285         is needed.
17286         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17287         replacement is required.
17288         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17289         * doc/glibc-functions/canonicalize_file_name.texi
17290         (canonicalize_file_name): Document this.
17291         * doc/posix-functions/realpath.texi (realpath): Likewise.
17292
17293         canonicalize-lgpl: reject non-directory with trailing slash
17294         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17295         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17296         catches failures in glibc 2.3.5.
17297         * tests/test-canonicalize.c (main): Likewise.
17298
17299         canonicalize-lgpl: use native realpath if it works
17300         * lib/canonicalize-lgpl.c (realpath): Guard with
17301         FUNC_REALPATH_WORKS.
17302         * lib/stdlib.in.h (realpath): Make declaration optional based on
17303         HAVE_REALPATH.
17304         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17305         native realpath works.
17306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17307         * modules/stdlib (Makefile.am): Substitute witness.
17308
17309         canonicalize, canonicalize-lgpl: use <stdlib.h>
17310         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17311         (Include): Mention <stdlib.h>.
17312         (configure.ac): Mention functions we provide.
17313         * modules/canonicalize (configure.ac): Likewise.
17314         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17315         realpath if canonicalize_file_name is missing.
17316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17317         * modules/stdlib (Makefile.am): Substitute witnesses.
17318         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17319         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17320         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17321         * NEWS: Document this.
17322         * doc/glibc-functions/canonicalize_file_name.texi
17323         (canonicalize_file_name): Likewise.
17324         * doc/posix-functions/realpath.texi (realpath): Likewise.
17325         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17326
17327         test-canonicalize: consolidate into single C program
17328         * tests/test-canonicalize.sh: Delete; move setup into...
17329         * tests/test-canonicalize.c (main): ...the program, making it
17330         easier to run in debugger.  Add some tests.
17331         * modules/canonicalize-tests (Files): Remove unused file.
17332         (Depends-on): Add progname.
17333         (configure.ac, Makefile.am): Simplify.
17334
17335         test-canonicalize-lgpl: consolidate into single C program
17336         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17337         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17338         easier to run in debugger.  Add some tests.
17339         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17340         (configure.ac, Makefile.am): Simplify.
17341
17342         canonicalize: avoid resolvepath
17343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17344         unnecessary checks.
17345         * lib/canonicalize.c (includes): Simplify.
17346         (canonicalize_file_name): Drop resolvepath implementation.
17347         * modules/canonicalize (Depends-on): Drop filenamecat.
17348
17349         canonicalize: don't lose errno
17350         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17351         over calls to free.
17352
17353         canonicalize: simplify errno handling
17354         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17355         assignment.
17356
17357         canonicalize, canonicalize-lgpl: update module dependencies
17358         * modules/canonicalize (Depends-on): Add extensions, lstat,
17359         pathmax, stdlib.
17360         (Files): Drop pathmax.h.
17361         (configure.ac): Adjust macro name.
17362         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17363         lstat, stdlib, sys_stat.
17364         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17365         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17366         extensions.
17367         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17368         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17369         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17370         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17371         declaration, if available.
17372         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17373         we can rely on the readlink module.
17374         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17375         (includes): Use <unistd.h> unconditionally.
17376
17377 2009-09-17  Eric Blake  <ebb9@byu.net>
17378
17379         maint: make Include sections of modules consistent
17380         * modules/alloca: Use only header name; no need to list #include.
17381         * modules/alloca-opt: Likewise.
17382         * modules/arpa_inet: Likewise.
17383         * modules/canon-host: Likewise.
17384         * modules/configmake: Likewise.
17385         * modules/dirent: Likewise.
17386         * modules/eealloc: Likewise.
17387         * modules/environ: Likewise.
17388         * modules/fchdir: Likewise.
17389         * modules/fcntl: Likewise.
17390         * modules/fcntl-h: Likewise.
17391         * modules/gethrxtime: Likewise.
17392         * modules/gettime: Likewise.
17393         * modules/ignore-value: Likewise.
17394         * modules/inet_ntop: Likewise.
17395         * modules/inet_pton: Likewise.
17396         * modules/inttypes: Likewise.
17397         * modules/isnand-nolibm: Likewise.
17398         * modules/isnanf-nolibm: Likewise.
17399         * modules/mbchar: Likewise.
17400         * modules/mbfile: Likewise.
17401         * modules/mbiter: Likewise.
17402         * modules/mbuiter: Likewise.
17403         * modules/netdb: Likewise.
17404         * modules/netinet_in: Likewise.
17405         * modules/nproc: Likewise.
17406         * modules/pagealign_alloc: Likewise.
17407         * modules/poll: Likewise.
17408         * modules/printf-frexp: Likewise.
17409         * modules/pthread: Likewise.
17410         * modules/putenv: Likewise.
17411         * modules/random_r: Likewise.
17412         * modules/relocatable-prog: Likewise.
17413         * modules/search: Likewise.
17414         * modules/select: Likewise.
17415         * modules/selinux-h: Likewise.
17416         * modules/settime: Likewise.
17417         * modules/signal: Likewise.
17418         * modules/size_max: Likewise.
17419         * modules/socklen: Likewise.
17420         * modules/ssize_t: Likewise.
17421         * modules/stdarg: Likewise.
17422         * modules/stdbool: Likewise.
17423         * modules/stddef: Likewise.
17424         * modules/stdint: Likewise.
17425         * modules/stdio: Likewise.
17426         * modules/stdlib: Likewise.
17427         * modules/string: Likewise.
17428         * modules/strings: Likewise.
17429         * modules/sys_file: Likewise.
17430         * modules/sys_ioctl: Likewise.
17431         * modules/sys_select: Likewise.
17432         * modules/sys_socket: Likewise.
17433         * modules/sys_stat: Likewise.
17434         * modules/sys_time: Likewise.
17435         * modules/sys_times: Likewise.
17436         * modules/sys_utsname: Likewise.
17437         * modules/sys_wait: Likewise.
17438         * modules/sysexits: Likewise.
17439         * modules/time: Likewise.
17440         * modules/times: Likewise.
17441         * modules/tmpfile: Likewise.
17442         * modules/trim: Likewise.
17443         * modules/unistd: Likewise.
17444         * modules/wchar: Likewise.
17445         * modules/wctype: Likewise.
17446
17447 2009-09-17  Bruno Haible  <bruno@clisp.org>
17448
17449         Make getdate.y compile on QNX and NetBSD 5 / i386.
17450         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17451         TIME_T_FITS_IN_LONG_INT.
17452         * lib/getdate.y (long_time_t): New type.
17453         (relative_time): Change type of 'seconds' field to long_time_t.
17454         (get_date): Update types of local variables. Check against overflow
17455         during conversion from long_time_t to time_t.
17456         Reported by Matt Kraai <kraai@ftbfs.org>
17457         and Hasso Tepper <hasso@netbsd.org>.
17458
17459 2009-09-17  Bruno Haible  <bruno@clisp.org>
17460
17461         * modules/COPYING: Update copyright years.
17462         * modules/README: Likeiwse.
17463         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17464         Reported by Ian Beckwith <ianb@erislabs.net>.
17465
17466 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17467
17468         * users.txt: Update references for gnuit package.
17469
17470 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17471
17472         * m4/getdelim.m4: Fix typo in copyright line.
17473
17474 2009-09-17  Bruno Haible  <bruno@clisp.org>
17475
17476         * lib/atoll.c: Use the standard header with GPL copyright.
17477         * lib/argz.in.h: Likewise.
17478         * lib/glob.c: Likewise.
17479         * lib/glob-libc.h: Likewise.
17480         * lib/random_r.c: Likewise.
17481         * lib/siglist.h: Likewise.
17482         * lib/strsignal.c: Likewise.
17483         Reported by Ian Beckwith <ianb@erislabs.net>.
17484
17485 2009-09-17  Eric Blake  <ebb9@byu.net>
17486
17487         rmdir: ensure correct dependency order
17488         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17489
17490 2009-09-17  Bruno Haible  <bruno@clisp.org>
17491
17492         Disable assertion that fails on NetBSD 5 / i386.
17493         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17494         Reported by Sam Steingold <sds@gnu.org>
17495         and Hasso Tepper <hasso@netbsd.org>.
17496
17497 2009-09-16  Eric Blake  <ebb9@byu.net>
17498
17499         unlinkdir: port to mingw
17500         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17501         on which no one can unlink a directory.
17502
17503         stdlib: sort witness names
17504         * modules/stdlib (Makefile.am): Sort replacements.
17505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17506         * lib/stdlib.in.h: Likewise.
17507
17508         parse-duration-tests: avoid link failure
17509         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17510         LIBINTL.
17511         Reported by Tom G. Christensen.
17512
17513         openat-tests: ensure unlinkat behaves like rmdir
17514         * tests/test-rmdir.c (main): Factor guts...
17515         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17516         * modules/rmdir-tests (Files): Ship new file.
17517         * modules/openat-tests: New test.
17518         * tests/test-unlinkat.c: Likewise.
17519
17520         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17521         * modules/rmdir-errno (Status, Notice): Now obsolete.
17522
17523         rmdir: work around cygwin 1.5.x and mingw bugs
17524         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17525         * lib/rmdir.c (rmdir): Work around it.
17526         * modules/rmdir (Status, Notice): No longer obsolete.
17527         (Files): Add dos.m4.
17528         (Depends-on): Add unistd.
17529         (configure.ac): Set witnesses.
17530         (License): Relax to LGPLv2+.
17531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17532         * modules/unistd (Makefile.am): Substitute witnesses.
17533         * lib/unistd.in.h (rmdir): Declare replacement.
17534         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17535         * modules/rmdir-tests: New tests.
17536         * tests/test-rmdir.c: Likewise.
17537
17538 2009-09-15  Eric Blake  <ebb9@byu.net>
17539
17540         fchdir: improve use of replacement functions
17541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17544         REPLACE_CLOSEDIR.
17545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17546         * modules/sys_stat (Makefile.am): Substitute correct witness.
17547         * modules/dirent (Makefile.am): Likewise.
17548         * modules/unistd (Makefile.am): Likewise.
17549         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17550         * lib/unistd.in.h (dup): Likewise.
17551         * lib/sys_stat.in.h (fstat): Likewise.
17552
17553         maint: ignore gnulib-tool temp files
17554         * .gitignore: Ignore files created during gnulib-tool --test.
17555
17556 2009-09-13  Jim Meyering  <meyering@redhat.com>
17557
17558         posixtm: don't reject a time that specify "60" as the number of seconds
17559         * lib/posixtm.c (posixtime): The code to reject invalid dates
17560         would also reject a time specified with the .60 suffix.
17561         But POSIX allows that, in order to accommodate leap seconds.
17562         So don't reject it.
17563         (main): Adjust tests accordingly.
17564         * modules/posixtm (Depends-on): Add stpcpy.
17565
17566 2009-09-11  Jim Meyering  <meyering@redhat.com>
17567
17568         announce-gen: include [$release_type] in emitted Subject:
17569         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17570         e.g., [stable] in the emitted Subject: line.
17571
17572 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17573
17574         Remove obsolete macros from several modules.
17575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17576         obsolete Autoconf macros with their modern counterparts.
17577         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17578         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17580         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17581         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17582         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17584         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17585         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17586         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17587         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17589         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17590         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17591         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17592         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17593         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17594         * m4/time_r.m4 (gl_TIME_R): Likewise.
17595         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17596         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17597         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17598
17599         Fix copyright header in build-aux scripts.
17600         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17601         recommendation.
17602         * build-aux/ncftpput-ftp: Likewise.
17603         * build-aux/update-copyright: Likewise.
17604
17605 2009-09-09  Eric Blake  <ebb9@byu.net>
17606
17607         test-link: allow Linux choice of errno
17608         * tests/test-link.c (main): Relax test for alternate error.
17609
17610         strndup: fix improper m4 caching
17611         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17612         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17613         (gl_PREREQ_STRNDUP): Delete.
17614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17615         * modules/string (Makefile.am): Substitute it.
17616         * lib/string.in.h (strndup): Modernize prototype.
17617
17618         getcwd: port to mingw
17619         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17620         different from the POSIX assumptions made throughout the getcwd
17621         module; fortunately, the mingw getcwd does not need replacement.
17622         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17623         * modules/getcwd-tests: New test.
17624         * tests/test-getcwd.c: Likewise.
17625
17626         link: fix platform bugs
17627         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17628         * lib/link.c (link): Work around them.  Fix related mingw bug.
17629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17630         * modules/unistd (Makefile.am): Substitute it.
17631         * lib/unistd.in.h (link): Declare replacement.
17632         * doc/posix-functions/link.texi (link): Document this.
17633         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17634
17635         test-link: consolidate into single C program, test more cases
17636         * tests/test-link.sh: Delete.
17637         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17638         at least Cygwin and Solaris.
17639         * modules/link-tests (Files): Remove unused file.
17640         (Depends-on): Add errno, sys_stat.
17641         (Makefile.am): Simplify.
17642
17643 2009-09-08  Bruno Haible  <bruno@clisp.org>
17644
17645         Work around towlower, towupper bug on mingw.
17646         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17647         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17648         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17649         * doc/posix-functions/towupper.texi: Likewise.
17650         Reported by Eric Blake.
17651
17652 2009-09-08  Jim Meyering  <meyering@redhat.com>
17653
17654         build: don't try to run autoheader if we don't use it
17655         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17656         is not used in configure.ac.
17657
17658 2009-09-08  Eric Blake  <ebb9@byu.net>
17659
17660         euidaccess: fix compilation error
17661         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17662
17663         rawmemchr: relax license
17664         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17665         okay.
17666         Reported by Jim Meyering.
17667
17668         mkfifoat: new module
17669         * modules/mkfifoat: New file.
17670         * lib/mkfifoat.c: Likewise.
17671         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17673         * modules/sys_stat (Makefile.am): Use them.
17674         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17675         * MODULES.html.sh (File system functions): Mention module.
17676         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17677         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17678         * modules/mkfifoat-tests: New test.
17679         * tests/test-mkfifoat.c: Likewise.
17680
17681         strchrnul: relax license
17682         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17683         okay.
17684         Reported by Jim Meyering.
17685
17686 2009-09-08  Eric Blake  <ebb9@byu.net>
17687
17688         fstatat: fix compilation on Solaris
17689         * lib/fstatat.c (includes): Add fcntl.h.
17690         Reported by Pádraig Brady.
17691
17692 2009-09-07  Eric Blake  <ebb9@byu.net>
17693
17694         rename: modernize replacement
17695         * modules/rename (Depends-on): Add stdio.
17696         (configure.ac): Declare witness.
17697         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17698         stdio take care of replacement.
17699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17700         * modules/stdio (Makefile.am): Substitute them.
17701         * lib/stdio.in.h (rename): Declare replacement.
17702         * lib/rename.c (includes): Allow cross-compilation to non-windows
17703         machines.
17704         * doc/posix-functions/rename.texi (rename): Improve
17705         documentation.
17706
17707         stdio: sort witness names
17708         * modules/stdio (Makefile.am): Sort replacements.
17709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17710         * lib/stdio.in.h: Likewise.
17711
17712         getcwd: minor cleanups
17713         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17714         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17715
17716         openat: provide more convenience names
17717         * modules/faccessat (configure.ac): Add C witness.
17718         * lib/unistd.in.h (readlinkat): Fix typo.
17719         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17720         convenience wrappers.
17721         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17722         wrappers in syntax checks.
17723
17724 2009-09-06  Eric Blake  <ebb9@byu.net>
17725
17726         doc: fix comments in recent patches
17727         * lib/faccessat.c: Mention correct function.
17728         * lib/fchmodat.c: Likewise.
17729         * lib/fchownat.c: Likewise.
17730         * lib/symlinkat.c: Likewise.
17731         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17732         constants.
17733
17734         faccessat, symlinkat: continue cleanup of previous patch
17735         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17736         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17737         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17739         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17740         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17741         set.
17742
17743 2009-09-06  Bruno Haible  <bruno@clisp.org>
17744
17745         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17746         (fstatat): Declare if GNULIB_FSTATAT is set.
17747         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17748         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17749         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17750         * modules/fcntl-h (Files): Remove m4/openat.m4.
17751         * modules/sys_stat (Files): Remove m4/openat.m4.
17752         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17753         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17754         * modules/unistd (Files): Remove m4/openat.m4.
17755         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17756         GNULIB_OPENAT.
17757         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17758         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17759         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17760         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17761         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17762         gl_OPENAT_DEFAULTS.
17763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17764         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17765         Don't require gl_OPENAT_DEFAULTS.
17766         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17767         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17768         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17769         (gl_OPENAT_DEFAULTS): Remove macro.
17770
17771 2009-09-06  Bruno Haible  <bruno@clisp.org>
17772
17773         * modules/openat (configure.ac): Remove unneeded witness.
17774
17775 2009-09-06  Bruno Haible  <bruno@clisp.org>
17776
17777         Set errno to ENOSYS when a function is entirely unsupported.
17778         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17779         EOPNOTSUPP.
17780         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17781         * modules/chown (Depends-on): Remove errno.
17782
17783 2009-09-06  Bruno Haible  <bruno@clisp.org>
17784
17785         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17786
17787 2009-09-06  Bruno Haible  <bruno@clisp.org>
17788
17789         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17790
17791 2009-09-06  Ben Pfaff  <blp@gnu.org>
17792             Bruno Haible  <bruno@clisp.org>
17793
17794         Work around a glibc bug in strtok_r.
17795         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17796         Undefine if UNDEFINE_STRTOK_R is set.
17797         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17799         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17801         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17802         UNDEFINE_STRTOK_R.
17803         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17804
17805 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17806
17807         exclude: minor fix
17808         * lib/exclude.c: Include wctype.h
17809
17810 2009-09-06  Akim Demaille  <demaille@gostai.com>
17811
17812         bootstrap: improve error message
17813         * build-aux/bootstrap (find_tool): Upon failure, report the list
17814         of candidates.
17815         Honor the initial value of the envvar.
17816
17817 2009-09-05  Eric Blake  <ebb9@byu.net>
17818
17819         symlinkat: new module
17820         * modules/symlinkat: New file.
17821         * lib/symlinkat.c: Likewise.
17822         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17824         * modules/unistd (Makefile.am): Use them.
17825         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17826         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17827         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17828         * MODULES.html.sh (File system functions): Mention module.
17829         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17830         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17831         * modules/symlinkat-tests: New test.
17832         * tests/test-symlinkat.c: Likewise.
17833
17834         test-openat-safer: add more checks
17835         * tests/test-openat-safer.c (main): Check more code paths.
17836
17837 2009-09-05  Jim Meyering  <meyering@redhat.com>
17838
17839         syntax-check: detect unnecessary inclusion of openat.h
17840         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17841
17842 2009-09-05  Bruno Haible  <bruno@clisp.org>
17843
17844         Support towlower, towupper.
17845         * doc/posix-functions/towlower.texi: Mention module wctype.
17846         * doc/posix-functions/towupper.texi: Likewise.
17847         * lib/wctype.in.h (towlower, towupper): New functions.
17848         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17849         (ASSERT): New macro.
17850         (e): New variable.
17851         (main): Test also towlower, towupper. Test WEOF argument.
17852         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17853
17854 2009-09-05  Bruno Haible  <bruno@clisp.org>
17855
17856         Fix conversion behaviour when the input is invalid.
17857         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17858         mark occurring in first pass of indirect conversion.
17859         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17860         input.
17861         Found by clang's static analyzer.
17862
17863 2009-09-05  Bruno Haible  <bruno@clisp.org>
17864
17865         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17866         where direct conversion is possible.
17867
17868 2009-09-04  Eric Blake  <ebb9@byu.net>
17869
17870         openat: fail with ENOENT on empty name
17871         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17872         buffer.
17873
17874         link-follow: fix logic bug in prior patch
17875         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17876         reversed sense of yes and no in prior patch.  Avoid confusing
17877         compilation failure with desired semantics.
17878
17879         link-follow: accomodate mingw and cross-compilation
17880         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17881         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17882         cross-compilation results to -1, to make linkat easier to
17883         implement when cross-compiling.  Trivially support mingw.
17884         * modules/link-follow (configure.ac): Call new name.
17885         * NEWS: Mention this.
17886
17887 2009-09-03  Eric Blake  <ebb9@byu.net>
17888
17889         faccessat: compile replacement
17890         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17891         needed.
17892
17893         fts: fix compilation error
17894         * lib/fts.c (includes): Re-add "openat.h", for
17895         openat_needs_fchdir.
17896
17897         faccessat: new module
17898         * modules/faccessat: New file.
17899         * lib/faccessat.c: Likewise.
17900         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17902         * modules/unistd (Makefile.am): Use it.
17903         * lib/unistd.in.h (faccessat): Declare it.
17904         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17905         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17906         * MODULES.html.sh (File system functions): Mention it.
17907         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17908         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17909
17910         euidaccess: prefer POSIX over non-standard implementation
17911         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17912         * lib/euidaccess.c (euidaccess): Use it if available.
17913
17914         openat: make template easier to use
17915         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17916         AT_FUNC_F2 to be undefined.
17917         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17918         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17919         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17920         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17921         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17922         Likewise.
17923         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17924         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17925         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17926         Likewise.
17927
17928         openat: declare in POSIX headers
17929         * NEWS: Mention this.
17930         * modules/openat (configure.ac): Declare witnesses.
17931         (Depends-on): Add fcntl-h, sys_stat, unistd.
17932         (Include): Mention correct headers.
17933         * modules/fcntl-h (Depends-on): Add link-warning.
17934         (Files): Add openat.m4.
17935         (Makefile.am): Substitute witnesses.
17936         * modules/sys_stat (Files, Makefile.am): Likewise.
17937         * modules/unistd (Files, Makefile.am): Likewise.
17938         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17939         (gl_OPENAT_DEFAULTS): New macro.
17940         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17943         (SYS_STAT_H): Remove unused variable.
17944         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17945         * lib/fcntl--.h (includes): Remove unneeded header.
17946         * lib/openat-safer.c (includes): Likewise.
17947         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17948         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17949         appropriate headers.
17950         (__OPENAT_PREFIX): Delete.
17951         * lib/fcntl.in.h (openat): Provide declaration.
17952         (AT_FDCWD): Fix Solaris bug.
17953         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17954         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17955         * lib/fchmodat.c (includes):  Adjust to find declaration.
17956         * lib/fchownat.c (includes): Likewise.
17957         * lib/mkdirat.c (includes): Likewise.
17958         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17959         still visible.
17960
17961 2009-09-02  Eric Blake  <ebb9@byu.net>
17962
17963         errno: use consistently
17964         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17965         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17966         * lib/canonicalize.c (ELOOP): Likewise.
17967         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17968         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17969         * lib/lchown.c (EOPNOTSUPP): Likewise.
17970         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17971         * lib/savewd.c (ESTALE): Likewise.
17972         * lib/settime.c (ENOSYS): Likewise.
17973         * lib/utimens.c (ENOSYS): Likewise.
17974         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17975         * lib/chdir-safer.c (ELOOP): Likewise.
17976         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17977         * modules/c-stack (Depends-on): Add errno.
17978         * modules/canonicalize (Depends-on): Likewise.
17979         * modules/chdir-safer (Depends-on): Likewise.
17980         * modules/fdopendir (Depends-on): Likewise.
17981         * modules/inet_ntop (Depends-on): Likewise.
17982         * modules/inet_pton (Depends-on): Likewise.
17983         * modules/lchown (Depends-on): Likewise.
17984         * modules/openat (Depends-on): Likewise.
17985         * modules/savewd (Depends-on): Likewise.
17986         * modules/settime (Depends-on): Likewise.
17987         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17988
17989         fts: avoid leaking fds
17990         * modules/fts (Depends-on): Add cloexec.
17991         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17992         flag.
17993
17994         fts: make directory fds more robust
17995         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17996         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17997
17998         backupfile, chdir-long, fts, savedir: make safer
17999         * lib/backupfile.c (includes): Use "dirent--.h", since
18000         numbered_backup can write to stderr during readdir.
18001         * lib/savedir.c (includes): Likewise.
18002         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18003         emulation can write to stderr on failure.
18004         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18005         * lib/getcwd.c: Document why opendir_safer is unused.
18006         * lib/glob.c: Likewise.
18007         * lib/scandir.c: Likewise.
18008         * lib/openat-proc.c: Likewise, for open_safer.
18009         * modules/backupfile (Depends-on): Add dirent-safer.
18010         * modules/savedir (Depends-on): Likewise.
18011         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18012         * modules/chdir-long (Depends-on): Add openat-safer.
18013
18014         openat-safer: new module
18015         * modules/openat-safer: New file.
18016         * lib/openat-safer.c: Likewise.
18017         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18018         * lib/fcntl-safer.h (openat_safer): Declare.
18019         * lib/fcntl--.h (openat): Override.
18020         * MODULES.html.sh (File descriptor based I/O): Mention it.
18021         * lib/openat.h: Add double-inclusion guards.
18022         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18023         "fcntl--.h", so we can implement openat.
18024         * modules/openat-safer-tests: New test.
18025         * tests/test-openat-safer.c: New file.
18026
18027         dirent-safer: new module
18028         * modules/dirent-safer: New file.
18029         * lib/dirent--.h: Likewise.
18030         * lib/dirent-safer.h: Likewise.
18031         * lib/opendir-safer.c: Likewise.
18032         * m4/dirent-safer.m4: Likewise.
18033         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18034         * modules/dirent-safer-tests: New test.
18035         * tests/test-dirent-safer.c: New file.
18036         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18037
18038         fdopendir: optimize on mingw
18039         * lib/unistd.in.h (_gl_directory_name): New prototype.
18040         * lib/fchdir.c (_gl_directory_name): Implement it.
18041         (fchdir): Use it to simplify implementation.
18042         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18043         fchdir, when available, to avoid calling [f]chdir().
18044
18045         fdopendir: split into its own module
18046         * lib/openat.c (fdopendir): Move...
18047         * lib/fdopendir.c: ...into new file.
18048         * modules/fdopendir: New module.
18049         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18050         * modules/openat (Depends-on): Add fdopendir.
18051         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18052         fdopendir here.
18053         * modules/savedir (Depends-on): Only need fdopendir, not full
18054         openat.
18055         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18056         * lib/openat.h (fdopendir): Drop prototype.
18057         * lib/dirent.in.h (fdopendir): Provide prototype.
18058         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18059         * modules/dirent (Makefile.am): Substitute them.
18060         * MODULES.html.sh (File system functions): Mention it.
18061         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18062         * modules/fdopendir-tests: New file.
18063         * tests/test-fdopendir.c: Likewise.
18064
18065         fchdir: use more consistent macro convention
18066         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18067         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18068         REPLACE_FCHDIR, rather than relying on config.h macros.
18069         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18070         inside a single make-time REPLACE_FCHDIR block, rather than using
18071         the config.h FCHDIR_REPLACEMENT.
18072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18073         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18074         Manage fstat replacement.
18075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18076         REPLACE_FCHDIR.
18077         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18078         (Makefile.am): Substitute REPLACE_FCHDIR.
18079         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18080         FCHDIR_REPLACEMENT.
18081         * lib/dup-safer.c (dup_safer): Likewise.
18082         * lib/dup2.c (rpl_dup2): Likewise.
18083         * lib/dup3.c (rpl_dup3): Likewise.
18084         * lib/open.c (rpl_open): Likewise.
18085
18086         fchdir: simplify error handling, and support dup3
18087         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18088         stdbool, malloc-posix, realloc-posix.
18089         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18090         (ensure_dirs_slot): Return false on allocation failure.
18091         (rpl_dup2): Delete.
18092         (_gl_register_dup): New function.
18093         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18094         (_gl_register_fd): Close fd on allocation failure.
18095         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18096         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18097         prototype.
18098         (rpl_dup2_fchdir): Delete prototype.
18099         * lib/open.c (open): Update caller.
18100         * lib/dup2.c (dup2): Track fchdir metadata.
18101         * lib/dup3.c (dup3): Likewise.
18102         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18104
18105 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18106
18107         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18108         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18109         don't pass arguments to AC_OUTPUT.
18110
18111 2009-09-02  Bruno Haible  <bruno@clisp.org>
18112
18113         * modules/mkdtemp (License): Relicense under LGPLv2+.
18114         Reported by Paolo Bonzini.
18115
18116 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18117
18118         Replace uses of obsolete autoconf macros in Jim's modules.
18119         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18120         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18121         can evoke a warning from autoconf when run with -Wobsolete
18122         enabled.  They were declared obsolete for good reasons (see
18123         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18124         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18125         should not continue using the deprecated macros.
18126         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18127         obsolete Autoconf macros with modern counterparts.
18128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18129         * m4/dos.m4 (gl_AC_DOS): Likewise.
18130         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18132         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18133         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18134         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18135         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18136         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18137         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18138         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18139         Likewise.
18140         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18141         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18142         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18143         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18144         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18145         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18146
18147 2009-09-01  Eric Blake  <ebb9@byu.net>
18148
18149         fchdir: fix off-by-one bug in previous patch
18150         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18151         (_gl_unregister_fd): Delete useless if.
18152
18153 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18154
18155         maint.mk: sort the list of syntax-check rules
18156         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18157         easier to get a sense of progress when the rules are run sequentially
18158         and take a long time.
18159
18160 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18161
18162         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18163         * modules/netinet_in: Likewise.
18164         * modules/sys_file: Likewise.
18165         * modules/sys_ioctl: Likewise.
18166         * modules/sys_select: Likewise.
18167         * modules/sys_socket: Likewise.
18168         * modules/sys_stat: Likewise.
18169         * modules/sys_time: Likewise.
18170         * modules/sys_times: Likewise.
18171         * modules/sys_utsname: Likewise.
18172         * modules/sys_wait: Likewise.
18173
18174 2009-09-01  Jim Meyering  <meyering@redhat.com>
18175
18176         fts: help ensure that return values are not ignored
18177         * lib/fts_.h (__GNUC_PREREQ): Define.
18178         (__attribute_warn_unused_result__): Define.
18179         (fts_children, fts_close, fts_open, fts_read): Declare with
18180         __attribute_warn_unused_result__.
18181
18182         fts: fts_close now fails also when closing a dir file descriptor fails
18183         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18184         and propagate to caller, along with errno.
18185
18186         announce-gen: correct formatting in --help output
18187         * build-aux/announce-gen (usage): Move the one-line description in
18188         --help output "up", to where it belongs, just after Usage:.
18189
18190 2009-08-31  Eric Blake  <ebb9@byu.net>
18191
18192         fchdir: port to mingw
18193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18194         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18195         opened, then use a substitute.
18196         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18197         replacement.
18198         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18199         (_gl_register_fd): No need to check stat if open already filters
18200         all directories.
18201         (fchdir): Fix error condition to match POSIX.
18202         * modules/fchdir (Depends-on): Add sys_stat.
18203         * doc/posix-functions/open.texi (open): Document the limitation.
18204         * modules/fchdir-tests: New file.
18205         * tests/test-fchdir.c: Likewise.
18206
18207         canonicalize: allow cross-testing from cygwin to mingw
18208         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18209         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18210         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18211         Likewise.
18212         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18213         target does not support symlinks.
18214         * tests/test-canonicalize-lgpl.sh: Likewise.
18215
18216         chown: avoid compilation warning on mingw
18217         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18218         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18219         mingw.
18220         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18221         * modules/chown (Depends-on): Add errno.
18222
18223 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18224
18225         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18226         command.
18227
18228 2009-08-31  Jim Meyering  <meyering@redhat.com>
18229
18230         canonicalize: remove useless initialization
18231         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18232         initialization of local, "end".
18233
18234 2009-08-30  Bruno Haible  <bruno@clisp.org>
18235
18236         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18237         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18238         ENOSYS.
18239
18240 2009-08-30  Bruno Haible  <bruno@clisp.org>
18241
18242         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18243         /usr/xpg4/bin/tr when it exists.
18244         * tests/test-pipe-filter-gi1.sh: Likewise.
18245
18246 2009-08-30  Bruno Haible  <bruno@clisp.org>
18247
18248         Work around deficient /usr/bin/id program on Solaris.
18249         * tests/test-file-has-acl.sh (ID): New variable.
18250         * tests/test-set-mode-acl.sh (ID): Likewise.
18251         * tests/test-copy-acl.sh (ID): Likewise.
18252         * tests/test-copy-file.sh (ID): Likewise.
18253
18254 2009-08-30  Bruno Haible  <bruno@clisp.org>
18255
18256         New module 'xstriconveh'.
18257         * lib/xstriconveh.h: New file.
18258         * lib/xstriconveh.c: New file.
18259         * modules/xstriconveh: New file.
18260
18261 2009-08-30  Bruno Haible  <bruno@clisp.org>
18262
18263         Make it easier to use mem_cd_iconveh.
18264         * lib/striconveh.h (iconveh_t): New type.
18265         (iconveh_open, iconveh_close): New declarations.
18266         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18267         with a single 'const iconveh_t *' argument.
18268         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18269         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18270         with a single 'const iconveh_t *' argument.
18271         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18272         * tests/test-striconveh.c (main): Update.
18273         * NEWS: Mention the change.
18274
18275 2009-08-30  Bruno Haible  <bruno@clisp.org>
18276
18277         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18278         problem.
18279
18280 2009-08-30  Bruno Haible  <bruno@clisp.org>
18281
18282         Work around iconv_open problem on Solaris.
18283         * lib/iconv_open-solaris.gperf: New file.
18284         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18286         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18287         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18288         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18289         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18290
18291 2009-08-29  Jim Meyering  <meyering@redhat.com>
18292
18293         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18294         * top/maint.mk (cvs-check): Remove target; it was just an alias
18295         to the better-named vc-diff-check.
18296         (maintainer-distcheck): Remove rule.  It was used only from
18297         the (alpha/beta/major) target, and all of its commands but one
18298         were coreutils-specific.
18299         (vc-dist): Remove rule.
18300         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18301         Run vc-diff-check, not vc-dist.
18302         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18303
18304 2009-08-27  Bruno Haible  <bruno@clisp.org>
18305
18306         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18307         of 0.
18308
18309 2009-08-27  Bruno Haible  <bruno@clisp.org>
18310
18311         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18312         compilers.
18313         * doc/func.texi: Document the SunPRO C bug.
18314
18315 2009-08-27  Bruno Haible  <bruno@clisp.org>
18316
18317         Fix link error on Solaris.
18318         * tests/test-parse-duration.c (xstrdup): Remove function.
18319
18320 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18321
18322         ignore-value: handle pointer types, too
18323         * lib/ignore-value.h (__attribute__): Remove definition.
18324         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18325         of a more concise and more-often effective "(void) i" statement.
18326         (ignore_ptr): New function to suppress warnings from functions that
18327         return pointers, and to make it explicit that one function doesn't
18328         handle all cases.
18329
18330 2009-08-25  Bruno Haible  <bruno@clisp.org>
18331
18332         dup2: work around a Linux bug.
18333         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18334         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18335         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18336         Reported by Simon Josefsson.
18337
18338 2009-08-25  Jim Meyering  <meyering@redhat.com>
18339
18340         libguestfs uses gnulib
18341         * users.txt: Add libguestfs.
18342
18343 2009-08-24  Eric Blake  <ebb9@byu.net>
18344
18345         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18346         * lib/pipe2.c (includes): Add binary-io.h.
18347         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18348
18349 2009-08-24  Bruno Haible  <bruno@clisp.org>
18350
18351         Tolerate declared but missing accept4 syscall.
18352         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18353         available.
18354         * lib/sys_socket.in.h (accept4): If the function is already present,
18355         override it.
18356         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18357         * modules/accept4 (Makefile.am): Compile accept4.c always.
18358         Reported by Paolo Bonzini and Eric Blake.
18359
18360 2009-08-23  Bruno Haible  <bruno@clisp.org>
18361
18362         New module 'accept4'.
18363         * lib/sys_socket.in.h (accept4): New declaration.
18364         * lib/accept4.c: New file.
18365         * m4/accept4.m4: New file.
18366         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18367         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18368         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18369         HAVE_ACCEPT4.
18370         * modules/accept4: New file.
18371         * doc/glibc-functions/accept4.texi: Mention the new module.
18372
18373 2009-08-24  Jim Meyering  <meyering@redhat.com>
18374
18375         progname: also set global program_invocation_name, when possible
18376         Before this change, a libtool-enabled program that calls glibc's
18377         error function would report the program name as
18378         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18379         * modules/progname (configure.ac): Check for a declaration of
18380         program_invocation_name.
18381         * lib/progname.c:  Include <errno.h>.
18382         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18383         Set program_invocation_name.
18384
18385 2009-08-23  Bruno Haible  <bruno@clisp.org>
18386
18387         * lib/dup3.c: Include <string.h>.
18388
18389 2009-08-23  Bruno Haible  <bruno@clisp.org>
18390
18391         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18392         * lib/pipe2.c (pipe2): Likewise.
18393         Suggested by Eric Blake.
18394
18395 2009-08-23  Bruno Haible  <bruno@clisp.org>
18396
18397         Tolerate declared but missing dup3 syscall.
18398         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18399         * lib/unistd.in.h (dup3): If the function is already present,
18400         override it.
18401         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18402         * modules/dup3 (Makefile.am): Compile dup3.c always.
18403         Reported by Paolo Bonzini.
18404
18405 2009-08-23  Bruno Haible  <bruno@clisp.org>
18406
18407         Tolerate declared but missing pipe2 syscall.
18408         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18409         available.
18410         * lib/unistd.in.h (pipe2): If the function is already present,
18411         override it.
18412         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18413         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18414         Reported by Paolo Bonzini.
18415
18416 2009-08-23  Bruno Haible  <bruno@clisp.org>
18417
18418         * lib/pipe2.c (pipe2): Move #ifs inside function.
18419
18420 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18421
18422         quotearg: document limitations of quote_these_too
18423         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18424         those limitations are created.
18425         * lib/quotearg.h (set_char_quoting): Document that digits and
18426         letters that are special after backslash are not permitted.
18427         (quotearg_char): Cross-reference set_char_quoting documentation.
18428
18429 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18430
18431         quotearg: implement custom_quoting_style
18432         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18433         right_quote fields.
18434         (set_custom_quoting): New public function.
18435         (quotearg_buffer_restyled): Add left_quote and right_quote
18436         arguments, handle them very much like locale quoting, and update
18437         all uses.
18438         (quotearg_n_custom): New public function.
18439         (quotearg_n_custom_mem): New public function.
18440         (quotearg_custom): New public function.
18441         (quotearg_custom_mem): New public function.
18442         * lib/quotearg.h: Prototype and document new public functions.
18443         (enum quoting_style): For escape_quoting_style and
18444         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18445         ignored even though they're otherwise like c_quoting_style.
18446         Add custom_quoting_style member and document with comparison to
18447         clocale_quoting_style.
18448         * tests/test-quotearg.c (custom_quotes): New array.
18449         (custom_results): New array.
18450         (main): Extend to test custom quoting.
18451
18452 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18453
18454         quotearg: fix right quote escaping when it's in quote_these_too
18455         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18456         quote, be sure to prepend only one backslash.
18457         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18458         (main): Test it.
18459
18460 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18461
18462         quotearg-tests: test escaping of embedded locale quotes
18463         * tests/test-quotearg.c (struct result_strings): Add member for
18464         new input.
18465         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18466         (inputs): Add new input.
18467         (results_g): Add expected results.
18468         (flag_results): Likewise.
18469         (locale_results): Likewise.
18470         (compare_strings): Check those.
18471
18472 2009-08-23  Bruno Haible  <bruno@clisp.org>
18473
18474         Tests for module 'dup3'.
18475         * modules/dup3-tests: New file.
18476         * tests/test-dup3.c: New file.
18477
18478         New module 'dup3'.
18479         * lib/unistd.in.h (dup3): New declaration.
18480         * lib/dup3.c: New file.
18481         * m4/dup3.m4: New file.
18482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18483         HAVE_DUP3.
18484         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18485         * modules/dup3: New file.
18486         * doc/glibc-functions/dup3.texi: Mention the new module.
18487
18488 2009-08-23  Bruno Haible  <bruno@clisp.org>
18489
18490         Tweak the dup2 test.
18491         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18492         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18493         the test file is still empty. Fix argument order of lseek.
18494
18495 2009-08-23  Bruno Haible  <bruno@clisp.org>
18496
18497         Avoid test link errors when the modules getopt-gnu, gettext are used.
18498         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18500
18501 2009-08-23  Bruno Haible  <bruno@clisp.org>
18502
18503         Fix getdtablesize() on mingw.
18504         * lib/getdtablesize.c (getdtablesize): Implement differently.
18505         * lib/unistd.in.h (getdtablesize): Improve comment.
18506
18507 2009-08-23  Bruno Haible  <bruno@clisp.org>
18508
18509         New module 'mkostemp'.
18510         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18511         * lib/stdlib.in.h (mksotemp): New declaration.
18512         * lib/mkostemp.c: New file, from glibc with modifications.
18513         * lib/tempname.h (GT_FILE): Remove outdated comment.
18514         (gen_tempname): Add flags argument.
18515         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18516         (__GT_FILE): Map to 1.
18517         (small_open, large_open): Remove macros.
18518         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18519         * lib/mkstemp.c (mkstemp): Update.
18520         * lib/mkdtemp.c (mkdtemp): Likewise.
18521         * m4/mkostemp.m4: New file.
18522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18523         HAVE_MKOSTEMP.
18524         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18525         HAVE_MKOSTEMP.
18526         * modules/mkostemp: New file, based on modules/mkstemp.
18527         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18528         * NEWS: Mention the change.
18529
18530 2009-08-23  Bruno Haible  <bruno@clisp.org>
18531
18532         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18533         Reported by Eric Blake.
18534
18535 2009-08-23  Bruno Haible  <bruno@clisp.org>
18536
18537         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18538         Reported by Eric Blake.
18539
18540 2009-08-23  Bruno Haible  <bruno@clisp.org>
18541
18542         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18543         * modules/pipe2 (Depends-on): Likewise.
18544
18545 2009-08-23  Eric Blake  <ebb9@byu.net>
18546
18547         fcntl-h: add O_TTY_INIT support
18548         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18549         * tests/test-fcntl-h.c (o): Test it.
18550         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18551
18552         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18553         * modules/fcntl: Move <fcntl.h> header replacement...
18554         * modules/fcntl-h: ...to new name, so as not to collide with
18555         like-named function.
18556         * tests/test-fcntl.c: Rename...
18557         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18558         * modules/fcntl-tests: Rename...
18559         * modules/fcntl-h-tests: ...to this.  Update test file name.
18560         * modules/chdir-long (Depends-on): Update clients.
18561         * modules/chdir-safer (Depends-on): Likewise.
18562         * modules/fcntl-safer (Depends-on): Likewise.
18563         * modules/fts (Depends-on): Likewise.
18564         * modules/mkancesdirs (Depends-on): Likewise.
18565         * modules/mkdir-p (Depends-on): Likewise.
18566         * modules/open (Depends-on): Likewise.
18567         * modules/savewd (Depends-on): Likewise.
18568         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18569         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18570
18571 2009-08-22  Bruno Haible  <bruno@clisp.org>
18572
18573         * modules/binary-io (License): Relicense under LGPL.
18574         * modules/pipe2 (License): Likewise.
18575
18576 2009-08-22  Bruno Haible  <bruno@clisp.org>
18577
18578         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18579         return value.
18580         * lib/pipe-filter-gi.c (filter_init): Likewise.
18581         Reported by Eric Blake.
18582
18583 2009-08-22  Bruno Haible  <bruno@clisp.org>
18584
18585         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18586         * modules/pipe (Depends-on): Add pipe2.
18587
18588 2009-08-22  Bruno Haible  <bruno@clisp.org>
18589
18590         Tests for module 'pipe2'.
18591         * modules/pipe2-tests: New file.
18592         * tests/test-pipe2.c: New file.
18593
18594         New module 'pipe2'.
18595         * lib/unistd.in.h (pipe2): New declaration.
18596         * lib/pipe2.c: New file.
18597         * m4/pipe2.m4: New file.
18598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18599         HAVE_PIPE2.
18600         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18601         * modules/pipe2: New file.
18602         * doc/glibc-functions/pipe2.texi: Mention the new module.
18603
18604 2009-08-22  Bruno Haible  <bruno@clisp.org>
18605
18606         Reference some new glibc functions.
18607         * doc/glibc-functions/accept4.texi: New file.
18608         * doc/glibc-functions/dup3.texi: New file.
18609         * doc/glibc-functions/mkostemp.texi: New file.
18610         * doc/glibc-functions/pipe2.texi: New file.
18611         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18612         (Glibc sys/socket.h): Refer to accept4.
18613         (Glibc unistd.h): Refer to dup3, pipe2.
18614         Reported by Eric Blake.
18615
18616 2009-08-22  Jim Meyering  <meyering@redhat.com>
18617             Bruno Haible  <bruno@clisp.org>
18618
18619         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18620         This makes it so packages using automake-1.11's silent-rules option
18621         can print e.g., a single "GEN    configmake.h" line, rather than
18622         the 30+ statements that perform the job.  If you want to see the
18623         actual commands, you can still run "make V=1".
18624         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18625         so that make output is abbreviated when those variables are defined
18626         appropriately.
18627         * modules/argz: Likewise.
18628         * modules/arpa_inet: Likewise.
18629         * modules/byteswap: Likewise.
18630         * modules/configmake: Likewise.
18631         * modules/dirent: Likewise.
18632         * modules/errno: Likewise.
18633         * modules/fcntl: Likewise.
18634         * modules/float: Likewise.
18635         * modules/fnmatch: Likewise.
18636         * modules/getopt-posix: Likewise.
18637         * modules/glob: Likewise.
18638         * modules/iconv_open: Likewise.
18639         * modules/inttypes: Likewise.
18640         * modules/localcharset: Likewise.
18641         * modules/locale: Likewise.
18642         * modules/math: Likewise.
18643         * modules/netdb: Likewise.
18644         * modules/netinet_in: Likewise.
18645         * modules/poll: Likewise.
18646         * modules/posix_spawnp-tests: Likewise.
18647         * modules/sched: Likewise.
18648         * modules/search: Likewise.
18649         * modules/selinux-h: Likewise.
18650         * modules/signal: Likewise.
18651         * modules/spawn: Likewise.
18652         * modules/stdarg: Likewise.
18653         * modules/stdbool: Likewise.
18654         * modules/stddef: Likewise.
18655         * modules/stdint: Likewise.
18656         * modules/stdio: Likewise.
18657         * modules/stdlib: Likewise.
18658         * modules/string: Likewise.
18659         * modules/strings: Likewise.
18660         * modules/sys_file: Likewise.
18661         * modules/sys_ioctl: Likewise.
18662         * modules/sys_select: Likewise.
18663         * modules/sys_socket: Likewise.
18664         * modules/sys_stat: Likewise.
18665         * modules/sys_time: Likewise.
18666         * modules/sys_times: Likewise.
18667         * modules/sys_utsname: Likewise.
18668         * modules/sys_wait: Likewise.
18669         * modules/sysexits: Likewise.
18670         * modules/time: Likewise.
18671         * modules/unistd: Likewise.
18672         * modules/wchar: Likewise.
18673         * modules/wctype: Likewise.
18674
18675 2009-08-22  Jim Meyering  <meyering@redhat.com>
18676
18677         announce-gen: detect write failure
18678         * build-aux/announce-gen: Add Coda at end.
18679         Remove equivalent-but-more-verbose block at top.
18680
18681 2009-08-19  Akim Demaille  <demaille@gostai.com>
18682
18683         bootstrap: --help to stdout.
18684         * bootstrap (usage): Don't send --help to stderr.
18685         Use a here doc instead of a long string.
18686
18687 2009-08-21  Eric Blake  <ebb9@byu.net>
18688
18689         test-popen-safer: split from test-popen
18690         * tests/test-popen.c (main): Move...
18691         * tests/test-popen.h: ...into new file.
18692         * tests/test-popen-safer2.c: New file.
18693         * modules/popen-tests (Files): Add test-popen.h.
18694         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18695         Suggested by Bruno Haible.
18696
18697         test-fcntl-safer: split from test-open
18698         * tests/test-open.c (main): Move...
18699         * tests/test-open.h: ...into new file.
18700         * tests/test-fcntl-safer.c: New file.
18701         * modules/open-tests (Files): Add test-open.h.
18702         * modules/fcntl-safer-tests: New file.
18703         Suggested by Bruno Haible.
18704
18705         test-fopen-safer: split from test-fopen
18706         * tests/test-fopen.c (main): Move...
18707         * tests/test-fopen.h: ...into new file.
18708         * tests/test-fopen-safer.c: New file.
18709         * modules/fopen-tests (Files): Add test-fopen.h.
18710         * modules/fopen-safer-tests: New file.
18711         Suggested by Bruno Haible.
18712
18713 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18714
18715         popen-safer: test O_CLOEXEC at run-time.
18716         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18717
18718 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18719
18720         fcntl: move more flags to the header
18721         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18722         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18723         * lib/fcntl.in.h: Do both things here.
18724
18725 2009-08-21  Jim Meyering  <meyering@redhat.com>
18726
18727         consistently remove $@-t before redirecting to it
18728         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18729         * modules/alloca-opt: Likewise.
18730         * modules/byteswap: Likewise.
18731         * modules/fnmatch: Likewise.
18732         * modules/getopt-posix: Likewise.
18733         * modules/glob: Likewise.
18734         * modules/poll: Likewise.
18735         * modules/posix_spawnp-tests: Likewise.
18736         * modules/sys_socket: Likewise.
18737         * modules/sysexits: Likewise.
18738
18739 2009-08-21  Eric Blake  <ebb9@byu.net>
18740
18741         popen: simplify access to original popen
18742         * lib/popen.c (rpl_popen): No need to worry about popen being a
18743         macro.
18744         Reported by Bruno Haible.
18745
18746 2009-08-20  Eric Blake  <ebb9@byu.net>
18747
18748         build: avoid some compiler warnings
18749         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18750         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18751         type.
18752         (new_exclude_segment, excluded_file_pattern_p)
18753         (excluded_file_name_p): Reduce scope.
18754         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18755         old-style declaration.
18756
18757 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18758
18759         * tests/test-exclude1.sh: Handle Windows EOL.
18760         * tests/test-exclude2.sh: Likewise.
18761         * tests/test-exclude3.sh: Likewise.
18762         * tests/test-exclude4.sh: Likewise.
18763         * tests/test-exclude5.sh: Likewise.
18764         * tests/test-exclude6.sh: Likewise.
18765         * tests/test-exclude7.sh: Likewise.
18766
18767 2009-08-19  Akim Demaille  <demaille@gostai.com>
18768
18769         bootstrap: find sha1sum when named gsha1sum.
18770         * bootstrap (find_tool): New.
18771         ($SHA1SUM): New.
18772         Use it.
18773
18774 2009-08-20  Jim Meyering  <meyering@redhat.com>
18775
18776         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18777         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18778         expression that converts "." in a file name to "\." in the resulting
18779         regexp.  Start with a dummy statement, so that prior shell variable
18780         definitions are expanded portably.  Reported by Simon Josefsson.
18781
18782 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18783
18784         Fix polling for writeability of a screen buffer.
18785         * lib/poll.c: Distinguish input and screen buffers for the
18786         Win32 implementation.
18787         * lib/select.c: Likewise.
18788
18789 2009-08-19  Eric Blake  <ebb9@byu.net>
18790
18791         popen-safer: prevent popen from clobbering std descriptors
18792         * modules/popen-safer: New file.
18793         * lib/popen-safer.c: Likewise.
18794         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18795         * lib/stdio--.h (popen): Provide override.
18796         * lib/stdio-safer.h (popen_safer): Provide declaration.
18797         * tests/test-popen.c (includes): Partially test this.
18798         * modules/popen-safer-tests: New file, for more tests.
18799         * tests/test-popen-safer.c: Likewise.
18800         * MODULES.html.sh (file stream based Input/Output): Mention it.
18801
18802         tests: test some of the *-safer modules
18803         * modules/fopen-safer (Depends-on): Add fopen.
18804         * modules/fcntl-safer (Depends-on): Add fcntl.
18805         * modules/stdlib-safer (Depends-on): Add stdlib.
18806         (configure.ac): Set indicator.
18807         * modules/unistd-safer (configure.ac): Likewise.
18808         * modules/tmpfile-safer (configure.ac): Likewise.
18809         (Depends-on): Add tmpfile.
18810         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18811         active.
18812         * tests/test-fopen.c (includes): Test safer versions when they are
18813         in use.
18814         * tests/test-open.c (includes): Likewise.
18815
18816         popen: fix cygwin 1.5 bug when stdin closed
18817         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18818         * modules/popen: New file.
18819         * modules/popen-tests: Likewise.
18820         * tests/test-popen.c: Likewise.
18821         * m4/popen.m4: Likewise.
18822         * lib/popen.c: Likewise.
18823         * lib/stdio.in.h (popen): New declaration.
18824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18825         * modules/stdio (Makefile.am): Likewise.
18826         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18827
18828 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18829
18830         maint.mk: give full control over update-copyright exclusions
18831         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18832         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18833         (update-copyright): Don't force inclusion of top-level
18834         ChangeLog.  Don't force exclusion of all COPYING files, but make
18835         them the default exclusion instead.
18836
18837 2009-08-16  Bruno Haible  <bruno@clisp.org>
18838
18839         Fix test failures on Solaris 10.
18840         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18841         tests when Solaris iconv() is used.
18842         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18843         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18844         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18845         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18846         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18847
18848 2009-08-16  Bruno Haible  <bruno@clisp.org>
18849
18850         Fix test failures on Solaris 10.
18851         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18852         'tr' program and pass it as first argument.
18853         * tests/test-pipe-filter-gi1.sh: Likewise.
18854         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18855         program as first argument.
18856         * tests/test-pipe-filter-gi1.c (main): Likewise.
18857
18858 2009-08-16  Eric Blake  <ebb9@byu.net>
18859
18860         fpurge: fix previous commits
18861         * modules/fpurge (Makefile.am): Make replacement conditional,
18862         partially reverting 2007-04-29 change; missed in previous
18863         attempt.
18864         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18865         is missing.
18866
18867 2009-08-16  Bruno Haible  <bruno@clisp.org>
18868
18869         Clarify fpurge's effect on the file position.
18870         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18871         * tests/test-fpurge.c (main): Make a second pass for checking the file
18872         position.
18873
18874 2009-08-16  Bruno Haible  <bruno@clisp.org>
18875
18876         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18877         declaration of fpurge is missing.
18878         * tests/test-fpurge.c (main): Check that the file has not more contents
18879         than expected. Close the file before removing it.
18880
18881 2009-08-15  Eric Blake  <ebb9@byu.net>
18882
18883         fpurge: don't wrap working cygwin implementation
18884         * lib/fpurge.c (fpurge): Fix comment typo.
18885         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18886         1.7 to avoid replacement.
18887         * tests/test-fpurge.c (main): Enhance test.
18888
18889 2009-08-15  Eric Blake  <ebb9@byu.net>
18890         and Jim Meyering  <meyering@redhat.com>
18891
18892         test-update-copyright: skip if perl is insufficient
18893         * tests/test-update-copyright.sh: Failure to run maintainer tool
18894         should not cause testsuite failure on cygwin 1.5.
18895
18896 2009-08-14  Eric Blake  <ebb9@byu.net>
18897
18898         doc: mention more functions added in cygwin 1.7.0
18899         * doc/posix-headers/limits.texi (limits.h): Update for recent
18900         cygwin additions.
18901         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18902         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18903         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18904         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18905         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18906
18907 2009-08-14  Eric Blake  <ebb9@byu.net>
18908
18909         maint.mk: simplify update-copyright rule
18910         * top/maint.mk (update-copyright-local): Delete, and document how
18911         to do it in cfg.mk instead.
18912         (update-copyright-exclude-regexp): Delete, and document how to do
18913         it in .x-update-copyright instead.
18914         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18915         exclude ChangeLog.
18916
18917 2009-08-14  Bruno Haible  <bruno@clisp.org>
18918
18919         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18920
18921 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18922
18923         maint.mk: support update-copyright-env
18924         * top/maint.mk (update-copyright-env): Define place-holder.
18925         (update-copyright): Expand $(update-copyright-env) before
18926         invoking update-copyright.
18927
18928 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18929
18930         update-copyright: implement forced reformatting
18931         * build-aux/update-copyright: Implement and document
18932         UPDATE_COPYRIGHT_FORCE.
18933         * tests/test-update-copyright.sh: Test it.
18934
18935 2009-08-14  Eric Blake  <ebb9@byu.net>
18936         and Bruno Haible  <bruno@clisp.org>
18937
18938         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18939         * tests/test-locale.c: Revert previous patch related to NULL.
18940         * tests/test-stdio.c: Likewise.
18941         * tests/test-stdlib.c: Likewise.
18942         * tests/test-string.c: Likewise.
18943         * tests/test-unistd.c: Likewise.
18944         * modules/time-tests (Depends-on): Add verify.
18945         * modules/wchar-tests (Depends-on): Likewise.
18946         * tests/test-time.c: Test for NULL compliance.
18947         * tests/test-wchar.c: Likewise.
18948         * modules/locale (Depends-on): Add stddef.
18949         * modules/stdio (Depends-on): Likewise.
18950         * modules/stdlib (Depends-on): Likewise.
18951         * modules/string (Depends-on): Likewise.
18952         * modules/time (Depends-on): Likewise.
18953         * modules/unistd (Depends-on): Likewise.
18954         * modules/wchar (Depends-on): Likewise.
18955         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18956         * lib/stdlib.in.h (includes): Likewise.
18957         * lib/string.in.h (includes): Likewise.
18958         * lib/time.in.h (includes): Likewise.
18959         * lib/unistd.in.h (includes): Likewise.
18960         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18961         replaced.
18962         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18963         * m4/stddef_h.m4: New file.
18964         * modules/stddef: Likewise.
18965         * lib/stddef.in.h: Likewise.
18966         * modules/stddef-tests: Likewise.
18967         * tests/test-stddef.c: Likewise.
18968         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18969         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18970         * doc/posix-headers/locale.texi (locale.h): Likewise.
18971         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18972         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18973         * doc/posix-headers/string.texi (string.h): Likewise.
18974         * doc/posix-headers/time.texi (time.h): Likewise.
18975         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18976         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18977
18978 2009-08-14  Eric Blake  <ebb9@byu.net>
18979
18980         doc: improve git diff of texinfo files
18981         * .gitattributes: Add rule for *.texi files, with hint on how to
18982         use it.
18983         Copied from m4, and based on a report by Bruno Haible.
18984
18985 2009-08-14  Bruno Haible  <bruno@clisp.org>
18986
18987         Disable multithread support by default on Cygwin 1.5.x for real.
18988         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18989
18990 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18991
18992         update-copyright: much ado about intervals
18993         * build-aux/update-copyright: Implement and document
18994         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18995         of copyright year intervals.
18996         Also, document UPDATE_COPYRIGHT_YEAR.
18997         * tests/test-update-copyright.sh: Test it.
18998
18999         update-copyright: convert 2-digit to 4-digit years
19000         * build-aux/update-copyright: Implement and document.
19001         * tests/test-update-copyright.sh: Update.
19002
19003 2009-08-14  Jim Meyering  <meyering@redhat.com>
19004
19005         test-exclude: avoid coreutils "make check" failure
19006         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19007         just as in test-argmatch.c.
19008
19009 2009-08-13  Eric Blake  <ebb9@byu.net>
19010
19011         test-dup2: fix bad assumption
19012         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19013         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19014
19015         test-version-etc: fix CRLF portability issue
19016         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19017         recognize \r.
19018         * tests/test-argp-version-etc-1.sh: Likewise.
19019
19020         getopt: update client modules
19021         * modules/argp (Depends-on): Use getopt-gnu.
19022         * modules/git-merge-changelog (Depends-on): Likewise.
19023         * modules/long-options (Depends-on): Likewise.
19024         * modules/xstrtol (Depends-on): Likewise.
19025
19026 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19027
19028         * tests/test-version-etc.sh: Don't fail on different
19029         project/version.  Don't fail on CRLF differences.  Rewrite to use
19030         multiple -e instead of multiple sed forks, suggested by Eric Blake
19031         <ebb9@byu.net>.
19032         * tests/test-argp-version-etc-1.sh: Likewise.
19033
19034 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19035
19036         * tests/test-version-etc.sh: Don't fail on different
19037         project/version.
19038
19039 2009-08-12  Bruno Haible  <bruno@clisp.org>
19040
19041         Tests for modules 'getopt-posix', 'getopt-gnu'.
19042         * modules/getopt-posix-tests: New file.
19043         * tests/test-getopt.c: New file.
19044         * tests/test-getopt.h: New file.
19045         * tests/test-getopt_long.h: New file.
19046
19047         New modules 'getopt-posix', 'getopt-gnu'.
19048         * modules/getopt-gnu: New file, renamed from modules/getopt.
19049         * modules/getopt-posix: New file.
19050         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19051         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19052         (gl_GETOPT): Remove macro.
19053         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19054         Disable the test against BSD systems that declare optreset. Test
19055         against mingw bug. Test against lack of support of optional arguments
19056         on many platforms.
19057         * doc/glibc-headers/getopt.texi: Update module name and list of
19058         relevant platforms.
19059         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19060         'getopt-gnu' and more portability problems.
19061         * NEWS: Mention the changes.
19062
19063 2009-08-12  Bruno Haible  <bruno@clisp.org>
19064
19065         Ensure that optarg etc. get declared by <unistd.h>.
19066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19067         AC_USE_SYSTEM_EXTENSIONS.
19068         * modules/getopt (Depends-on): Add 'extensions'.
19069
19070 2009-08-12  Bruno Haible  <bruno@clisp.org>
19071
19072         Avoid test link errors.
19073         * modules/pipe-filter-ii-tests (Makefile.am): Define
19074         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19075         * modules/pipe-filter-gi-tests (Makefile.am): Define
19076         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19078
19079 2009-08-12  Bruno Haible  <bruno@clisp.org>
19080
19081         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19082         gl_GETOPT_SUBSTITUTE before.
19083         (gl_GETOPT): Use it.
19084         * m4/argp.m4 (gl_ARGP): Update.
19085         Reported by Sergey Poznyakoff.
19086
19087         * m4/getopt.m4: Reorder macros.
19088         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19089         (gl_GETOPT_SUBSTITUTE): Remove macro.
19090
19091 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19092
19093         Minor improvement in gitlog-to-changelog
19094
19095         * build-aux/gitlog-to-changelog: New option `--format' makes
19096         output format string configurable.
19097
19098 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19099
19100         Optimize exclude: use hash tables for non-wildcard patterns.
19101
19102         * lib/exclude.c: Include hash.h and mbuiter.h
19103         (struct exclude_pattern, exclude_segment): New data types.
19104         (struct exclude): Rewrite.
19105         (fnmatch_pattern_has_wildcards): New function.
19106         (new_exclude_segment, free_exclude_segment): New functions.
19107         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19108         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19109         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19110         * modules/exclude: Depend on hash and mbuiter.
19111
19112         * modules/exclude-tests: New file.
19113         * tests/test-exclude.c: New file.
19114         * tests/test-exclude1.sh: New file.
19115         * tests/test-exclude2.sh: New file.
19116         * tests/test-exclude3.sh: New file.
19117         * tests/test-exclude4.sh: New file.
19118         * tests/test-exclude5.sh: New file.
19119         * tests/test-exclude6.sh: New file.
19120         * tests/test-exclude7.sh: New file.
19121
19122 2009-08-12  Bruno Haible  <bruno@clisp.org>
19123
19124         Ensure that getopt() gets declared by <unistd.h>.
19125         * lib/unistd.in.h: Conditionally include getopt.h.
19126         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19127         Set GNULIB_UNISTD_H_GETOPT.
19128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19129         GNULIB_UNISTD_H_GETOPT.
19130         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19131
19132 2009-08-12  Bruno Haible  <bruno@clisp.org>
19133
19134         Clarify logic.
19135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19136         gl_replace_getopt instead of GETOPT_H.
19137
19138 2009-08-12  Bruno Haible  <bruno@clisp.org>
19139
19140         * m4/getopt.m4: Add comments.
19141
19142 2009-08-12  Bruno Haible  <bruno@clisp.org>
19143
19144         Disable multithread support by default on Cygwin 1.5.x.
19145         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19146         set gl_use_threads=no if not specified otherwise.
19147
19148 2009-08-11  Bruno Haible  <bruno@clisp.org>
19149
19150         Avoid compilation error on NetBSD 5.0.
19151         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19152         * tests/test-stdio.c: Likewise.
19153         * tests/test-stdlib.c: Likewise.
19154         * tests/test-string.c: Likewise.
19155         * tests/test-unistd.c: Likewise.
19156         Reported by Greg Troxel <gdt@ir.bbn.com>
19157         at <https://savannah.gnu.org/support/?106973>.
19158
19159 2009-08-11  Bruno Haible  <bruno@clisp.org>
19160
19161         * modules/dup2-tests (Depends-on): Remove close.
19162
19163         Undo 2009-07-19 commit.
19164         * modules/acl-tests (Depends-on): Remove close.
19165         * modules/binary-io-tests (Depends-on): Likewise.
19166         * modules/closein-tests (Depends-on): Likewise.
19167         * modules/flock-tests (Depends-on): Likewise.
19168         * modules/fsync-tests (Depends-on): Likewise.
19169         * modules/lseek-tests (Depends-on): Likewise.
19170         * modules/pipe-tests (Depends-on): Likewise.
19171         * modules/posix_spawn-tests (Depends-on): Likewise.
19172         * modules/posix_spawnp-tests (Depends-on): Likewise.
19173         * modules/stat-time-tests (Depends-on): Likewise.
19174         * modules/yesno-tests (Depends-on): Likewise.
19175
19176 2009-08-10  Bruno Haible  <bruno@clisp.org>
19177
19178         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19179
19180 2009-08-10  Bruno Haible  <bruno@clisp.org>
19181
19182         Fix a gcc warning.
19183         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19184
19185 2009-08-10  Bruno Haible  <bruno@clisp.org>
19186
19187         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19188         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19189         not only the first time.
19190         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19191         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19192         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19193         is 1, not only the the first time.
19194
19195 2009-08-10  Bruno Haible  <bruno@clisp.org>
19196
19197         Make it possible to use module 'gethostname' without module 'close'.
19198         * lib/unistd.in.h (close): Evoke a link error only if
19199         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19201         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19202         * modules/unistd (Makefile.am): Substitute
19203         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19204         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19205         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19206         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19207         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19208         * modules/sys_ioctl (Makefile.am): Substitute
19209         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19210         * modules/socket (configure.ac): On native Windows, set
19211         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19212         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19213         Reported by Sam Steingold <sds@gnu.org>.
19214
19215 2009-08-10  Bruno Haible  <bruno@clisp.org>
19216
19217         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19218         * modules/ioctl (configure.ac): Likewise.
19219
19220 2009-08-10  Bruno Haible  <bruno@clisp.org>
19221
19222         Avoid collision between gnulib wrapper and libintl wrapper.
19223         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19224         already defined in intl/printf.c.
19225         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19226         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19227
19228 2009-08-09  Bruno Haible  <bruno@clisp.org>
19229
19230         Make <sys/select.h> really self-contained, also on Solaris 10.
19231         * lib/sys_select.in.h: Include <string.h>.
19232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19233         Solaris 10 problem.
19234         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19235         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19236         Reported by Jim Meyering.
19237
19238 2009-08-09  Bruno Haible  <bruno@clisp.org>
19239
19240         Avoid warnings from 'aclocal' that are due to a use of macro name
19241         AM_XGETTEXT_OPTION that is not defined in automake.
19242         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19243         automake.
19244         * modules/error (configure.ac): Likewise.
19245         * modules/propername (configure.ac): Likewise.
19246         * modules/vasprintf (configure.ac): Likewise.
19247         * modules/verror (configure.ac): Likewise.
19248         * modules/xprintf (configure.ac): Likewise.
19249         * modules/xvasprintf (configure.ac): Likewise.
19250
19251 2009-08-08  Bruno Haible  <bruno@clisp.org>
19252
19253         Avoid compilation error in C++ mode.
19254         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19255         Reported by Sam Steingold <sds@gnu.org>.
19256
19257 2009-08-08  Bruno Haible  <bruno@clisp.org>
19258
19259         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19260         for the various Unix platforms.
19261         * doc/posix-headers/limits.texi: Update platforms list regarding
19262         HOST_NAME_MAX.
19263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19264
19265 2009-08-07  Jim Meyering  <meyering@redhat.com>
19266
19267         selinux-at: fix typo in a comment
19268         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19269         Spotted by Paolo Bonzini.
19270
19271         selinux-at: remove redundant m4 code, add documentation
19272         * modules/selinux-at (configure.ac): Remove redundant code.
19273         LIB_SELINUX is already set via the dependent module, selinux-h.
19274         (Include): Add quotes around selinux-at.h.
19275         * lib/selinux-at.h: Add documentation.
19276         Reported by Bruno Haible in
19277         http://marc.info/?l=gnulib-bug&m=124958988300749
19278
19279 2009-08-07  Bruno Haible  <bruno@clisp.org>
19280
19281         Avoid link error on MacOS X 10.3 and 10.4.
19282         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19283         on non-ELF systems.
19284         * lib/argp-pv.c (argp_program_version): Likewise.
19285         Reported by Simon Josefsson.
19286
19287 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19288
19289         * tests/test-version-etc.sh: Use $EXEEXT.
19290
19291 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19292
19293         update-copyright: update documentation to point to maint.mk
19294         * build-aux/update-copyright: Here.
19295
19296 2009-08-06  Jim Meyering  <meyering@redhat.com>
19297
19298         maint.mk: support update-copyright-local
19299         * top/maint.mk (update-copyright-local): Define place-holder.
19300         (update-copyright): Depend on $(update-copyright-local).
19301
19302 2009-08-06  Jim Meyering  <meyering@redhat.com>
19303
19304         selinux-at: new module
19305         Initially written for coreutils, this module will soon be
19306         used by findutils, too.
19307         * MODULES.html.sh [Misc]: Add selinux-at.
19308         * lib/selinux-at.h: New file, from coreutils.
19309         * lib/selinux-at.c: Likewise.
19310         * modules/selinux-at: Likewise.
19311         (License): Change from LGPL to GPL, since it depends
19312         on the GPL'd openat module.
19313
19314         doc: update README
19315         * README: Remove references to cogito.
19316         Remove cvs-repo-updating instructions from 2007.
19317         Don't imply that CVS is better if you have limited disk space.
19318
19319 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19320
19321         update-copyright: support C-style comments
19322         * build-aux/update-copyright: Implement and document.
19323         * tests/test-update-copyright.sh: Test.
19324
19325 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19326
19327         update-copyright: support omitted "(C)"
19328         * build-aux/update-copyright: Implement and document.  Also,
19329         allow variable whitespace before "(C)".
19330         * tests/test-update-copyright.sh: Test.
19331
19332 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19333
19334         update-copyright: don't trip on non-FSF copyright statements
19335         * build-aux/update-copyright: Fix so that the first correctly
19336         formatted FSF copyright statement is recognized no matter what
19337         appears before it.  Update documentation.
19338         * tests/test-update-copyright.sh: Test that.
19339
19340 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19341
19342         update-copyright: clean up code a little
19343         * build-aux/update-copyright: Append "_re" to the name of any
19344         variable holding a regular expression.
19345         Replace "old" and "new" with "stmt" in variable names.
19346         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19347         handled correctly.
19348         Format code more consistently.
19349
19350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19351
19352         update-copyright-tests: improve portability
19353         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19354         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19355
19356 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19357
19358         update-copyright: support @copyright{} and &copy;
19359         * build-aux/update-copyright: Implement and document.
19360         * tests/test-update-copyright.sh: Test.
19361
19362 2009-08-04  Jim Meyering  <meyering@redhat.com>
19363
19364         update-copyright-tests: correctly test EOL=\r\n handling
19365         * tests/test-update-copyright.sh: Put \r at the end of some lines
19366         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19367
19368         maint.mk: make update-copyright exclusion list more configurable
19369         * top/maint.mk (update-copyright): Default to excluding COPYING,
19370         but allow an override, in case someone does want to update that file.
19371
19372         maint.mk: don't update copyright date in COPYING
19373         * top/maint.mk (update-copyright): Exclude COPYING.
19374
19375         maint.mk: add a copyright-updating rule
19376         * top/maint.mk (update-copyright): New rule.
19377         Derived from coreutils/Makefile.am.
19378
19379         update-copyright: rename some variables
19380         * build-aux/update-copyright: Rename a few variables for clarity.
19381         Tweak syntax.  List Joel E. Denny as coauthor.
19382
19383 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19384
19385         update-copyright: fix bug for 2-digit last year and add tests
19386         * build-aux/update-copyright: Fix bug.
19387         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19388         specified.
19389         * modules/update-copyright-tests: New
19390         * tests/test-update-copyright.sh: New.
19391
19392 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19393
19394         update-copyright: handle leading tabs in line prefix
19395         * build-aux/update-copyright: Count leading tabs as 8 spaces
19396         when computing margin.  This helps with the formatting of
19397         ChangeLogs, for example.
19398         Fix documentation a little.
19399
19400 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19401
19402         update-copyright: support EOL=\r\n
19403         * build-aux/update-copyright: Implement that.
19404
19405 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19406
19407         update-copyright: automatically format copyright statements
19408         * build-aux/update-copyright: Implement that.
19409         Also, be a little more predictable and safer by always failing
19410         when the full copyright format is not perfectly recognized as an
19411         unbroken whole.  Discussed at
19412         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19413         Rewrite documentation.
19414
19415 2009-08-03  Bruno Haible  <bruno@clisp.org>
19416
19417         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19418
19419 2009-08-02  Bruno Haible  <bruno@clisp.org>
19420
19421         Tests for module 'uname'.
19422         * modules/uname-tests: New file.
19423         * tests/test-uname.c: New file.
19424
19425         New module 'uname'.
19426         * lib/uname.c: New file.
19427         * m4/uname.m4: New file.
19428         * modules/uname: New file.
19429         * doc/posix-functions/uname.texi: Mention the new module.
19430
19431 2009-08-02  Bruno Haible  <bruno@clisp.org>
19432
19433         Tests for module 'sys_utsname'.
19434         * modules/sys_utsname-tests: New file.
19435         * tests/test-sys_utsname.c: New file.
19436
19437         New module 'sys_utsname'.
19438         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19439         * m4/sys_utsname_h.m4: New file.
19440         * modules/sys_utsname: New file.
19441         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19442
19443 2009-08-02  Bruno Haible  <bruno@clisp.org>
19444
19445         Implicitly initialize the sockets library.
19446         * lib/gethostname.c: Include sockets.h.
19447         (rpl_gethostname): Invoke gl_sockets_startup.
19448         * lib/socket.c: Include sockets.h.
19449         (rpl_socket): Invoke gl_sockets_startup.
19450         * modules/gethostname (Depends-on): Add sockets.
19451         * modules/socket (Depends-on): Likewise.
19452         * tests/test-poll.c: Don't include sockets.h.
19453         (main): Don't invoke gl_sockets_startup.
19454         * tests/test-select.c: Don't include sockets.h.
19455         (main): Don't invoke gl_sockets_startup.
19456
19457 2009-08-02  Bruno Haible  <bruno@clisp.org>
19458
19459         Allow multiple calls to gl_sockets_startup.
19460         * lib/sockets.c (initialized_sockets_version): New variable.
19461         (gl_sockets_startup): Do nothing if already called for this or a higher
19462         version.
19463         (gl_sockets_cleanup): Reset initialized_sockets_version.
19464
19465 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19466
19467         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19468         different project/version.
19469
19470 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19471             Bruno Haible  <bruno@clisp.org>
19472
19473         Tests for module 'pipe-filter-gi'.
19474         * modules/pipe-filter-gi-tests: New file.
19475         * tests/test-pipe-filter-gi1.sh: New file.
19476         * tests/test-pipe-filter-gi1.c: New file.
19477         * tests/test-pipe-filter-gi2.sh: New file.
19478         * tests/test-pipe-filter-gi2-main.c: New file.
19479         * tests/test-pipe-filter-gi2-child.c: New file.
19480
19481         New module 'pipe-filter-gi'.
19482         * lib/pipe-filter-gi.c: New file.
19483         * modules/pipe-filter-gi: New file.
19484
19485 2009-08-02  Bruno Haible  <bruno@clisp.org>
19486             Paolo Bonzini  <bonzini@gnu.org>
19487
19488         Tests for module 'pipe-filter-ii'.
19489         * modules/pipe-filter-ii-tests: New file.
19490         * tests/test-pipe-filter-ii1.sh: New file.
19491         * tests/test-pipe-filter-ii1.c: New file.
19492         * tests/test-pipe-filter-ii2.sh: New file.
19493         * tests/test-pipe-filter-ii2-main.c: New file.
19494         * tests/test-pipe-filter-ii2-child.c: New file.
19495
19496         New module 'pipe-filter-ii'.
19497         * lib/pipe-filter.h: New file.
19498         * lib/pipe-filter-ii.c: New file.
19499         * lib/pipe-filter-aux.h: New file.
19500         * modules/pipe-filter-ii: New file.
19501
19502 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19503
19504         * lib/gc-libgcrypt.c: Change copyright to FSF.
19505         * lib/gc-gnulib.c: Likewise.
19506
19507 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19508
19509         * lib/gethostname.c: Include limits.h.
19510
19511 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19512             Bruno Haible  <bruno@clisp.org>
19513
19514         Ensure HOST_NAME_MAX as part of the gethostname module.
19515         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19516         define also HOST_NAME_MAX.
19517         * tests/test-gethostname.c: Include <limits.h>.
19518         (main): Check also HOST_NAME_MAX.
19519         * doc/posix-headers/limits.texi: Document the mingw problem.
19520
19521 2009-08-02  Bruno Haible  <bruno@clisp.org>
19522
19523         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19524         Add comments.
19525
19526 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19527
19528         * lib/gethostname.c: Add Windows wrapper.
19529         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19530         * modules/gethostname: Depend on sys_socket & errno, for also
19531         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19532         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19533
19534 2009-07-31  Jim Meyering  <meyering@redhat.com>
19535
19536         getloadavg: fix symbol name in comment
19537         * lib/getloadavg.c: Correct a typo I introduced when adding
19538         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19539         Matt Kraai spotted the problem.
19540
19541 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19542
19543         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19544         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19545         code also if ! defined N_NAME_POINTER.
19546         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19547         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19548         but the n_name member is a 12-byte array.
19549
19550 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19551
19552         update-copyright: generalize comment handling
19553         * build-aux/update-copyright: Handle copyright statements
19554         within more comment styles.
19555         Document usage.
19556         Report any file with an external copyright holder or parse failure.
19557
19558 2009-07-29  Jim Meyering  <meyering@redhat.com>
19559
19560         mktime: correct setting of REPLACE_MKTIME
19561         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19562
19563         update-copyright: new module
19564         * modules/update-copyright: New file.
19565         * build-aux/update-copyright: New file.
19566         * MODULES.html.sh (maint+release support): Add update-copyright.
19567
19568 2009-07-27  Bruno Haible  <bruno@clisp.org>
19569
19570         Fix compilation error when <ctime> is used and mktime is replaced.
19571         * lib/time.in.h (mktime): New declaration.
19572         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19573         REPLACE_MKTIME instead of defining mktime in config.h.
19574         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19575         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19576         Reported by Ross McFarland <rwmcfa1@neces.com>.
19577
19578 2009-07-27  Bruno Haible  <bruno@clisp.org>
19579
19580         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19581         Reported by Matt Kraai <mkraai@beckman.com>.
19582
19583 2009-07-25  Jim Meyering  <meyering@redhat.com>
19584
19585         maint.mk: avoid warnings about missing files
19586         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19587         diagnostic when .prev-version does not exist.
19588         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19589         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19590         nonexistent cfg.mk.
19591         Suggestions from Simon Josefsson.
19592
19593 2009-07-25  Bruno Haible  <bruno@clisp.org>
19594
19595         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19596         defined as macros. Needed on QNX 6.4.1.
19597         Reported by Matt Kraai <mkraai@beckman.com>.
19598
19599 2009-07-23  Jim Meyering  <meyering@redhat.com>
19600
19601         maint.mk: invoke "make dist" with a working value of XZ_OPT
19602         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19603
19604 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19605
19606         Make fseeko.c compile on QNX.
19607         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19608
19609 2009-07-22  Peter Simons  <simons@cryp.to>
19610
19611         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19612         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19613         * lib/md4.h: Likewise.
19614         * lib/md5.h: Likewise.
19615         * lib/sha1.h: Likewise.
19616         * lib/sha256.h: Likewise.
19617         * lib/sha512.h: Likewise.
19618
19619         tests-sha1: don't assign literal string to 'char *' variable
19620         * tests/test-sha1.c (main): Declare locals with "const" to match
19621         attributes of the right hand side.
19622
19623 2009-07-21  Eric Blake  <ebb9@byu.net>
19624
19625         dup2: fix more mingw problems
19626         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19627         fd to itself.
19628         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19629         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19630         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19631         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19632         care of mingw bugs.
19633
19634 2009-07-21  Jim Meyering  <meyering@redhat.com>
19635
19636         vc-list-files: avoid failure when /bin/sh is dash
19637         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19638         On some Debian based systems, /bin/sh is a symlink to dash, and running
19639         this command would omit the "/" following each 'tests' prefix:
19640           dash -x build-aux/vc-list-files -C . tests
19641         That is because bash and dash work differently:
19642           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19643           bash ok
19644           dash odd
19645
19646 2009-07-21  Eric Blake  <ebb9@byu.net>
19647
19648         dup2-tests: test previous patch
19649         * modules/dup2-tests: New file.
19650         * tests/test-dup2.c: Likewise.
19651         * tests/test-open.c (main): Avoid unspecified behavior.
19652         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19653         test.
19654
19655         dup2: work around mingw and cygwin 1.5 bug
19656         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19658         * modules/unistd (Makefile.am): Substitute it.
19659         * lib/unistd.in.h (dup2): Declare the replacement.
19660         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19661         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19662         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19663         * modules/execute (Depends-on): Add dup2.
19664         * modules/fseterr (Depends-on): Likewise.
19665         * modules/pipe (Depends-on): Likewise.
19666         * modules/posix_spawn-internal (Depends-on): Likewise.
19667
19668 2009-07-21  Bruno Haible  <bruno@clisp.org>
19669
19670         * modules/.gitattributes: New file.
19671
19672 2009-07-20  Bruno Haible  <bruno@clisp.org>
19673
19674         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19675         (main): Use it.
19676
19677 2009-07-20  Eric Blake  <ebb9@byu.net>
19678
19679         test-pipe: make a bit more robust.
19680         * tests/test-pipe.c (myerr): Allow error messages regardless of
19681         what we do to stderr.
19682         (test_pipe): Rearrange to avoid deadlock.
19683         (child_main): Try a larger read, to ensure we avoided deadlock.
19684         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19685         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19686         if misused.
19687
19688 2009-07-19  Jim Meyering  <meyering@redhat.com>
19689
19690         fts: avoid false-positive cycle-detection
19691         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19692         for each new command line argument.
19693
19694 2009-07-19  Bruno Haible  <bruno@clisp.org>
19695
19696         Fix build error on mingw with the modules sys_select and unistd.
19697         * modules/acl-tests (Depends-on): Add close.
19698         * modules/binary-io-tests (Depends-on): Likewise.
19699         * modules/closein-tests (Depends-on): Likewise.
19700         * modules/flock-tests (Depends-on): Likewise.
19701         * modules/fsync-tests (Depends-on): Likewise.
19702         * modules/lseek-tests (Depends-on): Likewise.
19703         * modules/pipe-tests (Depends-on): Likewise.
19704         * modules/posix_spawn-tests (Depends-on): Likewise.
19705         * modules/posix_spawnp-tests (Depends-on): Likewise.
19706         * modules/stat-time-tests (Depends-on): Likewise.
19707         * modules/yesno-tests (Depends-on): Likewise.
19708
19709 2009-07-19  Bruno Haible  <bruno@clisp.org>
19710
19711         Unify conditionals.
19712         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19713         macros, not at the compiler macros.
19714         * lib/pipe.c: Likewise.
19715         * lib/execute.c: Likewise.
19716         * lib/spawni.c: Likewise.
19717
19718 2009-07-19  Bruno Haible  <bruno@clisp.org>
19719
19720         Fix handling of closed stdin/stdout/stderr on mingw.
19721         * lib/w32spawn.h: Include unistd.h.
19722         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19723         file descriptor with O_NOINHERIT flag.
19724         (fd_safer_noinherit): New function, based on fd-safer.c.
19725         (dup_safer_noinherit): New function, based on dup-safer.c.
19726         (undup_safer_noinherit): New function.
19727         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19728         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19729         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19730         instead of fd_safer.
19731         * tests/test-pipe.c: Include <windows.h>.
19732         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19733
19734         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19735         from main.
19736         (test_pipe): Pass an extra argument for disambiguation.
19737         (main): Invoke parent_main or child_main.
19738
19739         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19740         consistently.
19741
19742 2009-07-18  Eric Blake  <ebb9@byu.net>
19743
19744         test-pipe: fix mingw build
19745         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19746
19747 2009-07-18  Bruno Haible  <bruno@clisp.org>
19748
19749         * modules/pipe-tests (Makefile.am): Fix typo.
19750
19751 2009-07-18  Eric Blake  <ebb9@byu.net>
19752
19753         error: fix mingw build
19754         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19755         Reported by Bruno Haible.
19756
19757         error: avoid undefined use of stdout
19758         * lib/error.c (error, error_at_line): Check that fd 1 is open
19759         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19760         is handling faults and the close_stdout module wants to report the
19761         detection of closed stdout as an error.
19762
19763 2009-07-17  Eric Blake  <ebb9@byu.net>
19764
19765         pipe: be robust in face of closed fds
19766         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19767         should cause child to misbehave.
19768         * modules/pipe-tests: New module.
19769         * tests/test-pipe.c: New file.
19770         * tests/test-pipe.sh: New file.
19771         Reported by Akim Demaille.
19772
19773 2009-07-14  Bruno Haible  <bruno@clisp.org>
19774
19775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19776         Reported by anonymous kc.
19777
19778 2009-07-07  Jim Meyering  <meyering@redhat.com>
19779
19780         maint.mk: don't look for translatable strings in *.m4 or *.mk
19781         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19782         when searching for translatable strings.
19783
19784 2009-07-05  Jim Meyering  <meyering@redhat.com>
19785
19786         remove superfluous parentheses in STREQ definition
19787         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19788         * lib/getugroups.c (STREQ): Likewise.
19789         * lib/fnmatch.c (STREQ): Likewise.
19790         Spotted by Bruno Haible.
19791
19792 2009-07-04  Jim Meyering  <meyering@redhat.com>
19793
19794         argv-iter: new module
19795         * MODULES.html.sh: Add argv-iter.
19796         * lib/argv-iter.c, lib/argv-iter.h: New files.
19797         * modules/argv-iter: New file.
19798         * modules/argv-iter-tests: New file.
19799         * tests/test-argv-iter.c: Test it.
19800
19801 2009-07-04  Bruno Haible  <bruno@clisp.org>
19802
19803         Fix assertion.
19804         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19805         contains more exact copies of a given entry than file2, leave the extra
19806         copies unpaired rather than aborting.
19807         Reported by Eric Blake.
19808
19809 2009-07-02  Bruno Haible  <bruno@clisp.org>
19810
19811         Speedup git-merge-changelog for git cherry-pick.
19812         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19813         (entries_mapping_get): New function, extracted from compute_mapping.
19814         (entries_mapping_reverse_get): New function.
19815         (compute_mapping): Add a 'full' argument. Return the result in a
19816         'struct entries_mapping'.
19817         (main): Update. Access the mappings through entries_mapping_get.
19818         Reported by Eric Blake.
19819
19820 2009-07-02  Bruno Haible  <bruno@clisp.org>
19821
19822         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19823         best_i.
19824
19825 2009-07-02  Bruno Haible  <bruno@clisp.org>
19826
19827         Speed up approximate search for matching ChangeLog entries.
19828         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19829         argument. Call fstrcmp_bounded instead of fstrcmp.
19830         (compute_mapping, try_split_merged_entry, main): Update callers.
19831
19832 2009-07-02  Bruno Haible  <bruno@clisp.org>
19833
19834         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19835
19836 2009-06-30  Bruno Haible  <bruno@clisp.org>
19837
19838         Reduce the number of uc_is_cased calls.
19839         * lib/unicase.h (casing_suffix_context_t): Add
19840         'first_char_except_ignorable' field.
19841         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19842         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19843         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19844         Update initializer.
19845         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19846         case-ignorable characters.
19847         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19848         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19849         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19850         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19851         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19852
19853 2009-06-30  Bruno Haible  <bruno@clisp.org>
19854
19855         Tests for module 'unicase/ignorable'.
19856         * modules/unicase/ignorable-tests: New file.
19857         * tests/unicase/test-ignorable.c: New file, generated by
19858         gen-uni-tables.
19859
19860         Tests for module 'unicase/cased'.
19861         * modules/unicase/cased-tests: New file.
19862         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19863         * tests/unicase/test-predicate-part1.h: New file, derived from
19864         tests/unictype/test-predicate-part1.h.
19865         * tests/unicase/test-predicate-part2.h: New file, same as
19866         tests/unictype/test-predicate-part2.h.
19867
19868         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19869         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19870         (output_casing_properties): New function.
19871         (main): Call it.
19872         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19873         * lib/unicase/cased.c: Include unictype/bitmap.h.
19874         (uc_is_cased): Define through a bitmap lookup.
19875         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19876         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19877         (uc_is_case_ignorable): Define through a bitmap lookup.
19878         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19879         lib/unictype/bitmap.h.
19880         (Depends-on): Add inline. Clean up.
19881         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19882         lib/unictype/bitmap.h.
19883         (Depends-on): Add inline. Clean up.
19884         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19885         recognition.
19886         * tests/unicase/test-u16-tolower.c (main): Likewise.
19887         * tests/unicase/test-u32-tolower.c (main): Likewise.
19888
19889 2009-06-30  Bruno Haible  <bruno@clisp.org>
19890
19891         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19892         * lib/unicase/u16-casemap.c: Likewise.
19893         * lib/unicase/u32-casemap.c: Likewise.
19894
19895 2009-06-29  Bruno Haible  <bruno@clisp.org>
19896
19897         Define u32_casefold as a wrapper around u32_ct_casefold.
19898         * lib/unicase/u32-casefold.c: Update.
19899         * modules/unicase/u32-casefold (Depends-on): Add
19900         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19901         unicase/empty-suffix-context. Clean up.
19902
19903         Define u16_casefold as a wrapper around u16_ct_casefold.
19904         * lib/unicase/u16-casefold.c: Update.
19905         * modules/unicase/u16-casefold (Depends-on): Add
19906         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19907         unicase/empty-suffix-context. Clean up.
19908
19909         Define u8_casefold as a wrapper around u8_ct_casefold.
19910         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19911         * lib/unicase/u8-casefold.c: Update.
19912         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19913         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19914
19915         Define u32_totitle as a wrapper around u32_ct_totitle.
19916         * lib/unicase/u32-totitle.c: Update.
19917         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19918         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19919
19920         Define u16_totitle as a wrapper around u16_ct_totitle.
19921         * lib/unicase/u16-totitle.c: Update.
19922         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19923         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19924
19925         Define u8_totitle as a wrapper around u8_ct_totitle.
19926         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19927         functions.
19928         (FUNC): Delegate to U_CT_TOTITLE.
19929         * lib/unicase/u8-totitle.c: Update.
19930         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19931         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19932
19933         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19934         invocation.
19935         * modules/unicase/u32-tolower (Depends-on): Add
19936         unicase/empty-prefix-context, unicase/empty-suffix-context.
19937
19938         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19939         invocation.
19940         * modules/unicase/u16-tolower (Depends-on): Add
19941         unicase/empty-prefix-context, unicase/empty-suffix-context.
19942
19943         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19944         * modules/unicase/u8-tolower (Depends-on): Add
19945         unicase/empty-prefix-context, unicase/empty-suffix-context.
19946
19947         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19948         invocation.
19949         * modules/unicase/u32-toupper (Depends-on): Add
19950         unicase/empty-prefix-context, unicase/empty-suffix-context.
19951
19952         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19953         invocation.
19954         * modules/unicase/u16-toupper (Depends-on): Add
19955         unicase/empty-prefix-context, unicase/empty-suffix-context.
19956
19957         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19958         * modules/unicase/u8-toupper (Depends-on): Add
19959         unicase/empty-prefix-context, unicase/empty-suffix-context.
19960
19961         New module 'unicase/u32-ct-casefold'.
19962         * lib/unicase/u32-ct-casefold.c: New file.
19963         * modules/unicase/u32-ct-casefold: New file.
19964
19965         New module 'unicase/u16-ct-casefold'.
19966         * lib/unicase/u16-ct-casefold.c: New file.
19967         * modules/unicase/u16-ct-casefold: New file.
19968
19969         New module 'unicase/u8-ct-casefold'.
19970         * lib/unicase/u8-ct-casefold.c: New file.
19971         * lib/unicase/u-ct-casefold.h: New file, derived from
19972         lib/unicase/u-casefold.h.
19973         * modules/unicase/u8-ct-casefold: New file.
19974
19975         New module 'unicase/u32-ct-totitle'.
19976         * lib/unicase/u32-ct-totitle.c: New file.
19977         * modules/unicase/u32-ct-totitle: New file.
19978
19979         New module 'unicase/u16-ct-totitle'.
19980         * lib/unicase/u16-ct-totitle.c: New file.
19981         * modules/unicase/u16-ct-totitle: New file.
19982
19983         New module 'unicase/u8-ct-totitle'.
19984         * lib/unicase/u8-ct-totitle.c: New file.
19985         * lib/unicase/u-ct-totitle.h: New file, derived from
19986         lib/unicase/u-totitle.h.
19987         * modules/unicase/u8-ct-totitle: New file.
19988
19989         New module 'unicase/u32-ct-tolower'.
19990         * lib/unicase/u32-ct-tolower.c: New file.
19991         * modules/unicase/u32-ct-tolower: New file.
19992
19993         New module 'unicase/u16-ct-tolower'.
19994         * lib/unicase/u16-ct-tolower.c: New file.
19995         * modules/unicase/u16-ct-tolower: New file.
19996
19997         New module 'unicase/u8-ct-tolower'.
19998         * lib/unicase/u8-ct-tolower.c: New file.
19999         * modules/unicase/u8-ct-tolower: New file.
20000
20001         New module 'unicase/u32-ct-toupper'.
20002         * lib/unicase/u32-ct-toupper.c: New file.
20003         * modules/unicase/u32-ct-toupper: New file.
20004
20005         New module 'unicase/u16-ct-toupper'.
20006         * lib/unicase/u16-ct-toupper.c: New file.
20007         * modules/unicase/u16-ct-toupper: New file.
20008
20009         New module 'unicase/u8-ct-toupper'.
20010         * lib/unicase/u8-ct-toupper.c: New file.
20011         * modules/unicase/u8-ct-toupper: New file.
20012
20013         Add context arguments to u*_casemap functions.
20014         * lib/unicase/unicasemap.h: Include unicase.h.
20015         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20016         suffix_context arguments.
20017         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20018         functions.
20019         (FUNC): Add prefix_context and suffix_context arguments. Use
20020         uc_is_cased and uc_is_case_ignorable.
20021         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20022         * lib/unicase/u16-casemap.c: Likewise.
20023         * lib/unicase/u32-casemap.c: Likewise.
20024         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20025         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20026         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20027         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20028         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20029         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20030
20031         New module 'unicase/u32-suffix-context'.
20032         * lib/unicase/u32-suffix-context.c: New file.
20033         * modules/unicase/u32-suffix-context: New file.
20034
20035         New module 'unicase/u16-suffix-context'.
20036         * lib/unicase/u16-suffix-context.c: New file.
20037         * modules/unicase/u16-suffix-context: New file.
20038
20039         New module 'unicase/u8-suffix-context'.
20040         * lib/unicase/u8-suffix-context.c: New file.
20041         * lib/unicase/u-suffix-context.h: New file.
20042         * modules/unicase/u8-suffix-context: New file.
20043
20044         New module 'unicase/empty-suffix-context'.
20045         * lib/unicase/empty-suffix-context.c: New file.
20046         * modules/unicase/empty-suffix-context: New file.
20047
20048         New module 'unicase/u32-prefix-context'.
20049         * lib/unicase/u32-prefix-context.c: New file.
20050         * modules/unicase/u32-prefix-context: New file.
20051
20052         New module 'unicase/u16-prefix-context'.
20053         * lib/unicase/u16-prefix-context.c: New file.
20054         * modules/unicase/u16-prefix-context: New file.
20055
20056         New module 'unicase/u8-prefix-context'.
20057         * lib/unicase/u8-prefix-context.c: New file.
20058         * lib/unicase/u-prefix-context.h: New file.
20059         * lib/unicase/context.h: New file.
20060         * modules/unicase/u8-prefix-context: New file.
20061
20062         New module 'unicase/empty-prefix-context'.
20063         * lib/unicase/empty-prefix-context.c: New file.
20064         * modules/unicase/empty-prefix-context: New file.
20065
20066         New module 'unicase/ignorable'.
20067         * lib/unicase/ignorable.c: New file.
20068         * modules/unicase/ignorable: New file.
20069
20070         New module 'unicase/cased'.
20071         * lib/unicase/caseprop.h: New file.
20072         * lib/unicase/cased.c: New file.
20073         * modules/unicase/cased: New file.
20074
20075         New functions for case mapping of substrings.
20076         * lib/unicase.h (casing_prefix_context_t): New type.
20077         (unicase_empty_prefix_context): New variable.
20078         (u8_casing_prefix_context, u16_casing_prefix_context,
20079         u32_casing_prefix_context, u8_casing_prefixes_context,
20080         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20081         declarations.
20082         (casing_suffix_context_t): New type.
20083         (unicase_empty_suffix_context): New variable.
20084         (u8_casing_suffix_context, u16_casing_suffix_context,
20085         u32_casing_suffix_context, u8_casing_suffixes_context,
20086         u16_casing_suffixes_context, u32_casing_suffixes_context,
20087         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20088         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20089         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20090         declarations.
20091
20092 2009-06-28  Jim Meyering  <meyering@redhat.com>
20093
20094         boostrap: indent only with spaces
20095         * build-aux/bootstrap: Indent only with spaces, never TABs.
20096
20097         bootstrap: split long lines
20098         * build-aux/bootstrap: Keep line length < 80.
20099
20100         bootstrap: sync from coreutils
20101         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20102         just as autoreconf does.  Verify a list of prerequisite
20103         package-name,version-number pairs if defined in bootstrap.conf.
20104         Refer to README-prereq, if prerequisites are not satisfied.
20105
20106 2009-06-27  Eric Blake  <ebb9@byu.net>
20107
20108         tests: add test for bogus NULL definition
20109         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20110         * tests/test-stdlib.c: Likewise.
20111         * tests/test-string.c: Likewise.
20112         * tests/test-locale.c: Likewise.
20113         * tests/test-unistd.c: Likewise.
20114         * modules/stdio-tests (Depends-on): Add verify.
20115         * modules/stdlib-tests (Depends-on): Likewise.
20116         * modules/string-tests (Depends-on): Likewise.
20117         * modules/locale-tests (Depends-on): Likewise.
20118         * modules/unistd-tests (Depends-on): Likewise.
20119
20120 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20121
20122         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20123         self-explaining comment.
20124         * m4/selinux-selinux-h: Update serial.
20125         (gl_LIBSELINUX): New macro, adding a warning for missing development
20126         packages to code extracted from...
20127         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20128         Add warning for missing development packages here, too.
20129
20130 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20131
20132         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20133
20134 2009-06-25  Eric Blake  <ebb9@byu.net>
20135
20136         version-etc: fix regression
20137         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20138         gcc.
20139         (version_etc): Use it, to catch bugs with trailing NULL.
20140         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20141         (version_etc_va): Fix logic bug.
20142         * modules/version-etc-tests: Add test.
20143         * tests/test-version-etc.c: New file.
20144         * tests/test-version-etc.sh: Likewise.
20145
20146 2009-06-25  Sam Steingold  <sds@gnu.org>
20147
20148         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20149         mbtowc declaration.
20150
20151 2009-06-25  Eric Blake  <ebb9@byu.net>
20152
20153         fpurge: migrate into <stdio.h>
20154         * lib/fpurge.h: Delete...
20155         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20156         * lib/fpurge.c (fpurge): Change declaring header.
20157         * modules/fpurge (Files): Drop deleted file.
20158         (Depends-on): Add stdio.
20159         (configure.ac): Set witness.
20160         * modules/stdio (Makefile.am): Support fpurge macros.
20161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20162         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20163         * lib/fflush.c: Update client.
20164         * tests/test-fpurge.c: Likewise.
20165         * NEWS: Mention the change.
20166
20167 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20168
20169         * lib/argp-version-etc.c (program_authors): Add const
20170         qualifier.
20171         * lib/version-etc.c: Fix typos in the comments.
20172         * modules/argp-version-etc: Depends on version-etc.
20173
20174 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20175
20176         argp-version-etc: new module.
20177
20178         * lib/argp-version-etc.c: New file.
20179         * lib/argp-version-etc.h: New file.
20180         * modules/argp-version-etc: New file.
20181         * modules/argp-version-etc-tests: New file.
20182         * tests/test-argp-version-etc.c: New test.
20183         * tests/test-argp-version-etc-1.sh: New test.
20184
20185 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20186
20187         Provide additional interfaces and documentation for version-etc
20188         module.
20189
20190         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20191         interfaces.
20192         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20193         prototypes.
20194
20195 2009-06-24  Bruno Haible  <bruno@clisp.org>
20196
20197         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20198         HAVE_LIB${NAME} macro.
20199         Reported by Sam Steingold <sds@gnu.org>.
20200
20201 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20202
20203         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20204         needed.
20205
20206 2009-06-21  Bruno Haible  <bruno@clisp.org>
20207
20208         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20209         work.
20210         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20211         together with LIB${NAME}, LTLIB${NAME}.
20212         Reported by Sam Steingold <sds@gnu.org>.
20213
20214 2009-06-20  Jim Meyering  <meyering@redhat.com>
20215
20216         tests: make sc_require_test_exit_idiom more generic
20217         * top/maint.mk (Exit_witness_file): New overridable variable.
20218         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20219         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20220
20221 2009-06-19  Jim Meyering  <meyering@redhat.com>
20222
20223         hash: reverse order of src/dst parameters in an internal interface
20224         * lib/hash.c (transfer_entries): Reverse order of parameters to
20225         put DST before SRC.  Adjust callers.
20226
20227         tests: test-hash: avoid wholesale duplication
20228         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20229         Instead, use a loop and add a single conditional.
20230
20231         tests: test-hash: allow seed selection via a command line argument
20232         * tests/test-hash.c (get_seed): New function.
20233         (main): Use it.
20234
20235 2009-06-19  Eric Blake  <ebb9@byu.net>
20236
20237         hash: avoid memory leak on allocation failure
20238         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20239         failure.  Factor repeated algorithm...
20240         (transfer_entries): ...into new helper routine.
20241         (hash_delete): React to hash_rehash return value.
20242
20243         hash: reduce memory pressure in hash_rehash no-op case
20244         * lib/hash.c (next_prime): Avoid overflow.
20245         (hash_initialize): Factor bucket size computation...
20246         (compute_bucket_size): ...into new helper function.
20247         (hash_rehash): Use new function and open coding to reduce memory
20248         pressure, and avoid a memory leak in USE_OBSTACK code.
20249         Reported by Jim Meyering.
20250
20251 2009-06-18  Eric Blake  <ebb9@byu.net>
20252
20253         hash: make rotation more obvious
20254         * modules/hash (Depends-on): Add bitrotate and stdint.
20255         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20256         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20257         (SIZE_MAX): Rely on headers for definition.
20258         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20259         (raw_hasher): Use rotr_sz.
20260         Suggested by Jim Meyering.
20261
20262         hash: fix memory leak in last patch
20263         * lib/hash.c (hash_rehash): Avoid memory leak.
20264
20265         hash: avoid no-op rehashing
20266         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20267
20268         hash: provide default callback functions
20269         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20270         (hash_initialize): Use them as defaults.
20271         * tests/test-hash.c (main): Test this.
20272
20273         hash: minor optimization
20274         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20275         when possible.
20276         (hash_initialize): Document this promise.
20277         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20278         * tests/test-hash.c (hash_compare_strings): Test this.
20279
20280 2009-06-18  Bruno Haible  <bruno@clisp.org>
20281
20282         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20283         going to be replaced anyway.
20284
20285 2009-06-18  Bruno Haible  <bruno@clisp.org>
20286
20287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20288         in one place.
20289         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20290         be replaced anyway.
20291
20292 2009-06-18  Eric Blake  <ebb9@byu.net>
20293
20294         hash: check for resize before insertion
20295         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20296         threshold before insertion, so that a pathological hash_rehash
20297         that fills every bucket can still trigger another rehash.
20298
20299 2009-06-18  Jim Meyering  <meyering@redhat.com>
20300
20301         hash-tests: add a loop around the small tests
20302         * tests/test-hash.c (main): Repeat small tests with selected
20303         small initial table sizes.
20304
20305 2009-06-17  Eric Blake  <ebb9@byu.net>
20306
20307         hash: minor cleanups
20308         * lib/hash.h (hash_entry): Make opaque, by moving...
20309         * lib/hash.c (hash_entry): ...here.
20310         (hash_insert): Clarify restrictions on what can be inserted.
20311         (hash_get_next): Clarify when it is safe to remove an element
20312         during traversal.
20313         (check_tuning): Skip verification when tuning is known safe.
20314         (hash_initialize): Clarify restrictions on tuning.
20315
20316 2009-06-17  Jim Meyering  <jim@meyering.net>
20317         and Eric Blake  <ebb9@byu.net>
20318
20319         hash-tests: new module
20320         * modules/hash-tests: New file.
20321         * tests/test-hash.c: New file.
20322
20323 2009-06-17  Eric Blake  <ebb9@byu.net>
20324
20325         strstr-simple: document new module
20326         * MODULES.html.sh: Document new module.
20327
20328         strstr, strcasestr: replace on platforms with broken memchr
20329         * modules/strstr: Split into...
20330         * modules/strstr-simple: ...new module that does not care about
20331         performance, but does care about glibc bug.
20332         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20333         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20334         if platform memchr is broken, per Debian bug 521737.
20335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20336         memchr.
20337         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20338         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20339         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20340         * modules/mountlist (Depends-on): Add strstr-simple.
20341         * modules/gen-uni-tables (Depends-on): Likewise.
20342         * modules/argz (Depends-on): Add strstr.
20343
20344 2009-06-17  Bruno Haible  <bruno@clisp.org>
20345
20346         * modules/posix_spawn-internal (Depends-on): Add errno.
20347
20348 2009-06-17  Bruno Haible  <bruno@clisp.org>
20349
20350         Define missing ESTALE on Interix 3.5.
20351         * lib/errno.in.h (ESTALE): Assign a value if missing.
20352         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20353         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20354         missing.
20355         * doc/posix-headers/errno.texi: Mention the Interix bug.
20356         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20357
20358 2009-06-15  Eric Blake  <ebb9@byu.net>
20359
20360         memchr, memchr2: add valgrind exception
20361         * lib/memchr.valgrind: New file.
20362         * lib/memchr2.valgrind: New file.
20363         * modules/memchr (Files): Distribute valgrind file.
20364         * modules/memchr2 (Files): Likewise.
20365
20366         docs: memchr is no longer obsolete
20367         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20368         * lib/string.in.h (memchr): Simplify logic.
20369
20370 2009-06-14  Jim Meyering  <meyering@redhat.com>
20371
20372         link-follow: fix the "checking..." message to not mention trailing slash
20373         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20374         never considered trailing slashes.
20375
20376 2009-06-14  Bruno Haible  <bruno@clisp.org>
20377
20378         * m4/memchr.m4: Mention also the bug on IA-64.
20379         * doc/posix-functions/memchr.texi: Likewise.
20380
20381 2009-06-12  Eric Blake  <ebb9@byu.net>
20382
20383         memchr: detect broken x86_64 and alpha implementations
20384         * modules/memchr-tests (Depends-on): Move mmap detection...
20385         * modules/memchr (Depends-on): ...here.
20386         (configure.ac): Set indicator.
20387         * lib/string.in.h (memchr): Declare replacement.
20388         * modules/string (Makefile.am): Trigger replacement.
20389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20390         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20391         bugs.
20392         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20393         * modules/getpagesize (License): Relax license.
20394
20395 2009-06-11  Bruno Haible  <bruno@clisp.org>
20396
20397         * lib/idpriv.h: Add more references.
20398
20399 2009-06-08  Bruno Haible  <bruno@clisp.org>
20400
20401         Tests for module 'idpriv-droptemp'.
20402         * modules/idpriv-droptemp-tests: New file.
20403         * tests/test-idpriv-droptemp.sh: New file.
20404         * tests/test-idpriv-droptemp.su.sh: New file.
20405         * tests/test-idpriv-droptemp.c: New file.
20406
20407         New module 'idpriv-droptemp'.
20408         * lib/idpriv-droptemp.c: New file.
20409         * modules/idpriv-droptemp: New file.
20410
20411 2009-06-08  Bruno Haible  <bruno@clisp.org>
20412
20413         Tests for module 'idpriv-drop'.
20414         * modules/idpriv-drop-tests: New file.
20415         * tests/test-idpriv-drop.sh: New file.
20416         * tests/test-idpriv-drop.su.sh: New file.
20417         * tests/test-idpriv-drop.c: New file.
20418
20419         New module 'idpriv-drop'.
20420         * lib/idpriv.h: New file.
20421         * lib-idpriv-drop.c: New file.
20422         * m4/idpriv.m4: New file.
20423         * modules/idpriv-drop: New file.
20424
20425 2009-06-08  Bruno Haible  <bruno@clisp.org>
20426
20427         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20428         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20429         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20430         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20431         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20432         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20433         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20434
20435 2009-06-08  Eric Blake  <ebb9@byu.net>
20436
20437         test-strstr: use memory fence, when possible
20438         * tests/test-strstr.c (main): Use memory fence, in order to be
20439         more likely to trigger Debian bug 521737.
20440         * modules/strstr-tests (Files): Pull in additional files.
20441
20442         memchr: no longer obsolete, for wider field testing
20443         * modules/memchr (Status, Notice): Delete, this module is no
20444         longer obsolete.
20445         * modules/vasnprintf (Depends-on): Add memchr.
20446
20447 2009-06-07  Jim Meyering  <meyering@redhat.com>
20448
20449         hash: declare some functions with the warn_unused_result attribute
20450         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20451
20452 2009-06-07  Bruno Haible  <bruno@clisp.org>
20453
20454         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20455         Reported by Eric Blake.
20456
20457 2009-06-06  Eric Blake  <ebb9@byu.net>
20458
20459         test-alignof: fix typo with long double
20460         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20461         compiler error.
20462
20463 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20464
20465         Escape non-texinfo { and }s.
20466         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20467         markup error.
20468
20469 2009-06-04  Jim Meyering  <meyering@redhat.com>
20470
20471         gitlog-to-changelog: don't infloop on an empty commit log
20472         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20473         Reported by Boris Petersen <transacid@centerim.org>.
20474
20475 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20476
20477         version-etc: extend for packagers
20478         Add three new configure options, intended for packagers:
20479           --with-packager="packager name"
20480           --with-packager-version="packager-specific version"
20481           --with-packager-bug-reports="packager bug reporting"
20482         An example with coreutils:
20483           $ ./configure \
20484             --with-packager=Gentoo \
20485             --with-packager-bug-report=http://bugs.gentoo.org/ \
20486             --with-packager-version="patchset 1.6"
20487           $ ./src/ls --version | head -n2
20488           ls (GNU coreutils) 7.1-dirty
20489           Packaged by Gentoo (patchset 1.6)
20490         Note that the bug reporting info via --help doesn't show up because
20491         coreutils uses its own custom emit_bug_reporting_address() implementation
20492         in src/system.h.  If it didn't, it'd look like:
20493           $ ./src/ls --help | tail -n4
20494           Report bugs to <bug-coreutils@gnu.org>.
20495           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20496           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20497           General help using GNU software: <http://www.gnu.org/gethelp/>.
20498         * lib/version-etc.c: Print new information, if provided.
20499         * m4/version-etc.m4: New file.
20500         * modules/version-etc (Files): Add m4/version-etc.m4.
20501         (configure.ac): Add gl_VERSION_ETC.
20502
20503 2009-05-31  Bruno Haible  <bruno@clisp.org>
20504
20505         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20506         and 'int64_t'.
20507         * modules/alignof-tests (Dependencies): Add stdint.
20508         Reported by Eric Blake.
20509
20510 2009-05-31  Bruno Haible  <bruno@clisp.org>
20511
20512         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20513         restriction due to compiler bugs.
20514         Reported by Eric Blake.
20515
20516 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20517             Bruno Haible  <bruno@clisp.org>
20518
20519         Fix test-alignof failure.
20520         * lib/alignof.h (alignof_slot): New macro.
20521         (alignof_type): New macro, with the same semantics as the previous
20522         'alignof'.
20523         (alignof): Alias to alignof_slot.
20524         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20525         check that the results are usable as constant expressions.
20526
20527 2009-05-31  Bruno Haible  <bruno@clisp.org>
20528
20529         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20530         * tests/test-memchr.c (main): Check that memchr does not read past the
20531         first occurrence of the byte.
20532         * tests/test-strstr.c (main): Update comment.
20533         Suggested by Eric Blake.
20534
20535 2009-05-30  Bruno Haible  <bruno@clisp.org>
20536
20537         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20538         detail how to use dumpbin.
20539         Reported by David Byron <dbyron@dbyron.com>.
20540
20541 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20542
20543         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20544
20545 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20546
20547         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20548
20549 2009-05-28  Bruno Haible  <bruno@clisp.org>
20550
20551         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20552         build-aux/ files.
20553
20554 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20555
20556         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20557
20558 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20559
20560         * gnulib-tool (sed_transform_main_lib_file)
20561         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20562         regexps.
20563
20564 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20565
20566         * tests/test-strstr.c: Add another self-test.
20567         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20568         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20569
20570 2009-05-23  Bruno Haible  <bruno@clisp.org>
20571
20572         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20573         change.
20574
20575 2009-05-21  Bruno Haible  <bruno@clisp.org>
20576
20577         Simplify use of mode_t varargs.
20578         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20579         uses 'mode_t' or 'int'.
20580         * lib/openat.c (openat): Likewise.
20581         * lib/open-safer.c (open_safer): Likewise.
20582         * m4/mode_t.m4: New file.
20583         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20584         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20585         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20586         * modules/open (Files): Add m4/mode_t.m4.
20587         * modules/openat (Files): Likewise.
20588         * modules/fcntl-safer (Files): Likewise.
20589         Suggested by Eric Blake.
20590
20591 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20592
20593         * doc/glibc-functions/fallocate.texi: New file.
20594         * doc/gnulib.texi: Include it.
20595
20596 2009-05-21  Eric Blake  <ebb9@byu.net>
20597             Bruno Haible  <bruno@clisp.org>
20598
20599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20600         invocations.
20601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20602
20603 2009-05-21  Eric Blake  <ebb9@byu.net>
20604             Bruno Haible  <bruno@clisp.org>
20605
20606         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20607         include_next. Fix of 2008-11-20 commit.
20608         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20609         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20610         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20611         NEXT_MATH_H.
20612         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20613         instead of NEXT_MATH_H.
20614
20615 2009-05-21  Bruno Haible  <bruno@clisp.org>
20616
20617         Avoid redefinition warnings for SIZE_MAX.
20618         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20619         Reported by Simon Josefsson.
20620
20621 2009-05-21  Bruno Haible  <bruno@clisp.org>
20622
20623         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20624         AC_CACHE_VAL.
20625
20626 2009-05-20  Bruno Haible  <bruno@clisp.org>
20627
20628         Make zeroptr.h work on mingw.
20629         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20630         mprotect.
20631         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20632         * modules/memchr2-tests (configure.ac): Likewise.
20633         * modules/memcmp-tests (configure.ac): Likewise.
20634         * modules/memmem-tests (configure.ac): Likewise.
20635         * modules/memrchr-tests (configure.ac): Likewise.
20636         Reported by Simon Josefsson.
20637
20638 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20639
20640         * tests/test-glob.c: Include string.h for strcmp prototype.
20641
20642 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20643
20644         * modules/getdelim (Depends-on): Add explicit stdint, although it
20645         was implicitly already pulled in via realloc-posix.
20646         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20647
20648 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20649
20650         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20651         G. Christensen" <tgc@jupiterrise.com>.
20652         * m4/sys_socket_h.m4: Check for sa_family_t.
20653         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20654         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20655         * tests/test-sys_socket.c: Check that sa_family_t works.
20656
20657 2009-05-18  Eric Blake  <ebb9@byu.net>
20658
20659         maint.mk: allow gnulib_dir in VPATH build
20660         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20661
20662 2009-05-15  Jim Meyering  <meyering@redhat.com>
20663
20664         maint.mk: Give gnulib_dir a default definition.
20665         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20666         Thus, most packages no longer need to specify this variable in cfg.mk
20667
20668 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20669
20670         rename.m4: fix typos that would make non-mingw cross-configure fail
20671         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20672
20673 2009-05-13  Eric Blake  <ebb9@byu.net>
20674
20675         mmap-anon: avoid out-of-order autoconf expansion
20676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20677         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20678         * modules/memchr-tests (Depends-on): Add extensions.
20679         * modules/memchr2-tests (Depends-on): Add extensions.
20680         * modules/memcmp-tests (Depends-on): Add extensions.
20681         * modules/memmem-tests (Depends-on): Add extensions.
20682         * modules/memrchr-tests (Depends-on): Add extensions.
20683
20684 2009-05-13  Bruno Haible  <bruno@clisp.org>
20685
20686         Make some tests ISO C 99 compliant.
20687         * tests/zerosize-ptr.h: New file.
20688         * tests/test-memchr.c: Include zerosize-ptr.h.
20689         (main): Use a zero-size object pointer instead of NULL.
20690         * tests/test-memchr2.c: Include zerosize-ptr.h.
20691         (main): Use a zero-size object pointer instead of NULL.
20692         * tests/test-memcmp.c: Include zerosize-ptr.h.
20693         (main): Use a zero-size object pointer instead of NULL.
20694         * tests/test-memmem.c: Include zerosize-ptr.h.
20695         (main): Use a zero-size object pointer instead of NULL.
20696         * tests/test-memrchr.c: Include zerosize-ptr.h.
20697         (main): Use a zero-size object pointer instead of NULL.
20698         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20699         m4/mmap-anon.m4.
20700         (Depends-on): Add getpagesize.
20701         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20702         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20703         m4/mmap-anon.m4.
20704         (Depends-on): Add getpagesize.
20705         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20706         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20707         m4/mmap-anon.m4.
20708         (Depends-on): Add getpagesize.
20709         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20710         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20711         m4/mmap-anon.m4.
20712         (Depends-on): Add getpagesize.
20713         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20714         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20715         m4/mmap-anon.m4.
20716         (Depends-on): Add getpagesize.
20717         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20718
20719 2009-05-12  Bruno Haible  <bruno@clisp.org>
20720
20721         Tests for module 'alignof'.
20722         * modules/alignof-tests: New file.
20723         * tests/test-alignof.c: New file.
20724
20725 2009-05-12  Bruno Haible  <bruno@clisp.org>
20726
20727         Fix alignof macro.
20728         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20729         vendor compilers that are always correct.
20730
20731 2009-05-12  Bruno Haible  <bruno@clisp.org>
20732
20733         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20734         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20735         not whether its fully works.
20736
20737 2009-05-12  Bruno Haible  <bruno@clisp.org>
20738
20739         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20740
20741 2009-05-12  Jim Meyering  <meyering@redhat.com>
20742
20743         * top/maint.mk: Adjust backslash alignment.
20744
20745 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20746
20747         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20748
20749 2009-05-11  Eric Blake  <ebb9@byu.net>
20750
20751         argp: avoid undefined behavior
20752         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20753         macros.
20754
20755 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20756
20757         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20758         user.name to prevent git commit from complaining.
20759
20760 2009-05-10  Bruno Haible  <bruno@clisp.org>
20761
20762         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20763         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20764         it rewrites every file name only once.
20765         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20766
20767 2009-05-08  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20770         instead of 'max'.
20771
20772 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20773
20774         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20775         sockaddr_storage test.
20776
20777 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20778
20779         * modules/sys_socket (Makefile.am): Substitute
20780         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20781         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20782         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20783         * tests/test-sys_socket.c: Check sockaddr_storage.
20784
20785 2009-05-08  Bruno Haible  <bruno@clisp.org>
20786
20787         New module 'alignof'.
20788         * lib/alignof.h: New file.
20789         * modules/alignof: New file.
20790
20791 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20792             Bruno Haible  <bruno@clisp.org>
20793
20794         Fix test-file-has-acl on FreeBSD.
20795         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20796         mask is implicitly added.
20797         * tests/test-file-has-acl.c: Include <signal.h>.
20798         (main): Terminate the test after 5 seconds.
20799         * modules/acl-tests (configure.ac): Check for alarm function.
20800
20801 2009-05-04  Bruno Haible  <bruno@clisp.org>
20802
20803         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20805         * modules/errno (configure.ac): Drop AC_REQUIRE.
20806         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20807         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20808
20809 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20810
20811         * modules/glob-tests: New module.
20812         * tests/test-glob.c: Add.
20813
20814 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20815
20816         * modules/fnmatch-tests: New module.
20817         * tests/test-fnmatch.c: Add.
20818
20819 2009-05-04  Eric Blake  <ebb9@byu.net>
20820
20821         maint: make the new no-submodule-changes rule VPATH-safe
20822         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20823
20824 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20825             Bruno Haible  <bruno@clisp.org>
20826
20827         acl: Fix infinite loop on FreeBSD.
20828         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20829         of return value from acl_get_entry.
20830         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20831         Likewise.
20832
20833 2009-05-03  Bruno Haible  <bruno@clisp.org>
20834
20835         * lib/acl-internal.h (acl_entries): Clarify return value.
20836         * lib/acl_entries.c (acl_entries): Likewise.
20837
20838 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20839
20840         Bug fix in acl module.
20841         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20842
20843 2009-05-03  Bruno Haible  <bruno@clisp.org>
20844
20845         Create gperf-generated file in the source dir, not in the build dir.
20846         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20847         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20848         * modules/unicase/locale-language (unicase/locale-languages.h):
20849         Likewise.
20850         * modules/unicase/special-casing (unicase/special-casing-table.h):
20851         Likewise.
20852         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20853         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20854         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20855         Reported by Ralf Wildenhues.
20856
20857 2009-05-03  Bruno Haible  <bruno@clisp.org>
20858
20859         * modules/fnmatch (Description, configure.ac): Taken from
20860         fnmatch-posix.
20861         * modules/fnmatch-posix: Turn into a symbolic reference to the
20862         'fnmatch' module, and deprecate.
20863         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20864
20865 2009-05-03  Bruno Haible  <bruno@clisp.org>
20866
20867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20868         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20869         Reported by Ralf Wildenhues.
20870
20871 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20872
20873         * m4/fnmatch.m4: Fix fnmatch re-define.
20874
20875 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20876
20877         priv-set: new module and tests; adapt write-any-file
20878         * lib/priv-set.c: New file.
20879         * lib/priv-set.h: New file.
20880         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20881         * lib/write-any-file.c: Simplify by using priv-set module.
20882         * m4/priv-set.m4: New file.
20883         * modules/priv-set: New file.
20884         * modules/unlinkdir: Add dependency on priv-set module.
20885         * modules/write-any-file: Likewise.
20886
20887         Tests for module 'priv-set'.
20888         * modules/priv-set-tests: New file.
20889         * tests/test-priv-set.c: New file.
20890
20891 2009-05-03  Jim Meyering  <meyering@redhat.com>
20892             Bruno Haible  <bruno@clisp.org>
20893
20894         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20895         use the converted UTF-8 variant of the name instead.
20896
20897 2009-05-03  Jim Meyering  <meyering@redhat.com>
20898
20899         tests: tighten some getdate tests
20900         * tests/test-getdate.c (main): Tighten tests: require equality,
20901         not just greater than.  Set TZ envvar to UTC0.
20902
20903 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20904
20905         getdate: correctly interpret "next monday" when run on a Monday
20906         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20907         that e.g., "next tues" (when run on a tuesday) results in a date
20908         that is one week in the future, and not today's date.
20909         I.e., add a week when the wday is the same as the current one.
20910         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20911         and earlier by Martin Bernreuther and Jan Minář.
20912         * tests/test-getdate.c (main): Check that "next DAY" is always in
20913         the future and that "last DAY" is always in the past.
20914
20915 2009-05-02  Jim Meyering  <meyering@redhat.com>
20916
20917         build: ensure that a release build fails when a submodule is unclean
20918         * top/maint.mk (no-submodule-changes): New rule.
20919         (alpha beta major): Depend on it.
20920
20921 2009-05-02  Bruno Haible  <bruno@clisp.org>
20922
20923         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20924         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20925         shell variable gl_fnmatch_required to detect which variant is
20926         requested.
20927         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20928         gl_FUNC_FNMATCH_POSIX.
20929         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20930         exclude fnmatch-posix.
20931
20932 2009-05-02  Bruno Haible  <bruno@clisp.org>
20933
20934         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20935         * modules/mbsrtowcs (License): Change to LGPLv2+.
20936         * modules/strnlen1 (License): Likewise.
20937         Reported by Simon Josefsson.
20938
20939 2009-05-02  Bruno Haible  <bruno@clisp.org>
20940
20941         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20942         "cross".
20943         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20944         gnulib-tool was called with option --source-base=lib.
20945
20946 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20947
20948         Use automake *-local hooks without commands, for extensibility.
20949         * modules/localcharset (Makefile.am): Rename install-exec-local
20950         rule to install-exec-localcharset, and make it a prerequisite of
20951         install-exec-local.  Likewise, rename the uninstall-local rule to
20952         uninstall-localcharset, and make it a prerequisite of the former.
20953
20954 2009-05-01  Bruno Haible  <bruno@clisp.org>
20955
20956         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20957         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20958         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20960         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20961         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20962         m4/locale-zh.m4, m4/codeset.m4.
20963
20964         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20965         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20966         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20967         m4/locale-zh.m4.
20968
20969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20970         REPLACE_WCRTOMB if mbstate_t must be replaced.
20971         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20972         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20973
20974 2009-05-01  Bruno Haible  <bruno@clisp.org>
20975
20976         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20977         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20978         dngettext, dcngettext, textdomain, bindtextdomain,
20979         bind_textdomain_codeset): Undefine before redefining.
20980
20981 2009-04-30  Bruno Haible  <bruno@clisp.org>
20982
20983         Fix bug introduced on 2009-04-25.
20984         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20985         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20986         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20987         is defined.
20988         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20989         is defined.
20990         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20991         is defined.
20992         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20993
20994 2009-04-28  Bruno Haible  <bruno@clisp.org>
20995
20996         Comment tweaks.
20997         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20998         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20999         * lib/unicase.h (u*_casexfrm): Likewise.
21000         Reported by Paolo Bonzini.
21001
21002 2009-04-28  Bruno Haible  <bruno@clisp.org>
21003
21004         Fix a compilation error.
21005         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21006         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21007         Reported by Jim Meyering.
21008
21009 2009-04-27  Bruno Haible  <bruno@clisp.org>
21010
21011         New module 'libunistring'.
21012         * modules/libunistring: New file.
21013         * m4/libunistring.m4: New file.
21014         * MODULES.html.sh (Unicode string functions): Add it.
21015
21016 2009-04-27  Eric Blake  <ebb9@byu.net>
21017
21018         maint.mk: allow package-specific header to provide <config.h>
21019         * top/maint.mk (sc_require_config_h): New variable.
21020         (sc_require_config_h, sc_require_config_h_first): Use it.
21021
21022 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21023
21024         * top/maint.mk (sc_avoid_if_before_free): Except
21025         useless-if-before-free script.
21026
21027 2009-04-27  Eric Blake  <ebb9@byu.net>
21028
21029         maintainer-makefile: depend on all required helper scripts
21030         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21031         useless-if-before-free.
21032         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21033         version, rather than assuming gnulib checkout is available.
21034         Reported by Simen Josefsson.
21035
21036 2009-04-26  Bruno Haible  <bruno@clisp.org>
21037
21038         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21039         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21040         "../" or "..".
21041
21042 2009-04-26  Bruno Haible  <bruno@clisp.org>
21043
21044         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21045         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21046         AC_LIB_HAVE_LINKFLAGS.
21047
21048 2009-04-26  Bruno Haible  <bruno@clisp.org>
21049
21050         Simplify calling convention of u*_conv_from_encoding.
21051         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21052         u32_conv_from_encoding): Expect a resultbuf argument and return the
21053         result directly as a pointer.
21054         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21055         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21056         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21057         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21058         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21059         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21060         Update.
21061         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21062         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21063         * lib/vasnprintf.c (VASNPRINTF): Update.
21064         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21065         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21066         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21067         * NEWS: Mention the change.
21068
21069 2009-04-26  Bruno Haible  <bruno@clisp.org>
21070
21071         Simplify calling convention of u*_conv_to_encoding.
21072         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21073         u32_conv_to_encoding): Expect a resultbuf argument and return the
21074         result directly as a pointer.
21075         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21076         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21077         freeing scaled_offsets if mem_iconveha failed.
21078         * lib/unicase/u-casexfrm.h (FUNC): Update.
21079         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21080         * lib/vasnprintf.c (VASNPRINTF): Update.
21081         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21082         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21083         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21084         * NEWS: Mention the change.
21085
21086 2009-04-26  Bruno Haible  <bruno@clisp.org>
21087
21088         Avoid test failures on AIX and OSF/1.
21089         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21090         malloc(0).
21091         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21092         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21093         Likewise.
21094         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21095         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21096         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21097         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21098         * doc/posix-functions/malloc.texi: Document the portability problem
21099         related to malloc(0).
21100
21101 2009-04-26  Bruno Haible  <bruno@clisp.org>
21102
21103         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21104         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21105         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21106
21107 2009-04-25  Bruno Haible  <bruno@clisp.org>
21108
21109         Avoid link error when creating a namespace clean library.
21110         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21111         as macro with arguments if already defined as an alias.
21112         * lib/signbitf.c (gl_signbitf): Don't undefine.
21113         * lib/signbitd.c (gl_signbitd): Don't undefine.
21114         * lib/signbitl.c (gl_signbitl): Don't undefine.
21115
21116 2009-04-25  Jim Meyering  <meyering@redhat.com>
21117
21118         vc-list-files: fix another quoting bug
21119         * build-aux/vc-list-files: Avoid sed backslash expansion
21120         of pathological directory names.
21121
21122 2009-04-25  Eric Blake  <ebb9@byu.net>
21123
21124         vc-list-files: fix shell quoting error
21125         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21126         timestamp.
21127
21128 2009-04-25  Jim Meyering  <meyering@redhat.com>
21129
21130         vc-list-files: restore lost functionality with subdir argument
21131         * build-aux/vc-list-files: When given a non-"." sub-directory
21132         argument, substitute the $dir/ prefix back onto each resulting name.
21133         Otherwise, coreutils' root_tests check would fail.
21134
21135 2009-04-24  Eric Blake  <ebb9@byu.net>
21136
21137         vc-list-files: ignore git symlinks
21138         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21139         than ls-files, to ignore git symlinks.
21140
21141         maint.mk: import improvements from m4
21142         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21143         (move_if_change): Delete unused macro.
21144         (news-date-check, vc-diff-check): Support VPATH builds.
21145         (announcement): Likewise.  Split --bootstrap-tools list...
21146         (boostrap-tools): ...into separate list, which can be overridden
21147         in cfg.mk.
21148         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21149         requiring dependency on useless-if-before-free module.
21150         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21151         Support VPATH builds.
21152
21153 2009-04-24  Jim Meyering  <meyering@redhat.com>
21154
21155         maint.mk: remove coreutils-specific rules and variables
21156         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21157         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21158         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21159
21160         maint.mk: remove obsolete rule
21161         * top/maint.mk (rel-check): Remove rule.
21162         (WGET, WGETFLAGS): Remove now-unused variables.
21163
21164 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21165
21166         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21167         consistency.
21168
21169         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21170         '$(PATH_SEPARATOR)' instead of ':'.
21171
21172 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21173
21174         * lib/getopt1.c (main): Use 'const' for static array.
21175
21176 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21177
21178         * top/maint.mk: Sync with coreutils.
21179         * NEWS: Explain incompatibilities.
21180
21181 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21182             Bruno Haible  <bruno@clisp.org>
21183
21184         Fix cross-compilation results.
21185         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21186         statement, as third argument of AC_TRY_RUN.
21187         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21188         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21189         Likewise.
21190         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21191         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21192         Likewise.
21193         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21194         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21195         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21196
21197 2009-04-20  Bruno Haible  <bruno@clisp.org>
21198
21199         Avoid test failure on mingw.
21200         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21201
21202 2009-04-20  Bruno Haible  <bruno@clisp.org>
21203
21204         Avoid compilation error on mingw.
21205         * modules/localename-tests (Depends-on): Add locale.
21206
21207 2009-04-19  Bruno Haible  <bruno@clisp.org>
21208
21209         Support for building a shared library on Windows platforms.
21210         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21211         (main): Test the presence of UNINORM_NFC here.
21212         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21213         (main): Test the presence of UNINORM_NFD here.
21214         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21215         (main): Test the presence of UNINORM_NFKC here.
21216         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21217         (main): Test the presence of UNINORM_NFKD here.
21218
21219 2009-04-19  Bruno Haible  <bruno@clisp.org>
21220
21221         Avoid a compiler warning.
21222         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21223         Change type of variable 'sequence'.
21224
21225 2009-04-19  Bruno Haible  <bruno@clisp.org>
21226
21227         * modules/configmake (Makefile.am): When the contents of configmake.h
21228         does not change, arrange to preserve its modification time.
21229
21230 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21231
21232         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21233         gettext domain.
21234
21235 2009-04-16  Jim Meyering  <meyering@redhat.com>
21236
21237         useless-if-before-free: improve conversion code
21238         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21239         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21240
21241 2009-04-14  Bruno Haible  <bruno@clisp.org>
21242
21243         * modules/fcntl (Depends-on): Add extensions.
21244         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21245
21246 2009-04-12  Ben Pfaff  <blp@gnu.org>
21247
21248         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21249         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21250
21251 2009-03-20  Ben Pfaff  <blp@gnu.org>
21252
21253         Make rename replace existing destinations on Windows.
21254         * m4/rename.m4: Add test for Mingw.
21255         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21256         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21257         * doc/posix-functions/rename.texi: Document.
21258
21259 2009-04-10  Bruno Haible  <bruno@clisp.org>
21260
21261         New include file "iconveh.h".
21262         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21263         * lib/striconveh.h: Include it.
21264         (enum iconv_ilseq_handler): Remove definition.
21265         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21266         striconveh.h.
21267         * lib/striconveha.c: Include striconveh.h.
21268         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21269         * modules/striconveh (Files): Add lib/iconveh.h.
21270         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21271         lib/striconveh.h.
21272
21273 2009-04-10  Bruno Haible  <bruno@clisp.org>
21274
21275         * lib/uniconv.h: Update comment.
21276
21277 2009-04-10  Bruno Haible  <bruno@clisp.org>
21278
21279         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21280         always.
21281         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21282         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21283         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21284         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21285         "unistring-notinline.h", so that the function gets defined always.
21286         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21287         * lib/unistr/u8-uctomb.c: Likewise.
21288         * lib/unistr/u16-mbtouc.c: Likewise.
21289         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21290         * lib/unistr/u16-uctomb.c: Likewise.
21291         * lib/unistr/u32-mbtouc.c: Likewise.
21292         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21293         * lib/unistr/u32-uctomb.c: Likewise.
21294
21295 2009-04-10  Bruno Haible  <bruno@clisp.org>
21296
21297         Mark 'utime' obsolete.
21298         * modules/utime (Status, Notice): New sections.
21299         Suggested by Jim Meyering.
21300
21301         Fix cross-compile guess for utime test.
21302         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21303         autoconf.
21304         * doc/posix-functions/utime.texi: Give more precisions.
21305         Reported by Jan <ipif@ymail.com>.
21306
21307 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21308
21309         filevercmp: correct today's change
21310         * lib/filevercmp.c: Also handle coreutils' test inputs.
21311         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21312
21313         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21314         for reporting it.
21315         * lib/filevercmp.c: Special handle for "", "." and "..".
21316         * tests/test-filevercmp.c: Enlarge the set suite.
21317
21318 2009-04-07  Jim Meyering  <meyering@redhat.com>
21319
21320         useless-if-before-free: show how to remove braced useless free, too
21321         * build-aux/useless-if-before-free: still only in a comment, though.
21322
21323 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21324
21325         maint.mk: import changes to syntax-check macros from coreutils
21326         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21327         Use them in the relevant macros.
21328
21329 2009-04-06  Bruno Haible  <bruno@clisp.org>
21330
21331         Fix unportable use of bit-fields.
21332         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21333         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21334         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21335
21336 2009-04-06  Bruno Haible  <bruno@clisp.org>
21337
21338         Avoid test failures on AIX and OSF/1.
21339         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21340         that malloc(0) = NULL.
21341         * tests/unicase/test-u8-tolower.c (check): Likewise.
21342         * tests/unicase/test-u8-totitle.c (check): Likewise.
21343         * tests/unicase/test-u8-toupper.c (check): Likewise.
21344         * tests/unicase/test-u16-casefold.c (check): Likewise.
21345         * tests/unicase/test-u16-tolower.c (check): Likewise.
21346         * tests/unicase/test-u16-totitle.c (check): Likewise.
21347         * tests/unicase/test-u16-toupper.c (check): Likewise.
21348         * tests/unicase/test-u32-casefold.c (check): Likewise.
21349         * tests/unicase/test-u32-tolower.c (check): Likewise.
21350         * tests/unicase/test-u32-totitle.c (check): Likewise.
21351         * tests/unicase/test-u32-toupper.c (check): Likewise.
21352         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21353         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21354         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21355         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21356         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21357         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21358         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21359         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21360         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21361         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21362         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21363         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21364
21365 2009-04-05  Bruno Haible  <bruno@clisp.org>
21366
21367         Work around an autoconf limitation.
21368         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21369         comment line if it would be longer than 3 KB.
21370
21371 2009-04-05  Bruno Haible  <bruno@clisp.org>
21372
21373         Avoid test failure with libiconv-1.13.
21374         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21375         of the expected test results.
21376
21377 2009-04-05  Bruno Haible  <bruno@clisp.org>
21378
21379         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21380         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21381         that it should be installed.
21382
21383 2009-04-05  Bruno Haible  <bruno@clisp.org>
21384
21385         * gnulib-tool: New option --copy-file.
21386         (func_usage): Document it.
21387         (func_dest_tmpfilename): Moved out of func_import.
21388         (func_add_file, func_update_file): New functions, extracted from
21389         func_import.
21390         (func_import): Update.
21391
21392 2009-04-05  Karl Berry  <karl@gnu.org>
21393
21394         * README: prominently mention gnulib-tool.
21395         Rearrange sections so getting the code is near the top.
21396
21397 2009-04-05  Bruno Haible  <bruno@clisp.org>
21398
21399         * lib/unicase.h: Mention u*_cmp2.
21400         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21401         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21402         * lib/unicase/ulc-casecmp.c: Likewise.
21403         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21404         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21405         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21406         unistr/u8-cmp.
21407         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21408         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21409         unistr/u16-cmp.
21410         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21411         unistr/u32-cmp.
21412
21413         * lib/uninorm.h: Mention u*_cmp2.
21414         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21415         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21416         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21417         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21418         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21419         unistr/u8-cmp.
21420         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21421         unistr/u16-cmp.
21422         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21423         unistr/u32-cmp.
21424
21425         New module 'unistr/u32-cmp2'.
21426         * lib/unistr/u32-cmp2.c: New file.
21427         * modules/unistr/u32-cmp2: New file.
21428
21429         New module 'unistr/u16-cmp2'.
21430         * lib/unistr/u16-cmp2.c: New file.
21431         * modules/unistr/u16-cmp2: New file.
21432
21433         New module 'unistr/u8-cmp2'.
21434         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21435         * lib/unistr/u8-cmp2.c: New file.
21436         * lib/unistr/u-cmp2.h: New file.
21437         * modules/unistr/u8-cmp2: New file.
21438
21439 2009-04-05  Bruno Haible  <bruno@clisp.org>
21440
21441         * lib/unictype.h (uc_property_is_valid): New macro.
21442         * tests/unictype/test-pr_byname.c (main): Use it.
21443
21444         * lib/unistr.h: Doc fixes.
21445         * lib/uniconv.h: Doc fixes.
21446         * lib/unictype.h: Doc fixes.
21447
21448 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21449
21450         Port coreutils 7.2 to Solaris 8.
21451
21452         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21453         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21454         for Solaris 8.  This is a bit of a hack, as it means it's the
21455         caller's responsibility to add -lnsl if needed, but most likely it
21456         won't be needed since only getaddrinfo uses this and getaddrinfo
21457         isn't needed on Solaris 8.
21458
21459         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21460         problem to Solaris 8 encountered with coreutils 7.2, which
21461         resulted in a message "fnmatch.c:292: warning: passing argument 4
21462         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21463         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21464
21465 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21466
21467         * m4/ld-version-script.m4: Add FIXME comment.
21468
21469 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21470
21471         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21472         SOVERSION variable.
21473
21474 2009-04-02  Bruno Haible  <bruno@clisp.org>
21475
21476         * Makefile (info, html, dvi, pdf): Combine the rules.
21477         Suggested by Jim Meyering.
21478
21479 2009-04-01  Bruno Haible  <bruno@clisp.org>
21480
21481         * Makefile (info, html, dvi, pdf): New targets.
21482         Reported by Reuben Thomas <rrt@sc3d.org>.
21483
21484 2009-04-01  Bruno Haible  <bruno@clisp.org>
21485
21486         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21487         can be put into PATH.
21488         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21489
21490 2009-04-01  Bruno Haible  <bruno@clisp.org>
21491
21492         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21493
21494 2009-04-01  Bruno Haible  <bruno@clisp.org>
21495
21496         Rename module 'visibility'.
21497         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21498         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21499         * doc/gnulib.texi: Update.
21500         * MODULES.html.sh (Misc): Update.
21501         * NEWS: Mention the change.
21502
21503 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21504
21505         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21506         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21507         Eric Blake <ebb9@byu.net> for review.
21508         * MODULES.html.sh: Add lib-msvc-compat.
21509         * doc/gnulib.texi: Link to new section.
21510         * m4/ld-output-def.m4: New file.
21511         * doc/ld-output-def.texi: New file.
21512
21513 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21514
21515         Rename ld-version-script to lib-symbol-versions.  Suggested by
21516         Bruno Haible <bruno@clisp.org>.
21517         * modules/ld-version-script: Renamed to lib-symbol-versions.
21518         * doc/ld-version-script.texi: Fix module name.
21519         * MODULES.html.sh: Add lib-symbol-versions.
21520
21521 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21522
21523         * modules/u64-tests: New file.
21524         * tests/test-u64.c: New file.
21525
21526 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21527
21528         * MODULES.html.sh: Mention u64.
21529         * modules/u64: New module.
21530         * modules/crypto/sha512: Depend on u64 module instead of providing
21531         u64.h.
21532
21533 2009-03-27  Eric Blake  <ebb9@byu.net>
21534
21535         test-strerror: make debugging EAI_SYSTEM easier
21536         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21537         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21538         failure was EAI_SYSTEM.
21539
21540 2009-03-25  Bruno Haible  <bruno@clisp.org>
21541
21542         Fix a problem with --enable-relocatable on Solaris 7.
21543         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21544         since 2008-02-24.
21545
21546 2009-03-25  Eric Blake  <ebb9@byu.net>
21547
21548         test-sockets: avoid gcc warning
21549         * tests/test-sockets.c (main): Silence compiler warning.
21550
21551 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         New modules nproc, pthread, contributed by Glen Lenker.
21554
21555         * MODULES.html.sh: Add pthread, nproc.
21556         * lib/nproc.c: New file.
21557         * lib/nproc.h: New file.
21558         * lib/pthread.in.h: New file.
21559         * m4/pthread.m4: New file.
21560         * modules/nproc: New file.
21561         * modules/pthread: New file.
21562
21563 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21564
21565         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21566         New variable.
21567
21568 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21569
21570         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21571         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21572         * tests/test-filevercmp.c: Add tests for backup suffixes.
21573
21574 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21575
21576         * modules/stdlib (Depends-on): Add stdint, needed when defining
21577         struct random_data on, for example, HP-UX 10.20.  Reported by
21578         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21579
21580 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21581
21582         * lib/readline.c (readline): Call fflush on stdout after printing
21583         prompt.
21584
21585 2009-03-20  Bruno Haible  <bruno@clisp.org>
21586
21587         Remove dependency from 'close' module to -lws2_32 on native Windows.
21588         * lib/close-hook.h: New file.
21589         * lib/close-hook.c: New file.
21590         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21591         w32sock.h.
21592         (_gl_close_fd_maybe_socket): Remove function.
21593         (rpl_close): Invoke execute_all_close_hooks instead of
21594         _gl_close_fd_maybe_socket.
21595         * lib/sockets.c: Include close-hook.h, w32sock.h.
21596         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21597         (close_sockets_hook): New variable.
21598         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21599         (gl_sockets_cleanup): Unregister it.
21600         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21601         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21602         * modules/close-hook: New file.
21603         * modules/close (Files): Remove lib/w32sock.h.
21604         (Depends-on): Add close-hook.
21605         (Link): Remove section.
21606         * modules/sockets (Files): Add lib/w32sock.h.
21607         (Depends-on): Add close-hook.
21608         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21609         invocation.
21610         * NEWS: Mention that LIB_CLOSE is gone.
21611
21612 2009-03-23  Eric Blake  <ebb9@byu.net>
21613
21614         signal-tests: test previous patch
21615         * tests/test-signal.c: New file.
21616         * modules/signal-tests: Likewise.
21617
21618         signal.h: always support 'volatile sig_atomic_t'
21619         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21620         (gl_SIGNAL_H_DEFAULTS): Add a default.
21621         * modules/signal (Makefile.am): Substitute if needed.
21622         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21623         users can blindly add volatile.
21624         * doc/posix-headers/signal.texi (signal.h): Document it.
21625         Reported by Matthew Woehlke.
21626
21627 2009-03-23  Jim Meyering  <meyering@redhat.com>
21628
21629         pathmax: PATH_MAX: use pathconf only when available
21630         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21631         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21632         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21633         This avoids a link failure in a PSP cross-compilation environment
21634         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21635
21636         * lib/vasnprintf.c (divide): Fix typo in comment.
21637
21638 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21639
21640         * gnulib-tool (func_filter_filelist): Fix comment.
21641
21642 2009-03-20  Bruno Haible  <bruno@clisp.org>
21643
21644         Make sockets.h self-contained.
21645         * lib/sockets.c: Include sockets.h first.
21646         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21647
21648 2009-03-19  Eric Blake  <ebb9@byu.net>
21649
21650         doc: mention more functions added in cygwin 1.7.0
21651         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21652         addition.
21653         * doc/posix-functions/log2f.texi: Likewise.
21654
21655 2009-03-19  Jim Meyering  <meyering@redhat.com>
21656
21657         fsusage: avoid syntax error due to statement-before-declaration
21658         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21659         after all declarations.  Reported by Matthew Woehlke in
21660         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21661
21662 2009-03-18  Eric Blake  <ebb9@byu.net>
21663
21664         build-aux/compile: sync from automake
21665         * build-aux/compile: New file, from automake.
21666         * config/srclist.txt: Mention build-aux/compile.
21667
21668 2009-03-17  Bruno Haible  <bruno@clisp.org>
21669
21670         * lib/git-merge-changelog.c: Fix typo in comment.
21671         Reported by Reuben Thomas <rrt@sc3d.org>.
21672
21673 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21674
21675         * m4/regex.m4: update and improve help for
21676         --without-included-regex.
21677
21678 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21679
21680         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21681         failure on missing include files.
21682
21683 2009-03-17  Eric Blake  <ebb9@byu.net>
21684
21685         doc: mention more functions added in cygwin 1.7.0
21686         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21687         addition.
21688         * doc/posix-functions/fwscanf.texi: Likewise.
21689         * doc/posix-functions/swprintf.texi: Likewise.
21690         * doc/posix-functions/swscanf.texi: Likewise.
21691         * doc/posix-functions/vfwprintf.texi: Likewise.
21692         * doc/posix-functions/vfwscanf.texi: Likewise.
21693         * doc/posix-functions/vswprintf.texi: Likewise.
21694         * doc/posix-functions/vswscanf.texi: Likewise.
21695         * doc/posix-functions/vwprintf.texi: Likewise.
21696         * doc/posix-functions/vwscanf.texi: Likewise.
21697         * doc/posix-functions/wcscasecmp.texi: Likewise.
21698         * doc/posix-functions/wcsdup.texi: Likewise.
21699         * doc/posix-functions/wcsftime.texi: Likewise.
21700         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21701         * doc/posix-functions/wprintf.texi: Likewise.
21702         * doc/posix-functions/wscanf.texi: Likewise.
21703         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21704
21705 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21706
21707         maint.mk: really add $(AM_MAKEFLAGS)
21708         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21709         was inadvertently omitted in the last commit.
21710         Spotted by Bruno Haible.
21711
21712         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21713         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21714         $(AM_MAKEFLAGS)' rather than plain `make'.
21715
21716         gnulib-tool: execute $MAKE not make
21717         * gnulib-tool: Default $MAKE to 'make'.
21718         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21719         than make.  Initialize $MAKE in the do-autobuild script.
21720
21721         gnulib-tool: use $MAKE not make in generated files
21722         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21723         make, in generated files.  Initialize $MAKE in the do-autobuild
21724         script.
21725
21726         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21727
21728         GNUmakefile: disable parallelism only for multiple, recursive targets
21729         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21730         additions in the Makefile.
21731         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21732         by Automake.
21733         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21734         are listed on the command line and at least one of them is
21735         listed in $(ALL_RECURSIVE_TARGETS).
21736
21737 2009-03-14  Bruno Haible  <bruno@clisp.org>
21738
21739         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21740         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21741         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21742         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21743         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21744         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21745         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21746         unistr/u8-uctomb.
21747         * modules/unistr/u8-strchr (Depends-on): Likewise.
21748         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21749         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21750         unistr/u16-uctomb.
21751         * modules/unistr/u16-strchr (Depends-on): Likewise.
21752         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21753
21754 2009-03-12  Bruno Haible  <bruno@clisp.org>
21755
21756         Work around select() bug on Interix 3.5.
21757         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21758         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21759         * m4/select.m4: New file.
21760         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21761         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21762         * modules/select (Files): Add m4/select.m4.
21763         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21764         * modules/nanosleep (Depends-on): Add select.
21765         * modules/poll (Depends-on): Likewise.
21766         * doc/posix-functions/select.texi: Mention the Interix bug.
21767         Reported by Markus Duft <mduft@gentoo.org>.
21768
21769         * lib/select.c: Renamed from lib/winsock-select.c.
21770         * modules/select (Files): Add lib/select.c, remove
21771         lib/winsock-select.c.
21772         (configure.ac): Update.
21773
21774 2009-03-12  Jim Meyering  <meyering@redhat.com>
21775
21776         avoid gcc warnings about unused macro definitions
21777         * lib/readtokens.c (STREQ): Remove unused definition.
21778         * lib/xmalloc.c (SIZE_MAX): Likewise.
21779         * lib/openat-die.c (N_): Likewise.
21780         * lib/mountlist.c (SIZE_MAX): Remove definition.
21781         Instead, include <stdint.h>.
21782         * lib/readutmp.c: Likewise.
21783         * modules/readutmp (Depends-on): Add stdint.
21784         * modules/mountlist (Depends-on): Add stdint.
21785         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21786
21787 2009-03-10  Bruno Haible  <bruno@clisp.org>
21788
21789         Tests for module 'mbmemcasecoll'.
21790         * modules/mbmemcasecoll-tests: New file.
21791         * tests/test-mbmemcasecoll1.sh: New file.
21792         * tests/test-mbmemcasecoll2.sh: New file.
21793         * tests/test-mbmemcasecoll3.sh: New file.
21794         * tests/test-mbmemcasecoll.c: New file.
21795
21796         New module 'mbmemcasecoll'.
21797         * lib/mbmemcasecoll.h: New file.
21798         * lib/mbmemcasecoll.c: New file.
21799         * modules/mbmemcasecoll: New file.
21800
21801         * tests/test-mbmemcasecmp.h: New file, extracted from
21802         tests/test-mbmemcasecmp.c.
21803         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21804         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21805         (main): Update.
21806         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21807
21808 2009-03-09  Bruno Haible  <bruno@clisp.org>
21809
21810         Tests for module 'mbmemcasecmp'.
21811         * modules/mbmemcasecmp-tests: New file.
21812         * tests/test-mbmemcasecmp1.sh: New file.
21813         * tests/test-mbmemcasecmp2.sh: New file.
21814         * tests/test-mbmemcasecmp3.sh: New file.
21815         * tests/test-mbmemcasecmp.c: New file.
21816
21817         New module 'mbmemcasecmp'.
21818         * lib/mbmemcasecmp.h: New file.
21819         * lib/mbmemcasecmp.c: New file.
21820         * modules/mbmemcasecmp: New file.
21821
21822 2009-03-09  Bruno Haible  <bruno@clisp.org>
21823
21824         Tests for module 'unicase/ulc-casecoll'.
21825         * modules/unicase/ulc-casecoll-tests: New file.
21826         * tests/unicase/test-ulc-casecoll1.sh: New file.
21827         * tests/unicase/test-ulc-casecoll2.sh: New file.
21828         * tests/unicase/test-ulc-casecoll.c: New file.
21829
21830         New module 'unicase/ulc-casecoll'.
21831         * lib/unicase.h (ulc_casecoll): New declaration.
21832         * lib/unicase/ulc-casecoll.c: New file.
21833         * modules/unicase/ulc-casecoll: New file.
21834
21835         New module 'unicase/ulc-casexfrm'.
21836         * lib/unicase.h (ulc_casexfrm): New declaration.
21837         * lib/unicase/ulc-casexfrm.c: New file.
21838         * modules/unicase/ulc-casexfrm: New file.
21839
21840 2009-03-09  Bruno Haible  <bruno@clisp.org>
21841
21842         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21843         invocations.
21844
21845         * m4/mbscasecmp.m4: Remove file.
21846         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21847         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21848
21849         * m4/mbscasestr.m4: Remove file.
21850         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21851         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21852
21853         * m4/mbschr.m4: Remove file.
21854         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21855         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21856
21857         * m4/mbscspn.m4: Remove file.
21858         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21859         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21860
21861         * m4/mbslen.m4: Remove file.
21862         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21863         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21864
21865         * m4/mbsncasecmp.m4: Remove file.
21866         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21867         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21868
21869         * m4/mbsnlen.m4: Remove file.
21870         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21871         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21872
21873         * m4/mbspbrk.m4: Remove file.
21874         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21875         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21876
21877         * m4/mbspcasecmp.m4: Remove file.
21878         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21879         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21880
21881         * m4/mbsrchr.m4: Remove file.
21882         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21883         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21884
21885         * m4/mbssep.m4: Remove file.
21886         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21887         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21888
21889         * m4/mbsspn.m4: Remove file.
21890         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21891         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21892
21893         * m4/mbsstr.m4: Remove file.
21894         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21895         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21896
21897         * m4/mbstok_r.m4: Remove file.
21898         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21899         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21900
21901         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21902
21903         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21904         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21905
21906         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21907
21908 2009-03-08  Bruno Haible  <bruno@clisp.org>
21909
21910         Tests for module 'unicase/ulc-casecmp'.
21911         * modules/unicase/ulc-casecmp-tests: New file.
21912         * tests/unicase/test-ulc-casecmp1.sh: New file.
21913         * tests/unicase/test-ulc-casecmp2.sh: New file.
21914         * tests/unicase/test-ulc-casecmp.c: New file.
21915
21916         New module 'unicase/ulc-casecmp'.
21917         * lib/unicase.h (ulc_casecmp): New declaration.
21918         * lib/unicase/ulc-casecmp.c: New file.
21919         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21920         'const SRC_UNIT *'.
21921         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21922         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21923         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21924         * modules/unicase/ulc-casecmp: New file.
21925
21926         Tests for module 'unicase/u32-is-cased'.
21927         * modules/unicase/u32-is-cased-tests: New file.
21928         * tests/unicase/test-u32-is-cased.c: New file.
21929
21930         Tests for module 'unicase/u16-is-cased'.
21931         * modules/unicase/u16-is-cased-tests: New file.
21932         * tests/unicase/test-u16-is-cased.c: New file.
21933
21934         Tests for module 'unicase/u8-is-cased'.
21935         * modules/unicase/u8-is-cased-tests: New file.
21936         * tests/unicase/test-u8-is-cased.c: New file.
21937         * tests/unicase/test-is-cased.h: New file.
21938
21939         New module 'unicase/u32-is-cased'.
21940         * lib/unicase/u32-is-cased.c: New file.
21941         * modules/unicase/u32-is-cased: New file.
21942
21943         New module 'unicase/u16-is-cased'.
21944         * lib/unicase/u16-is-cased.c: New file.
21945         * modules/unicase/u16-is-cased: New file.
21946
21947         New module 'unicase/u8-is-cased'.
21948         * lib/unicase/u8-is-cased.c: New file.
21949         * lib/unicase/u-is-cased.h: New file.
21950         * modules/unicase/u8-is-cased: New file.
21951
21952         Tests for module 'unicase/u32-is-casefolded'.
21953         * modules/unicase/u32-is-casefolded-tests: New file.
21954         * tests/unicase/test-u32-is-casefolded.c: New file.
21955
21956         Tests for module 'unicase/u16-is-casefolded'.
21957         * modules/unicase/u16-is-casefolded-tests: New file.
21958         * tests/unicase/test-u16-is-casefolded.c: New file.
21959
21960         Tests for module 'unicase/u8-is-casefolded'.
21961         * modules/unicase/u8-is-casefolded-tests: New file.
21962         * tests/unicase/test-u8-is-casefolded.c: New file.
21963         * tests/unicase/test-is-casefolded.h: New file.
21964
21965         New module 'unicase/u32-is-casefolded'.
21966         * lib/unicase/u32-is-casefolded.c: New file.
21967         * modules/unicase/u32-is-casefolded: New file.
21968
21969         New module 'unicase/u16-is-casefolded'.
21970         * lib/unicase/u16-is-casefolded.c: New file.
21971         * modules/unicase/u16-is-casefolded: New file.
21972
21973         New module 'unicase/u8-is-casefolded'.
21974         * lib/unicase/u8-is-casefolded.c: New file.
21975         * modules/unicase/u8-is-casefolded: New file.
21976
21977         Tests for module 'unicase/u32-is-titlecase'.
21978         * modules/unicase/u32-is-titlecase-tests: New file.
21979         * tests/unicase/test-u32-is-titlecase.c: New file.
21980
21981         Tests for module 'unicase/u16-is-titlecase'.
21982         * modules/unicase/u16-is-titlecase-tests: New file.
21983         * tests/unicase/test-u16-is-titlecase.c: New file.
21984
21985         Tests for module 'unicase/u8-is-titlecase'.
21986         * modules/unicase/u8-is-titlecase-tests: New file.
21987         * tests/unicase/test-u8-is-titlecase.c: New file.
21988         * tests/unicase/test-is-titlecase.h: New file.
21989
21990         New module 'unicase/u32-is-titlecase'.
21991         * lib/unicase/u32-is-titlecase.c: New file.
21992         * modules/unicase/u32-is-titlecase: New file.
21993
21994         New module 'unicase/u16-is-titlecase'.
21995         * lib/unicase/u16-is-titlecase.c: New file.
21996         * modules/unicase/u16-is-titlecase: New file.
21997
21998         New module 'unicase/u8-is-titlecase'.
21999         * lib/unicase/u8-is-titlecase.c: New file.
22000         * modules/unicase/u8-is-titlecase: New file.
22001
22002         Tests for module 'unicase/u32-is-lowercase'.
22003         * modules/unicase/u32-is-lowercase-tests: New file.
22004         * tests/unicase/test-u32-is-lowercase.c: New file.
22005
22006         Tests for module 'unicase/u16-is-lowercase'.
22007         * modules/unicase/u16-is-lowercase-tests: New file.
22008         * tests/unicase/test-u16-is-lowercase.c: New file.
22009
22010         Tests for module 'unicase/u8-is-lowercase'.
22011         * modules/unicase/u8-is-lowercase-tests: New file.
22012         * tests/unicase/test-u8-is-lowercase.c: New file.
22013         * tests/unicase/test-is-lowercase.h: New file.
22014
22015         New module 'unicase/u32-is-lowercase'.
22016         * lib/unicase/u32-is-lowercase.c: New file.
22017         * modules/unicase/u32-is-lowercase: New file.
22018
22019         New module 'unicase/u16-is-lowercase'.
22020         * lib/unicase/u16-is-lowercase.c: New file.
22021         * modules/unicase/u16-is-lowercase: New file.
22022
22023         New module 'unicase/u8-is-lowercase'.
22024         * lib/unicase/u8-is-lowercase.c: New file.
22025         * modules/unicase/u8-is-lowercase: New file.
22026
22027         Tests for module 'unicase/u32-is-uppercase'.
22028         * modules/unicase/u32-is-uppercase-tests: New file.
22029         * tests/unicase/test-u32-is-uppercase.c: New file.
22030
22031         Tests for module 'unicase/u16-is-uppercase'.
22032         * modules/unicase/u16-is-uppercase-tests: New file.
22033         * tests/unicase/test-u16-is-uppercase.c: New file.
22034
22035         Tests for module 'unicase/u8-is-uppercase'.
22036         * modules/unicase/u8-is-uppercase-tests: New file.
22037         * tests/unicase/test-u8-is-uppercase.c: New file.
22038         * tests/unicase/test-is-uppercase.h: New file.
22039
22040         New module 'unicase/u32-is-uppercase'.
22041         * lib/unicase/u32-is-uppercase.c: New file.
22042         * modules/unicase/u32-is-uppercase: New file.
22043
22044         New module 'unicase/u16-is-uppercase'.
22045         * lib/unicase/u16-is-uppercase.c: New file.
22046         * modules/unicase/u16-is-uppercase: New file.
22047
22048         New module 'unicase/u8-is-uppercase'.
22049         * lib/unicase/u8-is-uppercase.c: New file.
22050         * modules/unicase/u8-is-uppercase: New file.
22051
22052         New module 'unicase/u32-is-invariant'.
22053         * lib/unicase/u32-is-invariant.c: New file.
22054         * modules/unicase/u32-is-invariant: New file.
22055
22056         New module 'unicase/u16-is-invariant'.
22057         * lib/unicase/u16-is-invariant.c: New file.
22058         * modules/unicase/u16-is-invariant: New file.
22059
22060         New module 'unicase/u8-is-invariant'.
22061         * lib/unicase/u8-is-invariant.c: New file.
22062         * lib/unicase/invariant.h: New file.
22063         * lib/unicase/u-is-invariant.h: New file.
22064         * modules/unicase/u8-is-invariant: New file.
22065
22066         Tests for module 'unicase/u32-casecoll'.
22067         * modules/unicase/u32-casecoll-tests: New file.
22068         * tests/unicase/test-u32-casecoll.c: New file.
22069
22070         Tests for module 'unicase/u16-casecoll'.
22071         * modules/unicase/u16-casecoll-tests: New file.
22072         * tests/unicase/test-u16-casecoll.c: New file.
22073
22074         Tests for module 'unicase/u8-casecoll'.
22075         * modules/unicase/u8-casecoll-tests: New file.
22076         * tests/unicase/test-u8-casecoll.c: New file.
22077
22078         New module 'unicase/u32-casecoll'.
22079         * lib/unicase/u32-casecoll.c: New file.
22080         * modules/unicase/u32-casecoll: New file.
22081
22082         New module 'unicase/u16-casecoll'.
22083         * lib/unicase/u16-casecoll.c: New file.
22084         * modules/unicase/u16-casecoll: New file.
22085
22086         New module 'unicase/u8-casecoll'.
22087         * lib/unicase/u8-casecoll.c: New file.
22088         * lib/unicase/u-casecoll.h: New file.
22089         * modules/unicase/u8-casecoll: New file.
22090
22091         New module 'unicase/u32-casexfrm'.
22092         * lib/unicase/u32-casexfrm.c: New file.
22093         * modules/unicase/u32-casexfrm: New file.
22094
22095         New module 'unicase/u16-casexfrm'.
22096         * lib/unicase/u16-casexfrm.c: New file.
22097         * modules/unicase/u16-casexfrm: New file.
22098
22099         New module 'unicase/u8-casexfrm'.
22100         * lib/unicase/u8-casexfrm.c: New file.
22101         * lib/unicase/u-casexfrm.h: New file.
22102         * modules/unicase/u8-casexfrm: New file.
22103
22104         Tests for module 'unicase/u32-casecmp'.
22105         * modules/unicase/u32-casecmp-tests: New file.
22106         * tests/unicase/test-u32-casecmp.c: New file.
22107
22108         Tests for module 'unicase/u16-casecmp'.
22109         * modules/unicase/u16-casecmp-tests: New file.
22110         * tests/unicase/test-u16-casecmp.c: New file.
22111
22112         Tests for module 'unicase/u8-casecmp'.
22113         * modules/unicase/u8-casecmp-tests: New file.
22114         * tests/unicase/test-u8-casecmp.c: New file.
22115         * tests/unicase/test-casecmp.h: New file.
22116
22117         New module 'unicase/u32-casecmp'.
22118         * lib/unicase/u32-casecmp.c: New file.
22119         * modules/unicase/u32-casecmp: New file.
22120
22121         New module 'unicase/u16-casecmp'.
22122         * lib/unicase/u16-casecmp.c: New file.
22123         * modules/unicase/u16-casecmp: New file.
22124
22125         New module 'unicase/u8-casecmp'.
22126         * lib/unicase/u8-casecmp.c: New file.
22127         * lib/unicase/u-casecmp.h: New file.
22128         * modules/unicase/u8-casecmp: New file.
22129
22130         Tests for module 'unicase/u32-casefold'.
22131         * modules/unicase/u32-casefold-tests: New file.
22132         * tests/unicase/test-u32-casefold.c: New file.
22133
22134         Tests for module 'unicase/u16-casefold'.
22135         * modules/unicase/u16-casefold-tests: New file.
22136         * tests/unicase/test-u16-casefold.c: New file.
22137
22138         Tests for module 'unicase/u8-casefold'.
22139         * modules/unicase/u8-casefold-tests: New file.
22140         * tests/unicase/test-u8-casefold.c: New file.
22141
22142         New module 'unicase/u32-casefold'.
22143         * lib/unicase/u32-casefold.c: New file.
22144         * modules/unicase/u32-casefold: New file.
22145
22146         New module 'unicase/u16-casefold'.
22147         * lib/unicase/u16-casefold.c: New file.
22148         * modules/unicase/u16-casefold: New file.
22149
22150         New module 'unicase/u8-casefold'.
22151         * lib/unicase/u8-casefold.c: New file.
22152         * lib/unicase/u-casefold.h: New file.
22153         * modules/unicase/u8-casefold: New file.
22154
22155         New module 'unicase/tocasefold'.
22156         * lib/unicase/casefold.h: New file.
22157         * lib/unicase/tocasefold.c: New file.
22158         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22159         * modules/unicase/tocasefold: New file.
22160
22161         Tests for module 'unicase/u32-totitle'.
22162         * modules/unicase/u32-totitle-tests: New file.
22163         * tests/unicase/test-u32-totitle.c: New file.
22164
22165         Tests for module 'unicase/u16-totitle'.
22166         * modules/unicase/u16-totitle-tests: New file.
22167         * tests/unicase/test-u16-totitle.c: New file.
22168
22169         Tests for module 'unicase/u8-totitle'.
22170         * modules/unicase/u8-totitle-tests: New file.
22171         * tests/unicase/test-u8-totitle.c: New file.
22172
22173         New module 'unicase/u32-totitle'.
22174         * lib/unicase/u32-totitle.c: New file.
22175         * modules/unicase/u32-totitle: New file.
22176
22177         New module 'unicase/u16-totitle'.
22178         * lib/unicase/u16-totitle.c: New file.
22179         * modules/unicase/u16-totitle: New file.
22180
22181         New module 'unicase/u8-totitle'.
22182         * lib/unicase/u8-totitle.c: New file.
22183         * lib/unicase/u-totitle.h: New file.
22184         * modules/unicase/u8-totitle: New file.
22185
22186         Tests for module 'unicase/u32-tolower'.
22187         * modules/unicase/u32-tolower-tests: New file.
22188         * tests/unicase/test-u32-tolower.c: New file.
22189
22190         Tests for module 'unicase/u16-tolower'.
22191         * modules/unicase/u16-tolower-tests: New file.
22192         * tests/unicase/test-u16-tolower.c: New file.
22193
22194         Tests for module 'unicase/u8-tolower'.
22195         * modules/unicase/u8-tolower-tests: New file.
22196         * tests/unicase/test-u8-tolower.c: New file.
22197
22198         New module 'unicase/u32-tolower'.
22199         * lib/unicase/u32-tolower.c: New file.
22200         * modules/unicase/u32-tolower: New file.
22201
22202         New module 'unicase/u16-tolower'.
22203         * lib/unicase/u16-tolower.c: New file.
22204         * modules/unicase/u16-tolower: New file.
22205
22206         New module 'unicase/u8-tolower'.
22207         * lib/unicase/u8-tolower.c: New file.
22208         * modules/unicase/u8-tolower: New file.
22209
22210         Tests for module 'unicase/u32-toupper'.
22211         * modules/unicase/u32-toupper-tests: New file.
22212         * tests/unicase/test-u32-toupper.c: New file.
22213
22214         Tests for module 'unicase/u16-toupper'.
22215         * modules/unicase/u16-toupper-tests: New file.
22216         * tests/unicase/test-u16-toupper.c: New file.
22217
22218         Tests for module 'unicase/u8-toupper'.
22219         * modules/unicase/u8-toupper-tests: New file.
22220         * tests/unicase/test-u8-toupper.c: New file.
22221
22222         New module 'unicase/u32-toupper'.
22223         * lib/unicase/u32-toupper.c: New file.
22224         * modules/unicase/u32-toupper: New file.
22225
22226         New module 'unicase/u16-toupper'.
22227         * lib/unicase/u16-toupper.c: New file.
22228         * modules/unicase/u16-toupper: New file.
22229
22230         New module 'unicase/u8-toupper'.
22231         * lib/unicase/u8-toupper.c: New file.
22232         * modules/unicase/u8-toupper: New file.
22233
22234         New module 'unicase/u32-casemap'.
22235         * lib/unicase/u32-casemap.c: New file.
22236         * modules/unicase/u32-casemap: New file.
22237
22238         New module 'unicase/u16-casemap'.
22239         * lib/unicase/u16-casemap.c: New file.
22240         * modules/unicase/u16-casemap: New file.
22241
22242         New module 'unicase/u8-casemap'.
22243         * lib/unicase/unicasemap.h: New file.
22244         * lib/unicase/u8-casemap.c: New file.
22245         * lib/unicase/u-casemap.h: New file.
22246         * modules/unicase/u8-casemap: New file.
22247
22248         New module 'unicase/special-casing'.
22249         * lib/unicase/special-casing.h: New file.
22250         * lib/unicase/special-casing.c: New file.
22251         * lib/unicase/special-casing-table.gperf: New file, generated by
22252         gen-uni-tables.c.
22253         * modules/unicase/special-casing: New file.
22254
22255         Tests for module 'unicase/locale-language'.
22256         * modules/unicase/locale-language-tests: New file.
22257         * tests/unicase/test-locale-language.sh: New file.
22258         * tests/unicase/test-locale-language.c: New file.
22259
22260         New module 'unicase/locale-language'.
22261         * lib/unicase/locale-language.c: New file.
22262         * lib/unicase/locale-languages.gperf: New file.
22263         * modules/unicase/locale-language: New file.
22264
22265         Generate more tables for case conversion and case folding.
22266         * lib/gen-uni-tables.c (SCC_*): New enum items.
22267         (struct special_casing_rule): New type.
22268         (casing_rules, num_casing_rules, allocated_casing_rules): New
22269         variables.
22270         (add_casing_rule, fill_casing_rules): New functions.
22271         (struct casefold_rule): New type.
22272         (casefolding_rules, num_casefolding_rules,
22273         allocated_casefolding_rules): New variables.
22274         (fill_casefolding_rules): New function.
22275         (unicode_casefold): New variable.
22276         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22277         sort_casing_rules, output_casing_rules): New functions.
22278         (main): Accept to more arguments: SpecialCasing.txt and
22279         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22280         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22281         Output mapping for casefolding.
22282
22283         * lib/unicase.h: Include stdbool.h, uninorm.h.
22284         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22285         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22286         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22287         arguments.
22288         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22289         resultp arguments.
22290         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22291         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22292         resultp arguments.
22293         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22294         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22295         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22296         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22297         declarations.
22298         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22299
22300 2009-03-08  Bruno Haible  <bruno@clisp.org>
22301
22302         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22303         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22304         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22305         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22306
22307 2009-03-07  Bruno Haible  <bruno@clisp.org>
22308
22309         Adjust u*_normcmp, u*_normcoll API.
22310         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22311         u16_normcoll, u32_normcoll): Change failure conventions.
22312         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22313         errno and return -1.
22314         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22315
22316 2009-03-07  Bruno Haible  <bruno@clisp.org>
22317
22318         Tests for module 'uninorm/u32-normcoll'.
22319         * modules/uninorm/u32-normcoll-tests: New file.
22320         * tests/uninorm/test-u32-normcoll.c: New file.
22321
22322         Tests for module 'uninorm/u16-normcoll'.
22323         * modules/uninorm/u16-normcoll-tests: New file.
22324         * tests/uninorm/test-u16-normcoll.c: New file.
22325
22326         Tests for module 'uninorm/u8-normcoll'.
22327         * modules/uninorm/u8-normcoll-tests: New file.
22328         * tests/uninorm/test-u8-normcoll.c: New file.
22329
22330 2009-03-07  Bruno Haible  <bruno@clisp.org>
22331
22332         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22333         tests/uninorm/test-u32-normcmp.c.
22334         * tests/uninorm/test-u32-normcmp.c: Include it.
22335         (test_nonascii): New function, extracted from main. Add some more
22336         tests.
22337         (main): Invoke test_ascii and test_nonascii.
22338         * modules/uninorm/u32-normcmp-tests (Files): Add
22339         tests/uninorm/test-u32-normcmp.h.
22340         (Depends-on): Remove uninorm/u32-normcmp.
22341
22342         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22343         tests/uninorm/test-u16-normcmp.c.
22344         * tests/uninorm/test-u16-normcmp.c: Include it.
22345         (test_nonascii): New function, extracted from main. Add some more
22346         tests.
22347         (main): Invoke test_ascii and test_nonascii.
22348         * modules/uninorm/u16-normcmp-tests (Files): Add
22349         tests/uninorm/test-u16-normcmp.h.
22350         (Depends-on): Remove uninorm/u16-normcmp.
22351
22352         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22353         tests/uninorm/test-u8-normcmp.c.
22354         * tests/uninorm/test-u8-normcmp.c: Include it.
22355         (test_nonascii): New function, extracted from main. Add some more
22356         tests.
22357         (main): Invoke test_ascii and test_nonascii.
22358         * modules/uninorm/u8-normcmp-tests (Files): Add
22359         tests/uninorm/test-u8-normcmp.h.
22360         (Depends-on): Remove uninorm/u8-normcmp.
22361
22362 2009-03-07  Bruno Haible  <bruno@clisp.org>
22363
22364         New module 'uninorm/u32-normcoll'.
22365         * lib/uninorm/u32-normcoll.c: New file.
22366         * modules/uninorm/u32-normcoll: New file.
22367
22368         New module 'uninorm/u16-normcoll'.
22369         * lib/uninorm/u16-normcoll.c: New file.
22370         * modules/uninorm/u16-normcoll: New file.
22371
22372         New module 'uninorm/u8-normcoll'.
22373         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22374         declarations.
22375         * lib/uninorm/u8-normcoll.c: New file.
22376         * lib/uninorm/u-normcoll.h: New file.
22377         * modules/uninorm/u8-normcoll: New file.
22378
22379         New module 'uninorm/u32-normxfrm'.
22380         * lib/uninorm/u32-normxfrm.c: New file.
22381         * modules/uninorm/u32-normxfrm: New file.
22382
22383         New module 'uninorm/u16-normxfrm'.
22384         * lib/uninorm/u16-normxfrm.c: New file.
22385         * modules/uninorm/u16-normxfrm: New file.
22386
22387         New module 'uninorm/u8-normxfrm'.
22388         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22389         declarations.
22390         * lib/uninorm/u8-normxfrm.c: New file.
22391         * lib/uninorm/u-normxfrm.h: New file.
22392         * modules/uninorm/u8-normxfrm: New file.
22393
22394 2009-03-07  Bruno Haible  <bruno@clisp.org>
22395
22396         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22397         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22398         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22399
22400 2009-03-07  Bruno Haible  <bruno@clisp.org>
22401
22402         New module 'memxfrm'.
22403         * lib/memxfrm.h: New file.
22404         * lib/memxfrm.c: New file.
22405         * modules/memxfrm: New file.
22406
22407 2009-03-07  Bruno Haible  <bruno@clisp.org>
22408
22409         New module 'memcmp2'.
22410         * lib/memcmp2.h: New file.
22411         * lib/memcmp2.c: New file.
22412         * modules/memcmp2: New file.
22413
22414 2009-03-07  Bruno Haible  <bruno@clisp.org>
22415
22416         Tests for module 'uninorm/decomposing-form'.
22417         * modules/uninorm/decomposing-form-tests: New file.
22418         * tests/uninorm/test-decomposing-form.c: New file.
22419
22420         New module 'uninorm/decomposing-form'.
22421         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22422         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22423         Add 'decomposing_variant' field.
22424         * lib/uninorm/decomposing-form.c: New file.
22425         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22426         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22427         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22428         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22429         * modules/uninorm/decomposing-form: New file.
22430         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22431         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22432
22433 2009-03-07  Bruno Haible  <bruno@clisp.org>
22434
22435         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22436         strings.
22437
22438 2009-03-06  Bruno Haible  <bruno@clisp.org>
22439
22440         Tests for module 'uninorm/u32-normcmp'.
22441         * tests/uninorm/test-u32-normcmp.c: New file.
22442         * modules/uninorm/u32-normcmp-tests: New file.
22443
22444         Tests for module 'uninorm/u16-normcmp'.
22445         * tests/uninorm/test-u16-normcmp.c: New file.
22446         * modules/uninorm/u16-normcmp-tests: New file.
22447
22448         Tests for module 'uninorm/u8-normcmp'.
22449         * tests/uninorm/test-u8-normcmp.c: New file.
22450         * modules/uninorm/u8-normcmp-tests: New file.
22451
22452         New module 'uninorm/u32-normcmp'.
22453         * lib/uninorm/u32-normcmp.c: New file.
22454         * modules/uninorm/u32-normcmp: New file.
22455
22456         New module 'uninorm/u16-normcmp'.
22457         * lib/uninorm/u16-normcmp.c: New file.
22458         * modules/uninorm/u16-normcmp: New file.
22459
22460         New module 'uninorm/u8-normcmp'.
22461         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22462         declarations.
22463         * lib/uninorm/u8-normcmp.c: New file.
22464         * lib/uninorm/u-normcmp.h: New file.
22465         * modules/uninorm/u8-normcmp: New file.
22466
22467 2009-03-06  Bruno Haible  <bruno@clisp.org>
22468
22469         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22470         Reported by Eric Blake.
22471
22472 2009-03-06  Eric Blake  <ebb9@byu.net>
22473             Bruno Haible  <bruno@clisp.org>
22474
22475         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22476         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22477         condition.
22478         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22479         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22480         condition.
22481         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22482
22483 2009-03-06  Eric Blake  <ebb9@byu.net>
22484
22485         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22486         to avoid compiler warnings.
22487         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22488
22489 2009-03-05  Bruno Haible  <bruno@clisp.org>
22490
22491         * tests/test-ftell.c (main): Disable test beyond end of file on
22492         FreeMiNT.
22493         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22494
22495 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22496
22497         * lib/filevercmp.c: Move hidden files up in ordering.
22498         * tests/test-filevercmp.c: Add tests for hidden files.
22499
22500 2009-03-04  Bruno Haible  <bruno@clisp.org>
22501
22502         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22503         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22504         AM_CFLAGS.
22505         Reported by Simon Josefsson.
22506
22507 2009-03-03  Bruno Haible  <bruno@clisp.org>
22508
22509         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22510         Reported by Simon Josefsson.
22511
22512         * doc/ld-version-script.texi: Update node reference.
22513
22514 2009-03-03  Bruno Haible  <bruno@clisp.org>
22515
22516         * modules/visibility (License): Change to 'unlimited'.
22517         Suggested by Simon Josefsson.
22518
22519 2009-03-03  Jim Meyering  <meyering@redhat.com>
22520
22521         unlinkdir: cannot_unlink_dir may modify process state
22522         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22523         it's neither thread-safe nor appropriate for use in a library.
22524
22525 2009-03-03  Eric Blake  <ebb9@byu.net>
22526
22527         test-closein: silence test under Darwin
22528         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22529         care if it dies from EPIPE or EBADF.
22530
22531 2009-03-03  Bruno Haible  <bruno@clisp.org>
22532
22533         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22534         earlier.
22535         * doc/visibility.texi: Fix @node and @section.
22536
22537 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22538
22539         * doc/gnulib.texi: Link to sections for ld version script and
22540         visibility.
22541         * doc/visibility.texi: Add @node and @section.
22542         * modules/ld-version-script: New module.
22543         * m4/ld-version-script.m4: New file.
22544         * doc/ld-version-script.texi: New file.
22545
22546 2009-03-02  David Lutterkort  <lutter@redhat.com>
22547
22548         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22550
22551 2009-03-02  Bruno Haible  <bruno@clisp.org>
22552
22553         * doc/visibility.texi: Mention libtool's -export-symbols option.
22554
22555 2009-03-02  Jim Meyering  <meyering@redhat.com>
22556
22557         announce-gen: new option: --no-print-checksums
22558         * build-aux/announce-gen (usage): Describe it.
22559         (print_checksums): Print a newline here, not in the [*] footnote.
22560         (main): Honor it.
22561
22562 2009-03-01  Bruno Haible  <bruno@clisp.org>
22563
22564         Use socklen_t in the native Windows replacements prototypes.
22565         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22566         instead of 'int'.
22567         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22568         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22569         * modules/getsockopt (Depends-on): Add socklen.
22570         * modules/setsockopt (Depends-on): Add socklen.
22571
22572 2009-03-01  Bruno Haible  <bruno@clisp.org>
22573
22574         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22575         least 4.2.
22576
22577 2009-03-01  Eric Blake  <ebb9@byu.net>
22578             Bruno Haible  <bruno@clisp.org>
22579
22580         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22581         error messages.
22582         * lib/wait-process.c (wait_subprocess): Omit error message about
22583         deadly signal sent to the child of termsigp != NULL.
22584
22585 2009-03-01  Eric Blake  <ebb9@byu.net>
22586
22587         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22588
22589 2009-03-01  Bruno Haible  <bruno@clisp.org>
22590
22591         Avoid a gcc warning.
22592         * tests/test-sched.c (b): Make global.
22593         Reported by Eric Blake.
22594
22595 2009-01-19  Martin Lambers  <marlam@marlam.de>
22596
22597         Provide POSIX semantics for socket timeout options on W32.
22598         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22599         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22600         * modules/setsockopt: Depend on sys_time module for struct timeval.
22601         * modules/getsockopt: Depend on sys_time module for struct timeval.
22602
22603 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22604
22605         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22606         __USE_GNU, for consistency with netdb.in.h.
22607         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22608
22609 2009-03-01  Bruno Haible  <bruno@clisp.org>
22610
22611         More support for FreeMiNT.
22612         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22613         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22614
22615 2009-03-01  Bruno Haible  <bruno@clisp.org>
22616
22617         More support for FreeMiNT.
22618         * lib/fpurge.c (fpurge): Correct last commit.
22619         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22620
22621 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22622
22623         Fix unportable awk script in vc-list-files.
22624         * build-aux/vc-list-files: In the replacement awk script, use
22625         substr with a second argument of 1, not zero.
22626         Report by Simon Josefsson.
22627
22628 2009-02-28  Bruno Haible  <bruno@clisp.org>
22629
22630         More support for FreeMiNT.
22631         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22632         to FreeMiNT today.
22633         * lib/fwriting.c (fwriting): Likewise.
22634         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22635
22636 2009-02-28  Bruno Haible  <bruno@clisp.org>
22637
22638         * tests/test-freadseek.c (main): Disable test beyond end of file on
22639         FreeMiNT.
22640         * tests/test-ftello.c (main): Likewise.
22641         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22642
22643 2009-02-28  Bruno Haible  <bruno@clisp.org>
22644
22645         Add tentative support for FreeMiNT.
22646         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22647         * lib/fpurge.c (fpurge): Likewise.
22648         * lib/freadable.c (freadable): Likewise.
22649         * lib/freading.c (freading): Likewise.
22650         * lib/freadptr.c (freadptr): Likewise.
22651         * lib/freadseek.c (freadptrinc): Likewise.
22652         * lib/fseeko.c (rpl_fseeko): Likewise.
22653         * lib/fseterr.c (fseterr): Likewise.
22654         * lib/fwritable.c (fwritable): Likewise.
22655         * lib/fwriting.c (fwriting): Likewise.
22656         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22657         Hourihane.
22658         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22659
22660 2009-02-28  Bruno Haible  <bruno@clisp.org>
22661
22662         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22663         SIGCHLD.
22664         Reported by Jim Meyering.
22665
22666 2009-02-28  Bruno Haible  <bruno@clisp.org>
22667
22668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22669         Mention the results of these tests on various platforms.
22670         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22671         order.
22672         * doc/posix-functions/printf.texi: Likewise.
22673         * doc/posix-functions/snprintf.texi: Likewise.
22674         * doc/posix-functions/sprintf.texi: Likewise.
22675         * doc/posix-functions/vfprintf.texi: Likewise.
22676         * doc/posix-functions/vprintf.texi: Likewise.
22677         * doc/posix-functions/vsnprintf.texi: Likewise.
22678         * doc/posix-functions/vsprintf.texi: Likewise.
22679         * doc/glibc-functions/obstack_printf.texi: Likewise.
22680         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22681
22682 2009-02-28  Bruno Haible  <bruno@clisp.org>
22683
22684         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22685         Reported by Loïc Minier <lool@dooz.org>.
22686
22687 2009-02-27  Bruno Haible  <bruno@clisp.org>
22688
22689         * gnulib-tool (func_import): Make the sed expression used to create the
22690         sed script for updating the .gitignore file POSIX compliant.
22691         Reported by Eric Blake.
22692
22693 2009-02-27  Bruno Haible  <bruno@clisp.org>
22694
22695         * gnulib-tool (sed): Don't alias as "sed --posix".
22696         Reported by Eric Blake.
22697
22698 2009-02-27  Bruno Haible  <bruno@clisp.org>
22699
22700         Avoid test link errors.
22701         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22702         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22703         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22704         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22706
22707 2009-02-27  Bruno Haible  <bruno@clisp.org>
22708
22709         Avoid spurious "(cached)" in configure output.
22710         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22711         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22712         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22713         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22714         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22715         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22716         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22717         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22718         Reported by Eric Blake.
22719
22720 2009-02-27  Eric Blake  <ebb9@byu.net>
22721
22722         printf: fix regression in previous patch
22723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22724
22725 2009-02-27  Bruno Haible  <bruno@clisp.org>
22726
22727         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22728         value.
22729         * lib/stdint.in.h: Likewise.
22730         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22731
22732 2009-02-27  Eric Blake  <ebb9@byu.net>
22733
22734         doc: mention more functions added in cygwin 1.7.0
22735         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22736         addition.
22737         * doc/posix-functions/open_wmemstream.texi: Likewise.
22738         * doc/posix-functions/wcsnlen.texi: Likewise.
22739         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22740         * doc/posix-functions/wcstod.texi: Likewise.
22741         * doc/posix-functions/wcstof.texi: Likewise.
22742         * doc/posix-functions/wcstoimax.texi: Likewise.
22743         * doc/posix-functions/wcstok.texi: Likewise.
22744         * doc/posix-functions/wcstoumax.texi: Likewise.
22745
22746         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22748         * doc/posix-functions/fprintf.texi: Update.
22749         * doc/posix-functions/printf.texi: Update.
22750         * doc/posix-functions/snprintf.texi: Update.
22751         * doc/posix-functions/sprintf.texi: Update.
22752         * doc/posix-functions/vfprintf.texi: Update.
22753         * doc/posix-functions/vprintf.texi: Update.
22754         * doc/posix-functions/vsnprintf.texi: Update.
22755         * doc/posix-functions/vsprintf.texi: Update.
22756         * doc/glibc-functions/obstack_printf.texi: Update.
22757         * doc/glibc-functions/obstack_vprintf.texi: Update.
22758
22759 2009-02-26  Eric Blake  <ebb9@byu.net>
22760
22761         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22762         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22763         compilation bug by using runtime conversion.
22764         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22765         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22766         * modules/ceill-tests (Files): Use nan.h.
22767         * modules/floorl-tests (Files): Likewise.
22768         * modules/frexpl-tests (Files): Likewise.
22769         * modules/isnanl-tests (Files): Likewise.
22770         * modules/ldexpl-tests (Files): Likewise.
22771         * modules/roundl-tests (Files): Likewise.
22772         * modules/truncl-tests (Files): Likewise.
22773         * tests/test-ceill.c (main): Use a working NaN.
22774         * tests/test-floorl.c (main): Likewise.
22775         * tests/test-frexpl.c (main): Likewise.
22776         * tests/test-isnan.c (test_long_double): Likewise.
22777         * tests/test-isnanl.h (main): Likewise.
22778         * tests/test-ldexpl.h (main): Likewise.
22779         * tests/test-roundl.h (main): Likewise.
22780         * tests/test-truncl.h (main): Likewise.
22781         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22782
22783 2009-02-26  Eric Blake  <ebb9@byu.net>
22784             Bruno Haible  <bruno@clisp.org>
22785
22786         Work around a *printf bug with %ls on Solaris.
22787         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22788         precision is specified, sprintf stops converting the wide string
22789         argument when the number of bytes that have been produced by this
22790         conversion equals or exceeds the precision.
22791         * doc/posix-functions/fprintf.texi: Update.
22792         * doc/posix-functions/printf.texi: Update.
22793         * doc/posix-functions/snprintf.texi: Update.
22794         * doc/posix-functions/sprintf.texi: Update.
22795         * doc/posix-functions/vfprintf.texi: Update.
22796         * doc/posix-functions/vprintf.texi: Update.
22797         * doc/posix-functions/vsnprintf.texi: Update.
22798         * doc/posix-functions/vsprintf.texi: Update.
22799         * doc/glibc-functions/obstack_printf.texi: Update.
22800         * doc/glibc-functions/obstack_vprintf.texi: Update.
22801
22802 2009-02-26  Eric Blake  <ebb9@byu.net>
22803
22804         stdlib: favor compiler check of random.h
22805         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22806         to avoid an ObjC random.h installed by Swarm.
22807
22808 2009-02-26  Bruno Haible  <bruno@clisp.org>
22809
22810         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22811         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22812         Reported by Gary V. Vaughan <gary@gnu.org>.
22813
22814 2009-02-26  Bruno Haible  <bruno@clisp.org>
22815
22816         Fix *printf behaviour regarding the %ls directive.
22817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22818         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22819         NEED_PRINTF_DIRECTIVE_LS.
22820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22821         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22823         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22824         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22825         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22826         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22831         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22835         * doc/posix-functions/fprintf.texi: Update.
22836         * doc/posix-functions/printf.texi: Update.
22837         * doc/posix-functions/snprintf.texi: Update.
22838         * doc/posix-functions/sprintf.texi: Update.
22839         * doc/posix-functions/vfprintf.texi: Update.
22840         * doc/posix-functions/vprintf.texi: Update.
22841         * doc/posix-functions/vsnprintf.texi: Update.
22842         * doc/posix-functions/vsprintf.texi: Update.
22843         * doc/glibc-functions/obstack_printf.texi: Update.
22844         * doc/glibc-functions/obstack_vprintf.texi: Update.
22845         Reported by Eric Blake.
22846
22847 2009-02-25  Bruno Haible  <bruno@clisp.org>
22848
22849         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22850         with known value.
22851         Reported by Gary V. Vaughan <gary@gnu.org>.
22852
22853 2009-02-25  Bruno Haible  <bruno@clisp.org>
22854
22855         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22856         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22857         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22858         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22859         Reported by Gary V. Vaughan <gary@gnu.org>.
22860
22861 2009-02-25  Bruno Haible  <bruno@clisp.org>
22862
22863         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22864         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22865         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22866         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22867         Reported by Gary V. Vaughan <gary@gnu.org>.
22868
22869 2009-02-25  Eric Blake  <ebb9@byu.net>
22870
22871         tests: skip fseek/ftell tests if ungetc is broken
22872         * m4/ungetc.m4: New file.
22873         * modules/fseek-tests: Split test, so ungetc dependency is
22874         separate from rest of test.
22875         * modules/fseeko-tests: Likewise.
22876         * modules/ftell-tests: Likewise.
22877         * modules/ftello-tests: Likewise.
22878         * tests/test-fseek.c (main): Isolate ungetc dependency.
22879         * tests/test-fseeko.c (main): Likewise.
22880         * tests/test-ftell.c (main): Likewise.
22881         * tests/test-ftello.c (main): Likewise.
22882         * tests/test-fseek2.sh: New file.
22883         * tests/test-fseeko2.sh: Likewise.
22884         * tests/test-ftell2.sh: Likewise.
22885         * tests/test-ftello2.sh: Likewise.
22886
22887 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
22888
22889         test-getaddrinfo: fix usage of skip return code 77
22890         * tests/test-gettaddrinfo.c: Return skip code 77 only
22891         for first occurance of skip (4x77 is not 77)
22892
22893 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22894
22895         strtod: avoid C99 decl-after-statement
22896         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22897
22898 2009-02-24  Eric Blake  <ebb9@byu.net>
22899
22900         strtod: detect HP-UX 11.31 bug
22901         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22902         Reported by Gary V. Vaughan.
22903
22904 2009-02-23  Bruno Haible  <bruno@clisp.org>
22905
22906         Fix invalid read past end of memory block.
22907         * lib/vasnprintf.c (DCHAR_SET): Define.
22908         (local_wcslen): Define only when needed.
22909         (local_strnlen, local_wcsnlen): New functions.
22910         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22911         directives that involve a conversion ourselves.
22912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22913         wcsnlen, mbrtowc, wcrtomb.
22914         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22915         * tests/test-vasprintf-posix.c (test_function): Likewise.
22916         * tests/test-snprintf-posix.h (test_function): Likewise.
22917         * tests/test-sprintf-posix.h (test_function): Likewise.
22918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22919
22920 2009-02-22  Bruno Haible  <bruno@clisp.org>
22921
22922         Implement new clarified decomposition of Hangul syllables.
22923         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22924         of type LTV, return only a pairwise decomposition.
22925         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22926         Likewise.
22927         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22928         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22929         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22930
22931 2009-02-22  Bruno Haible  <bruno@clisp.org>
22932
22933         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22934         zero-length results and shrink excess allocated memory.
22935         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22936         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22937         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22938         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22939         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22940         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22941         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22942         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22943         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22944         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22945         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22946         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22947
22948 2009-02-21  Bruno Haible  <bruno@clisp.org>
22949
22950         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22951         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22952         spaces after a period. Put a space between a macro name and its
22953         argument list. Trivial rewordings.
22954         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22955         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22956         (main): Return 0 explicitly.
22957
22958 2009-02-21  Bruno Haible  <bruno@clisp.org>
22959
22960         Tests for module 'uninorm/filter'.
22961         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22962         * modules/uninorm/filter-tests: New file.
22963
22964         New module 'uninorm/filter'.
22965         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22966         uninorm_filter_flush, uninorm_filter_free): New declarations.
22967         * lib/uninorm/uninorm-filter.c: New file.
22968         * modules/uninorm/filter: New file.
22969
22970 2009-02-21  Bruno Haible  <bruno@clisp.org>
22971
22972         Tests for module 'uninorm/nfkc'.
22973         * tests/uninorm/test-nfkc.c: New file.
22974         * tests/uninorm/test-u8-nfkc.c: New file.
22975         * tests/uninorm/test-u16-nfkc.c: New file.
22976         * tests/uninorm/test-u32-nfkc.c: New file.
22977         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22978         * tests/uninorm/test-u32-nfkc-big.c: New file.
22979         * modules/uninorm/nfkc-tests: New file.
22980
22981         New module 'uninorm/nfkc'.
22982         * lib/uninorm/nfkc.c: New file.
22983         * modules/uninorm/nfkc: New file.
22984
22985         Tests for module 'uninorm/nfkd'.
22986         * tests/uninorm/test-nfkd.c: New file.
22987         * tests/uninorm/test-u8-nfkd.c: New file.
22988         * tests/uninorm/test-u16-nfkd.c: New file.
22989         * tests/uninorm/test-u32-nfkd.c: New file.
22990         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22991         * tests/uninorm/test-u32-nfkd-big.c: New file.
22992         * modules/uninorm/nfkd-tests: New file.
22993
22994         New module 'uninorm/nfkd'.
22995         * lib/uninorm/nfkd.c: New file.
22996         * modules/uninorm/nfkd: New file.
22997
22998         Tests for module 'uninorm/nfc'.
22999         * tests/uninorm/test-nfc.c: New file.
23000         * tests/uninorm/test-u8-nfc.c: New file.
23001         * tests/uninorm/test-u16-nfc.c: New file.
23002         * tests/uninorm/test-u32-nfc.c: New file.
23003         * tests/uninorm/test-u32-nfc-big.sh: New file.
23004         * tests/uninorm/test-u32-nfc-big.c: New file.
23005         * modules/uninorm/nfc-tests: New file.
23006
23007         New module 'uninorm/nfc'.
23008         * lib/uninorm/nfc.c: New file.
23009         * modules/uninorm/nfc: New file.
23010
23011         Tests for module 'uninorm/nfd'.
23012         * tests/uninorm/test-nfd.c: New file.
23013         * tests/uninorm/test-u8-nfd.c: New file.
23014         * tests/uninorm/test-u16-nfd.c: New file.
23015         * tests/uninorm/test-u32-nfd.c: New file.
23016         * tests/uninorm/test-u32-nfd-big.sh: New file.
23017         * tests/uninorm/test-u32-nfd-big.c: New file.
23018         * tests/uninorm/test-u32-normalize-big.h: New file.
23019         * tests/uninorm/test-u32-normalize-big.c: New file.
23020         * tests/uninorm/NormalizationTest.txt: New file, created from
23021         Unicode 5.1.0 NormalizationTest.txt.
23022         * modules/uninorm/nfd-tests: New file.
23023
23024         New module 'uninorm/nfd'.
23025         * lib/uninorm/nfd.c: New file.
23026         * modules/uninorm/nfd: New file.
23027
23028         New module 'uninorm/u32-normalize'.
23029         * lib/uninorm/u32-normalize.c: New file.
23030         * modules/uninorm/u32-normalize: New file.
23031
23032         New module 'uninorm/u16-normalize'.
23033         * lib/uninorm/u16-normalize.c: New file.
23034         * modules/uninorm/u16-normalize: New file.
23035
23036         New module 'uninorm/u8-normalize'.
23037         * lib/uninorm/u8-normalize.c: New file.
23038         * lib/uninorm/normalize-internal.h: New file.
23039         * lib/uninorm/u-normalize-internal.h: New file.
23040         * modules/uninorm/u8-normalize: New file.
23041
23042         New module 'uninorm/decompose-internal'.
23043         * lib/uninorm/decompose-internal.c: New file.
23044         * modules/uninorm/decompose-internal: New file.
23045
23046         Tests for module 'uninorm/composition'.
23047         * tests/uninorm/test-composition.c: New file.
23048         * modules/uninorm/composition-tests: New file.
23049
23050         New module 'uninorm/composition'.
23051         * lib/uninorm/composition.c: New file.
23052         * lib/uninorm/composition-table.gperf: New file, generated by
23053         gen-uni-tables.
23054         * modules/uninorm/composition: New file.
23055
23056         Tests for module 'uninorm/compat-decomposition'.
23057         * tests/uninorm/test-compat-decomposition.c: New file.
23058         * modules/uninorm/compat-decomposition-tests: New file.
23059
23060         New module 'uninorm/compat-decomposition'.
23061         * lib/uninorm/decompose-internal.h: New file.
23062         * lib/uninorm/compat-decomposition.c: New file.
23063         * modules/uninorm/compat-decomposition: New file.
23064
23065         Tests for module 'uninorm/canonical-decomposition'.
23066         * tests/uninorm/test-canonical-decomposition.c: New file.
23067         * modules/uninorm/canonical-decomposition-tests: New file.
23068
23069         New module 'uninorm/canonical-decomposition'.
23070         * lib/uninorm/canonical-decomposition.c: New file.
23071         * modules/uninorm/canonical-decomposition: New file.
23072
23073         Tests for module 'uninorm/decomposition'.
23074         * tests/uninorm/test-decomposition.c: New file.
23075         * modules/uninorm/decomposition-tests: New file.
23076
23077         New module 'uninorm/decomposition'.
23078         * lib/uninorm/decomposition.c: New file.
23079         * modules/uninorm/decomposition: New file.
23080
23081         New module 'uninorm/decomposition-table'.
23082         * lib/uninorm/decomposition-table.h: New file.
23083         * lib/uninorm/decomposition-table.c: New file.
23084         * lib/uninorm/decomposition-table1.h: New file, generated by
23085         gen-uni-tables.
23086         * lib/uninorm/decomposition-table2.h: New file, generated by
23087         gen-uni-tables.
23088         * modules/uninorm/decomposition-table: New file.
23089
23090         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23091         (UC_DECOMP_*): New enumeration items.
23092         (get_decomposition): New function.
23093         (struct decomp_table): New type.
23094         (output_decomposition, output_decomposition_tables): New functions.
23095         (unicode_composition_exclusions): New variable.
23096         (fill_composition_exclusions, debug_output_composition_tables): New
23097         functions.
23098         (main): Accept one more argument. Invoke fill_composition_exclusions.
23099         Output decomposition and composition tables.
23100
23101         New module 'uninorm/base'.
23102         * lib/uninorm.h: New file.
23103         * lib/unictype.h: Update comment.
23104         * modules/uninorm/base: New file.
23105
23106 2009-02-21  David Lutterkort  <lutter@redhat.com>
23107
23108         Tests for module 'safe-alloc'.
23109         * tests/test-safe-alloc.c: New file.
23110         * modules/safe-alloc-tests: New file.
23111
23112         New module 'safe-alloc'.
23113         * lib/safe-alloc.h: New file.
23114         * lib/safe-alloc.c: New file.
23115         * m4/safe-alloc.m4: New file.
23116         * modules/safe-alloc: New file.
23117         * doc/safe-alloc.texi: New file.
23118         * doc/gnulib.texi: Include it.
23119         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23120         safe-alloc.
23121
23122 2009-02-18  Bruno Haible  <bruno@clisp.org>
23123
23124         Fix link error on non-glibc systems.
23125         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23126         variable.
23127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23128
23129 2009-02-18  Jim Meyering  <meyering@redhat.com>
23130
23131         fts: avoid used-uninitialized error due to recent change
23132         * lib/fts.c (fts_read): Guard uses of the new member,
23133         parent->fts_n_dirs_remaining, since it's not relevant for
23134         the parent of a directory specified on the command-line.
23135
23136 2009-02-17  James Youngman  <jay@gnu.org>
23137             Bruno Haible  <bruno@clisp.org>
23138
23139         * m4/include_next.m4: Reformulate comment.
23140
23141 2009-02-16  Jim Meyering  <meyering@redhat.com>
23142
23143         fts: add #if guards so that the fts_lgpl module still builds
23144         * lib/fts.c: Guard just-added hash-table-using parts with
23145         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23146         Reported by Simon Josefsson.
23147
23148 2009-02-15  Bruno Haible  <bruno@clisp.org>
23149
23150         * modules/array-mergesort-tests: New file.
23151         * tests/test-array-mergesort.c: New file.
23152
23153         New module 'array-mergesort'.
23154         * modules/array-mergesort: New file.
23155         * lib/array-mergesort.h: New file.
23156
23157 2009-02-15  Bruno Haible  <bruno@clisp.org>
23158
23159         Fix 2009-02-07 commit.
23160         * lib/gen-uni-tables.c (output_predicate, output_category,
23161         output_combclass, output_bidi_category, output_decimal_digit,
23162         output_digit, output_numeric, output_mirror, output_scripts,
23163         output_ident_category, output_simple_mapping): Fix format directives.
23164         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23165
23166 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23167
23168         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23169         fixes are available from IBM.
23170
23171 2009-02-13  Jim Meyering  <meyering@redhat.com>
23172
23173         fts: arrange not to stat non-directories in more cases
23174         This makes GNU find (when it doesn't need to stat each file)
23175         *much* more efficient at traversing reiserfs file systems.
23176         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23177         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23178         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23179         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23180         (leaf_optimization_applies): New function.
23181         (LCO_hash, LCO_compare): New helper functions.
23182         (link_count_optimize_ok): New function.
23183         (fts_stat): Initialize new member (if dir).
23184         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23185         we've just stat'ed a directory.  Skip the stat call when possible.
23186         ---
23187         Note this AFS-related exchange:
23188         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23189         and note find's pioctl call in find/fstype.c.
23190         But that is necessary only if you want to enable the
23191         optimization for AFS, and for now, I don't.
23192
23193         fts: move a function definition "up" (no semantic change)
23194         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23195         "up" to precede upcoming use of a related function.
23196
23197 2009-02-11  Jim Meyering  <meyering@redhat.com>
23198
23199         fts: correct internal computation of nlinks (optimization-related)
23200         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23201         whether the current entry is a directory, so don't test it.
23202
23203 2009-02-10  Bruno Haible  <bruno@clisp.org>
23204
23205         Tests for module 'uniwbrk/ulc-wordbreaks'.
23206         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23207         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23208         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23209
23210         Tests for module 'uniwbrk/u32-wordbreaks'.
23211         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23212         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23213
23214         Tests for module 'uniwbrk/u16-wordbreaks'.
23215         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23216         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23217
23218         Tests for module 'uniwbrk/u8-wordbreaks'.
23219         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23220         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23221
23222 2009-02-10  Bruno Haible  <bruno@clisp.org>
23223
23224         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23225         property.
23226         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23227         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23228         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23229
23230 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23231
23232         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23233         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23234
23235 2009-02-10  Bruno Haible  <bruno@clisp.org>
23236
23237         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23238         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23239         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23240         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23241         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23242         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23243
23244 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23245
23246         * lib/sockets.h (gl_fd_to_handle): New function.
23247
23248         * tests/test-sockets.c: Call gl_fd_to_handle.
23249
23250 2009-02-09  Bruno Haible  <bruno@clisp.org>
23251
23252         * doc/havelib.texi: Document the conventions on bi-arch systems.
23253
23254 2009-02-08  Bruno Haible  <bruno@clisp.org>
23255
23256         Document the AC_LIB_LINKFLAGS macro.
23257         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23258         * doc/gnulib.texi: Include it.
23259
23260 2009-02-08  Bruno Haible  <bruno@clisp.org>
23261
23262         Fix wrong order of sections, compared to TOC.
23263         * doc/gnulib.texi: Include relocatable-maint.texi after the
23264         "Regular expressions" node, not before.
23265
23266 2009-02-08  Bruno Haible  <bruno@clisp.org>
23267
23268         Tests for module 'unicase/totitle'.
23269         * modules/unicase/totitle-tests: New file.
23270
23271         Tests for module 'unicase/tolower'.
23272         * modules/unicase/tolower-tests: New file.
23273
23274         Tests for module 'unicase/toupper'.
23275         * modules/unicase/toupper-tests: New file.
23276         * tests/unicase/test-mapping-part1.h: New file.
23277         * tests/unicase/test-mapping-part2.h: New file.
23278
23279         New module 'unicase/totitle'.
23280         * modules/unicase/totitle: New file.
23281         * lib/unicase/totitle.c: New file.
23282
23283         New module 'unicase/tolower'.
23284         * modules/unicase/tolower: New file.
23285         * lib/unicase/tolower.c: New file.
23286
23287         New module 'unicase/toupper'.
23288         * modules/unicase/toupper: New file.
23289         * lib/unicase/toupper.c: New file.
23290         * lib/unicase/simple-mapping.h: New file.
23291
23292         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23293         (mapping_table): New structure.
23294         (output_simple_mapping): New function.
23295         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23296         * modules/gen-uni-tables (Description): Update.
23297         * lib/unicase/toupper.h: New file, automatically generated by
23298         gen-uni-tables.
23299         * lib/unicase/tolower.h: New file, automatically generated by
23300         gen-uni-tables.
23301         * lib/unicase/totitle.h: New file, automatically generated by
23302         gen-uni-tables.
23303         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23304         gen-uni-tables.
23305         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23306         gen-uni-tables.
23307         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23308         gen-uni-tables.
23309
23310         New module 'unicase/base'.
23311         * modules/unicase/base: New file.
23312         * lib/unicase.h: New file.
23313
23314 2009-02-08  Bruno Haible  <bruno@clisp.org>
23315
23316         New module 'uniwbrk/ulc-wordbreaks'.
23317         * modules/uniwbrk/ulc-wordbreaks: New file.
23318         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23319
23320         New module 'uniwbrk/u32-wordbreaks'.
23321         * modules/uniwbrk/u32-wordbreaks: New file.
23322         * lib/uniwbrk/u32-wordbreaks.c: New file.
23323
23324         New module 'uniwbrk/u16-wordbreaks'.
23325         * modules/uniwbrk/u16-wordbreaks: New file.
23326         * lib/uniwbrk/u16-wordbreaks.c: New file.
23327
23328         New module 'uniwbrk/u8-wordbreaks'.
23329         * modules/uniwbrk/u8-wordbreaks: New file.
23330         * lib/uniwbrk/u8-wordbreaks.c: New file.
23331         * lib/uniwbrk/u-wordbreaks.h: New file.
23332
23333         New module 'uniwbrk/table'.
23334         * modules/uniwbrk/table: New file.
23335         * lib/uniwbrk/wbrktable.h: New file.
23336         * lib/uniwbrk/wbrktable.c: New file.
23337
23338         New module 'uniwbrk/wordbreak-property'.
23339         * modules/uniwbrk/wordbreak-property: New file.
23340         * lib/uniwbrk/wordbreak-property.c: New file.
23341
23342         * lib/gen-uni-tables.c (WBP_*): New enum items.
23343         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23344         (unicode_org_wbp): New variable.
23345         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23346         New functions.
23347         (wbp_table): New structure.
23348         (output_wbp, output_wbrk_tables): New functions.
23349         (main): Accept additional argument. Invoke fill_org_wbp,
23350         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23351         output_wbrk_tables.
23352         * modules/gen-uni-tables (Description): Update.
23353         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23354         gen-uni-tables.
23355
23356         New module 'uniwbrk/base'.
23357         * modules/uniwbrk/base: New file.
23358         * lib/uniwbrk.h: New file.
23359
23360 2009-02-08  Bruno Haible  <bruno@clisp.org>
23361
23362         Update to Unicode 5.1.0.
23363         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23364         U+2185..U+2188.
23365         (is_property_default_ignorable_code_point): Don't include characters
23366         of category Cc or Cs and not-a-characters.
23367         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23368         U+0D79, U+109E, U+109F, U+A60C.
23369         * lib/unictype/bidi_of.h: Regenerated.
23370         * lib/unictype/blocks.h: Regenerated.
23371         * lib/unictype/categ_C.h: Regenerated.
23372         * lib/unictype/categ_Cf.h: Regenerated.
23373         * lib/unictype/categ_Cn.h: Regenerated.
23374         * lib/unictype/categ_L.h: Regenerated.
23375         * lib/unictype/categ_Ll.h: Regenerated.
23376         * lib/unictype/categ_Lm.h: Regenerated.
23377         * lib/unictype/categ_Lo.h: Regenerated.
23378         * lib/unictype/categ_Lu.h: Regenerated.
23379         * lib/unictype/categ_M.h: Regenerated.
23380         * lib/unictype/categ_Mc.h: Regenerated.
23381         * lib/unictype/categ_Me.h: Regenerated.
23382         * lib/unictype/categ_Mn.h: Regenerated.
23383         * lib/unictype/categ_N.h: Regenerated.
23384         * lib/unictype/categ_Nd.h: Regenerated.
23385         * lib/unictype/categ_Nl.h: Regenerated.
23386         * lib/unictype/categ_No.h: Regenerated.
23387         * lib/unictype/categ_P.h: Regenerated.
23388         * lib/unictype/categ_Pd.h: Regenerated.
23389         * lib/unictype/categ_Pe.h: Regenerated.
23390         * lib/unictype/categ_Pf.h: Regenerated.
23391         * lib/unictype/categ_Pi.h: Regenerated.
23392         * lib/unictype/categ_Po.h: Regenerated.
23393         * lib/unictype/categ_Ps.h: Regenerated.
23394         * lib/unictype/categ_S.h: Regenerated.
23395         * lib/unictype/categ_Sk.h: Regenerated.
23396         * lib/unictype/categ_Sm.h: Regenerated.
23397         * lib/unictype/categ_So.h: Regenerated.
23398         * lib/unictype/categ_of.h: Regenerated.
23399         * lib/unictype/combining.h: Regenerated.
23400         * lib/unictype/ctype_alnum.h: Regenerated.
23401         * lib/unictype/ctype_alpha.h: Regenerated.
23402         * lib/unictype/ctype_graph.h: Regenerated.
23403         * lib/unictype/ctype_lower.h: Regenerated.
23404         * lib/unictype/ctype_print.h: Regenerated.
23405         * lib/unictype/ctype_punct.h: Regenerated.
23406         * lib/unictype/ctype_upper.h: Regenerated.
23407         * lib/unictype/decdigit.h: Regenerated.
23408         * lib/unictype/digit.h: Regenerated.
23409         * lib/unictype/mirror.h: Regenerated.
23410         * lib/unictype/numeric.h: Regenerated.
23411         * lib/unictype/pr_alphabetic.h: Regenerated.
23412         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23413         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23414         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23415         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23416         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23417         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23418         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23419         * lib/unictype/pr_combining.h: Regenerated.
23420         * lib/unictype/pr_dash.h: Regenerated.
23421         * lib/unictype/pr_decimal_digit.h: Regenerated.
23422         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23423         * lib/unictype/pr_deprecated.h: Regenerated.
23424         * lib/unictype/pr_diacritic.h: Regenerated.
23425         * lib/unictype/pr_extender.h: Regenerated.
23426         * lib/unictype/pr_format_control.h: Regenerated.
23427         * lib/unictype/pr_grapheme_base.h: Regenerated.
23428         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23429         * lib/unictype/pr_grapheme_link.h: Regenerated.
23430         * lib/unictype/pr_id_continue.h: Regenerated.
23431         * lib/unictype/pr_id_start.h: Regenerated.
23432         * lib/unictype/pr_ideographic.h: Regenerated.
23433         * lib/unictype/pr_ignorable_control.h: Regenerated.
23434         * lib/unictype/pr_lowercase.h: Regenerated.
23435         * lib/unictype/pr_math.h: Regenerated.
23436         * lib/unictype/pr_numeric.h: Regenerated.
23437         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23438         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23439         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23440         * lib/unictype/pr_other_id_continue.h: Regenerated.
23441         * lib/unictype/pr_other_lowercase.h: Regenerated.
23442         * lib/unictype/pr_other_math.h: Regenerated.
23443         * lib/unictype/pr_punctuation.h: Regenerated.
23444         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23445         * lib/unictype/pr_soft_dotted.h: Regenerated.
23446         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23447         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23448         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23449         * lib/unictype/pr_uppercase.h: Regenerated.
23450         * lib/unictype/pr_xid_continue.h: Regenerated.
23451         * lib/unictype/pr_xid_start.h: Regenerated.
23452         * lib/unictype/pr_zero_width.h: Regenerated.
23453         * lib/unictype/scripts.h: Regenerated.
23454         * lib/unictype/scripts_byname.gperf: Regenerated.
23455         * lib/unictype/sy_java_ident.h: Regenerated.
23456         * lib/unilbrk/lbrkprop1.h: Regenerated.
23457         * lib/unilbrk/lbrkprop2.h: Regenerated.
23458         * tests/unictype/test-categ_C.c: Regenerated.
23459         * tests/unictype/test-categ_Cf.c: Regenerated.
23460         * tests/unictype/test-categ_Cn.c: Regenerated.
23461         * tests/unictype/test-categ_L.c: Regenerated.
23462         * tests/unictype/test-categ_Ll.c: Regenerated.
23463         * tests/unictype/test-categ_Lm.c: Regenerated.
23464         * tests/unictype/test-categ_Lo.c: Regenerated.
23465         * tests/unictype/test-categ_Lu.c: Regenerated.
23466         * tests/unictype/test-categ_M.c: Regenerated.
23467         * tests/unictype/test-categ_Mc.c: Regenerated.
23468         * tests/unictype/test-categ_Me.c: Regenerated.
23469         * tests/unictype/test-categ_Mn.c: Regenerated.
23470         * tests/unictype/test-categ_N.c: Regenerated.
23471         * tests/unictype/test-categ_Nd.c: Regenerated.
23472         * tests/unictype/test-categ_Nl.c: Regenerated.
23473         * tests/unictype/test-categ_No.c: Regenerated.
23474         * tests/unictype/test-categ_P.c: Regenerated.
23475         * tests/unictype/test-categ_Pd.c: Regenerated.
23476         * tests/unictype/test-categ_Pe.c: Regenerated.
23477         * tests/unictype/test-categ_Pf.c: Regenerated.
23478         * tests/unictype/test-categ_Pi.c: Regenerated.
23479         * tests/unictype/test-categ_Po.c: Regenerated.
23480         * tests/unictype/test-categ_Ps.c: Regenerated.
23481         * tests/unictype/test-categ_S.c: Regenerated.
23482         * tests/unictype/test-categ_Sk.c: Regenerated.
23483         * tests/unictype/test-categ_Sm.c: Regenerated.
23484         * tests/unictype/test-categ_So.c: Regenerated.
23485         * tests/unictype/test-ctype_alnum.c: Regenerated.
23486         * tests/unictype/test-ctype_alpha.c: Regenerated.
23487         * tests/unictype/test-ctype_graph.c: Regenerated.
23488         * tests/unictype/test-ctype_lower.c: Regenerated.
23489         * tests/unictype/test-ctype_print.c: Regenerated.
23490         * tests/unictype/test-ctype_punct.c: Regenerated.
23491         * tests/unictype/test-ctype_upper.c: Regenerated.
23492         * tests/unictype/test-decdigit.h: Regenerated.
23493         * tests/unictype/test-digit.h: Regenerated.
23494         * tests/unictype/test-numeric.h: Regenerated.
23495         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23496         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23497         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23498         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23499         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23500         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23501         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23502         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23503         * tests/unictype/test-pr_combining.c: Regenerated.
23504         * tests/unictype/test-pr_dash.c: Regenerated.
23505         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23506         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23507         * tests/unictype/test-pr_deprecated.c: Regenerated.
23508         * tests/unictype/test-pr_diacritic.c: Regenerated.
23509         * tests/unictype/test-pr_extender.c: Regenerated.
23510         * tests/unictype/test-pr_format_control.c: Regenerated.
23511         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23512         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23513         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23514         * tests/unictype/test-pr_id_continue.c: Regenerated.
23515         * tests/unictype/test-pr_id_start.c: Regenerated.
23516         * tests/unictype/test-pr_ideographic.c: Regenerated.
23517         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23518         * tests/unictype/test-pr_lowercase.c: Regenerated.
23519         * tests/unictype/test-pr_math.c: Regenerated.
23520         * tests/unictype/test-pr_numeric.c: Regenerated.
23521         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23522         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23523         Regenerated.
23524         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23525         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23526         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23527         * tests/unictype/test-pr_other_math.c: Regenerated.
23528         * tests/unictype/test-pr_punctuation.c: Regenerated.
23529         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23530         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23531         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23532         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23533         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23534         * tests/unictype/test-pr_uppercase.c: Regenerated.
23535         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23536         * tests/unictype/test-pr_xid_start.c: Regenerated.
23537         * tests/unictype/test-pr_zero_width.c: Regenerated.
23538
23539         Update to Unicode 5.1.0.
23540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23541         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23542         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23543         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23544         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23545         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23546         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23547         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23548         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23549         (nonspacing_table_ind): Update.
23550         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23551
23552         Update to Unicode 5.1.0.
23553         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23554         code transform.
23555         * lib/uniname/uniname.c (unicode_character_name,
23556         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23557         * lib/uniname/uninames.h: Regenerated.
23558         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23559
23560 2009-02-07  Bruno Haible  <bruno@clisp.org>
23561
23562         Merge gen-ctype and gen-lbrk into a single program.
23563         * lib/gen-uni-tables.c: New file, incorporating
23564         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23565         Add directory prefixes to the names of the generated files.
23566         * lib/unictype/gen-ctype.c: Remove file.
23567         * lib/unilbrk/gen-lbrk.c: Remove file.
23568         * modules/gen-uni-tables: New file.
23569         * modules/unictype/gen-ctype: Remove file.
23570         * modules/unilbrk/gen-lbrk: Remove file.
23571
23572 2009-02-07  Bruno Haible  <bruno@clisp.org>
23573
23574         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23575
23576         New module 'unistr/u32-strcoll'.
23577         * modules/unistr/u32-strcoll: New file.
23578         * lib/unistr/u32-strcoll.c: New file.
23579
23580         New module 'unistr/u16-strcoll'.
23581         * modules/unistr/u16-strcoll: New file.
23582         * lib/unistr/u16-strcoll.c: New file.
23583
23584         New module 'unistr/u8-strcoll'.
23585         * modules/unistr/u8-strcoll: New file.
23586         * lib/unistr/u8-strcoll.c: New file.
23587         * lib/unistr/u-strcoll.h: New file.
23588
23589 2009-02-07  Bruno Haible  <bruno@clisp.org>
23590
23591         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23592         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23593         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23594         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23595         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23596         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23597
23598 2009-02-07  Bruno Haible  <bruno@clisp.org>
23599
23600         Make 64-bit clean.
23601         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23602         output_combclass, output_bidi_category, output_decimal_digit,
23603         output_digit, output_numeric, output_mirror, output_scripts,
23604         output_ident_category): Use proper width specifier in format strings.
23605
23606 2009-02-07  Bruno Haible  <bruno@clisp.org>
23607
23608         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23609         failure behaviour.
23610
23611 2009-02-07  Jim Meyering  <meyering@redhat.com>
23612
23613         regex: avoid compilation failure with upcoming gcc-4.4
23614         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23615         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23616         "... error: integer overflow in preprocessor expression".
23617
23618 2009-02-05  Ben Pfaff  <blp@gnu.org>
23619
23620         Fix link errors on Windows when close module is used.
23621         * modules/close: Add $(LIB_CLOSE) to Link section.
23622         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23623         $(LIB_CLOSE) on Windows.
23624
23625 2009-02-05  Jim Meyering  <meyering@redhat.com>
23626
23627         still avoid unused-parameter warnings, but do it cleanly
23628         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23629         (get_fs_usage): Cast to void instead.
23630         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23631         (dev_from_mount_options, read_file_system_list): Cast to void.
23632         Prompted by Bruno Haible.
23633
23634 2009-02-04  Jim Meyering  <meyering@redhat.com>
23635
23636         fsusage.c: correct copyright year
23637         * lib/fsusage.c: Reflect year in which the change is pushed into
23638
23639         avoid misc. warnings
23640         * lib/fsusage.c (UNUSED_PARAM): Define.
23641         (get_fs_usage): Mark parameter "disk" as unused.
23642         * lib/getugroups.c (getgrent): Use "void" in prototype.
23643         * lib/mountlist.c: Mark unused parameters.
23644         (read_file_system_list): Declare a local with "const".
23645         * lib/nanosleep.c (getnow): Declare static.
23646         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23647
23648         dirfd: set errno upon failure
23649         * lib/dirfd.c: Include <errno.h>.
23650         Set errno to ENOTSUP when returning -1.
23651         * modules/dirfd (Depends-on): Add errno.
23652         Suggested by John Kodis <kodis@comcast.net>.
23653
23654 2009-02-01  Bruno Haible  <bruno@clisp.org>
23655
23656         Don't assume sizeof (long) >= sizeof (void *).
23657         * lib/memcmp.c: Include stdint.h.
23658         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23659         srcp2 to 'const byte *'.
23660         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23661         types to uintptr_t.
23662         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23663         * modules/memcmp (Depends-on): Add stdint.
23664         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23665
23666 2009-01-30  Eric Blake  <ebb9@byu.net>
23667
23668         fix more require-before-expand issues
23669         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23670         expand, AC_PROG_AWK.
23671         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23672
23673 2009-01-28  Eric Blake  <ebb9@byu.net>
23674
23675         version-etc: use consistent URL formatting
23676         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23677         Improve formatting.  Use fputs for string without %.
23678
23679 2009-01-28  Jim Meyering  <meyering@redhat.com>
23680
23681         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23682         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23683         "underquoted definition of NAME" from autoconf-2.59.
23684
23685 2009-01-28  Bruno Haible  <bruno@clisp.org>
23686
23687         * doc/gnulib.texi: Add "Obsolete modules" to index.
23688
23689 2009-01-28  Jim Meyering  <meyering@redhat.com>
23690
23691         useless-if-before-free: recognize more variants
23692         * build-aux/useless-if-before-free: Also recognize e.g.,
23693         if (NULL != p) free (p);
23694
23695 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23696
23697         test-getaddrinfo: skip (don't fail) this test when there's no network
23698         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23699         on the presumption that it means you lack network access.
23700
23701 2009-01-26  Jim Meyering  <meyering@redhat.com>
23702
23703         fflush: avoid warnings on modern systems
23704         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23705         pos and result, into scopes where they're used.
23706
23707 2009-01-26  Eric Blake  <ebb9@byu.net>
23708
23709         Silence warning reintroduced by recent extensions patch.
23710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23711         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23712         autoconf.
23713
23714         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23715         * m4/00gnulib.m4: New file.
23716         * gnulib-tool (func_get_filelist): Always use it.
23717         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23718         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23719
23720 2009-01-25  Bruno Haible  <bruno@clisp.org>
23721
23722         Make test-quotearg work on MacOS X and AIX.
23723         * tests/test-quotearg.sh: New file.
23724         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23725         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23726         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23727         include <libintl.h>.
23728         (fake_locale): Remove variable.
23729         (gettext, dgettext, dcgettext): Remove functions.
23730         (main): Instead of setting a fake locale, set a real locale. Call
23731         textdomain and bindtextdomain.
23732         * modules/quotearg-tests (Files): Add the new files.
23733         (Depends-on): Add gettext, setenv, unsetenv.
23734         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23735         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23736         Augment TESTS_ENVIRONMENT.
23737
23738 2009-01-25  Bruno Haible  <bruno@clisp.org>
23739
23740         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23741         fr_FR.ISO8859-1 locale on MacOS X.
23742         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23743         ja_JP.eucJP locale on MacOS X.
23744         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23745         zh_CN.GB18030 locale on MacOS X.
23746
23747 2009-01-25  Bruno Haible  <bruno@clisp.org>
23748
23749         Avoid link errors on MacOS X 10.3.
23750         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23751         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23752
23753 2009-01-25  Bruno Haible  <bruno@clisp.org>
23754
23755         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23756         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23757         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23758         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23759         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23760         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23761         posix_spawnattr_init, posix_spawnattr_setsigmask,
23762         posix_spawnattr_setflags, posix_spawnattr_destroy.
23763
23764         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23765         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23766         * modules/execute (Files): Remove m4/posix_spawn.m4.
23767         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23768         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23769         posix_spawnattr_init, posix_spawnattr_setsigmask,
23770         posix_spawnattr_setflags, posix_spawnattr_destroy.
23771
23772 2009-01-25  Bruno Haible  <bruno@clisp.org>
23773
23774         * lib/glthread/threadlib.c: Include <stdlib.h>.
23775
23776 2009-01-25  Bruno Haible  <bruno@clisp.org>
23777
23778         * lib/glthread/threadlib.c (dummy): New declaration.
23779
23780 2009-01-25  Bruno Haible  <bruno@clisp.org>
23781
23782         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23783         multibyte characters also for the GB18030 encoding. Don't crash when
23784         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23785
23786 2009-01-25  Bruno Haible  <bruno@clisp.org>
23787
23788         Avoid redefining 'struct random_data' on OSF/1 5.1.
23789         * lib/stdlib.in.h: Include <random.h> if it exists.
23790         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23791         HAVE_RANDOM_H. Include <random.h> when testing whether
23792         'struct random_data' exists.
23793         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23794
23795 2009-01-25  Bruno Haible  <bruno@clisp.org>
23796
23797         Don't install charset.alias on MacOS X >= 10.3.
23798         * lib/localcharset.c (DARWIN7): New macro.
23799         (get_charset_aliases): Hardcode the result for Darwin7.
23800         * modules/localcharset (install-exec-local): Don't install
23801         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23802
23803 2009-01-25  Bruno Haible  <bruno@clisp.org>
23804
23805         Don't install charset.alias on mingw and Cygwin.
23806         * modules/localcharset (install-exec-local): Don't install
23807         charset.alias on mingw and Cygwin, if the file does not yet exist.
23808         The result for these platforms is hardcoded in localcharset.c.
23809
23810 2009-01-25  Bruno Haible  <bruno@clisp.org>
23811
23812         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23814         before requiring AC_USE_SYSTEM_EXTENSIONS.
23815
23816 2009-01-25  Jim Meyering  <meyering@redhat.com>
23817
23818         c-strtod: avoid warnings
23819         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23820         "assignment discards qualifiers from pointer target type" warnings.
23821
23822 2009-01-24  Bruno Haible  <bruno@clisp.org>
23823
23824         Add support for non-UTF-8 locales on MacOS X.
23825         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23826         canonical encodings. For Darwin 7 and newer, don't map traditional
23827         encodings to UTF-8.
23828         Reported by Vincent Lefevre <vincent@vinc17.org>
23829         at <http://savannah.gnu.org/bugs/?25235>.
23830
23831 2009-01-24  Bruno Haible  <bruno@clisp.org>
23832
23833         * doc/gnulib.texi (Obsolete modules): New section.
23834         Reported by Mike Frysinger <vapier@gentoo.org>.
23835
23836 2009-01-24  Bruno Haible  <bruno@clisp.org>
23837
23838         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23839         (%.dvi): New rule.
23840
23841 2009-01-24  Bruno Haible  <bruno@clisp.org>
23842
23843         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23844         Reported by Eric Blake.
23845
23846 2009-01-24  Bruno Haible  <bruno@clisp.org>
23847
23848         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23849         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23850         Reported by Gary V. Vaughan <gary@gnu.org>.
23851
23852 2009-01-24  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23855
23856 2009-01-23  Bruno Haible  <bruno@clisp.org>
23857
23858         Make c-strtod, c-strtold usable in libraries.
23859         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23860         (C_STRTOD): Call strdup instead of xstrdup.
23861         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23862         * modules/c-strtold (Depends-on): Likewise.
23863         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23864         * NEWS: Mention the change.
23865         Reported by Michael Gold <mgold@ncf.ca>.
23866
23867 2009-01-23  Jim Meyering  <meyering@redhat.com>
23868
23869         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23870         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23871         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23872
23873 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23874
23875         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23876         GNU CoreUtils.
23877         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23878         * modules/version-etc (Description): Update.
23879
23880 2009-01-22  Bruno Haible  <bruno@clisp.org>
23881
23882         Cache the C locale object.
23883         * lib/c-strtod.c (c_locale_cache): New variable.
23884         (c_locale): New function.
23885         (C_STRTOD): Use it, and don't call freelocale.
23886         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23887         Suggested by Paolo Bonzini.
23888
23889 2009-01-21  Bruno Haible  <bruno@clisp.org>
23890
23891         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23892         conditions other than overflow.
23893
23894 2009-01-21  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/c-strtod.c: Include errno.h.
23897         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23898         value from STRTOD_L and STRTOD.
23899
23900 2009-01-21  Bruno Haible  <bruno@clisp.org>
23901         and Jim Meyering  <meyering@redhat.com>
23902
23903         nanosleep: skip configure test (fail it) for apple universal builds
23904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23905         universal builds, assume that nanosleep does not work.
23906         * modules/nanosleep (Depends-on): Add multiarch.
23907
23908         mktime: skip configure test (fail it) for apple universal builds
23909         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23910         universal builds, assume that mktime does not work.
23911         * modules/mktime (Depends-on): Add multiarch.
23912
23913 2009-01-21  Eric Blake  <ebb9@byu.net>
23914
23915         multiarch: avoid expand-before-require warning
23916         * modules/multiarch (configure.ac): Require, rather than expand,
23917         gl_MULTIARCH.
23918         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23919         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23920         enforce that all clients require it.  Partial reversion of
23921         2008-12-29 patch.
23922
23923         error: avoid expand-before-require warning
23924         * modules/errno (configure.ac): Require, rather than expand,
23925         gl_HEADER_ERRNO_H.
23926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23927         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23928         enforce that all clients require it.
23929
23930         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23931         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23932         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23933         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23934
23935 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23936
23937         Revert:
23938         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23939
23940         regex: do not depend on obsolete modules.
23941         * modules/regex: Remove memcmp and memmove.
23942
23943 2009-01-20  Bruno Haible  <bruno@clisp.org>
23944
23945         Make the 'link' module link on Windows NT 4.
23946         * lib/link.c (_WIN32_WINNT): Don't define.
23947         (CreateHardLinkFuncType): New type.
23948         (CreateHardLinkFunc, initialized): New variables.
23949         (initialize): New function.
23950         (link): Invoke CreateHardLink indirectly through the function pointer.
23951
23952 2009-01-20  Bruno Haible  <bruno@clisp.org>
23953
23954         Fix compilation failure on mingw.
23955         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23956
23957 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23958
23959         * doc/c-strtod.texi: Mention a couple of restrictions.
23960
23961 2009-01-20  Jim Meyering  <meyering@redhat.com>
23962
23963         gettimeofday: move more declarations out of functions
23964         * lib/gettimeofday.c: Move extern declarations of tzset and
23965         gmtime out of containing functions.  Prompted by Bruno Haible.
23966
23967 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23968
23969         regex: do not depend on obsolete modules.
23970         * modules/regex: Remove memcmp and memmove.
23971
23972 2009-01-19  Bruno Haible  <bruno@clisp.org>
23973
23974         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23975         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23976         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23977         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23978         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23979
23980 2009-01-19  Bruno Haible  <bruno@clisp.org>
23981
23982         * tests/test-link.c: Include <errno.h>.
23983         (main): Exit with code 77 when a hard link cannot be created due to
23984         the file system.
23985         * tests/test-link.sh: Skip test when a hard link cannot be created due
23986         to the file system.
23987         Suggested by Eric Blake.
23988
23989 2009-01-19  Martin Lambers  <marlam@marlam.de>
23990
23991         * modules/link-tests: New file.
23992         * tests/test-link.sh: New file.
23993         * tests/test-link.c: New file.
23994
23995 2009-01-19  Eric Blake  <ebb9@byu.net>
23996
23997         doc: mention another function added in cygwin 1.7.0
23998         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23999         Another new function in cygwin 1.7.
24000
24001 2009-01-19  Bruno Haible  <bruno@clisp.org>
24002
24003         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24004         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24005         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24006         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24007         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24008         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24009         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24010         * m4/md4.m4 (gl_MD4): Likewise.
24011         * m4/md5.m4 (gl_MD5): Likewise.
24012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24013         * m4/sha1.m4 (gl_SHA1): Likewise.
24014         * m4/sha256.m4 (gl_SHA256): Likewise.
24015         * m4/sha512.m4 (gl_SHA512): Likewise.
24016
24017 2009-01-19  Bruno Haible  <bruno@clisp.org>
24018
24019         * modules/uniname/uniname-tests (Depends-on): Add progname.
24020         * tests/uniname/test-uninames.c: Include progname.h.
24021         (main): Call set_program_name.
24022
24023         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24024         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24025         (main): Call set_program_name.
24026
24027         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24028         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24029         (main): Call set_program_name.
24030
24031         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24032         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24033         (main): Call set_program_name.
24034
24035         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24036         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24037         (main): Call set_program_name.
24038
24039         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24040         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24041         (main): Call set_program_name.
24042
24043         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24044         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24045         (main): Call set_program_name.
24046
24047         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24048         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24049         (main): Call set_program_name.
24050
24051         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24052         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24053         (main): Call set_program_name.
24054
24055 2009-01-19  Eric Blake  <ebb9@byu.net>
24056
24057         test-unistd: test previous patch
24058         * tests/test-unistd.c: Test *_FILENO macros.
24059
24060         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24061         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24062         Guarantee a definition.
24063         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24064         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24065         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24066         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24067         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24068         Likewise.
24069         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24070         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24071         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24072         Likewise.
24073         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24074         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24075         (STDERR_FILENO): Likewise.
24076         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24077         (STDERR_FILENO): Likewise.
24078         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24079         (STDERR_FILENO): Likewise.
24080         Reported by Elbert Pol.
24081
24082 2009-01-19  Eric Blake  <ebb9@byu.net>
24083
24084         doc: mention more functions added in cygwin 1.7.0
24085         * doc/posix-functions/abort.texi (abort): Update wording related
24086         to cygwin.
24087         * doc/posix-functions/daylight.texi (daylight): Likewise.
24088         * doc/posix-functions/optarg.texi (optarg): Likewise.
24089         * doc/posix-functions/optarg.texi (opterr): Likewise.
24090         * doc/posix-functions/optarg.texi (optind): Likewise.
24091         * doc/posix-functions/optarg.texi (optopt): Likewise.
24092         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24093         worked in 1.5.x, and was withdrawn in 1.7.
24094         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24095         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24096         cygwin versions.
24097         * doc/posix-functions/perror.texi (perror): Likewise.
24098         * doc/posix-functions/printf.texi (printf): Likewise.
24099         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24100         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24101         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24102         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24103         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24104         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24105         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24106         Likewise.
24107         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24108         Likewise.
24109         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24110         this function.
24111         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24112         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24113         Likewise.
24114         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24115         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24116         * doc/posix-functions/confstr.texi (confstr): Likewise.
24117         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24118         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24119         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24120         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24121         * doc/posix-functions/fputws.texi (fputws): Likewise.
24122         * doc/posix-functions/fwide.texi (fwide): Likewise.
24123         * doc/posix-functions/getwc.texi (getwc): Likewise.
24124         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24125         * doc/posix-functions/putwc.texi (putwc): Likewise.
24126         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24127         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24128         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24129         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24130         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24131         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24132         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24133         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24134         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24135         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24136         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24137
24138 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24139
24140         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24141         * lib/ioctl.c: Include <sys/ioctl.h>.
24142
24143 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24144
24145         * modules/getdate-tests (Depends-on): Add progname.
24146         * tests/test-getdate.c: Use progname module, to avoid link errors
24147         on non-glibc systems.
24148
24149 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24150
24151         * modules/filenamecat-tests (Depends-on): Add progname.
24152         * modules/fstrcmp-tests (Depends-on): Likewise.
24153
24154         * tests/test-filenamecat.c: Use progname module, to avoid link
24155         errors on non-glibc systems.
24156         * tests/test-fstrcmp.c: Likewise.
24157
24158 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24159
24160         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24161         * lib/gettimeofday.c: Move extern declaration out of function.
24162
24163 2009-01-18  Bruno Haible  <bruno@clisp.org>
24164
24165         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24166         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24167         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24168
24169 2009-01-18  Bruno Haible  <bruno@clisp.org>
24170
24171         * lib/strftime.c (MEMPCPY): Remove unused macro.
24172         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24173
24174 2009-01-18  Martin Lambers  <marlam@marlam.de>
24175
24176         New module 'link'.
24177         * lib/unistd.in.h (link): New declaration.
24178         * lib/link.c: New file.
24179         * m4/link.m4: New file.
24180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24181         HAVE_LINK.
24182         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24183         * modules/link: New file.
24184         * doc/posix-functions/link.texi: Mention the new module.
24185
24186 2009-01-18  Bruno Haible  <bruno@clisp.org>
24187
24188         * tests/test-avltree_list.c (main): Call set_program_name.
24189         * tests/test-avltree_oset.c (main): Likewise.
24190         * tests/test-obstack-printf.c: Include progname.h.
24191         (main): Call set_program_name.
24192         * tests/test-quotearg.c: Include progname.h.
24193         (main): Call set_program_name.
24194         * tests/test-xmemdup0.c: Include progname.h.
24195         (main): Call set_program_name.
24196
24197 2009-01-18  Bruno Haible  <bruno@clisp.org>
24198
24199         New module 'alphasort'.
24200         * lib/dirent.in.h (alphasort): New declaration.
24201         * lib/alphasort.c: New file, from glibc with modifications.
24202         * m4/alphasort.m4: New file.
24203         * modules/alphasort: New file.
24204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24205         HAVE_ALPHASORT.
24206         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24207         HAVE_ALPHASORT.
24208         * doc/posix-functions/alphasort.texi: Mention the new module and the
24209         portability problems.
24210
24211 2009-01-18  Bruno Haible  <bruno@clisp.org>
24212
24213         New module 'scandir'.
24214         * lib/dirent.in.h (scandir): New declaration.
24215         * lib/scandir.c: New file, from glibc with modifications.
24216         * m4/scandir.m4: New file.
24217         * modules/scandir: New file.
24218         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24219         HAVE_SCANDIR.
24220         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24221         HAVE_SCANDIR.
24222         * doc/posix-functions/scandir.texi: Mention the new module and the
24223         portability problems.
24224
24225 2009-01-17  Bruno Haible  <bruno@clisp.org>
24226
24227         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24228         Update documentation.
24229         (func_remove_suffix): Escape all dots in the suffix. Update
24230         documentation.
24231         (func_filter_filelist): Update documentation.
24232         Reported by Ralf Wildenhues.
24233
24234 2009-01-17  Bruno Haible  <bruno@clisp.org>
24235
24236         * modules/dprintf-posix-tests: New file.
24237         * tests/test-dprintf-posix.sh: New file.
24238         * tests/test-dprintf-posix.c: New file.
24239
24240         New modules 'dprintf', 'dprintf-posix'.
24241         * lib/stdio.in.h (dprintf): New declaration.
24242         * lib/dprintf.c: New file.
24243         * m4/dprintf.m4: New file.
24244         * m4/dprintf-posix.m4: New file.
24245         * modules/dprintf: New file.
24246         * modules/dprintf-posix: New file.
24247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24248         HAVE_DPRINTF, REPLACE_DPRINTF.
24249         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24250         HAVE_DPRINTF, REPLACE_DPRINTF.
24251         * doc/posix-functions/dprintf.texi: Mention the new modules.
24252
24253 2009-01-17  Bruno Haible  <bruno@clisp.org>
24254
24255         * modules/vdprintf-posix-tests: New file.
24256         * tests/test-vdprintf-posix.sh: New file.
24257         * tests/test-vdprintf-posix.c: New file.
24258
24259         New modules 'vdprintf', 'vdprintf-posix'.
24260         * lib/stdio.in.h (vdprintf): New declaration.
24261         * lib/vdprintf.c: New file.
24262         * m4/vdprintf.m4: New file.
24263         * m4/vdprintf-posix.m4: New file.
24264         * modules/vdprintf: New file.
24265         * modules/vdprintf-posix: New file.
24266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24267         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24268         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24269         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24270         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24271
24272 2009-01-17  Bruno Haible  <bruno@clisp.org>
24273
24274         Fix replacement of fopen on mingw.
24275         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24276         mingw.
24277
24278 2009-01-17  Bruno Haible  <bruno@clisp.org>
24279
24280         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24281         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24282
24283 2009-01-17  Bruno Haible  <bruno@clisp.org>
24284
24285         Avoid test-fflush2.sh failure on mingw.
24286         * tests/test-fflush2.c: Include binary-io.h.
24287         (main): Put standard input into binary mode.
24288         * modules/fflush-tests (Depends-on): Add binary-io.
24289
24290 2009-01-17  Bruno Haible  <bruno@clisp.org>
24291
24292         * lib/wchar.in.h: In another particular situation, include only the
24293         system's <wchar.h> file.
24294         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24295         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24296         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24297
24298 2009-01-17  Bruno Haible  <bruno@clisp.org>
24299
24300         Support for stripping executables in --enable-relocatable.
24301         * build-aux/install-reloc: Expect one more argument, or an environment
24302         variable RELOC_STRIP_PROG. If set, strip the destination program and
24303         its wrapper.
24304         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24305         RELOC_STRIP_PROG.
24306         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24307         to set RELOCATABLE_STRIP.
24308         * NEWS: Mention the new Makefile requirement.
24309
24310 2009-01-17  Bruno Haible  <bruno@clisp.org>
24311
24312         * build-aux/install-reloc: Remove debugging information left over by
24313         C compiler on MacOS X.
24314
24315 2009-01-17  Bruno Haible  <bruno@clisp.org>
24316
24317         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24318         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24319         _NSGetExecutablePath.
24320
24321 2009-01-16  Jim Meyering  <meyering@redhat.com>
24322
24323         strerror: avoid warnings about discarding "const"
24324         * lib/strerror.c (rpl_strerror): Instead of returning a const
24325         string from each and every "case", use a variable, and add a single
24326         cast after the switch.
24327
24328 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24329
24330         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24331
24332 2009-01-16  Bruno Haible  <bruno@clisp.org>
24333
24334         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24335         array initializer syntax that also works in C++ mode.
24336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24337
24338 2009-01-16  Jim Meyering  <meyering@redhat.com>
24339
24340         poll: suppress a warning
24341         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24342         to ignore "...unsigned expression < 0 is always false" warnings.
24343
24344 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24345
24346         poll: remove declarations of unused variables
24347         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24348         sockbuf and optlen.
24349
24350 2009-01-15  Bruno Haible  <bruno@clisp.org>
24351
24352         Make fflush-after-ungetc POSIX compliant on BSD systems.
24353         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24354         (clear_ungetc_buffer): Implement also for other systems.
24355         (rpl_fflush): On glibc systems, invoke
24356         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24357         clear_ungetc_buffer after fetching the stream's position, not before.
24358
24359 2009-01-15  Bruno Haible  <bruno@clisp.org>
24360
24361         Make fflush-after-ungetc POSIX compliant on glibc systems.
24362         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24363         after ungetc.
24364         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24365         (rpl_fflush): On glibc systems, simply call the system's fflush
24366         function after clearing the ungetc buffer.
24367         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24368         Instead, lseek only to the end of file, then use the system's fseeko
24369         for the rest. On glibc systems, reset the EOF indicator bit.
24370
24371 2009-01-15  Jim Meyering  <meyering@redhat.com>
24372
24373         openmp.m4: revert quote-adding change, for portability to older autoconf
24374         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24375         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24376         Simon Josefsson noticed the problem when using autoconf-2.61.
24377
24378 2009-01-15  Bruno Haible  <bruno@clisp.org>
24379
24380         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24381         * tests/test-fflush2.c (ASSERT): Always fail.
24382         (main): Add two tests for fflush() after ungetc(), taking into account
24383         the Austin Group's clarification.
24384         Suggested by Eric Blake.
24385
24386 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24387
24388         mktime.m4: remove K&R-style function prototypes
24389         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24390         for the Sun C++ compiler.
24391
24392 2009-01-14  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24395         while including <wchar.h>.
24396         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24397         the system's <wchar.h> file.
24398         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24399
24400 2009-01-14  Bruno Haible  <bruno@clisp.org>
24401
24402         * m4/csharp.m4: Don't mention gettext on the serial number line.
24403         * m4/csharpexec.m4: Likewise.
24404         * m4/eaccess.m4: Likewise.
24405         * m4/javaexec.m4: Likewise.
24406         * m4/sig_atomic_t.m4: Likewise.
24407         * m4/tmpdir.m4: Likewise.
24408         * m4/intldir.m4: Bump gettext version.
24409         * m4/lib-ld.m4: Likewise.
24410
24411 2009-01-14  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/progname.c (set_program_name): Add more comments.
24414         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24415
24416 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24417
24418         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24419         were sys/stat.h does not define it.
24420
24421 2009-01-14  Jim Meyering  <meyering@redhat.com>
24422
24423         many *.m4 files: improve m4 quoting
24424         99% of this change was performed by running the following commands:
24425         git ls-files | grep '\.m4$' | xargs perl -pi \
24426           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24427           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24428           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24429           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24430         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24431         The remainder were to add Copyright dates, increment serial numbers,
24432         undo some changes in comments, exclude m4/intl.m4, and add quotes
24433         around the "1" in ",1" where the unusual spacing prohibited the
24434         above regexps from doing the job.  For more details, see
24435         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24436         * m4/acl.m4: Modified.
24437         * m4/afs.m4: Likewise.
24438         * m4/alloca.m4: Likewise.
24439         * m4/argp.m4: Likewise.
24440         * m4/argz.m4: Likewise.
24441         * m4/atexit.m4: Likewise.
24442         * m4/bison-i18n.m4: Likewise.
24443         * m4/bison.m4: Likewise.
24444         * m4/byteswap.m4: Likewise.
24445         * m4/c-stack.m4: Likewise.
24446         * m4/c-strtod.m4: Likewise.
24447         * m4/calloc.m4: Likewise.
24448         * m4/canonicalize-lgpl.m4: Likewise.
24449         * m4/chown.m4: Likewise.
24450         * m4/clock_time.m4: Likewise.
24451         * m4/codeset.m4: Likewise.
24452         * m4/copy-file.m4: Likewise.
24453         * m4/csharp.m4: Likewise.
24454         * m4/csharpcomp.m4: Likewise.
24455         * m4/csharpexec.m4: Likewise.
24456         * m4/d-ino.m4: Likewise.
24457         * m4/d-type.m4: Likewise.
24458         * m4/dirfd.m4: Likewise.
24459         * m4/double-slash-root.m4: Likewise.
24460         * m4/eaccess.m4: Likewise.
24461         * m4/eealloc.m4: Likewise.
24462         * m4/environ.m4: Likewise.
24463         * m4/errno_h.m4: Likewise.
24464         * m4/euidaccess.m4: Likewise.
24465         * m4/execute.m4: Likewise.
24466         * m4/fatal-signal.m4: Likewise.
24467         * m4/fchdir.m4: Likewise.
24468         * m4/fcntl_h.m4: Likewise.
24469         * m4/fileblocks.m4: Likewise.
24470         * m4/filenamecat.m4: Likewise.
24471         * m4/findprog.m4: Likewise.
24472         * m4/flexmember.m4: Likewise.
24473         * m4/fnmatch.m4: Likewise.
24474         * m4/fopen.m4: Likewise.
24475         * m4/fpending.m4: Likewise.
24476         * m4/fprintf-posix.m4: Likewise.
24477         * m4/free.m4: Likewise.
24478         * m4/frexp.m4: Likewise.
24479         * m4/frexpl.m4: Likewise.
24480         * m4/fsusage.m4: Likewise.
24481         * m4/ftruncate.m4: Likewise.
24482         * m4/gc-camellia.m4: Likewise.
24483         * m4/gc-random.m4: Likewise.
24484         * m4/gc.m4: Likewise.
24485         * m4/getaddrinfo.m4: Likewise.
24486         * m4/getcwd-abort-bug.m4: Likewise.
24487         * m4/getcwd-path-max.m4: Likewise.
24488         * m4/getdate.m4: Likewise.
24489         * m4/getdomainname.m4: Likewise.
24490         * m4/getgroups.m4: Likewise.
24491         * m4/gethostname.m4: Likewise.
24492         * m4/gethrxtime.m4: Likewise.
24493         * m4/getline.m4: Likewise.
24494         * m4/getloadavg.m4: Likewise.
24495         * m4/getndelim2.m4: Likewise.
24496         * m4/getpass.m4: Likewise.
24497         * m4/gettext.m4: Likewise.
24498         * m4/gettime.m4: Likewise.
24499         * m4/gettimeofday.m4: Likewise.
24500         * m4/gnulib-common.m4: Likewise.
24501         * m4/group-member.m4: Likewise.
24502         * m4/host-os.m4: Likewise.
24503         * m4/iconv.m4: Likewise.
24504         * m4/iconv_open.m4: Likewise.
24505         * m4/inet_ntop.m4: Likewise.
24506         * m4/inet_pton.m4: Likewise.
24507         * m4/inline.m4: Likewise.
24508         * m4/intldir.m4: Likewise.
24509         * m4/intlmacosx.m4: Likewise.
24510         * m4/intmax.m4: Likewise.
24511         * m4/intmax_t.m4: Likewise.
24512         * m4/inttypes.m4: Likewise.
24513         * m4/inttypes_h.m4: Likewise.
24514         * m4/inttypes-pri.m4: Likewise.
24515         * m4/isapipe.m4: Likewise.
24516         * m4/isnand.m4: Likewise.
24517         * m4/isnanf.m4: Likewise.
24518         * m4/isnanl.m4: Likewise.
24519         * m4/javacomp.m4: Likewise.
24520         * m4/javaexec.m4: Likewise.
24521         * m4/jm-winsz1.m4: Likewise.
24522         * m4/jm-winsz2.m4: Likewise.
24523         * m4/lchown.m4: Likewise.
24524         * m4/lcmessage.m4: Likewise.
24525         * m4/ldexpl.m4: Likewise.
24526         * m4/lib-ld.m4: Likewise.
24527         * m4/lib-link.m4: Likewise.
24528         * m4/libsigsegv.m4: Likewise.
24529         * m4/link-follow.m4: Likewise.
24530         * m4/localcharset.m4: Likewise.
24531         * m4/locale-fr.m4: Likewise.
24532         * m4/locale-ja.m4: Likewise.
24533         * m4/locale-tr.m4: Likewise.
24534         * m4/locale-zh.m4: Likewise.
24535         * m4/lock.m4: Likewise.
24536         * m4/longlong.m4: Likewise.
24537         * m4/ls-mntd-fs.m4: Likewise.
24538         * m4/lstat.m4: Likewise.
24539         * m4/malloc.m4: Likewise.
24540         * m4/mathl.m4: Likewise.
24541         * m4/mbrtowc.m4: Likewise.
24542         * m4/mbstate_t.m4: Likewise.
24543         * m4/mbswidth.m4: Likewise.
24544         * m4/memchr.m4: Likewise.
24545         * m4/memcmp.m4: Likewise.
24546         * m4/memcpy.m4: Likewise.
24547         * m4/memmem.m4: Likewise.
24548         * m4/memmove.m4: Likewise.
24549         * m4/mempcpy.m4: Likewise.
24550         * m4/memrchr.m4: Likewise.
24551         * m4/memset.m4: Likewise.
24552         * m4/minmax.m4: Likewise.
24553         * m4/mkdir-slash.m4: Likewise.
24554         * m4/mkdtemp.m4: Likewise.
24555         * m4/mktime.m4: Likewise.
24556         * m4/mmap-anon.m4: Likewise.
24557         * m4/mountlist.m4: Likewise.
24558         * m4/nanosleep.m4: Likewise.
24559         * m4/nls.m4: Likewise.
24560         * m4/nocrash.m4: Likewise.
24561         * m4/open.m4: Likewise.
24562         * m4/openat.m4: Likewise.
24563         * m4/openmp.m4: Likewise.
24564         * m4/pathmax.m4: Likewise.
24565         * m4/perl.m4: Likewise.
24566         * m4/physmem.m4: Likewise.
24567         * m4/pipe.m4: Likewise.
24568         * m4/po.m4: Likewise.
24569         * m4/poll.m4: Likewise.
24570         * m4/posixtm.m4: Likewise.
24571         * m4/posixver.m4: Likewise.
24572         * m4/printf-frexp.m4: Likewise.
24573         * m4/printf-frexpl.m4: Likewise.
24574         * m4/printf-posix.m4: Likewise.
24575         * m4/printf-posix-rpl.m4: Likewise.
24576         * m4/printf.m4: Likewise.
24577         * m4/progtest.m4: Likewise.
24578         * m4/putenv.m4: Likewise.
24579         * m4/readline.m4: Likewise.
24580         * m4/readlink.m4: Likewise.
24581         * m4/readutmp.m4: Likewise.
24582         * m4/realloc.m4: Likewise.
24583         * m4/regex.m4: Likewise.
24584         * m4/relocatable.m4: Likewise.
24585         * m4/relocatable-lib.m4: Likewise.
24586         * m4/rename-dest-slash.m4: Likewise.
24587         * m4/rename.m4: Likewise.
24588         * m4/rmdir-errno.m4: Likewise.
24589         * m4/rmdir.m4: Likewise.
24590         * m4/roundf.m4: Likewise.
24591         * m4/roundl.m4: Likewise.
24592         * m4/rpmatch.m4: Likewise.
24593         * m4/save-cwd.m4: Likewise.
24594         * m4/selinux-selinux-h.m4: Likewise.
24595         * m4/setenv.m4: Likewise.
24596         * m4/settime.m4: Likewise.
24597         * m4/sig2str.m4: Likewise.
24598         * m4/sig_atomic_t.m4: Likewise.
24599         * m4/signalblocking.m4: Likewise.
24600         * m4/signbit.m4: Likewise.
24601         * m4/sigpipe.m4: Likewise.
24602         * m4/sockets.m4: Likewise.
24603         * m4/sockpfaf.m4: Likewise.
24604         * m4/st_dm_mode.m4: Likewise.
24605         * m4/stat-time.m4: Likewise.
24606         * m4/stdbool.m4: Likewise.
24607         * m4/stdint.m4: Likewise.
24608         * m4/stdint_h.m4: Likewise.
24609         * m4/stpcpy.m4: Likewise.
24610         * m4/stpncpy.m4: Likewise.
24611         * m4/strcase.m4: Likewise.
24612         * m4/strchrnul.m4: Likewise.
24613         * m4/strcspn.m4: Likewise.
24614         * m4/strdup.m4: Likewise.
24615         * m4/strftime.m4: Likewise.
24616         * m4/strndup.m4: Likewise.
24617         * m4/strnlen.m4: Likewise.
24618         * m4/strpbrk.m4: Likewise.
24619         * m4/strptime.m4: Likewise.
24620         * m4/strsep.m4: Likewise.
24621         * m4/strtod.m4: Likewise.
24622         * m4/strtoimax.m4: Likewise.
24623         * m4/strtok_r.m4: Likewise.
24624         * m4/strtol.m4: Likewise.
24625         * m4/strtoll.m4: Likewise.
24626         * m4/strtoul.m4: Likewise.
24627         * m4/strtoull.m4: Likewise.
24628         * m4/strtoumax.m4: Likewise.
24629         * m4/strverscmp.m4: Likewise.
24630         * m4/threadlib.m4: Likewise.
24631         * m4/timegm.m4: Likewise.
24632         * m4/tm_gmtoff.m4: Likewise.
24633         * m4/tmpdir.m4: Likewise.
24634         * m4/tmpfile.m4: Likewise.
24635         * m4/tzset.m4: Likewise.
24636         * m4/uintmax_t.m4: Likewise.
24637         * m4/unlinkdir.m4: Likewise.
24638         * m4/unlocked-io.m4: Likewise.
24639         * m4/uptime.m4: Likewise.
24640         * m4/userspec.m4: Likewise.
24641         * m4/utimbuf.m4: Likewise.
24642         * m4/utime.m4: Likewise.
24643         * m4/utimes-null.m4: Likewise.
24644         * m4/utimes.m4: Likewise.
24645         * m4/vararrays.m4: Likewise.
24646         * m4/vasnprintf.m4: Likewise.
24647         * m4/vfprintf-posix.m4: Likewise.
24648         * m4/vprintf-posix.m4: Likewise.
24649         * m4/wait-process.m4: Likewise.
24650         * m4/wchar_t.m4: Likewise.
24651         * m4/wint_t.m4: Likewise.
24652         * m4/write-any-file.m4: Likewise.
24653         * m4/yield.m4: Likewise.
24654
24655 2009-01-13  Bruno Haible  <bruno@clisp.org>
24656
24657         Avoid test-copy-file.sh failures when ACL support insufficient.
24658         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24659         TESTS_ENVIRONMENT.
24660         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24661         Reported by Jim Meyering.
24662
24663 2009-01-13  Bruno Haible  <bruno@clisp.org>
24664
24665         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24666         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24667         * modules/unistdio/u8-printf-parse (Files): Likewise.
24668         * modules/unistdio/u32-printf-parse (Files): Likewise.
24669         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24670
24671 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24672
24673         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24674         and m4/inttypes_h.m4 too.
24675
24676 2009-01-12  Eric Blake  <ebb9@byu.net>
24677
24678         tests: IRIX 6.2 cc can't compile -0.0 into .data
24679         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24680         rather than at compile-time.
24681         * tests/test-floorl.c (minus_zero): Likewise.
24682         * tests/test-frexpl.c (minus_zero): Likewise.
24683         * tests/test-isnan.c (minus_zerol): Likewise.
24684         * tests/test-isnanl.h (minus_zero): Likewise.
24685         * tests/test-ldexpl.c (minus_zero): Likewise.
24686         * tests/test-roundl.c (minus_zero): Likewise.
24687         * tests/test-signbit.c (minus_zerol): Likewise.
24688         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24689         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24690         * tests/test-truncl.c (minus_zero): Likewise.
24691         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24692         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24693         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24694
24695 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24696
24697         regex: fix glibc bug 9697
24698         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24699         handling.
24700
24701 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24702
24703         regex: fix glibc bug 697
24704         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24705         being NULL also if there are no backreferences.
24706
24707 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24708
24709         regex: merge glibc changes
24710         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24711         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24712         re_string_skip_chars, re_string_reconstruct): Likewise.
24713         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24714
24715 2009-01-07  Jim Meyering  <meyering@redhat.com>
24716
24717         poll: filter through cppi
24718         * lib/poll.c: Indent cpp directives to reflect nesting.
24719
24720 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24721
24722         poll: don't return uninitialized
24723         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24724
24725 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24726
24727         avoid compile failure on AIX 6.1
24728         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24729         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24730
24731 2009-01-04  Jim Meyering  <meyering@redhat.com>
24732
24733         remove duplicate inclusion of <stdio.h>
24734         * tests/test-fprintf-posix.c: Likewise.
24735         * tests/test-printf-posix.c: Likewise.
24736         * tests/test-snprintf-posix.c: Likewise.
24737         * tests/test-sprintf-posix.c: Likewise.
24738         * tests/test-vasprintf-posix.c: Likewise.
24739         * tests/test-vfprintf-posix.c: Likewise.
24740         * tests/test-vprintf-posix.c: Likewise.
24741         * tests/test-vsnprintf-posix.c: Likewise.
24742         * tests/test-vsprintf-posix.c: Likewise.
24743
24744 2009-01-03  Jim Meyering  <meyering@redhat.com>
24745
24746         gnulib-tool: fix sed-based filtering
24747         * gnulib-tool (func_filter_filelist): Remove extra backslash
24748         in sed_fff_filter definition.
24749
24750 2009-01-02  Jim Meyering  <meyering@redhat.com>
24751
24752         strftime: avoid compilation failure on Solaris 2.6
24753         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24754         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24755         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24756         be available.  Reported by Tom G. Christensen.  Details in
24757         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24758
24759 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24760             Bruno Haible  <bruno@clisp.org>
24761
24762         Speed up gnulib-tool by doing more string processing through shell
24763         built-ins.
24764         * gnulib-tool (fast_func_append): New variable.
24765         (func_remove_prefix, func_remove_suffix): New functions.
24766         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24767         (func_filter_filelist): New function.
24768         (func_get_dependencies): Use func_remove_suffix instead of sed.
24769         (func_get_automake_snippet): Use func_filter_filelist instead of a
24770         subshell and sed invocation.
24771
24772 2009-01-01  Bruno Haible  <bruno@clisp.org>
24773
24774         Fix a security bug.
24775         * gnulib-tool (func_import, import, update): Don't allow the characters
24776         '"', '$', '`', '\' in macro arguments that become part of commands that
24777         are evaluated.
24778
24779 2009-01-01  Bruno Haible  <bruno@clisp.org>
24780
24781         * gnulib-tool (func_reset_sigpipe): Add more comments.
24782
24783 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24784
24785         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24786         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24787         already know the answer.
24788
24789 2009-01-01  Jim Meyering  <meyering@redhat.com>
24790
24791         * lib/version-etc.c (version_etc_va): Update copyright year.
24792
24793 2008-12-30  Bruno Haible  <bruno@clisp.org>
24794
24795         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24796         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24797         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24798
24799 2008-12-29  Eric Blake  <ebb9@byu.net>
24800
24801         multiarch: avoid autoconf AC_REQUIRE bug
24802         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24803         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24804         2.63 and older.
24805         Reported by Bruno Haible, and analyzed in
24806         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24807
24808 2008-12-29  Bruno Haible  <bruno@clisp.org>
24809
24810         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24811         files in subdirectories correctly.
24812         Reported by Ralf Wildenhues.
24813
24814 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24815
24816         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24817         rather than 'join FILE -', for Solaris join.
24818
24819 2008-12-29  Bruno Haible  <bruno@clisp.org>
24820
24821         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24822         quoting.
24823         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24824         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24825         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24826         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24827         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24828         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24829         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24830         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24831         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24832         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24833         * m4/nls.m4 (AM_NLS): Likewise.
24834         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24835         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24836         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24837         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24838         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24839         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24840         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24841         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24842         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24843         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24844         * m4/xsize.m4 (gl_XSIZE): Likewise.
24845         Suggested by Jim Meyering.
24846
24847 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24848
24849         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24850         * lib/parse-duration.c: use a switch instead of cascading if's.
24851
24852 2008-12-29  Eric Blake  <ebb9@byu.net>
24853
24854         wchar.h: supply WEOF on Irix 5.3
24855         * lib/wchar.in.h (wint_t): Also supply WEOF.
24856         * lib/wctype.in.h (wint_t): Likewise.
24857         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24858         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24859         Reported by Tom G. Christensen.
24860
24861 2008-12-26  Bruno Haible  <bruno@clisp.org>
24862
24863         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24864         i486, i586, i686.
24865
24866 2008-12-26  Bruno Haible  <bruno@clisp.org>
24867
24868         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24869
24870 2008-12-26  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24873         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24874         not __STDC_CONSTANT_MACROS.
24875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24876
24877 2008-12-25  Bruno Haible  <bruno@clisp.org>
24878
24879         Add support for universal builds to vasnprintf.
24880         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24881         universal builds, guess no.
24882         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24883         * modules/vasprintf-posix (Depends-on): Likewise.
24884         * modules/fprintf-posix (Depends-on): Likewise.
24885         * modules/vfprintf-posix (Depends-on): Likewise.
24886         * modules/snprintf-posix (Depends-on): Likewise.
24887         * modules/vsnprintf-posix (Depends-on): Likewise.
24888         * modules/sprintf-posix (Depends-on): Likewise.
24889         * modules/vsprintf-posix (Depends-on): Likewise.
24890         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24891         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24892         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24893         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24894         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24895         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24896         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24897
24898         Add support for universal builds to <inttypes.h>.
24899         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24900         _SCNu64_PREFIX): In Apple
24901         universal builds, define directly, using _LP64.
24902         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24903         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24904         * modules/inttypes (Depends-on): Add multiarch.
24905         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24906
24907         Add support for universal builds to <stdint.h>.
24908         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24909         universal builds, define directly, using _LP64.
24910         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24911         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24912         and size_t.
24913         * modules/stdint (Depends-on): Add multiarch.
24914         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24915
24916         New module 'multiarch'.
24917         * modules/multiarch: New file.
24918         * m4/multiarch.m4: New file.
24919
24920 2008-12-25  Bruno Haible  <bruno@clisp.org>
24921
24922         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24923
24924 2008-12-25  Bruno Haible  <bruno@clisp.org>
24925
24926         * modules/btowc (License): Relicense under LGPLv2+.
24927         * modules/mbsinit (License): Likewise.
24928         * modules/mbrtowc (License): Likewise.
24929         * modules/wcrtomb (License): Likewise.
24930         * modules/streq (License): Likewise.
24931         Reported by David Lutterkort <lutter@redhat.com>.
24932
24933 2008-12-23  Bruno Haible  <bruno@clisp.org>
24934
24935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24936
24937 2008-12-23  Bruno Haible  <bruno@clisp.org>
24938
24939         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24941         GETADDRINFO_LIB, not in LIBS.
24942         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24943         * modules/canon-host (Link): Likewise.
24944         * NEWS: Mention the change.
24945         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24946         GETADDRINFO_LIB.
24947
24948 2008-12-22  Bruno Haible  <bruno@clisp.org>
24949
24950         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24951         * doc/posix-functions/iswalpha_l.texi: Likewise.
24952         * doc/posix-functions/iswblank_l.texi: Likewise.
24953         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24954         * doc/posix-functions/iswctype_l.texi: Likewise.
24955         * doc/posix-functions/iswdigit_l.texi: Likewise.
24956         * doc/posix-functions/iswgraph_l.texi: Likewise.
24957         * doc/posix-functions/iswlower_l.texi: Likewise.
24958         * doc/posix-functions/iswprint_l.texi: Likewise.
24959         * doc/posix-functions/iswpunct_l.texi: Likewise.
24960         * doc/posix-functions/iswspace_l.texi: Likewise.
24961         * doc/posix-functions/iswupper_l.texi: Likewise.
24962         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24963         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24964         * doc/posix-functions/open_wmemstream.texi: Likewise.
24965         * doc/posix-functions/swscanf.texi: Likewise.
24966         * doc/posix-functions/towctrans_l.texi: Likewise.
24967         * doc/posix-functions/towlower.texi: Likewise.
24968         * doc/posix-functions/towlower_l.texi: Likewise.
24969         * doc/posix-functions/towupper.texi: Likewise.
24970         * doc/posix-functions/towupper_l.texi: Likewise.
24971         * doc/posix-functions/vfwprintf.texi: Likewise.
24972         * doc/posix-functions/vfwscanf.texi: Likewise.
24973         * doc/posix-functions/vswscanf.texi: Likewise.
24974         * doc/posix-functions/vwprintf.texi: Likewise.
24975         * doc/posix-functions/vwscanf.texi: Likewise.
24976         * doc/posix-functions/wcpcpy.texi: Likewise.
24977         * doc/posix-functions/wcpncpy.texi: Likewise.
24978         * doc/posix-functions/wcscasecmp.texi: Likewise.
24979         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24980         * doc/posix-functions/wcscoll_l.texi: Likewise.
24981         * doc/posix-functions/wcsdup.texi: Likewise.
24982         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24983         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24984         * doc/posix-functions/wcsnlen.texi: Likewise.
24985         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24986         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24987         * doc/posix-functions/wctrans_l.texi: Likewise.
24988         * doc/posix-functions/wctype_l.texi: Likewise.
24989         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24990         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24991         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24992         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24993         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24994         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24995         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24996         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24997         * doc/glibc-functions/wcschrnul.texi: Likewise.
24998         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24999         * doc/glibc-functions/wcstod_l.texi: Likewise.
25000         * doc/glibc-functions/wcstof_l.texi: Likewise.
25001         * doc/glibc-functions/wcstol_l.texi: Likewise.
25002         * doc/glibc-functions/wcstold_l.texi: Likewise.
25003         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25004         * doc/glibc-functions/wcstoq.texi: Likewise.
25005         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25006         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25007         * doc/glibc-functions/wcstouq.texi: Likewise.
25008         * doc/glibc-functions/wmempcpy.texi: Likewise.
25009
25010 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25011             Eric Blake  <ebb9@byu.net>
25012             Paolo Bonzini  <bonzini@gnu.org>
25013             Bruno Haible  <bruno@clisp.org>
25014
25015         Make c-stack work on Haiku.
25016         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25017         (c_stack_action): Use SA_ONSTACK flag.
25018
25019 2008-12-22  Bruno Haible  <bruno@clisp.org>
25020
25021         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25022
25023 2008-12-22  Bruno Haible  <bruno@clisp.org>
25024
25025         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25026         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25027         being overridden.
25028         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25029         New macros.
25030         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25032         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25033         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25034
25035 2008-12-22  Bruno Haible  <bruno@clisp.org>
25036
25037         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25038         from test code.
25039
25040 2008-12-22  Eric Blake  <ebb9@byu.net>
25041
25042         Avoid gcc warnings on cygwin.
25043         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25044         Avoid unused variable.
25045         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25046         Likewise.
25047
25048 2008-12-22  Bruno Haible  <bruno@clisp.org>
25049
25050         Remove HAVE_MBRTOWC conditionals.
25051         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25052         (mbscasecmp): Assume mbrtowc function.
25053         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25054         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25055         * lib/mbschr.c: Include mbuiter.h unconditionally.
25056         (mbschr): Assume mbrtowc function.
25057         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25058         (mbscspn): Assume mbrtowc function.
25059         * lib/mbslen.c: Include mbuiter.h unconditionally.
25060         (mbslen): Assume mbrtowc function.
25061         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25062         (mbsncasecmp): Assume mbrtowc function.
25063         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25064         (mbsnlen): Assume mbrtowc function.
25065         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25066         (mbspbrk): Assume mbrtowc function.
25067         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25068         (mbspcasecmp): Assume mbrtowc function.
25069         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25070         (mbsrchr): Assume mbrtowc function.
25071         * lib/mbssep.c: Include mbuiter.h unconditionally.
25072         (mbssep): Assume mbrtowc function.
25073         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25074         (mbsspn): Assume mbrtowc function.
25075         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25076         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25077         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25078         (mbstok_r): Assume mbrtowc function.
25079         * lib/propername.c: Include mbuiter.h unconditionally.
25080         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25081         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25082         (trim2): Assume mbrtowc function.
25083         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25084         (mbsnwidth): Assume mbrtowc function.
25085         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25086         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25087         fallback definitions.
25088         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25089
25090 2008-12-22  Bruno Haible  <bruno@clisp.org>
25091
25092         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25093
25094 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25095
25096         * modules/regex: Request emulations for the mb*/wc* functions we need.
25097         * m4/regex.m4: Don't look for those functions here.
25098         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25099
25100 2008-12-22  Bruno Haible  <bruno@clisp.org>
25101
25102         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25103
25104 2008-12-21  Bruno Haible  <bruno@clisp.org>
25105
25106         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25107         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25108         (Include): Remove conditionalization.
25109         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25110         (Include): Remove conditionalization.
25111         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25112         (Include): Remove conditionalization.
25113         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25114         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25115         * NEWS: Mention the change.
25116         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25117         via Sergey Poznyakoff <gray@gnu.org.ua>.
25118
25119 2008-12-21  Bruno Haible  <bruno@clisp.org>
25120
25121         * MODULES.html.sh (Extended multibyte and wide character utilities
25122         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25123         wcrtomb, wcsrtombs.
25124         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25125         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25126         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25127         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25128
25129 2008-12-21  Bruno Haible  <bruno@clisp.org>
25130
25131         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25132
25133 2008-12-21  Bruno Haible  <bruno@clisp.org>
25134
25135         * modules/wcsnrtombs-tests: New file.
25136         * tests/test-wcsnrtombs1.sh: New file.
25137         * tests/test-wcsnrtombs2.sh: New file.
25138         * tests/test-wcsnrtombs3.sh: New file.
25139         * tests/test-wcsnrtombs4.sh: New file.
25140         * tests/test-wcsnrtombs.c: New file.
25141
25142         New module 'wcsnrtombs'.
25143         * lib/wchar.in.h (wcsnrtombs): New declaration.
25144         * lib/wcsnrtombs.c: New file.
25145         * lib/wcsrtombs-state.c: New file.
25146         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25147         (internal_state): Remove variable.
25148         * m4/wcsnrtombs.m4: New file.
25149         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25150         compilation units.
25151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25152         HAVE_WCSNRTOMBS.
25153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25154         HAVE_WCSNRTOMBS.
25155         * modules/wcsnrtombs: New file.
25156         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25157         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25158
25159 2008-12-21  Bruno Haible  <bruno@clisp.org>
25160
25161         * modules/wcsrtombs-tests: New file.
25162         * tests/test-wcsrtombs1.sh: New file.
25163         * tests/test-wcsrtombs2.sh: New file.
25164         * tests/test-wcsrtombs3.sh: New file.
25165         * tests/test-wcsrtombs4.sh: New file.
25166         * tests/test-wcsrtombs.c: New file.
25167
25168         New module 'wcsrtombs'.
25169         * lib/wchar.in.h (wcsrtombs): New declaration.
25170         * lib/wcsrtombs.c: New file.
25171         * m4/wcsrtombs.m4: New file.
25172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25173         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25175         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25176         * modules/wcsrtombs: New file.
25177         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25178         bugs.
25179
25180 2008-12-21  Bruno Haible  <bruno@clisp.org>
25181
25182         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25183         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25185         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25186         if not correct.
25187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25188         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25189         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25190         m4/locale-zh.m4, m4/codeset.m4.
25191         * doc/posix-functions/wcrtomb.texi: Document the bug.
25192
25193 2008-12-21  Bruno Haible  <bruno@clisp.org>
25194
25195         Work around a btowc() bug on IRIX 6.5.
25196         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25197         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25198         REPLACE_WTOBC if not.
25199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25200         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25201         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25202
25203 2008-12-21  Bruno Haible  <bruno@clisp.org>
25204
25205         * modules/wcrtomb-tests: New file.
25206         * tests/test-wcrtomb.sh: New file.
25207         * tests/test-wcrtomb.c: New file.
25208
25209         New module 'wcrtomb'.
25210         * lib/wchar.in.h (wcrtomb): New declaration.
25211         * lib/wcrtomb.c: New file.
25212         * m4/wcrtomb.m4: New file.
25213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25214         HAVE_WCRTOMB.
25215         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25216         HAVE_WCRTOMB.
25217         * modules/wcrtomb: New file.
25218         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25219
25220 2008-12-21  Bruno Haible  <bruno@clisp.org>
25221
25222         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25223         * modules/mbsrtowcs (Files): Likewise.
25224         * modules/wctob (Files): Likewise.
25225         * modules/c-strcase-tests (Files): Likewise.
25226         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25227         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25228         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25229         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25230         * modules/vasnprintf-posix-tests (Files): Likewise.
25231
25232 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25233
25234         gitlog-to-changelog: pass all command-line arguments to git-log
25235         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25236         it is sometimes convenient to filter the commits in various ways.
25237         gitlog-to-changelog only allows --since to specify a start date,
25238         but git-log itself supports many other filtering mechanisms.
25239         At the moment, I want to filter by branch name.  Rather than
25240         adding a --branch option to gitlog-to-changelog, it seems more
25241         flexible to simply pass all options directly to git-log and let
25242         git do the work.  Notice that this effectively makes --since a
25243         redundant option for gitlog-to-changelog, but removing it would
25244         require current usage to change since calls would then require
25245         an additional '--'.
25246
25247 2008-12-21  Bruno Haible  <bruno@clisp.org>
25248
25249         * modules/mbsnrtowcs-tests: New file.
25250         * tests/test-mbsnrtowcs1.sh: New file.
25251         * tests/test-mbsnrtowcs2.sh: New file.
25252         * tests/test-mbsnrtowcs3.sh: New file.
25253         * tests/test-mbsnrtowcs4.sh: New file.
25254         * tests/test-mbsnrtowcs.c: New file.
25255
25256         New module 'mbsnrtowcs'.
25257         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25258         * lib/mbsnrtowcs.c: New file.
25259         * lib/mbsrtowcs-state.c: New file.
25260         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25261         (internal_state): Remove variable.
25262         * m4/mbsnrtowcs.m4: New file.
25263         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25264         compilation units.
25265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25266         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25267         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25268         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25269         * modules/mbsnrtowcs: New file.
25270         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25271         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25272         portability problem.
25273
25274 2008-12-21  Bruno Haible  <bruno@clisp.org>
25275
25276         Work around mbsrtowcs bug.
25277         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25278         (gl_FUNC_MBSRTOWCS): Invoke it.
25279         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25280         m4/locale-zh.m4.
25281         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25282
25283 2008-12-21  Bruno Haible  <bruno@clisp.org>
25284
25285         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25286
25287 2008-12-21  Bruno Haible  <bruno@clisp.org>
25288
25289         Update doc for AIX.
25290         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25291         16-bit wchar_t type.
25292         * doc/posix-functions/btowc.texi: Likewise.
25293         * doc/posix-functions/fgetwc.texi: Likewise.
25294         * doc/posix-functions/fgetws.texi: Likewise.
25295         * doc/posix-functions/fputwc.texi: Likewise.
25296         * doc/posix-functions/fputws.texi: Likewise.
25297         * doc/posix-functions/fwide.texi: Likewise.
25298         * doc/posix-functions/fwprintf.texi: Likewise.
25299         * doc/posix-functions/fwscanf.texi: Likewise.
25300         * doc/posix-functions/getwchar.texi: Likewise.
25301         * doc/posix-functions/getwc.texi: Likewise.
25302         * doc/posix-functions/iswalnum.texi: Likewise.
25303         * doc/posix-functions/iswalpha.texi: Likewise.
25304         * doc/posix-functions/iswblank.texi: Likewise.
25305         * doc/posix-functions/iswcntrl.texi: Likewise.
25306         * doc/posix-functions/iswctype.texi: Likewise.
25307         * doc/posix-functions/iswdigit.texi: Likewise.
25308         * doc/posix-functions/iswgraph.texi: Likewise.
25309         * doc/posix-functions/iswlower.texi: Likewise.
25310         * doc/posix-functions/iswprint.texi: Likewise.
25311         * doc/posix-functions/iswpunct.texi: Likewise.
25312         * doc/posix-functions/iswspace.texi: Likewise.
25313         * doc/posix-functions/iswupper.texi: Likewise.
25314         * doc/posix-functions/iswxdigit.texi: Likewise.
25315         * doc/posix-functions/mbrtowc.texi: Likewise.
25316         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25317         * doc/posix-functions/mbstowcs.texi: Likewise.
25318         * doc/posix-functions/mbtowc.texi: Likewise.
25319         * doc/posix-functions/putwchar.texi: Likewise.
25320         * doc/posix-functions/putwc.texi: Likewise.
25321         * doc/posix-functions/swprintf.texi: Likewise.
25322         * doc/posix-functions/tolower.texi: Likewise.
25323         * doc/posix-functions/toupper.texi: Likewise.
25324         * doc/posix-functions/towctrans.texi: Likewise.
25325         * doc/posix-functions/ungetwc.texi: Likewise.
25326         * doc/posix-functions/vswprintf.texi: Likewise.
25327         * doc/posix-functions/wcrtomb.texi: Likewise.
25328         * doc/posix-functions/wcscat.texi: Likewise.
25329         * doc/posix-functions/wcschr.texi: Likewise.
25330         * doc/posix-functions/wcscmp.texi: Likewise.
25331         * doc/posix-functions/wcscoll.texi: Likewise.
25332         * doc/posix-functions/wcscpy.texi: Likewise.
25333         * doc/posix-functions/wcscspn.texi: Likewise.
25334         * doc/posix-functions/wcsftime.texi: Likewise.
25335         * doc/posix-functions/wcslen.texi: Likewise.
25336         * doc/posix-functions/wcsncat.texi: Likewise.
25337         * doc/posix-functions/wcsncmp.texi: Likewise.
25338         * doc/posix-functions/wcsncpy.texi: Likewise.
25339         * doc/posix-functions/wcspbrk.texi: Likewise.
25340         * doc/posix-functions/wcsrchr.texi: Likewise.
25341         * doc/posix-functions/wcsrtombs.texi: Likewise.
25342         * doc/posix-functions/wcsspn.texi: Likewise.
25343         * doc/posix-functions/wcsstr.texi: Likewise.
25344         * doc/posix-functions/wcstod.texi: Likewise.
25345         * doc/posix-functions/wcstof.texi: Likewise.
25346         * doc/posix-functions/wcstoimax.texi: Likewise.
25347         * doc/posix-functions/wcstok.texi: Likewise.
25348         * doc/posix-functions/wcstold.texi: Likewise.
25349         * doc/posix-functions/wcstoll.texi: Likewise.
25350         * doc/posix-functions/wcstol.texi: Likewise.
25351         * doc/posix-functions/wcstombs.texi: Likewise.
25352         * doc/posix-functions/wcstoull.texi: Likewise.
25353         * doc/posix-functions/wcstoul.texi: Likewise.
25354         * doc/posix-functions/wcstoumax.texi: Likewise.
25355         * doc/posix-functions/wcswidth.texi: Likewise.
25356         * doc/posix-functions/wcsxfrm.texi: Likewise.
25357         * doc/posix-functions/wctob.texi: Likewise.
25358         * doc/posix-functions/wctomb.texi: Likewise.
25359         * doc/posix-functions/wctrans.texi: Likewise.
25360         * doc/posix-functions/wctype.texi: Likewise.
25361         * doc/posix-functions/wcwidth.texi: Likewise.
25362         * doc/posix-functions/wmemchr.texi: Likewise.
25363         * doc/posix-functions/wmemcmp.texi: Likewise.
25364         * doc/posix-functions/wmemcpy.texi: Likewise.
25365         * doc/posix-functions/wmemmove.texi: Likewise.
25366         * doc/posix-functions/wmemset.texi: Likewise.
25367         * doc/posix-functions/wprintf.texi: Likewise.
25368         * doc/posix-functions/wscanf.texi: Likewise.
25369
25370 2008-12-21  Bruno Haible  <bruno@clisp.org>
25371
25372         Update doc for HP-UX 11.11.
25373         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25374         in HP-UX version 11.00, not in all versions of HP-UX 11.
25375         * doc/posix-functions/fwide.texi: Likewise.
25376         * doc/posix-functions/fwprintf.texi: Likewise.
25377         * doc/posix-functions/fwscanf.texi: Likewise.
25378         * doc/posix-functions/inet_ntop.texi: Likewise.
25379         * doc/posix-functions/inet_pton.texi: Likewise.
25380         * doc/posix-functions/mbrlen.texi: Likewise.
25381         * doc/posix-functions/mbrtowc.texi: Likewise.
25382         * doc/posix-functions/mbsinit.texi: Likewise.
25383         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25384         * doc/posix-functions/swprintf.texi: Likewise.
25385         * doc/posix-functions/swscanf.texi: Likewise.
25386         * doc/posix-functions/towctrans.texi: Likewise.
25387         * doc/posix-functions/vfwprintf.texi: Likewise.
25388         * doc/posix-functions/vswprintf.texi: Likewise.
25389         * doc/posix-functions/vwprintf.texi: Likewise.
25390         * doc/posix-functions/wcrtomb.texi: Likewise.
25391         * doc/posix-functions/wcsrtombs.texi: Likewise.
25392         * doc/posix-functions/wcsstr.texi: Likewise.
25393         * doc/posix-functions/wctob.texi: Likewise.
25394         * doc/posix-functions/wctrans.texi: Likewise.
25395         * doc/posix-functions/wmemchr.texi: Likewise.
25396         * doc/posix-functions/wmemcmp.texi: Likewise.
25397         * doc/posix-functions/wmemcpy.texi: Likewise.
25398         * doc/posix-functions/wmemmove.texi: Likewise.
25399         * doc/posix-functions/wmemset.texi: Likewise.
25400         * doc/posix-functions/wprintf.texi: Likewise.
25401         * doc/posix-functions/wscanf.texi: Likewise.
25402
25403 2008-12-21  Bruno Haible  <bruno@clisp.org>
25404
25405         Work around a portability problem.
25406         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25407         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25408
25409 2008-12-20  Bruno Haible  <bruno@clisp.org>
25410
25411         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25412         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25413         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25415         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25416
25417         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25418         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25419         set.
25420         (GNULIB_defined_mbstate_t): New macro.
25421         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25422         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25423         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25424         reuses the system's mbrtowc function but works around the bugs.
25425         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25426         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25427         macros.
25428         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25429         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25430         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25431         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25432         REPLACE_MBSINIT if mbsinit needs to be overridden.
25433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25434         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25435         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25436         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25437         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25438         m4/locale-zh.m4.
25439         (Depends): Add mbsinit.
25440         * modules/mbsinit (Depends): Add mbrtowc.
25441         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25442
25443 2008-12-20  Bruno Haible  <bruno@clisp.org>
25444
25445         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25446         so that there are no conversion errors on AIX.
25447         * tests/test-mbsrtowcs.c (main): LIkewise.
25448
25449 2008-12-20  Bruno Haible  <bruno@clisp.org>
25450
25451         Work around wctob bug on Solaris <= 9.
25452         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25453         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25455         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25456         * modules/wctob (Files): Add m4/locale-fr.m4.
25457         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25458
25459 2008-12-20  Bruno Haible  <bruno@clisp.org>
25460
25461         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25462         /dev/null.
25463         * tests/test-select-in.sh: Likewise.
25464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25465
25466 2008-12-20  Bruno Haible  <bruno@clisp.org>
25467
25468         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25469         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25470         Cygwin 1.5.x.
25471
25472 2008-12-20  Bruno Haible  <bruno@clisp.org>
25473
25474         Ensure mbstate_t is defined on HP-UX 11.11.
25475         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25476         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25477         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25478         AC_USE_SYSTEM_EXTENSIONS.
25479         * modules/fnmatch (Depends-on): Add extensions.
25480         * modules/mbrlen (Depends-on): Likewise.
25481         * modules/mbrtowc (Depends-on): Likewise.
25482         * modules/mbsinit (Depends-on): Likewise.
25483         * modules/mbsrtowcs (Depends-on): Likewise.
25484         * modules/mbswidth (Depends-on): Likewise.
25485         * modules/quotearg (Depends-on): Likewise.
25486         * modules/strftime (Depends-on): Likewise.
25487
25488 2008-12-20  Bruno Haible  <bruno@clisp.org>
25489
25490         Ensure wctob is declared on IRIX 6.5.
25491         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25492         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25493         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25495         of HAVE_WCTOB.
25496         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25497         HAVE_WCTOB.
25498         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25499
25500 2008-12-19  Bruno Haible  <bruno@clisp.org>
25501
25502         * modules/mbsrtowcs-tests: New file.
25503         * tests/test-mbsrtowcs1.sh: New file.
25504         * tests/test-mbsrtowcs2.sh: New file.
25505         * tests/test-mbsrtowcs3.sh: New file.
25506         * tests/test-mbsrtowcs4.sh: New file.
25507         * tests/test-mbsrtowcs.c: New file.
25508
25509         New module 'mbsrtowcs'.
25510         * lib/wchar.in.h (mbsrtowcs): New declaration.
25511         * lib/mbsrtowcs.c: New file.
25512         * m4/mbsrtowcs.m4: New file.
25513         * modules/mbsrtowcs: New file.
25514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25515         HAVE_MBSRTOWCS.
25516         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25517         HAVE_MBSRTOWCS.
25518         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25519
25520 2008-12-19  Bruno Haible  <bruno@clisp.org>
25521
25522         New module 'mbrlen'.
25523         * lib/wchar.in.h (mbrlen): New declaration.
25524         * lib/mbrlen.c: New file.
25525         * m4/mbrlen.m4: New file.
25526         * modules/mbrlen: New file.
25527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25528         HAVE_MBRLEN.
25529         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25530         HAVE_MBRLEN.
25531         * doc/posix-functions/mbrlen.texi: Document the new module.
25532
25533 2008-12-19  Bruno Haible  <bruno@clisp.org>
25534
25535         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25536         * modules/mbrtowc (Depends-on): Add verify.
25537         Suggested by Paul Eggert.
25538
25539 2008-12-18  Bruno Haible  <bruno@clisp.org>
25540
25541         * modules/mbsinit-tests: New file.
25542         * tests/test-mbsinit.sh: New file.
25543         * tests/test-mbsinit.c: New file.
25544
25545 2008-12-18  Bruno Haible  <bruno@clisp.org>
25546
25547         * modules/mbrtowc-tests: New file.
25548         * tests/test-mbrtowc1.sh: New file.
25549         * tests/test-mbrtowc2.sh: New file.
25550         * tests/test-mbrtowc3.sh: New file.
25551         * tests/test-mbrtowc4.sh: New file.
25552         * tests/test-mbrtowc.c: New file.
25553
25554         New module 'mbrtowc'.
25555         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25556         mbsinit and mbrtowc.
25557         (mbrtowc): New declaration.
25558         * lib/mbrtowc.c: New file.
25559         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25560         * modules/mbrtowc: New file.
25561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25562         HAVE_MBRTOWC.
25563         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25564         HAVE_MBRTOWC.
25565         * doc/posix-functions/mbrtowc.texi: Document the new module.
25566
25567 2008-12-18  Bruno Haible  <bruno@clisp.org>
25568
25569         New module 'wctob'.
25570         * lib/wchar.in.h (wctob): New declaration.
25571         * lib/wctob.c: New file.
25572         * m4/wctob.m4: New file.
25573         * modules/wctob: New file.
25574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25575         HAVE_WCTOB.
25576         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25577         * doc/posix-functions/wctob.texi: Document the new module.
25578
25579 2008-12-18  Bruno Haible  <bruno@clisp.org>
25580
25581         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25582         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25583
25584 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25585
25586         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25587         G. Christensen" <tgc@jupiterrise.com>.
25588
25589         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25590         G. Christensen" <tgc@jupiterrise.com>.
25591
25592         * lib/flock.c: Need to include string.h.  Reported by "Tom
25593         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25594         <ebb9@byu.net>.
25595
25596 2008-12-18  Bruno Haible  <bruno@clisp.org>
25597
25598         * m4/locale-ja.m4: New file, from GNU gettext.
25599
25600 2008-12-17  Bruno Haible  <bruno@clisp.org>
25601
25602         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25603         Suggested by Eric Blake.
25604
25605 2008-12-17  Bruno Haible  <bruno@clisp.org>
25606
25607         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25608
25609 2008-12-17  Bruno Haible  <bruno@clisp.org>
25610
25611         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25612         * modules/mbsinit (Depends-on): Add verify.
25613         Suggested by Paul Eggert.
25614
25615 2008-12-17  Bruno Haible  <bruno@clisp.org>
25616
25617         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25618         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25619         gl_FUNC_MBRTOWC.
25620         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25621         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25622         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25623         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25624         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25625         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25626         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25627         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25628         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25629         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25630         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25631         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25632         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25633         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25634         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25635         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25636         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25637         * modules/trim (configure.ac): Likewise.
25638
25639 2008-12-17  Bruno Haible  <bruno@clisp.org>
25640
25641         * modules/btowc-tests: New file.
25642         * tests/test-btowc1.sh: New file.
25643         * tests/test-btowc2.sh: New file.
25644         * tests/test-btowc.c: New file.
25645
25646         New module 'btowc'.
25647         * lib/wchar.in.h (btowc): New declaration.
25648         * lib/btowc.c: New file.
25649         * m4/btowc.m4: New file.
25650         * modules/btowc: New file.
25651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25652         HAVE_BTOWC.
25653         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25654         * doc/posix-functions/btowc.texi: Document the new module.
25655
25656 2008-12-17  Bruno Haible  <bruno@clisp.org>
25657
25658         New module 'mbsinit'.
25659         * lib/wchar.in.h (mbsinit): New declaration.
25660         * lib/mbsinit.c: New file.
25661         * m4/mbsinit.m4: New file.
25662         * modules/mbsinit: New file.
25663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25664         HAVE_MBSINIT.
25665         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25666         HAVE_MBSINIT.
25667         * doc/posix-functions/mbsinit.texi: Document the new module.
25668
25669 2008-12-16  Bruno Haible  <bruno@clisp.org>
25670
25671         * lib/unistd.in.h: Add comment.
25672         * tests/test-environ.c: Don't include <stdlib.h>.
25673
25674 2008-12-16  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/parse-duration.h (parse_duration): Document return value
25677         convention.
25678         * lib/parse-duration.c: Include specification header first. Add
25679         comments.
25680         (_): Remove macro.
25681         (parse_year_month_day, parse_hour_minute_second): Move side effects
25682         outside of strchr call.
25683         (parse_non_iso8601): Move side effects outside of isspace call.
25684         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25685         call.
25686
25687 2008-12-16  Bruno Haible  <bruno@clisp.org>
25688
25689         * tests/test-parse-duration.sh: Produce no output when the test
25690         succeeds.
25691
25692 2008-12-16  Bruno Haible  <bruno@clisp.org>
25693
25694         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25695         expressions.
25696
25697 2008-12-15  Bruno Haible  <bruno@clisp.org>
25698
25699         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25700         * doc/glibc-functions/flistxattr.texi: Likewise.
25701         * doc/glibc-functions/fopencookie.texi: Likewise.
25702         * doc/glibc-functions/fremovexattr.texi: Likewise.
25703         * doc/glibc-functions/fsetxattr.texi: Likewise.
25704         * doc/glibc-functions/getxattr.texi: Likewise.
25705         * doc/glibc-functions/lgetxattr.texi: Likewise.
25706         * doc/glibc-functions/listxattr.texi: Likewise.
25707         * doc/glibc-functions/llistxattr.texi: Likewise.
25708         * doc/glibc-functions/lremovexattr.texi: Likewise.
25709         * doc/glibc-functions/lsetxattr.texi: Likewise.
25710         * doc/glibc-functions/removexattr.texi: Likewise.
25711         * doc/glibc-functions/setxattr.texi: Likewise.
25712         * doc/posix-functions/open_memstream.texi: Likewise.
25713
25714 2008-12-15  Eric Blake  <ebb9@byu.net>
25715
25716         Update doc for cygwin 1.7.
25717         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25718         functions.
25719         * doc/posix-functions/fchmodat.texi: Likewise.
25720         * doc/posix-functions/fchownat.texi: Likewise.
25721         * doc/posix-functions/fdopendir.texi: Likewise.
25722         * doc/posix-functions/fmemopen.texi: Likewise.
25723         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25724         * doc/posix-functions/fstatat.texi: Likewise.
25725         * doc/posix-functions/futimens.texi: Likewise.
25726         * doc/posix-functions/gai_strerror.texi: Likewise.
25727         * doc/posix-functions/getaddrinfo.texi: Likewise.
25728         * doc/posix-functions/getnameinfo.texi: Likewise.
25729         * doc/posix-functions/if_freenameindex.texi: Likewise.
25730         * doc/posix-functions/if_indextoname.texi: Likewise.
25731         * doc/posix-functions/if_nameindex.texi: Likewise.
25732         * doc/posix-functions/if_nametoindex.texi: Likewise.
25733         * doc/posix-functions/insque.texi: Likewise.
25734         * doc/posix-functions/linkat.texi: Likewise.
25735         * doc/posix-functions/llrint.texi: Likewise.
25736         * doc/posix-functions/llrintf.texi: Likewise.
25737         * doc/posix-functions/llrintl.texi: Likewise.
25738         * doc/posix-functions/lockf.texi: Likewise.
25739         * doc/posix-functions/lrintl.texi: Likewise.
25740         * doc/posix-functions/mkdirat.texi: Likewise.
25741         * doc/posix-functions/mkfifoat.texi: Likewise.
25742         * doc/posix-functions/mknodat.texi: Likewise.
25743         * doc/posix-functions/mq_close.texi: Likewise.
25744         * doc/posix-functions/mq_getattr.texi: Likewise.
25745         * doc/posix-functions/mq_notify.texi: Likewise.
25746         * doc/posix-functions/mq_open.texi: Likewise.
25747         * doc/posix-functions/mq_receive.texi: Likewise.
25748         * doc/posix-functions/mq_send.texi: Likewise.
25749         * doc/posix-functions/mq_setattr.texi: Likewise.
25750         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25751         * doc/posix-functions/mq_timedsend.texi: Likewise.
25752         * doc/posix-functions/mq_unlink.texi: Likewise.
25753         * doc/posix-functions/open_memstream.texi: Likewise.
25754         * doc/posix-functions/openat.texi: Likewise.
25755         * doc/posix-functions/posix_fadvise.texi: Likewise.
25756         * doc/posix-functions/posix_fallocate.texi: Likewise.
25757         * doc/posix-functions/posix_madvise.texi: Likewise.
25758         * doc/posix-functions/posix_memalign.texi: Likewise.
25759         * doc/posix-functions/posix_openpt.texi: Likewise.
25760         * doc/posix-functions/readlinkat.texi: Likewise.
25761         * doc/posix-functions/remque.texi: Likewise.
25762         * doc/posix-functions/renameat.texi: Likewise.
25763         * doc/posix-functions/rintl.texi: Likewise.
25764         * doc/posix-functions/sem_unlink.texi: Likewise.
25765         * doc/posix-functions/shm_open.texi: Likewise.
25766         * doc/posix-functions/shm_unlink.texi: Likewise.
25767         * doc/posix-functions/signgam.texi: Likewise.
25768         * doc/posix-functions/sigset.texi: Likewise.
25769         * doc/posix-functions/stpcpy.texi: Likewise.
25770         * doc/posix-functions/stpncpy.texi: Likewise.
25771         * doc/posix-functions/strerror.texi: Likewise.
25772         * doc/posix-functions/strtod.texi: Likewise.
25773         * doc/posix-functions/symlinkat.texi: Likewise.
25774         * doc/posix-functions/unlinkat.texi: Likewise.
25775         * doc/posix-functions/utimensat.texi: Likewise.
25776         * doc/glibc-functions/bindresvport.texi: Likewise.
25777         * doc/glibc-functions/dn_expand.texi: Likewise.
25778         * doc/glibc-functions/exp10.texi: Likewise.
25779         * doc/glibc-functions/exp10f.texi: Likewise.
25780         * doc/glibc-functions/fgetxattr.texi: Likewise.
25781         * doc/glibc-functions/flistxattr.texi: Likewise.
25782         * doc/glibc-functions/fopencookie.texi: Likewise.
25783         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25784         * doc/glibc-functions/fremovexattr.texi: Likewise.
25785         * doc/glibc-functions/fsetxattr.texi: Likewise.
25786         * doc/glibc-functions/getifaddrs.texi: Likewise.
25787         * doc/glibc-functions/getxattr.texi: Likewise.
25788         * doc/glibc-functions/lgetxattr.texi: Likewise.
25789         * doc/glibc-functions/listxattr.texi: Likewise.
25790         * doc/glibc-functions/llistxattr.texi: Likewise.
25791         * doc/glibc-functions/lremovexattr.texi: Likewise.
25792         * doc/glibc-functions/lsetxattr.texi: Likewise.
25793         * doc/glibc-functions/pow10.texi: Likewise.
25794         * doc/glibc-functions/pow10f.texi: Likewise.
25795         * doc/glibc-functions/rcmd_af.texi: Likewise.
25796         * doc/glibc-functions/removexattr.texi: Likewise.
25797         * doc/glibc-functions/res_init.texi: Likewise.
25798         * doc/glibc-functions/res_mkquery.texi: Likewise.
25799         * doc/glibc-functions/res_query.texi: Likewise.
25800         * doc/glibc-functions/res_querydomain.texi: Likewise.
25801         * doc/glibc-functions/res_send.texi: Likewise.
25802         * doc/glibc-functions/rresvport_af.texi: Likewise.
25803         * doc/glibc-functions/setxattr.texi: Likewise.
25804         * doc/glibc-functions/strcasestr.texi: Likewise.
25805
25806 2008-12-15  Bruno Haible  <bruno@clisp.org>
25807
25808         Fix compilation error on OSF/1 4.0.
25809         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25810         <sys/time.h>, simply delegate to the system header.
25811         Reported by Daniel Richard G. <oss@teragram.com>.
25812
25813 2008-12-15  Bruno Haible  <bruno@clisp.org>
25814
25815         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25816         * doc/posix-functions/fchmodat.texi: Likewise.
25817         * doc/posix-functions/fchownat.texi: Likewise.
25818         * doc/posix-functions/fdopendir.texi: Likewise.
25819         * doc/posix-functions/fstatat.texi: Likewise.
25820         * doc/posix-functions/mkdirat.texi: Likewise.
25821         * doc/posix-functions/unlinkat.texi: Likewise.
25822
25823 2008-12-14  Bruno Haible  <bruno@clisp.org>
25824
25825         Update doc for POSIX:2008.
25826         * doc/posix-functions/faccessat.texi: New file.
25827         * doc/posix-functions/fchmodat.texi: New file.
25828         * doc/posix-functions/fchownat.texi: New file.
25829         * doc/posix-functions/fdopendir.texi: New file.
25830         * doc/posix-functions/fstatat.texi: New file.
25831         * doc/posix-functions/futimens.texi: New file.
25832         * doc/posix-functions/linkat.texi: New file.
25833         * doc/posix-functions/mkdirat.texi: New file.
25834         * doc/posix-functions/mkfifoat.texi: New file.
25835         * doc/posix-functions/mknodat.texi: New file.
25836         * doc/posix-functions/open_wmemstream.texi: New file.
25837         * doc/posix-functions/openat.texi: New file.
25838         * doc/posix-functions/psiginfo.texi: New file.
25839         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25840         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25841         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25842         * doc/posix-functions/readlinkat.texi: New file.
25843         * doc/posix-functions/renameat.texi: New file.
25844         * doc/posix-functions/strerror_l.texi: New file.
25845         * doc/posix-functions/symlinkat.texi: New file.
25846         * doc/posix-functions/unlinkat.texi: New file.
25847         * doc/posix-functions/utimensat.texi: New file.
25848         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25849
25850 2008-12-14  Bruno Haible  <bruno@clisp.org>
25851
25852         Update doc for POSIX:2008.
25853         * doc/posix-functions/alphasort.texi: Renamed from
25854         doc/glibc-functions/alphasort.texi.
25855         * doc/posix-functions/dirfd.texi: Renamed from
25856         doc/glibc-functions/dirfd.texi.
25857         * doc/posix-functions/dprintf.texi: Renamed from
25858         doc/glibc-functions/dprintf.texi.
25859         * doc/posix-functions/duplocale.texi: Renamed from
25860         doc/glibc-functions/duplocale.texi.
25861         * doc/posix-functions/fexecve.texi: Renamed from
25862         doc/glibc-functions/fexecve.texi.
25863         * doc/posix-functions/fmemopen.texi: Renamed from
25864         doc/glibc-functions/fmemopen.texi.
25865         * doc/posix-functions/freelocale.texi: Renamed from
25866         doc/glibc-functions/freelocale.texi.
25867         * doc/posix-functions/getdate_err.texi: Renamed from
25868         doc/glibc-functions/getdate_err.texi.
25869         * doc/posix-functions/isalnum_l.texi: Renamed from
25870         doc/glibc-functions/isalnum_l.texi.
25871         * doc/posix-functions/isalpha_l.texi: Renamed from
25872         doc/glibc-functions/isalpha_l.texi.
25873         * doc/posix-functions/isblank_l.texi: Renamed from
25874         doc/glibc-functions/isblank_l.texi.
25875         * doc/posix-functions/iscntrl_l.texi: Renamed from
25876         doc/glibc-functions/iscntrl_l.texi.
25877         * doc/posix-functions/isdigit_l.texi: Renamed from
25878         doc/glibc-functions/isdigit_l.texi.
25879         * doc/posix-functions/isgraph_l.texi: Renamed from
25880         doc/glibc-functions/isgraph_l.texi.
25881         * doc/posix-functions/islower_l.texi: Renamed from
25882         doc/glibc-functions/islower_l.texi.
25883         * doc/posix-functions/isprint_l.texi: Renamed from
25884         doc/glibc-functions/isprint_l.texi.
25885         * doc/posix-functions/ispunct_l.texi: Renamed from
25886         doc/glibc-functions/ispunct_l.texi.
25887         * doc/posix-functions/isspace_l.texi: Renamed from
25888         doc/glibc-functions/isspace_l.texi.
25889         * doc/posix-functions/isupper_l.texi: Renamed from
25890         doc/glibc-functions/isupper_l.texi.
25891         * doc/posix-functions/iswalnum_l.texi: Renamed from
25892         doc/glibc-functions/iswalnum_l.texi.
25893         * doc/posix-functions/iswalpha_l.texi: Renamed from
25894         doc/glibc-functions/iswalpha_l.texi.
25895         * doc/posix-functions/iswblank_l.texi: Renamed from
25896         doc/glibc-functions/iswblank_l.texi.
25897         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25898         doc/glibc-functions/iswcntrl_l.texi.
25899         * doc/posix-functions/iswctype_l.texi: Renamed from
25900         doc/glibc-functions/iswctype_l.texi.
25901         * doc/posix-functions/iswdigit_l.texi: Renamed from
25902         doc/glibc-functions/iswdigit_l.texi.
25903         * doc/posix-functions/iswgraph_l.texi: Renamed from
25904         doc/glibc-functions/iswgraph_l.texi.
25905         * doc/posix-functions/iswlower_l.texi: Renamed from
25906         doc/glibc-functions/iswlower_l.texi.
25907         * doc/posix-functions/iswprint_l.texi: Renamed from
25908         doc/glibc-functions/iswprint_l.texi.
25909         * doc/posix-functions/iswpunct_l.texi: Renamed from
25910         doc/glibc-functions/iswpunct_l.texi.
25911         * doc/posix-functions/iswspace_l.texi: Renamed from
25912         doc/glibc-functions/iswspace_l.texi.
25913         * doc/posix-functions/iswupper_l.texi: Renamed from
25914         doc/glibc-functions/iswupper_l.texi.
25915         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25916         doc/glibc-functions/iswxdigit_l.texi.
25917         * doc/posix-functions/isxdigit_l.texi: Renamed from
25918         doc/glibc-functions/isxdigit_l.texi.
25919         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25920         doc/glibc-functions/mbsnrtowcs.texi.
25921         * doc/posix-functions/mkdtemp.texi: Renamed from
25922         doc/glibc-functions/mkdtemp.texi.
25923         * doc/posix-functions/newlocale.texi: Renamed from
25924         doc/glibc-functions/newlocale.texi.
25925         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25926         doc/glibc-functions/nl_langinfo_l.texi.
25927         * doc/posix-functions/open_memstream.texi: Renamed from
25928         doc/glibc-functions/open_memstream.texi.
25929         * doc/posix-functions/opterr.texi: Renamed from
25930         doc/glibc-functions/opterr.texi.
25931         * doc/posix-functions/optind.texi: Renamed from
25932         doc/glibc-functions/optind.texi.
25933         * doc/posix-functions/optopt.texi: Renamed from
25934         doc/glibc-functions/optopt.texi.
25935         * doc/posix-functions/psignal.texi: Renamed from
25936         doc/glibc-functions/psignal.texi.
25937         * doc/posix-functions/scandir.texi: Renamed from
25938         doc/glibc-functions/scandir.texi.
25939         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25940         doc/glibc-functions/sched_get_priority_min.texi.
25941         * doc/posix-functions/signgam.texi: Renamed from
25942         doc/glibc-functions/signgam.texi.
25943         * doc/posix-functions/stpcpy.texi: Renamed from
25944         doc/glibc-functions/stpcpy.texi.
25945         * doc/posix-functions/stpncpy.texi: Renamed from
25946         doc/glibc-functions/stpncpy.texi.
25947         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25948         doc/glibc-functions/strcasecmp_l.texi.
25949         * doc/posix-functions/strcoll_l.texi: Renamed from
25950         doc/glibc-functions/strcoll_l.texi.
25951         * doc/posix-functions/strfmon_l.texi: Renamed from
25952         doc/glibc-functions/strfmon_l.texi.
25953         * doc/posix-functions/strftime_l.texi: Renamed from
25954         doc/glibc-functions/strftime_l.texi.
25955         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25956         doc/glibc-functions/strncasecmp_l.texi.
25957         * doc/posix-functions/strndup.texi: Renamed from
25958         doc/glibc-functions/strndup.texi.
25959         * doc/posix-functions/strnlen.texi: Renamed from
25960         doc/glibc-functions/strnlen.texi.
25961         * doc/posix-functions/strsignal.texi: Renamed from
25962         doc/glibc-functions/strsignal.texi.
25963         * doc/posix-functions/strxfrm_l.texi: Renamed from
25964         doc/glibc-functions/strxfrm_l.texi.
25965         * doc/posix-functions/timer_gettime.texi: Renamed from
25966         doc/glibc-functions/timer_gettime.texi.
25967         * doc/posix-functions/tolower_l.texi: Renamed from
25968         doc/glibc-functions/tolower_l.texi.
25969         * doc/posix-functions/toupper_l.texi: Renamed from
25970         doc/glibc-functions/toupper_l.texi.
25971         * doc/posix-functions/towctrans_l.texi: Renamed from
25972         doc/glibc-functions/towctrans_l.texi.
25973         * doc/posix-functions/towlower_l.texi: Renamed from
25974         doc/glibc-functions/towlower_l.texi.
25975         * doc/posix-functions/towupper_l.texi: Renamed from
25976         doc/glibc-functions/towupper_l.texi.
25977         * doc/posix-functions/uselocale.texi: Renamed from
25978         doc/glibc-functions/uselocale.texi.
25979         * doc/posix-functions/vdprintf.texi: Renamed from
25980         doc/glibc-functions/vdprintf.texi.
25981         * doc/posix-functions/wcpcpy.texi:
25982         Renamed from doc/glibc-functions/wcpcpy.texi.
25983         * doc/posix-functions/wcpncpy.texi: Renamed from
25984         doc/glibc-functions/wcpncpy.texi.
25985         * doc/posix-functions/wcscasecmp.texi: Renamed from
25986         doc/glibc-functions/wcscasecmp.texi.
25987         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25988         doc/glibc-functions/wcscasecmp_l.texi.
25989         * doc/posix-functions/wcscoll_l.texi: Renamed from
25990         doc/glibc-functions/wcscoll_l.texi.
25991         * doc/posix-functions/wcsdup.texi: Renamed from
25992         doc/glibc-functions/wcsdup.texi.
25993         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25994         doc/glibc-functions/wcsncasecmp.texi.
25995         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25996         doc/glibc-functions/wcsncasecmp_l.texi.
25997         * doc/posix-functions/wcsnlen.texi: Renamed from
25998         doc/glibc-functions/wcsnlen.texi.
25999         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26000         doc/glibc-functions/wcsnrtombs.texi.
26001         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26002         doc/glibc-functions/wcsxfrm_l.texi.
26003         * doc/posix-functions/wctrans_l.texi: Renamed from
26004         doc/glibc-functions/wctrans_l.texi.
26005         * doc/posix-functions/wctype_l.texi: Renamed from
26006         doc/glibc-functions/wctype_l.texi.
26007         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26008         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26009         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26010         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26011         these subsections.
26012         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26013         Remove sections.
26014
26015 2008-12-14  Bruno Haible  <bruno@clisp.org>
26016
26017         Update doc for POSIX:2008.
26018         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26019
26020 2008-12-14  Bruno Haible  <bruno@clisp.org>
26021
26022         Update doc for POSIX:2008.
26023         * doc/pastposix-functions/bcmp.texi: Renamed from
26024         doc/posix-functions/bcmp.texi.
26025         * doc/pastposix-functions/bcopy.texi: Renamed from
26026         doc/posix-functions/bcopy.texi.
26027         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26028         doc/posix-functions/bsd_signal.texi.
26029         * doc/pastposix-functions/bzero.texi: Renamed from
26030         doc/posix-functions/bzero.texi.
26031         * doc/pastposix-functions/ecvt.texi: Renamed from
26032         doc/posix-functions/ecvt.texi.
26033         * doc/pastposix-functions/fcvt.texi: Renamed from
26034         doc/posix-functions/fcvt.texi.
26035         * doc/pastposix-functions/ftime.texi: Renamed from
26036         doc/posix-functions/ftime.texi.
26037         * doc/pastposix-functions/gcvt.texi: Renamed from
26038         doc/posix-functions/gcvt.texi.
26039         * doc/pastposix-functions/getcontext.texi: Renamed from
26040         doc/posix-functions/getcontext.texi.
26041         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26042         doc/posix-functions/gethostbyaddr.texi.
26043         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26044         doc/posix-functions/gethostbyname.texi.
26045         * doc/pastposix-functions/getwd.texi: Renamed from
26046         doc/posix-functions/getwd.texi.
26047         * doc/pastposix-functions/h_errno.texi: Renamed from
26048         doc/posix-functions/h_errno.texi.
26049         * doc/pastposix-functions/index.texi: Renamed from
26050         doc/posix-functions/index.texi.
26051         * doc/pastposix-functions/makecontext.texi: Renamed from
26052         doc/posix-functions/makecontext.texi.
26053         * doc/pastposix-functions/mktemp.texi: Renamed from
26054         doc/posix-functions/mktemp.texi.
26055         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26056         doc/posix-functions/pthread_attr_getstackaddr.texi.
26057         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26058         doc/posix-functions/pthread_attr_setstackaddr.texi.
26059         * doc/pastposix-functions/rindex.texi: Renamed from
26060         doc/posix-functions/rindex.texi.
26061         * doc/pastposix-functions/scalb.texi: Renamed from
26062         doc/posix-functions/scalb.texi.
26063         * doc/pastposix-functions/setcontext.texi: Renamed from
26064         doc/posix-functions/setcontext.texi.
26065         * doc/pastposix-functions/swapcontext.texi: Renamed from
26066         doc/posix-functions/swapcontext.texi.
26067         * doc/pastposix-functions/ualarm.texi: Renamed from
26068         doc/posix-functions/ualarm.texi.
26069         * doc/pastposix-functions/usleep.texi: Renamed from
26070         doc/posix-functions/usleep.texi.
26071         * doc/pastposix-functions/vfork.texi: Renamed from
26072         doc/posix-functions/vfork.texi.
26073         * doc/pastposix-functions/wcswcs.texi: Renamed from
26074         doc/posix-functions/wcswcs.texi.
26075         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26076         (Function Substitutes): Update.
26077
26078 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26079
26080         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26081         m4/strerror.m4.
26082
26083 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26084             Bruno Haible  <bruno@clisp.org>
26085
26086         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26087
26088 2008-12-13  Bruno Haible  <bruno@clisp.org>
26089
26090         * modules/strtoull (Depends-on): Remove unistd.
26091
26092 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26093
26094         * modules/strtoull (Depends-on): Add stdlib.
26095
26096 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26097
26098         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26099
26100 2008-12-10  Jim Meyering  <meyering@redhat.com>
26101
26102         gl_ASSERT: don't say assertions are disabled when they're not
26103         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26104         "checking whether to enable assertions... no", when they are in
26105         fact enabled.  This is solely a bug in the output of configure.
26106         In spite of saying "no", NDEBUG was not defined in that case.
26107         Also, as noted by Eric Blake, leave assertions enabled upon
26108         --enable-assert=INVALID.
26109
26110 2008-12-10  Bruno Haible  <bruno@clisp.org>
26111
26112         Change MODULES.html to refer to POSIX:2008 where possible.
26113         * MODULES.html.sh (POSIX2008_URL): New variable.
26114         (posix_headers): Remove sys/timeb, ucontext.
26115         (posix2001_headers): New variable.
26116         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26117         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26118         index, makecontext, mktemp, pthread_attr_getstackaddr,
26119         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26120         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26121         (posix2001_functions): New variable.
26122         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26123         otherwise.
26124
26125 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26126
26127         add missing include to parse-duration.c
26128         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26129         * modules/parse-duration (Depends-on): Add xalloc.
26130
26131         fix sed script reading maint.mk
26132         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26133         (syntax-check-rules): Use it.
26134
26135 2008-12-09  Bruno Haible  <bruno@clisp.org>
26136
26137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26138         MacOS X 10.4/PowerPC.
26139         Reported by Simon Josefsson.
26140
26141 2008-12-08  Jim Meyering  <meyering@redhat.com>
26142
26143         work around mingw's lack of some S_IF definitions
26144         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26145         Reported by Simon Josefsson.
26146
26147 2008-12-08  Bruno Haible  <bruno@clisp.org>
26148
26149         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26150         applied to variables. Needed on MacOS X 10.4/PowerPC.
26151         Reported by Simon Josefsson.
26152
26153 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26154         and Eric Blake  <ebb9@byu.net>
26155
26156         assert: honor --enable-assert
26157         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26158         order to honor --enable-assert, rather than treating it as a
26159         synonym for --disable-assert.
26160
26161 2008-12-08  Jim Meyering  <meyering@redhat.com>
26162
26163         * lib/posixtm.c: Remove now-useless declaration of mktime.
26164
26165         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26166
26167 2008-12-07  Bruno Haible  <bruno@clisp.org>
26168
26169         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26170         test_once): Mark functions as static.
26171         * tests/test-tls.c (test_tls): Likewise.
26172
26173 2008-12-07  Bruno Haible  <bruno@clisp.org>
26174
26175         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26176         iconv_register_autodetect.
26177
26178 2008-12-07  Jim Meyering  <meyering@redhat.com>
26179
26180         posixtm.c: avoid a warning
26181         * lib/posixtm.c (posixtime): Don't initialize tm0.
26182         It's no longer needed to placate gcc4's -Wuninitialized,
26183         and the attempt to placate would elicit a new warning.
26184
26185         unicodeio.c: mark unused parameters
26186         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26187         (fallback_failure_callback): Likewise.
26188
26189 2008-12-07  Bruno Haible  <bruno@clisp.org>
26190
26191         * gnulib-tool (func_create_testdir): When building the tests
26192         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26193         Reported by Simon Josefsson.
26194
26195 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26196
26197         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26198
26199 2008-12-06  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26202         Suggested by Eric Blake.
26203
26204 2008-12-06  Bruno Haible  <bruno@clisp.org>
26205
26206         Fix a c-stack test failure on MacOS X.
26207         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26208         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26209         handler for SIGBUS as well.
26210         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26211         install a signal handler for SIGBUS as well.
26212         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26213
26214 2008-12-06  Bruno Haible  <bruno@clisp.org>
26215
26216         Advocacy documentation.
26217         * doc/gnulib-intro.texi (Benefits): New section.
26218         * doc/gnulib.texi: Update.
26219
26220 2008-12-06  Bruno Haible  <bruno@clisp.org>
26221
26222         Document the 'manywarnings' module.
26223         * doc/manywarnings.texi: New file.
26224         * doc/gnulib.texi: Include it.
26225
26226 2008-12-05  Eric Blake  <ebb9@byu.net>
26227
26228         tests: silence some gcc warnings
26229         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26230         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26231         type mismatches.
26232
26233 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26234             Bruno Haible  <bruno@clisp.org>
26235
26236         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26237
26238 2008-11-29  Jim Meyering  <meyering@redhat.com>
26239
26240         unicodeio.c: mark unused parameters
26241         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26242         (fallback_failure_callback): Likewise.
26243
26244         fts: fix a thinko
26245         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26246         (set_stat_type): Return S_IF*-valued "type" directly.
26247         Prompted by James Youngman's spotting a related bug.
26248         Confirmed by further testing through find.
26249
26250         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26251         * lib/fts.c (D_TYPE): Define.
26252         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26253         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26254         (s_ifmt_shift_bits): New function.
26255         (set_stat_type): New function.
26256         (fts_build): When not calling fts_stat, call set_stat_type
26257         to propagate dirent.d_type info to fts_read caller.
26258         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26259         fts_statp->st_mode type information may be valid.
26260
26261 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26262
26263         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26264         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26265         <sds@gnu.org>.
26266
26267 2008-11-20  Bruno Haible  <bruno@clisp.org>
26268
26269         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26270         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26271         INCLUDE_NEXT.
26272         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26273         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26274         * modules/math (Makefile.am): Substitute
26275         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26276         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26277
26278 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26279             Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/stdint.in.h: Define all type macros so that their expansion is
26282         a single typedef'ed token. Fixes a compilation failure in Boost which
26283         does "using ::int8_t;".
26284
26285 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26286
26287         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26288         gl_MANYWARN_ALL_GCC.
26289         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26290         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26291         * modules/manywarnings: New file.
26292         * MODULES.html.sh: Mention manywarnings module.
26293
26294 2008-11-18  Bruno Haible  <bruno@clisp.org>
26295
26296         * doc/gnulib-tool.texi (Unit tests): New section.
26297
26298 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26299
26300         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26301         paths like 'lib/po/foo.po'.
26302
26303 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26304
26305         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26306         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26307
26308 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26309
26310         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26311         parameter works.
26312
26313 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26314
26315         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26316
26317 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26318
26319         * modules/parse-duration-tests: New file.
26320         * tests/test-parse-duration.sh: New file.
26321         * tests/test-parse-duration.c: New file.
26322
26323         New module 'parse-duration'.
26324         * lib/parse-duration.h: New file.
26325         * lib/parse-duration.c: New file.
26326         * modules/parse-duration: New file.
26327
26328 2008-11-17  Bruno Haible  <bruno@clisp.org>
26329
26330         * tests/test-select-out.sh: Comment out the first pipe test.
26331         Reported by Simon Josefsson.
26332
26333 2008-11-17  Bruno Haible  <bruno@clisp.org>
26334
26335         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26337         gl_HOSTENT.
26338
26339 2008-11-17  Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26342         -lnetwork and -lnet. Needed for Haiku and BeOS.
26343
26344 2008-11-16  Bruno Haible  <bruno@clisp.org>
26345
26346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26347
26348 2008-11-16  Bruno Haible  <bruno@clisp.org>
26349
26350         Avoid test failure on Haiku.
26351         * tests/test-fsync.c: Include <errno.h>.
26352         (main): Don't require that fsync (0) fails.
26353
26354 2008-11-15  Bruno Haible  <bruno@clisp.org>
26355
26356         New module 'hostent'.
26357         * modules/hostent: New file.
26358         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26359
26360 2008-11-15  Bruno Haible  <bruno@clisp.org>
26361
26362         New module 'servent'.
26363         * modules/servent: New file.
26364         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26365
26366 2008-11-15  Bruno Haible  <bruno@clisp.org>
26367
26368         Avoid generating same test program with two different rules.
26369         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26370         test-frexp to test-frexp-nolibm.
26371         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26372         test-frexpl to test-frexpl-nolibm.
26373
26374 2008-11-15  Bruno Haible  <bruno@clisp.org>
26375
26376         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26377         $(FREXPL_LIBM).
26378
26379 2008-11-15  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/netdb.in.h: Activate the definitions also when the system's
26382         <netdb.h> has 'struct addrinfo'.
26383         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26384         EAI_OVERFLOW or AI_NUMERICSERV.
26385         * doc/posix-headers/netdb.texi: Document the problem.
26386
26387 2008-11-15  Bruno Haible  <bruno@clisp.org>
26388
26389         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26390
26391         Make the 'sched' module work on platforms where <sched.h> exists but
26392         is incomplete (such as Haiku).
26393         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26394         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26395         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26396         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26397         HAVE_STRUCT_SCHED_PARAM.
26398         * modules/sched (Depends-on): Add include_next.
26399         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26400         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26401         * doc/posix-headers/sched.texi: Document the issue.
26402
26403 2008-11-13  Jim Meyering  <meyering@redhat.com>
26404
26405         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26406         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26407         test would fail due to the difference in the Report bugs to ...
26408         line.  The expected address is empty, "<>", while the actual
26409         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26410
26411 2008-11-12  Bruno Haible  <bruno@clisp.org>
26412
26413         lstat: don't compile lstat.c on systems lacking lstat
26414         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26415         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26416         Reported by Daniel P. Berrange via Jim Meyering.
26417
26418 2008-11-12  Jim Meyering  <meyering@redhat.com>
26419
26420         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26421
26422 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26423
26424         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26425         instead.
26426
26427 2008-11-12  Bruno Haible  <bruno@clisp.org>
26428
26429         * lib/unicodeio.c: Include unistr.h.
26430         (utf8_wctomb): Remove function.
26431         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26432
26433 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26434
26435         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26436         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26437         <bruno@clisp.org>.
26438         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26439
26440 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26441
26442         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26443         * doc/gnulib.texi: Add section for warnings.
26444
26445 2008-11-11  Bruno Haible  <bruno@clisp.org>
26446
26447         * lib/sockets.h: Add a comment.
26448
26449 2008-11-11  Karl Berry  <karl@gnu.org>
26450
26451         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26452
26453 2008-11-11  Eric Blake  <ebb9@byu.net>
26454
26455         fdl.texi: avoid git symlinks
26456         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26457
26458 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26459
26460         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26461
26462 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26463
26464         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26465         (gl_WARN_ADD): Substitute $2 if literal.
26466
26467 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26468
26469         * m4/warning.m4: Remove.
26470
26471 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26472
26473         * m4/warnings.m4: Almost complete rewrite. :-)
26474
26475 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26476
26477         * modules/warnings: New module.
26478         * m4/warnings.m4: New file.
26479         * MODULES.html.sh: Mention warnings module.
26480         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26481         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26482
26483 2008-11-10  Eric Blake  <ebb9@byu.net>
26484
26485         fdl.texi: make a symlink to the latest version
26486         * doc/standards.texi: Revert today's earlier change.
26487         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26488         * doc/fdl.texi: ...and replace this with a symlink to the newer
26489         fdl-1.3.texi.
26490
26491 2008-11-10  Bruno Haible  <bruno@clisp.org>
26492
26493         * tests/test-select-fd.c (main): Accept the result file name as fourth
26494         argument.
26495         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26496         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26497
26498 2008-11-10  Bruno Haible  <bruno@clisp.org>
26499
26500         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26501         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26502         as autoconf-substituted macros.
26503         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26505         gl_NETDB_H_DEFAULTS. Set these variables.
26506         * modules/netdb (Makefile.am): Substitute these variables.
26507
26508 2008-11-10  Eric Blake  <ebb9@byu.net>
26509
26510         standards.texi: include correct file for FDL 1.3
26511         * doc/standards.texi (GNU Free Documentation License): Change
26512         include file to pull in FDL 1.3, not 1.2.
26513
26514         fdl.texi: revert accidental change to license
26515         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26516
26517 2008-11-10  Bruno Haible  <bruno@clisp.org>
26518
26519         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26520         cross-compiling guesses also when the native compile gives no result.
26521
26522 2008-11-10  Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/spawni.c (__spawni): Force variable into the stack.
26525
26526 2008-11-10  Bruno Haible  <bruno@clisp.org>
26527
26528         Add support for Haiku.
26529         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26530         glibc and BeOS, but also on Haiku.
26531         * lib/fpurge.c (fpurge): Likewise.
26532         * lib/freadable.c (freadable): Likewise.
26533         * lib/freadahead.c (freadahead): Likewise.
26534         * lib/freading.c (freading): Likewise.
26535         * lib/freadptr.c (freadptr): Likewise.
26536         * lib/freadseek.c (freadptrinc): Likewise.
26537         * lib/fseeko.c (rpl_fseeko): Likewise.
26538         * lib/fseterr.c (fseterr): Likewise.
26539         * lib/fwritable.c (fwritable): Likewise.
26540         * lib/fwriting.c (fwriting): Likewise.
26541         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26542
26543 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26544
26545         * lib/config.charset: Treat Haiku like BeOS.
26546
26547 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26548
26549         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26550         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26551
26552 2008-11-08  Bruno Haible  <bruno@clisp.org>
26553
26554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26555         AC_CACHE_CHECK.
26556
26557 2008-11-08  Bruno Haible  <bruno@clisp.org>
26558
26559         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26560
26561 2008-11-08  Bruno Haible  <bruno@clisp.org>
26562
26563         * tests/test-select-fd.c: New file.
26564         * tests/test-select-in.sh: New file.
26565         * tests/test-select-out.sh: New file.
26566         * tests/test-select-stdin.c: New file.
26567         * modules/select-tests (Files): Add the new files.
26568         (Depends-on): Add gettimeofday.
26569         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26570         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26571         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26572
26573 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26574             Bruno Haible  <bruno@clisp.org>
26575
26576         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26577
26578 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26579
26580         * build-aux/pmccabe2html: Added support for C++ source files.
26581
26582 2008-11-05  Ben Pfaff  <blp@gnu.org>
26583
26584         Fix lib/close.c build on Windows.
26585         * modules/close (Files): Add lib/w32sock.h.
26586
26587 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26588
26589         Accept Bison's NEWS format.
26590         * build-aux/announce-gen (print_news_deltas): Tweak
26591         $re_prefix.
26592
26593 2008-11-04  Bruno Haible  <bruno@clisp.org>
26594
26595         * modules/random_r (Maintainer): Add glibc.
26596
26597 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26598
26599         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26600         by karl@freefriends.org (Karl Berry).
26601         * doc/alloca.texi: Likewise.
26602         * doc/c-ctype.texi: Likewise.
26603         * doc/c-strcase.texi: Likewise.
26604         * doc/c-strcaseeq.texi: Likewise.
26605         * doc/c-strcasestr.texi: Likewise.
26606         * doc/c-strstr.texi: Likewise.
26607         * doc/c-strtod.texi: Likewise.
26608         * doc/c-strtold.texi: Likewise.
26609         * doc/ctime.texi: Likewise.
26610         * doc/error.texi: Likewise.
26611         * doc/fdl.texi: Likewise.
26612         * doc/gcd.texi: Likewise.
26613         * doc/getdate.texi: Likewise.
26614         * doc/gnulib-intro.texi: Likewise.
26615         * doc/gnulib-tool.texi: Likewise.
26616         * doc/gnulib.texi: Likewise.
26617         * doc/inet_ntoa.texi: Likewise.
26618         * doc/maintain.texi: Likewise.
26619         * doc/make-stds.texi: Likewise.
26620         * doc/quote.texi: Likewise.
26621         * doc/regexprops-generic.texi: Likewise.
26622         * doc/standards.texi: Likewise.
26623         * doc/verify.texi: Likewise.
26624         * doc/visibility.texi: Likewise.
26625         * doc/gnulib.texi (GNU Free Documentation License): Include
26626         fdl-1.3.texi instead of fdl.texi.
26627
26628 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26629
26630         * doc/fdl-1.3.texi: New file, from
26631         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26632         * modules/fdl-1.3: Add.
26633         * MODULES.html.sh: Add fdl-1.3.
26634
26635 2008-11-03  Bruno Haible  <bruno@clisp.org>
26636
26637         Make determination of absolute name of header file work with AIX xlc.
26638         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26639         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26640         preprocessing.
26641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26642         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26643
26644 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26645
26646         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26647         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26648         <ludo@gnu.org>.
26649
26650 2008-11-02  Bruno Haible  <bruno@clisp.org>
26651
26652         Mark 'strpbrk' obsolete.
26653         * modules/strpbrk (Status, Notice): New sections.
26654         * modules/strtok_r (Depends-on): Add strpbrk.
26655
26656 2008-11-02  Bruno Haible  <bruno@clisp.org>
26657
26658         Mark 'strdup' obsolete.
26659         * modules/strdup (Status, Notice): New sections.
26660         * modules/findprog (Depends-on): Add strdup.
26661         * modules/getaddrinfo (Depends-on): Likewise.
26662         * modules/localename (Depends-on): Likewise.
26663         * modules/relocatable-lib (Depends-on): Likewise.
26664         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26665         * modules/relocatable-prog (Depends-on): Likewise.
26666         * modules/trim (Depends-on): Likewise.
26667         * modules/unictype/gen-ctype (Depends-on): Likewise.
26668         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26669
26670 2008-11-02  Bruno Haible  <bruno@clisp.org>
26671
26672         Mark 'strcspn' obsolete.
26673         * modules/strcspn (Status, Notice): New sections.
26674
26675 2008-11-02  Bruno Haible  <bruno@clisp.org>
26676
26677         Mark 'rmdir' obsolete.
26678         * modules/rmdir (Status, Notice): New sections.
26679         * modules/clean-temp (Depends-on): Add rmdir.
26680         * modules/openat (Depends-on): Likewise.
26681
26682 2008-11-02  Bruno Haible  <bruno@clisp.org>
26683
26684         Mark 'raise' obsolete.
26685         * modules/raise (Status, Notice): New sections.
26686         (Include): Specify <signal.h>.
26687         * modules/stdio (Depends-on): Add raise.
26688         * modules/write (Depends-on): Likewise.
26689
26690 2008-11-02  Bruno Haible  <bruno@clisp.org>
26691
26692         Mark 'memset' obsolete.
26693         * modules/memset (Status, Notice): New sections.
26694
26695 2008-11-02  Bruno Haible  <bruno@clisp.org>
26696
26697         Mark 'memmove' obsolete.
26698         * modules/memmove (Status, Notice): New sections.
26699         * modules/argp (Depends-on): Add memmove.
26700         * modules/argz (Depends-on): Likewise.
26701         * modules/canonicalize (Depends-on): Likewise.
26702         * modules/canonicalize-lgpl (Depends-on): Likewise.
26703         * modules/fts (Depends-on): Likewise.
26704         * modules/getcwd (Depends-on): Likewise.
26705         * modules/human (Depends-on): Likewise.
26706         * modules/regex (Depends-on): Likewise.
26707         * modules/striconveh (Depends-on): Likewise.
26708         * modules/trim (Depends-on): Likewise.
26709         * modules/unistr/u8-move (Depends-on): Likewise.
26710         * modules/unistr/u16-move (Depends-on): Likewise.
26711         * modules/unistr/u32-move (Depends-on): Likewise.
26712
26713 2008-11-02  Bruno Haible  <bruno@clisp.org>
26714
26715         Mark 'memcpy' obsolete.
26716         * modules/memcpy (Status, Notice): New sections.
26717
26718 2008-11-02  Bruno Haible  <bruno@clisp.org>
26719
26720         Mark 'memcmp' obsolete.
26721         * modules/memcmp (Status, Notice): New sections.
26722         * modules/argmatch (Depends-on): Add memchr.
26723         * modules/backupfile (Depends-on): Likewise.
26724         * modules/c-strcasestr (Depends-on): Likewise.
26725         * modules/crypto/des (Depends-on): Likewise.
26726         * modules/csharpcomp (Depends-on): Likewise.
26727         * modules/fnmatch (Depends-on): Likewise.
26728         * modules/git-merge-changelog (Depends-on): Likewise.
26729         * modules/isnand (Depends-on): Likewise.
26730         * modules/isnand-nolibm (Depends-on): Likewise.
26731         * modules/isnanf (Depends-on): Likewise.
26732         * modules/isnanf-nolibm (Depends-on): Likewise.
26733         * modules/isnanl (Depends-on): Likewise.
26734         * modules/isnanl-nolibm (Depends-on): Likewise.
26735         * modules/mbchar (Depends-on): Likewise.
26736         * modules/memcoll (Depends-on): Likewise.
26737         * modules/quotearg (Depends-on): Likewise.
26738         * modules/regex (Depends-on): Likewise.
26739         * modules/relocatable-prog (Depends-on): Likewise.
26740         * modules/same (Depends-on): Likewise.
26741         * modules/signbit (Depends-on): Likewise.
26742         * modules/strcasestr-simple (Depends-on): Likewise.
26743         * modules/unictype/gen-ctype (Depends-on): Likewise.
26744         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26745         * modules/uniname/uniname (Depends-on): Likewise.
26746         * modules/unistr/u8-cmp (Depends-on): Likewise.
26747
26748 2008-11-02  Bruno Haible  <bruno@clisp.org>
26749
26750         Mark 'memchr' obsolete.
26751         * modules/memchr (Status, Notice): New sections.
26752         * modules/argp (Depends-on): Add memchr.
26753         * modules/base64 (Depends-on): Likewise.
26754         * modules/c-strcasestr (Depends-on): Likewise.
26755         * modules/chdir-long (Depends-on): Likewise.
26756         * modules/fnmatch (Depends-on): Likewise.
26757         * modules/getsubopt (Depends-on): Likewise.
26758         * modules/git-merge-changelog (Depends-on): Likewise.
26759         * modules/glob (Depends-on): Likewise.
26760         * modules/strcasestr-simple (Depends-on): Likewise.
26761         * modules/strnlen (Depends-on): Likewise.
26762
26763 2008-11-02  Bruno Haible  <bruno@clisp.org>
26764
26765         Mark 'atexit' obsolete.
26766         * modules/atexit (Status, Notice): New sections.
26767         * modules/chdir-long (Depends-on): Add atexit.
26768         * modules/wait-process (Depends-on): Likewise.
26769
26770 2008-11-02  Bruno Haible  <bruno@clisp.org>
26771
26772         * gnulib-tool: New option --with-obsolete.
26773         (func_usage): Document it.
26774         (func_modules_transitive_closure): Drop obsolete dependencies if
26775         incobsolete is not true.
26776         (func_import): Read and save the incobsolete variable to the cache.
26777
26778 2008-11-02  Bruno Haible  <bruno@clisp.org>
26779
26780         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26781         * gnulib-tool: New option --extract-status.
26782         (func_usage): Document it.
26783         (sed_extract_prog): Recognize it.
26784         (func_get_status): New function.
26785
26786 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26787
26788         * modules/sockets (License): Change from LGPL to LGPLv2+.
26789
26790 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26791
26792         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26793
26794 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26795
26796         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26797         Mention times and sys_times.
26798         * modules/sys_times, modules/sys_times-tests: New modules.
26799         * modules/times, modules/times-tests: Likewise
26800         * m4/sys_times_h.m4: New file.
26801         * lib/sys_times.in.h: Likewise
26802         * lib/times.c: Likewise.
26803         * tests/test-sys_times.c: Likewise.
26804         * tests/test-times.c: Likewise.
26805         * doc/posix-headers/sys_times.texi: Update.
26806         * doc/posix-functions/times.texi: Update.
26807
26808 2008-10-28  Jim Meyering  <meyering@redhat.com>
26809
26810         * modules/tempname (Depends-on): Add lstat.
26811
26812         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26813
26814 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26815
26816         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26817         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26818         using idiom used elsewhere in gnulib.
26819
26820 2008-10-27  Jim Meyering  <meyering@redhat.com>
26821
26822         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26823
26824 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26825
26826         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26827         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26828         programs.
26829         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26830
26831 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26832
26833         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26834
26835 2008-10-27  Bruno Haible  <bruno@clisp.org>
26836
26837         * tests/test-lstat.c: Include <stdio.h>.
26838
26839 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26840
26841         * modules/lstat-tests: New module.
26842         * tests/test-lstat.c: New file.
26843
26844 2008-10-26  Jim Meyering  <meyering@redhat.com>
26845
26846         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26847
26848 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26849             Bruno Haible  <bruno@clisp.org>
26850
26851         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26852         * modules/configmake (Include): Add a note that the include must come
26853         after all system headers.
26854         * lib/javaversion.c: Include configmake.h after all other includes.
26855
26856 2008-10-26  Bruno Haible  <bruno@clisp.org>
26857
26858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26859         HAVE_STRUCT_RANDOM_DATA to 1.
26860         (gl_STDLIB_H): Simplify.
26861
26862 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26863
26864         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26865         substitute HAVE_STRUCT_RANDOM_DATA.
26866         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26867         random_data.
26868         * modules/stdlib (Makefile.am): Substitute
26869         HAVE_STRUCT_RANDOM_DATA.
26870
26871 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26872
26873         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26874         * doc/gnulib-intro.texi (Copyright): Likewise.
26875
26876 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26877
26878         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26879         findings.
26880
26881 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26882             Bruno Haible  <bruno@clisp.org>
26883
26884         * lib/unistd.in.h: Include <winsock2.h>.
26885         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26886         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26887         Provide dummy declarations.
26888         (gethostname): Override.
26889         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26890         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26891         gl_PREREQ_SYS_H_WINSOCK2.
26892         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26893         * doc/posix-functions/gethostname.texi: More details.
26894
26895 2008-10-25  Bruno Haible  <bruno@clisp.org>
26896
26897         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26898         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26899         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26900
26901         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26902         here ...
26903         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26904         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26905         gl_UNISTD_H_DEFAULTS.
26906
26907 2008-10-25  Eric Blake  <ebb9@byu.net>
26908
26909         signbit: avoid spurious compiler failure
26910         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26911         declarations inside function.
26912
26913 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26914             Bruno Haible  <bruno@clisp.org>
26915
26916         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26917         * modules/random_r (Depends-on): Add stdint.
26918
26919 2008-10-24  Bruno Haible  <bruno@clisp.org>
26920
26921         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26922         Eggert.
26923         * modules/strerror (License): Likewise.
26924
26925 2008-10-24  Jim Meyering  <meyering@redhat.com>
26926
26927         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26928         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26929
26930 2008-10-24  Eric Blake  <ebb9@byu.net>
26931
26932         getgroups: fix compilation when getgroups is available
26933         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26934         but with <config.h> override of getgroups disabled.
26935
26936 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26937
26938         * doc/gnulib.texi (Header files): Add note about C++ problems.
26939         Explained by Bruno Haible <bruno@clisp.org>.
26940
26941 2008-10-23  Bruno Haible  <bruno@clisp.org>
26942
26943         Define a dummy SA_NODEFER macro on Interix.
26944         * lib/signal.in.h (SA_NODEFER): Define fallback.
26945         Reported by Aleksey Cheusov <cheusov@tut.by> via
26946         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26947
26948 2008-10-23  Bruno Haible  <bruno@clisp.org>
26949
26950         * modules/freadahead (License): Change to LGPLv2+.
26951         Suggested by Simon Josefsson.
26952
26953 2008-10-23  Jim Meyering  <meyering@redhat.com>
26954
26955         random_r: new module
26956         * modules/random_r: New file.
26957         * m4/random_r.m4: New file.
26958         * lib/random_r.c: New file, from glibc.
26959         * modules/random_r-tests: New file.
26960         * tests/test-random_r.c: New file.
26961         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26962          Declare.
26963         (RAND_MAX): Define.
26964         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26965         * modules/stdlib: Substitute them, too.
26966         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26967         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26968         * doc/glibc-functions/random_r.texi: Likewise.
26969         * doc/glibc-functions/setstate_r.texi: Likewise.
26970         * doc/glibc-functions/srandom_r.texi: Likewise.
26971         * config/srclist.txt: Mention it.
26972
26973 2008-10-23  David Lutterkort  <lutter@redhat.com>
26974
26975         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26976         link requirement
26977
26978 2008-10-23  Jim Meyering  <meyering@redhat.com>
26979
26980         selinux-h: mark parameters of stub functions as intentionally unused
26981         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26982         * lib/se-context.in.h: Likewise.
26983
26984 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26985
26986         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26987
26988 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26989
26990         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26991
26992 2008-10-22  Eric Blake  <ebb9@byu.net>
26993
26994         glthread/thread: avoid compiler warning
26995         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26996         Add unreachable abort to silence compiler.
26997
26998 2008-10-22  Eric Blake  <ebb9@byu.net>
26999
27000         netdb: also supply struct addrinfo for cygwin 1.5.x
27001         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27002         older cygwin.
27003         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27004         cygwin.
27005         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27006
27007 2008-10-22  Bruno Haible  <bruno@clisp.org>
27008
27009         * users.txt: Update entry about pspp.
27010
27011 2008-10-21  Bruno Haible  <bruno@clisp.org>
27012
27013         Simplification.
27014         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27015         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27016
27017         Simplification.
27018         * lib/ioctl.c (ioctl): Don't undefine.
27019         * lib/socket.c (socket): Don't undefine.
27020
27021         Remove unused module indicator macros.
27022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27023         GNULIB_$1 as a C macro.
27024
27025         * doc/posix-functions/close.texi: Undo last change.
27026         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27027         Windows platforms.
27028
27029 2008-10-21  Bruno Haible  <bruno@clisp.org>
27030
27031         Add gethostname() declaration to <unistd.h>.
27032         * lib/unistd.in.h (gethostname): New declaration.
27033         * lib/gethostname.c: Include <unistd.h>.
27034         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27035         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27037         and HAVE_GETHOSTNAME.
27038         * modules/gethostname (Depends-on): Add unistd.
27039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27040         (Include): Specify <unistd.h>.
27041         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27042         HAVE_GETHOSTNAME.
27043         * tests/test-gethostname.c: Include <unistd.h> first.
27044
27045 2008-10-21  Bruno Haible  <bruno@clisp.org>
27046
27047         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27048         * modules/select-tests (Depends-on): Likewise.
27049         Reported by Simon Josefsson.
27050
27051 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27052
27053         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27054         * lib/accept.c: New file, based on winsock.c.
27055         * lib/bind.c: New file, based on winsock.c.
27056         * lib/connect.c: New file, based on winsock.c.
27057         * lib/getpeername.c: New file, based on winsock.c.
27058         * lib/getsockname.c: New file, based on winsock.c.
27059         * lib/getsockopt.c: New file, based on winsock.c.
27060         * lib/ioctl.c: New file, based on winsock.c.
27061         * lib/listen.c: New file, based on winsock.c.
27062         * lib/recv.c: New file, based on winsock.c.
27063         * lib/recvfrom.c: New file, based on winsock.c.
27064         * lib/send.c: New file, based on winsock.c.
27065         * lib/sendto.c: New file, based on winsock.c.
27066         * lib/setsockopt.c: New file, based on winsock.c.
27067         * lib/shutdown.c: New file, based on winsock.c.
27068         * lib/socket.c: New file, based on winsock.c.
27069         * lib/w32sock.h: New file, based on winsock.c.
27070         * lib/winsock.c: Remove file.
27071         * modules/accept: Likewise.
27072         * modules/bind: Likewise.
27073         * modules/connect: Likewise.
27074         * modules/getpeername: Likewise.
27075         * modules/getsockname: Likewise.
27076         * modules/getsockopt: Likewise.
27077         * modules/ioctl: Likewise.
27078         * modules/listen: Likewise.
27079         * modules/recv: Likewise.
27080         * modules/recvfrom: Likewise.
27081         * modules/send: Likewise.
27082         * modules/sendto: Likewise.
27083         * modules/setsockopt: Likewise.
27084         * modules/shutdown: Likewise.
27085         * modules/socket: Use socket.c instead of winsock.c.
27086         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27087         * doc/posix-functions/accept.texi: Doc fix.
27088         * doc/posix-functions/bind.texi: Doc fix.
27089         * doc/posix-functions/close.texi: Doc fix.
27090         * doc/posix-functions/connect.texi: Doc fix.
27091         * doc/posix-functions/getpeername.texi: Doc fix.
27092         * doc/posix-functions/getsockname.texi: Doc fix.
27093         * doc/posix-functions/getsockopt.texi: Doc fix.
27094         * doc/posix-functions/ioctl.texi: Doc fix.
27095         * doc/posix-functions/listen.texi: Doc fix.
27096         * doc/posix-functions/recv.texi: Doc fix.
27097         * doc/posix-functions/recvfrom.texi: Doc fix.
27098         * doc/posix-functions/send.texi: Doc fix.
27099         * doc/posix-functions/sendto.texi: Doc fix.
27100         * doc/posix-functions/setsockopt.texi: Doc fix.
27101         * doc/posix-functions/shutdown.texi: Doc fix.
27102         * doc/posix-functions/socket.texi: Doc fix.
27103
27104 2008-10-20  Bruno Haible  <bruno@clisp.org>
27105
27106         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27107         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27108         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27109         as an alias for SIGABRT.
27110         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27111         (sigaction): Map it to SIGABRT.
27112         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27113
27114 2008-10-20  Bruno Haible  <bruno@clisp.org>
27115
27116         * lib/fts.c: Don't include lstat.h.
27117         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27118
27119         Move the lstat() declaration to <sys/stat.h>.
27120         * lib/lstat.h: Remove file.
27121         * lib/sys_stat.in.h: Add special invocation convention.
27122         (lstat): New declaration.
27123         * lib/lstat.c (orig_lstat): New function.
27124         (rpl_lstat): Use orig_lstat instead of lstat.
27125         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27126         AC_C_INLINE. Set REPLACE_LSTAT.
27127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27128         and REPLACE_LSTAT.
27129         * modules/lstat (Files): Remove lib/lstat.h.
27130         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27131         (Include): Specify <sys/stat.h> instead of lstat.h.
27132         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27133         REPLACE_LSTAT.
27134         * NEWS: Mention the change.
27135
27136 2008-10-20  Bruno Haible  <bruno@clisp.org>
27137
27138         * modules/posix_spawn-tests: New file.
27139         * tests/test-posix_spawn3.c: New file.
27140
27141 2008-10-20  Bruno Haible  <bruno@clisp.org>
27142
27143         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27144         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27145         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27146         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27147         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27148
27149 2008-10-20  Bruno Haible  <bruno@clisp.org>
27150
27151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27152         of posix_spawn on AIX 5.3.
27153
27154 2008-10-20  Bruno Haible  <bruno@clisp.org>
27155
27156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27157
27158 2008-10-20  Bruno Haible  <bruno@clisp.org>
27159
27160         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27161         of AC_LANG_PROGRAM.
27162
27163 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27164
27165         * lib/netdb.in.h: Don't define GNU specific constants until they
27166         are supported or needed.  Reported by Bruno Haible
27167         <bruno@clisp.org>.
27168
27169 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27170
27171         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27172
27173 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27174
27175         * lib/getaddrinfo.h: Remove file.
27176         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27177         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27178         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27179         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27180         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27181         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27182         * tests/test-getaddrinfo.c: Likewise.
27183         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27184         * NEWS: Mention change.
27185
27186 2008-10-19  Bruno Haible  <bruno@clisp.org>
27187
27188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27189
27190 2008-10-19  Bruno Haible  <bruno@clisp.org>
27191
27192         * lib/wait-process.c: Include simply <sys/wait.h>.
27193         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27194         WIFSTOPPED): Remove fallback definitions.
27195         * modules/wait-process (Depends-on): Add sys_wait.
27196
27197         New module 'sys_wait'.
27198         * modules/sys_wait: New file.
27199         * lib/sys_wait.in.h: New file, partially copied from
27200         lib/wait-process.c.
27201         * m4/sys_wait_h.m4: New file.
27202         * doc/posix-headers/sys_wait.texi: Mention the new module.
27203
27204 2008-10-19  Bruno Haible  <bruno@clisp.org>
27205
27206         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27207
27208 2008-10-19  Bruno Haible  <bruno@clisp.org>
27209
27210         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27211         * lib/wait-process.c (WAIT_T): Remove type.
27212         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27213         (wait_subprocess): Update.
27214
27215 2008-10-19  Bruno Haible  <bruno@clisp.org>
27216
27217         New module 'atoll'.
27218         * modules/atoll: New file.
27219         * lib/stdlib.in.h (atoll): New declaration.
27220         * lib/atoll.c: New file, from glibc with modifications.
27221         * m4/atoll.m4: New file.
27222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27223         HAVE_ATOLL.
27224         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27225         * doc/posix-functions/atoll.texi: Mention the new module.
27226
27227 2008-10-19  Bruno Haible  <bruno@clisp.org>
27228
27229         Add strtoull() declaration to <stdlib.h>.
27230         * lib/stdlib.in.h (strtoull): New declaration.
27231         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27232         Set HAVE_STRTOULL.
27233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27234         HAVE_STRTOULL.
27235         * modules/strtoull (Depends-on): Add stdlib.
27236         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27237         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27238         HAVE_STRTOULL.
27239
27240 2008-10-19  Bruno Haible  <bruno@clisp.org>
27241
27242         Add strtoll() declaration to <stdlib.h>.
27243         * lib/stdlib.in.h (strtoll): New declaration.
27244         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27245         Set HAVE_STRTOLL.
27246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27247         HAVE_STRTOLL.
27248         * modules/strtoll (Depends-on): Add stdlib.
27249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27250         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27251
27252 2008-10-19  Bruno Haible  <bruno@clisp.org>
27253
27254         * modules/bcopy (Depends-on): Add strings.
27255         (Include): Specify <strings.h>.
27256
27257 2008-10-19  Bruno Haible  <bruno@clisp.org>
27258
27259         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27260
27261 2008-10-19  Bruno Haible  <bruno@clisp.org>
27262
27263         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27264         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27265         mingw.
27266
27267 2008-10-19  Bruno Haible  <bruno@clisp.org>
27268
27269         * lib/atanl.c: Don't include isnanl.h.
27270         * lib/cosl.c: Likewise.
27271         * lib/ldexpl.c: Likewise.
27272         * lib/logl.c: Likewise.
27273         * lib/sinl.c: Likewise.
27274         * lib/sqrtl.c: Likewise.
27275         * lib/tanl.c: Likewise.
27276
27277         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27278         * lib/isnanf.h: Remove file.
27279         * lib/isnand.h: Remove file.
27280         * lib/isnanl.h: Remove file.
27281         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27282         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27283         macros.
27284         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27285         HAVE_ISNANF, don't define it as a C macro.
27286         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27287         HAVE_ISNAND, don't define it as a C macro.
27288         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27289         HAVE_ISNANL, don't define it as a C macro.
27290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27291         HAVE_ISNAN[FDL].
27292         * modules/isnanf (Files): Remove lib/isnanf.h.
27293         (Depends-on): Add math.
27294         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27295         (Include): Specify <math.h> instead of isnanf.h.
27296         * modules/isnand (Files): Remove lib/isnand.h.
27297         (Depends-on): Add math.
27298         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27299         (Include): Specify <math.h> instead of isnand.h.
27300         * modules/isnanl (Files): Remove lib/isnanl.h.
27301         (Depends-on): Add math.
27302         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27303         (Include): Specify <math.h> instead of isnanl.h.
27304         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27305         HAVE_ISNAN[FDL].
27306         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27307         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27308         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27309         * NEWS: Mention the change.
27310
27311 2008-10-18  Bruno Haible  <bruno@clisp.org>
27312
27313         Add getusershell(), setusershell(), endusershell() declarations to
27314         <unistd.h>.
27315         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27316         declarations.
27317         * lib/getusershell.c: Include unistd.h.
27318         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27319         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27320         HAVE_GETUSERSHELL.
27321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27322         and HAVE_GETUSERSHELL.
27323         * modules/getusershell (Depends-on): Add unistd, extensions.
27324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27325         (Include): Specify <unistd.h>.
27326         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27327         HAVE_GETUSERSHELL.
27328
27329 2008-10-18  Bruno Haible  <bruno@clisp.org>
27330
27331         Add a getloadavg() declaration to <stdlib.h>.
27332         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27333         getloadavg declaration.
27334         (getloadavg): New declaration.
27335         * lib/getloadavg.c: Include <stdlib.h> first.
27336         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27337         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27338         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27340         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27341         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27343         (Include): Specify <stdlib.h>.
27344         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27345         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27346
27347 2008-10-18  Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/dirchownmod.c: Don't include lchmod.h.
27350
27351         Move the lchmod() declaration to <sys/stat.h>.
27352         * lib/lchmod.h: Remove file.
27353         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27354         (lchmod): New declaration, moved here from lib/lchown.h.
27355         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27356         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27358         and HAVE_LCHMOD.
27359         * modules/lchmod (Files): Remove lib/lchmod.h.
27360         (Depends-on): Add sys_stat, extensions.
27361         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27362         (Include): Specify <sys/stat.h> instead of lchmod.h.
27363         * modules/sys_stat (Depends-on): Add link-warning.
27364         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27365         definition of GL_LINK_WARNING.
27366         * NEWS: Mention the change.
27367
27368 2008-10-18  Bruno Haible  <bruno@clisp.org>
27369
27370         * lib/fchdir.c: Don't include dirfd.h.
27371         * lib/fts.c: Likewise.
27372         * lib/getcwd.c: Likewise.
27373         * lib/glob.c: Likewise.
27374
27375         Move the dirfd() declaration to <dirent.h>.
27376         * lib/dirfd.h: Remove file.
27377         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27378         (dirfd): New declaration.
27379         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27380         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27381         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27382         HAVE_DECL_DIRFD.
27383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27384         HAVE_DECL_DIRFD.
27385         * modules/dirfd (Files): Remove lib/dirfd.h.
27386         (Depends-on): Add dirent, extensions.
27387         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27388         (Include): Specify <dirent.h> instead of dirfd.h.
27389         * modules/dirent (Depends-on): Add link-warning.
27390         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27391         definition of GL_LINK_WARNING.
27392         * NEWS: Mention the change.
27393
27394 2008-10-18  Bruno Haible  <bruno@clisp.org>
27395
27396         Move the euidaccess() declaration to <unistd.h>.
27397         * lib/euidaccess.h: Remove file.
27398         * lib/unistd.in.h (euidaccess): New declaration.
27399         * lib/euidaccess.c: Don't include euidaccess.h.
27400         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27401         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27403         and HAVE_EUIDACCESS.
27404         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27405         (Depends-on): Add unistd.
27406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27407         (Include): Specify <unistd.h> instead of euidaccess.h.
27408         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27409         HAVE_EUIDACCESS.
27410         * NEWS: Mention the change.
27411
27412 2008-10-18  Bruno Haible  <bruno@clisp.org>
27413
27414         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27415
27416         Move the getdomainname() declaration to <unistd.h>.
27417         * lib/getdomainname.h: Remove file.
27418         * lib/unistd.in.h (getdomainname): New declaration.
27419         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27420         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27421         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27422         HAVE_GETDOMAINNAME.
27423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27424         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27425         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27426         (Depends-on): Add unistd, extensions.
27427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27428         (Includes): Specify <unistd.h> instead of getdomainname.h.
27429         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27430         HAVE_GETDOMAINNAME.
27431         * NEWS: Mention the change.
27432
27433 2008-10-18  Bruno Haible  <bruno@clisp.org>
27434
27435         * modules/dirent: New file.
27436         * m4/dirent_h.m4: New file.
27437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27438         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27439         * modules/fchdir (Files): Remove lib/dirent.in.h.
27440         (Depends-on): Add dirent.
27441         (Makefile.am): Move rules to modules/dirent.
27442         * doc/posix-headers/dirent.texi: Mention the new module.
27443
27444 2008-10-18  Bruno Haible  <bruno@clisp.org>
27445
27446         Avoid -Wunused-parameter warnings in public gnulib header files.
27447         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27448         macro.
27449         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27450
27451 2008-10-18  Bruno Haible  <bruno@clisp.org>
27452
27453         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27454         * doc/glibc-functions/error.texi: Mention the module 'error'.
27455         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27456         * doc/glibc-functions/getdomainname.texi: Mention the module
27457         'getdomainname'.
27458         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27459         * doc/glibc-functions/getpagesize.texi: Mention the module
27460         'getpagesize'.
27461         * doc/glibc-functions/getusershell.texi: Mention the module
27462         'getusershell'.
27463         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27464         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27465         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27466         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27467         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27468         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27469         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27470         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27471         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27472         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27473         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27474         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27475         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27476         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27477
27478 2008-10-17  Bruno Haible  <bruno@clisp.org>
27479
27480         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27481         HP-UX and IRIX, use -0.0L.
27482         * tests/test-ceill.c (minus_zero): Likewise.
27483         * tests/test-floorl.c (minus_zero): Likewise.
27484         * tests/test-frexpl.c (minus_zero): Likewise.
27485         * tests/test-isnan.c (minus_zerol): Likewise.
27486         * tests/test-isnanl.h (minus_zero): Likewise.
27487         * tests/test-ldexpl.c (minus_zero): Likewise.
27488         * tests/test-roundl.c (minus_zero): Likewise.
27489         * tests/test-signbit.c (minus_zerol): Likewise.
27490         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27491         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27492         * tests/test-truncl.c (minus_zero): Likewise.
27493         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27494         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27495         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27496         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27497
27498 2008-10-17  Bruno Haible  <bruno@clisp.org>
27499
27500         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27501         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27502         that it gets activated only for gcc >= 3.0.
27503         * lib/dirent.in.h: Likewise.
27504         * lib/errno.in.h: Likewise.
27505         * lib/fcntl.in.h: Likewise.
27506         * lib/float.in.h: Likewise.
27507         * lib/iconv.in.h: Likewise.
27508         * lib/inttypes.in.h: Likewise.
27509         * lib/locale.in.h: Likewise.
27510         * lib/math.in.h: Likewise.
27511         * lib/netdb.in.h: Likewise.
27512         * lib/netinet_in.in.h: Likewise.
27513         * lib/search.in.h: Likewise.
27514         * lib/signal.in.h: Likewise.
27515         * lib/spawn.in.h: Likewise.
27516         * lib/stdarg.in.h: Likewise.
27517         * lib/stdint.in.h: Likewise.
27518         * lib/stdio.in.h: Likewise.
27519         * lib/stdlib.in.h: Likewise.
27520         * lib/string.in.h: Likewise.
27521         * lib/strings.in.h: Likewise.
27522         * lib/sys_file.in.h: Likewise.
27523         * lib/sys_ioctl.in.h: Likewise.
27524         * lib/sys_select.in.h: Likewise.
27525         * lib/sys_socket.in.h: Likewise.
27526         * lib/sys_stat.in.h: Likewise.
27527         * lib/sys_time.in.h: Likewise.
27528         * lib/sysexits.in.h: Likewise.
27529         * lib/time.in.h: Likewise.
27530         * lib/unistd.in.h: Likewise.
27531         * lib/wchar.in.h: Likewise.
27532         * lib/wctype.in.h: Likewise.
27533         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27534
27535 2008-10-17  Jim Meyering  <meyering@redhat.com>
27536
27537         ignore-value: don't depend on inline module
27538         * modules/ignore-value (Depends-on): Remove 'inline'.
27539         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27540         Suggestion from Bruno Haible.
27541
27542 2008-10-17  Bruno Haible  <bruno@clisp.org>
27543
27544         New implementation of condition variables for Win32.
27545         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27546         (gl_linked_waitqueue_t): New type.
27547         (gl_cond_t): Use it.
27548         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27549         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27550         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27551         (glthread_cond_init_func, glthread_cond_wait_func,
27552         glthread_cond_timedwait_func, glthread_cond_signal_func,
27553         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27554         Reimplemented on the basis of gl_linked_waitqueue_t.
27555         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27556         gl_waitqueue_t.
27557         (gl_rwlock_t): Update.
27558         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27559
27560 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27561
27562         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27563         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27564
27565 2008-10-17  Jim Meyering  <meyering@redhat.com>
27566
27567         ignore-value: new module
27568         * modules/ignore-value: New file.
27569         * lib/ignore-value.h: New file.
27570         * MODULES.html.sh (Compiler warning management): New section,
27571         just for this module.  More to come.
27572
27573 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27574
27575         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27576         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27577         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27578
27579 2008-10-16  Jim Meyering  <meyering@redhat.com>
27580
27581         openat-die.c: avoid 'no previous prototype' warning
27582         * lib/openat-die.c: Include "openat.h".
27583         Reported by Reuben Thomas <rrt@sc3d.org>.
27584
27585 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27586
27587         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27588         * lib/netdb.in.h: Fix typo.
27589         Reported by Bruno Haible  <bruno@clisp.org>
27590
27591         * lib/netdb.in.h: Include sys/socket.h for platforms without
27592         netdb.h, to get structures like hostent on MinGW.
27593         * modules/netdb (Depends-on): Add sys_socket.
27594
27595 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27596
27597         * modules/netdb, modules/netdb-tests: New file.
27598         * m4/netdb_h.m4: New file.
27599         * lib/netdb.in.h: Add, currently just an empty file pending
27600         definitions.
27601         * tests/test-netdb.c: New file.
27602         * doc/posix-headers/netdb.texi: Mention that we replace it if
27603         needed.
27604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27605         netdb.
27606
27607 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27608
27609         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27610         with code.
27611
27612 2008-10-13  Bruno Haible  <bruno@clisp.org>
27613
27614         * lib/glthread/cond.c (glthread_cond_wait_func,
27615         glthread_cond_timedwait_func): Add a comment.
27616
27617 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27618
27619         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27620         * tests/test-select.c: Likewise,
27621
27622 2008-10-13  Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/glthread/cond.c (glthread_cond_wait_func,
27625         glthread_cond_timedwait_func): Fix variable name.
27626         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27627
27628 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27629
27630         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27631         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27632         struct sockaddr.sa_len.
27633         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27634
27635 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27636
27637         * build-aux/pmccabe2html: Add css and css_url parameters.
27638
27639 2008-10-12  Bruno Haible  <bruno@clisp.org>
27640
27641         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27642         calling aclx_get.
27643         Reported by Rainer Tammer <tammer@tammer.net>.
27644
27645 2008-10-12  Bruno Haible  <bruno@clisp.org>
27646
27647         Use msvcrt aware primitives for creation/termination of Win32 threads.
27648         * lib/glthread/thread.c: Include <process.h>.
27649         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27650         (wrapper_func): Update signature.
27651         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27652
27653 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27654             Bruno Haible  <bruno@clisp.org>
27655
27656         Provide a Win32 implementation of the 'cond' module.
27657         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27658         * lib/glthread/cond.c (glthread_cond_init_func,
27659         glthread_cond_wait_func, glthread_cond_timedwait_func,
27660         glthread_cond_signal_func, glthread_cond_broadcast_func,
27661         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27662         * modules/cond (Dependencies): Add gettimeofday.
27663
27664 2008-10-11  Bruno Haible  <bruno@clisp.org>
27665
27666         Make sleep work on older versions of mingw.
27667         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27668         only whether it exists.
27669         * doc/posix-functions/sleep.texi: Mention the problem with older
27670         versions of mingw.
27671
27672 2008-10-11  Bruno Haible  <bruno@clisp.org>
27673
27674         New module 'shutdown'.
27675         * modules/shutdown: New file.
27676         * lib/sys_socket.in.h (shutdown): New declaration.
27677         * lib/winsock.c (shutdown): New function.
27678         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27679         GNULIB_SHUTDOWN.
27680         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27681         * doc/posix-functions/shutdown.texi: Document the new module.
27682
27683 2008-10-11  Jim Meyering  <meyering@redhat.com>
27684
27685         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27686
27687 2008-10-11  Bruno Haible  <bruno@clisp.org>
27688
27689         New module 'fclose'.
27690         * modules/fclose: New file.
27691         * lib/stdio.in.h (fclose): New declaration.
27692         * lib/fclose.c: New file.
27693         * m4/fclose.m4: New file.
27694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27695         REPLACE_FCLOSE.
27696         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27697         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27698         REPLACE_FCLOSE.
27699         * modules/close (Depends-on): fclose.
27700         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27701
27702 2008-10-11  Bruno Haible  <bruno@clisp.org>
27703
27704         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27705         set errno and don't call _close.
27706
27707 2008-10-10  Bruno Haible  <bruno@clisp.org>
27708
27709         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27710         ACL, not afterwards. Fixes test failure on Cygwin.
27711
27712 2008-10-09  Ben Pfaff  <blp@gnu.org>
27713
27714         * build-aux/announce-gen: Fix gnulib version related part of usage
27715         message.  Die with a useful error message if no tarballs are
27716         found.
27717
27718 2008-10-10  Jim Meyering  <meyering@redhat.com>
27719
27720         bootstrap: use git's --depth=N option only if it's supported
27721         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27722         recognize the --depth option.  Reported by Pádraig Brady.
27723
27724 2008-10-09  Bruno Haible  <bruno@clisp.org>
27725
27726         New module 'ioctl'.
27727         * modules/ioctl: New file.
27728         * lib/sys_socket.in.h (ioctl): Remove declaration.
27729         * lib/winsock.c: Include <sys/ioctl.h>.
27730         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27731         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27732         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27733         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27734         * doc/posix-functions/ioctl.texi: Mention the new module.
27735
27736 2008-10-09  Bruno Haible  <bruno@clisp.org>
27737
27738         New module 'sys_ioctl'.
27739         * lib/sys_ioctl.in.h: New file.
27740         * m4/sys_ioctl_h.m4: New file.
27741         * modules/sys_ioctl: New file.
27742         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27743
27744 2008-10-09  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27747         * lib/winsock.c: Include <stdarg.h>.
27748         (rpl_ioctl): Change to second argument 'int' and then varargs.
27749
27750 2008-10-09  Bruno Haible  <bruno@clisp.org>
27751
27752         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27753         when the sys_socket module is present and the system has <winsock2.h>.
27754
27755 2008-10-09  Bruno Haible  <bruno@clisp.org>
27756
27757         * doc/posix-functions/close.texi: Mention module 'close' instead of
27758         module 'sys_socket'.
27759
27760 2008-10-09  Bruno Haible  <bruno@clisp.org>
27761
27762         * doc/glibc-headers/sys_ioctl.texi: New file.
27763         * doc/gnulib.texi: Include it.
27764
27765 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27766             Bruno Haible  <bruno@clisp.org>
27767
27768         Combine the two replacements of 'close'.
27769         * lib/sys_socket.in.h (close): Define to a reminder to include
27770         <unistd.h>.
27771         (_gl_close_fd_maybe_socket): New declaration.
27772         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27773         * lib/winsock.c (close): Remove undefinition.
27774         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27775         needed for the gnulib module 'close'.
27776         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27777         define to an error symbol or to a warning, if suitable.
27778         * lib/close.c: Include <sys/socket.h>.
27779         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27780         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27781         UNISTD_H_HAVE_WINSOCK2_H.
27782         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27784         UNISTD_H_HAVE_WINSOCK2_H.
27785         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27786         (configure.ac): Set a module indicator.
27787         (Makefile.am): Substitute GNULIB_CLOSE.
27788         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27789         * modules/poll-tests (Depends-on): Add close.
27790         * modules/select-tests (Depends-on): Likewise.
27791
27792 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27793             Bruno Haible  <bruno@clisp.org>
27794
27795         New module 'close'.
27796         * modules/close: New file.
27797         * lib/unistd.in.h (close): Move declaration out of the
27798         FCHDIR_REPLACEMENT scope.
27799         (_gl_unregister_fd): New declaration.
27800         * lib/close.c: New file.
27801         * lib/fchdir.c (rpl_close): Remove function.
27802         * m4/close.m4: New file.
27803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27804         close.
27805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27806         REPLACE_CLOSE.
27807         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27808         REPLACE_CLOSE.
27809         * modules/fchdir (Depends-on): Add close.
27810
27811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27812             Bruno Haible  <bruno@clisp.org>
27813
27814         * lib/fcntl.in.h (open): Simplify conditionals.
27815         (_gl_register_fd): New declaration.
27816         * lib/fchdir.c (rpl_open): Remove function.
27817         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27818         also.
27819         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27821         open.
27822
27823 2008-10-09  Jim Meyering  <meyering@redhat.com>
27824
27825         GNUmakefile: use the more name-space-friendly "_version"
27826         * top/GNUmakefile (_dummy): Update.
27827         (_version): Rename from "version".
27828
27829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27830             Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27833         rpl_close.
27834         (_gl_register_fd): New function, extracted from rpl_open.
27835         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27836         (rpl_open, rpl_opendir): Use _gl_register_fd.
27837
27838 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27839
27840         Fix organization of 'open' replacement.
27841         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27842         (gl_FUNC_OPEN): Use it.
27843         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27844
27845 2008-10-08  Bruno Haible  <bruno@clisp.org>
27846
27847         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27848
27849 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27850
27851         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27852         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27853         listen).
27854
27855 2008-10-08  Eric Blake  <ebb9@byu.net>
27856
27857         GNUmakefile: add 'make version' target
27858         * top/GNUmakefile (_curr-ver): Split version update rules...
27859         (version): ...into a target.
27860
27861 2008-10-07  Bruno Haible  <bruno@clisp.org>
27862
27863         Use a more portable replacement expression for -0.0L.
27864         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27865         instead of -0.0L. Fix m4 quotation.
27866
27867         * tests/test-signbit.c: Include <float.h>.
27868         (minus_zero): New variable.
27869         (test_signbitl): Use minus_zero instead of -zero.
27870         * modules/signbit-tests (Depends-on): Add float.
27871
27872         * tests/test-ceill.c: Include <float.h>.
27873         (zero): Remove variable.
27874         (minus_zero): New variable.
27875         (main): Use minus_zero instead of -zero.
27876         * modules/ceill-tests (Depends-on): Add float.
27877
27878         * tests/test-floorl.c: Include <float.h>.
27879         (zero): Remove variable.
27880         (minus_zero): New variable.
27881         (main): Use minus_zero instead of -zero.
27882         * modules/floorl-tests (Depends-on): Add float.
27883
27884         * tests/test-roundl.c: Include <float.h>.
27885         (zero): Remove variable.
27886         (minus_zero): New variable.
27887         (main): Use minus_zero instead of -zero.
27888         * modules/roundl-tests (Depends-on): Add float.
27889
27890         * tests/test-truncl.c: Include <float.h>.
27891         (zero): Remove variable.
27892         (minus_zero): New variable.
27893         (main): Use minus_zero instead of -zero.
27894         * modules/truncl-tests (Depends-on): Add float.
27895
27896         * tests/test-frexpl.c (zero): Remove variable.
27897         (minus_zero): New variable.
27898         (main): Use minus_zero instead of -zero.
27899         * modules/frexpl-tests (Depends-on): Add float.
27900
27901         * tests/test-isnan.c (zerol): Remove variable.
27902         (minus_zerol): New variable.
27903         (test_long_double): Use minus_zerol instead of -zerol.
27904         * modules/isnan-tests (Depends-on): Add float.
27905
27906         * tests/test-isnanl.h (zero): Remove variable.
27907         (minus_zero): New variable.
27908         (main): Use minus_zero instead of -zero.
27909         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27910         * modules/isnanl-tests (Depends-on): Add float.
27911
27912         * tests/test-ldexpl.c (zero): Remove variable.
27913         (minus_zero): New variable.
27914         (main): Use minus_zero instead of -zero.
27915         * modules/ldexpl-tests (Depends-on): Add float.
27916
27917         * tests/test-snprintf-posix.h (zerol): Remove variable.
27918         (minus_zerol): New variable.
27919         (test_function): Use minus_zerol instead of -zerol.
27920         * modules/snprintf-posix-tests (Depends-on): Add float.
27921         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27922
27923         * tests/test-sprintf-posix.h (zerol): Remove variable.
27924         (minus_zerol): New variable.
27925         (test_function): Use minus_zerol instead of -zerol.
27926         * modules/sprintf-posix-tests (Depends-on): Add float.
27927         * modules/vsprintf-posix-tests (Depends-on): Add float.
27928
27929         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27930         (minus_zerol): New variable.
27931         (test_function): Use minus_zerol instead of -zerol.
27932         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27933
27934         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27935         (minus_zerol): New variable.
27936         (test_function): Use minus_zerol instead of -zerol.
27937         * modules/vasprintf-posix-tests (Depends-on): Add float.
27938
27939 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27940
27941         * MODULES.html.sh (Support for building documentation): Mention
27942         pmccabe2html.  Sort entries.
27943
27944         Add pmccabe2html module, from gnupdf.
27945         * build-aux/pmccabe.css: New file.
27946         * build-aux/pmccabe2html: New file.
27947         * m4/pmccabe2html.m4: New file.
27948         * modules/pmccabe2html: New file.
27949
27950 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27951
27952         flock: new module
27953         * MODULES.html.sh: Add to list of modules.
27954         * lib/flock.c: flock implementation for Windows and Unix systems
27955         which have fcntl.
27956         * doc/glibc-functions/flock.texi: Update documentation.
27957         * lib/sys_file.in.h: <sys/file.h> header file.
27958         * m4/flock.m4: M4 macros.
27959         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27960         * modules/flock: flock module.
27961         * modules/flock-tests: flock tests module.
27962         * modules/sys_file: sys/file.h module.
27963         * tests/test-flock.c: test suite for flock.
27964
27965 2008-10-06  Jim Meyering  <meyering@redhat.com>
27966
27967         bootstrap: check for LT_INIT more portably still ;-)
27968         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27969         Spotted by Bruno Haible.
27970
27971 2008-10-06  Eric Blake  <ebb9@byu.net>
27972
27973         test-signbit: avoid tripping Irix cc bug on -0.0L
27974         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27975         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27976         entire testsuite consistent and avoids an Irix 6.2 bug.
27977
27978 2008-10-05  Bruno Haible  <bruno@clisp.org>
27979             Jim Meyering  <jim@meyering.net>
27980
27981         Add an option for ignoring EPIPE during close_stdout.
27982         * lib/closeout.h: Include <stdbool.h>.
27983         (close_stdout_set_ignore_EPIPE): New declaration.
27984         * lib/closeout.c: Include <stdbool.h>.
27985         (ignore_EPIPE): New variable.
27986         (close_stdout_set_ignore_EPIPE): New function.
27987         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27988         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27989         failure.
27990         * modules/closeout (Depends-on): Add stdbool.
27991
27992 2008-10-05  Bruno Haible  <bruno@clisp.org>
27993
27994         * modules/accept: New file.
27995         * modules/bind: New file.
27996         * modules/connect: New file.
27997         * modules/getpeername: New file.
27998         * modules/getsockname: New file.
27999         * modules/getsockopt: New file.
28000         * modules/listen: New file.
28001         * modules/recv: New file.
28002         * modules/recvfrom: New file.
28003         * modules/send: New file.
28004         * modules/sendto: New file.
28005         * modules/setsockopt: New file.
28006         * modules/socket: New file.
28007         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28008         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28009         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28010         the particular module is requested. Add a link warning when the
28011         particular module is not requested.
28012         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28013         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28014         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28015         the particular module is requested.
28016         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28017         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28018         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28019         * modules/sys_socket (Depends-on): Add link-warning.
28020         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28021         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28022         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28023         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28024         GL_LINK_WARNING.
28025         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28026         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28027         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28028         * doc/posix-functions/getpeername.texi: Mention the new module
28029         'getpeername'.
28030         * doc/posix-functions/getsockname.texi: Mention the new module
28031         'getsockname'.
28032         * doc/posix-functions/getsockopt.texi: Mention the new module
28033         'getsockopt'.
28034         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28035         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28036         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28037         * doc/posix-functions/send.texi: Mention the new module 'send'.
28038         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28039         * doc/posix-functions/setsockopt.texi: Mention the new module
28040         'setsockopt'.
28041         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28042         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28043         listen, connect, accept.
28044         * modules/select-tests (Depends-on): Likewise.
28045
28046 2008-10-05  Bruno Haible  <bruno@clisp.org>
28047
28048         * lib/winsock.c (strerror): Remove unused #undef.
28049         (rpl_close): Remove unused local variable.
28050
28051         * modules/sys_socket (Depends-on); Add errno.
28052
28053 2008-10-05  Bruno Haible  <bruno@clisp.org>
28054
28055         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28056         (select): Add a link warning when the 'select' module is not used.
28057         * modules/sys_select (Depends-on): Add link-warning.
28058         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28059         Suggested by Paolo Bonzini.
28060
28061 2008-10-05  Jim Meyering  <meyering@redhat.com>
28062
28063         bootstrap: check for LT_INIT more portably
28064         * build-aux/bootstrap: Avoid using grep -E, since it's not
28065         portable enough.  Suggestion from Bruno Haible.
28066
28067 2008-10-05  Bruno Haible  <bruno@clisp.org>
28068
28069         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28070         as being fixed by gnulib.
28071
28072 2008-10-05  Bruno Haible  <bruno@clisp.org>
28073
28074         * modules/select-tests: New file, mostly copied from
28075         modules/sys_select-tests.
28076         * tests/test-select.c: New file, mostly copied from
28077         tests/test-sys_select.c.
28078         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28079         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28080         (Makefile.am): Remove test_sys_select_LDADD.
28081
28082         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28083         to an undefined symbol, for an error message.
28084         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28085         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28086         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28087         winsock-select.c here.
28088         * modules/sys_select (Files): Remove lib/winsock-select.c.
28089         (Depends-on): Remove alloca.
28090         (Makefile.am): Substitute GNULIB_SELECT.
28091         * modules/select: New file.
28092         * doc/posix-functions/select.texi: Update.
28093
28094 2008-10-05  Bruno Haible  <bruno@clisp.org>
28095
28096         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28097         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28098         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28099         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28100         getdtablesize.
28101         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28102         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28103
28104 2008-10-05  Bruno Haible  <bruno@clisp.org>
28105
28106         * modules/getdtablesize-tests: New file.
28107         * tests/test-getdtablesize.c: New file.
28108
28109         New module 'getdtablesize'.
28110         * lib/unistd.in.h (getdtablesize): New declaration.
28111         * lib/getdtablesize.c: New file.
28112         * m4/getdtablesize.m4: New file.
28113         * modules/getdtablesize: New file.
28114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28115         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28116         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28117         HAVE_GETDTABLESIZE.
28118         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28119
28120 2008-10-05  Bruno Haible  <bruno@clisp.org>
28121
28122         * modules/sched (Makefile.am): Fix typo.
28123         Reported by Simon Josefsson.
28124
28125 2008-10-05  Jim Meyering  <meyering@redhat.com>
28126
28127         bootstrap: check for LT_INIT, too
28128         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28129         are deprecated.  Suggestion from Ralf Wildenhues.
28130
28131 2008-10-05  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28134         overriding them by ours.
28135         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28136
28137 2008-10-05  Jim Meyering  <meyering@redhat.com>
28138
28139         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28140         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28141         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28142
28143 2008-10-04  Bruno Haible  <bruno@clisp.org>
28144
28145         * modules/dup2 (License): Change to LGPLv2+.
28146         * modules/sleep (License): Likewise.
28147         * modules/perror (License): Likewise.
28148         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28149         Blake.
28150         * modules/signal (License): Likewise.
28151         * modules/sigprocmask (License): Likewise.
28152         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28153         Meyering.
28154
28155 2008-10-04  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28158         Reported by Rainer Tammer <tammer@tammer.net>.
28159
28160 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28161             Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28164         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28165         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28166
28167 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28168
28169         filevercmp: new module
28170         * lib/filevercmp.h: New function filevercmp comparing version strings.
28171         * lib/filevercmp.c: Implementation of filevercmp function.
28172         * modules/filevercmp: Module metadata.
28173         * tests/test-filevercmp.c: Unit test for new module.
28174         * modules/filevercmp-tests: Unit test metadata.
28175         * MODULES.html.sh: Add filevercmp module.
28176
28177 2008-10-03  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/c-ctype.h: Add comment.
28180         Reported by Jim Meyering.
28181
28182 2008-10-02  Bruno Haible  <bruno@clisp.org>
28183
28184         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28185
28186 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28187
28188         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28189         name of bootstrap.conf accordingly.
28190
28191 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28192
28193         * build-aux/bootstrap: Install git-merge-changelog configuration
28194         items into .gitconfig if needed.
28195
28196 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28197
28198         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28199         git repository, and initialize/update it accordingly.
28200
28201 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28202
28203         * modules/fsync-tests: New file.
28204         * tests/test-fsync.c: New file.
28205
28206         New module 'fsync'.
28207         * lib/fsync.c: New file.
28208         * m4/fsync.m4: New file.
28209         * modules/fsync: New file.
28210         * lib/unistd.in.h (fsync): New declaration.
28211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28212         GNULIB_FSYNC and HAVE_FSYNC.
28213         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28214         * MODULES.html.sh (posix_functions): Add fsync.
28215         * doc/posix-functions/fsync.texi: Mention the new module.
28216
28217 2008-10-02  Jim Meyering  <meyering@redhat.com>
28218
28219         fts.c: sync with similar code from coreutils' remove.c
28220         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28221         Guard also with "#if defined __linux__", since for now at least,
28222         this code is Linux-kernel-specific.
28223
28224 2008-10-02  Jim Meyering  <meyering@redhat.com>
28225
28226         fts: bug fixes
28227         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28228         Include <sys/vfs.h>, not <sys/statfs.h>.
28229
28230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28231         Include <sys/vfs.h>, not <sys/statfs.h>.
28232
28233 2008-10-01  Bruno Haible  <bruno@clisp.org>
28234
28235         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28236         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28237         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28238         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28239         * doc/posix-functions/posix_spawnp.texi: Likewise.
28240         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28241         whether posix_spawn actually works.
28242         * m4/pipe.m4 (gl_PIPE): Likewise.
28243         * modules/execute (Files): Add m4/posix_spawn.m4.
28244         * modules/pipe (Files): Add m4/posix_spawn.m4.
28245         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28246
28247 2008-10-01  Jim Meyering  <meyering@redhat.com>
28248
28249         remove trailing spaces
28250         * NEWS: Likewise.
28251         * lib/poll.c (poll): Likewise.
28252         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28253         * lib/winsock.c (rpl_close): Likewise.
28254         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28255         * modules/yield: Likewise.
28256         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28257         * tests/test-sys_select.c (connect_to_socket): Likewise.
28258
28259         fts.c: adjust a new interface to be more generally useful
28260         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28261         (fts_build): Adjust caller.
28262
28263 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28264
28265         * modules/cond-tests: New file.
28266         * tests/test-cond.c: New file.
28267
28268 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28269             Bruno Haible  <bruno@clisp.org>
28270
28271         * modules/cond (Dependencies): Add errno, time.
28272         * lib/glthread/cond.h: Include <time.h>.
28273         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28274         across platforms.
28275
28276 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28277             Bruno Haible  <bruno@clisp.org>
28278
28279         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28280
28281 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28282             Bruno Haible  <bruno@clisp.org>
28283
28284         * modules/tls-tests (Depends-on): Add thread, yield.
28285         (configure.ac): Remove all checks.
28286         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28287         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28288         gl_thread_self): Remove definitions. Include glthread/thread.h and
28289         glthread/yield.h instead.
28290         (test_tls): Pass an additional NULL argument to gl_thread_join.
28291
28292 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28293             Bruno Haible  <bruno@clisp.org>
28294
28295         * modules/lock-tests (Depends-on): Add thread, yield.
28296         (configure.ac): Remove all checks.
28297         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28298         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28299         gl_thread_self): Remove definitions. Include glthread/thread.h and
28300         glthread/yield.h instead.
28301         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28302         additional NULL argument to gl_thread_join.
28303
28304 2008-09-30  Bruno Haible  <bruno@clisp.org>
28305
28306         Fix the Win32 implementation of the 'thread' module.
28307         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28308         pointer type.
28309         (gl_thread_self): Invoke gl_thread_self_func.
28310         (gl_thread_self_func): New declaration.
28311         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28312         (do_init_self_key, init_self_key): New functions.
28313         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28314         Remove some fields.
28315         (running_threads, running_lock): Remove variables.
28316         (get_current_thread_handle): New function.
28317         (gl_thread_self_func, wrapper_func, glthread_create_func,
28318         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28319         simplified.
28320
28321 2008-09-30  Bruno Haible  <bruno@clisp.org>
28322
28323         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28324         files.
28325
28326 2008-09-30  Jim Meyering  <meyering@redhat.com>
28327
28328         fts.m4: correct the test for statfs.f_type
28329         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28330         when checking for statfs.f_type.
28331
28332 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28333
28334         tests: avoid some compiler warnings
28335         * tests/test-memchr.c (main): Pass NULL indirectly.
28336         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28337
28338 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
28339
28340         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28341         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28342         exactly specified dayshifts.
28343         (dayshift): New rule.
28344         (rel): Add dayshift.
28345         (relative_time_table) [tomorrow, yesterday, today, now]:
28346         Use tDAY_SHIFT in place of tDAY_UNIT.
28347         * tests/test-getdate.c: Add tests for now-disallowed countable
28348         dayshifts, e.g., "4 yesterday ago".
28349
28350 2008-09-29  Bruno Haible  <bruno@clisp.org>
28351
28352         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28353         * tests/test-posix_spawn1.in.sh: Renamed from
28354         tests/test-posix_spawn.in.sh.
28355         * tests/test-posix_spawn2.c: New file.
28356         * tests/test-posix_spawn2.in.sh: New file.
28357         * modules/posix_spawnp-tests (Files): Update.
28358         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28359
28360 2008-09-29  Bruno Haible  <bruno@clisp.org>
28361
28362         Propagate effects of putenv/setenv/unsetenv to child processes.
28363         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28364         * lib/pipe.c (create_pipe): Likewise.
28365
28366 2008-09-29  Bruno Haible  <bruno@clisp.org>
28367
28368         Enable use of shell scripts as executables in mingw.
28369         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28370         run the program as a shell script.
28371         * lib/pipe.c (create_pipe): Likewise.
28372         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28373         resulting array.
28374
28375 2008-09-29  Eric Blake  <ebb9@byu.net>
28376
28377         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28378
28379 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28380
28381         * doc/posix-functions/accept.texi: Update mingw problems.
28382         * doc/posix-functions/bind.texi: Update mingw problems.
28383         * doc/posix-functions/close.texi: Update mingw problems.
28384         * doc/posix-functions/connect.texi: Update mingw problems.
28385         * doc/posix-functions/getpeername.texi: Update mingw problems.
28386         * doc/posix-functions/getsockname.texi: Update mingw problems.
28387         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28388         * doc/posix-functions/ioctl.texi: Update mingw problems.
28389         * doc/posix-functions/listen.texi: Update mingw problems.
28390         * doc/posix-functions/recv.texi: Update mingw problems.
28391         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28392         * doc/posix-functions/select.texi: Update mingw problems.
28393         * doc/posix-functions/send.texi: Update mingw problems.
28394         * doc/posix-functions/sendto.texi: Update mingw problems.
28395         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28396         * doc/posix-functions/socket.texi: Update mingw problems.
28397
28398 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28399             Bruno Haible  <bruno@clisp.org>
28400
28401         * lib/sys_select.in.h: Include sys/time.h.
28402         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28403         * modules/sys_select: Depend on sys_time.
28404         * tests/test-sys_select.c: Test that sys/select.h defines struct
28405         timeval fully.
28406
28407 2008-09-29  Bruno Haible  <bruno@clisp.org>
28408
28409         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28410         * lib/sys_select.in.h: Likewise.
28411
28412 2008-09-29  Bruno Haible  <bruno@clisp.org>
28413
28414         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28415
28416 2008-09-29  Bruno Haible  <bruno@clisp.org>
28417
28418         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28419         Set LIBSOCKET instead of augmenting LIBS.
28420         * modules/sockets (Link): New section.
28421         * modules/sockets-tests (test_sockets_LDADD): New variable.
28422         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28423         * modules/poll-tests (test_poll_LDADD): New variable.
28424         * NEWS: Document the change.
28425
28426 2008-09-29  Bruno Haible  <bruno@clisp.org>
28427
28428         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28429         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28430         ARPA_INET_H directly.
28431         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28432
28433 2008-09-28  Bruno Haible  <bruno@clisp.org>
28434
28435         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28436         from gl_HEADER_SYS_SOCKET.
28437         (gl_HEADER_SYS_SOCKET): Invoke it.
28438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28439
28440 2008-09-28  Bruno Haible  <bruno@clisp.org>
28441
28442         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28443         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28444         Needed on OSF/1 4.0.
28445
28446 2008-09-28  Bruno Haible  <bruno@clisp.org>
28447
28448         Override open more carefully.
28449         * lib/open.c (orig_open): New function.
28450         (rpl_open): Use orig_open instead of open.
28451         * lib/fcntl.in.h: Add special invocation convention.
28452         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28453         (gl_FUNC_OPEN): Invoke it.
28454
28455         Override freopen more carefully.
28456         * lib/freopen.c (orig_freopen): New function.
28457         (rpl_freopen): Use orig_freopen instead of freopen.
28458         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28459         (gl_FUNC_FREOPEN): Invoke it.
28460
28461         Override fopen more carefully.
28462         * lib/fopen.c (orig_fopen): New function.
28463         (rpl_fopen): Use orig_fopen instead of fopen.
28464         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28465         (gl_FUNC_FOPEN): Invoke it.
28466         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28467
28468 2008-09-28  Bruno Haible  <bruno@clisp.org>
28469
28470         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28471         SIGPIPE.
28472
28473 2008-09-28  Bruno Haible  <bruno@clisp.org>
28474
28475         * tests/test-sigaction.c (handler, main): Disable the check whether
28476         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28477         glibc systems with LinuxThreads.
28478
28479 2008-09-28  Bruno Haible  <bruno@clisp.org>
28480
28481         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28482
28483         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28484         with AIX xlc.
28485         * lib/fcntl.in.h (open): Likewise.
28486         Reported by Rainer Tammer <tammer@tammer.net>.
28487
28488 2008-09-28  Bruno Haible  <bruno@clisp.org>
28489
28490         * modules/posix_spawnp-tests: New file.
28491         * tests/test-posix_spawn.c: New file.
28492         * tests/test-posix_spawn.in.sh: New file.
28493
28494         New module 'posix_spawnp'.
28495         * modules/posix_spawnp: New file.
28496         * lib/spawnp.c: New file, from GNU libc with modifications.
28497         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28498
28499         New module 'posix_spawn'.
28500         * modules/posix_spawn: New file.
28501         * lib/spawn.c: New file, from GNU libc with modifications.
28502         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28503
28504         New module 'posix_spawnattr_destroy'.
28505         * modules/posix_spawnattr_destroy: New file.
28506         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28507         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28508         module.
28509
28510         New module 'posix_spawnattr_setsigmask'.
28511         * modules/posix_spawnattr_setsigmask: New file.
28512         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28513         modifications.
28514         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28515         new module.
28516
28517         New module 'posix_spawnattr_getsigmask'.
28518         * modules/posix_spawnattr_getsigmask: New file.
28519         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28520         modifications.
28521         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28522         new module.
28523
28524         New module 'posix_spawnattr_setsigdefault'.
28525         * modules/posix_spawnattr_setsigdefault: New file.
28526         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28527         modifications.
28528         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28529         new module.
28530
28531         New module 'posix_spawnattr_getsigdefault'.
28532         * modules/posix_spawnattr_getsigdefault: New file.
28533         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28534         modifications.
28535         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28536         new module.
28537
28538         New module 'posix_spawnattr_setschedpolicy'.
28539         * modules/posix_spawnattr_setschedpolicy: New file.
28540         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28541         modifications.
28542         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28543         new module.
28544
28545         New module 'posix_spawnattr_getschedpolicy'.
28546         * modules/posix_spawnattr_getschedpolicy: New file.
28547         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28548         modifications.
28549         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28550         new module.
28551
28552         New module 'posix_spawnattr_setschedparam'.
28553         * modules/posix_spawnattr_setschedparam: New file.
28554         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28555         modifications.
28556         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28557         new module.
28558
28559         New module 'posix_spawnattr_getschedparam'.
28560         * modules/posix_spawnattr_getschedparam: New file.
28561         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28562         modifications.
28563         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28564         new module.
28565
28566         New module 'posix_spawnattr_setpgroup'.
28567         * modules/posix_spawnattr_setpgroup: New file.
28568         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28569         modifications.
28570         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28571         module.
28572
28573         New module 'posix_spawnattr_getpgroup'.
28574         * modules/posix_spawnattr_getpgroup: New file.
28575         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28576         modifications.
28577         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28578         module.
28579
28580         New module 'posix_spawnattr_setflags'.
28581         * modules/posix_spawnattr_setflags: New file.
28582         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28583         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28584         module.
28585
28586         New module 'posix_spawnattr_getflags'.
28587         * modules/posix_spawnattr_getflags: New file.
28588         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28589         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28590         module.
28591
28592         New module 'posix_spawnattr_init'.
28593         * modules/posix_spawnattr_init: New file.
28594         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28595         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28596         module.
28597
28598         New module 'posix_spawn_file_actions_destroy'.
28599         * modules/posix_spawn_file_actions_destroy: New file.
28600         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28601         modifications.
28602         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28603         the new module.
28604
28605         New module 'posix_spawn_file_actions_addopen'.
28606         * modules/posix_spawn_file_actions_addopen: New file.
28607         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28608         modifications.
28609         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28610         the new module.
28611
28612         New module 'posix_spawn_file_actions_adddup2'.
28613         * modules/posix_spawn_file_actions_adddup2: New file.
28614         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28615         modifications.
28616         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28617         the new module.
28618
28619         New module 'posix_spawn_file_actions_addclose'.
28620         * modules/posix_spawn_file_actions_addclose: New file.
28621         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28622         modifications.
28623         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28624         the new module.
28625
28626         New module 'posix_spawn_file_actions_init'.
28627         * modules/posix_spawn_file_actions_init: New file.
28628         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28629         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28630         new module.
28631
28632         New module 'posix_spawn-internal'.
28633         * modules/posix_spawn-internal: New file.
28634         * lib/spawn_int.h: New file, from GNU libc with modifications.
28635         * lib/spawni.c: New file, from GNU libc with modifications.
28636         * m4/posix_spawn.m4: New file.
28637
28638         New module 'spawn'.
28639         * modules/spawn: New file.
28640         * lib/spawn.in.h: New file, from GNU libc with modifications.
28641         * m4/spawn_h.m4: New file.
28642         * doc/posix-headers/spawn.texi: Mention the new module.
28643
28644 2008-09-28  Bruno Haible  <bruno@clisp.org>
28645
28646         * modules/sched-tests: New file.
28647         * tests/test-sched.c: New file.
28648
28649         New module 'sched'.
28650         * modules/sched: New file.
28651         * lib/sched.in.h: New file.
28652         * m4/sched_h.m4: New file.
28653         * doc/posix-headers/sched.texi: Mention the new module.
28654
28655 2008-09-27  Eric Blake  <ebb9@byu.net>
28656
28657         Fix previous patch, and tweak references to $0.
28658         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28659         (func_version, func_gnulib_dir): Don't call this program
28660         gnulib-tool.
28661         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28662         with using $0 in function.
28663         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28664         (func_fatal_error): Reuse the name the user invoked us with.
28665
28666 2008-09-27  Bruno Haible  <bruno@clisp.org>
28667
28668         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28669         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28670         (gl_ICONV_H): Not here.
28671         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28672         instead of assigning ICONV_H directly.
28673
28674         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28676         WCHAR_H directly.
28677
28678 2008-09-27  Bruno Haible  <bruno@clisp.org>
28679
28680         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28681         * modules/arpa_inet (Depends-on): Add link-warning.
28682         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28683         * modules/unistd (Makefile.am): Likewise.
28684
28685 2008-09-26  Bruno Haible  <bruno@clisp.org>
28686
28687         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28688         variables.
28689         (func_version): Essentially copied from gnulib-tool.
28690         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28691         func_readlink): Copied from gnulib-tool.
28692
28693 2008-09-26  Bruno Haible  <bruno@clisp.org>
28694
28695         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28696         invoking git-version-gen.
28697
28698 2008-09-26  Bruno Haible  <bruno@clisp.org>
28699
28700         * posix-modules: Update to directory names changed on 2008-01-19.
28701         Remove commas in output before splitting into words. No more need to
28702         avoid 'ftruncate' since 2007-02-19.
28703
28704 2008-09-26  Bruno Haible  <bruno@clisp.org>
28705
28706         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28707
28708 2008-09-26  Bruno Haible  <bruno@clisp.org>
28709
28710         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28711         * modules/fwriteerror (Depends-on): Add errno.
28712
28713 2008-09-26  Bruno Haible  <bruno@clisp.org>
28714
28715         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28716         * tests/test-vc-list-files-cvs.sh: Likewise.
28717
28718 2008-09-26  Bruno Haible  <bruno@clisp.org>
28719
28720         * doc/posix-headers/sys_resource.texi: Reorder items.
28721
28722 2008-09-26  Jim Meyering  <meyering@redhat.com>
28723
28724         fts: tweak inode comparison function
28725         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28726         inode numbers, as documented.
28727
28728         fts: sort dirent entries on inode number before traversing
28729         This avoids a quadratic, seek-related performance penalty when
28730         operating on a directory containing many entries (measurable at 10k;
28731         3.5 hours at 2 million entries with a cold cache) on certain types
28732         of file systems, including ext3 and ext4, but not tmpfs.
28733         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28734         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28735         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28736         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28737         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28738         (fts_build): Set the stat.st_ino member from D_INO.
28739         If it is likely to be useful, sort dirent entries on inode number.
28740
28741         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28742         and the struct statfs.f_type member.
28743         * modules/fts (Depends-on): Add d-ino.
28744
28745 2008-09-26  Bruno Haible  <bruno@clisp.org>
28746
28747         * modules/sigpipe-die (Depends-on): Add sigpipe.
28748
28749         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28750         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28751         and GNULIB_STDIO_H_SIGPIPE are set.
28752         * lib/stdio-write.c: New file.
28753         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28754         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28755         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28756         REPLACE_STDIO_WRITE_FUNCS.
28757         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28758         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28759         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28760         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28761         * modules/stdio (Files): Add lib/stdio-write.c.
28762         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28763         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28764         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28765         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28766         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28767         REPLACE_FPRINTF_POSIX.
28768         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28769         REPLACE_PRINTF_POSIX.
28770         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28771         REPLACE_VFPRINTF_POSIX.
28772         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28773         REPLACE_VPRINTF_POSIX.
28774         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28775         SIGPIPE issue.
28776         * doc/posix-functions/fputc.texi: Likewise.
28777         * doc/posix-functions/fputs.texi: Likewise.
28778         * doc/posix-functions/fwrite.texi: Likewise.
28779         * doc/posix-functions/printf.texi: Likewise.
28780         * doc/posix-functions/putc.texi: Likewise.
28781         * doc/posix-functions/putchar.texi: Likewise.
28782         * doc/posix-functions/puts.texi: Likewise.
28783         * doc/posix-functions/vfprintf.texi: Likewise.
28784         * doc/posix-functions/vprintf.texi: Likewise.
28785
28786         * modules/safe-write (Depends-on): Add write.
28787
28788         * modules/sigpipe-tests: New file.
28789         * tests/test-sigpipe.c: New file.
28790         * tests/test-sigpipe.sh: New file.
28791
28792         * modules/write: New file.
28793         * lib/unistd.in.h: Include <sys/types.h>.
28794         (write): New declaration.
28795         * lib/write.c: New file.
28796         * m4/write.m4: New file.
28797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28798         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28799         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28800         GNULIB_WRITE, REPLACE_WRITE.
28801         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28802         and the SIGPIPE issue.
28803
28804         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28805         (raise): New declaration.
28806         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28807         (ext_signal): New function.
28808         (rpl_raise): New function.
28809         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28810         GNULIB_SIGNAL_H_SIGPIPE.
28811         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28812         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28813
28814         * modules/sigpipe: New file.
28815         * m4/sigpipe.m4: New file.
28816
28817 2008-09-25  Derek Price  <derek@ximbiot.com>
28818             Bruno Haible  <bruno@clisp.org>
28819
28820         * gnulib-tool (func_import): Report all license incompatibilities, not
28821         just the first one.
28822
28823 2008-09-25  Bruno Haible  <bruno@clisp.org>
28824
28825         * gnulib-tool (func_import): When computing the edits, consider not
28826         only the Makefile.ams that exist but also those that will be generated.
28827
28828 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28829
28830         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28831         fixes gnulib-tool --test warning about duplicate dependency.
28832
28833 2008-09-25  Bruno Haible  <bruno@clisp.org>
28834
28835         * gnulib-tool: Don't ask the user to perform edits in the generated
28836         Makefile.ams.
28837         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28838         apply to the Makefile.am being generated.
28839         (func_emit_tests_Makefile_am): Execute edits that apply to the
28840         Makefile.am being generated.
28841         (func_import): Setup list of Makefile.am edits before emitting the
28842         Makefile.ams, not at the end.
28843         (func_create_testdir): Update.
28844         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28845
28846 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28847
28848         * gnulib-tool (func_import): Store the --tests-base option in the
28849         comment in gnulib-cache.m4.
28850
28851 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28852
28853         * NEWS: Document increased portability that sys_select now provides.
28854
28855         * lib/sys_select.in.h: Install select wrapper.
28856         * lib/sys_socket.in.h: Use more descriptive name when there is no
28857         select wrapper.
28858         * lib/winsock-select.c: New.
28859         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28860         Require gl_HEADER_SYS_SOCKET.
28861         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28862         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28863         * tests/test-sys_select.c: Add functional tests.
28864
28865 2008-09-24  Eric Blake  <ebb9@byu.net>
28866
28867         open, fopen: close fd leak in last patch
28868         * lib/open.c (rpl_open): Close fd before returning error.
28869         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28870         * doc/posix-functions/open.texi (open): Document that Irix also
28871         has the bug.
28872         * doc/posix-functions/fopen.texi (fopen): Likewise.
28873         Reported by Paolo Bonzini.
28874
28875 2008-09-24  Bruno Haible  <bruno@clisp.org>
28876
28877         Ensure that a filename ending in a slash cannot be used to access a
28878         non-directory.
28879         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28880         to check whether it's really a directory.
28881         * lib/fopen.c: Include fcntl.h, unistd.h.
28882         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28883         and fdopen().
28884         * modules/fopen (Depends-on): Add unistd.
28885         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28886         * tests/test-fopen.c (main): Likewise.
28887         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28888         * doc/posix-functions/fopen.texi: Likewise.
28889         Reported by Eric Blake.
28890
28891 2008-09-23  Eric Blake  <ebb9@byu.net>
28892
28893         c-stack: avoid compiler optimizations when provoking overflow
28894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28895         recursion harder to optimize, to ensure a stack overflow occurs.
28896         * tests/test-c-stack.c (recurse): Likewise.
28897         Borrowed from libsigsegv.
28898
28899         c-stack: work around Irix sigaltstack bug
28900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28901         whether sigaltstack uses wrong end of stack_t (copied in part from
28902         libsigsegv).
28903         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28904         Irix bug, without requiring an over-allocation.
28905         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28906         bug.
28907
28908         fopen: document mingw bug on directories
28909         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28910         not allowing a stream visiting a directory, even though reading
28911         from such a stream is not portable.
28912
28913 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28914
28915         * lib/poll.c: Rewrite.
28916         * modules/poll: Depend on alloca.
28917
28918 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28919
28920         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28921         instead define prototypes for a full set of wrappers.  Ensure
28922         that Cygwin does not use the compatibility code, which is only
28923         for MinGW.
28924         * lib/winsock.c: New.
28925         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28926         * modules/sys_socket: Add lib/winsock.c.
28927
28928         * modules/poll-tests: Add errno and perror.
28929         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28930
28931 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28932
28933         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28934
28935 2008-09-23  Bruno Haible  <bruno@clisp.org>
28936
28937         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28938         * doc/glibc-functions/*: Likewise.
28939
28940 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28941
28942         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28943         success.
28944
28945 2008-09-22  Eric Blake  <ebb9@byu.net>
28946             Bruno Haible  <bruno@clisp.org>
28947
28948         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28949         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28950         supply %A but mishandle pseudo-NaN.
28951         Reported by Simon Josefsson.
28952
28953 2008-09-21  Bruno Haible  <bruno@clisp.org>
28954
28955         * tests/test-lock.c (main): Tweak skip message.
28956         * tests/test-tls.c (main): Likewise.
28957
28958 2008-09-21  Bruno Haible  <bruno@clisp.org>
28959
28960         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28961         whether 'struct sigaction' has sa_sigaction here...
28962         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28963         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28964
28965 2008-09-21  Bruno Haible  <bruno@clisp.org>
28966
28967         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28968         section.
28969         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28970         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28971         the new section.
28972         (Support for obsolete systems lacking POSIX:2001): New section.
28973         (String handling <string.h>): Move strdup to the new section.
28974         Suggested by Simon Josefsson and Paolo Bonzini.
28975
28976 2008-09-21  Bruno Haible  <bruno@clisp.org>
28977
28978         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28979         exponents in %e and %g results on 'long double'. Needed for mingw's
28980         improved *printf functions.
28981         * tests/test-vasprintf-posix.c (test_function): Likewise.
28982         * tests/test-snprintf-posix.h (test_function): Likewise.
28983         * tests/test-sprintf-posix.h (test_function): Likewise.
28984         Reported by Eric Blake.
28985
28986 2008-09-21  Bruno Haible  <bruno@clisp.org>
28987
28988         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28989         * tests/test-sprintf-posix.h (test_function): Likewise.
28990
28991 2008-09-21  Bruno Haible  <bruno@clisp.org>
28992
28993         * modules/getpass (Depends-on): Add strdup-posix.
28994
28995         New module 'strdup-posix'.
28996         * modules/strdup-posix: New file.
28997         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28998         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29000         REPLACE_STRDUP.
29001         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29002         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29004         strdup-posix.
29005
29006         * modules/strdup (Depends-on): Remove malloc-posix.
29007
29008 2008-09-20  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29011         Wildenhues.
29012
29013 2008-09-20  Bruno Haible  <bruno@clisp.org>
29014
29015         Ensure that wint_t gets defined on IRIX 5.3.
29016         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29017         * lib/wctype.in.h (wint_t): Likewise.
29018         (__wctype_wint_t): Remove type.
29019         (isw*): Use wint_t instead of __wctype_wint_t.
29020         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29021         * modules/wchar (Files): Add m4/wint_t.m4.
29022         (Makefile.am): Substitute HAVE_WINT_T.
29023         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29024         * tests/test-wctype.c: Check that wint_t is defined.
29025         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29026         * doc/posix-headers/wctype.texi: Likewise.
29027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29028
29029 2008-09-18  Bruno Haible  <bruno@clisp.org>
29030
29031         * gnulib-tool (func_exit): Update comment.
29032
29033 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29034
29035         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29036         assumes strdup exists and does not depend on strdup to return
29037         ENOMEM on out of memory conditions.
29038
29039 2008-09-18  Bruno Haible  <bruno@clisp.org>
29040
29041         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
29042         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29043         digits for the exponent.
29044
29045 2008-09-18  Jim Meyering  <meyering@redhat.com>
29046             Bruno Haible  <bruno@clisp.org>
29047
29048         * lib/vasnprintf.c (decimal_point_char): Define also if
29049         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29050
29051 2008-09-16  Bruno Haible  <bruno@clisp.org>
29052         and Eric Blake  <ebb9@byu.net>
29053
29054         vasnprintf: support Irix 5.3
29055         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29056         that mishandle long double infinity.
29057         Reported by Tom G. Christensen.
29058
29059 2008-09-16  Bruno Haible  <bruno@clisp.org>
29060
29061         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29062         Solaris 9.
29063         * doc/glibc-functions/alphasort.texi: Likewise.
29064         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29065
29066 2008-09-16  Jim Meyering  <meyering@redhat.com>
29067
29068         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29069         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29070         a umask modification leak out of a subshell.  Otherwise, the
29071         opensolaris /bin/sh would be accepted and thus cause unwarranted
29072         failures in the coreutils test suite.
29073
29074 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29075
29076         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29077         to succeed.
29078
29079 2008-09-16  Jim Meyering  <meyering@redhat.com>
29080
29081         avoid spurious test failure when library is built without ACL support
29082         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29083         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29084         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29085         * tests/test-copy-acl.sh: Likewise.
29086
29087 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29088
29089         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29090         based on character occurrence counts.
29091
29092 2008-09-15  Eric Blake  <ebb9@byu.net>
29093
29094         tests: avoid some compiler warnings
29095         * tests/test-memchr.c (main): Pass NULL indirectly.
29096         * tests/test-closein.c (main): Avoid unused variable.
29097
29098 2008-09-15  Bruno Haible  <bruno@clisp.org>
29099
29100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29101         are missing on OpenBSD 4.0 individually.
29102         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29103
29104 2008-09-15  Bruno Haible  <bruno@clisp.org>
29105
29106         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29107         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29108         * doc/posix-functions/perror.texi: Likewise.
29109         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29110         is missing.
29111         Reported by Eric Blake.
29112
29113         * lib/errno.in.h: Use replacement values >= 2000.
29114         Reported by Eric Blake.
29115
29116 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29117
29118         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29119         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29120         limit.
29121         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29122         compareseq was aborted.
29123
29124 2008-09-14  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29127         yvec_edit_count.
29128         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29129         (fstrcmp_bounded): Simplify result computation accordingly.
29130
29131 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29132
29133         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29134         (fstrcmp): Define in terms of fstrcmp_bounded.
29135         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29136         lower_bound argument.
29137         Return quickly if the result is certainly < lower_bound.
29138         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29139
29140 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29141
29142         * lib/diffseq.h (EARLY_ABORT): New macro.
29143         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29144         evaluates to true.
29145
29146 2008-09-14  Bruno Haible  <bruno@clisp.org>
29147
29148         * modules/perror-tests: New file.
29149         * tests/test-perror.sh: New file.
29150         * tests/test-perror.c: New file.
29151
29152         New module 'perror'.
29153         * lib/stdio.in.h (perror): New declaration.
29154         * lib/perror.c: New file.
29155         * m4/perror.m4: New file.
29156         * modules/perror: New file.
29157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29158         * doc/posix-functions/perror.texi: Mention the perror module.
29159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29160         REPLACE_PERROR.
29161         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29162         REPLACE_PERROR.
29163
29164 2008-09-14  Bruno Haible  <bruno@clisp.org>
29165
29166         * modules/stdio (Makefile.am): Reorder to match the order in
29167         lib/stdio.in.h.
29168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29169
29170 2008-09-13  Bruno Haible  <bruno@clisp.org>
29171
29172         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29173
29174 2008-09-13  Bruno Haible  <bruno@clisp.org>
29175
29176         Extend strerror to cover the added errno values.
29177         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29178         (rpl_strerror): Provide error messages for the added errno values and
29179         for the WSA* values.
29180         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29181         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29182         strerror.
29183         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29184         * modules/strerror (Depends-on): Add errno.
29185         * doc/posix-functions/strerror.texi: Document the change.
29186         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29187         and EOVERFLOW.
29188
29189 2008-09-13  Bruno Haible  <bruno@clisp.org>
29190
29191         * modules/EOVERFLOW: Remove file.
29192         * m4/eoverflow.m4: Remove file.
29193         * modules/EOVERFLOW-tests: Remove file.
29194         * tests/test-EOVERFLOW.c: Remove file.
29195         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29196         * modules/ftell (Depends-on): Likewise.
29197         * modules/getdelim (Depends-on): Likewise.
29198         * modules/getugroups (Depends-on): Likewise.
29199         * modules/poll (Depends-on): Likewise.
29200         * modules/snprintf (Depends-on): Likewise.
29201         * modules/sprintf-posix (Depends-on): Likewise.
29202         * modules/vasnprintf (Depends-on): Likewise.
29203         * modules/vasprintf (Depends-on): Likewise.
29204         * modules/vfprintf-posix (Depends-on): Likewise.
29205         * modules/vsnprintf (Depends-on): Likewise.
29206         * modules/vsprintf-posix (Depends-on): Likewise.
29207         * modules/xvasprintf (Depends-on): Likewise.
29208         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29209         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29210         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29211         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29212         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29213         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29214         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29215         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29216         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29217         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29218         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29219         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29221         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29222         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29223         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29224         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29225         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29226         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29227         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29229         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29230         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29231         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29232         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29233         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29234         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29235         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29236         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29237         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29238         * MODULES.html.sh: Remove EOVERFLOW.
29239         * NEWS: Mention the change.
29240
29241 2008-09-13  Bruno Haible  <bruno@clisp.org>
29242
29243         * modules/errno-tests: New file.
29244         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29245
29246         * lib/errno.in.h: New file.
29247         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29248         * modules/errno: New file.
29249         * doc/posix-headers/errno.texi: Update documentation.
29250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29251
29252 2008-09-13  Bruno Haible  <bruno@clisp.org>
29253
29254         * tests/test-poll.c: Use #if for native Windows, rather than testing
29255         __MSVCRT__.
29256
29257 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29258             Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/glob.c: Don't include <pwd.h> on native Windows.
29261         (WINDOWS32): New macro.
29262         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29263
29264 2008-09-13  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29267         (ETIMEDOUT): Remove macro.
29268         (glthread_cond_timedwait_multithreaded): New declaration.
29269         (glthread_cond_timedwait): Use it.
29270         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29271         (glthread_cond_timedwait_multithreaded): New function.
29272
29273 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29274
29275         * modules/poll-tests: Do not check for io.h.
29276         * tests/test-poll.c: Check for __MSVCRT__ instead.
29277
29278 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29279
29280         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29281         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29282         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29283
29284 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29285
29286         * modules/poll-tests: New.
29287         * tests/test-poll.c: New.
29288
29289 2008-09-12  Eric Blake  <ebb9@byu.net>
29290
29291         frexp: test for NetBSD failure on -0.0
29292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29293         not all, bugs from NetBSD 3.0 have been fixed.
29294         * doc/posix-functions/frexp.texi (frexp): Document bug.
29295         Reported by Thomas Klausner.
29296
29297         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29298         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29299         literal -0.0.
29300         Reported by Jonathan C. Patschke <jp@centtech.com>.
29301
29302 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29303
29304         * lib/glthread/cond.h: Use dummy implementation also if
29305         USE_WIN32_THREADS.
29306
29307 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29308
29309         * modules/fnmatch-posix (License): Change to LGPLv2+.
29310         * modules/fnmatch-gnu (License): Likewise.
29311
29312 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29313
29314         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29315
29316 2008-09-11  Jim Meyering  <meyering@redhat.com>
29317
29318         * users.txt: Add gtk-vnc.
29319
29320 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29321
29322         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29323         rotate amounts.
29324
29325         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29326         required for 16-bit and 8-bit rotates.
29327         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29328         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29329         UINT8_MAX instead of hard-coded constants.
29330         Suggested by Paul Eggert.
29331
29332 2008-09-07  Bruno Haible  <bruno@clisp.org>
29333
29334         * tests/test-striconveh.c (main): Check behaviour when converting from
29335         UTF-7.
29336
29337         Make striconveh work better with stateful encodings.
29338         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29339         that iconv does not increment the inptr when returning -1/EINVAL.
29340
29341 2008-09-07  Bruno Haible  <bruno@clisp.org>
29342
29343         * build-aux/config.rpath: Update according to libtool-2.2.6.
29344         * build-aux/config.libpath: Likewise.
29345
29346 2008-09-06  Bruno Haible  <bruno@clisp.org>
29347
29348         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29349         * lib/freadptr.c (freadptr): Likewise.
29350         * lib/freadseek.c (freadptrinc): Likewise.
29351         Reported by Simon Josefsson.
29352
29353 2008-09-06  Bruno Haible  <bruno@clisp.org>
29354
29355         * modules/freadptr (License): Change to LGPLv2+.
29356         * modules/freadseek (License): Likewise.
29357         Suggested by Eric Blake.
29358
29359         * modules/memchr2 (License): Change to LGPLv2+.
29360         Approved by Eric Blake.
29361
29362 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29363             Bruno Haible  <bruno@clisp.org>
29364
29365         Make gnulib-tool work with native 'sed' on AIX.
29366         * gnulib-tool (sed_noop): New variable.
29367         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29368         func_add_or_update, func_create_testdir): Use it to initialize sed
29369         script variables.
29370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29371
29372 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29373             Bruno Haible  <bruno@clisp.org>
29374
29375         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29376         also works after #include directives.
29377
29378 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
29379
29380         getdate.y: reject an out-of-range timezone value
29381         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29382         the range [-24...+24].  When specified with only one or two digits,
29383         * tests/test-getdate.c: Tests for the fix.
29384         * doc/getdate.texi: Document this change.
29385
29386 2008-09-03  Bruno Haible  <bruno@clisp.org>
29387
29388         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29389
29390 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29391
29392         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29393         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29394         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29395         Blake <ebb9@byu.net>.
29396
29397         * tests/test-bitrotate.c: Add more test vectors.
29398
29399 2008-09-02  Eric Blake  <ebb9@byu.net>
29400
29401         vasnprintf-posix: handle large precision via %.*d
29402         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29403         when handling it ourselves.
29404         * tests/test-vasnprintf-posix.c (test_function): Add test.
29405         * tests/test-snprintf-posix.h (test_function): Likewise.
29406         * tests/test-sprintf-posix.h (test_function): Likewise.
29407         * tests/test-vasprintf-posix.c (test_function): Likewise.
29408         Reported by Alain Guibert.
29409
29410 2008-09-01  Eric Blake  <ebb9@byu.net>
29411
29412         c-stack: make configure-time check more robust
29413         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29414         successful sigaction call.
29415         Reported by Tom G. Christensen.
29416
29417 2008-09-01  Bruno Haible  <bruno@clisp.org>
29418
29419         New module 'findprog-lgpl'.
29420         * modules/findprog-lgpl: New file.
29421         * lib/findprog-lgpl.c: New file.
29422         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29423         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29424         to decide whether to use strdup or xstrdup, concatenated_filename or
29425         xconcatenated_filename.
29426
29427 2008-09-01  Bruno Haible  <bruno@clisp.org>
29428
29429         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29430         'xconcat-filename' (GPL).
29431         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29432         (License): Change to LGPLv2+.
29433         * modules/xconcat-filename: New file.
29434         * lib/concat-filename.h (concatenated_filename): Change specification.
29435         (xconcatenated_filename): New declaration.
29436         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29437         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29438         memory situations.
29439         * lib/xconcat-filename.c: New file.
29440         * NEWS: Mention the change.
29441         * lib/findprog.c: Include concat-filename.h, not filename.h.
29442         (find_in_path): Use xconcatenated_filename instead of
29443         concatenated_filename.
29444         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29445         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29446         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29447         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29448         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29449         instead of concatenated_filename.
29450         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29451         (execute_java_class): Use xconcatenated_filename instead of
29452         concatenated_filename.
29453         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29454         * modules/javacomp (Depends-on): Likewise.
29455         * modules/javaexec (Depends-on): Likewise.
29456
29457 2008-09-01  Bruno Haible  <bruno@clisp.org>
29458
29459         Split module 'filename' into 'filename' and 'concat-filename'.
29460         * modules/filename: Keep only lib/filename.h.
29461         (License): Change to LGPLv2+.
29462         * modules/concat-filename: New file, extracted from modules/filename.
29463         * lib/filename.h (concatenated_filename): Remove declaration.
29464         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29465         * lib/concat-filename.c: Include concat-filename.h.
29466         * NEWS: Mention the change.
29467
29468 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29469
29470         * lib/bitrotate.h (rotl8, rotr8): Add.
29471
29472         * modules/bitrotate (configure.ac): Need
29473         AC_REQUIRE([AC_C_INLINE]).
29474         (Description): Mention stdint.h.  Reported by Bruno Haible
29475         <bruno@clisp.org>.
29476
29477         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29478         Paolo Bonzini <bonzini@gnu.org>.
29479
29480 2008-08-31  Bruno Haible  <bruno@clisp.org>
29481
29482         Assume Solaris specific bi-arch conventions on Solaris systems.
29483         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29484         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29485         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29486         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29487         like acl_libdirstem.
29488         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29489         acl_libdirstem.
29490         * NEWS: Mention the change.
29491         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29492
29493 2008-08-31  Jim Meyering  <meyering@redhat.com>
29494
29495         * lib/strftime.h: Add comments describing the two added arguments.
29496
29497         remove duplicate #include directives
29498         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29499         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29500
29501 2008-08-31  Bruno Haible  <bruno@clisp.org>
29502
29503         New module 'sigpipe-die'.
29504         * modules/sigpipe-die: New file.
29505         * lib/sigpipe-die.h: New file.
29506         * lib/sigpipe-die.c: New file.
29507         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29508
29509 2008-08-31  Bruno Haible  <bruno@clisp.org>
29510
29511         Don't override previously installed signal handlers.
29512         * lib/fatal-signal.c (saved_sigactions): New variable.
29513         (uninstall_handlers): Reset the signal to the saved handler, not
29514         to SIG_DFL (except when ignored).
29515         (install_handlers): Save the previous handlers.
29516
29517 2008-08-30  Bruno Haible  <bruno@clisp.org>
29518
29519         * gnulib-tool (func_reset_sigpipe): New function.
29520         (func_get_automake_snippet, func_modules_transitive_closure,
29521         func_import): Invoke it before a join command that reads from stdin,
29522         to avoid "echo: write error: Broken pipe" error messages on stderr.
29523         Reported by Sam Steingold <sds@gnu.org>.
29524
29525 2008-08-30  Bruno Haible  <bruno@clisp.org>
29526
29527         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29528         Code copied from m4/open.m4.
29529         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29530         access and the filename ends in a slash. Code copied from lib/open.c.
29531         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29532         * tests/test-fopen.c (main): Check against bug with trailing slash.
29533
29534 2008-08-29  Bruno Haible  <bruno@clisp.org>
29535
29536         Avoid some "gcc -pedantic" warnings.
29537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29538         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29539         * lib/dirent.in.h: Likewise.
29540         * lib/fcntl.in.h: Likewise.
29541         * lib/float.in.h: Likewise.
29542         * lib/iconv.in.h: Likewise.
29543         * lib/inttypes.in.h: Likewise.
29544         * lib/locale.in.h: Likewise.
29545         * lib/math.in.h: Likewise.
29546         * lib/netinet_in.in.h: Likewise.
29547         * lib/search.in.h: Likewise.
29548         * lib/signal.in.h: Likewise.
29549         * lib/stdarg.in.h: Likewise.
29550         * lib/stdint.in.h: Likewise.
29551         * lib/stdio.in.h: Likewise.
29552         * lib/stdlib.in.h: Likewise.
29553         * lib/string.in.h: Likewise.
29554         * lib/strings.in.h: Likewise.
29555         * lib/sys_select.in.h: Likewise.
29556         * lib/sys_socket.in.h: Likewise.
29557         * lib/sys_stat.in.h: Likewise.
29558         * lib/sys_time.in.h: Likewise.
29559         * lib/sysexits.in.h: Likewise.
29560         * lib/time.in.h: Likewise.
29561         * lib/unistd.in.h: Likewise.
29562         * lib/wchar.in.h: Likewise.
29563         * lib/wctype.in.h: Likewise.
29564         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29565         * modules/fchdir (Makefile.am): Likewise.
29566         * modules/fcntl (Makefile.am): Likewise.
29567         * modules/float (Makefile.am): Likewise.
29568         * modules/iconv_open (Makefile.am): Likewise.
29569         * modules/inttypes (Makefile.am): Likewise.
29570         * modules/locale (Makefile.am): Likewise.
29571         * modules/math (Makefile.am): Likewise.
29572         * modules/netinet_in (Makefile.am): Likewise.
29573         * modules/search (Makefile.am): Likewise.
29574         * modules/signal (Makefile.am): Likewise.
29575         * modules/stdarg (Makefile.am): Likewise.
29576         * modules/stdint (Makefile.am): Likewise.
29577         * modules/stdio (Makefile.am): Likewise.
29578         * modules/stdlib (Makefile.am): Likewise.
29579         * modules/string (Makefile.am): Likewise.
29580         * modules/strings (Makefile.am): Likewise.
29581         * modules/sys_select (Makefile.am): Likewise.
29582         * modules/sys_socket (Makefile.am): Likewise.
29583         * modules/sys_stat (Makefile.am): Likewise.
29584         * modules/sys_time (Makefile.am): Likewise.
29585         * modules/sysexits (Makefile.am): Likewise.
29586         * modules/time (Makefile.am): Likewise.
29587         * modules/unistd (Makefile.am): Likewise.
29588         * modules/wchar (Makefile.am): Likewise.
29589         * modules/wctype (Makefile.am): Likewise.
29590         Reported by Reuben Thomas <rrt@sc3d.org>.
29591
29592 2008-08-29  Bruno Haible  <bruno@clisp.org>
29593
29594         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29595         any more.
29596
29597 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29598
29599         * MODULES.html.sh (Misc): Add bitrotate.
29600
29601         * modules/bitrotate: New file.
29602
29603         * lib/bitrotate.h: New file.
29604
29605         * modules/bitrotate-tests: New file.
29606
29607         * tests/test-bitrotate.c: New file.
29608
29609         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29610         on the bitrotate module.
29611
29612         * lib/arctwo.c: Use new bitrotate module.
29613
29614 2008-08-29  Jim Meyering  <meyering@redhat.com>
29615
29616         bootstrap: merge changes from coreutils
29617         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29618         of copied files.  Remove a kludge, now that this is fixed.
29619         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29620         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29621         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29622
29623 2008-08-29  Bruno Haible  <bruno@clisp.org>
29624
29625         * MODULES.html.sh: Remove --cvs-urls option.
29626
29627 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29628
29629         maint.mk: adjust to file name change
29630         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29631
29632 2008-08-28  Jim Meyering  <meyering@redhat.com>
29633
29634         * modules/getndelim2 (License): Relicense to LGPLv2+.
29635         Approved by Richard Stallman for the version of 1995, and by
29636         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29637
29638 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29639
29640         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29641         dummy if one is not available.  Do not touch them if
29642         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29643         (getc_maybe_unlocked): New.
29644         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29645
29646 2008-08-26  Eric Blake  <ebb9@byu.net>
29647
29648         doc/INSTALL: resync from autoconf
29649         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29650         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29651         moving...
29652         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29653         * INSTALL: Regenerate.
29654         * INSTALL.ISO: New file.
29655         * INSTALL.UTF-8: Likewise.
29656
29657 2008-08-26  Jim Meyering  <meyering@redhat.com>
29658
29659         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29660         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29661         these definitions conditional, so that they may be overridden, too.
29662
29663 2008-08-26  Bruno Haible  <bruno@clisp.org>
29664
29665         Generate INSTALL file variants with prettier quotes.
29666         * doc/Makefile (INSTALL_PRELUDE): New macro.
29667         (INSTALL): Use it.
29668         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29669
29670 2008-08-26  Bruno Haible  <bruno@clisp.org>
29671
29672         Run makeinfo in an English locale.
29673         * doc/Makefile (MAKEINFO): New variable.
29674
29675 2008-08-26  Bruno Haible  <bruno@clisp.org>
29676
29677         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29678         Suggested by Eric Blake.
29679
29680 2008-08-25  Bruno Haible  <bruno@clisp.org>
29681
29682         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29683
29684 2008-08-25  Eric Blake  <ebb9@byu.net>
29685
29686         c-stack: test that stack overflow can be caught
29687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29688         that platform allows handling stack overflow; at least OS/2 EMX
29689         has sigaltstack, but crashes before transferring control to
29690         handler on stack overflow.
29691         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29692         check for HAVE_STACK_OVERFLOW_HANDLING.
29693         Reported by Elbert Pol.
29694
29695 2008-08-25  Bruno Haible  <bruno@clisp.org>
29696
29697         * doc/posix-functions/strftime.texi: Fix description of strftime
29698         module.
29699
29700 2008-08-24  Bruno Haible  <bruno@clisp.org>
29701
29702         * tests/uniwidth/test-uc_width2.c: New file.
29703         * tests/uniwidth/test-uc_width2.sh: New file.
29704         * modules/uniwidth/width-tests (Files): Add the new files.
29705         (TESTS): Add uniwidth/test-uc_width2.sh.
29706         (TESTS_ENVIRONMENT): New variable.
29707         (check_PROGRAMS): Add test-uc_width2.
29708         (test_uc_width2_SOURCES): New variable.
29709
29710         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29711         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29712         not 0x00AB.
29713         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29714
29715 2008-08-22  Eric Blake  <ebb9@byu.net>
29716
29717         test-lock, test-tls: mention why a test is skipped
29718         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29719         skipped.
29720         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29721
29722         count-one-bits: relax license
29723         * modules/count-one-bits (License): Relicense to LGPLv2+.
29724         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29725
29726 2008-08-22  Andreas Schwab  <schwab@suse.de>
29727
29728         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29729         Remove spurious space in assignment.
29730
29731 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29732
29733         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29734         Paul Eggert <eggert@CS.UCLA.EDU>.
29735
29736 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29737
29738         * modules/gettext: Add m4/threadlib.m4.
29739
29740 2008-08-19  Eric Blake  <ebb9@byu.net>
29741
29742         test-c-stack: fix compilation failure on FreeBSD 5.0
29743         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29744         headers before <sys/resource.h>.
29745         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29746         the bug.
29747         Reported by Nelson H. F. Beebe.
29748
29749         strverscmp: migrate from "strverscmp.h" to <string.h>
29750         * modules/string (Makefile.am): Add new hooks.
29751         * modules/strverscmp (Files): Remove strverscmp.h.
29752         (Depends-on): Add string.
29753         (configure.ac): Add indicator.
29754         (Include): Mention new header.
29755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29756         defaults.
29757         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29758         results.
29759         * lib/strverscmp.h: Delete.
29760         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29761         * tests/test-strverscmp.c (includes): Adjust client.
29762         * lib/check-version.c (includes): Likewise.
29763         * NEWS: Document the change.
29764
29765         strverscmp: add unit test
29766         * modules/strverscmp-tests: New file.
29767         * tests/test-strverscmp.c: Likewise.
29768
29769 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29770
29771         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29772         regarding Windows crypto stuff, from Mono.
29773
29774 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29775
29776         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29777         if present, for intel RND.  Return error on failures.
29778
29779 2008-08-18  Ben Pfaff  <blp@gnu.org>
29780
29781         gitlog-to-changelog: give better diagnostic for failed pipe-open
29782         * build-aux/gitlog-to-changelog: Improve error message: suggest
29783         that the version of Git may be too old.
29784
29785 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29786
29787         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29788         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29789
29790 2008-08-18  Bruno Haible  <bruno@clisp.org>
29791
29792         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29793         pthread_in_use().
29794
29795 2008-08-18  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/glthread/threadlib.c: Include <pthread.h>.
29798
29799 2008-08-18  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29802         glthread_recursive_lock_* macros.
29803         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29804         Fix syntax error.
29805
29806 2008-08-18  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/glthread/thread.c: Avoid forcing a context switch right after
29809         thread creation.
29810
29811 2008-08-17  Bruno Haible  <bruno@clisp.org>
29812
29813         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29814         * lib/glthread/thread.h: Provide Win32 specific implementation.
29815         * modules/thread (Files): Add lib/glthread/thread.c.
29816         (Depends-on): Add lock.
29817         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29818
29819 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29820
29821         New module 'yield'.
29822         * modules/yield: New file.
29823         * lib/glthread/yield.h: New file.
29824         * m4/yield.m4: New file.
29825         * MODULES.html.sh (Multithreading): Add yield.
29826
29827 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29828
29829         New module 'thread'.
29830         * modules/thread: New file.
29831         * lib/glthread/thread.h: New file.
29832         * m4/thread.m4: New file.
29833         * MODULES.html.sh (Multithreading): Add thread.
29834
29835 2008-08-17  Bruno Haible  <bruno@clisp.org>
29836
29837         * lib/glthread/lock.h: Include <stdlib.h> always.
29838         * lib/glthread/tls.h: Likewise.
29839         * lib/glthread/cond.h: Likewise.
29840
29841 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29842
29843         New module 'cond'.
29844         * modules/cond: New file.
29845         * lib/glthread/cond.h: New file.
29846         * lib/glthread/cond.c: New file.
29847         * m4/cond.m4: New file.
29848         * MODULES.html.sh (Multithreading): Add cond.
29849
29850 2008-08-16  Eric Blake  <ebb9@byu.net>
29851
29852         c-stack: fix regression on Irix 5.3 from 2008-06-21
29853         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29854         sa_sigaction...
29855         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29856         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29858         * modules/signal (Makefile.am): Use the value.
29859         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29860         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29861         * doc/posix-headers/signal.texi (signal.h): Document this
29862         portability issue.
29863         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29864         Reported by Tom G. Christensen.
29865
29866 2008-08-17  Bruno Haible  <bruno@clisp.org>
29867
29868         New module 'threadlib'.
29869         * modules/threadlib: New file.
29870         * lib/glthread/threadlib.c: New file, extracted from
29871         lib/glthread/lock.c.
29872         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29873         functions.
29874         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29875         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29876         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29877         macros.
29878         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29879         (gl_DISABLE_THREADS): Remove macro.
29880         * modules/lock (Files): Remove build-aux/config.rpath.
29881         (Depends-on): Remove havelib. Add threadlib.
29882         (configure.ac-early): Remove section.
29883         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29884         * modules/tls (Depends-on): Remove lock. Add threadlib.
29885         (Link): New section, copied from threadlib.
29886         * MODULES.html.sh (Multithreading): Add threadlib.
29887
29888 2008-08-14  Bruno Haible  <bruno@clisp.org>
29889
29890         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29891         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29892         glthread_rwlock_unlock, glthread_rwlock_destroy,
29893         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29894         glthread_recursive_lock_destroy): Define as macros always.
29895         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29896         glthread_lock_lock.
29897         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29898         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29899         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29900         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29901         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29902         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29903         (glthread_recursive_lock_lock_func): Renamed from
29904         glthread_recursive_lock_lock.
29905         (glthread_recursive_lock_unlock_func): Renamed from
29906         glthread_recursive_lock_unlock.
29907         (glthread_recursive_lock_destroy_func): Renamed from
29908         glthread_recursive_lock_destroy.
29909
29910 2008-08-14  Bruno Haible  <bruno@clisp.org>
29911
29912         * lib/glthread/lock.h: Renamed from lib/lock.h.
29913         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29914         * lib/glthread/tls.h: Renamed from lib/tls.h.
29915         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29916         * lib/fstrcmp.c: Update includes.
29917         * lib/strsignal.c: Update includes.
29918         * modules/lock (Files, Makefile.am): Update.
29919         (Include): Change to "glthread/lock.h".
29920         * modules/tls (Files, Makefile.am): Update.
29921         (Include): Change to "glthread/tls.h".
29922         * tests/test-lock.c: Update includes.
29923         * tests/test-tls.c: Update includes.
29924         * NEWS: Mention the renamed header files.
29925
29926 2008-08-11  Jim Meyering  <meyering@redhat.com>
29927
29928         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29929
29930 2008-08-11  Eric Blake  <ebb9@byu.net>
29931
29932         test-c-stack: avoid C99-ism
29933         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29934         before statement.
29935         Reported by Alain Guibert.
29936
29937 2008-08-10  Jim Meyering  <meyering@redhat.com>
29938
29939         ensure that return value of uinttostr et al are not ignored
29940         * lib/inttostr.h (__GNUC_PREREQ): Define.
29941         (__attribute_warn_unused_result__): Define.
29942         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29943
29944 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29945
29946         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29947         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29948
29949 2008-08-07  Jim Meyering  <meyering@redhat.com>
29950
29951         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29952
29953         * modules/mkstemp (License): Relicense under LGPLv2+.
29954         * modules/tempname (License): Likewise.
29955
29956 2008-08-06  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/poll.c (poll): Further micro-optimization.
29959
29960 2008-08-06  Jim Meyering  <meyering@redhat.com>
29961
29962         inet_pton.c: use locale-independent tolower
29963         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29964         (inet_pton6): Use c_tolower rather than tolower.
29965         * modules/inet_pton (Depends-on): Add c-ctype.
29966
29967 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29968
29969         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29970         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29971
29972 2008-08-06  Jim Meyering  <meyering@redhat.com>
29973
29974         * modules/inet_pton (License): Relicense under LGPLv2+.
29975
29976 2008-08-03  Bruno Haible  <bruno@clisp.org>
29977
29978         Additional non-aborting API for lock and tls.
29979         * lib/lock.h: Include <errno.h>.
29980         (glthread_lock_init): New macro/function.
29981         (gl_lock_init): Define as wrapper around glthread_lock_init.
29982         (glthread_lock_lock): New macro/function.
29983         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29984         (glthread_lock_unlock): New macro/function.
29985         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29986         (glthread_lock_destroy): New macro/function.
29987         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29988         (glthread_rwlock_init): New macro/function.
29989         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29990         (glthread_rwlock_rdlock): New macro/function.
29991         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29992         (glthread_rwlock_wrlock): New macro/function.
29993         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29994         (glthread_rwlock_unlock): New macro/function.
29995         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29996         (glthread_rwlock_destroy): New macro/function.
29997         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29998         (glthread_recursive_lock_init): New macro/function.
29999         (gl_recursive_lock_init): Define as wrapper around
30000         glthread_recursive_lock_init.
30001         (glthread_recursive_lock_lock): New macro/function.
30002         (gl_recursive_lock_lock): Define as wrapper around
30003         glthread_recursive_lock_lock.
30004         (glthread_recursive_lock_unlock): New macro/function.
30005         (gl_recursive_lock_unlock): Define as wrapper around
30006         glthread_recursive_lock_unlock.
30007         (glthread_recursive_lock_destroy): New macro/function.
30008         (gl_recursive_lock_destroy): Define as wrapper around
30009         glthread_recursive_lock_destroy.
30010         (glthread_once): New macro/function.
30011         (gl_once): Define as wrapper around glthread_once.
30012         Update function declarations.
30013         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30014         glthread_rwlock_init. Return error code.
30015         (glthread_rwlock_rdlock_multithreaded): Renamed from
30016         glthread_rwlock_rdlock. Return error code.
30017         (glthread_rwlock_wrlock_multithreaded): Renamed from
30018         glthread_rwlock_wrlock. Return error code.
30019         (glthread_rwlock_unlock_multithreaded): Renamed from
30020         glthread_rwlock_unlock. Return error code.
30021         (glthread_rwlock_destroy_multithreaded): Renamed from
30022         glthread_rwlock_destroy. Return error code.
30023         (glthread_recursive_lock_init_multithreaded): Renamed from
30024         glthread_recursive_lock_init. Return error code.
30025         (glthread_recursive_lock_lock_multithreaded): Renamed from
30026         glthread_recursive_lock_lock. Return error code.
30027         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30028         glthread_recursive_lock_unlock. Return error code.
30029         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30030         glthread_recursive_lock_destroy. Return error code.
30031         (glthread_once_call): Make static.
30032         (glthread_once_multithreaded): Renamed from glthread_once.
30033         * lib/tls.h: Include <errno.h>.
30034         (glthread_tls_key_init): New macro/function.
30035         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30036         (glthread_tls_set): New macro/function.
30037         (gl_tls_set): Define as wrapper around glthread_tls_set.
30038         (glthread_tls_key_destroy): New macro/function.
30039         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30040         Update function declarations.
30041         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30042         glthread_tls_get.
30043         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30044
30045 2008-08-04  Eric Blake  <ebb9@byu.net>
30046
30047         gnumakefile: use space, not TAB, outside of targets
30048         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30049
30050 2008-08-02  Jim Meyering  <meyering@redhat.com>
30051
30052         getdate.y: avoid locale-dependent date parsing failure
30053         In Turkish locales, getdate would fail to recognize keywords
30054         containing a lowercase "i".  The solution is not to rely on
30055         locale-sensitive case-conversion.
30056         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30057         (lookup_word): Use c_toupper in place of toupper.
30058         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30059         Reported by Vefa Bicakci <bicave@superonline.com> in
30060         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30061         * modules/getdate (Depends-on): Add c-ctype.
30062
30063 2008-08-02  Bruno Haible  <bruno@clisp.org>
30064
30065         * gnulib-tool (func_import): When updating or creating a .gitignore
30066         file, prepend each added line with a slash, and ignore leading slashes
30067         from the existing lines.
30068         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30069
30070 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30071
30072         Portability fix for GNU make 3.79.1.
30073         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30074         versions do not understand.
30075
30076 2008-08-01  Bruno Haible  <bruno@clisp.org>
30077
30078         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30079         * tests/test-isnanf.h (zero): New variable.
30080         (main): Avoid literal -0.0f.
30081         * tests/test-isnand.h (zero): New variable.
30082         (main): Avoid literal -0.0.
30083         * tests/test-isnanl.h (zero): New variable.
30084         (main): Avoid literal -0.0L.
30085         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30086         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30087         -0.0, -0.0L.
30088         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30089         (test_signbitd): Avoid literal -0.0.
30090         (test_signbitl): Avoid literal -0.0L.
30091         * tests/test-ceilf1.c (zero): New variable.
30092         (main): Avoid literal -0.0f.
30093         * tests/test-ceill.c (zero): New variable.
30094         (main): Avoid literal -0.0L.
30095         * tests/test-floorf1.c (zero): New variable.
30096         (main): Avoid literal -0.0f.
30097         * tests/test-floorl.c (zero): New variable.
30098         (main): Avoid literal -0.0L.
30099         * tests/test-roundf1.c (zero): New variable.
30100         (main): Avoid literal -0.0f.
30101         * tests/test-round1.c (zero): New variable.
30102         (main): Avoid literal -0.0.
30103         * tests/test-roundl.c (zero): New variable.
30104         (main): Avoid literal -0.0L.
30105         * tests/test-truncf1.c (zero): New variable.
30106         (main): Avoid literal -0.0f.
30107         * tests/test-trunc1.c (zero): New variable.
30108         (main): Avoid literal -0.0.
30109         * tests/test-truncl.c (zero): New variable.
30110         (main): Avoid literal -0.0L.
30111         * tests/test-frexp.c (zero): New variable.
30112         (main): Avoid literal -0.0.
30113         * tests/test-frexpl.c (zero): New variable.
30114         (main): Avoid literal -0.0L.
30115         * tests/test-ldexpl.c (zero): New variable.
30116         (main): Avoid literal -0.0L.
30117         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30118         (zerod, zerol): New variables.
30119         (test_function): Avoid literals -0.0, -0.0L.
30120         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30121         (zerod, zerol): New variables.
30122         (test_function): Avoid literals -0.0, -0.0L.
30123         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30124         (zerod, zerol): New variables.
30125         (test_function): Avoid literals -0.0, -0.0L.
30126         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30127         (zerod, zerol): New variables.
30128         (test_function): Avoid literals -0.0, -0.0L.
30129         * tests/test-strtod.c (zero): New variable.
30130         (main): Avoid literal -0.0.
30131         Reported by Jonathan C. Patschke <jp@centtech.com>.
30132
30133 2008-07-31  Jim Meyering  <meyering@redhat.com>
30134
30135         sha256.h: correct definition of SHA224_DIGEST_SIZE
30136         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30137         Reported by Paulie Pena IV <paulie4@gmail.com>.
30138         Define as 224 / 8, rather than as a literal.
30139         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30140         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30141         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30142
30143 2008-07-31  Bruno Haible  <bruno@clisp.org>
30144
30145         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30146         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30147         Reported by Jonathan Patschke <jp@centtech.com>.
30148
30149 2008-07-31  Bruno Haible  <bruno@clisp.org>
30150
30151         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30152         Reported by Paolo Bonzini <bonzini@gnu.org>.
30153
30154 2008-07-30  Eric Blake  <ebb9@byu.net>
30155
30156         test-strtod: allow compilation without -lm
30157         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30158         Reported by Dennis Clarke <blastwave@gmail.com>.
30159
30160 2008-07-28  Jim Meyering  <meyering@redhat.com>
30161
30162         bootstrap: work also when there are no .po files in po/
30163         * build-aux/bootstrap (update_po_files): Complete the change
30164         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30165
30166 2008-07-27  Jim Meyering  <meyering@redhat.com>
30167
30168         * users.txt: Add zile.
30169
30170 2008-07-26  Ben Pfaff  <blp@gnu.org>
30171
30172         Add missing dependencies on new m4/exponent[fdl].m4 files.
30173         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30174         * modules/isnand-nolibm: Add m4/exponentd.m4.
30175         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30176         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30177         m4/isnan[fdl].m4, because the macros actually used moved.
30178         Reported by Jim Meyering.
30179
30180 2008-07-14  Ben Pfaff  <blp@gnu.org>
30181
30182         Add isinf module.
30183         * lib/isinf.c: New file.
30184         * lib/math.in.h: Define isinf macro if we have decided to replace
30185         it.
30186         * m4/isinf.m4: New file.
30187         * m4/math_h.m4: Initialize and substitute variables for isinf
30188         module.
30189         * modules/isinf: New file.
30190         * modules/isinf-tests: New file.
30191         * modules/math: Add substitutions for new module.
30192         * tests/test-isinf.c: New file.
30193         * doc/posix-functions/isinf.texi: Mention new module.
30194         * MODULES.html.sh: Mention new module.
30195
30196 2008-07-14  Ben Pfaff  <blp@gnu.org>
30197
30198         Factor out some macros for use by additional modules.
30199         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30200         exponentf.m4.
30201         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30202         exponentd.m4.
30203         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30204         file exponentl.m4.
30205         * m4/exponentf.m4: New file.
30206         * m4/exponentd.m4: New file.
30207         * m4/exponentl.m4: New file.
30208         * modules/isnanf: Use new file m4/exponentf.m4.
30209         * modules/isnand: Use new file m4/exponentd.m4.
30210         * modules/isnanl: Use new file m4/exponentl.m4.
30211
30212 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30213
30214         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30215         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30216         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30217         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30218
30219         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30220         readlink on platforms without PATH_MAX.
30221
30222 2008-07-21  Eric Blake  <ebb9@byu.net>
30223
30224         Warn, not fail, on stale version.
30225         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30226
30227         Don't allow installation with stale devel version number.
30228         * top/GNUmakefile (_is-install-target): New macro.
30229         (_curr-ver): Forbid installation with stale version number.
30230
30231 2008-07-20  Bruno Haible  <bruno@clisp.org>
30232
30233         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30234         TESTS_ENVIRONMENT.
30235         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30236
30237 2008-07-20  Bruno Haible  <bruno@clisp.org>
30238
30239         * lib/c-stack.h (c_stack_action): Add documentation.
30240         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30241
30242 2008-07-20  Bruno Haible  <bruno@clisp.org>
30243
30244         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30245         * modules/readlink (License): Likewise.
30246
30247 2008-07-17  Eric Blake  <ebb9@byu.net>
30248
30249         * modules/c-stack (Link): Fix typo.
30250
30251         Make c-stack use libsigsegv, when available.
30252         * modules/c-stack (Depends-on): Add libsigsegv.
30253         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30254         needed.
30255         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30256         (segv_handler, overflow_handler, c_stack_action)
30257         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30258         implementation when libsigsegv is available, but only when using
30259         the library is necessary.
30260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30261         comment, explaining why XSI check fails on Linux.
30262         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30263         * tests/test-c-stack2.sh: Tweak skip message.
30264         * NEWS: Document new link-time requirements.
30265
30266 2008-07-16  Eric Blake  <ebb9@byu.net>
30267
30268         c-stack: Expose false positives when not using libsigsegv.
30269         * modules/c-stack-tests (Files): Expand test.
30270         * tests/test-c-stack.c (main): Add means to conditionally trigger
30271         non-overflow SIGSEGV.
30272         * tests/test-c-stack2.sh: New file.
30273
30274 2008-07-14  Bruno Haible  <bruno@clisp.org>
30275
30276         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30277         Reported by Eric Blake.
30278
30279 2008-07-14  Sam Steingold  <sds@gnu.org>
30280             Bruno Haible  <bruno@clisp.org>
30281
30282         New module libsigsegv.
30283         * modules/libsigsegv: New file.
30284         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30285         modifications.
30286         * MODULES.html.sh (Signal handling): New section.
30287
30288 2008-07-14  Bruno Haible  <bruno@clisp.org>
30289
30290         * modules/unictype/ctype-* (Description): Add the word "function".
30291         Improves the resulting doc in MODULES.html.
30292
30293 2008-07-12  Ben Pfaff  <blp@gnu.org>
30294
30295         Add longlong module.
30296         * modules/longlong: New file.
30297
30298 2008-07-12  Bruno Haible  <bruno@clisp.org>
30299
30300         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30301         to empty.
30302
30303 2008-07-10  Ben Pfaff  <blp@gnu.org>
30304
30305         Add isnan module.
30306         * doc/posix-functions/isnan.texi: Mention new module.
30307         * lib/math.in.h: Define isnan macro if we have decided to replace
30308         it.
30309         * m4/isnan.m4: New file.
30310         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30311         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30312         also.
30313         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30314         redundancy.
30315         * m4/math_h.m4: Initialize and substitute variables for isnan
30316         module.
30317         * modules/isnan: New file.
30318         * modules/isnan-tests: New file.
30319         * modules/math: Add substitutions for new module.
30320         * tests/test-isnan.c: New file.
30321         * MODULES.html.sh: Mention new module.
30322
30323 2008-07-10  Ben Pfaff  <blp@gnu.org>
30324
30325         Add isnanf module.
30326         * lib/isnanf.m4: New file.
30327         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30328         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30329         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30330         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30331         * modules/isnanf: New file.
30332         * modules/isnanf-tests: New file.
30333         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30334         files.
30335         * tests/test-isnanf-nolibm.c: factored most of its contents into
30336         new file tests/test-isnanf.h.
30337         * tests/test-isnanf.h: New file.
30338         * tests/test-isnanf.c: New file.
30339         * MODULES.html.sh: Mention new module.
30340         * doc/glibc-functions/isnanf.texi: Mention new module.
30341
30342 2008-07-10  Ben Pfaff  <blp@gnu.org>
30343
30344         Add isnand module.
30345         * lib/isnand.h: New file.
30346         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30347         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30348         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30349         functionality also.
30350         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30351         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30352         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30353         * modules/isnand: New file.
30354         * modules/isnand-tests: New file.
30355         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30356         files.
30357         * tests/test-isnand-nolibm.c: factored most of its contents into
30358         new file tests/test-isnand.h.
30359         * tests/test-isnand.h: New file.
30360         * tests/test-isnand.c: New file.
30361         * MODULES.html.sh: Mention new module.
30362
30363 2008-07-10  Ben Pfaff  <blp@gnu.org>
30364
30365         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30366         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30367         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30368         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30369         * modules/isnanf-nolibm: Update references to renamed files.
30370         * modules/isnand-nolibm: Likewise.
30371         * modules/isnanf-nolibm-tests: Likewise.
30372         * modules/isnand-nolibm-tests: Likewise.
30373         * lib/frexp.c: Likewise.
30374         * lib/isfinite.c: Likewise.
30375         * lib/signbitd.c: Likewise.
30376         * lib/signbitf.c: Likewise.
30377         * lib/vasnprintf.c: Likewise.
30378         * tests/test-ceilf1.c: Likewise.
30379         * tests/test-ceilf2.c: Likewise.
30380         * tests/test-floorf1.c: Likewise.
30381         * tests/test-floorf2.c: Likewise.
30382         * tests/test-frexp.c: Likewise.
30383         * tests/test-round1.c: Likewise.
30384         * tests/test-round2.c: Likewise.
30385         * tests/test-roundf1.c: Likewise.
30386         * tests/test-strtod.c: Likewise.
30387         * tests/test-trunc1.c: Likewise.
30388         * tests/test-trunc2.c: Likewise.
30389         * tests/test-truncf1.c: Likewise.
30390         * tests/test-truncf2.c: Likewise.
30391         * NEWS: Mention the renamed header files.
30392
30393 2008-07-11  Jim Meyering  <meyering@redhat.com>
30394
30395         vc-list-files: make the last-resort awk code more portable
30396         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30397         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30398         does not support it.
30399
30400 2008-07-10  Eric Blake  <ebb9@byu.net>
30401
30402         Work with tar's bootstrap.
30403         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30404         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30405         an m4 comment.
30406
30407 2008-07-09  Jim Meyering  <meyering@redhat.com>
30408
30409         posix-shell.m4: fix typo that made this test malfunction
30410         * m4/posix-shell.m4: Remove capitalization in variable name.
30411
30412 2008-07-08  Bruno Haible  <bruno@clisp.org>
30413
30414         * m4/onceonly.m4: Update comments.
30415         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30416
30417 2008-07-04  Jim Meyering  <meyering@redhat.com>
30418
30419         * users.txt: Add vc-dwim.
30420         (bison, coreutils): Use the gitweb URL.
30421
30422 2008-07-03  Jim Meyering  <meyering@redhat.com>
30423
30424         * users.txt: Add libffcall.  From Sam Steingold.
30425
30426 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
30427
30428         getdate.y: do not ignore TZ with relative day, month or year offset
30429         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30430         relative-date-handling, since otherwise, the latter would clobber the
30431         sole output (an updated Start value) of the tz-handling block.
30432         * tests/test-getdate.c: Tests for the fix
30433
30434 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30435
30436         Recognize 'foo_LIBRARIES += libgnu.a'.
30437         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30438         makefile snippet has already specified an installation location,
30439         also using '+='.
30440
30441 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
30442
30443         getdate.y: factor out common actions
30444         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30445         Use them in place of open-coded actions.
30446
30447 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30448
30449         Add self-test for getdate module.
30450         * modules/getdate-tests: New file.
30451         * tests/test-getdate.c: New file.
30452
30453 2008-06-29  Bruno Haible  <bruno@clisp.org>
30454
30455         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30456         .gitignore.
30457         Reported by Sylvain Beucler <beuc@beuc.net>.
30458
30459 2008-06-29  Bruno Haible  <bruno@clisp.org>
30460
30461         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30462         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30463
30464 2008-06-29  Bruno Haible  <bruno@clisp.org>
30465
30466         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30467         EXTRA_DIST.
30468         Reported by Sylvain Beucler <beuc@beuc.net>.
30469
30470 2008-06-26  Jim Meyering  <meyering@redhat.com>
30471
30472         make several modules depend on the "open" module
30473         This provides slightly increased consistency when opening-for-write
30474         the name of a non-directory spelled with a trailing slash.
30475         * modules/chdir-safer: Likewise.
30476         * modules/chown: Likewise.
30477         * modules/clean-temp: Likewise.
30478         * modules/copy-file: Likewise.
30479         * modules/fchdir: Likewise.
30480         * modules/fcntl-safer: Likewise.
30481         * modules/pipe: Likewise.
30482         * modules/utime: Likewise.
30483         Prompted by Eric Blake and Bruno Haible.
30484
30485 2008-06-24  Andreas Schwab  <schwab@suse.de>
30486
30487         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30488         literals can be used as initializers for global variables.
30489
30490 2008-06-23  Eric Blake  <ebb9@byu.net>
30491
30492         Make gnulib-cache.m4 easier to diff.
30493         * gnulib-tool (func_import): Allow newlines when reading cached
30494         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30495
30496 2008-06-23  Bruno Haible  <bruno@clisp.org>
30497
30498         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30499         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30500         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30501         m4/signalblocking.m4.
30502         (gl_PREREQ_SIGACTION): Don't invoke it.
30503         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30504         gl_PREREQ_SIG_HANDLER_H.
30505         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30506         Don't check for sigaction here.
30507
30508 2008-06-23  Bruno Haible  <bruno@clisp.org>
30509
30510         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30511         (install_handlers): Don't set the SA_RESETHAND flag.
30512
30513 2008-06-23  Bruno Haible  <bruno@clisp.org>
30514
30515         * m4/sigaction.m4: Comment fixes.
30516         * lib/signal.in.h: Likewise.
30517
30518 2008-06-23  Eric Blake  <ebb9@byu.net>
30519
30520         Fix typo.
30521         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30522
30523         Avoid SA_ namespace.
30524         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30525         Reported by Ralf Wildenhues.
30526
30527         Avoid test failure due to SA_RESTORER.
30528         * tests/test-sigaction.c (SA_MASK): New macro.
30529         (main): Avoid failing due to extension flags being set.
30530         Reported by Jim Meyering.
30531
30532         Revert use of sig-handler.h in sigprocmask.c.
30533         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30534         it requires the existence of struct sigaction.
30535         * lib/sigprocmask.c (handler_t): Restore typedef.
30536         (rpl_signal, old_handlers): Use local type.
30537
30538 2008-06-22  Bruno Haible  <bruno@clisp.org>
30539
30540         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30541         conditionally.
30542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30543
30544 2008-06-22  Bruno Haible  <bruno@clisp.org>
30545
30546         * doc/posix-functions/siginterrupt.texi: Move note.
30547
30548         * lib/signal.in.h (SA_RESTART): New macro.
30549         * lib/sigaction.c: Update comment.
30550
30551         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30552
30553         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30554         (gl_PREREQ_SIGPROCMASK): Invoke it.
30555         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30556
30557         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30558
30559         * lib/sigprocmask.c: Update a comment.
30560
30561 2008-06-21  Eric Blake  <ebb9@byu.net>
30562
30563         Use sigaction module rather than signal().
30564         * modules/c-stack (Depends-on): Add sigaction.
30565         * modules/fatal-signal (Depends-on): Likewise.
30566         * modules/nanosleep (Depends-on): Likewise.
30567         * modules/sigprocmask (Files): Add sig-handler.h.
30568         * modules/sigaction (Files): Likewise.
30569         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30570         Eggert.
30571         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30572         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30573         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30574         (init_fatal_signals): Likewise.
30575         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30576         (siginterrupt): Delete fallback.
30577         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30578         instead.
30579         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30580         siginterrupt.
30581
30582         New module sigaction, for mingw.
30583         * modules/sigaction: New module...
30584         * modules/sigaction-tests: ...and its test.
30585         * m4/sigaction.m4: New file.
30586         * lib/sigaction.c: Likewise.
30587         * tests/test-sigaction.c: Likewise.
30588         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30589         * modules/signal (Makefile.am): Likewise.
30590         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30591         needed.
30592         * doc/posix-headers/signal.texi (signal.h): Mention provided
30593         types.
30594         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30595         that sigaction is preferable.
30596         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30597         module.
30598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30599         sigaction.
30600
30601         Improve robustness of sigprocmask by overriding signal.
30602         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30603         is in use.
30604         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30605         (SIGKILL, SIGSTOP): Provide fallbacks.
30606         (rpl_signal): Implement.
30607         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30608         signal can be called inside handlers.
30609
30610         Fix nanosleep module on mingw.
30611         * modules/nanosleep (Depends-on): Add sys_select.
30612         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30613
30614         Fix licensing of sigprocmask.
30615         * modules/raise (License): Relicense as LGPL.
30616
30617 2008-06-21  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30620         result if it contains question marks.
30621         Reported by Michael Geng <linux@michaelgeng.de>.
30622
30623 2008-06-19  Bruno Haible  <bruno@clisp.org>
30624
30625         Fix CVS-ism.
30626         * doc/gnulib.texi: Include updated-stamp.texi.
30627         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30628         (updated-stamp.texi): New rule.
30629         (gnulib.info): Depend on it.
30630         * doc/.gitignore: Add updated-stamp.texi.
30631         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30632
30633 2008-06-19  Bruno Haible  <bruno@clisp.org>
30634
30635         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30636         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30637
30638 2008-06-19  Eric Blake  <ebb9@byu.net>
30639
30640         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30641         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30642         Reported by Stepan Kasal.
30643
30644 2008-06-18  Bruno Haible  <bruno@clisp.org>
30645
30646         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30647         Reported by Eric Blake.
30648
30649 2008-06-18  Eric Blake  <ebb9@byu.net>
30650
30651         Work around cygwin 1.5.25 strsignal bug.
30652         * tests/test-strsignal.c: Allow for const char *.
30653         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30654
30655 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30656
30657         * users.txt: Update URL to article and add author/date
30658         information.
30659
30660 2008-06-17  Bruno Haible  <bruno@clisp.org>
30661
30662         New macro gl_DISABLE_THREADS.
30663         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30664         if the user did not pass --enable-threads or --disable-threads option.
30665         (gl_DISABLE_THREADS): New macro.
30666         Reported by Eric Blake <ebb9@byu.net>.
30667
30668 2008-06-17  Bruno Haible  <bruno@clisp.org>
30669
30670         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30671         when the macro ignores it.
30672         Based on a patch by Eric Blake <ebb9@byu.net>.
30673
30674 2008-06-17  Bruno Haible  <bruno@clisp.org>
30675
30676         * modules/tls (License): Change to LGPLv2+.
30677         Reported by Eric Blake.
30678
30679 2008-06-17  Eric Blake  <ebb9@byu.net>
30680
30681         Simplify c-stack prerequisites.
30682         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30684         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30685         check.
30686         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30687         <sys/resource.h>.
30688
30689         Move c-stack test into testsuite.
30690         * modules/c-stack-tests: New file.
30691         * lib/c-stack.c [DEBUG]: Move test program...
30692         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30693         fail test if sigaltstack is lacking.
30694         * tests/test-c-stack.sh: New driver file.
30695
30696 2008-06-16  Eric Blake  <ebb9@byu.net>
30697
30698         Use raise module consistently.
30699         * modules/fatal-signal (Depends-on): Add raise.
30700         * modules/sigprocmask (Depends-on): Likewise.
30701         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30702         * lib/sigprocmask.c (sigprocmask): Likewise.
30703         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30704         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30705
30706         Fix compliance bug in sigpending.
30707         * lib/sigprocmask.c (sigpending): Return pending array via
30708         parameter, not return value.
30709
30710 2008-06-14  Eric Blake  <ebb9@byu.net>
30711
30712         Improve obstack-printf test code.
30713         * tests/test-obstack-printf.c (test_function): Fix comment, and
30714         simplify usage of obstack_* in macros.  Add a test for coverage.
30715         Reported by Bruno Haible.
30716
30717 2008-06-14  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30720         array size as a constant, not as a const variable.
30721         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30722         AC_USE_SYSTEM_EXTENSIONS.
30723         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30724         Test whether the obstack_printf function actually exists.
30725         * modules/obstack-printf (Depends-on): Add extensions.
30726         (Include): Remove obstack.h.
30727         * modules/obstack-printf-posix (Depends-on): Add extensions.
30728         (Include): Remove obstack.h.
30729
30730 2008-06-13  Eric Blake  <ebb9@byu.net>
30731
30732         Add obstack-printf and obstack-printf-posix modules.
30733         * modules/obstack-printf: New file.
30734         * modules/obstack-printf-posix: Likewise.
30735         * MODULES.html.sh (Misc): Mention them.
30736         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30737         Likewise.
30738         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30739         Likewise.
30740         * modules/stdio (Makefile.am): Accomodate new modules.
30741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30742         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30743         Declare.
30744         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30745         functions.
30746         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30747         (gl_REPLACE_OBSTACK_PRINTF): New macros
30748         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30749         * tests/test-obstack-printf.c: New file.
30750         * modules/obstack-printf-tests: Likewise.
30751         * modules/obstack-printf-posix-tests: Likewise.
30752
30753 2008-06-11  Bruno Haible  <bruno@clisp.org>
30754
30755         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30756         * lib/open.c: Include errno.h.
30757         (open): Fail when attempting to write to a file that has a trailing
30758         slash.
30759         * tests/test-open.c (main): Test against trailing slash bug.
30760         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30761
30762 2008-06-10  Bruno Haible  <bruno@clisp.org>
30763
30764         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30765         for $? to work inside the trap command, with various /bin/sh-s.
30766         * tests/test-vc-list-files-cvs.sh: Likewise.
30767
30768 2008-06-10  Bruno Haible  <bruno@clisp.org>
30769
30770         * lib/acl-internal.h: Don't include gettext.h here.
30771         * lib/set-mode-acl.c: Include gettext.h here.
30772         * lib/copy-acl.c: Likewise.
30773
30774 2008-06-10  Bruno Haible  <bruno@clisp.org>
30775
30776         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30777         * lib/wait-process.c (wait_subprocess): Likewise.
30778         * lib/execute.h (execute): Add termsigp argument.
30779         * lib/execute.c (execute): Likewise.
30780         * lib/csharpcomp.c (compile_csharp_using_pnet,
30781         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30782         * lib/csharpexec.c (execute_csharp_using_pnet,
30783         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30784         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30785         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30786         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30787         is_jikes_present): Update.
30788         * lib/javaexec.c (execute_java_class): Update.
30789         * lib/javaversion.c (execute_and_read_line): Update.
30790         * NEWS: Document the changes.
30791         Reported by Eric Blake.
30792
30793 2008-06-10  Eric Blake  <ebb9@byu.net>
30794
30795         Add missing include.
30796         * tests/test-strstr.c (includes): Add <signal.h>.
30797         * tests/test-strcasestr.c (includes): Likewise.
30798         * tests/test-memmem.c (includes): Likewise.
30799
30800 2008-06-10  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/wait-process.c (wait_subprocess): Add an assertion.
30803
30804 2008-06-10  Bruno Haible  <bruno@clisp.org>
30805
30806         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30807
30808 2008-06-10  Bruno Haible  <bruno@clisp.org>
30809
30810         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30811         using alarm().
30812         * tests/test-strcasestr.c (main): Likewise.
30813         * tests/test-strstr.c (main): Likewise.
30814
30815 2008-06-09  Bruno Haible  <bruno@clisp.org>
30816
30817         Work around the Solaris 10 ACE ACLs ABI change.
30818         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30819         declare if ACL_NO_TRIVIAL is present.
30820         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30821         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30822         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30823         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30824         define if ACL_NO_TRIVIAL is present.
30825         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30826         and use the current ABI.
30827         (file_has_acl): Use same #if condition as elsewhere.
30828         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30829         in use, and use the current ABI.
30830         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30831         Reported by Jim Meyering.
30832
30833 2008-06-09  Eric Blake  <ebb9@byu.net>
30834
30835         Work around environments that (stupidly) ignore SIGALRM.
30836         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30837         before using alarm().
30838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30840         Reported by Ian Beckwith <ianb@erislabs.net>.
30841
30842         Produce autobuild blurb earlier in log.
30843         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30844
30845 2008-06-09  Jim Meyering  <meyering@redhat.com>
30846         and Ondřej Vašík  <ovasik@redhat.com>
30847
30848         utimens.c: correct kernel bug work-around
30849         Ondřej Vašík found that the invalid return value of 280 indicates
30850         failure, not success, and the kernel bug we're trying to work
30851         around affects not just the utimensat call, but also the fallback
30852         futimens call.
30853         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30854         not success.
30855         [HAVE_FUTIMENS]: Use the same work-around, here.
30856
30857 2008-06-09  Jim Meyering  <meyering@redhat.com>
30858
30859         add more guards around definition of ACE_-related code
30860         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30861         ALLOW and ACE_OWNER are also defined.
30862
30863 2008-06-08  Bruno Haible  <bruno@clisp.org>
30864
30865         * lib/acl-internal.h: Add me as co-author.
30866         * lib/file-has-acl.c: Likewise.
30867         * lib/set-mode-acl.c: Likewise.
30868         * lib/copy-acl.c: Likewise.
30869
30870 2008-06-08  Bruno Haible  <bruno@clisp.org>
30871
30872         Add support for AIX ACLs.
30873         * lib/acl-internal.h (acl_nontrivial): New declaration.
30874         * lib/file-has-acl.c (acl_nontrivial): New function.
30875         (file_has_acl): Add implementation using AIX 4 ACL API.
30876         * lib/set-mode-acl.c (qset_acl): Likewise.
30877         * lib/copy-acl.c (qcopy_acl): Likewise.
30878
30879 2008-06-08  Bruno Haible  <bruno@clisp.org>
30880
30881         Add support for HP-UX ACLs.
30882         * lib/acl-internal.h (acl_nontrivial): New declaration.
30883         * lib/file-has-acl.c (acl_nontrivial): New function.
30884         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30885         * lib/set-mode-acl.c (qset_acl): Likewise.
30886         * lib/copy-acl.c (qcopy_acl): Likewise.
30887
30888 2008-06-08  Bruno Haible  <bruno@clisp.org>
30889
30890         Add support for Cygwin ACLs.
30891         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30892         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30893         the chmod_or_fchmod call.
30894         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30895
30896 2008-06-08  Bruno Haible  <bruno@clisp.org>
30897
30898         Fix bug with setuid modes in Solaris 10+ code.
30899         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30900         succeeded, when the mode contains some special bits.
30901
30902 2008-06-08  Bruno Haible  <bruno@clisp.org>
30903
30904         Add support for Solaris 7..10 ACLs.
30905         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30906         declarations.
30907         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30908         functions.
30909         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30910         * lib/set-mode-acl.c (qset_acl): Likewise.
30911         * lib/copy-acl.c (qcopy_acl): Likewise.
30912
30913 2008-06-08  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30916         declaration.
30917         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30918         (acl_access_nontrivial): Remove MacOS X case.
30919         (file_has_acl): Use acl_extended_nontrivial.
30920         * lib/copy-acl.c (qcopy_acl): Likewise.
30921
30922 2008-06-08  Bruno Haible  <bruno@clisp.org>
30923
30924         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30925
30926 2008-06-08  Jim Meyering  <meyering@redhat.com>
30927
30928         * modules/acl (Maintainer): Add Bruno Haible.
30929
30930 2008-06-07  Bruno Haible  <bruno@clisp.org>
30931
30932         Improve support for Tru64 ACLs.
30933         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30934         ACL on OSF/1.
30935
30936 2008-06-07  Bruno Haible  <bruno@clisp.org>
30937
30938         Add support for MacOS X ACLs.
30939         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30940         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30941         * lib/set-mode-acl.c (qset_acl): Likewise.
30942         * lib/copy-acl.c (qcopy_acl): Likewise.
30943
30944 2008-06-07  Bruno Haible  <bruno@clisp.org>
30945
30946         Fix memory leak introduced on 2008-05-22.
30947         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30948         use.
30949
30950 2008-06-07  Bruno Haible  <bruno@clisp.org>
30951
30952         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30953         to construct an empty ACL.
30954
30955 2008-06-07  Bruno Haible  <bruno@clisp.org>
30956
30957         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30958         precisely.
30959         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30960
30961 2008-06-07  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30964         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30965
30966 2008-06-07  Bruno Haible  <bruno@clisp.org>
30967
30968         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30969         regardless of POSIX.
30970         * doc/posix-functions/_longjmp.texi: Likewise.
30971         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30972         SystemV platform in this case.
30973
30974 2008-06-06  Eric Blake  <ebb9@byu.net>
30975
30976         Document abort() bugs.
30977         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30978
30979         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30980         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30981         sigsetjmp.
30982         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30983         siglongjmp, but only as a macro.
30984         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30985         is obsolete.
30986         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30987
30988         Tweak documentation to cover cygwin argz bugs.
30989         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30990         argz bug fix; no code change needed since no cygwin releases
30991         occurred between the last fix and the bug being tested.
30992         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30993         module and recently fixed cygwin bugs.
30994         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30995         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30996         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30997         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30998         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30999         Likewise.
31000         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31001         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31002         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31003         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31004         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31005         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31006         Likewise.
31007
31008         Avoid gcc warning on cygwin.
31009         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31010         !ACL_NO_TRIVIAL]: Avoid unused variable.
31011
31012 2008-06-05  Eric Blake  <ebb9@byu.net>
31013
31014         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31015         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31016         git-version-gen fails to come up with a version.
31017         Reported by Simon Josefsson.
31018
31019 2008-06-05  Jim Meyering  <meyering@redhat.com>
31020             Paul Eggert  <eggert@cs.ucla.edu>
31021
31022         utimens.c: work around a probable Linux kernel bug
31023         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31024         appears to be a kernel bug that causes utimensat to return 280
31025         instead of 0, indicating success.
31026
31027 2008-06-04  Bruno Haible  <bruno@clisp.org>
31028
31029         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31030         2008-06-01 commit.
31031
31032 2008-06-04  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31035         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31036         (file_has_acl): Use it. Save errno afterwards.
31037         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31038
31039 2008-06-03  Bruno Haible  <bruno@clisp.org>
31040
31041         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31042         draft code. Simplify #ifs.
31043         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31044         Put Solaris code after POSIX-draft code. Fix comments regarding
31045         Solaris 10, HP-UX. Mention Cygwin.
31046         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31047
31048 2008-06-03  Eric Blake  <ebb9@byu.net>
31049
31050         Provide fallback for older kernels.
31051         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31052         Provide runtime fallback if kernel lacks support.
31053         Reported by Mike Frysinger.
31054
31055 2008-06-02  Bruno Haible  <bruno@clisp.org>
31056
31057         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31058         it exists.
31059
31060 2008-06-02  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31063         * lib/copy-acl.c (qcopy_acl): Update comment.
31064
31065 2008-06-02  Bruno Haible  <bruno@clisp.org>
31066
31067         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31068         like ACL APIs.
31069
31070 2008-06-02  Bruno Haible  <bruno@clisp.org>
31071
31072         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31073         * tests/test-set-mode-acl.sh: Likewise.
31074         * tests/test-copy-acl.sh: Likewise.
31075         * tests/test-copy-file.sh: Likewise.
31076
31077 2008-06-02  Bruno Haible  <bruno@clisp.org>
31078
31079         * tests/test-file-has-acl.sh: Remove unused code.
31080
31081 2008-06-01  Bruno Haible  <bruno@clisp.org>
31082
31083         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31084         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31085         messages.
31086         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31087
31088 2008-06-01  Bruno Haible  <bruno@clisp.org>
31089
31090         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31091         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31092         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31093         APIs.
31094         * modules/acl-tests (configure.ac): Remove tests now contained in
31095         m4/acl.m4.
31096
31097 2008-06-02  Jim Meyering  <meyering@redhat.com>
31098
31099         announce-gen: use a better key-server host name
31100         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31101         it may be more consistently reliable.  Suggested by Werner Koch
31102         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31103
31104 2008-06-01  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31107         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31108
31109 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31110
31111         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31112
31113 2008-06-01  Bruno Haible  <bruno@clisp.org>
31114
31115         New ACL tests.
31116         * tests/test-file-has-acl.sh: New file.
31117         * tests/test-file-has-acl.c: New file.
31118         * tests/test-set-mode-acl.sh: New file.
31119         * tests/test-set-mode-acl.c: New file.
31120         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31121         * tests/test-copy-acl.c: New file.
31122         * modules/acl-tests: New file, based on modules/copy-file-tests.
31123         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31124         (Depends-on): Add acl-tests.
31125         (configure.ac): Remove checks.
31126         (Makefile.am): Don't create test-sameacls program here any more.
31127
31128 2008-06-01  Bruno Haible  <bruno@clisp.org>
31129
31130         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31131         * tests/test-sameacls.c: Include progname.h.
31132         (main): Invoke set_program_name. Portability fixes for MacOS X,
31133         Solaris, HP-UX.
31134
31135 2008-06-01  Bruno Haible  <bruno@clisp.org>
31136
31137         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31138         function.
31139         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31140
31141 2008-06-01  Bruno Haible  <bruno@clisp.org>
31142
31143         * modules/rpmatch (Depends-on): Add strdup.
31144
31145 2008-06-01  Bruno Haible  <bruno@clisp.org>
31146
31147         * lib/pipe.c: Include unistd-safer.h.
31148         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31149         * modules/pipe (Depends-on): Add unistd-safer.
31150
31151 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31152
31153         * modules/autobuild (configure.ac): Call AB_INIT.
31154
31155 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31156
31157         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31158         Suggested by Bruno Haible <bruno@clisp.org>.
31159
31160 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31161
31162         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31163         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31164         <bruno@clisp.org>.
31165
31166 2008-05-29  Eric Blake  <ebb9@byu.net>
31167
31168         Prefer new POSIX 200x interfaces over futimesat.
31169         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31170         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31171         when available.
31172         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31173
31174 2008-05-28  Bruno Haible  <bruno@clisp.org>
31175
31176         * modules/stpcpy (License): Change to LGPLv2+.
31177         Requested by David Lutterkort <dlutter@redhat.com>.
31178
31179 2008-05-27  Bruno Haible  <bruno@clisp.org>
31180
31181         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31182         current mingw.
31183         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31184
31185 2008-05-27  Bruno Haible  <bruno@clisp.org>
31186
31187         * modules/iconv_open (Link): New section, from module 'iconv'.
31188         * modules/striconv (Link): Likewise.
31189         * modules/striconveh (Link): Likewise.
31190         * modules/xstriconv (Link): Likewise.
31191         * modules/unicodeio (Link): Likewise.
31192         * modules/propername (Link): Likewise.
31193         Reported by Jim Meyering.
31194
31195 2008-05-26  Jim Meyering  <meyering@redhat.com>
31196
31197         sha256: do not artificially restrict buffer length to be < 2^32
31198         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31199         uint32_t to size_t.
31200         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31201         to match.
31202
31203         avoid unaligned access errors, e.g., on sparc
31204         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31205         direct access through a possibly-unaligned uint64* pointer.
31206         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31207         direct access through a possibly-unaligned uint32* pointer.
31208         Prompted by this patch from Tom "spot" Callaway:
31209         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31210
31211         sha512.c: fix typo in comment
31212         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31213
31214 2008-05-25  Bruno Haible  <bruno@clisp.org>
31215
31216         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31217         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31218         (Makefile.am): Update lib_SOURCES.
31219
31220 2008-05-25  Bruno Haible  <bruno@clisp.org>
31221
31222         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31223
31224 2008-05-25  Jim Meyering  <meyering@redhat.com>
31225
31226         useless-if-before-free: freed expr may have white-space differences
31227         * build-aux/useless-if-before-free: Recognize cases in which the
31228         freed expression differs from the tested one in embedded white
31229         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31230         $1 was used, so we can't make any regexp shy.  Improved tests now
31231         detect this.
31232
31233         useless-if-before-free: accept white space in the expression.
31234         * build-aux/useless-if-before-free: For now, any white space
31235         in the expression must be identical in the free argument.
31236
31237         useless-if-before-free: efficiency tweak
31238         * build-aux/useless-if-before-free: Make the expression-matching
31239         regexp "shy".
31240         Make the *outer* regexp shy, not the expr-matching one.
31241
31242         update code-in-comment to accept cast of free arg
31243         * build-aux/useless-if-before-free: Update regexp.
31244
31245 2008-05-25  Bruno Haible  <bruno@clisp.org>
31246
31247         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31248         * modules/copy-file-tests (Files, Makefile.am): Update.
31249         * tests/test-copy-file.c (func_test_copy): Update.
31250
31251 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31252
31253         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31254
31255 2008-05-23  Bruno Haible  <bruno@clisp.org>
31256
31257         Improve support for ACLs on OSF/1.
31258         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31259         Remove fallback for unknown flavors of ACLs.
31260
31261 2008-05-22  Bruno Haible  <bruno@clisp.org>
31262
31263         Add support for ACLs on OSF/1.
31264         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31265         replacements.
31266         (acl_free_text): New macro fallback.
31267         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31268         acl_free.
31269         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31270         acl_free_text function. Require AC_C_INLINE.
31271
31272 2008-05-22  Bruno Haible  <bruno@clisp.org>
31273
31274         Make copy_acl work on MacOS X 10.5.
31275         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31276         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31277         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31278         If MODE_INSIDE_ACL, don't assume that every system has the same text
31279         representation for ACLs as FreeBSD.
31280         * lib/copy-acl.c (copy_acl): Add support for platforms with
31281         !MODE_INSIDE_ACL.
31282         * lib/file-has-acl.c (file_has_acl): Likewise.
31283         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31284         FreeBSD, MacOS X, or IRIX, respectively.
31285
31286 2008-05-22  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/acl.h: Don't include <sys/acl.h>.
31289         (GETACLCNT): Move fallback to lib/acl-internal.h.
31290         * lib/acl-internal.h: Include <sys/acl.h> here.
31291         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31292
31293 2008-05-22  Bruno Haible  <bruno@clisp.org>
31294
31295         Split off copy_acl function to separate file.
31296         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31297         * lib/acl.c (copy_acl): Moved function to separate file.
31298         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31299         * modules/acl (Files): Add lib/copy-acl.c.
31300         (Makefiles.am): Augment lib_SOURCES.
31301
31302 2008-05-22  Bruno Haible  <bruno@clisp.org>
31303
31304         * modules/copy-file-tests: New file.
31305         * tests/test-copy-file.sh: New file.
31306         * tests/test-copy-file.c: New file.
31307         * tests/test-copy-file-sameacls.c: New file.
31308
31309 2008-05-22  Eric Blake  <ebb9@byu.net>
31310
31311         Avoid gcc warning.
31312         * tests/test-memcmp.c (main): Pass NULL indirectly.
31313
31314 2008-05-21  Bruno Haible  <bruno@clisp.org>
31315
31316         Add reference doc about ACLs.
31317         * doc/acl-resources.txt: New file.
31318         * doc/acl-cygwin.txt: New file.
31319
31320 2008-05-21  Bruno Haible  <bruno@clisp.org>
31321
31322         Avoid one more warning from gcc.
31323         * lib/vasnprintf.c (IF_LINT): Update comments.
31324         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31325
31326 2008-05-21  Jim Meyering  <meyering@redhat.com>
31327
31328         avoid a warning from gcc
31329         * lib/vasnprintf.c (IF_LINT): Define.
31330         (scale10_round_decimal_long_double):
31331         Use it to avoid a "may be used uninitialized" warning.
31332         (scale10_round_decimal_double): Likewise.
31333
31334 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31335
31336         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31337         declared.
31338
31339 2008-05-20  Bruno Haible  <bruno@clisp.org>
31340
31341         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31342         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31343
31344 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31345
31346         * modules/memcmp-tests: New file.
31347         * tests/test-memcmp.c: New file.
31348
31349 2008-05-19  Bruno Haible  <bruno@clisp.org>
31350
31351         * modules/propername (Notice, configure.ac): Put quoted "..." into
31352         --keyword option.
31353         * lib/propername.h: Update comments accordingly.
31354         Reported by Eric Blake.
31355
31356 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31357
31358         * modules/getpass-gnu (Depends-on): Add fseeko.
31359
31360 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31361
31362         * modules/base64-tests: New file.
31363
31364 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31365
31366         * lib/base64.c (base64_decode_ctx): If a decode context structure
31367         was passed in use it to ignore newlines.  If a context structure
31368         was _not_ passed in, continue to treat newlines as garbage (this
31369         is the historical behavior).  Formerly base64_decode.
31370         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31371         takes a decode context structure.
31372         * lib/base64.h (base64_decode): Macro for four-argument calls.
31373         (base64_decode_alloc): Likewise.
31374         * lib/base64.c (base64_decode_ctx): If a decode context structure
31375         was passed in use it to ignore newlines.  If a context structure
31376         was _not_ passed in, continue to treat newlines as garbage (this
31377         is the historical behavior).  Formerly base64_decode.
31378         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31379         takes a decode context structure.
31380         * lib/base64.h (base64_decode): Macro for four-argument calls.
31381         (base64_decode_alloc): Likewise.
31382
31383 2008-05-19  Jim Meyering  <meyering@redhat.com>
31384
31385         avoid a warning from gcc
31386         * lib/trim.c (IF_LINT): Define.
31387         (trim2): Use it to avoid a "may be used uninitialized" warning.
31388
31389         Fix doc typo.
31390         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31391
31392 2008-05-19  Bruno Haible  <bruno@clisp.org>
31393
31394         * doc/glibc-functions/getpass.texi: Document limits of other
31395         implementations.
31396
31397 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31398             Bruno Haible <bruno@clisp.org>
31399
31400         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31401
31402 2008-05-18  Bruno Haible  <bruno@clisp.org>
31403
31404         * modules/propername: New file, from GNU gettext.
31405         * lib/propername.h: New file, from GNU gettext.
31406         * lib/propername.c: New file, from GNU gettext.
31407         * MODULES.html.sh (Internationalization functions): Add propername.
31408
31409 2008-05-16  Jim Meyering  <meyering@redhat.com>
31410             Bruno Haible  <bruno@clisp.org>
31411
31412         Avoid some warnings from "gcc -Wshadow".
31413         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31414
31415 2008-05-15  Eric Blake  <ebb9@byu.net>
31416
31417         Extend previous patch to cygwin 1.7.0.
31418         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31419         fast implementation in cygwin >= 1.7.0.
31420         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31422
31423 2008-05-15  Bruno Haible  <bruno@clisp.org>
31424
31425         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31426         implementation in glibc >= 2.9.
31427         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31429
31430 2008-05-15  Bruno Haible  <bruno@clisp.org>
31431
31432         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31433         (Unicode string functions): Add unilbrk/*.
31434         Reported by Karl Berry.
31435
31436 2008-05-15  Eric Blake  <ebb9@byu.net>
31437
31438         Fix violation of <stdbool.h> replacement in regex.
31439         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31440         * lib/regexec.c (re_search_internal): Likewise.
31441         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31442
31443 2008-05-15  Jim Meyering  <meyering@redhat.com>
31444
31445         avoid distracting test output when git or cvs is not found
31446         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31447         * tests/test-vc-list-files-git.sh: Likewise.
31448
31449 2008-05-15  Eric Blake  <ebb9@byu.net>
31450
31451         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31452         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31453         glibc version.
31454         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31455         * doc/posix-functions/strstr.texi (strstr): Likewise.
31456         * lib/str-two-way.h (MAX): Sychronize with glibc.
31457
31458 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31459
31460         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31461         opr.ctx_type.
31462         (calc_first): Initialize constraint field.
31463         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31464         Fix grammar.
31465         (duplicate_node): Merge constraint field for all node types.
31466         (calc_eclosure_iter): Look at constraint field for all node types.
31467         * lib/regex_internal.c (create_cd_newstate): Don't look at
31468         opr.ctx_type.
31469
31470 2008-05-14  Bruno Haible  <bruno@clisp.org>
31471
31472         Help GCC to do better code generation.
31473         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31474         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31475         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31476         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31477         Declare with attribute 'malloc' if supported.
31478
31479 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31480
31481         use "echo STR|wc -c" rather than unportable "expr length STR"
31482         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31483         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31484
31485 2008-05-14  Jim Meyering  <meyering@redhat.com>
31486
31487         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31488         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31489         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31490         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31491         via Collin Lasse.
31492
31493 2008-05-14  Eric Blake  <ebb9@byu.net>
31494
31495         Avoid quadratic growth in gl_LIBSOURCES.
31496         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31497         Suggested by Bruno Haible.
31498
31499         Test xmemdup0.
31500         * modules/xmemdup0-tests: New file.
31501         * tests/test-xmemdup0.c: Likewise.
31502
31503 2008-05-13  Eric Blake  <ebb9@byu.net>
31504
31505         Split xmemdup0 into its own module.
31506         * modules/xmemdup0: New file.
31507         * lib/xmemdup0.h: Likewise.
31508         * lib/xmemdup0.c: Likewise.
31509         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31510         * lib/xalloc.h (xmemdup0): Remove.
31511         * lib/xmalloc.c (xmemdup0): Likewise.
31512
31513 2008-05-13  Eric Blake  <ebb9@byu.net>
31514             Bruno Haible  <bruno@clisp.org>
31515
31516         Reduce number of forks required during autoconf.
31517         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31518         and gl_LIBSOURCES_DIR.
31519         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31520         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31521         m4_syscmd per file.
31522         <m4_foreach_w>: Move...
31523         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31524
31525 2008-05-13  Eric Blake  <ebb9@byu.net>
31526
31527         * gnulib-tool: Fix various comment typos.
31528
31529 2008-05-12  Bruno Haible  <bruno@clisp.org>
31530
31531         Tailor the linebreaking algorithm.
31532         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31533
31534 2008-05-12  Bruno Haible  <bruno@clisp.org>
31535
31536         Update to Unicode 5.0.0.
31537         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31538         LBP_JV, LBP_JT. Redistribute values.
31539         (unilbrk_table): Change size.
31540         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31541         Unicode TR#14 rev. 22.
31542         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31543         LBP_JV, LBP_JT. Redistribute values.
31544         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31545         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31546         Update.
31547         * lib/unilbrk/lbrkprop1.h: Regenerated.
31548         * lib/unilbrk/lbrkprop2.h: Regenerated.
31549         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31550         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31551         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31552         Likewise.
31553         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31554         Likewise.
31555         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31556         result.
31557         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31558         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31559         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31560         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31561         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31562         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31563
31564 2008-05-11  Bruno Haible  <bruno@clisp.org>
31565
31566         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31567
31568 2008-05-11  Bruno Haible  <bruno@clisp.org>
31569
31570         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31571         * modules/unilbrk/gen-lbrk: New file.
31572
31573 2008-05-11  Bruno Haible  <bruno@clisp.org>
31574
31575         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31576         * m4/sha512.m4 (gl_SHA512): Likewise.
31577
31578 2008-05-11  Jim Meyering  <meyering@redhat.com>
31579
31580         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31581         * modules/crypto/sha256: New file.
31582         * modules/crypto/sha512: Likewise.
31583         * lib/sha256.c: Likewise.
31584         * lib/sha256.h: Likewise.
31585         * lib/sha512.c: Likewise.
31586         * lib/sha512.h: Likewise.
31587         * lib/u64.h: Likewise.
31588         * m4/sha256.m4: Likewise.
31589         * m4/sha512.m4: Likewise.
31590         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31591
31592 2008-05-10  Bruno Haible  <bruno@clisp.org>
31593
31594         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31595         (Input/Output <stdio.h>): Add xprintf.
31596         (Signal handling <signal.h>): Add strsignal.
31597         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31598         (Core language properties): Add func.
31599         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31600         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31601         strings.
31602         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31603         (Input/output): New section.
31604         (File system functions): Add openat-die, stat-macros.
31605         (Networking functions): Add sockets.
31606         (Unicode string functions): Add unictype/*.
31607         (Support for building libraries and executables): Add gperf.
31608         (Support for building documentation): Add agpl-3.0.
31609         (Misc): Add nocrash.
31610
31611 2008-05-10  Bruno Haible  <bruno@clisp.org>
31612
31613         * modules/unictype/gen-ctype: New file.
31614
31615 2008-05-10  Jim Meyering  <meyering@redhat.com>
31616
31617         Make chdir-safer.c more efficient on a system with no symlinks.
31618         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31619         also if ELOOP is zero.  Suggested by Bruno Haible.
31620
31621         Make chdir-safer.c slightly safer.
31622         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31623         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31624
31625         Avoid compile failure on systems without ELOOP (like mingw).
31626         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31627         Reported by Bruno Haible.
31628
31629 2008-05-10  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31632         (is_utf8_encoding): Use a case-insensitive comparison.
31633         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31634         streq.
31635
31636 2008-05-10  Bruno Haible  <bruno@clisp.org>
31637
31638         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31639         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31640         * lib/unilbrk/ulc-common.h (iconv_string_length,
31641         iconv_string_keeping_offsets): Remove declarations.
31642         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31643         Don't include <iconv.h>, streq.h, xsize.h.
31644         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31645         conversion.
31646         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31647         <iconv.h>, streq.h, xsize.h.
31648         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31649         conversion.
31650         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31651         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31652         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31653         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31654
31655 2008-05-10  Bruno Haible  <bruno@clisp.org>
31656
31657         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31658         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31659
31660         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31661         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31662
31663         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31664         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31665
31666         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31667         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31668
31669         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31670         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31671
31672         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31673         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31674
31675         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31676         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31677
31678         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31679         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31680
31681 2008-05-10  Bruno Haible  <bruno@clisp.org>
31682
31683         Split up 'linebreak' module.
31684         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31685         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31686         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31687         modifications.
31688         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31689         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31690         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31691         lib/linebreak.c.
31692         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31693         lib/linebreak.c.
31694         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31695         lib/linebreak.c.
31696         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31697         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31698         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31699         lib/linebreak.c.
31700         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31701         lib/linebreak.c.
31702         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31703         lib/linebreak.c.
31704         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31705         lib/linebreak.c.
31706         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31707         lib/linebreak.c.
31708         * modules/unilbrk/base: New file.
31709         * modules/unilbrk/tables: New file.
31710         * modules/unilbrk/u8-possible-linebreaks: New file.
31711         * modules/unilbrk/u16-possible-linebreaks: New file.
31712         * modules/unilbrk/u32-possible-linebreaks: New file.
31713         * modules/unilbrk/ulc-common: New file.
31714         * modules/unilbrk/ulc-possible-linebreaks: New file.
31715         * modules/unilbrk/u8-width-linebreaks: New file.
31716         * modules/unilbrk/u16-width-linebreaks: New file.
31717         * modules/unilbrk/u32-width-linebreaks: New file.
31718         * modules/unilbrk/ulc-width-linebreaks: New file.
31719         * lib/linebreak.h: Remove file.
31720         * lib/linebreak.c: Remove file.
31721         * m4/linebreak.m4: Remove file.
31722         * modules/linebreak: Remove file.
31723         * NEWS: Mention the changes.
31724
31725 2008-05-09  Eric Blake  <ebb9@byu.net>
31726
31727         Add xmemdup0.
31728         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31729         implementation.
31730         * lib/xmalloc.c (xmemdup0): New C implementation.
31731
31732 2008-05-08  Bruno Haible  <bruno@clisp.org>
31733
31734         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31735
31736 2008-05-07  Eric Blake  <ebb9@byu.net>
31737
31738         Support cross-compilation of <wctype.h>.
31739         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31740         AC_CACHE_CHECK.
31741
31742 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31743
31744         * build-aux/vc-list-files: Add support for bzr.
31745
31746 2008-05-03  Jim Meyering  <meyering@redhat.com>
31747
31748         avoid failed assertion with tight malloc
31749         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31750
31751 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31752
31753         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31754         are needed from arpa/inet.h.
31755         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31756         Reported by Bruno Haible.
31757
31758 2008-05-02  Jim Meyering  <meyering@redhat.com>
31759
31760         avoid compilation error on FreeBSD 6
31761         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31762
31763 2008-05-01  Jim Meyering  <meyering@redhat.com>
31764
31765         useless-if-before-free: correct --help's exit status description
31766         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31767         for one or more matches, etc.  Reported by Bruno Haible.
31768
31769         vc-list-files: make the stand-alone gnulib test work
31770         * modules/vc-list-files-tests (configure.ac):
31771         Define and AC_SUBST abs_aux_dir.
31772         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31773         $(abs_top_srcdir) to each script and having each of them
31774         duplicate the work of setting PATH, set PATH here, using
31775         the new variable, abs_aux_dir instead.
31776         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31777         * tests/test-vc-list-files-git.sh: Likewise.
31778         Reported by Bruno Haible.
31779
31780 2008-05-01  Bruno Haible  <bruno@clisp.org>
31781
31782         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31783         reallocation. Rename 'done' to 'found_delimiter'.
31784
31785 2008-05-01  Jim Meyering  <meyering@redhat.com>
31786
31787         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31788         * build-aux/vc-list-files: Use `...`, not $(...).
31789
31790 2008-04-30  Jim Meyering  <meyering@redhat.com>
31791
31792         add tests for vc-list-files
31793         * modules/vc-list-files-tests: New module.
31794         * tests/test-vc-list-files-cvs.sh: New file.
31795         * tests/test-vc-list-files-git.sh: New file.
31796
31797         avoid a warning from gcc
31798         * lib/getndelim2.c (IF_LINT): Define.
31799         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31800
31801         vc-list-files: work properly with build-aux/cvsu, too
31802         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31803         to all cvs-based clauses.
31804
31805         vc-list-files: work properly in the CVS+awk case, too
31806         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31807
31808         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31809         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31810         take more than one file argument, so .  Add quotes, just in case $dir
31811         ever contains a shell meta-character.  Prompted by Soren Hansen in
31812         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31813
31814 2008-04-29  Eric Blake  <ebb9@byu.net>
31815
31816         Optimize getndelim2 to use block operations when possible.
31817         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31818         freadseek, and memchr2.
31819         * lib/getndelim2.c (getndelim2): Use them for block reads.
31820
31821 2008-04-29  Bruno Haible  <bruno@clisp.org>
31822
31823         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31824         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31825         * modules/inet_ntop (Depends-on): Add extensions.
31826         * modules/inet_pton (Depends-on): Likewise.
31827         Reported by Simon Josefsson.
31828
31829 2008-04-29  Jim Meyering  <meyering@redhat.com>
31830
31831         When the is more than one match in a block, match all of them.
31832         * build-aux/useless-if-before-free: Iterate through each block
31833         until there are no more matches.
31834
31835         Fix broken useless-if-before-free script.
31836         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31837         the expression to match cast of argument to free-like function.
31838
31839 2008-04-29  Eric Blake  <ebb9@byu.net>
31840
31841         Use new header.
31842         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31843
31844 2008-04-29  Jim Meyering  <meyering@redhat.com>
31845
31846         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31847         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31848         by gnulib to exist and to declare e.g., inet_ntop.
31849         Don't include "inet_ntop.h", now removed.
31850
31851         * m4/arpa_inet_h.m4: Remove trailing blanks.
31852
31853 2008-04-29  Eric Blake  <ebb9@byu.net>
31854
31855         Silence valgrind on safe reads beyond potential array bounds.
31856         * lib/rawmemchr.valgrind: New file.
31857         * lib/strchrnul.valgrind: Likewise.
31858         * modules/rawmemchr (Files): Distribute new file.
31859         * modules/strchrnul (Files): Likewise.
31860         Suggested by Bruno Haible.
31861
31862 2008-04-29  Bruno Haible  <bruno@clisp.org>
31863
31864         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31865         (inet_ntop, inet_pton): Change portability warning's wording.
31866         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31867         Invoke gl_CHECK_NEXT_HEADERS.
31868         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31869         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31870         set ARPA_INET_H.
31871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31872         * modules/arpa_inet (Description): No longer only for systems that
31873         lack it.
31874         (Depends-on): Add include_next.
31875         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31876         HAVE_ARPA_INET_H.
31877
31878 2008-04-29  Jim Meyering  <meyering@redhat.com>
31879
31880         * modules/mkdir (License): Re-license as LGPLv2+.
31881
31882 2008-04-29  Bruno Haible  <bruno@clisp.org>
31883
31884         * modules/rawmemchr (Maintainer): Set to Eric.
31885         * modules/strchrnul (Maintainer): Likewise.
31886
31887 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31888
31889         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31890         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31891
31892         * modules/arpa_inet (arpa/inet.h): Use them.
31893
31894 2008-04-28  Eric Blake  <ebb9@byu.net>
31895
31896         Test getndelim2.
31897         * modules/getndelim2-tests: New file.
31898         * tests/test-getndelim2.c: Likewise.
31899         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31900         stream.
31901         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31902
31903         * MODULES.html.sh: Document new module.
31904
31905 2008-04-20  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/c-stack.c (die): Use raise.
31908         * modules/c-stack (Depends-on): Add raise.
31909
31910 2008-04-28  Bruno Haible  <bruno@clisp.org>
31911
31912         Expect rpmatch to be declared.
31913         * lib/yesno.c (rpmatch): Remove declaration.
31914
31915         Declare rpmatch.
31916         * lib/stdlib.in.h (rpmatch): New declaration.
31917         * lib/rpmatch.c: Include <stdlib.h> first.
31918         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31919         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31921         HAVE_RPMATCH.
31922         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31923         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31924         (Include): Set to <stdlib.h>.
31925         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31926         HAVE_RPMATCH.
31927         * NEWS: Document the change.
31928
31929 2008-04-28  Bruno Haible  <bruno@clisp.org>
31930
31931         Change rpmatch to use nl_langinfo when appropriate.
31932         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31933         (N_): New macro.
31934         (localized_pattern): New function/macro.
31935         (try): Remove match, nomatch arguments. Copy the pattern into safe
31936         memory before caching it.
31937         (rpmatch): Use localized_pattern. Add translator comments.
31938         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31939         Suggested by Eric Blake.
31940         * modules/rpmatch (Depends-on): Add stdbool.
31941
31942 2008-04-28  Eric Blake  <ebb9@byu.net>
31943
31944         Add rawmemchr module, matching glibc.
31945         * modules/string (Makefile.am): New indicator.
31946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31947         * lib/string.in.h (rawmemchr): Declare when appropriate.
31948         * modules/rawmemchr: New file.
31949         * m4/rawmemchr.m4: Likewise.
31950         * lib/rawmemchr.c: Likewise.
31951         * modules/rawmemchr-tests: Likewise.
31952         * tests/test-rawmemchr.c: Likewise.
31953         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31954         module.
31955         * modules/strchrnul (Depends-on): Add rawmemchr.
31956         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31957
31958         Whitespace cleanup.
31959         * tests/test-strchrnul.c: Reindent.
31960         * lib/strchrnul.c: Likewise.
31961
31962         Optimize and test strchrnul.
31963         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31964         * modules/strchrnul-tests: New file.
31965         * tests/test-strchrnul.c: Likewise.
31966
31967         Remove intprops dependency.
31968         * modules/memchr (Depends-on): Remove intprops.
31969         * modules/memrchr (Depends-on): Likewise.
31970         * modules/memchr2 (Depends-on): Likewise.
31971         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31972         * lib/memrchr.c (__memrchr): Likewise.
31973         * lib/memrchr2.c (memchr2): Likewise.
31974         Reported by Simon Josefsson.
31975
31976 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31977
31978         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31979         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31980
31981 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31982
31983         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31984
31985         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31986
31987         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31988
31989         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31990         declarations.
31991         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31992
31993         * m4/inet_pton.m4: Don't check for header files.
31994
31995         * m4/inet_ntop.m4: Don't check for header files.
31996
31997 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31998
31999         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32000         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32001         trigger for cygwin).
32002         Reported by Bruno Haible  <bruno@clisp.org>.
32003
32004 2008-04-28  Bruno Haible  <bruno@clisp.org>
32005
32006         * doc/posix-functions/strdup.texi: Mention mingw problem.
32007
32008 2008-04-27  Bruno Haible  <bruno@clisp.org>
32009
32010         * modules/stat-time-tests (Depends-on): Add sleep.
32011         * tests/test-stat-time.c (force_unlink): New function.
32012         (cleanup): Use it.
32013         (test_mtime): Remove the ctime related tests.
32014         (test_ctime): New function, containing the ctime related tests.
32015         (main): Call test_ctime, except on native Windows platforms.
32016
32017 2008-04-27  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/rpmatch.c (rpmatch): Add some comments.
32020         Reported by James Youngman <jay@gnu.org>.
32021
32022 2008-04-27  Bruno Haible  <bruno@clisp.org>
32023
32024         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32025         quiet NaNs.
32026
32027 2008-04-27  Bruno Haible  <bruno@clisp.org>
32028
32029         Make test-yesno.sh work on mingw.
32030         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32031         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32032         (main): Set stdin to binary mode.
32033         * modules/yesno-tests (Depends-on): Add binary-io.
32034
32035 2008-04-27  Bruno Haible  <bruno@clisp.org>
32036
32037         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32038         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32039         argument that lie outside the IEEE 854 domain.
32040         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32041         (gl_ISFINITE): Use it.
32042         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32043
32044 2008-04-27  Bruno Haible  <bruno@clisp.org>
32045
32046         Allow local renaming in config.h.
32047         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32048
32049 2008-04-27  Bruno Haible  <bruno@clisp.org>
32050
32051         * lib/memchr.c (__memchr): Change type of 'i'.
32052         * lib/memchr2.c (memchr2): Likewise.
32053
32054 2008-04-26  Eric Blake  <ebb9@byu.net>
32055         and Bruno Haible  <bruno@clisp.org>
32056
32057         Optimize and test memrchr.
32058         * modules/memrchr (Depends-on): Add intprops.
32059         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32060         * modules/memrchr-tests: New file.
32061         * tests/test-memrchr.c: New file.
32062
32063 2008-04-26  Bruno Haible  <bruno@clisp.org>
32064
32065         Add tentative support for DragonFly BSD.
32066         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32067         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32068         fp.
32069         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32070         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32071         * lib/fpurge.c (fpurge): Likewise.
32072         * lib/freadable.c (freaadable): Likewise.
32073         * lib/freadahead.c (freadahead): Likewise.
32074         * lib/freading.c (freading): Likewise.
32075         * lib/freadptr.c (freadptr): Likewise.
32076         * lib/freadseek.c (freadptrinc): Likewise.
32077         * lib/fseeko.c (fseeko): Likewise.
32078         * lib/fseterr.c (fseterr): Likewise.
32079         * lib/fwritable.c (fwritable): Likewise.
32080         * lib/fwriting.c (fwriting): Likewise.
32081
32082 2008-04-26  Bruno Haible  <bruno@clisp.org>
32083
32084         * lib/stdio-impl.h: New file.
32085         * lib/fbufmode.c: Include stdio-impl.h.
32086         (fbufmode): Use fp_, remove redundant #defines.
32087         * lib/fflush.c: Include stdio-impl.h.
32088         (clear_ungetc_buffer): Remove redundant #defines.
32089         * lib/fpurge.c: Include stdio-impl.h.
32090         (fpurge): Remove redundant #defines.
32091         * lib/freadable.c: Include stdio-impl.h.
32092         (freadable): Remove redundant #defines.
32093         * lib/freadahead.c: Include stdio-impl.h.
32094         (freadahead): Remove redundant #defines.
32095         * lib/freading.c: Include stdio-impl.h.
32096         (freading): Remove redundant #defines.
32097         * lib/freadptr.c: Include stdio-impl.h.
32098         (freadptr): Remove redundant #defines.
32099         * lib/freadseek.c: Include stdio-impl.h.
32100         (freadptrinc): Remove redundant #defines.
32101         * lib/fseeko.c: Include stdio-impl.h.
32102         (rpl_fseeko): Remove redundant #defines.
32103         * lib/fseterr.c: Include stdio-impl.h.
32104         (fseterr): Remove redundant #defines.
32105         * lib/fwritable.c: Include stdio-impl.h.
32106         (fwritable: Remove redundant #defines.
32107         * lib/fwriting.c: Include stdio-impl.h.
32108         (fwriting): Remove redundant #defines.
32109         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32110         * modules/fflush (Files): Likewise.
32111         * modules/fpurge (Files): Likewise.
32112         * modules/freadable (Files): Likewise.
32113         * modules/freadahead (Files): Likewise.
32114         * modules/freading (Files): Likewise.
32115         * modules/freadptr (Files): Likewise.
32116         * modules/freadseek (Files): Likewise.
32117         * modules/fseeko (Files): Likewise.
32118         * modules/fseterr (Files): Likewise.
32119         * modules/fwritable (Files): Likewise.
32120         * modules/fwriting (Files): Likewise.
32121
32122 2008-04-26  Bruno Haible  <bruno@clisp.org>
32123
32124         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32125         restore_seek_optimization, update_fpos_cache): New functions, extracted
32126         from rpl_fflush.
32127         (rpl_fflush): Use them.
32128         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32129         (gl_REPLACE_FFLUSH): Use it.
32130
32131 2008-04-26  Bruno Haible  <bruno@clisp.org>
32132
32133         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32134         on Solaris.
32135         * tests/test-xstrtoimax.sh: Likewise.
32136         * tests/test-xstrtoumax.sh: Likewise.
32137         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32138
32139 2008-04-26  Bruno Haible  <bruno@clisp.org>
32140
32141         * modules/memchr-tests: New file.
32142         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32143
32144 2008-04-26  Eric Blake  <ebb9@byu.net>
32145             Bruno Haible  <bruno@clisp.org>
32146
32147         * lib/memchr.c: Include intprops.h.
32148         (__memchr): Optimize parallel detection of matching bytes. Rename local
32149         variables. Add explanatory comments.
32150
32151 2008-04-26  Bruno Haible  <bruno@clisp.org>
32152
32153         Fix module 'memchr', broken since 2000-10-28.
32154         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32155
32156 2008-04-26  Bruno Haible  <bruno@clisp.org>
32157
32158         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32159         comments.
32160
32161 2008-04-25  Eric Blake  <ebb9@byu.net>
32162
32163         Use native fstatat on cygwin 1.7.0.
32164         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32165         first.
32166
32167 2008-04-23  Eric Blake  <ebb9@byu.net>
32168
32169         Improve memchr2 performance.
32170         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32171         NUL bytes.
32172         * modules/memchr2 (Depends-on): Use intprops.h.
32173
32174 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32175
32176         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32177         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32178         <blp@cs.stanford.edu>.
32179
32180 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32181
32182         * lib/arpa_inet.in.h: New file.
32183
32184         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32185         (Makefile.am): Sed in substitute header file.
32186
32187         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32188         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32189
32190         * modules/inet_ntop (configure.ac): Use
32191         gl_ARPA_INET_MODULE_INDICATOR.
32192
32193         * modules/inet_pton (configure.ac): Use
32194         gl_ARPA_INET_MODULE_INDICATOR.
32195
32196 2008-04-22  Jim Meyering  <meyering@redhat.com>
32197
32198         * modules/verify (License): Re-license as LGPLv2+.
32199
32200 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32201
32202         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32203         parameter to void* as per POSIX standard (MinGW uses char*).
32204
32205 2008-04-21  Bruno Haible  <bruno@clisp.org>
32206
32207         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32208         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32209         Define to replacements if REPLACE_ISWCNTRL is 1.
32210         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32211         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32212         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32213         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32214         what it fixes.
32215         * doc/posix-functions/iswalpha.texi: Likewise.
32216         * doc/posix-functions/iswblank.texi: Likewise.
32217         * doc/posix-functions/iswcntrl.texi: Likewise.
32218         * doc/posix-functions/iswdigit.texi: Likewise.
32219         * doc/posix-functions/iswgraph.texi: Likewise.
32220         * doc/posix-functions/iswlower.texi: Likewise.
32221         * doc/posix-functions/iswprint.texi: Likewise.
32222         * doc/posix-functions/iswpunct.texi: Likewise.
32223         * doc/posix-functions/iswspace.texi: Likewise.
32224         * doc/posix-functions/iswupper.texi: Likewise.
32225         * doc/posix-functions/iswxdigit.texi: Likewise.
32226         Reported by Alain Guibert.
32227
32228 2008-04-21  Bruno Haible  <bruno@clisp.org>
32229
32230         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32231         Patch by Alain Guibert.
32232
32233 2008-04-21  Bruno Haible  <bruno@clisp.org>
32234
32235         Fix test failures on mingw.
32236         * tests/test-xstrtol.c (print_no_progname): New function.
32237         (main): Install it in error_print_progname hook.
32238         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32239         * tests/test-xstrtoimax.sh: Likewise.
32240         * tests/test-xstrtoumax.sh: Likewise.
32241
32242 2008-04-21  Bruno Haible  <bruno@clisp.org>
32243
32244         Fix test failure on mingw.
32245         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32246
32247 2008-04-21  Bruno Haible  <bruno@clisp.org>
32248
32249         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32250         Actually assign a value.
32251
32252 2008-04-20  Bruno Haible  <bruno@clisp.org>
32253
32254         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32255         take 2.
32256         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32257         'canonicalize-lgpl' module is also used.
32258         * lib/canonicalize-lgpl.c: Undo last change.
32259         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32260
32261 2008-04-20  Bruno Haible  <bruno@clisp.org>
32262
32263         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32264         config.h. Provide _mkdir based fallback for mingw.
32265         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32266         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32267         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32268         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32269         rather than defining mkdir in config.h.
32270         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32271         (gl_SYS_STAT_H_DEFAULTS): New macro.
32272         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32273         HAVE_IO_H any more.
32274         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32275         HAVE_DECL_MKDIR and HAVE_IO_H.
32276
32277 2008-04-20  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/isapipe.c: Port to native Windows platforms.
32280
32281 2008-04-20  Bruno Haible  <bruno@clisp.org>
32282
32283         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32284
32285 2008-04-21  Eric Blake  <ebb9@byu.net>
32286
32287         Work around preprocessors that don't handle UINTMAX_MAX.
32288         * lib/memchr2.c (memchr2): Avoid embedded #if.
32289         Reported by Alain Guibert, fix suggested by Bruno Haible.
32290
32291 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32292
32293         * doc/posix-functions/strftime.texi (strftime): Explain better
32294         Windows incompatibility.  Suggested by Micah Cowan
32295         <micah@cowan.name>.
32296
32297 2008-04-20  Bruno Haible  <bruno@clisp.org>
32298
32299         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32300         unistr/u8-mblen.
32301
32302 2008-04-20  Bruno Haible  <bruno@clisp.org>
32303
32304         Fix test failure on platforms with non-GNU iconv.
32305         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32306         (U_TO_U8): Use it, rather than u16_to_u8.
32307         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32308         units at the end of the input string.
32309         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32310
32311 2008-04-20  Bruno Haible  <bruno@clisp.org>
32312
32313         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32314         when the resulting length is 0.
32315         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32316
32317 2008-04-20  Bruno Haible  <bruno@clisp.org>
32318
32319         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32320         works.
32321         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32322
32323 2008-04-20  Bruno Haible  <bruno@clisp.org>
32324
32325         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32326         * modules/tsearch-tests (configure.ac): Test for initstate function.
32327
32328 2008-04-20  Bruno Haible  <bruno@clisp.org>
32329
32330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32331         for nlink_t if missing.
32332         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32333
32334 2008-04-19  Bruno Haible  <bruno@clisp.org>
32335
32336         Work around snprintf bug on Linux libc5.
32337         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32339         gl_SNPRINTF_SIZE1.
32340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32341         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32342         that test failed.
32343         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32344         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32345         * modules/snprintf (Files): Add m4/printf.m4.
32346         * modules/vsnprintf (Files): Likewise.
32347         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32348         * doc/posix-functions/vsnprintf.texi: Likewise.
32349
32350 2008-04-19  Bruno Haible  <bruno@clisp.org>
32351
32352         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32353         from 0.0058 to less than 10^-7.
32354
32355 2008-04-19  Bruno Haible  <bruno@clisp.org>
32356
32357         Fix rounding when a precision is given.
32358         * lib/vasnprintf.c (is_borderline): New function.
32359         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32360         9...9x.
32361         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32362         %e, %g.
32363         * tests/test-vasprintf-posix.c (test_function): Likewise.
32364         * tests/test-snprintf-posix.h (test_function): Likewise.
32365         * tests/test-sprintf-posix.h (test_function): Likewise.
32366         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32367         * tests/test-printf-posix.h (test_function): Likewise.
32368         * tests/test-printf-posix.output: Update.
32369         Reported by John Darrington <john@darrington.wattle.id.au> via
32370         Ben Pfaff <blp@cs.stanford.edu>.
32371
32372 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32373
32374         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32375         Suggested by Bruno Haible <bruno@clisp.org>.
32376
32377 2008-04-17  Bruno Haible  <bruno@clisp.org>
32378
32379         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32380         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32381         implementation.
32382         Patch by Bruce Merry <bmerry@gmail.com>.
32383
32384 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32385
32386         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32387         doesn't work under Windows.
32388
32389 2008-04-16  Bruno Haible  <bruno@clisp.org>
32390
32391         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32392         New macros.
32393         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32394         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32395         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32396         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32397         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32398         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32399         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32400         macros.
32401         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32402         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32403         Northern Sotho, Uighur.
32404
32405 2008-04-16  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32408         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32409         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32410         Reported by Daniel Bergström <daniel@octocode.com>.
32411
32412 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32413             Bruno Haible  <bruno@clisp.org>
32414
32415         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32416         function.
32417         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32418         New functions, mostly extracted from gl_locale_name_default.
32419         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32420
32421 2008-04-16  Eric Blake  <ebb9@byu.net>
32422
32423         Adjust strtod detection to catch glibc 2.7 bug.
32424         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32425         Reported by John Gatewood Ham.
32426
32427 2008-04-16  Bruno Haible  <bruno@clisp.org>
32428
32429         Add tentative support for Linux libc5.
32430         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32431         * lib/fpurge.c (fpurge): Likewise.
32432         * lib/freadable.c (freadable): Likewise.
32433         * lib/freadahead.c (freadahead): Likewise.
32434         * lib/freading.c (freading): Likewise.
32435         * lib/freadptr.c (freadptr): Likewise.
32436         * lib/freadseek.c (freadptrinc): Likewise.
32437         * lib/fseeko.c (rpl_fseeko): Likewise.
32438         * lib/fseterr.c (fseterr): Likewise.
32439         * lib/fwritable.c (fwritable): Likewise.
32440         * lib/fwriting.c (fwriting): Likewise.
32441         Reported by Alain Guibert <alguibert+bts@free.fr>.
32442
32443 2008-04-15  Bruno Haible  <bruno@clisp.org>
32444
32445         * modules/mathl (configure.ac): Define module indicator.
32446
32447 2008-04-15  Bruno Haible  <bruno@clisp.org>
32448
32449         * lib/logl.c (logl): Remove unused variables.
32450
32451 2008-04-15  Bruno Haible  <bruno@clisp.org>
32452
32453         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32454         fails.
32455
32456 2008-04-15  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/trim.c (trim2): Fix argument of isspace() macro.
32459
32460 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32461
32462         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32463         to 0.
32464         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32465
32466 2008-04-14  Bruno Haible  <bruno@clisp.org>
32467
32468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32469         AC_LANG_PROGRAM argument.
32470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32471         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32473         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32474         * m4/math_h.m4 (gl_MATH_H): Likewise.
32475         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32477         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32478         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32479         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32480         * m4/regex.m4 (gl_REGEX): Likewise.
32481         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32482         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32484         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32485         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32486         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32489
32490 2008-04-14  Jim Meyering  <meyering@redhat.com>
32491
32492         test-strtod: fix typos: s/abs/fabs/
32493         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32494
32495 2008-04-13  Bruno Haible  <bruno@clisp.org>
32496
32497         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32498         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32499         module is also used and while not building the reloc-wrapper.
32500
32501 2008-04-13  Bruno Haible  <bruno@clisp.org>
32502
32503         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32504
32505 2008-04-13  Bruno Haible  <bruno@clisp.org>
32506
32507         Fix AIX compilation failure introduced on 2008-04-02.
32508         * tests/test-frexp.c (exp): Undefine before redefining.
32509         * tests/test-frexpl.c (exp): Likewise.
32510
32511 2008-04-13  Bruno Haible  <bruno@clisp.org>
32512
32513         Work around a HP-UX stdio bug.
32514         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32515         * tests/test-ftello.c (main): Likewise.
32516         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32517         * doc/posix-functions/ftello.texi: Likewise.
32518
32519 2008-04-13  Bruno Haible  <bruno@clisp.org>
32520
32521         Make test-signbit pass on HP-UX/hppa.
32522         * tests/test-signbit.c (minus_zerol): New variable.
32523         (test_signbitl): Use it.
32524
32525 2008-04-13  Bruno Haible  <bruno@clisp.org>
32526
32527         Make truncl work on OSF/1 4.0.
32528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32529         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32530         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32532         HAVE_DECL_TRUNCL.
32533         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32534         HAVE_DECL_TRUNCL.
32535         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32536
32537 2008-04-13  Bruno Haible  <bruno@clisp.org>
32538
32539         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32540
32541 2008-04-13  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32544         expression, so as to avoid HP-UX 11 cc compiler bug.
32545
32546 2008-04-13  Bruno Haible  <bruno@clisp.org>
32547
32548         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32549
32550 2008-04-13  Bruno Haible  <bruno@clisp.org>
32551
32552         * lib/git-merge-changelog.c: Remove empty declaration outside of
32553         functions.
32554
32555 2008-04-13  Bruno Haible  <bruno@clisp.org>
32556
32557         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32558
32559 2008-04-13  Bruno Haible  <bruno@clisp.org>
32560
32561         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32562         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32564         also if it exists but lacks definitions of the SHUT_* macros.
32565         * modules/sys_socket (Description): Update.
32566         Reported by Elbert Pol <e.pol@chello.nl>.
32567
32568 2008-04-13  Bruno Haible  <bruno@clisp.org>
32569
32570         * lib/localcharset.c (OS2): Don't redefine if already defined.
32571         Reported by Elbert Pol <e.pol@chello.nl>.
32572
32573 2008-04-13  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/binary-io.h [__EMX__]: Include <io.h>.
32576         Reported by Elbert Pol <e.pol@chello.nl>.
32577
32578 2008-04-12  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/fpucw.h: Enable the definitions also for x86_64.
32581         Needed for NetBSD/x86_64.
32582         Reported by Thomas Klausner <tk@giga.or.at>.
32583
32584 2008-04-12  Bruno Haible  <bruno@clisp.org>
32585
32586         * tests/test-strtod.c: Include isnand.h.
32587         (main): Use isnand instead of isnan.
32588         Reported by Jim Meyering.
32589
32590 2008-04-12  Bruno Haible  <bruno@clisp.org>
32591
32592         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32593         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32594
32595 2008-04-12  Jim Meyering  <meyering@redhat.com>
32596
32597         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32598
32599 2008-04-12  Bruno Haible  <bruno@clisp.org>
32600
32601         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32602         Reported by Elbert Pol <e.pol@chello.nl>.
32603
32604 2008-04-12  Eric Blake  <ebb9@byu.net>
32605
32606         Work around Solaris 10 math.h bug.
32607         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32608         (gl_MATH_H_DEFAULTS): Set up default.
32609         * modules/math (Makefile.am): Replace new indicators.
32610         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32611         * tests/test-math.c (main): Test this.
32612         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32613         * doc/posix-headers/math.texi (math.h): Mention bug.
32614         Reported by Nelson H. F. Beebe and Jim Meyering.
32615
32616 2008-04-11  Bruno Haible  <bruno@clisp.org>
32617
32618         Adapt to future versions of Apple GCC.
32619         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32620         Reported by Peter O'Gorman <peter@pogma.com>.
32621
32622 2008-04-11  Bruno Haible  <bruno@clisp.org>
32623
32624         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32625
32626 2008-04-11  Bruno Haible  <bruno@clisp.org>
32627
32628         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32629
32630         * modules/getaddrinfo-tests (Makefile.am): Define
32631         test_getaddrinfo_LDADD.
32632
32633 2008-04-11  Bruno Haible  <bruno@clisp.org>
32634
32635         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32636         (init): Fix syntax error.
32637         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32638         is declared.
32639
32640 2008-04-11  Bruno Haible  <bruno@clisp.org>
32641
32642         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32643         * modules/glob (Depends-on): Add stdbool.
32644
32645 2008-04-11  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/trim.c: Include <string.h>.
32648
32649 2008-04-11  Eric Blake  <ebb9@byu.net>
32650
32651         Avoid compile failure on OS/2.
32652         * lib/regex_internal.h (internal_function): Disable optimization
32653         on OS/2 (__EMX__), where it caused compiler error.
32654         Reported by Elbert Pol.
32655
32656 2008-04-11  Bruno Haible  <bruno@clisp.org>
32657
32658         Flush the standard error stream before aborting. Needed on mingw.
32659         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32660         * tests/test-array_list.c (ASSERT): Likewise.
32661         * tests/test-array_oset.c (ASSERT): Likewise.
32662         * tests/test-avltree_list.c (ASSERT): Likewise.
32663         * tests/test-avltree_oset.c (ASSERT): Likewise.
32664         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32665         * tests/test-binary-io.c (ASSERT): Likewise.
32666         * tests/test-byteswap.c (ASSERT): Likewise.
32667         * tests/test-c-ctype.c (ASSERT): Likewise.
32668         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32669         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32670         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32671         * tests/test-c-strstr.c (ASSERT): Likewise.
32672         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32673         * tests/test-canonicalize.c (ASSERT): Likewise.
32674         * tests/test-carray_list.c (ASSERT): Likewise.
32675         * tests/test-ceilf1.c (ASSERT): Likewise.
32676         * tests/test-ceilf2.c (ASSERT): Likewise.
32677         * tests/test-ceill.c (ASSERT): Likewise.
32678         * tests/test-count-one-bits.c (ASSERT): Likewise.
32679         * tests/test-fbufmode.c (ASSERT): Likewise.
32680         * tests/test-fflush2.c (ASSERT): Likewise.
32681         * tests/test-floorf1.c (ASSERT): Likewise.
32682         * tests/test-floorf2.c (ASSERT): Likewise.
32683         * tests/test-floorl.c (ASSERT): Likewise.
32684         * tests/test-fopen.c (ASSERT): Likewise.
32685         * tests/test-fpending.c (ASSERT): Likewise.
32686         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32687         * tests/test-fpurge.c (ASSERT): Likewise.
32688         * tests/test-freadable.c (ASSERT): Likewise.
32689         * tests/test-freadahead.c (ASSERT): Likewise.
32690         * tests/test-freading.c (ASSERT): Likewise.
32691         * tests/test-freadptr.c (ASSERT): Likewise.
32692         * tests/test-freadptr2.c (ASSERT): Likewise.
32693         * tests/test-freadseek.c (ASSERT): Likewise.
32694         * tests/test-freopen.c (ASSERT): Likewise.
32695         * tests/test-frexp.c (ASSERT): Likewise.
32696         * tests/test-frexpl.c (ASSERT): Likewise.
32697         * tests/test-fseek.c (ASSERT): Likewise.
32698         * tests/test-fseeko.c (ASSERT): Likewise.
32699         * tests/test-fstrcmp.c (ASSERT): Likewise.
32700         * tests/test-ftell.c (ASSERT): Likewise.
32701         * tests/test-ftello.c (ASSERT): Likewise.
32702         * tests/test-func.c (ASSERT): Likewise.
32703         * tests/test-fwritable.c (ASSERT): Likewise.
32704         * tests/test-fwriting.c (ASSERT): Likewise.
32705         * tests/test-getdelim.c (ASSERT): Likewise.
32706         * tests/test-getline.c (ASSERT): Likewise.
32707         * tests/test-i-ring.c (ASSERT): Likewise.
32708         * tests/test-iconv-utf.c (ASSERT): Likewise.
32709         * tests/test-iconv.c (ASSERT): Likewise.
32710         * tests/test-isfinite.c (ASSERT): Likewise.
32711         * tests/test-isnand.c (ASSERT): Likewise.
32712         * tests/test-isnanf.c (ASSERT): Likewise.
32713         * tests/test-isnanl.h (ASSERT): Likewise.
32714         * tests/test-ldexpl.c (ASSERT): Likewise.
32715         * tests/test-linked_list.c (ASSERT): Likewise.
32716         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32717         * tests/test-localename.c (ASSERT): Likewise.
32718         * tests/test-lseek.c (ASSERT): Likewise.
32719         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32720         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32721         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32722         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32723         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32724         * tests/test-mbschr.c (ASSERT): Likewise.
32725         * tests/test-mbscspn.c (ASSERT): Likewise.
32726         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32727         * tests/test-mbspbrk.c (ASSERT): Likewise.
32728         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32729         * tests/test-mbsrchr.c (ASSERT): Likewise.
32730         * tests/test-mbsspn.c (ASSERT): Likewise.
32731         * tests/test-mbsstr1.c (ASSERT): Likewise.
32732         * tests/test-mbsstr2.c (ASSERT): Likewise.
32733         * tests/test-mbsstr3.c (ASSERT): Likewise.
32734         * tests/test-memchr2.c (ASSERT): Likewise.
32735         * tests/test-memmem.c (ASSERT): Likewise.
32736         * tests/test-open.c (ASSERT): Likewise.
32737         * tests/test-printf-frexp.c (ASSERT): Likewise.
32738         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32739         * tests/test-printf-posix.c (ASSERT): Likewise.
32740         * tests/test-quotearg.c (ASSERT): Likewise.
32741         * tests/test-rbtree_list.c (ASSERT): Likewise.
32742         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32743         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32744         * tests/test-round1.c (ASSERT): Likewise.
32745         * tests/test-roundf1.c (ASSERT): Likewise.
32746         * tests/test-roundl.c (ASSERT): Likewise.
32747         * tests/test-signbit.c (ASSERT): Likewise.
32748         * tests/test-sleep.c (ASSERT): Likewise.
32749         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32750         * tests/test-snprintf.c (ASSERT): Likewise.
32751         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32752         * tests/test-stat-time.c (ASSERT): Likewise.
32753         * tests/test-strcasestr.c (ASSERT): Likewise.
32754         * tests/test-strerror.c (ASSERT): Likewise.
32755         * tests/test-striconv.c (ASSERT): Likewise.
32756         * tests/test-striconveh.c (ASSERT): Likewise.
32757         * tests/test-striconveha.c (ASSERT): Likewise.
32758         * tests/test-strsignal.c (ASSERT): Likewise.
32759         * tests/test-strstr.c (ASSERT): Likewise.
32760         * tests/test-strtod.c (ASSERT): Likewise.
32761         * tests/test-trunc1.c (ASSERT): Likewise.
32762         * tests/test-trunc2.c (ASSERT): Likewise.
32763         * tests/test-truncf1.c (ASSERT): Likewise.
32764         * tests/test-truncf2.c (ASSERT): Likewise.
32765         * tests/test-truncl.c (ASSERT): Likewise.
32766         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32767         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32768         * tests/test-vasnprintf.c (ASSERT): Likewise.
32769         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32770         * tests/test-vasprintf.c (ASSERT): Likewise.
32771         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32772         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32773         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32774         * tests/test-vsnprintf.c (ASSERT): Likewise.
32775         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32776         * tests/test-wcwidth.c (ASSERT): Likewise.
32777         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32778         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32779         * tests/test-xvasprintf.c (ASSERT): Likewise.
32780         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32781         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32782         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32783         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32784         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32785         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32786         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32787         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32788         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32789         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32790         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32791         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32792         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32793         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32794         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32795         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32796         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32797         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32798         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32799         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32800         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32801         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32802         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32803         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32804         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32805         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32806         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32807         * tests/unictype/test-combining.c (ASSERT): Likewise.
32808         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32809         * tests/unictype/test-digit.c (ASSERT): Likewise.
32810         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32811         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32812         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32813         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32814         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32815         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32816         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32817         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32818         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32819         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32820         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32821         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32822         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32823         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32824         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32825         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32826         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32827         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32828         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32829         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32830         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32831         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32832         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32833         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32834         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32835         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32836         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32837         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32838         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32839         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32840         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32841         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32842         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32843         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32844         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32845         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32846         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32847         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32848         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32849         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32850         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32851         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32852         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32853         Reported by Eric Blake.
32854
32855 2008-04-11  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/wchar.in.h: Tweak comment.
32858
32859 2008-04-11  Bruno Haible  <bruno@clisp.org>
32860
32861         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32862         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32863         gl_COMMON.
32864         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32865
32866 2008-04-11  Bruno Haible  <bruno@clisp.org>
32867
32868         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32869
32870 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32871
32872         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32873         of attempting to use non-existing /dev/*random.  Based on patch
32874         from Adam Strzelecki <ono@java.pl> in
32875         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32876
32877 2008-04-08  Bruno Haible  <bruno@clisp.org>
32878
32879         Add tentative support for emx+gcc.
32880         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32881         * lib/fpurge.c (fpurge): Likewise.
32882         * lib/freadable.c (freadable): Likewise.
32883         * lib/freadahead.c (freadahead): Likewise.
32884         * lib/freading.c (freading): Likewise.
32885         * lib/freadptr.c (freadptr): Likewise.
32886         * lib/freadseek.c (freadptrinc): Likewise.
32887         * lib/fseeko.c (rpl_fseeko): Likewise.
32888         * lib/fseterr.c (fseterr): Likewise.
32889         * lib/fwritable.c (fwritable): Likewise.
32890         * lib/fwriting.c (fwriting): Likewise.
32891         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32892
32893 2008-04-09  Eric Blake  <ebb9@byu.net>
32894
32895         Avoid some autoconf warnings.
32896         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32897         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32898         * m4/afs.m4 (gl_AFS): Likewise.
32899         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32900         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32901         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32902         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32903         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32904         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32905         (AC_CHECK_DECLS_ONCE): Likewise.
32906         Rename file...
32907         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32908         gnulib-tool requires autoconf 2.59 or better.
32909         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32910
32911 2008-04-08  Eric Blake  <ebb9@byu.net>
32912
32913         Use 'git describe --match' if present (added in git 1.5.5).
32914         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32915         if possible.
32916
32917 2008-04-08  Bruno Haible  <bruno@clisp.org>
32918
32919         Add tentative support for OpenServer.
32920         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32921         _ptr, _cnt.
32922         * lib/fpurge.c (fpurge): Likewise.
32923         * lib/freadable.c (freadable): Likewise.
32924         * lib/freadahead.c (freadahead): Likewise.
32925         * lib/freading.c (freading): Likewise.
32926         * lib/freadptr.c (freadptr): Likewise.
32927         * lib/freadseek.c (freadptrinc): Likewise.
32928         * lib/fseeko.c (rpl_fseeko): Likewise.
32929         * lib/fseterr.c (fseterr): Likewise.
32930         * lib/fwritable.c (fwritable): Likewise.
32931         * lib/fwriting.c (fwriting): Likewise.
32932         Reported by Roger Cornelius <rac@tenzing.org> and
32933         Brian K. White <brian@aljex.com>.
32934
32935 2008-04-06  Jim Meyering  <meyering@redhat.com>
32936
32937         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32938
32939 2008-04-06  Bruno Haible  <bruno@clisp.org>
32940
32941         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32942         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32943         * tests/test-printf-posix.sh: Likewise.
32944         * tests/test-vfprintf-posix.sh: Likewise.
32945         * tests/test-vprintf-posix.sh: Likewise.
32946         * tests/test-xprintf-posix.sh: Likewise.
32947
32948 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32949
32950         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32951         hide error from 'ls', needed on OS/2.
32952         Report by Elbert Pol <elbert.pol@gmail.com>.
32953
32954 2008-04-04  Eric Blake  <ebb9@byu.net>
32955
32956         Make test-fseeko.c failures meaningful.
32957         * tests/test-fseeko.c: Print line number on failure.
32958         * tests/test-fseek.c: Likewise.
32959         Reported by Nelson H. F. Beebe.
32960
32961         Improve strtod bug detection check.
32962         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32963         required for Solaris 10.
32964         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32965
32966 2008-04-04  Bruno Haible  <bruno@clisp.org>
32967
32968         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32969         by m4/setenv.m4.
32970
32971 2008-04-03  Eric Blake  <ebb9@byu.net>
32972
32973         Ensure sane .version contents.
32974         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32975         version string.
32976         * build-aux/git-version-gen: Improve documentation.
32977
32978         Make GNU make output nicer.
32979         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32980         MAKECMDGOALS to enforce message for all command line targets.  Set
32981         srcdir for use in maint.mk.
32982
32983         Another maintainer tweak.
32984         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32985         a target that regenerates version.
32986
32987 2008-04-03  Jim Meyering  <meyering@redhat.com>
32988
32989         vc-list-files: don't cause coreutils "make po-check" failure
32990         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32991
32992 2008-04-03  Eric Blake  <ebb9@byu.net>
32993
32994         Allow VPATH usage of vc-list-files.
32995         * build-aux/vc-list-files (scriptversion): Add timestamp.
32996         (options): Add --help, --version, -C.
32997         (CVS): Support installed cvsu.
32998
32999 2008-04-02  Bruno Haible  <bruno@clisp.org>
33000
33001         Avoid some "statement with no effect" warnings from gcc.
33002         * tests/test-wctype.c (main): Explicitly ignore unused values.
33003         Reported by Jim Meyering.
33004
33005 2008-04-02  Jim Meyering  <meyering@redhat.com>
33006
33007         Avoid some warnings from "gcc -Wshadow".
33008         * tests/test-frexp.c (exp): Define to a different identifier.
33009         * tests/test-frexpl.c (exp): Likewise.
33010
33011 2008-04-03  Jim Meyering  <meyering@redhat.com>
33012
33013         bootstrap: remove dangling *.[ch] symlinks from lib
33014         * build-aux/bootstrap [dangling symlink removal]: Move find's
33015         -depth option to precede all others, to avoid a warning.
33016         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33017
33018 2008-04-02  Bruno Haible  <bruno@clisp.org>
33019
33020         Avoid some warnings from "gcc -Wshadow".
33021         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33022         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33023         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33024         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33025         Reported by Jim Meyering.
33026
33027 2008-04-01  Bruno Haible  <bruno@clisp.org>
33028
33029         Fix test to work on IRIX 6.5 with cc.
33030         * tests/test-math.c (numeric_equal): New function.
33031         (main): Use it.
33032
33033 2008-04-01  Bruno Haible  <bruno@clisp.org>
33034
33035         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33036
33037 2008-04-01  Bruno Haible  <bruno@clisp.org>
33038
33039         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33040         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33041         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33042         (Depends-on): Remove math.
33043
33044         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33045         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33046         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33047         (Depends-on): Remove math.
33048
33049         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33050         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33051         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33052         (Depends-on): Remove math.
33053         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33054         (Depends-on): Remove math.
33055
33056         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33057         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33058         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33059         (Depends-on): Remove math.
33060         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33061         (Depends-on): Remove math.
33062
33063         * tests/test-round1.c: Include nan.h.
33064         (main): Use NaNd instead of NAN.
33065         * modules/round-tests (Files): Add tests/nan.h.
33066
33067         * tests/test-trunc1.c: Include nan.h.
33068         (main): Use NaNd instead of NAN.
33069         * modules/trunc-tests (Files): Add tests/nan.h.
33070
33071         * tests/test-roundf1.c: Include nan.h.
33072         (main): Use NaNf instead of NAN.
33073         * modules/roundf-tests (Files): Add tests/nan.h.
33074
33075         * tests/test-truncf1.c: Include nan.h.
33076         (main): Use NaNf instead of NAN.
33077         * modules/truncf-tests (Files): Add tests/nan.h.
33078
33079         * tests/test-ceilf1.c: Include nan.h.
33080         (main): Use NaNf instead of NAN.
33081         * modules/ceilf-tests (Files): Add tests/nan.h.
33082
33083         * tests/test-floorf1.c: Include nan.h.
33084         (main): Use NaNf instead of NAN.
33085         * modules/floorf-tests (Files): Add tests/nan.h.
33086
33087         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33088         (main): Use NaNf instead of NAN.
33089         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33090
33091         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33092         (main): Use NaNd instead of NAN.
33093         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33094
33095         * tests/test-frexp.c: Include nan.h.
33096         (main): Use NaNd instead of NAN.
33097         * modules/frexp-tests (Files): Add tests/nan.h.
33098
33099         * lib/isnan.c: Don't include <math.h>.
33100         (FUNC): Don't use NAN macro.
33101         * modules/isnand-nolibm (Depends-on): Remove math.
33102         * modules/isnanf-nolibm (Depends-on): Remove math.
33103         * modules/isnanl (Depends-on): Remove math.
33104         * modules/isnanl-nolibm (Depends-on): Remove math.
33105
33106         * tests/nan.h: New file.
33107
33108 2008-04-01  Eric Blake  <ebb9@byu.net>
33109
33110         Fix typos.
33111         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33112         values to be the right type.
33113
33114         For now, cater to gnulib strtod inaccuracies.
33115         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33116         fractional results.  While not as nice from a QoI perspective, it
33117         is a quicker patch than correctly implementing decimal to binary
33118         rounding.
33119
33120 2008-03-31  Eric Blake  <ebb9@byu.net>
33121
33122         Guarantee a definition of NAN.
33123         * lib/math.in.h (NAN): Define if missing.
33124         * tests/test-math.c (main): Test it.
33125         * doc/posix-headers/math.texi (math.h): Document this.
33126         * lib/isnan.c (rpl_isnand): Use it.
33127         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33128         * tests/test-floorf1.c (NaN): Likewise.
33129         * tests/test-frexp.c (NaN): Likewise.
33130         * tests/test-isnand.c (NaN): Likewise.
33131         * tests/test-isnanf.c (NaN): Likewise.
33132         * tests/test-round1.c (NaN): Likewise.
33133         * tests/test-roundf1.c (NaN): Likewise.
33134         * tests/test-snprintf-posix.h (NaN): Likewise.
33135         * tests/test-sprintf-posix.h (NaN): Likewise.
33136         * tests/test-trunc1.c (NaN): Likewise.
33137         * tests/test-truncf1.c (NaN): Likewise.
33138         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33139         * tests/test-vasprintf-posix.c (NaN): Likewise.
33140         * modules/isnand-nolibm (Depends-on): Add math.
33141         * modules/isnanf-nolibm (Depends-on): Likewise.
33142         * modules/isnanl (Depends-on): Likewise.
33143         * modules/isnanl-nolibm (Depends-on): Likewise.
33144         * modules/snprintf-posix-tests (Depends-on): Likewise.
33145         * modules/sprintf-posix-tests (Depends-on): Likewise.
33146         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33147         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33148         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33149         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33150
33151 2008-03-31  Bruno Haible  <bruno@clisp.org>
33152
33153         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33154         * doc/posix-functions/strtod.texi: Likewise.
33155
33156 2008-03-31  Bruno Haible  <bruno@clisp.org>
33157
33158         * tests/test-strtod.c (main): Don't use C99 syntax.
33159
33160 2008-03-31  Bruno Haible  <bruno@clisp.org>
33161
33162         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33163         Reported by Eric Blake.
33164
33165 2008-03-31  Jim Meyering  <meyering@redhat.com>
33166
33167         Don't compare actual signbit return values.
33168         * tests/test-strtod.c (main): Rather, compare only their
33169         zero/non-zero nature.
33170
33171 2008-03-31  Eric Blake  <ebb9@byu.net>
33172
33173         More strtod documentation.
33174         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33175         failures as distinct bugs.
33176
33177 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33178
33179         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33180         Problem reported by Erik Benada in
33181         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33182
33183 2008-03-30  Bruno Haible  <bruno@clisp.org>
33184
33185         * tests/test-strtod.c: Add comments about which assertion fails on which
33186         platform.
33187         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33188
33189 2008-03-30  Eric Blake  <ebb9@byu.net>
33190
33191         Test signbit behavior on zeros.
33192         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33193         (test_signbitd, test_signbitl): Likewise.
33194
33195         More strtod touchups.
33196         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33197         sign of negative underflow, for now.  Use .5, not .1.
33198         * doc/posix-functions/strtod.texi (strtod): Mention these
33199         limitations.
33200         Reported by Jim Meyering.
33201
33202 2008-03-30  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33205         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33206
33207 2008-03-30  Bruno Haible  <bruno@clisp.org>
33208
33209         Avoid failure when attempting to return empty iconv results on some
33210         platforms.
33211         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33212         allocation, don't report ENOMEM when the resulting string is empty.
33213
33214 2008-03-30  Bruno Haible  <bruno@clisp.org>
33215
33216         Fix buffer overrun.
33217         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33218         Don't consider the width for tmp_length. Check count against tmp_length
33219         before doing the padding. Ensure enough allocation during padding.
33220
33221 2008-03-30  Eric Blake  <ebb9@byu.net>
33222
33223         strtod touchups.
33224         * lib/strtod.c (strtod): Avoid compiler warnings.
33225         Reported by Jim Meyering.
33226
33227 2008-03-30  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33230         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33231         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33232         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33233         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33234         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33235         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33236         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33237
33238         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33239         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33240         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33241         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33242         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33243         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33244         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33245         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33246
33247         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33248         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33249         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33250         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33251         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33252         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33253         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33254         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33255
33256         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33257         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33258
33259         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33260         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33261
33262         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33263         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33264
33265         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33267         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33268
33269         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33271         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33272
33273         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33275         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33276
33277         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33279         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33280
33281         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33282         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33284         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33285         (Depends-on): Add EOVERFLOW.
33286         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33287         (Depends-on): Add EOVERFLOW.
33288         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33289         (Depends-on): Add EOVERFLOW.
33290         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33291         (Depends-on): Add EOVERFLOW.
33292         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33293         (Depends-on): Add EOVERFLOW.
33294         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33295         (Depends-on): Add EOVERFLOW.
33296         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33297         (Depends-on): Add EOVERFLOW.
33298         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33299         (Depends-on): Add EOVERFLOW.
33300
33301         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33303         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33304
33305         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33307         * modules/snprintf (Depends-on): Add EOVERFLOW.
33308
33309         * lib/poll.c (EOVERFLOW): Remove fallback.
33310         * modules/poll (Depends-on): Add EOVERFLOW.
33311
33312         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33313         * modules/getugroups (Depends-on): Add EOVERFLOW.
33314
33315         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33316         * modules/getdelim (Depends-on): Add EOVERFLOW.
33317
33318         * lib/ftell.c (EOVERFLOW): Remove fallback.
33319         * modules/ftell (Depends-on): Add EOVERFLOW.
33320
33321         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33323         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33324
33325         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33326
33327         * modules/EOVERFLOW-tests: New file.
33328         * tests/test-EOVERFLOW.c: New file.
33329
33330         * modules/EOVERFLOW: New file.
33331         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33332
33333 2008-03-30  Bruno Haible  <bruno@clisp.org>
33334
33335         Fix bug introduced on 2007-06-10.
33336         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33337         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33338
33339 2008-03-30  Bruno Haible  <bruno@clisp.org>
33340
33341         Improve freadseek's efficiency after ungetc.
33342         * lib/freadseek.c: Include freadahead.h.
33343         (freadptrinc): New function, extracted from freadseek.
33344         (freadseek): Use it in a loop. Use freadahead to determine the number
33345         of loop iterations.
33346         * modules/freadseek (Depends-on): Add freadahead.
33347         (configure.ac): Require AC_C_INLINE.
33348
33349 2008-03-30  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/freadseek.c (freadseek): Don't ignore the return value of
33352         freadptr.
33353
33354 2008-03-29  Eric Blake  <ebb9@byu.net>
33355
33356         Add hex float support.
33357         * modules/strtod (Depends-on): Add c-ctype.
33358         (Link): Mention POW_LIB.
33359         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33360         whitespace between 'e' and exponent.
33361         * tests/test-strtod.c (main): Enable hex float tests.
33362         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33363         now provides.
33364
33365         Document various strtod bugs, with some fixes.
33366         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33367         "-0x", "inf", "nan", and hex constants.
33368         * doc/posix-functions/atof.texi (atof): Likewise.
33369         * modules/stdlib (Makefile.am): Support strtod.
33370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33371         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33372         detect additional strtod bugs.
33373         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33374         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33375         bool where appropriate.  Parse 'inf' and 'nan'.
33376         * tests/test-strtod.c: New file.
33377         * modules/strtod (Depends-on): Add stdbool, stdlib.
33378         (configure.ac): Turn on module indicator.
33379         * modules/strtod-tests: New module.
33380
33381 2008-03-29  Eric Blake  <ebb9@byu.net>
33382
33383         Fix ftell on mingw.
33384         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33385         * modules/ftell-tests (Depends-on): Add binary-io.
33386         * modules/ftello-tests (Depends-on): Likewise.
33387         * tests/test-ftell.c (main): Enhance test to cover behavior after
33388         ungetc.  Enforce binary mode.
33389         * tests/test-ftello.c (main): Likewise.
33390
33391         Pass test-freadseek on cygwin.
33392         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33393         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33394         ungetc buffer.
33395
33396         * tests/test-fflush2.c (main): Fix typo.
33397
33398 2008-03-29  Bruno Haible  <bruno@clisp.org>
33399
33400         * tests/test-fflush2.c (main): Temporarily disable the contents of
33401         this test.
33402         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33403         Reported by Eric Blake.
33404
33405 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33406
33407         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33408         (GC_SHA224_DIGEST_SIZE): Add.
33409
33410         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33411         (gc_hash_digest_length): Likewise.
33412         (gc_hash_buffer): Likewise.
33413
33414 2008-03-25  Bruno Haible  <bruno@clisp.org>
33415
33416         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33417         detail which gettext release to use.
33418         Reported by Simon Josefsson.
33419
33420 2008-03-26  Jim Meyering  <meyering@redhat.com>
33421
33422         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33423         * modules/gnumakefile (clean-GNUmakefile): Also, use
33424         test ... && ... || : syntax rather than if-then ... fi.
33425
33426         gnumakefile: Don't double-quote-expand $(VPATH) value.
33427         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33428
33429 2008-03-24  Eric Blake  <ebb9@byu.net>
33430
33431         Alter GNUmakefile to install into top directory.
33432         * modules/maintainer-makefile: Split, and add dependency...
33433         * modules/gnumakefile: to this new module.
33434         * build-aux/GNUmakefile: Move...
33435         * top/GNUmakefile: ...here.
33436         * build-aux/maint.mk: Move...
33437         * top/maint.mk: ...here.
33438         * MODULES.html.sh (Support for maintaining...): Document new
33439         module.
33440
33441 2008-03-23  Bruno Haible  <bruno@clisp.org>
33442
33443         * gnulib-tool: New options --vc-files, --no-vc-files.
33444         (func_usage): Document them.
33445         (vc_files): New variable.
33446         (func_import): Consider vc_files.
33447         (func_create_testdir): Set vc_files to empty.
33448         Suggested by Jim Meyering and Karl Berry.
33449
33450 2008-03-23  Bruno Haible  <bruno@clisp.org>
33451
33452         Fix regex compilation error on HP-UX 11.
33453         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33454         * modules/regex (Files): Add m4/mbstate_t.m4.
33455         Reported by Ton Voon <ton.voon@altinity.com>.
33456
33457 2008-03-23  Bruno Haible  <bruno@clisp.org>
33458
33459         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33460
33461 2008-03-23  Eric Blake  <ebb9@byu.net>
33462             Bruno Haible  <bruno@clisp.org>
33463
33464         Install files from top/ in the destination directory.
33465         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33466         augmentation also for the files from top/.
33467         (func_import, func_create_testdir): Rewrite file names:
33468         top/filename -> filename.
33469
33470 2008-03-23  Bruno Haible  <bruno@clisp.org>
33471
33472         Tweak "gnulib --version" output.
33473         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33474
33475 2008-03-23  Bruno Haible  <bruno@clisp.org>
33476
33477         Tweak "gnulib --version" output.
33478         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33479         rather than contents of ChangeLog, when possible.
33480
33481 2008-03-21  Eric Blake  <ebb9@byu.net>
33482
33483         More --version tweaks.
33484         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33485         date of last ChangeLog entry.
33486
33487 2008-03-21  Jim Meyering  <meyering@redhat.com>
33488
33489         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33490
33491 2008-03-20  Eric Blake  <ebb9@byu.net>
33492
33493         VPATH fix.
33494         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33495
33496 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33497
33498         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33499         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33500
33501 2008-03-20  Eric Blake  <ebb9@byu.net>
33502
33503         Sync GNUmakefile with coreutils.
33504         * build-aux/GNUmakefile (have-Makefile): Rename...
33505         (_have-Makefile): ...to this, for namespace consideration.
33506         (GNUmakefile.cfg): Include, if present.
33507         (_autoreconf): Define a default.
33508         (_is-dist-target): New rule for rebuilds to pick up intra-release
33509         version.
33510         (maint-cfg.mk): Rename...
33511         (cfg.mk): ...to this.
33512
33513 2008-03-18  Jim Meyering  <meyering@redhat.com>
33514
33515         New script and module: mktempd
33516         * MODULES.html.sh (maint+release support): Add mktempd.
33517         * build-aux/mktempd: New file.
33518         * modules/mktempd: New file.
33519
33520 2008-03-15  Jim Meyering  <meyering@redhat.com>
33521
33522         Undo last change.
33523         * lib/sha1.c, lib/md5.c: 63 != ~63.
33524         Reported by Andreas Schwab.
33525
33526         sha1.c, md5.c: Hoist a redundant expression.
33527         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33528         "ctx->buflen" only once, before calling *_process_block.
33529         * lib/md5.c (md5_process_bytes): Likewise.
33530
33531 2008-03-14  Eric Blake  <ebb9@byu.net>
33532
33533         Bump copyright year in files generated by gnulib-tool.
33534         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33535         gnulib-tool, rather than hard-coding it.
33536
33537         Fix 'gnulib-tool --version' output to work with git.
33538         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33539         (startup): ...here.
33540         (func_version): Use it to invoke git-version-gen, rather than
33541         relying on CVS keyword expansion.  Modernize wording.
33542         (cvsdatestamp, last_checkin_date, version): Kill unused
33543         variables.
33544
33545 2008-03-12  Jim Meyering  <meyering@redhat.com>
33546
33547         Recognize optional cast of the argument to free.
33548         * build-aux/useless-if-before-free: Update regexps.
33549
33550         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33551
33552 2008-03-11  Bruno Haible  <bruno@clisp.org>
33553
33554         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33555         by a single package.
33556         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33557         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33558         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33559         Reported by Sam Steingold <sds@gnu.org>.
33560
33561 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33562
33563         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33564         repositories.
33565
33566 2008-03-11  Bruno Haible  <bruno@clisp.org>
33567
33568         Avoid conflicts between local macro definitions.
33569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33570         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33571
33572 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33573             Bruno Haible  <bruno@clisp.org>
33574
33575         Make va_copy work with some version of xlc on AIX 5.1.
33576         * lib/stdarg.in.h: New file.
33577         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33578         On AIX, use a <stdarg.h> file substitute.
33579         * modules/stdarg (Files): Add lib/stdarg.in.h.
33580         (Depends-on): Add include_next.
33581         (Makefile.am): Build a stdarg.h substitute if requested.
33582         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33583
33584 2008-03-10  Bruno Haible  <bruno@clisp.org>
33585
33586         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33588         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33589
33590 2008-03-10  Bruno Haible  <bruno@clisp.org>
33591
33592         * modules/stdlib (Depends-on): Add include_next, remove
33593         absolute-header.
33594
33595 2008-03-09  Bruno Haible  <bruno@clisp.org>
33596
33597         * lib/freadahead.h (freadahead): Document more precisely.
33598         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33599         the sum of both buffer sizes.
33600         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33601         * NEWS: Document the change.
33602
33603 2008-03-09  Bruno Haible  <bruno@clisp.org>
33604
33605         Extend freadptr to return also the buffer size.
33606         * lib/freadptr.h (freadptr): Add sizep argument.
33607         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33608         (freadptr): Add sizep argument. Determine buffer size like freadahead
33609         does.
33610         * tests/test-freadptr.c: Don't include freadahead.h.
33611         (main): Adapt for new calling convention of freadptr.
33612         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33613         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33614         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33615         tests/test-freadptr2.sh.
33616         (Depends): Remove freadahead.
33617         (TESTS): Add test-freadptr2.sh.
33618         (check_PROGRAMS): Add test-freadptr2.
33619
33620 2008-03-09  Bruno Haible  <bruno@clisp.org>
33621
33622         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33623         Report and solution by Simon Josefsson.
33624
33625 2008-03-06  Bruno Haible  <bruno@clisp.org>
33626
33627         Make fflush after ungetc work on BSD platforms.
33628         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33629         * tests/test-fflush2.c: New file.
33630         * tests/test-fflush2.sh: New file.
33631         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33632         tests/test-fflush2.c.
33633         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33634         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33635
33636 2008-03-06  Eric Blake  <ebb9@byu.net>
33637
33638         Likewise for ftello.
33639         * modules/ftello (Dependencies): Add extensions.
33640         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33641
33642 2008-03-06  Bruno Haible  <bruno@clisp.org>
33643
33644         * modules/fseeko (Dependencies): Add extensions.
33645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33646         Needed on glibc systems.
33647
33648 2008-03-06  Bruno Haible  <bruno@clisp.org>
33649
33650         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33651         email address.
33652         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33653
33654 2008-03-06  Bruno Haible  <bruno@clisp.org>
33655
33656         * users.txt: Add libgnupdf.
33657
33658 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33659
33660         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33661         (Header File Substitutes, Function Substitutes,
33662         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33663         (Build robot for gnulib): Fix typo.
33664
33665 2008-03-06  Bruno Haible  <bruno@clisp.org>
33666
33667         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33668         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33669
33670 2008-03-06  Bruno Haible  <bruno@clisp.org>
33671
33672         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33673         * doc/gnulib.texi: Include it.
33674
33675 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33676
33677         * modules/func (License): Change license to unlimited; there was
33678         no LGPL parts in the module anyway.
33679
33680 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33681
33682         * modules/__func__: Renamed to modules/func.
33683         * modules/__func__-tests: Renamed to modules/func-tests.
33684         * tests/test-__func__.c: Renamed to tests/test-func.c.
33685         * m4/__func__.m4: Renamed to m4/func.m4.
33686         * doc/gnulib.texi (__func__): Section renamed to func.
33687         Suggested by Eric Blake <ebb9@byu.net>.
33688
33689 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33690
33691         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33692         about __func__.  Make example self-contained.  Suggested by Eric
33693         Blake <ebb9@byu.net>.
33694
33695         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33696         Suggested by Eric Blake <ebb9@byu.net>.
33697
33698 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33699
33700         * modules/__func__: New file.
33701         * modules/__func__-tests: New file.
33702         * tests/test-__func__.c: New file.
33703         * m4/__func__.m4: New file.
33704         * doc/gnulib.texi (__func__): Document __func__ module.
33705
33706 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33707
33708         * modules/byteswap (License): Re-license as LGPLv2+.
33709
33710 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33711
33712         * doc/Makefile: Add pdf target.
33713
33714 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33715
33716         * modules/inline (License): Use 'unlimited', since there are only
33717         *.m4 files in this module.
33718
33719 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33720             Bruno Haible  <bruno@clisp.org>
33721
33722         Add support for HP C 7.1 on OpenVMS 8.3.
33723         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33724
33725 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33726
33727         Update VMS specifics.
33728         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33729
33730 2008-03-02  Jim Meyering  <meyering@redhat.com>
33731
33732         Remove the last dependency on the "free" module.
33733         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33734         Reported by Bob Proulx.
33735
33736         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33737
33738         Remove useless "if" tests before free.  Deprecate "free" module.
33739         * doc/posix-functions/free.texi: Mention that this
33740         module is no longer useful.
33741         * modules/free (Notice): Say this module is obsolete.
33742         * modules/readutmp (Depends-on): Remove free.
33743         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33744         * lib/putenv.c (putenv): Likewise.
33745         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33746         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33747         * tests/test-c-strcasestr.c (main): Likewise.
33748         * tests/test-c-strstr.c (main): Likewise.
33749         * tests/test-mbscasestr1.c (main): Likewise.
33750         * tests/test-mbscasestr2.c (main): Likewise.
33751         * tests/test-mbsstr1.c (main): Likewise.
33752         * tests/test-mbsstr2.c (main): Likewise.
33753         * tests/test-memmem.c (main): Likewise.
33754         * tests/test-strcasestr.c (main): Likewise.
33755         * tests/test-striconv.c (main): Likewise.
33756         * tests/test-striconveh.c (main): Likewise.
33757         * tests/test-striconveha.c (main): Likewise.
33758         * tests/test-strstr.c (main): Likewise.
33759
33760         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33761
33762         bootstrap: sync from coreutils again
33763         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33764
33765 2008-03-01  Jim Meyering  <meyering@redhat.com>
33766
33767         bootstrap: sync from coreutils
33768         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33769         also when the target doesn't exist.
33770
33771 2008-03-01  Eric Blake  <ebb9@byu.net>
33772
33773         Fix bugs in last patch.
33774         * lib/memchr2.c (memchr2): Fix typo.
33775         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33776         extension.
33777         Reported by Bruce Korb.
33778
33779         New module 'memchr2'.
33780         * modules/memchr2: New file.
33781         * modules/memchr2-tests: Likewise.
33782         * lib/memchr2.h: Likewise.
33783         * lib/memchr2.c: Likewise, based on memchr.c.
33784         * tests/test-memchr2.c: New test.
33785         * MODULES.html.sh (String handling): Add memchr2.
33786
33787 2008-02-29  Bruno Haible  <bruno@clisp.org>
33788
33789         * modules/freadseek-tests: New file.
33790         * tests/test-freadseek.sh: New file.
33791         * tests/test-freadseek.c: New file.
33792
33793         New module 'freadseek'.
33794         * modules/freadseek: New file.
33795         * lib/freadseek.h: New file.
33796         * lib/freadseek.c: New file.
33797         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33798
33799 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33800
33801         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33802         wydawca.
33803
33804         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33805         program_invocation_name and program_invocation_short_name are
33806         present.
33807
33808 2008-02-28  Bruno Haible  <bruno@clisp.org>
33809
33810         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33811         * tests/test-freadptr.sh: Also test non-seekable stdin.
33812
33813 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33814
33815         * build-aux/bootstrap (source_base, m4_base)
33816         (doc_base, tests_base): New variables.
33817         (gnulib_tool_options): Do not hardcode base directories, use
33818         the above variables instead.
33819
33820 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33821
33822         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33823
33824 2008-02-28  Bruno Haible  <bruno@clisp.org>
33825
33826         * modules/freadptr-tests: New file.
33827         * tests/test-freadptr.sh: New file.
33828         * tests/test-freadptr.c: New file.
33829
33830         New module 'freadptr'.
33831         * modules/freadptr: New file.
33832         * lib/freadptr.h: New file.
33833         * lib/freadptr.c: New file.
33834         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33835
33836 2008-02-26  Karl Berry  <karl@freefriends.org>
33837
33838         Sync from Libtool:
33839         * libltdl/argz.c (argz_add, argz_count): New functions.
33840         * libltdl/argz.in.h: Declare them.
33841         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33842
33843 2008-02-22  Bruno Haible  <bruno@clisp.org>
33844
33845         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33846         is a pointer type.  Needed for HP-UX 10.
33847         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33848         * doc/posix-functions/gmtime_r.texi: Likewise.
33849         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33850
33851 2008-02-24  Bruno Haible  <bruno@clisp.org>
33852
33853         * modules/environ-tests: New file.
33854         * tests/test-environ.c: New file.
33855
33856         New module 'environ'.
33857         * modules/environ: New file.
33858         * lib/unistd.in.h (environ): New declaration.
33859         * m4/environ.m4: New file.
33860         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33861         after use.
33862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33863         HAVE_DECL_ENVIRON.
33864         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33865         HAVE_DECL_ENVIRON.
33866         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33867         wrong claim that 'environ' is missing on some systems.
33868         * modules/execute (Depends-on): Add environ.
33869         * lib/execute.c (environ): Remove fallback declaration.
33870         * modules/pipe (Depends-on): Add environ.
33871         * lib/pipe.c (environ): Remove fallback declaration.
33872         * modules/setenv (Depends-on): Add environ.
33873         * lib/setenv.c (environ): Remove fallback declaration.
33874         * modules/unsetenv (Depends-on): Add environ.
33875         * lib/unsetenv.c (environ): Remove fallback declaration.
33876         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33877         m4/environ.m4.
33878         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33879         (gl_PREREQ_UNSETENV): Likewise.
33880
33881 2008-02-24  Bruno Haible  <bruno@clisp.org>
33882
33883         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33884
33885 2008-02-20  Bob Proulx  <bob@proulx.com>
33886
33887         Enable use of older two part flavor 'git describe'.
33888         * build-aux/git-version-gen: If using the older two part flavor of
33889         git version then recreate the third part now present in the
33890         newer three part flavor of git describe.
33891
33892 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33893
33894         * lib/fts.c (fts_build): Typo correction to comment.
33895
33896 2008-02-17  Bruno Haible  <bruno@clisp.org>
33897
33898         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33899         generating no-op conflicts.
33900
33901 2008-02-17  Bruno Haible  <bruno@clisp.org>
33902
33903         Speed up by 10%.
33904         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33905         result_entries, rather than an index-based loop.
33906
33907 2008-02-17  Bruno Haible  <bruno@clisp.org>
33908
33909         Speed up by 25%.
33910         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33911         'hashcode_cached'.
33912         (entry_create): New function.
33913         (entry_hashcode): Use the cached hashcode if possible.
33914         (read_changelog_file, try_split_merged_entry): Use entry_create.
33915
33916 2008-02-17  Bruno Haible  <bruno@clisp.org>
33917
33918         Speed up from O(n^2) to O(n) for long ChangeLog files.
33919         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33920         (read_changelog_file): Change implementation of entries_reversed list
33921         to rbtreehash.
33922         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33923
33924 2008-02-17  Bruno Haible  <bruno@clisp.org>
33925
33926         New option --split-merged-entry.
33927         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33928         (find_paragraph_end, try_split_merged_entry): New functions.
33929         (long_options): Add option --split-merged-entry.
33930         (usage): Document option --split-merged-entry.
33931         (main): Implement option --split-merged-entry.
33932         Reported by Eric Blake.
33933
33934 2008-02-17  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/git-merge-changelog.c: Include c-strstr.h.
33937         (main): Support the "git pull --rebase" situation.
33938         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33939         Reported by Eric Blake.
33940
33941 2008-02-16  Eric Blake  <ebb9@byu.net>
33942
33943         Avoid doubling \ in common case of "c-maybe" quoting style.
33944         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33945         eliding outer quotes.
33946         * lib/quotearg.h: Document this.
33947         * tests/test-quotearg.c (result_strings, inputs, results_g)
33948         (flag_results, locale_results): Test it by adding a new string to
33949         each test group.
33950         (compare_strings): Test new string.
33951
33952 2008-02-13  Eric Blake  <ebb9@byu.net>
33953
33954         Avoid trigraph quoting in default output.
33955         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33956         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33957         unless explicitly requested.
33958         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33959
33960 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33961
33962         Don't rely on signed integer overflowing to negative value.
33963         * lib/getugroups.c (getugroups): Include <limits.h>.
33964         Instead, compare against INT_MAX, and increment only if the test passes.
33965
33966 2008-02-13  Jim Meyering  <meyering@redhat.com>
33967         and Eric Blake  <ebb9@byu.net>
33968
33969         Avoid shadowing warning and compile errors on Linux.
33970         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33971         forwarding macros on Linux.
33972         (dcgettext): Define a stub, for Linux.
33973         (results_g, main): Avoid warnings.
33974
33975 2008-02-12  Eric Blake  <ebb9@byu.net>
33976
33977         Silence warning in last patch.
33978         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33979
33980         Quotearg part 4: add tests, fix c-maybe colon quoting.
33981         * lib/quotearg.h: Improve documentation.
33982         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33983         escapes when adding outer quotes.  When quoting trigraphs, use
33984         valid C notation.  When quoting NUL, omit extra characters if next
33985         character is not digit.  Alter prototype.
33986         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33987         callers.
33988         * modules/quotearg-tests: New module.
33989         * tests/test-quotearg.c: New test.
33990
33991 2008-02-07  Eric Blake  <ebb9@byu.net>
33992
33993         Quotearg part 3: add flag to control outer quote elision.
33994         * lib/quotearg.h (c_maybe_quoting_style): New style.
33995         (enum quoting_flags): Better documentation of flags.
33996         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33997         c-maybe style.
33998         (quotearg_buffer_restyled): Handle new flag to elide outer
33999         quotes.
34000
34001         Quotearg part 2: add flag that can control NUL elision.
34002         * lib/quotearg.h (set_quoting_flags): New prototype.
34003         * lib/quotearg.c (struct quoting_options): Add flag field.
34004         (set_quoting_flags): New function.
34005         (quotearg_buffer_restyled): Add flags parameter.
34006         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34007         (quotearg_n_options): Set the flag, since length cannot be
34008         returned.
34009         (quoting_options_from_style): Default flags correctly.
34010
34011         Quotearg part 1: more wrappers, restore quotearg_char state.
34012         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34013         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34014         (quotearg_colon_mem): New wrappers.
34015         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34016         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34017         functions.
34018         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34019         (quotearg_colon_mem): New functions.
34020
34021 2008-02-11  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34024         library in the current directory: it does not work with parallel make.
34025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34026
34027 2008-02-11  Bruno Haible  <bruno@clisp.org>
34028
34029         * .gitattributes: New file.
34030
34031 2008-02-11  Jim Meyering  <meyering@redhat.com>
34032
34033         useless-if-before-free: Fix reversed exit values.
34034         * build-aux/useless-if-before-free: Use correct values
34035         for EXIT_MATCH and EXIT_NO_MATCH.
34036
34037         * build-aux/useless-if-before-free: Close stdout carefully.
34038
34039 2008-02-10  Bruno Haible  <bruno@clisp.org>
34040
34041         New module 'git-merge-changelog'.
34042         * modules/git-merge-changelog: New file.
34043         * lib/git-merge-changelog.c: New file.
34044
34045 2008-02-10  Jim Meyering  <meyering@redhat.com>
34046
34047         useless-if-before-free: New option: --list (-l).
34048
34049         useless-if-before-free: Don't exit immediately upon open failure.
34050         * build-aux/useless-if-before-free: Exit 2 for errors.
34051         Upon failure to open a file, don't exit immediately.
34052         Rather, just warn and continue with any remaining files.
34053
34054 2008-02-10  Bruno Haible  <bruno@clisp.org>
34055
34056         New abstract list operation 'node_set_value'.
34057         * lib/gl_list.h (gl_list_node_set_value): New function.
34058         (struct gl_list_implementation): New field node_set_value.
34059         * lib/gl_list.c (gl_list_node_set_value): New function.
34060         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34061         (gl_array_list_implementation): Update.
34062         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34063         (gl_carray_list_implementation): Update.
34064         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34065         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34066         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34067         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34068         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34069         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34070         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34071         Update.
34072         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34073         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34074         (gl_sublist_list_implementation): Update.
34075
34076 2008-02-10  Bruno Haible  <bruno@clisp.org>
34077
34078         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34079         Needed when ELEMENT is #defined to 'some_type *'.
34080
34081 2008-02-10  Jim Meyering  <meyering@redhat.com>
34082
34083         New script and module: useless-if-before-free
34084         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34085         * build-aux/useless-if-before-free: New file.
34086         * modules/useless-if-before-free: New file.
34087
34088         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34089
34090         xstrtol_error: Fix typo.
34091         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34092         s/exit_failure/exit_status/.
34093
34094 2008-02-09  Jim Meyering  <meyering@redhat.com>
34095
34096         New script and module: gitlog-to-changelog
34097         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34098         * modules/gitlog-to-changelog: New file.
34099         * build-aux/gitlog-to-changelog: New file.
34100
34101 2008-02-08  Jim Meyering  <meyering@redhat.com>
34102
34103         Avoid two "parameter unused" warnings.
34104         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34105         Mark "st" as used.
34106
34107         Use "git COMMAND", not "git-COMMAND".
34108         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34109         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34110         * build-aux/git-version-gen: Use "git status", not "git-status".
34111
34112 2008-02-07  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34115         Avoids a crash on Windows Vista.
34116         Reported by Adam Strzelecki <ono@java.pl> via
34117         Simon Josefsson <simon@josefsson.org>.
34118
34119 2008-02-06  Bruno Haible  <bruno@clisp.org>
34120
34121         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34122         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34123         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34125         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34127         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34128         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34135         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34136         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34137         left-adjust flag.
34138         * tests/test-snprintf-posix.h (test_function): Likewise.
34139         * tests/test-sprintf-posix.h (test_function): Likewise.
34140         * tests/test-vasprintf-posix.c (test_function): Likewise.
34141         * doc/posix-functions/fprintf.texi: Update.
34142         * doc/posix-functions/printf.texi: Update.
34143         * doc/posix-functions/snprintf.texi: Update.
34144         * doc/posix-functions/sprintf.texi: Update.
34145         * doc/posix-functions/vfprintf.texi: Update.
34146         * doc/posix-functions/vprintf.texi: Update.
34147         * doc/posix-functions/vsnprintf.texi: Update.
34148         * doc/posix-functions/vsprintf.texi: Update.
34149         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34150
34151 2008-02-06  Bruno Haible  <bruno@clisp.org>
34152
34153         Fix bug introduced on 2008-01-26.
34154         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34155
34156 2008-02-06  Bruno Haible  <bruno@clisp.org>
34157
34158         Fix bug introduced on 2007-06-10.
34159         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34160         !NEED_PRINTF_FLAG_ZERO.
34161
34162 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34163
34164         getloadavg: use libperfstat on AIX5
34165         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34166
34167 2008-02-03  Bruno Haible  <bruno@clisp.org>
34168
34169         * lib/diffseq.h: Add comments about required #includes.
34170         Reported by Michael Biggs <gnulib@doubleplum.net>.
34171
34172 2008-02-01  Bruno Haible  <bruno@clisp.org>
34173
34174         * users.txt: Add gnuit.
34175
34176 2008-01-31  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/md4.c (set_uint32): Mark as inline.
34179         * lib/md5.c (set_uint32): Likewise.
34180         * lib/sha1.c (set_uint32): Likewise.
34181         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34182         * m4/md5.m4 (gl_MD5): Likewise.
34183         * m4/sha1.m4 (gl_SHA1): Likewise.
34184
34185 2008-01-31  Jim Meyering  <meyering@redhat.com>
34186
34187         Use "sizeof VAR", rather than a literal "4".
34188         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34189         * lib/md4.c (md4_read_ctx): Likewise.
34190         * lib/sha1.c (sha1_read_ctx): Likewise.
34191
34192 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34193
34194         * tests/test-sha1.c: New file, based on test-md5.c.
34195
34196         * modules/crypto/sha1-tests: New file.
34197
34198 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34199
34200         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34201
34202 2008-01-31  Jim Meyering  <meyering@redhat.com>
34203
34204         Prefer "sizeof v" over the equivalent "4".
34205         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34206         * lib/md5.c (set_uint32): Likewise.
34207         * lib/sha1.c (set_uint32): Likewise.
34208
34209 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34210
34211         * lib/sha1.c (set_uint32): Mark function as static.
34212
34213 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34214
34215         md2: clarify comments to say that alignment is not required.
34216         * lib/md2.h: Remove warning about alignment in comment.
34217         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34218         never been required.
34219
34220 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34221
34222         md4: adapt alignment constraint fix from sha1.
34223         * lib/md4.c (set_uint32): New function, from sha1.c
34224         (md4_read_ctx): Use it.
34225         (md4_finish_ctx): Doc fix.
34226         * lib/md4.h: Doc fix.
34227
34228 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34229
34230         md5: adapt alignment constraint fix from sha1.
34231         * lib/md5.c (set_uint32): New function, from sha1.c
34232         (md5_read_ctx): Use it.
34233         (md5_finish_ctx): Doc fix.
34234         * lib/md5.h: Doc fix.
34235
34236 2008-01-30  Peter Palfrader  <weasel@debian.org>
34237
34238         sha1: remove the result buffer alignment constraint
34239         * lib/sha1.c (set_uint32): New function.
34240         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34241         constraint.
34242         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34243         * lib/sha1.h: Likewise.
34244
34245 2008-01-30  Andreas Schwab  <schwab@suse.de>
34246             Bruno Haible  <bruno@clisp.org>
34247
34248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34249         correct definition of LDBL_MIN_EXP.
34250
34251 2008-01-30  Karl Berry  <karl@gnu.org>
34252
34253         * config/srclist-update: try to preserve x bit on updates.
34254         * config/srclistvars.sh: update for karl.
34255
34256 2008-01-29  Jim Meyering  <meyering@redhat.com>
34257
34258         vasnprintf.c: Avoid warning about unused label
34259         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34260         "overflow" label definition and associated code with the
34261         same cpp condition that guards the sole use of that label.
34262
34263 2008-01-26  Bruno Haible  <bruno@clisp.org>
34264
34265         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34266         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34267         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34268         * lib/isnanl-nolibm.h (isnanl): Likewise.
34269         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34270
34271 2008-01-26  Bruno Haible  <bruno@clisp.org>
34272
34273         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34274         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34275
34276 2008-01-26  Bruno Haible  <bruno@clisp.org>
34277
34278         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34279         GCC >= 4.0 built-in.
34280         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34281
34282 2008-01-26  Bruno Haible  <bruno@clisp.org>
34283
34284         Rename isnan, applicable to 'double' only, to isnand.
34285         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34286         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34287         (configure.ac): Update.
34288         (Include): Replace "isnan.h" with "isnand.h".
34289         * m4/isnand.m4: Renamed from m4/isnan.m4.
34290         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34291         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34292         instead of isnan.c.
34293         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34294         instead of HAVE_ISNAN_IN_LIBC.
34295         (isnand): Renamed from isnan.
34296         * lib/isnand.c: New file.
34297         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34298         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34299         (Makefile.am): Update.
34300         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34301         Include isnand.h instead of isnan.h.
34302         (main): Test isnand instead of isnan.
34303         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34304         isnan-nolibm.
34305         * modules/frexp (Depends-on): Likewise.
34306         * modules/frexp-tests (Depends-on): Likewise.
34307         * modules/frexp-nolibm (Depends-on): Likewise.
34308         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34309         * modules/isfinite (Depends-on): Likewise.
34310         * modules/round-tests (Depends-on): Likewise.
34311         * modules/signbit (Depends-on): Likewise.
34312         * modules/signbit-tests (Depends-on): Likewise.
34313         * modules/snprintf-posix (Depends-on): Likewise.
34314         * modules/sprintf-posix (Depends-on): Likewise.
34315         * modules/trunc-tests (Depends-on): Likewise.
34316         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34317         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34318         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34319         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34320         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34321         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34323         * modules/vasnprintf-posix (Depends-on): Likewise.
34324         * modules/vasprintf-posix (Depends-on): Likewise.
34325         * modules/vfprintf-posix (Depends-on): Likewise.
34326         * modules/vsnprintf-posix (Depends-on): Likewise.
34327         * modules/vsprintf-posix (Depends-on): Likewise.
34328         * lib/frexp.c: Include isnand.h instead of isnan.h.
34329         (ISNAN): Set to isnand instead of isnan.
34330         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34331         (gl_isfinited): Use isnand instead of isnan.
34332         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34333         (gl_signbitd): Use isnand instead of isnan.
34334         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34335         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34336         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34337         (main): Use isnand instead of isnan.
34338         * tests/test-round1.c: Include isnand.h.
34339         (main): Use isnand instead of isnan.
34340         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34341         (ISNAN): Set to isnand instead of isnan.
34342         * tests/test-trunc1.c: Include isnand.h.
34343         (main): Use isnand instead of isnan.
34344         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34345         (equal): Use isnand instead of isnan.
34346         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34347         isnand-nolibm.
34348         * NEWS: Mention the change.
34349
34350 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34351             Bruno Haible  <bruno@clisp.org>
34352
34353         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34354         the GCC builtins for signbits are present and set
34355         REPLACE_SIGNBIT_USING_GCC if so.
34356         * lib/math.in.h (signbit): Define using GCC builtins if
34357         REPLACE_SIGNBIT_USING_GCC is set.
34358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34359         REPLACE_SIGNBIT_USING_GCC.
34360         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34361
34362 2008-01-25  Jim Meyering  <meyering@redhat.com>
34363
34364         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34365         * lib/poll.c: Include <config.h>, not "config.h".
34366         * tests/test-getaddrinfo.c: Likewise.
34367
34368 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34369
34370         * modules/sockets-tests: New file.
34371
34372 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34373
34374         * modules/sockets: New module, can be used to call WSA_Startup and
34375         WSA_Cleanup when needed.
34376
34377         * lib/sockets.h, lib/sockets.c: New files.
34378
34379         * m4/sockets.m4: New file.
34380
34381         * tests/test-sockets.c: New file.
34382
34383 2008-01-19  Bruno Haible  <bruno@clisp.org>
34384
34385         * doc/posix-headers: Renamed from doc/headers.
34386         * doc/posix-functions: Renamed from doc/functions.
34387         * doc/gnulib.texi: Update.
34388
34389 2008-01-19  Bruno Haible  <bruno@clisp.org>
34390
34391         * doc/glibc-functions/strcasestr.texi: Include contents of
34392         doc/functions/strcasestr.texi, fixing the list of platforms.
34393         * doc/functions/strcasestr.texi: Remove file.
34394
34395 2008-01-19  Bruno Haible  <bruno@clisp.org>
34396
34397         * doc/glibc-functions/memmem.texi: Include contents of
34398         doc/functions/memmem.texi.
34399         * doc/functions/memmem.texi: Remove file.
34400
34401 2008-01-18  Bruno Haible  <bruno@clisp.org>
34402
34403         * doc/glibc-functions/*.texi: New files.
34404         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34405         to use the new files.
34406
34407 2008-01-17  Bruno Haible  <bruno@clisp.org>
34408
34409         * tests/test-gethostname.c (main): Fix printf statement.
34410
34411 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34412
34413         * modules/gethostname-tests: New file.
34414
34415         * tests/test-gethostname.c: New file.
34416
34417 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34418
34419         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34420         used by the UNAME case.  Reported by Bruno Haible
34421         <bruno@clisp.org>.
34422
34423 2008-01-17  Eric Blake  <ebb9@byu.net>
34424
34425         Convert c-strcasestr to be more efficient.
34426         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34427         (Depends-on): Add c-strcase, remove malloca, strnlen.
34428         * tests/test-c-strcasestr.c (main): Enhance test.
34429         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34430
34431 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34432
34433         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34434         Use it in creating po/Makevars.
34435
34436 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34437
34438         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34439         Applications that requires it should initialize libgcrypt
34440         manually.
34441
34442 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34443
34444         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34445
34446 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34447
34448         Fix problem with getdate on mingw32 reported by Simon Josefsson
34449         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34450         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34451         tzname", when deciding whether to declare tzname.
34452         * lib/strftime.c (tzname): Likewise.
34453
34454 2008-01-15  Bruno Haible  <bruno@clisp.org>
34455
34456         Work around a MacOS X 10.5 bug in frexpl().
34457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34458         * doc/functions/frexpl.texi: Document the bug.
34459         Reported by Elias Pipping <pipping@gentoo.org>.
34460
34461 2008-01-14  Eric Blake  <ebb9@byu.net>
34462
34463         Touch up previous patch.
34464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34465         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34466
34467         Convert strcasestr module to use Two-Way algorithm.
34468         * modules/strcasestr-simple: New module, based on the old
34469         strcasestr, but with Two-Way rather than KMP.
34470         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34471         * lib/string.in.h (rpl_strcasestr): Declare.
34472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34473         performance.
34474         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34475         * modules/string (Makefile.am): Support strcasestr.
34476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34477         * modules/strcasestr-tests (Depends-on): Check for alarm.
34478         * tests/test-strcasestr.c: Augment test.
34479         * lib/str-two-way.h: Clean up stray macro.
34480         * NEWS: Document new module.
34481         * MODULES.html.sh (string handling): Likewise.
34482         * doc/functions/strcasestr.texi: New file.
34483         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34484         here, since it is not a POSIX function.
34485
34486 2008-01-14  Colin Watson  <cjwatson@debian.org>
34487             Bruno Haible  <bruno@clisp.org>
34488
34489         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34490         works fine; if not, set REPLACE_STRSIGNAL.
34491         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34493         REPLACE_STRSIGNAL.
34494         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34495         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34496         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34497
34498 2008-01-14  Bruno Haible  <bruno@clisp.org>
34499
34500         * modules/strsignal (Include): Change to <string.h>.
34501
34502 2008-01-14  Colin Watson  <cjwatson@debian.org>
34503
34504         * modules/argp (Notice): Add a notice recommending to change
34505         XGETTEXT_OPTIONS.
34506         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34507
34508 2008-01-13  Colin Watson  <cjwatson@debian.org>
34509
34510         * modules/strsignal-tests: New file.
34511         * tests/test-strsignal.c: New file.
34512
34513         * lib/strsignal.c: New file, from glibc with modifications.
34514         * lib/siglist.h: New file, from glibc with modifications.
34515         * lib/string.in.h (strsignal): New declaration.
34516         * m4/strsignal.m4: New file.
34517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34518         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34519         * modules/strsignal: New file.
34520         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34521         HAVE_DECL_STRSIGNAL.
34522
34523 2008-01-13  Bruno Haible  <bruno@clisp.org>
34524
34525         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34526         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34528         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34529
34530 2008-01-13  Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34533         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34534         * lib/argp.h (__attribute__): Likewise.
34535         * lib/c-stack.c (__attribute__): Likewise.
34536         * lib/error.h (__attribute__): Likewise.
34537         * lib/fts.c (__attribute__): Likewise.
34538         * lib/openat.h (__attribute__): Likewise.
34539         * lib/stdio.in.h (__attribute__): Likewise.
34540         * lib/string.in.h (__attribute__): Likewise.
34541         * lib/utimens.c (__attribute__): Likewise.
34542         * lib/vasnprintf.h (__attribute__): Likewise.
34543         * lib/xalloc.h (__attribute__): Likewise.
34544         * lib/xprintf.h (__attribute__): Likewise.
34545         * lib/xstrtol.h (__attribute__): Likewise.
34546         * lib/xvasprintf.h (__attribute__): Likewise.
34547
34548 2008-01-12  Bruno Haible  <bruno@clisp.org>
34549
34550         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34551         * doc/glibc-headers/a.out.texi: New file.
34552         * doc/glibc-headers/aliases.texi: New file.
34553         * doc/glibc-headers/alloca.texi: New file.
34554         * doc/glibc-headers/ar.texi: New file.
34555         * doc/glibc-headers/argp.texi: New file.
34556         * doc/glibc-headers/argz.texi: New file.
34557         * doc/glibc-headers/byteswap.texi: New file.
34558         * doc/glibc-headers/crypt.texi: New file.
34559         * doc/glibc-headers/endian.texi: New file.
34560         * doc/glibc-headers/envz.texi: New file.
34561         * doc/glibc-headers/err.texi: New file.
34562         * doc/glibc-headers/error.texi: New file.
34563         * doc/glibc-headers/execinfo.texi: New file.
34564         * doc/glibc-headers/fpu_control.texi: New file.
34565         * doc/glibc-headers/fstab.texi: New file.
34566         * doc/glibc-headers/fts.texi: New file.
34567         * doc/glibc-headers/getopt.texi: New file.
34568         * doc/glibc-headers/ieee754.texi: New file.
34569         * doc/glibc-headers/ifaddrs.texi: New file.
34570         * doc/glibc-headers/libintl.texi: New file.
34571         * doc/glibc-headers/mcheck.texi: New file.
34572         * doc/glibc-headers/mntent.texi: New file.
34573         * doc/glibc-headers/obstack.texi: New file.
34574         * doc/glibc-headers/paths.texi: New file.
34575         * doc/glibc-headers/printf.texi: New file.
34576         * doc/glibc-headers/pty.texi: New file.
34577         * doc/glibc-headers/resolv.texi: New file.
34578         * doc/glibc-headers/shadow.texi: New file.
34579         * doc/glibc-headers/sysexits.texi: New file.
34580         * doc/glibc-headers/ttyent.texi: New file.
34581
34582 2008-01-12  Jim Meyering  <meyering@redhat.com>
34583
34584         announce-gen: emit Gnulib's git-based version string.
34585         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34586         New option --gnulib-version=V, where V is expected to be
34587         the output of running git describe in the gnulib directory.
34588         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34589         not useful, and plan to stop publishing an xdelta file with each
34590         coreutils release.
34591
34592         * build-aux/announce-gen: Also check for lzma-compressed files.
34593
34594 2008-01-11  Bruno Haible  <bruno@clisp.org>
34595
34596         * tests/test-memmem.c (main): Increase maximum allowed time.
34597         * tests/test-strstr.c (main): Likewise.
34598
34599 2008-01-11  Bruno Haible  <bruno@clisp.org>
34600
34601         * doc/functions/memmem.texi: Add more precisions about platforms.
34602         * doc/functions/strstr.texi: Likewise.
34603
34604 2008-01-10  Eric Blake  <ebb9@byu.net>
34605
34606         * m4/strstr.m4: Delete cruft from copy-n-paste.
34607         Reported by Bruno Haible.
34608
34609 2008-01-10  Bruno Haible  <bruno@clisp.org>
34610
34611         Make c-strstr rely on strstr.
34612         * lib/c-strstr.c: Don't include str-kmp.h.
34613         (c_strstr): Define in terms of strstr.
34614         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34615         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34616
34617 2008-01-10  Bruno Haible  <bruno@clisp.org>
34618
34619         * doc/gnulib.texi (String Functions in C Locale): New section.
34620         * doc/c-ctype.texi: New file.
34621         * doc/c-strcase.texi: New file.
34622         * doc/c-strcaseeq.texi: New file.
34623         * doc/c-strcasestr.texi: New file.
34624         * doc/c-strstr.texi: New file.
34625         * doc/c-strtod.texi: New file.
34626         * doc/c-strtold.texi: New file.
34627
34628 2008-01-10  Eric Blake  <ebb9@byu.net>
34629
34630         * lib/relocatable.h: Fix a comment.
34631
34632 2008-01-10  Eric Blake  <ebb9@byu.net>
34633
34634         Share two-way algorithm.
34635         * lib/str-two-way.h: New file, merged from...
34636         * lib/memmem.c: ...here...
34637         * lib/strstr.c: ...and here.
34638         * modules/memmem (Files): Use it.
34639         * modules/strstr (Files): Likewise.
34640
34641         Avoid quadratic strstr implementations.
34642         * lib/strstr.c: New file.
34643         * m4/strstr.m4: Likewise.
34644         * modules/strstr: Likewise.
34645         * modules/strstr-tests: Likewise.
34646         * tests/test-strstr.c: Likewise.
34647         * lib/string.in.h (rpl_strstr): Declare.
34648         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34650         * modules/string (Makefile.am): Likewise.
34651         * MODULES.html.sh (string handling): Mention new module.
34652         * doc/functions/strstr.texi (strstr): Document the bug.
34653
34654 2008-01-10  Bruno Haible  <bruno@clisp.org>
34655
34656         * lib/relocatable.h (relocate): State whether result is freshly
34657         allocated or not.
34658         * lib/relocatable.c (relocate): Return a freshly allocated string
34659         instead of a pointer to a privately held string.
34660         Reported by Sylvain Beucler <beuc@gnu.org>.
34661
34662 2008-01-10  Colin Watson  <cjwatson@debian.org>
34663
34664         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34665         s/S_ISNLK/S_ISLNK/.
34666
34667 2008-01-09  Bruno Haible  <bruno@clisp.org>
34668
34669         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34670         and other files.
34671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34672         if it's only a guess.
34673         * modules/memmem: Simplify by depending on memmem-simple.
34674
34675 2008-01-09  Bruno Haible  <bruno@clisp.org>
34676
34677         Work around OpenBSD 4.0 tdelete() bug.
34678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34679         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34680         macros and don't redefine the enum values.
34681         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34682         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34683         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34684
34685 2008-01-09  Bruno Haible  <bruno@clisp.org>
34686
34687         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34688         (main): Don't perform the tests if setlocale did not install a UTF-8
34689         locale. Needed on OpenBSD 4.0.
34690         * modules/wcwidth-tests (Depends-on): Add localcharset.
34691
34692 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34693
34694         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34695         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34696         * NEWS: announce this.
34697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34698
34699 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34700         and Eric Blake  <ebb9@byu.net>
34701
34702         Add memmem-simple module.
34703         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34704         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34705         * modules/memmem-simple: New file.
34706         * modules/memmem (Description): Tweak.
34707         * MODULES.html.sh (string handling): Mention new module.
34708         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34709         addressed by memmem-simple.
34710         * NEWS: Document the difference.
34711
34712 2008-01-09  Eric Blake  <ebb9@byu.net>
34713
34714         Give gcc some memmem optimization hints.
34715         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34716         (strcasestr): Declare as pure.
34717         * modules/memmem (Maintainer): Claim my implementation.
34718
34719 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34720
34721         Support AIX 6.1 and higher.
34722         * build-aux/config.libpath: Likewise.
34723         * build-aux/config.rpath: Likewise.
34724
34725 2008-01-08  Jim Meyering  <meyering@redhat.com>
34726             Bruno Haible  <bruno@clisp.org>
34727
34728         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34729         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34730         Reported by Peter Fales in
34731         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34732
34733 2008-01-08  Bruno Haible  <bruno@clisp.org>
34734
34735         * modules/unictype/category-of (Depends-on): Add
34736         unictype/category-none.
34737         * modules/unictype/category-and-tests (Depends-on): Add
34738         unictype/category-{L,N,Lu,Nd}.
34739         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34740         * modules/unictype/category-or-tests (Depends-on): Add
34741         unictype/category-{L,N}.
34742         * modules/unictype/category-name-tests (Depends-on): Add
34743         unictype/category-{Z,Nl}.
34744         Reported by Simon Josefsson.
34745
34746 2008-01-08  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34749         convention better.
34750         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34751         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34752         Reported by Peter Miller <millerp@canb.auug.org.au>.
34753
34754 2008-01-08  Eric Blake  <ebb9@byu.net>
34755
34756         Rewrite memmem to guarantee linear complexity without malloc.
34757         * lib/memmem.c (memmem): Use Two-Way rather than
34758         Knuth-Morris-Pratt, to allow O(1) space usage.
34759         (critical_factorization, two_way_short_needle)
34760         (two_way_long_needle): New functions.
34761         (knuth_morris_pratt): Delete.
34762         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34763         Add stdint.
34764         * tests/test-memmem.c (main): Add tests for periodic needle and
34765         sublinear performance.
34766         * doc/functions/memmem.texi (memmem): Document other deficiencies
34767         in cygwin and older glibc.
34768
34769 2008-01-08  Bruno Haible  <bruno@clisp.org>
34770
34771         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34772         augmentation.
34773
34774 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34775
34776         Add a configure time option: --disable-acl.
34777         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34778         AC_ARG_ENABLE(acl).
34779
34780 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34781
34782         * tests/test-localename.c: Don't include obsolete "setenv.h".
34783
34784         * modules/localename-tests (Depends-on): Need unsetenv.
34785
34786 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34787
34788         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34789
34790 2008-01-06  Colin Watson  <cjwatson@debian.org>
34791
34792         * users.txt: Add man-db.
34793
34794 2008-01-07  Bruno Haible  <bruno@clisp.org>
34795
34796         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34797         previous section name.
34798
34799 2008-01-07  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/progname.c (set_program_name): Don't strip off a leading
34802         "lt-" prefix outside a .libs directory.
34803         Suggested by Paul Eggert.
34804
34805 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34806             Bruno Haible  <bruno@clisp.org>
34807
34808         Improve memory cleanup in 'relocatable' module.
34809         * lib/relocatable.h (compute_curr_prefix): Change return type to
34810         'char *'.
34811         * lib/relocatable.c (compute_curr_prefix): Change return type to
34812         'char *'. Free curr_installdir after use.
34813         (relocate): Free curr_prefix_better after use.
34814         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34815
34816 2008-01-01  Bruno Haible  <bruno@clisp.org>
34817
34818         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34819         failure on older glibc systems.
34820         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34821
34822 2008-01-05  Eric Blake  <ebb9@byu.net>
34823
34824         Avoid quadratic system memmem.
34825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34826         Reported by Ralf Wildenhues.
34827
34828         Fix memmem test for mingw.
34829         * modules/memmem-tests (configure.ac): Check for alarm.
34830         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34831         it.
34832         * doc/functions/memmem.texi: New file.
34833         * doc/gnulib.texi (Function Substitutes): Add memmem.
34834         Reported by Bruno Haible.
34835
34836 2008-01-04  Bruno Haible  <bruno@clisp.org>
34837
34838         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34839         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34840         gl_HEADER_STRING_H_DEFAULTS.
34841
34842 2008-01-04  Eric Blake  <ebb9@byu.net>
34843
34844         Shorten duration of memmem test.
34845         * tests/test-memmem.c (main): Use alarm to declare failure if test
34846         is taking too long.
34847         Reported by Ralf Wildenhues.
34848
34849 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34850
34851         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34852         string, needed by strerror.
34853
34854 2008-01-03  Colin Watson  <cjwatson@debian.org>
34855             Bruno Haible  <bruno@clisp.org>
34856
34857         * doc/gnulib-tool.texi (Localization): New section.
34858
34859 2008-01-02  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34862         variables to 'unsigned char *' type.
34863         Reported by Paul Eggert.
34864
34865 2008-01-02  Jim Meyering  <jim@meyering.net>
34866
34867         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34868
34869 2007-12-31  Jim Meyering  <jim@meyering.net>
34870
34871         Avoid use of private FTS type name.
34872         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34873
34874 2007-12-30  Karl Berry  <karl@gnu.org>
34875
34876         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34877         work around defect in Texinfo and/or the standalone Info browser.
34878
34879 2007-12-30  Bruno Haible  <bruno@clisp.org>
34880
34881         Unify 5 copies of the KMP code.
34882         * lib/str-kmp.h: New file.
34883         * lib/c-strcasestr.c: Include str-kmp.h.
34884         (knuth_morris_pratt): Remove function.
34885         (c_strcasestr): Update.
34886         * lib/c-strstr.c: Include str-kmp.h.
34887         (knuth_morris_pratt): Remove function.
34888         (c_strcasestr): Update.
34889         * lib/mbscasestr.c: Include str-kmp.h.
34890         (knuth_morris_pratt_unibyte): Remove function.
34891         * lib/mbsstr.c: Include str-kmp.h.
34892         (knuth_morris_pratt_unibyte): Remove function.
34893         * lib/strcasestr.c: Include str-kmp.h.
34894         (knuth_morris_pratt): Remove function.
34895         (strcasestr): Update.
34896         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34897         * modules/c-strstr (Files): Likewise.
34898         * modules/mbscasestr (Files): Likewise.
34899         * modules/mbsstr (Files): Likewise.
34900         * modules/strcasestr (Files): Likewise.
34901         Suggested by Paul Eggert.
34902
34903 2007-12-30  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34906         defined.
34907
34908 2007-12-30  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/xmalloca.h: Include xalloc.h.
34911         (xnmalloca): New macro.
34912
34913 2007-12-30  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/malloca.h (nmalloca): New macro.
34916         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34917         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34918         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34919         knuth_morris_pratt_multibyte): Likewise.
34920         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34921         knuth_morris_pratt_multibyte): Likewise.
34922         * lib/memmem.c (knuth_morris_pratt): Likewise.
34923         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34924
34925 2007-12-25  Bruno Haible  <bruno@clisp.org>
34926
34927         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34928         * lib/glob.c: Don't include openat.h.
34929         (link_exists2_p): Add back the code that deals with the
34930         !GLOB_ALTDIRFUNC case.
34931         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34932         let it do the filename concatenation.
34933         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34934         * modules/glob (Depends-on): Remove openat.
34935
34936 2007-12-31  Bruno Haible  <bruno@clisp.org>
34937
34938         * modules/dirfd (License): Change to LGPLv2+.
34939         Approved by Jim Meyering.
34940
34941 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34942
34943         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34944         when multiplying M by sizeof (size_t).
34945
34946 2007-12-10  Martin Lambers  <marlam@marlam.de>
34947
34948         Override getpagesize on mingw.
34949         * lib/getpagesize.c: New file.
34950         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34951         * modules/getpagesize (Files): Add lib/getpagesize.c.
34952         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34954         REPLACE_GETPAGESIZE.
34955         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34956
34957 2007-12-25  Bruno Haible  <bruno@clisp.org>
34958
34959         * modules/localcharset (Notice): New field.
34960         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34961         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34962
34963 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34964             Bruno Haible  <bruno@clisp.org>
34965
34966         Avoid using the syntax symbol() in formatted documentation.
34967         * MODULES.html.sh (func_module): When replacing symbol() with a
34968         hyperlink, remove the parentheses. Show an error if some remain.
34969         Recognize and render the '...' syntax.
34970         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34971         Rework. Add paragraph about GCC's inlining.
34972         * doc/alloca.texi: Likewise.
34973         * doc/error.texi: Remove parentheses from symbol reference.
34974         * doc/gnulib-intro.texi: Likewise.
34975         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34976         * modules/fnmatch (Description): Reword to say "the ... function".
34977         * modules/full-read (Description): Likewise.
34978         * modules/full-write (Description): Likewise.
34979         * modules/safe-read (Description): Likewise.
34980         * modules/safe-write (Description): Likewise.
34981         * modules/strchrnul (Description): Likewise.
34982         * modules/trim (Description): Likewise.
34983         * modules/error (Description): Remove parentheses from symbol
34984         references.
34985         * modules/verror (Description): Likewise.
34986         Reported by Karl Berry.
34987
34988 2007-12-25  Bruno Haible  <bruno@clisp.org>
34989
34990         Fixup after 2007-10-16 commit.
34991         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34992
34993 2007-12-24  Bruno Haible  <bruno@clisp.org>
34994
34995         Make --enable-relocatable work with DESTDIR.
34996         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34997         to compute installdir from destprog.
34998         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34999         also set the RELOC_DESTDIR variable.
35000         Reported by Левашев Иван <octagram@bluebottle.com>.
35001
35002 2007-12-24  Bruno Haible  <bruno@clisp.org>
35003
35004         Fix link error due to xalloc_die().
35005         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35006         of xreadlink.
35007         * lib/relocwrapper.c: Update comments.
35008         * build-aux/install-reloc: Remove xreadlink.c from file list.
35009         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35010         xreadlink.c.
35011         Reported by Левашев Иван <octagram@bluebottle.com>.
35012
35013 2007-12-24  Bruno Haible  <bruno@clisp.org>
35014
35015         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35016         * lib/setenv.h: Remove file.
35017         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35018         lib/setenv.h.
35019         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35020         (Depends-on): Add stdlib.
35021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35022         gl_FUNC_UNSETENV.
35023         (Include): Replace setenv.h with <stdlib.h>.
35024         * modules/unsetenv: New file.
35025         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35026         * lib/unsetenv.c: Include <stdlib.h> first.
35027         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35028         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35029         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35030         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35031         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35032         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35034         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35035         * doc/functions/unsetenv.texi: Update.
35036         * modules/xsetenv (Depends-on): Add unsetenv.
35037         * modules/getdate (Depends-on): Likewise.
35038         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35039         * lib/xsetenv.c: Don't include setenv.h.
35040         * lib/getdate.y: Likewise.
35041         * lib/relocwrapper.c: Likewise.
35042         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35043         (Depends-on): Add stdlib.
35044         * NEWS: Mention the changes.
35045         Reported by Левашев Иван <octagram@bluebottle.com>.
35046
35047 2007-12-23  Bruno Haible  <bruno@clisp.org>
35048
35049         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35050         indentation.
35051
35052 2007-12-23  Bruno Haible  <bruno@clisp.org>
35053
35054         * lib/c-strcasestr.c: Add more comments.
35055         * lib/c-strstr.c: Likewise.
35056         * lib/mbscasestr.c: Likewise.
35057         * lib/mbsstr.c: Likewise.
35058         * lib/strcasestr.c: Likewise.
35059         * lib/memmem.c: Likewise.
35060
35061 2007-12-23  Bruno Haible  <bruno@clisp.org>
35062
35063         * tests/test-memmem.c: Include <string.h> first.
35064
35065 2007-12-22  Bruno Haible  <bruno@clisp.org>
35066
35067         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35068         the contents of $testsbase.
35069         Reported by Ralf Wildenhues.
35070
35071 2007-12-22  Bruno Haible  <bruno@clisp.org>
35072
35073         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35074         two variables local_ldadd_before, local_ldadd_last.
35075
35076 2007-12-20  Eric Blake  <ebb9@byu.net>
35077
35078         Work around circular library issue when cross-compiling.
35079         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35080         that progname.o does not need to pull in rpl_memcmp.
35081
35082 2007-12-19  Eric Blake  <ebb9@byu.net>
35083
35084         Fix memmem to avoid O(n^2) worst-case complexity.
35085         * lib/memmem.c (knuth_morris_pratt): New function.
35086         (memmem): Use it if first few naive iterations fail.
35087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35088         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35089         * modules/memchr (License): Likewise.
35090         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35091         malloca.
35092         * tests/test-memmem.c: Rewrite, borrowing ideas from
35093         test-mbsstr1.c; the old version wouldn't even compile!
35094         * modules/memmem-tests: New file.
35095         * lib/string.in.h (rpl_memmem): Add declaration.
35096         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35098         REPLACE_MEMMEM.
35099
35100 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35101
35102         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35103         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35104         before any system include files, and undef after them all.  This
35105         should fix a problem on VMS reported by John E. Malmberg in
35106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35107
35108 2007-12-17  Eric Blake  <ebb9@byu.net>
35109
35110         Revert addition of verify, for BSD/OS.
35111         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35112         can't handle large files, for the sake of obsolete platforms.
35113         * modules/fseeko (Depends-on): Remove verify.
35114         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35115         * doc/functions/ftello.texi (ftello): Likewise.
35116         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35117         Reported by Larry Jones.
35118
35119 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35120
35121         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35122         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35123
35124 2007-12-17  Jim Meyering  <meyering@redhat.com>
35125
35126         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35127         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35128         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35129         * modules/getcwd (Depends-on): Add openat.
35130         Reported by Petr Salinger.
35131
35132 2007-12-17  Bruno Haible  <bruno@clisp.org>
35133
35134         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35135         avoid a segmentation fault of the configure test on x86_64 systems.
35136
35137 2007-12-15  Jim Meyering  <meyering@redhat.com>
35138
35139         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35140
35141 2007-12-13  Eric Blake  <ebb9@byu.net>
35142
35143         Another fseek test.
35144         * tests/test-fseek.c (main): Also test ungetc handling.
35145         * tests/test-fseeko.c (main): Likewise.
35146         * modules/fseeko (Depends-on): Add verify.
35147         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35148         large.
35149         Reported by Larry Jones.
35150
35151         Fix fseeko on mingw.
35152         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35153         seek.
35154
35155         Beef up fseek tests.
35156         * tests/test-fseek.c (main): Also test eof handling.
35157         * tests/test-fseeko.c (main): Likewise.
35158         Reported by Larry Jones.
35159
35160 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35161
35162         Fix fseeko on BSD-based platforms.
35163         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35164         successful seek.
35165
35166 2007-12-12  Eric Blake  <ebb9@byu.net>
35167
35168         Allow circular dependency of separate libtests.a
35169         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35170         when use_libtests.
35171
35172 2007-12-11  Eric Blake  <ebb9@byu.net>
35173
35174         Fix bug with -0.0L in previous patch.
35175         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35176         * tests/test-isnan.c (main): Also test on zeroes.
35177         * tests/test-isnanf.c (main): Likewise.
35178         * tests/test-isnanl.h (main): Likewise.
35179
35180         Detect pseudo-denormals on x86 even when cross-compiling.
35181         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35182         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35183         invalid bit patterns that happen to satisfy ==.
35184
35185         Avoid link failures with separate libtests.a.
35186         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35187         last, to satisfy circular dependencies.
35188
35189 2007-12-11  Eric Blake  <ebb9@byu.net>
35190         and Bruno Haible  <bruno@clisp.org>
35191
35192         Fix OpenBSD 4.0 <float.h> handling of long double.
35193         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35194         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35195         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35196
35197 2007-12-11  Jim Meyering  <meyering@redhat.com>
35198
35199         * users.txt: Add libvirt.
35200
35201         Support versions of autoconf prior to 2.59c.
35202         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35203         if it is not already defined.
35204
35205 2007-12-09  Bruno Haible  <bruno@clisp.org>
35206
35207         Let 'gnulib-tool --import' collect sources needed for the tests in
35208         tests/ rather than in lib/.
35209         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35210         argument. If true, add rules to generate libtests.a, and put libtests.a
35211         into $(LDADD). Consider source files in subdirectories and set
35212         uses_subdirs.
35213         (func_emit_initmacro_start, func_emit_initmacro_end,
35214         func_emit_initmacro_done): Pass all arguments explicitly.
35215         (func_import): Determine two module lists main_modules,
35216         testsrelated_modules. Determine use_libtests. Determine two variables
35217         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35218         instead of just sed_transform_lib_file. Determine two variables
35219         main_files and testsrelated_files. Compute 'files' as the union of
35220         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35221         func_add_or_update. In the generated gnulib-comp.m4, collect the
35222         object files for tests/ in different variables than those for lib/.
35223         Substitute LIBTESTS_LIBDEPS.
35224         (func_create_testdir): Combine the uses_subdirs results from
35225         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35226
35227 2007-12-09  Bruno Haible  <bruno@clisp.org>
35228
35229         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35230         the build-aux directory.
35231
35232 2007-12-09  Bruno Haible  <bruno@clisp.org>
35233
35234         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35235         introduced on 2006-09-09.
35236
35237 2007-12-07  Jim Meyering  <meyering@redhat.com>
35238
35239         Let these macros work also with autoconf-2.59.
35240         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35241         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35242         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35243
35244 2007-12-06  Jim Meyering  <meyering@redhat.com>
35245
35246         Avoid a configure-time syntax error in gl_FUNC_ACL.
35247         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35248         function in each branch, before testing the cache variable.
35249
35250 2007-12-04  Eric Blake  <ebb9@byu.net>
35251
35252         Make scripts executable.
35253         * build-aux/config.guess: Add execute permissions.
35254         * build-aux/config.sub: Likewise.
35255         * build-aux/gendocs.sh: Likewise.
35256
35257         Fix frexp on mingw.
35258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35259         cross-compiling.
35260         * doc/functions/frexp.texi (frexp): Document the bug.
35261
35262         Make cygwin fseeko check more reliable.
35263         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35264         version numbers, rather than unrelated feature check.
35265         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35266         * doc/functions/ftello.texi (ftello): Likewise.
35267         Reported by Bruno Haible.
35268
35269         * m4/strerror.m4: Bump version number.
35270
35271 2007-12-03  Bruno Haible  <bruno@clisp.org>
35272
35273         * doc/functions/mprotect.texi: Mention the mingw problem.
35274
35275 2007-12-03  Eric Blake  <ebb9@byu.net>
35276
35277         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35278         REPLACE_STRERROR is initialized before this macro.
35279
35280 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35281
35282         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35283         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35284         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35285         put -lsec in even for programs other than 'ls'.  This fixes a problem
35286         for gettext reported by Bruno Haible in
35287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35288         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35289         Add support for Solaris 10.  This isn't efficient, but should get the
35290         job done for now.
35291
35292 2007-12-03  James Youngman  <jay@gnu.org>
35293
35294         * doc/regexprops-generic.texi: change "an close-group" to "a
35295         close-group" and "illegal" to "not allowed".
35296
35297 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35298
35299         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35300         pr_byname.h. Needed for the rare case when the maintainer has done
35301         "make maintainer-clean" in the source directory and then attempts a
35302         build outside the source directory.
35303         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35304         scripts_byname.h.
35305
35306 2007-12-02  Martin Lambers <marlam@marlam.de>
35307             Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/getpagesize.h: Remove file.
35310         * lib/unistd.in.h: Include declaration of getpagesize here.
35311         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35312         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35313         HAVE_SYS_PARAM_H.
35314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35315         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35316         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35317         (Depends-on): Add unistd.
35318         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35319         (Include): Use <unistd.h> instead of getpagesize.h.
35320         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35321         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35322         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35323         gl_GETPAGESIZE invocation, already handled by module dependency.
35324         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35325
35326 2007-12-02  Bruno Haible  <bruno@clisp.org>
35327
35328         * modules/strings-tests: New file.
35329         * tests/test-strings.c: New file.
35330
35331         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35332         * lib/strings.in.h: New file.
35333         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35334         * m4/strings_h.m4: New file.
35335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35336         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35337         * modules/strings: New file.
35338         * modules/string (Makefile.am): Update.
35339         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35340         Reported by Karl Berry.
35341
35342 2007-12-01  Eric Blake  <ebb9@byu.net>
35343
35344         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35345         accomodate fix in cygwin 1.5.25.
35346
35347 2007-12-01  Jim Meyering  <meyering@redhat.com>
35348
35349         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35350         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35351         that would inhibit utf8-optimization of a regexp containing line-
35352         or buffer-anchors, e.g., `^', `$'.
35353
35354 2007-11-30  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35357         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35358         glthread_recursive_lock_init.
35359         * lib/lock.c (glthread_recursive_lock_init)
35360         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35361         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35362
35363 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35364
35365         New function qset_acl, like set_acl but with syscall semantics.
35366         * lib/acl.h (qset_acl): New decl.
35367         * lib/acl.c (qset_acl): New function.
35368         (set_acl): Use new function.  Use more-consistent diagnostics.
35369
35370 2007-11-28  Jim Meyering  <meyering@redhat.com>
35371
35372         * modules/physmem (License): Change from GPL to LGPLv2+.
35373
35374 2007-11-26  Bruno Haible  <bruno@clisp.org>
35375
35376         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35377         'long double' type has excess precision.
35378         Reported by Jim Meyering in
35379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35380
35381 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35382
35383         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35384         Sync from <http://gnu.org/licenses>.
35385         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35386         with license text from same location.
35387         * doc/maintain.texi, doc/standards.texi:  Sync from
35388         <http://savannah.gnu.org/projects/gnustandards>.
35389
35390 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
35391         and Jim Meyering  <meyering@redhat.com>
35392
35393         Adjust getdate' grammar to accept a slightly more regular language.
35394         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35395         Before, the former was rejected.
35396         * lib/getdate.y (digits_to_date_time): New function, factored
35397         out of ...
35398         (number): ...here.  Just call digits_to_date_time.
35399         (hybrid): New non-terminal to handle an <unsigned number,
35400         signed relative offset> sequence consistently.
35401
35402 2007-11-18  Jim Meyering  <meyering@redhat.com>
35403
35404         Pull my changes from coreutils:
35405         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35406         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35407         use of $gnulib_tool_option_extras, so that it's separated from the
35408         preceding argument.
35409
35410         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35411         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35412         parent destination directories before copying a file into place.
35413
35414 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35415
35416         bootstrap: work also with 4-argument variant of AC_INIT
35417         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35418
35419 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35420
35421         Port test-getaddrinfo to Solaris.
35422         Problem reported by Bruno Haible in
35423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35424         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35425         explanation of setting 'hints'.
35426         Don't reject an implementation merely because it returns EAI_SERVICE.
35427         (EAI_SERVICE): Define to 0 if not defined.
35428
35429 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35430
35431         The license of gnu-make and posix-shell is now "GPLed build tool".
35432         * modules/gnu-make (License): Likewise.
35433         * modules/posix-shell (License): Likewise.
35434
35435         New module posix-shell, for determining a POSIX shell
35436         or perhaps something that is close enough to a POSIX shell.
35437         * m4/posix-shell.m4: New file.
35438         * modules/posix-shell: New file.
35439
35440         * MODULES.html.sh: Mention new module.
35441
35442         New module gnu-make, for determining whether we're using GNU Make.
35443         * m4/gnu-make.m4: New file.
35444         * modules/gnu-make: New file.
35445         * MODULES.html.sh: Mention new module.
35446
35447 2007-11-14  Jim Meyering  <meyering@redhat.com>
35448
35449         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35450         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35451         use this macro to create a function _definition_.
35452         Remove useless "#undef ARGMATCH_DIE".
35453
35454 2007-11-14  Bruno Haible  <bruno@clisp.org>
35455
35456         * lib/config.charset: Update for OpenBSD 4.1.
35457         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35458
35459 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35460
35461         Document 64-bit #if problems in stdint.texi.
35462         * doc/headers/stdint.texi (stdint.h): Mention problems with
35463         64-bit-#if, and how to work around them.
35464
35465         Don't insist on 'long long int' support in the preprocessor.  It
35466         breaks too many things.  For example, PRIdMAX still uses a 'long
35467         long int' format with the latest Sun compiler, even though
35468         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35469         preprocessor problem.  This causes the latest coreutils to dump
35470         core on Solaris 10 sparc with the Sun C compiler.
35471         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35472         the troublesome expressions at configure-time, not at #if-time.
35473         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35474         preprocessor.
35475         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35476         compile-time C checks, done at 'configure'-time.
35477         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35478         * modules/inttypes (Makefile): Substitute the new symbols that
35479         gl_INTTYPES_H now generates.
35480         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35481
35482 2007-11-12  Bruno Haible  <bruno@clisp.org>
35483
35484         Tests for Unicode character classification functions.
35485
35486         * modules/unictype/bidicategory-byname-tests: New file.
35487         * modules/unictype/bidicategory-name-tests: New file.
35488         * modules/unictype/bidicategory-of-tests: New file.
35489         * modules/unictype/bidicategory-test-tests: New file.
35490         * modules/unictype/block-list-tests: New file.
35491         * modules/unictype/block-of-tests: New file.
35492         * modules/unictype/block-test-tests: New file.
35493         * modules/unictype/category-C-tests: New file.
35494         * modules/unictype/category-Cc-tests: New file.
35495         * modules/unictype/category-Cf-tests: New file.
35496         * modules/unictype/category-Cn-tests: New file.
35497         * modules/unictype/category-Co-tests: New file.
35498         * modules/unictype/category-Cs-tests: New file.
35499         * modules/unictype/category-L-tests: New file.
35500         * modules/unictype/category-Ll-tests: New file.
35501         * modules/unictype/category-Lm-tests: New file.
35502         * modules/unictype/category-Lo-tests: New file.
35503         * modules/unictype/category-Lt-tests: New file.
35504         * modules/unictype/category-Lu-tests: New file.
35505         * modules/unictype/category-M-tests: New file.
35506         * modules/unictype/category-Mc-tests: New file.
35507         * modules/unictype/category-Me-tests: New file.
35508         * modules/unictype/category-Mn-tests: New file.
35509         * modules/unictype/category-N-tests: New file.
35510         * modules/unictype/category-Nd-tests: New file.
35511         * modules/unictype/category-Nl-tests: New file.
35512         * modules/unictype/category-No-tests: New file.
35513         * modules/unictype/category-P-tests: New file.
35514         * modules/unictype/category-Pc-tests: New file.
35515         * modules/unictype/category-Pd-tests: New file.
35516         * modules/unictype/category-Pe-tests: New file.
35517         * modules/unictype/category-Pf-tests: New file.
35518         * modules/unictype/category-Pi-tests: New file.
35519         * modules/unictype/category-Po-tests: New file.
35520         * modules/unictype/category-Ps-tests: New file.
35521         * modules/unictype/category-S-tests: New file.
35522         * modules/unictype/category-Sc-tests: New file.
35523         * modules/unictype/category-Sk-tests: New file.
35524         * modules/unictype/category-Sm-tests: New file.
35525         * modules/unictype/category-So-tests: New file.
35526         * modules/unictype/category-Z-tests: New file.
35527         * modules/unictype/category-Zl-tests: New file.
35528         * modules/unictype/category-Zp-tests: New file.
35529         * modules/unictype/category-Zs-tests: New file.
35530         * modules/unictype/category-and-not-tests: New file.
35531         * modules/unictype/category-and-tests: New file.
35532         * modules/unictype/category-byname-tests: New file.
35533         * modules/unictype/category-name-tests: New file.
35534         * modules/unictype/category-none-tests: New file.
35535         * modules/unictype/category-of-tests: New file.
35536         * modules/unictype/category-or-tests: New file.
35537         * modules/unictype/category-test-withtable-tests: New file.
35538         * modules/unictype/combining-class-tests: New file.
35539         * modules/unictype/ctype-alnum-tests: New file.
35540         * modules/unictype/ctype-alpha-tests: New file.
35541         * modules/unictype/ctype-blank-tests: New file.
35542         * modules/unictype/ctype-cntrl-tests: New file.
35543         * modules/unictype/ctype-digit-tests: New file.
35544         * modules/unictype/ctype-graph-tests: New file.
35545         * modules/unictype/ctype-lower-tests: New file.
35546         * modules/unictype/ctype-print-tests: New file.
35547         * modules/unictype/ctype-punct-tests: New file.
35548         * modules/unictype/ctype-space-tests: New file.
35549         * modules/unictype/ctype-upper-tests: New file.
35550         * modules/unictype/ctype-xdigit-tests: New file.
35551         * modules/unictype/decimal-digit-tests: New file.
35552         * modules/unictype/digit-tests: New file.
35553         * modules/unictype/mirror-tests: New file.
35554         * modules/unictype/numeric-tests: New file.
35555         * modules/unictype/property-alphabetic-tests: New file.
35556         * modules/unictype/property-ascii-hex-digit-tests: New file.
35557         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35558         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35559         * modules/unictype/property-bidi-block-separator-tests: New file.
35560         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35561         * modules/unictype/property-bidi-common-separator-tests: New file.
35562         * modules/unictype/property-bidi-control-tests: New file.
35563         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35564         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35565         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35566         * modules/unictype/property-bidi-european-digit-tests: New file.
35567         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35568         * modules/unictype/property-bidi-left-to-right-tests: New file.
35569         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35570         * modules/unictype/property-bidi-other-neutral-tests: New file.
35571         * modules/unictype/property-bidi-pdf-tests: New file.
35572         * modules/unictype/property-bidi-segment-separator-tests: New file.
35573         * modules/unictype/property-bidi-whitespace-tests: New file.
35574         * modules/unictype/property-byname-tests: New file.
35575         * modules/unictype/property-combining-tests: New file.
35576         * modules/unictype/property-composite-tests: New file.
35577         * modules/unictype/property-currency-symbol-tests: New file.
35578         * modules/unictype/property-dash-tests: New file.
35579         * modules/unictype/property-decimal-digit-tests: New file.
35580         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35581         * modules/unictype/property-deprecated-tests: New file.
35582         * modules/unictype/property-diacritic-tests: New file.
35583         * modules/unictype/property-extender-tests: New file.
35584         * modules/unictype/property-format-control-tests: New file.
35585         * modules/unictype/property-grapheme-base-tests: New file.
35586         * modules/unictype/property-grapheme-extend-tests: New file.
35587         * modules/unictype/property-grapheme-link-tests: New file.
35588         * modules/unictype/property-hex-digit-tests: New file.
35589         * modules/unictype/property-hyphen-tests: New file.
35590         * modules/unictype/property-id-continue-tests: New file.
35591         * modules/unictype/property-id-start-tests: New file.
35592         * modules/unictype/property-ideographic-tests: New file.
35593         * modules/unictype/property-ids-binary-operator-tests: New file.
35594         * modules/unictype/property-ids-trinary-operator-tests: New file.
35595         * modules/unictype/property-ignorable-control-tests: New file.
35596         * modules/unictype/property-iso-control-tests: New file.
35597         * modules/unictype/property-join-control-tests: New file.
35598         * modules/unictype/property-left-of-pair-tests: New file.
35599         * modules/unictype/property-line-separator-tests: New file.
35600         * modules/unictype/property-logical-order-exception-tests: New file.
35601         * modules/unictype/property-lowercase-tests: New file.
35602         * modules/unictype/property-math-tests: New file.
35603         * modules/unictype/property-non-break-tests: New file.
35604         * modules/unictype/property-not-a-character-tests: New file.
35605         * modules/unictype/property-numeric-tests: New file.
35606         * modules/unictype/property-other-alphabetic-tests: New file.
35607         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35608         * modules/unictype/property-other-grapheme-extend-tests: New file.
35609         * modules/unictype/property-other-id-continue-tests: New file.
35610         * modules/unictype/property-other-id-start-tests: New file.
35611         * modules/unictype/property-other-lowercase-tests: New file.
35612         * modules/unictype/property-other-math-tests: New file.
35613         * modules/unictype/property-other-uppercase-tests: New file.
35614         * modules/unictype/property-paired-punctuation-tests: New file.
35615         * modules/unictype/property-paragraph-separator-tests: New file.
35616         * modules/unictype/property-pattern-syntax-tests: New file.
35617         * modules/unictype/property-pattern-white-space-tests: New file.
35618         * modules/unictype/property-private-use-tests: New file.
35619         * modules/unictype/property-punctuation-tests: New file.
35620         * modules/unictype/property-quotation-mark-tests: New file.
35621         * modules/unictype/property-radical-tests: New file.
35622         * modules/unictype/property-sentence-terminal-tests: New file.
35623         * modules/unictype/property-soft-dotted-tests: New file.
35624         * modules/unictype/property-space-tests: New file.
35625         * modules/unictype/property-terminal-punctuation-tests: New file.
35626         * modules/unictype/property-test-tests: New file.
35627         * modules/unictype/property-titlecase-tests: New file.
35628         * modules/unictype/property-unassigned-code-value-tests: New file.
35629         * modules/unictype/property-unified-ideograph-tests: New file.
35630         * modules/unictype/property-uppercase-tests: New file.
35631         * modules/unictype/property-variation-selector-tests: New file.
35632         * modules/unictype/property-white-space-tests: New file.
35633         * modules/unictype/property-xid-continue-tests: New file.
35634         * modules/unictype/property-xid-start-tests: New file.
35635         * modules/unictype/property-zero-width-tests: New file.
35636         * modules/unictype/scripts-tests: New file.
35637         * modules/unictype/syntax-c-ident-tests: New file.
35638         * modules/unictype/syntax-c-whitespace-tests: New file.
35639         * modules/unictype/syntax-java-ident-tests: New file.
35640         * modules/unictype/syntax-java-whitespace-tests: New file.
35641         * tests/unictype/test-bidi_byname.c: New file.
35642         * tests/unictype/test-bidi_name.c: New file.
35643         * tests/unictype/test-bidi_of.c: New file.
35644         * tests/unictype/test-bidi_test.c: New file.
35645         * tests/unictype/test-block_list.c: New file.
35646         * tests/unictype/test-block_of.c: New file.
35647         * tests/unictype/test-block_test.c: New file.
35648         * tests/unictype/test-categ_and.c: New file.
35649         * tests/unictype/test-categ_and_not.c: New file.
35650         * tests/unictype/test-categ_byname.c: New file.
35651         * tests/unictype/test-categ_name.c: New file.
35652         * tests/unictype/test-categ_none.c: New file.
35653         * tests/unictype/test-categ_of.c: New file.
35654         * tests/unictype/test-categ_or.c: New file.
35655         * tests/unictype/test-categ_test_withtable.c: New file.
35656         * tests/unictype/test-combining.c: New file.
35657         * tests/unictype/test-decdigit.c: New file.
35658         * tests/unictype/test-digit.c: New file.
35659         * tests/unictype/test-mirror.c: New file.
35660         * tests/unictype/test-numeric.c: New file.
35661         * tests/unictype/test-pr_byname.c: New file.
35662         * tests/unictype/test-pr_test.c: New file.
35663         * tests/unictype/test-predicate-part1.h: New file.
35664         * tests/unictype/test-predicate-part2.h: New file.
35665         * tests/unictype/test-scripts.c: New file.
35666         * tests/unictype/test-sy_c_ident.c: New file.
35667         * tests/unictype/test-sy_java_ident.c: New file.
35668
35669         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35670         for Unicode 5.0.0.
35671         * tests/unictype/test-categ_Cc.c: Likewise.
35672         * tests/unictype/test-categ_Cf.c: Likewise.
35673         * tests/unictype/test-categ_Cn.c: Likewise.
35674         * tests/unictype/test-categ_Co.c: Likewise.
35675         * tests/unictype/test-categ_Cs.c: Likewise.
35676         * tests/unictype/test-categ_L.c: Likewise.
35677         * tests/unictype/test-categ_Ll.c: Likewise.
35678         * tests/unictype/test-categ_Lm.c: Likewise.
35679         * tests/unictype/test-categ_Lo.c: Likewise.
35680         * tests/unictype/test-categ_Lt.c: Likewise.
35681         * tests/unictype/test-categ_Lu.c: Likewise.
35682         * tests/unictype/test-categ_M.c: Likewise.
35683         * tests/unictype/test-categ_Mc.c: Likewise.
35684         * tests/unictype/test-categ_Me.c: Likewise.
35685         * tests/unictype/test-categ_Mn.c: Likewise.
35686         * tests/unictype/test-categ_N.c: Likewise.
35687         * tests/unictype/test-categ_Nd.c: Likewise.
35688         * tests/unictype/test-categ_Nl.c: Likewise.
35689         * tests/unictype/test-categ_No.c: Likewise.
35690         * tests/unictype/test-categ_P.c: Likewise.
35691         * tests/unictype/test-categ_Pc.c: Likewise.
35692         * tests/unictype/test-categ_Pd.c: Likewise.
35693         * tests/unictype/test-categ_Pe.c: Likewise.
35694         * tests/unictype/test-categ_Pf.c: Likewise.
35695         * tests/unictype/test-categ_Pi.c: Likewise.
35696         * tests/unictype/test-categ_Po.c: Likewise.
35697         * tests/unictype/test-categ_Ps.c: Likewise.
35698         * tests/unictype/test-categ_S.c: Likewise.
35699         * tests/unictype/test-categ_Sc.c: Likewise.
35700         * tests/unictype/test-categ_Sk.c: Likewise.
35701         * tests/unictype/test-categ_Sm.c: Likewise.
35702         * tests/unictype/test-categ_So.c: Likewise.
35703         * tests/unictype/test-categ_Z.c: Likewise.
35704         * tests/unictype/test-categ_Zl.c: Likewise.
35705         * tests/unictype/test-categ_Zp.c: Likewise.
35706         * tests/unictype/test-categ_Zs.c: Likewise.
35707         * tests/unictype/test-ctype_alnum.c: Likewise.
35708         * tests/unictype/test-ctype_alpha.c: Likewise.
35709         * tests/unictype/test-ctype_blank.c: Likewise.
35710         * tests/unictype/test-ctype_cntrl.c: Likewise.
35711         * tests/unictype/test-ctype_digit.c: Likewise.
35712         * tests/unictype/test-ctype_graph.c: Likewise.
35713         * tests/unictype/test-ctype_lower.c: Likewise.
35714         * tests/unictype/test-ctype_print.c: Likewise.
35715         * tests/unictype/test-ctype_punct.c: Likewise.
35716         * tests/unictype/test-ctype_space.c: Likewise.
35717         * tests/unictype/test-ctype_upper.c: Likewise.
35718         * tests/unictype/test-ctype_xdigit.c: Likewise.
35719         * tests/unictype/test-decdigit.h: Likewise.
35720         * tests/unictype/test-digit.h: Likewise.
35721         * tests/unictype/test-numeric.h: Likewise.
35722         * tests/unictype/test-pr_alphabetic.c: Likewise.
35723         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35724         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35725         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35726         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35727         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35728         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35729         * tests/unictype/test-pr_bidi_control.c: Likewise.
35730         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35731         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35732         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35733         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35734         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35735         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35736         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35737         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35738         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35739         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35740         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35741         * tests/unictype/test-pr_combining.c: Likewise.
35742         * tests/unictype/test-pr_composite.c: Likewise.
35743         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35744         * tests/unictype/test-pr_dash.c: Likewise.
35745         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35746         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35747         * tests/unictype/test-pr_deprecated.c: Likewise.
35748         * tests/unictype/test-pr_diacritic.c: Likewise.
35749         * tests/unictype/test-pr_extender.c: Likewise.
35750         * tests/unictype/test-pr_format_control.c: Likewise.
35751         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35752         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35753         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35754         * tests/unictype/test-pr_hex_digit.c: Likewise.
35755         * tests/unictype/test-pr_hyphen.c: Likewise.
35756         * tests/unictype/test-pr_id_continue.c: Likewise.
35757         * tests/unictype/test-pr_id_start.c: Likewise.
35758         * tests/unictype/test-pr_ideographic.c: Likewise.
35759         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35760         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35761         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35762         * tests/unictype/test-pr_iso_control.c: Likewise.
35763         * tests/unictype/test-pr_join_control.c: Likewise.
35764         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35765         * tests/unictype/test-pr_line_separator.c: Likewise.
35766         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35767         * tests/unictype/test-pr_lowercase.c: Likewise.
35768         * tests/unictype/test-pr_math.c: Likewise.
35769         * tests/unictype/test-pr_non_break.c: Likewise.
35770         * tests/unictype/test-pr_not_a_character.c: Likewise.
35771         * tests/unictype/test-pr_numeric.c: Likewise.
35772         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35773         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35774         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35775         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35776         * tests/unictype/test-pr_other_id_start.c: Likewise.
35777         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35778         * tests/unictype/test-pr_other_math.c: Likewise.
35779         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35780         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35781         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35782         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35783         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35784         * tests/unictype/test-pr_private_use.c: Likewise.
35785         * tests/unictype/test-pr_punctuation.c: Likewise.
35786         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35787         * tests/unictype/test-pr_radical.c: Likewise.
35788         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35789         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35790         * tests/unictype/test-pr_space.c: Likewise.
35791         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35792         * tests/unictype/test-pr_titlecase.c: Likewise.
35793         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35794         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35795         * tests/unictype/test-pr_uppercase.c: Likewise.
35796         * tests/unictype/test-pr_variation_selector.c: Likewise.
35797         * tests/unictype/test-pr_white_space.c: Likewise.
35798         * tests/unictype/test-pr_xid_continue.c: Likewise.
35799         * tests/unictype/test-pr_xid_start.c: Likewise.
35800         * tests/unictype/test-pr_zero_width.c: Likewise.
35801         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35802         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35803
35804 2007-11-12  Bruno Haible  <bruno@clisp.org>
35805
35806         Unicode character classification functions.
35807         * lib/unictype.h: New file.
35808         * modules/unictype/base: New file.
35809         * modules/unictype/category-L: New file.
35810         * modules/unictype/category-Lu: New file.
35811         * modules/unictype/category-Ll: New file.
35812         * modules/unictype/category-Lt: New file.
35813         * modules/unictype/category-Lm: New file.
35814         * modules/unictype/category-Lo: New file.
35815         * modules/unictype/category-M: New file.
35816         * modules/unictype/category-Mn: New file.
35817         * modules/unictype/category-Mc: New file.
35818         * modules/unictype/category-Me: New file.
35819         * modules/unictype/category-N: New file.
35820         * modules/unictype/category-Nd: New file.
35821         * modules/unictype/category-Nl: New file.
35822         * modules/unictype/category-No: New file.
35823         * modules/unictype/category-P: New file.
35824         * modules/unictype/category-Pc: New file.
35825         * modules/unictype/category-Pd: New file.
35826         * modules/unictype/category-Ps: New file.
35827         * modules/unictype/category-Pe: New file.
35828         * modules/unictype/category-Pi: New file.
35829         * modules/unictype/category-Pf: New file.
35830         * modules/unictype/category-Po: New file.
35831         * modules/unictype/category-S: New file.
35832         * modules/unictype/category-Sm: New file.
35833         * modules/unictype/category-Sc: New file.
35834         * modules/unictype/category-Sk: New file.
35835         * modules/unictype/category-So: New file.
35836         * modules/unictype/category-Z: New file.
35837         * modules/unictype/category-Zs: New file.
35838         * modules/unictype/category-Zl: New file.
35839         * modules/unictype/category-Zp: New file.
35840         * modules/unictype/category-C: New file.
35841         * modules/unictype/category-Cc: New file.
35842         * modules/unictype/category-Cf: New file.
35843         * modules/unictype/category-Cs: New file.
35844         * modules/unictype/category-Co: New file.
35845         * modules/unictype/category-Cn: New file.
35846         * modules/unictype/category-or: New file.
35847         * modules/unictype/category-of: New file.
35848         * modules/unictype/category-test: New file.
35849         * modules/unictype/category-test-withtable: New file.
35850         * modules/unictype/category-byname: New file.
35851         * modules/unictype/category-none: New file.
35852         * modules/unictype/category-and: New file.
35853         * modules/unictype/category-and-not: New file.
35854         * modules/unictype/category-name: New file.
35855         * modules/unictype/combining-class: New file.
35856         * modules/unictype/category-all: New file.
35857         * modules/unictype/bidicategory-all: New file.
35858         * modules/unictype/bidicategory-byname: New file.
35859         * modules/unictype/bidicategory-name: New file.
35860         * modules/unictype/bidicategory-of: New file.
35861         * modules/unictype/bidicategory-test: New file.
35862         * modules/unictype/decimal-digit: New file.
35863         * modules/unictype/digit: New file.
35864         * modules/unictype/numeric: New file.
35865         * modules/unictype/mirror: New file.
35866         * modules/unictype/property-white-space: New file.
35867         * modules/unictype/property-alphabetic: New file.
35868         * modules/unictype/property-other-alphabetic: New file.
35869         * modules/unictype/property-not-a-character: New file.
35870         * modules/unictype/property-default-ignorable-code-point: New file.
35871         * modules/unictype/property-other-default-ignorable-code-point: New
35872         file.
35873         * modules/unictype/property-deprecated: New file.
35874         * modules/unictype/property-logical-order-exception: New file.
35875         * modules/unictype/property-variation-selector: New file.
35876         * modules/unictype/property-private-use: New file.
35877         * modules/unictype/property-unassigned-code-value: New file.
35878         * modules/unictype/property-uppercase: New file.
35879         * modules/unictype/property-other-uppercase: New file.
35880         * modules/unictype/property-lowercase: New file.
35881         * modules/unictype/property-other-lowercase: New file.
35882         * modules/unictype/property-titlecase: New file.
35883         * modules/unictype/property-soft-dotted: New file.
35884         * modules/unictype/property-id-start: New file.
35885         * modules/unictype/property-other-id-start: New file.
35886         * modules/unictype/property-id-continue: New file.
35887         * modules/unictype/property-other-id-continue: New file.
35888         * modules/unictype/property-xid-start: New file.
35889         * modules/unictype/property-xid-continue: New file.
35890         * modules/unictype/property-pattern-white-space: New file.
35891         * modules/unictype/property-pattern-syntax: New file.
35892         * modules/unictype/property-join-control: New file.
35893         * modules/unictype/property-grapheme-base: New file.
35894         * modules/unictype/property-grapheme-extend: New file.
35895         * modules/unictype/property-other-grapheme-extend: New file.
35896         * modules/unictype/property-grapheme-link: New file.
35897         * modules/unictype/property-bidi-control: New file.
35898         * modules/unictype/property-bidi-left-to-right: New file.
35899         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35900         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35901         * modules/unictype/property-bidi-european-digit: New file.
35902         * modules/unictype/property-bidi-eur-num-separator: New file.
35903         * modules/unictype/property-bidi-eur-num-terminator: New file.
35904         * modules/unictype/property-bidi-arabic-digit: New file.
35905         * modules/unictype/property-bidi-common-separator: New file.
35906         * modules/unictype/property-bidi-block-separator: New file.
35907         * modules/unictype/property-bidi-segment-separator: New file.
35908         * modules/unictype/property-bidi-whitespace: New file.
35909         * modules/unictype/property-bidi-non-spacing-mark: New file.
35910         * modules/unictype/property-bidi-boundary-neutral: New file.
35911         * modules/unictype/property-bidi-pdf: New file.
35912         * modules/unictype/property-bidi-embedding-or-override: New file.
35913         * modules/unictype/property-bidi-other-neutral: New file.
35914         * modules/unictype/property-hex-digit: New file.
35915         * modules/unictype/property-ascii-hex-digit: New file.
35916         * modules/unictype/property-ideographic: New file.
35917         * modules/unictype/property-unified-ideograph: New file.
35918         * modules/unictype/property-radical: New file.
35919         * modules/unictype/property-ids-binary-operator: New file.
35920         * modules/unictype/property-ids-trinary-operator: New file.
35921         * modules/unictype/property-zero-width: New file.
35922         * modules/unictype/property-space: New file.
35923         * modules/unictype/property-non-break: New file.
35924         * modules/unictype/property-iso-control: New file.
35925         * modules/unictype/property-format-control: New file.
35926         * modules/unictype/property-dash: New file.
35927         * modules/unictype/property-hyphen: New file.
35928         * modules/unictype/property-punctuation: New file.
35929         * modules/unictype/property-line-separator: New file.
35930         * modules/unictype/property-paragraph-separator: New file.
35931         * modules/unictype/property-quotation-mark: New file.
35932         * modules/unictype/property-sentence-terminal: New file.
35933         * modules/unictype/property-terminal-punctuation: New file.
35934         * modules/unictype/property-currency-symbol: New file.
35935         * modules/unictype/property-math: New file.
35936         * modules/unictype/property-other-math: New file.
35937         * modules/unictype/property-paired-punctuation: New file.
35938         * modules/unictype/property-left-of-pair: New file.
35939         * modules/unictype/property-combining: New file.
35940         * modules/unictype/property-composite: New file.
35941         * modules/unictype/property-decimal-digit: New file.
35942         * modules/unictype/property-numeric: New file.
35943         * modules/unictype/property-diacritic: New file.
35944         * modules/unictype/property-extender: New file.
35945         * modules/unictype/property-ignorable-control: New file.
35946         * modules/unictype/property-test: New file.
35947         * modules/unictype/property-byname: New file.
35948         * modules/unictype/property-all: New file.
35949         * modules/unictype/scripts: New file.
35950         * modules/unictype/scripts-all: New file.
35951         * modules/unictype/block-of: New file.
35952         * modules/unictype/block-test: New file.
35953         * modules/unictype/block-list: New file.
35954         * modules/unictype/block-all: New file.
35955         * modules/unictype/syntax-c-whitespace: New file.
35956         * modules/unictype/syntax-java-whitespace: New file.
35957         * modules/unictype/syntax-c-ident: New file.
35958         * modules/unictype/syntax-java-ident: New file.
35959         * modules/unictype/ctype-alnum: New file.
35960         * modules/unictype/ctype-alpha: New file.
35961         * modules/unictype/ctype-cntrl: New file.
35962         * modules/unictype/ctype-digit: New file.
35963         * modules/unictype/ctype-graph: New file.
35964         * modules/unictype/ctype-lower: New file.
35965         * modules/unictype/ctype-print: New file.
35966         * modules/unictype/ctype-punct: New file.
35967         * modules/unictype/ctype-space: New file.
35968         * modules/unictype/ctype-upper: New file.
35969         * modules/unictype/ctype-xdigit: New file.
35970         * modules/unictype/ctype-blank: New file.
35971         * lib/unictype/bidi_byname.c: New file.
35972         * lib/unictype/bidi_name.c: New file.
35973         * lib/unictype/bidi_of.c: New file.
35974         * lib/unictype/bidi_test.c: New file.
35975         * lib/unictype/bitmap.h: New file.
35976         * lib/unictype/block_test.c: New file.
35977         * lib/unictype/blocks.c: New file.
35978         * lib/unictype/categ_C.c: New file.
35979         * lib/unictype/categ_Cc.c: New file.
35980         * lib/unictype/categ_Cf.c: New file.
35981         * lib/unictype/categ_Cn.c: New file.
35982         * lib/unictype/categ_Co.c: New file.
35983         * lib/unictype/categ_Cs.c: New file.
35984         * lib/unictype/categ_L.c: New file.
35985         * lib/unictype/categ_Ll.c: New file.
35986         * lib/unictype/categ_Lm.c: New file.
35987         * lib/unictype/categ_Lo.c: New file.
35988         * lib/unictype/categ_Lt.c: New file.
35989         * lib/unictype/categ_Lu.c: New file.
35990         * lib/unictype/categ_M.c: New file.
35991         * lib/unictype/categ_Mc.c: New file.
35992         * lib/unictype/categ_Me.c: New file.
35993         * lib/unictype/categ_Mn.c: New file.
35994         * lib/unictype/categ_N.c: New file.
35995         * lib/unictype/categ_Nd.c: New file.
35996         * lib/unictype/categ_Nl.c: New file.
35997         * lib/unictype/categ_No.c: New file.
35998         * lib/unictype/categ_P.c: New file.
35999         * lib/unictype/categ_Pc.c: New file.
36000         * lib/unictype/categ_Pd.c: New file.
36001         * lib/unictype/categ_Pe.c: New file.
36002         * lib/unictype/categ_Pf.c: New file.
36003         * lib/unictype/categ_Pi.c: New file.
36004         * lib/unictype/categ_Po.c: New file.
36005         * lib/unictype/categ_Ps.c: New file.
36006         * lib/unictype/categ_S.c: New file.
36007         * lib/unictype/categ_Sc.c: New file.
36008         * lib/unictype/categ_Sk.c: New file.
36009         * lib/unictype/categ_Sm.c: New file.
36010         * lib/unictype/categ_So.c: New file.
36011         * lib/unictype/categ_Z.c: New file.
36012         * lib/unictype/categ_Zl.c: New file.
36013         * lib/unictype/categ_Zp.c: New file.
36014         * lib/unictype/categ_Zs.c: New file.
36015         * lib/unictype/categ_and.c: New file.
36016         * lib/unictype/categ_and_not.c: New file.
36017         * lib/unictype/categ_byname.c: New file.
36018         * lib/unictype/categ_name.c: New file.
36019         * lib/unictype/categ_none.c: New file.
36020         * lib/unictype/categ_of.c: New file.
36021         * lib/unictype/categ_or.c: New file.
36022         * lib/unictype/categ_test.c: New file.
36023         * lib/unictype/combining.c: New file.
36024         * lib/unictype/ctype_alnum.c: New file.
36025         * lib/unictype/ctype_alpha.c: New file.
36026         * lib/unictype/ctype_blank.c: New file.
36027         * lib/unictype/ctype_cntrl.c: New file.
36028         * lib/unictype/ctype_digit.c: New file.
36029         * lib/unictype/ctype_graph.c: New file.
36030         * lib/unictype/ctype_lower.c: New file.
36031         * lib/unictype/ctype_print.c: New file.
36032         * lib/unictype/ctype_punct.c: New file.
36033         * lib/unictype/ctype_space.c: New file.
36034         * lib/unictype/ctype_upper.c: New file.
36035         * lib/unictype/ctype_xdigit.c: New file.
36036         * lib/unictype/decdigit.c: New file.
36037         * lib/unictype/digit.c: New file.
36038         * lib/unictype/identsyntaxmap.h: New file.
36039         * lib/unictype/mirror.c: New file.
36040         * lib/unictype/numeric.c: New file.
36041         * lib/unictype/pr_alphabetic.c: New file.
36042         * lib/unictype/pr_ascii_hex_digit.c: New file.
36043         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36044         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36045         * lib/unictype/pr_bidi_block_separator.c: New file.
36046         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36047         * lib/unictype/pr_bidi_common_separator.c: New file.
36048         * lib/unictype/pr_bidi_control.c: New file.
36049         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36050         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36051         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36052         * lib/unictype/pr_bidi_european_digit.c: New file.
36053         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36054         * lib/unictype/pr_bidi_left_to_right.c: New file.
36055         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36056         * lib/unictype/pr_bidi_other_neutral.c: New file.
36057         * lib/unictype/pr_bidi_pdf.c: New file.
36058         * lib/unictype/pr_bidi_segment_separator.c: New file.
36059         * lib/unictype/pr_bidi_whitespace.c: New file.
36060         * lib/unictype/pr_byname.c: New file.
36061         * lib/unictype/pr_byname.gperf: New file.
36062         * lib/unictype/pr_combining.c: New file.
36063         * lib/unictype/pr_composite.c: New file.
36064         * lib/unictype/pr_currency_symbol.c: New file.
36065         * lib/unictype/pr_dash.c: New file.
36066         * lib/unictype/pr_decimal_digit.c: New file.
36067         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36068         * lib/unictype/pr_deprecated.c: New file.
36069         * lib/unictype/pr_diacritic.c: New file.
36070         * lib/unictype/pr_extender.c: New file.
36071         * lib/unictype/pr_format_control.c: New file.
36072         * lib/unictype/pr_grapheme_base.c: New file.
36073         * lib/unictype/pr_grapheme_extend.c: New file.
36074         * lib/unictype/pr_grapheme_link.c: New file.
36075         * lib/unictype/pr_hex_digit.c: New file.
36076         * lib/unictype/pr_hyphen.c: New file.
36077         * lib/unictype/pr_id_continue.c: New file.
36078         * lib/unictype/pr_id_start.c: New file.
36079         * lib/unictype/pr_ideographic.c: New file.
36080         * lib/unictype/pr_ids_binary_operator.c: New file.
36081         * lib/unictype/pr_ids_trinary_operator.c: New file.
36082         * lib/unictype/pr_ignorable_control.c: New file.
36083         * lib/unictype/pr_iso_control.c: New file.
36084         * lib/unictype/pr_join_control.c: New file.
36085         * lib/unictype/pr_left_of_pair.c: New file.
36086         * lib/unictype/pr_line_separator.c: New file.
36087         * lib/unictype/pr_logical_order_exception.c: New file.
36088         * lib/unictype/pr_lowercase.c: New file.
36089         * lib/unictype/pr_math.c: New file.
36090         * lib/unictype/pr_non_break.c: New file.
36091         * lib/unictype/pr_not_a_character.c: New file.
36092         * lib/unictype/pr_numeric.c: New file.
36093         * lib/unictype/pr_other_alphabetic.c: New file.
36094         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36095         * lib/unictype/pr_other_grapheme_extend.c: New file.
36096         * lib/unictype/pr_other_id_continue.c: New file.
36097         * lib/unictype/pr_other_id_start.c: New file.
36098         * lib/unictype/pr_other_lowercase.c: New file.
36099         * lib/unictype/pr_other_math.c: New file.
36100         * lib/unictype/pr_other_uppercase.c: New file.
36101         * lib/unictype/pr_paired_punctuation.c: New file.
36102         * lib/unictype/pr_paragraph_separator.c: New file.
36103         * lib/unictype/pr_pattern_syntax.c: New file.
36104         * lib/unictype/pr_pattern_white_space.c: New file.
36105         * lib/unictype/pr_private_use.c: New file.
36106         * lib/unictype/pr_punctuation.c: New file.
36107         * lib/unictype/pr_quotation_mark.c: New file.
36108         * lib/unictype/pr_radical.c: New file.
36109         * lib/unictype/pr_sentence_terminal.c: New file.
36110         * lib/unictype/pr_soft_dotted.c: New file.
36111         * lib/unictype/pr_space.c: New file.
36112         * lib/unictype/pr_terminal_punctuation.c: New file.
36113         * lib/unictype/pr_test.c: New file.
36114         * lib/unictype/pr_titlecase.c: New file.
36115         * lib/unictype/pr_unassigned_code_value.c: New file.
36116         * lib/unictype/pr_unified_ideograph.c: New file.
36117         * lib/unictype/pr_uppercase.c: New file.
36118         * lib/unictype/pr_variation_selector.c: New file.
36119         * lib/unictype/pr_white_space.c: New file.
36120         * lib/unictype/pr_xid_continue.c: New file.
36121         * lib/unictype/pr_xid_start.c: New file.
36122         * lib/unictype/pr_zero_width.c: New file.
36123         * lib/unictype/scripts.c: New file.
36124         * lib/unictype/sy_c_ident.c: New file.
36125         * lib/unictype/sy_c_whitespace.c: New file.
36126         * lib/unictype/sy_java_ident.c: New file.
36127         * lib/unictype/sy_java_whitespace.c: New file.
36128
36129         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36130         Unicode 5.0.0.
36131         * lib/unictype/blocks.h: Likewise.
36132         * lib/unictype/categ_C.h: Likewise.
36133         * lib/unictype/categ_Cc.h: Likewise.
36134         * lib/unictype/categ_Cf.h: Likewise.
36135         * lib/unictype/categ_Cn.h: Likewise.
36136         * lib/unictype/categ_Co.h: Likewise.
36137         * lib/unictype/categ_Cs.h: Likewise.
36138         * lib/unictype/categ_L.h: Likewise.
36139         * lib/unictype/categ_Ll.h: Likewise.
36140         * lib/unictype/categ_Lm.h: Likewise.
36141         * lib/unictype/categ_Lo.h: Likewise.
36142         * lib/unictype/categ_Lt.h: Likewise.
36143         * lib/unictype/categ_Lu.h: Likewise.
36144         * lib/unictype/categ_M.h: Likewise.
36145         * lib/unictype/categ_Mc.h: Likewise.
36146         * lib/unictype/categ_Me.h: Likewise.
36147         * lib/unictype/categ_Mn.h: Likewise.
36148         * lib/unictype/categ_N.h: Likewise.
36149         * lib/unictype/categ_Nd.h: Likewise.
36150         * lib/unictype/categ_Nl.h: Likewise.
36151         * lib/unictype/categ_No.h: Likewise.
36152         * lib/unictype/categ_P.h: Likewise.
36153         * lib/unictype/categ_Pc.h: Likewise.
36154         * lib/unictype/categ_Pd.h: Likewise.
36155         * lib/unictype/categ_Pe.h: Likewise.
36156         * lib/unictype/categ_Pf.h: Likewise.
36157         * lib/unictype/categ_Pi.h: Likewise.
36158         * lib/unictype/categ_Po.h: Likewise.
36159         * lib/unictype/categ_Ps.h: Likewise.
36160         * lib/unictype/categ_S.h: Likewise.
36161         * lib/unictype/categ_Sc.h: Likewise.
36162         * lib/unictype/categ_Sk.h: Likewise.
36163         * lib/unictype/categ_Sm.h: Likewise.
36164         * lib/unictype/categ_So.h: Likewise.
36165         * lib/unictype/categ_Z.h: Likewise.
36166         * lib/unictype/categ_Zl.h: Likewise.
36167         * lib/unictype/categ_Zp.h: Likewise.
36168         * lib/unictype/categ_Zs.h: Likewise.
36169         * lib/unictype/categ_of.h: Likewise.
36170         * lib/unictype/combining.h: Likewise.
36171         * lib/unictype/ctype_alnum.h: Likewise.
36172         * lib/unictype/ctype_alpha.h: Likewise.
36173         * lib/unictype/ctype_blank.h: Likewise.
36174         * lib/unictype/ctype_cntrl.h: Likewise.
36175         * lib/unictype/ctype_digit.h: Likewise.
36176         * lib/unictype/ctype_graph.h: Likewise.
36177         * lib/unictype/ctype_lower.h: Likewise.
36178         * lib/unictype/ctype_print.h: Likewise.
36179         * lib/unictype/ctype_punct.h: Likewise.
36180         * lib/unictype/ctype_space.h: Likewise.
36181         * lib/unictype/ctype_upper.h: Likewise.
36182         * lib/unictype/ctype_xdigit.h: Likewise.
36183         * lib/unictype/decdigit.h: Likewise.
36184         * lib/unictype/digit.h: Likewise.
36185         * lib/unictype/mirror.h: Likewise.
36186         * lib/unictype/numeric.h: Likewise.
36187         * lib/unictype/pr_alphabetic.h: Likewise.
36188         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36189         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36190         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36191         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36192         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36193         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36194         * lib/unictype/pr_bidi_control.h: Likewise.
36195         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36196         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36197         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36198         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36199         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36200         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36201         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36202         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36203         * lib/unictype/pr_bidi_pdf.h: Likewise.
36204         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36205         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36206         * lib/unictype/pr_combining.h: Likewise.
36207         * lib/unictype/pr_composite.h: Likewise.
36208         * lib/unictype/pr_currency_symbol.h: Likewise.
36209         * lib/unictype/pr_dash.h: Likewise.
36210         * lib/unictype/pr_decimal_digit.h: Likewise.
36211         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36212         * lib/unictype/pr_deprecated.h: Likewise.
36213         * lib/unictype/pr_diacritic.h: Likewise.
36214         * lib/unictype/pr_extender.h: Likewise.
36215         * lib/unictype/pr_format_control.h: Likewise.
36216         * lib/unictype/pr_grapheme_base.h: Likewise.
36217         * lib/unictype/pr_grapheme_extend.h: Likewise.
36218         * lib/unictype/pr_grapheme_link.h: Likewise.
36219         * lib/unictype/pr_hex_digit.h: Likewise.
36220         * lib/unictype/pr_hyphen.h: Likewise.
36221         * lib/unictype/pr_id_continue.h: Likewise.
36222         * lib/unictype/pr_id_start.h: Likewise.
36223         * lib/unictype/pr_ideographic.h: Likewise.
36224         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36225         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36226         * lib/unictype/pr_ignorable_control.h: Likewise.
36227         * lib/unictype/pr_iso_control.h: Likewise.
36228         * lib/unictype/pr_join_control.h: Likewise.
36229         * lib/unictype/pr_left_of_pair.h: Likewise.
36230         * lib/unictype/pr_line_separator.h: Likewise.
36231         * lib/unictype/pr_logical_order_exception.h: Likewise.
36232         * lib/unictype/pr_lowercase.h: Likewise.
36233         * lib/unictype/pr_math.h: Likewise.
36234         * lib/unictype/pr_non_break.h: Likewise.
36235         * lib/unictype/pr_not_a_character.h: Likewise.
36236         * lib/unictype/pr_numeric.h: Likewise.
36237         * lib/unictype/pr_other_alphabetic.h: Likewise.
36238         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36239         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36240         * lib/unictype/pr_other_id_continue.h: Likewise.
36241         * lib/unictype/pr_other_id_start.h: Likewise.
36242         * lib/unictype/pr_other_lowercase.h: Likewise.
36243         * lib/unictype/pr_other_math.h: Likewise.
36244         * lib/unictype/pr_other_uppercase.h: Likewise.
36245         * lib/unictype/pr_paired_punctuation.h: Likewise.
36246         * lib/unictype/pr_paragraph_separator.h: Likewise.
36247         * lib/unictype/pr_pattern_syntax.h: Likewise.
36248         * lib/unictype/pr_pattern_white_space.h: Likewise.
36249         * lib/unictype/pr_private_use.h: Likewise.
36250         * lib/unictype/pr_punctuation.h: Likewise.
36251         * lib/unictype/pr_quotation_mark.h: Likewise.
36252         * lib/unictype/pr_radical.h: Likewise.
36253         * lib/unictype/pr_sentence_terminal.h: Likewise.
36254         * lib/unictype/pr_soft_dotted.h: Likewise.
36255         * lib/unictype/pr_space.h: Likewise.
36256         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36257         * lib/unictype/pr_titlecase.h: Likewise.
36258         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36259         * lib/unictype/pr_unified_ideograph.h: Likewise.
36260         * lib/unictype/pr_uppercase.h: Likewise.
36261         * lib/unictype/pr_variation_selector.h: Likewise.
36262         * lib/unictype/pr_white_space.h: Likewise.
36263         * lib/unictype/pr_xid_continue.h: Likewise.
36264         * lib/unictype/pr_xid_start.h: Likewise.
36265         * lib/unictype/pr_zero_width.h: Likewise.
36266         * lib/unictype/scripts.h: Likewise.
36267         * lib/unictype/scripts_byname.gperf: Likewise.
36268         * lib/unictype/sy_c_ident.h: Likewise.
36269         * lib/unictype/sy_c_whitespace.h: Likewise.
36270         * lib/unictype/sy_java_ident.h: Likewise.
36271         * lib/unictype/sy_java_whitespace.h: Likewise.
36272
36273         * lib/unictype/Makefile: New file.
36274         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36275         glibc.
36276         * lib/unictype/3level.h: New file, copied from glibc.
36277         * lib/unictype/3levelbit.h: New file.
36278
36279 2007-11-11  Bruno Haible  <bruno@clisp.org>
36280
36281         * modules/gperf: New file.
36282         * modules/iconv_open (Depends-on): Add it.
36283         (Makefile.am): Remove the GPERF definition.
36284
36285 2007-11-11  Bruno Haible  <bruno@clisp.org>
36286
36287         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36288         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36289
36290 2007-11-11  Bruno Haible  <bruno@clisp.org>
36291
36292         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36293         (usage): Remove function.
36294
36295 2007-11-11  Bruno Haible  <bruno@clisp.org>
36296
36297         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36298         gl_FUNC_CEILF_LIBS.
36299         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36300         gl_FUNC_CEIL_LIBS.
36301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36302         gl_FUNC_CEILL_LIBS.
36303         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36304         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36305         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36306
36307 2007-11-11  Bruno Haible  <bruno@clisp.org>
36308
36309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36310         roundf were declared but do not exist on functions.
36311         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36312         roundl were declared but do not exist on functions.
36313         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36314         HAVE_FLOORL_AND_CEILL, respectively.
36315         Needed for Sun C on Solaris 10.
36316
36317 2007-11-11  Bruno Haible  <bruno@clisp.org>
36318
36319         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36320         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36321         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36322         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36323         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36324         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36325         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36326         HAVE_DECL_ROUNDF.
36327         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36328         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36330         of HAVE_DECL_ROUND*.
36331         * modules/math (Makefile.am): Update.
36332
36333 2007-11-10  Bruno Haible  <bruno@clisp.org>
36334
36335         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36336         ptrdiff_t as m4/intl.m4.
36337
36338 2007-11-10  Jim Meyering  <meyering@redhat.com>
36339
36340         Avoid link failure for the argmatch test.
36341         * tests/test-argmatch.c (usage): Define function to avoid a link
36342         failure: argmatch_die requires a usage function.
36343
36344 2007-11-09  Bruno Haible  <bruno@clisp.org>
36345
36346         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36347         * doc/functions/vsnprintf.texi: Likewise.
36348         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36349         with a size argument < 2.
36350
36351 2007-11-09  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36354         buffer. Fixes an inefficiency introduced on 2007-11-03.
36355
36356 2007-11-09  Bruno Haible  <bruno@clisp.org>
36357
36358         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36359         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36360
36361 2007-11-08  Jim Meyering  <meyering@redhat.com>
36362
36363         Change cache variable name prefix "jm_" to "gl_" everywhere.
36364         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36365         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36366         * m4/uptime.m4: s/gl_/jm_/
36367
36368 2007-11-07  Bruno Haible  <bruno@clisp.org>
36369
36370         Update to GNU gettext 0.17.
36371         * m4/intl.m4: Update to GNU gettext 0.17.
36372         * m4/po.m4: Likewise.
36373         * modules/gettext (Files): Remove m4/ulonglong.m4.
36374         (configure.ac): Require gettext infrastructure from version 0.17.
36375
36376 2007-11-06  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36379         symbolic values are not defined in a public header.
36380         * lib/freadable.c (freadable) [QNX]: Likewise.
36381         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36382         * lib/freading.c (freading) [QNX]: Likewise.
36383         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36384         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36385         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36386         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36387         Reported by Alain Magloire.
36388
36389         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36390
36391 2007-11-05  Bruno Haible  <bruno@clisp.org>
36392
36393         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36394         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36395         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36396         Reported by Eric Blake.
36397
36398 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36399             Bruno Haible  <bruno@clisp.org>
36400
36401         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36402         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36403         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36404         (malloc): Undefine also before including <stdlib.h>.
36405         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36406         Needed on OSF/1 4.0.
36407
36408 2007-11-05  Jim Meyering  <meyering@redhat.com>
36409
36410         git-version-gen: sync from coreutils.
36411         * build-aux/git-version-gen: Add comments.
36412         Change the first '-' to '.' in the snapshot version string,
36413         e.g., 6.9-377-08144 -> 6.9.377-08144
36414         Remove first parameter.
36415         Don't declare a version "-dirty" merely because a time
36416         stamp has changed.
36417
36418 2007-11-04  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/lock.h: Protect all macro definitions containing an 'if'
36421         statement through a "do { ... } while (0)".
36422         * lib/tls.h: Likewise.
36423
36424 2007-11-04  Bruno Haible  <bruno@clisp.org>
36425
36426         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36427
36428 2007-11-04  Bruno Haible  <bruno@clisp.org>
36429
36430         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36431         * modules/fprintf-posix (Depends-on): Add nocrash.
36432         * modules/snprintf-posix (Depends-on): Likewise.
36433         * modules/sprintf-posix (Depends-on): Likewise.
36434         * modules/vasnprintf-posix (Depends-on): Likewise.
36435         * modules/vasprintf-posix (Depends-on): Likewise.
36436         * modules/vfprintf-posix (Depends-on): Likewise.
36437         * modules/vsnprintf-posix (Depends-on): Likewise.
36438         * modules/vsprintf-posix (Depends-on): Likewise.
36439         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36440         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36441         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36442         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36443         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36444         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36445         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36446
36447 2007-11-04  Bruno Haible  <bruno@clisp.org>
36448
36449         * modules/nocrash: New file.
36450         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36451         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36452
36453 2007-11-04  Bruno Haible  <bruno@clisp.org>
36454
36455         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36456         precision handling.
36457         * tests/test-vasprintf-posix.c (test_function): Likewise.
36458         * tests/test-snprintf-posix.h (test_function): Likewise.
36459         * tests/test-sprintf-posix.h (test_function): Likewise.
36460
36461         Fix *printf behaviour for large precisions on mingw and BeOS.
36462         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36463         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36465         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36467         gl_PRINTF_PRECISION and test its result. Invoke
36468         gl_PREREQ_VASNPRINTF_PRECISION.
36469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36476         * doc/functions/fprintf.texi: Update.
36477         * doc/functions/printf.texi: Update.
36478         * doc/functions/snprintf.texi: Update.
36479         * doc/functions/sprintf.texi: Update.
36480         * doc/functions/vfprintf.texi: Update.
36481         * doc/functions/vprintf.texi: Update.
36482         * doc/functions/vsnprintf.texi: Update.
36483         * doc/functions/vsprintf.texi: Update.
36484
36485 2007-11-04  Bruno Haible  <bruno@clisp.org>
36486
36487         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36488
36489 2007-11-04  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36492         Reported by Sylvain Beucler <beuc@gnu.org>.
36493
36494 2007-11-03  Bruno Haible  <bruno@clisp.org>
36495
36496         * tests/test-fprintf-posix2.sh: New file.
36497         * tests/test-fprintf-posix2.c: New file.
36498         * modules/fprintf-posix-tests (Files): Add them.
36499         (TESTS): Add test-fprintf-posix2.sh.
36500         (configure.ac): Check for getrlimit and setrlimit.
36501         (check_PROGRAMS): Add test-fprintf-posix2.
36502
36503         * tests/test-printf-posix2.sh: New file.
36504         * tests/test-printf-posix2.c: New file.
36505         * modules/printf-posix-tests (Files): Add them.
36506         (TESTS): Add test-printf-posix2.sh.
36507         (configure.ac): Check for getrlimit and setrlimit.
36508         (check_PROGRAMS): Add test-printf-posix2.
36509
36510         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36511         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36512         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36513         (decode_double): New function, copied from decode_long_double.
36514         (scale10_round_decimal_decoded): New function, extracted from
36515         scale10_round_decimal_long_double.
36516         (scale10_round_decimal_long_double): Use it.
36517         (scale10_round_decimal_double): New function.
36518         (floorlog10): New function.
36519         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36521         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36523         gl_PRINTF_ENOMEM and test its result. Invoke
36524         gl_PREREQ_VASNPRINTF_ENOMEM.
36525         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36526         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36528         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36532         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36533         * modules/snprintf-posix (Depends-on): Likewise.
36534         * modules/sprintf-posix (Depends-on): Likewise.
36535         * modules/vasnprintf-posix (Depends-on): Likewise.
36536         * modules/vasprintf-posix (Depends-on): Likewise.
36537         * modules/vfprintf-posix (Depends-on): Likewise.
36538         * modules/vsnprintf-posix (Depends-on): Likewise.
36539         * modules/vsprintf-posix (Depends-on): Likewise.
36540         * doc/functions/fprintf.texi: Update.
36541         * doc/functions/printf.texi: Update.
36542         * doc/functions/snprintf.texi: Update.
36543         * doc/functions/sprintf.texi: Update.
36544         * doc/functions/vfprintf.texi: Update.
36545         * doc/functions/vprintf.texi: Update.
36546         * doc/functions/vsnprintf.texi: Update.
36547         * doc/functions/vsprintf.texi: Update.
36548
36549 2007-11-03  Bruno Haible  <bruno@clisp.org>
36550
36551         * modules/frexp-nolibm-tests: New file.
36552
36553         * modules/frexp-nolibm: New file.
36554         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36555
36556 2007-11-03  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36559         value is C99 compliant.
36560         Needed for OSF/1 5.1.
36561
36562 2007-11-03  Bruno Haible  <bruno@clisp.org>
36563
36564         Fix out-of-memory handling of vasnprintf.
36565         * lib/printf-parse.c: Include <errno.h>.
36566         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36567         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36568         is already set.
36569
36570 2007-11-02  Eric Blake  <ebb9@byu.net>
36571
36572         Fix tests on cygwin.
36573         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36574
36575 2007-11-01  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36578         warning.
36579         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36580         needed for POSIX compatibility.
36581
36582 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36583
36584         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36585         for compatibility with GNU.
36586
36587 2007-11-01  Bruno Haible  <bruno@clisp.org>
36588
36589         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36590         (putenv): Renamed from rpl_putenv. Change argument type from
36591         'const char *' to 'char *'.
36592         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36593         of defining putenv in config.h, just set REPLACE_PUTENV.
36594         * modules/putenv (Depends-on): Add stdlib.
36595         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36596         (Include): Use <stdlib.h>.
36597         * lib/stdlib.in.h (putenv): New declaration.
36598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36599         REPLACE_PUTENV.
36600         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36601         REPLACE_PUTENV.
36602         Needed for MacOS X 10.5.0.
36603         Reported by Peter O'Gorman <peter@pogma.com>.
36604
36605 2007-11-01  Jim Meyering  <meyering@redhat.com>
36606
36607         Treat an empty date string exactly like "0".
36608         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36609         if the remaining date string (to be parsed) is empty, use "0".
36610         Reported by Mischa Molhoek and discussed in this thread:
36611         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36612
36613 2007-10-31  Bruno Haible  <bruno@clisp.org>
36614
36615         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36616         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36617         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36618         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36619         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36620         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36621
36622 2007-10-31  Bruno Haible  <bruno@clisp.org>
36623
36624         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36625         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36626         (AC_TYPE_LONG_LONG_INT): Use it.
36627         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36628         it as well.
36629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36630         to m4/longlong.m4.
36631         * modules/stdint (Files): Remove m4/ulonglong.m4.
36632         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36633         m4/ulonglong.m4.
36634         * modules/strtoumax (Files): Likewise.
36635
36636 2007-10-30  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/xvasprintf-posix: New file.
36639         Suggested by Eric Blake.
36640
36641 2007-10-30  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/xprintf-posix-tests: New file.
36644         * tests/test-xprintf-posix.sh: New file.
36645         * tests/test-xprintf-posix.c: New file.
36646         * tests/test-xfprintf-posix.c: New file.
36647
36648         * modules/xprintf-posix: New file.
36649
36650 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36651
36652         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36653         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36654         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36655
36656 2007-10-29  Bruno Haible  <bruno@clisp.org>
36657
36658         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36659         contain the special marker '_cv_'.
36660         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36661         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36663         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36664         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36665         Reported by Ralf Wildenhues.
36666
36667 2007-10-29  Bruno Haible  <bruno@clisp.org>
36668
36669         * gnulib-tool (func_import): When --lgpl is not specified, set
36670         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36671         GPLv3.
36672         Reported by Simon Josefsson.
36673
36674 2007-10-28  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36677         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36678         HAVE_DECL_ISFINITE.
36679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36680         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36681         HAVE_DECL_ISFINITE.
36682
36683 2007-10-28  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36686         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36687
36688 2007-10-28  Bruno Haible  <bruno@clisp.org>
36689
36690         Fix link errors with Sun C 5.0 on Solaris 10.
36691         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36692         function is declared but not present in the compiler's libm.
36693         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36694         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36695         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36696         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36697         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36698         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36699         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36701         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36702         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36703         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36704         HAVE_DECL_FLOORL.
36705
36706 2007-10-28  Bruno Haible  <bruno@clisp.org>
36707
36708         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36709         gl_FUNC_FLOORL. Cache the result.
36710         (gl_FUNC_FLOORL): Use it.
36711         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36712         gl_FUNC_CEILL. Cache the result.
36713         (gl_FUNC_CEILL): Use it.
36714
36715         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36716         gl_FUNC_FLOOR. Cache the result.
36717         (gl_FUNC_FLOOR): Use it.
36718         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36719         gl_FUNC_CEIL. Cache the result.
36720         (gl_FUNC_CEIL): Use it.
36721
36722         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36723         gl_FUNC_FLOORF. Cache the result.
36724         (gl_FUNC_FLOORF): Use it.
36725         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36726         gl_FUNC_CEILF. Cache the result.
36727         (gl_FUNC_CEILF): Use it.
36728
36729 2007-10-28  Bruno Haible  <bruno@clisp.org>
36730
36731         * gnulib-tool: Allow specifying the LGPL version number through
36732         --lgpl=2 or --lgpl=3.
36733         (func_usage): Document --lgpl with argument.
36734         Handle --lgpl=... arguments.
36735         (func_import): Recognize also gl_LGPL calls with an argument. When
36736         --lgpl=2 is used and the module's license is just LGPL, report an
36737         error. Set sed_transform_lib_file according to the lgpl variable. In
36738         the generated files, use --lgpl or gl_LGPL invocations with argument,
36739         if necessary.
36740         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36741         an LGPv2+ license.
36742         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36743         gl_LGPL macro.
36744
36745 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36746             Bruno Haible  <bruno@clisp.org>
36747
36748         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36749         (u16_uctomb_aux): Likewise.
36750         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36751         !HAVE_INLINE.
36752         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36753
36754 2007-10-28  Bruno Haible  <bruno@clisp.org>
36755
36756         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36757         Invoke AM_GETTEXT_OPTION if it exists.
36758         * modules/vasprintf: Likewise.
36759         * modules/verror: Likewise.
36760         * modules/xprintf: Likewise.
36761         * modules/xvasprintf: Likewise.
36762
36763 2007-10-27  Ben Pfaff  <blp@gnu.org>
36764
36765         * lib/math.in.h: Define isfinite macro and prototypes for
36766         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36767         implementations.
36768         * m4/math_h.m4: New substitutions for isfinite module.
36769         * lib/isfinite.c: New file.
36770         * m4/isfinite.m4: New file.
36771         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36772         * modules/isfinite: New file.
36773         * modules/isfinite-tests: New file.
36774         * tests/tests-isfinite.c: New file.
36775         * doc/functions/isfinite.texi: Mention isfinite module.
36776         * MODULES.html.sh: Mention new module.
36777
36778 2007-10-27  Ben Pfaff  <blp@gnu.org>
36779
36780         Ralf Wildenhues reported that Tru64 4.0D declares the round
36781         functions but does not have definitions.
36782         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36783         cannot be found in any library, set the output variable to
36784         "missing" instead of "".
36785         * m4/round.m4: Also use our substitute if we cannot find round in
36786         any library, even if it is declared.
36787         * m4/roundf.m4: Likewise for roundf.
36788         * m4/roundl.m4: Likewise for roundl.
36789         * lib/math.in.h: Undefine roundf, round, roundl before defining
36790         their replacements, to allow for hypothetical systems where these
36791         may be defined as macros but not available in libraries.
36792
36793 2007-10-27  Bruno Haible  <bruno@clisp.org>
36794
36795         * doc/gnulib.texi: Invoke @firstparagraphindent.
36796         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36797         changes in gnulib.
36798         (Source changes): New section.
36799
36800 2007-10-26  Bruno Haible  <bruno@clisp.org>
36801
36802         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36803         borrowed from autoconf.
36804
36805 2007-10-26  Bruno Haible  <bruno@clisp.org>
36806
36807         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36808         strerror returned the empty string. Needed on HP-UX 11.00.
36809
36810 2007-10-24  Micah Cowan  <micah@cowan.name>
36811
36812         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36813         * build-aux/bootstrap: Remove support for now-unnecessary option,
36814         --cvs-user, and envvars CVS_USER, CVS_RSH.
36815
36816 2007-10-24  Jim Meyering  <meyering@redhat.com>
36817
36818         Avoid diagnostics from sha1sum when there is no cached checksum.
36819         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36820         if the po.s1 file hasn't been created yet.
36821
36822         * build-aux/bootstrap: Sync from coreutils:
36823         2007-10-24  Jim Meyering  <meyering@redhat.com>
36824         Get gnulib from the git repository, not from an obsolete cvs one.
36825         * build-aux/bootstrap: Suggestion from Micah Cowan.
36826         2007-10-04  Jim Meyering  <jim@meyering.net>
36827         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36828         (update_po_files): Work also when there are no .po files in po/.
36829
36830 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36831
36832         * README: Append ".git" to git and cg examples.
36833         Problem reported by Benoit Sigoure.
36834
36835 2007-10-23  Micah Cowan  <micah@cowan.name>
36836
36837         * users.txt: Add wget.
36838
36839 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36840
36841         Fix linking of some unistdio tests on FreeBSD.
36842         * modules/unistdio/u16-vsnprintf-tests
36843         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36844         * modules/unistdio/u16-vsprintf-tests
36845         (test_u16_vsnprintf1_LDADD): Likewise.
36846         * modules/unistdio/u32-vsnprintf-tests
36847         (test_u32_vsnprintf1_LDADD): Likewise.
36848         * modules/unistdio/u32-vsprintf-tests
36849         (test_u32_vsprintf1_LDADD): Likewise.
36850         * modules/unistdio/u8-vsnprintf-tests
36851         (test_u8_vsnprintf1_LDADD): Likewise.
36852         * modules/unistdio/u8-vsprintf-tests
36853         (test_u8_vsprintf1_LDADD): Likewise.
36854         * modules/unistdio/ulc-vsnprintf-tests
36855         (test_ulc_vsnprintf1_LDADD): Likewise.
36856         * modules/unistdio/ulc-vsprintf-tests
36857         (test_ulc_vsprintf1_LDADD): Likewise.
36858
36859         Fix linking of some uniconv tests on FreeBSD.
36860         * modules/uniconv/u16-conv-from-enc-tests
36861         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36862         * modules/uniconv/u16-conv-to-enc-tests
36863         (test_u16_conv_to_enc_LDADD): Likewise.
36864         * modules/uniconv/u16-strconv-from-enc-tests
36865         (test_u16_strconv_from_enc_LDADD): Likewise.
36866         * modules/uniconv/u16-strconv-to-enc-tests
36867         (test_u16_strconv_to_enc_LDADD): Likewise.
36868         * modules/uniconv/u32-conv-from-enc-tests
36869         (test_u32_conv_from_enc_LDADD): Likewise.
36870         * modules/uniconv/u32-conv-to-enc-tests
36871         (test_u32_conv_to_enc_LDADD): Likewise.
36872         * modules/uniconv/u32-strconv-from-enc-tests
36873         (test_u32_strconv_from_enc_LDADD): Likewise.
36874         * modules/uniconv/u32-strconv-to-enc-tests
36875         (test_u32_strconv_to_enc_LDADD): Likewise.
36876         * modules/uniconv/u8-conv-from-enc-tests
36877         (test_u8_conv_from_enc_LDADD): Likewise.
36878         * modules/uniconv/u8-conv-to-enc-tests
36879         (test_u8_conv_to_enc_LDADD): Likewise.
36880         * modules/uniconv/u8-strconv-from-enc-tests
36881         (test_u8_strconv_from_enc_LDADD): Likewise.
36882         * modules/uniconv/u8-strconv-to-enc-tests
36883         (test_u8_strconv_to_enc_LDADD): Likewise.
36884
36885 2007-10-22  Bruno Haible  <bruno@clisp.org>
36886
36887         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36888         size.
36889
36890 2007-10-22  Eric Blake  <ebb9@byu.net>
36891
36892         Tweak x*printf documentation.
36893         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36894         variable name and comments.
36895         Suggested by Bruno Haible.
36896
36897 2007-10-22  Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/acl.c (copy_acl): Fix file name in comment.
36900
36901 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36902
36903         Fix Tru64 problem with stdbool.h.
36904         * lib/stdbool.in.h (false, true):
36905         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36906         Don't declare as an enum in this situation; it runs afoul of Tru64.
36907         Problem reported by Steven M. Schweda in
36908         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36909
36910 2007-10-22  Eric Blake  <ebb9@byu.net>
36911
36912         Also wrap vf?printf.
36913         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36914         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36915         (xvprintf, xvfprintf): New functions.
36916
36917 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36918
36919         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36920         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36921
36922         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36923         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36924
36925 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36926
36927         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36928         by Bruno Haible.
36929
36930 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36931
36932         * lib/getloadavg.c
36933         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36934         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36935
36936         * tests/test-i-ring.c: Work for C89.
36937
36938 2007-10-22  Bruno Haible  <bruno@clisp.org>
36939
36940         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36941         -1u, in preprocessor expression, so that we don't test for the bug
36942         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36944
36945 2007-10-22  Eric Blake  <ebb9@byu.net>
36946
36947         * tests/test-yesno.sh: Silence stderr during test.
36948
36949 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36950
36951         * modules/crypto/gc-camellia: New file.
36952
36953         * m4/gc-camellia.m4: New file.
36954
36955         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36956
36957         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36958
36959 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36960
36961         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36962         --help to stdout.  Reported by sms@antinode.org (Steven
36963         M. Schweda).
36964
36965 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36966
36967         * users.txt: Fix link to libksba.
36968
36969 2007-10-21  Ben Pfaff  <blp@gnu.org>
36970
36971         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36972         round.c roundf implementation that depends on floorf and ceilf to
36973         be tested unconditionally.
36974
36975 2007-10-21  Ben Pfaff  <blp@gnu.org>
36976
36977         * m4/check-libm-func.m4: Removed.
36978         * m4/check-math-lib.m4: New file.
36979         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36980         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36981         definition and lack of AC_LIBOBJ([roundf]).
36982         * m4/roundl.m4: Ditto, and similarly for roundl.
36983         * modules/round: Reference new m4 file.
36984         * modules/roundf: Ditto.
36985         * modules/roundl: Ditto.
36986         * tests/test-round2.c (main): Use ROUND instead of round.
36987         Bug report from Bruno Haible.
36988
36989 2007-10-21  Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36992         context.
36993
36994 2007-10-21  Bruno Haible  <bruno@clisp.org>
36995
36996         * tests/test-wcwidth.c (main): Allow negative result for some control
36997         characters.
36998
36999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37000         Needed on OSF/1 5.1.
37001
37002 2007-10-21  Bruno Haible  <bruno@clisp.org>
37003
37004         * tests/test-floorf1.c: Include isnanf.h.
37005         (main): Use isnanf() instead of isnan().
37006         * tests/test-ceilf1.c: Include isnanf.h.
37007         (main): Use isnanf() instead of isnan().
37008         * tests/test-truncf1.c: Include isnanf.h.
37009         (main): Use isnanf() instead of isnan().
37010         * tests/test-roundf1.c: Include isnanf.h.
37011         (main): Use isnanf() instead of isnan().
37012
37013 2007-10-21  Eric Blake  <ebb9@byu.net>
37014
37015         * users.txt: Update URL for m4.
37016
37017 2007-10-21  Bruno Haible  <bruno@clisp.org>
37018
37019         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37020
37021 2007-10-21  Bruno Haible  <bruno@clisp.org>
37022
37023         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37024         Git's management files if the CVS files are not present.
37025
37026 2007-10-20  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37029         gcc-3.4.x.
37030
37031 2007-10-20  Ben Pfaff  <blp@gnu.org>
37032
37033         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37034         implementations.
37035         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37036         * lib/round.c: New file.
37037         * lib/roundf.c: New file.
37038         * lib/roundl.c: New file.
37039         * m4/round.m4: New file.
37040         * m4/roundf.m4: New file.
37041         * m4/roundl.m4: New file.
37042         * m4/check-libm-func-m4: New file.
37043         * modules/math: Replace round, roundf, roundl related @VARS@ in
37044         math.in.h.
37045         * modules/round: New file.
37046         * modules/round-tests: New file.
37047         * modules/roundf: New file.
37048         * modules/roundf-tests: New file.
37049         * modules/roundl: New file.
37050         * modules/roundl-tests: New file.
37051         * tests/test-round1.c: New file.
37052         * tests/test-round2.c: New file.
37053         * tests/test-roundf1.c: New file.
37054         * tests/test-roundf2.c: New file.
37055         * tests/test-roundl.c: New file.
37056         * doc/functions/round.texi: Mention round module.
37057         * doc/functions/roundf.texi: Mention roundf module.
37058         * doc/functions/roundl.texi: Mention roundl module.
37059         * MODULES.html.sh: Mention new modules.
37060         Thanks to Bruno Haible for suggestions.
37061
37062 2007-10-20  Jim Meyering  <meyering@redhat.com>
37063
37064         * lib/xprintf.c: Include <config.h> unconditionally.
37065
37066         Change xprintf's license to GPL.
37067         * modules/xprintf (License): s/LGPL/GPL/, since this module
37068         depends on modules (exit and exitfail) which are GPL.
37069         Suggestion from Bruno Haible.
37070
37071         xprintf fixes.
37072         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37073         Use a clearer diagnostic.
37074         Patch from Bruno Haible.
37075
37076 2007-10-20  Bruno Haible  <bruno@clisp.org>
37077
37078         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37079         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37081
37082 2007-10-20  Bruno Haible  <bruno@clisp.org>
37083
37084         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37085         precision in the comparison result > x - 1 or similar.
37086         * tests/test-ceilf2.c (correct_result_p): Likewise.
37087         * tests/test-truncf2.c (correct_result_p): Likewise.
37088         * tests/test-trunc2.c (correct_result_p): Likewise.
37089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37090
37091 2007-10-20  Bruno Haible  <bruno@clisp.org>
37092
37093         * modules/ceil: New file.
37094         * m4/ceil.m4: New file.
37095         * doc/functions/ceil.texi: Mention the 'ceil' module.
37096
37097 2007-10-20  Bruno Haible  <bruno@clisp.org>
37098
37099         * modules/floor: New file.
37100         * m4/floor.m4: New file.
37101         * doc/functions/floor.texi: Mention the 'floor' module.
37102
37103 2007-10-20  Bruno Haible  <bruno@clisp.org>
37104
37105         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37106         of %a.
37107         * modules/floorf-tests (Depends-on): Likewise.
37108         * modules/truncf-tests (Depends-on): Likewise.
37109         * modules/trunc-tests (Depends-on): Likewise.
37110         Reported by Ben Pfaff.
37111
37112 2007-10-19  Jim Meyering  <meyering@redhat.com>
37113
37114         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37115         Don't bother testing specific errno values.  Just test ferror.
37116
37117         New module: xprintf
37118         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37119
37120 2007-10-19  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37123         syntax.
37124         * modules/javaexec (Makefile.am): Likewise.
37125         * modules/relocatable-prog (Makefile.am): Likewise.
37126         Suggested by Jim Meyering.
37127
37128 2007-10-18  Bruno Haible  <bruno@clisp.org>
37129
37130         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37131         Reported by Jim Meyering.
37132
37133 2007-10-18  Eric Blake  <ebb9@byu.net>
37134
37135         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37136
37137 2007-10-18  Bruno Haible  <bruno@clisp.org>
37138
37139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37140         the format string into writable memory. Needed in Fortify conditions.
37141
37142 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37143             Bruno Haible  <bruno@clisp.org>
37144
37145         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37146         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37147         * modules/trim (Depends-on): Add mbchar.
37148         (configure.ac): Add gl_FUNC_MBRTOWC.
37149         (Makefile.am): Augment lib_SOURCES.
37150
37151 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         Modify glob.c to use fstatat and dirfd, to simplify it.
37154         Suggested by Eric Blake.
37155         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37156         Don't include <stdbool.h>; not used.
37157         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37158         (link_exists_p): Simplify implementation, since we can now assume
37159         dirfd and fstatat.
37160         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37161
37162 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37163
37164         * gnulib-tool (func_get_dependencies): Fix sed script to
37165         match only tests.
37166
37167 2007-10-17  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37170         allow locale names without encoding suffix.
37171         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37172         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37173
37174 2007-10-16  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37177         * lib/getgroups.c (getgroups): Likewise.
37178         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37179
37180 2007-10-16  Bruno Haible  <bruno@clisp.org>
37181
37182         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37183         * modules/malloc-posix (License): Likewise.
37184         * modules/realloc-posix (License): Likewise.
37185         * modules/calloc-posix (License): Likewise.
37186         * modules/intprops (License): Change from GPL to LGPL, with
37187         Paul Eggert's approval.
37188
37189 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37190
37191         Merge glibc changes into lib/glob.c.
37192
37193         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37194         2007-10-15 04:59:03 UTC.  Here are the changes:
37195
37196         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37197
37198         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37199
37200         * lib/glob.c: Add some branch prediction throughout.
37201
37202         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37203
37204         [BZ #5103]
37205         * lib/glob.c (glob): Recognize patterns starting \/.
37206
37207         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37208
37209         [BZ #3996]
37210         * lib/glob.c (attribute_hidden): Define if not defined.
37211         (glob): Unescape dirname, filename or username when needed and not
37212         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37213         is NULL.  Handle unescaped [ in pattern without closing ].
37214         Don't pass GLOB_CHECK down to recursive glob for directories.
37215         (__glob_pattern_type): New function.
37216         (__glob_pattern_p): Implement using __glob_pattern_type.
37217         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37218         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37219         Remove unreachable code.
37220
37221         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37222
37223         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37224         explain why there are no leaks.
37225
37226         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37227
37228         [BZ #3253]
37229         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37230         time, rather allocate increasingly bigger arrays of pointers, if
37231         possible with alloca, if too large with malloc.
37232
37233 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37234
37235         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37236         Problem reported by H.Merijn Brand in
37237         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37238         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37239         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37240
37241 2007-10-15  Bruno Haible  <bruno@clisp.org>
37242
37243         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37244         with explicit rpl_ prefix.
37245         * lib/fopen.c (fopen): Likewise.
37246         * lib/freopen.c (freopen): Likewise.
37247         * lib/iconv.c (iconv): Likewise.
37248         * lib/iconv_close.c (iconv_close): Likewise.
37249
37250 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37251
37252         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37253
37254 2007-10-15  Bruno Haible  <bruno@clisp.org>
37255
37256         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37257         <stddef.h> instead of <stdlib.h> since we only need NULL.
37258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37259
37260 2007-10-15  Bruno Haible  <bruno@clisp.org>
37261
37262         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37263         Replace paragraph talking about LIBOBJS.
37264         Reported by Colin Watson <cjwatson@debian.org>.
37265
37266 2007-10-15  Bruno Haible  <bruno@clisp.org>
37267
37268         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37269         <stdlib.h> before using NULL.
37270
37271 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37272
37273         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37274         Reported by Albert Chin <china@thewrittenword.com>.
37275
37276 2007-10-14  Bruno Haible  <bruno@clisp.org>
37277
37278         * modules/iconv_open-utf-tests: New file.
37279         * tests/test-iconv-utf.c: New file.
37280
37281         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37282         * modules/iconv_open-utf: New file.
37283         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37284         (iconv, iconv_close): New declarations.
37285         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37286         be defined.
37287         (iconv_open): Add special handling of conversion between UTF-8 and
37288         UTF-{16,32}{BE,LE}.
37289         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37290         * lib/iconv_close.c: New file.
37291         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37292         gl_FUNC_ICONV_OPEN.
37293         (gl_FUNC_ICONV_OPEN): Use it.
37294         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37295         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37296         and REPLACE_ICONV_UTF.
37297         * modules/iconv_open (Depends-on): Add c-strcase.
37298         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37299         ICONV_CONST.
37300         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37301
37302 2007-10-13  Albert Chin  <china@thewrittenword.com>
37303             Bruno Haible  <bruno@clisp.org>
37304
37305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37306         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37307
37308 2007-10-13  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37311         defined, use the ISO C99 inline semantics.
37312         * lib/argp.h (ARGP_EI): Likewise.
37313
37314 2007-10-13  Bruno Haible  <bruno@clisp.org>
37315
37316         Handle 'inline' change in gcc 4.3.0.
37317         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37318         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37319         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37320         argp_fmtstream_point): Disable 'extern' declaration if the function
37321         definition is going to be provided inline.
37322         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37323         semantics, not the ISO C99 inline semantics.
37324         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37325         'extern' declaration if the function definition is going to be provided
37326         inline.
37327         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37328         the GNU C inline semantics, not the ISO C99 inline semantics. With
37329         GCC 4.2, avoid a warning.
37330
37331 2007-10-13  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/freading.h (freading): Enable the use of __freading for
37334         glibc >= 2.7.
37335         * lib/freading.c (freading): Likewise.
37336
37337 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37338
37339         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37340         "warning: C99 inline functions are not supported; using GNU89".
37341
37342 2007-10-12  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37345         of 2.
37346         * tests/test-ceilf2.c: New file.
37347         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37348
37349         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37350         * modules/ceilf-tests: Update.
37351
37352 2007-10-12  Bruno Haible  <bruno@clisp.org>
37353
37354         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37355         of 2.
37356         * tests/test-floorf2.c: New file.
37357         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37358
37359         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37360         * modules/floorf-tests: Update.
37361
37362 2007-10-12  Bruno Haible  <bruno@clisp.org>
37363
37364         * tests/test-trunc2.c: New file.
37365         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37366
37367         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37368         * modules/trunc-tests: Update.
37369
37370 2007-10-12  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37373         of 2.
37374         * tests/test-truncf2.c: New file.
37375         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37376
37377         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37378         * modules/truncf-tests: Update.
37379
37380 2007-10-11  Eric Blake  <ebb9@byu.net>
37381
37382         Don't claim strerror is broken on Interix.
37383         * doc/functions/strerror.texi (strerror): Known broken systems are
37384         now Solaris 8, and not Interix.
37385         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37386         Interix on cross-compile.
37387         Reported by Martin Koeppe in
37388         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37389
37390 2007-10-11  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/i-ring-tests: New file.
37393         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37394         instead of assert.
37395
37396 2007-10-11  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/filenamecat-tests: New file.
37399         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37400         * lib/filenamecat.c: Remove test code.
37401
37402 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37403
37404         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37405
37406         * lib/strerror.c: Include <string.h> always, to test interface,
37407         and to remove the need for the dummy.
37408         Include intprops.h to compute width instead of doing it ourselves
37409         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37410         (strerror): Define it to return NULL if there's no system strerror.
37411         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37412         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37413         ancient pre-strerror Unix systems well any more.  Saying "unknown
37414         system error" is enough.
37415         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37416         simpler strerror.c implementation.
37417         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37418         Simplify the tests to reflect the simpler strerror implementation.
37419         * modules/strerror (Depends-on): Add intprops.
37420
37421 2007-10-09  Eric Blake  <ebb9@byu.net>
37422
37423         Silence test-fpending.
37424         * modules/fpending-tests (Files): Add wrapper script.
37425         * tests/test-fpending.sh: New file.
37426
37427 2007-10-09  Bruno Haible  <bruno@clisp.org>
37428
37429         * MODULES.html.sh (func_module): Don't create a hyperlink for
37430         function names like 'printf_frexp'.
37431         (Misc): Add crc, memxor.
37432         (Characteristics of floating types): New section.
37433         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37434         isnanf-nolibm, signbit, trunc, truncf, truncl.
37435         (Enhancements for ISO C 99 functions): New subsection Input/output.
37436         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37437         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37438         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37439         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37440         (Enhancements for POSIX:2001 functions): Add chdir-long.
37441         (File system functions): Add areadlink, chdir-safer, read-file.
37442         Remove cycle-check.
37443         (File system as inode set): New section.
37444         (Date and time): Add gethrxtime.
37445         (Multithreading): Add openmp.
37446         (Internationalization functions): Add localename.
37447         (Unicode string functions): Add unistr/u*-mbsnlen.
37448         (Support for maintaining and releasing projects): Add git-version-gen.
37449         (Lone files): Remove directories.
37450
37451 2007-10-08  Ben Pfaff  <blp@gnu.org>
37452
37453         * lib/xmalloca.h: Fix typo in comment.
37454
37455 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37456
37457         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37458         when avoiding problems with integer overflow.  Use a portable test
37459         instead.
37460
37461 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37462
37463         * modules/dummy (License): Change to LGPLv2+.
37464         * modules/float (License): Likewise
37465         * modules/realloc (License): Likewise
37466         * modules/stdlib (License): Likewise
37467
37468 2007-10-07  Bruno Haible  <bruno@clisp.org>
37469
37470         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37471         * floor.c (TWO_MANT_DIG): Likewise.
37472         * ceil.c (TWO_MANT_DIG): Likewise.
37473         Reported by Ben Pfaff.
37474
37475 2007-10-07  Bruno Haible  <bruno@clisp.org>
37476
37477         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37478         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37479         * lib/frexp.c (FUNC): Likewise.
37480         * lib/printf-frexp.h (printf_frexp): Likewise.
37481         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37482         * lib/printf-frexp.c (FUNC): Likewise.
37483         Suggested by Jim Meyering.
37484
37485 2007-10-07  Jim Meyering  <meyering@redhat.com>
37486
37487         Make xnanosleep's integer overflow test more robust.
37488         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37489         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37490
37491 2007-10-07  Bruno Haible  <bruno@clisp.org>
37492
37493         * NEWS: Mention the license change.
37494
37495         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37496         abbreviations in the modules files.
37497
37498         Change copyright notice from GPLv2+ to GPLv3+.
37499         * README: Change copyright notice.
37500         * MODULES.html.sh: Likewise.
37501         * build-aux/bootstrap.conf: Likewise.
37502         * build-aux/config.libpath: Likewise.
37503         * build-aux/csharpcomp.sh.in: Likewise.
37504         * build-aux/csharpexec.sh.in: Likewise.
37505         * build-aux/install-reloc: Likewise.
37506         * build-aux/javacomp.sh.in: Likewise.
37507         * build-aux/javaexec.sh.in: Likewise.
37508         * build-aux/ldd.sh.in: Likewise.
37509         * build-aux/reloc-ldflags: Likewise.
37510         * build-aux/relocatable.sh.in: Likewise.
37511         * build-aux/x-to-1.in: Likewise.
37512         * check-module: Likewise.
37513         * config/srclistvars.sh: Likewise.
37514         * gnulib-tool: Likewise.
37515         * lib/acl-internal.h: Likewise.
37516         * lib/acl.c: Likewise.
37517         * lib/acl.h: Likewise.
37518         * lib/acl_entries.c: Likewise.
37519         * lib/areadlink-with-size.c: Likewise.
37520         * lib/areadlink.c: Likewise.
37521         * lib/areadlink.h: Likewise.
37522         * lib/argmatch.c: Likewise.
37523         * lib/argmatch.h: Likewise.
37524         * lib/argp-ba.c: Likewise.
37525         * lib/argp-eexst.c: Likewise.
37526         * lib/argp-fmtstream.c: Likewise.
37527         * lib/argp-fmtstream.h: Likewise.
37528         * lib/argp-fs-xinl.c: Likewise.
37529         * lib/argp-help.c: Likewise.
37530         * lib/argp-namefrob.h: Likewise.
37531         * lib/argp-parse.c: Likewise.
37532         * lib/argp-pin.c: Likewise.
37533         * lib/argp-pv.c: Likewise.
37534         * lib/argp-pvh.c: Likewise.
37535         * lib/argp-xinl.c: Likewise.
37536         * lib/argp.h: Likewise.
37537         * lib/at-func.c: Likewise.
37538         * lib/atanl.c: Likewise.
37539         * lib/backupfile.c: Likewise.
37540         * lib/backupfile.h: Likewise.
37541         * lib/basename.c: Likewise.
37542         * lib/binary-io.h: Likewise.
37543         * lib/byteswap.in.h: Likewise.
37544         * lib/c-stack.c: Likewise.
37545         * lib/c-stack.h: Likewise.
37546         * lib/c-strcasestr.c: Likewise.
37547         * lib/c-strcasestr.h: Likewise.
37548         * lib/c-strstr.c: Likewise.
37549         * lib/c-strstr.h: Likewise.
37550         * lib/c-strtod.c: Likewise.
37551         * lib/calloc.c: Likewise.
37552         * lib/canon-host.c: Likewise.
37553         * lib/canon-host.h: Likewise.
37554         * lib/canonicalize-lgpl.c: Likewise.
37555         * lib/canonicalize.c: Likewise.
37556         * lib/canonicalize.h: Likewise.
37557         * lib/ceil.c: Likewise.
37558         * lib/ceilf.c: Likewise.
37559         * lib/ceill.c: Likewise.
37560         * lib/chdir-long.c: Likewise.
37561         * lib/chdir-long.h: Likewise.
37562         * lib/chdir-safer.c: Likewise.
37563         * lib/chdir-safer.h: Likewise.
37564         * lib/chown.c: Likewise.
37565         * lib/classpath.c: Likewise.
37566         * lib/classpath.h: Likewise.
37567         * lib/clean-temp.c: Likewise.
37568         * lib/clean-temp.h: Likewise.
37569         * lib/cloexec.c: Likewise.
37570         * lib/close-stream.c: Likewise.
37571         * lib/closein.c: Likewise.
37572         * lib/closein.h: Likewise.
37573         * lib/closeout.c: Likewise.
37574         * lib/closeout.h: Likewise.
37575         * lib/concat-filename.c: Likewise.
37576         * lib/copy-file.c: Likewise.
37577         * lib/copy-file.h: Likewise.
37578         * lib/count-one-bits.h: Likewise.
37579         * lib/crc.c: Likewise.
37580         * lib/crc.h: Likewise.
37581         * lib/creat-safer.c: Likewise.
37582         * lib/csharpcomp.c: Likewise.
37583         * lib/csharpcomp.h: Likewise.
37584         * lib/csharpexec.c: Likewise.
37585         * lib/csharpexec.h: Likewise.
37586         * lib/cycle-check.c: Likewise.
37587         * lib/cycle-check.h: Likewise.
37588         * lib/diacrit.c: Likewise.
37589         * lib/diacrit.h: Likewise.
37590         * lib/diffseq.h: Likewise.
37591         * lib/dirchownmod.c: Likewise.
37592         * lib/dirent.in.h: Likewise.
37593         * lib/dirfd.c: Likewise.
37594         * lib/dirfd.h: Likewise.
37595         * lib/dirname.c: Likewise.
37596         * lib/dirname.h: Likewise.
37597         * lib/dummy.c: Likewise.
37598         * lib/dup-safer.c: Likewise.
37599         * lib/dup2.c: Likewise.
37600         * lib/eealloc.h: Likewise.
37601         * lib/error.c: Likewise.
37602         * lib/error.h: Likewise.
37603         * lib/euidaccess.c: Likewise.
37604         * lib/exclude.c: Likewise.
37605         * lib/exclude.h: Likewise.
37606         * lib/execute.c: Likewise.
37607         * lib/execute.h: Likewise.
37608         * lib/exitfail.c: Likewise.
37609         * lib/exitfail.h: Likewise.
37610         * lib/expl.c: Likewise.
37611         * lib/fatal-signal.c: Likewise.
37612         * lib/fatal-signal.h: Likewise.
37613         * lib/fbufmode.c: Likewise.
37614         * lib/fbufmode.h: Likewise.
37615         * lib/fchdir.c: Likewise.
37616         * lib/fchmodat.c: Likewise.
37617         * lib/fchownat.c: Likewise.
37618         * lib/fcntl--.h: Likewise.
37619         * lib/fcntl-safer.h: Likewise.
37620         * lib/fcntl.in.h: Likewise.
37621         * lib/fd-safer.c: Likewise.
37622         * lib/fflush.c: Likewise.
37623         * lib/file-has-acl.c: Likewise.
37624         * lib/file-set.c: Likewise.
37625         * lib/file-type.c: Likewise.
37626         * lib/file-type.h: Likewise.
37627         * lib/fileblocks.c: Likewise.
37628         * lib/filemode.c: Likewise.
37629         * lib/filemode.h: Likewise.
37630         * lib/filename.h: Likewise.
37631         * lib/filenamecat.c: Likewise.
37632         * lib/filenamecat.h: Likewise.
37633         * lib/findprog.c: Likewise.
37634         * lib/findprog.h: Likewise.
37635         * lib/float.in.h: Likewise.
37636         * lib/floor.c: Likewise.
37637         * lib/floorf.c: Likewise.
37638         * lib/floorl.c: Likewise.
37639         * lib/fopen-safer.c: Likewise.
37640         * lib/fopen.c: Likewise.
37641         * lib/fpending.c: Likewise.
37642         * lib/fpending.h: Likewise.
37643         * lib/fprintf.c: Likewise.
37644         * lib/fprintftime.h: Likewise.
37645         * lib/fpucw.h: Likewise.
37646         * lib/fpurge.c: Likewise.
37647         * lib/fpurge.h: Likewise.
37648         * lib/freadable.c: Likewise.
37649         * lib/freadable.h: Likewise.
37650         * lib/freadahead.c: Likewise.
37651         * lib/freadahead.h: Likewise.
37652         * lib/freading.c: Likewise.
37653         * lib/freading.h: Likewise.
37654         * lib/free.c: Likewise.
37655         * lib/freopen.c: Likewise.
37656         * lib/frexp.c: Likewise.
37657         * lib/frexpl.c: Likewise.
37658         * lib/fseek.c: Likewise.
37659         * lib/fseterr.c: Likewise.
37660         * lib/fseterr.h: Likewise.
37661         * lib/fstatat.c: Likewise.
37662         * lib/fstrcmp.c: Likewise.
37663         * lib/fstrcmp.h: Likewise.
37664         * lib/fsusage.c: Likewise.
37665         * lib/fsusage.h: Likewise.
37666         * lib/ftell.c: Likewise.
37667         * lib/ftello.c: Likewise.
37668         * lib/fts-cycle.c: Likewise.
37669         * lib/fts.c: Likewise.
37670         * lib/fts_.h: Likewise.
37671         * lib/full-read.c: Likewise.
37672         * lib/full-read.h: Likewise.
37673         * lib/full-write.c: Likewise.
37674         * lib/full-write.h: Likewise.
37675         * lib/fwritable.c: Likewise.
37676         * lib/fwritable.h: Likewise.
37677         * lib/fwriteerror.c: Likewise.
37678         * lib/fwriteerror.h: Likewise.
37679         * lib/fwriting.c: Likewise.
37680         * lib/fwriting.h: Likewise.
37681         * lib/gcd.c: Likewise.
37682         * lib/gcd.h: Likewise.
37683         * lib/getcwd.c: Likewise.
37684         * lib/getdate.h: Likewise.
37685         * lib/getdate.y: Likewise.
37686         * lib/getdomainname.c: Likewise.
37687         * lib/getdomainname.h: Likewise.
37688         * lib/getgroups.c: Likewise.
37689         * lib/gethostname.c: Likewise.
37690         * lib/gethrxtime.c: Likewise.
37691         * lib/gethrxtime.h: Likewise.
37692         * lib/getloadavg.c: Likewise.
37693         * lib/getndelim2.c: Likewise.
37694         * lib/getndelim2.h: Likewise.
37695         * lib/getnline.c: Likewise.
37696         * lib/getnline.h: Likewise.
37697         * lib/getopt.c: Likewise.
37698         * lib/getopt.in.h: Likewise.
37699         * lib/getopt1.c: Likewise.
37700         * lib/getopt_int.h: Likewise.
37701         * lib/getpagesize.h: Likewise.
37702         * lib/getsubopt.c: Likewise.
37703         * lib/gettime.c: Likewise.
37704         * lib/getugroups.c: Likewise.
37705         * lib/getugroups.h: Likewise.
37706         * lib/getusershell.c: Likewise.
37707         * lib/gl_anyavltree_list1.h: Likewise.
37708         * lib/gl_anyavltree_list2.h: Likewise.
37709         * lib/gl_anyhash_list1.h: Likewise.
37710         * lib/gl_anyhash_list2.h: Likewise.
37711         * lib/gl_anylinked_list1.h: Likewise.
37712         * lib/gl_anylinked_list2.h: Likewise.
37713         * lib/gl_anyrbtree_list1.h: Likewise.
37714         * lib/gl_anyrbtree_list2.h: Likewise.
37715         * lib/gl_anytree_list1.h: Likewise.
37716         * lib/gl_anytree_list2.h: Likewise.
37717         * lib/gl_anytree_oset.h: Likewise.
37718         * lib/gl_anytreehash_list1.h: Likewise.
37719         * lib/gl_anytreehash_list2.h: Likewise.
37720         * lib/gl_array_list.c: Likewise.
37721         * lib/gl_array_list.h: Likewise.
37722         * lib/gl_array_oset.c: Likewise.
37723         * lib/gl_array_oset.h: Likewise.
37724         * lib/gl_avltree_list.c: Likewise.
37725         * lib/gl_avltree_list.h: Likewise.
37726         * lib/gl_avltree_oset.c: Likewise.
37727         * lib/gl_avltree_oset.h: Likewise.
37728         * lib/gl_avltreehash_list.c: Likewise.
37729         * lib/gl_avltreehash_list.h: Likewise.
37730         * lib/gl_carray_list.c: Likewise.
37731         * lib/gl_carray_list.h: Likewise.
37732         * lib/gl_linked_list.c: Likewise.
37733         * lib/gl_linked_list.h: Likewise.
37734         * lib/gl_linkedhash_list.c: Likewise.
37735         * lib/gl_linkedhash_list.h: Likewise.
37736         * lib/gl_list.c: Likewise.
37737         * lib/gl_list.h: Likewise.
37738         * lib/gl_oset.c: Likewise.
37739         * lib/gl_oset.h: Likewise.
37740         * lib/gl_rbtree_list.c: Likewise.
37741         * lib/gl_rbtree_list.h: Likewise.
37742         * lib/gl_rbtree_oset.c: Likewise.
37743         * lib/gl_rbtree_oset.h: Likewise.
37744         * lib/gl_rbtreehash_list.c: Likewise.
37745         * lib/gl_rbtreehash_list.h: Likewise.
37746         * lib/gl_sublist.c: Likewise.
37747         * lib/gl_sublist.h: Likewise.
37748         * lib/group-member.c: Likewise.
37749         * lib/group-member.h: Likewise.
37750         * lib/hard-locale.c: Likewise.
37751         * lib/hard-locale.h: Likewise.
37752         * lib/hash-pjw.c: Likewise.
37753         * lib/hash-pjw.h: Likewise.
37754         * lib/hash-triple.c: Likewise.
37755         * lib/hash.c: Likewise.
37756         * lib/hash.h: Likewise.
37757         * lib/human.c: Likewise.
37758         * lib/human.h: Likewise.
37759         * lib/i-ring.c: Likewise.
37760         * lib/i-ring.h: Likewise.
37761         * lib/idcache.c: Likewise.
37762         * lib/imaxabs.c: Likewise.
37763         * lib/imaxdiv.c: Likewise.
37764         * lib/inet_pton.c: Likewise.
37765         * lib/inet_pton.h: Likewise.
37766         * lib/intprops.h: Likewise.
37767         * lib/inttostr.c: Likewise.
37768         * lib/inttostr.h: Likewise.
37769         * lib/inttypes.in.h: Likewise.
37770         * lib/isapipe.c: Likewise.
37771         * lib/isdir.c: Likewise.
37772         * lib/isnan.c: Likewise.
37773         * lib/isnan.h: Likewise.
37774         * lib/isnanf.c: Likewise.
37775         * lib/isnanf.h: Likewise.
37776         * lib/isnanl-nolibm.h: Likewise.
37777         * lib/isnanl.c: Likewise.
37778         * lib/isnanl.h: Likewise.
37779         * lib/javacomp.c: Likewise.
37780         * lib/javacomp.h: Likewise.
37781         * lib/javaexec.c: Likewise.
37782         * lib/javaexec.h: Likewise.
37783         * lib/javaversion.c: Likewise.
37784         * lib/javaversion.h: Likewise.
37785         * lib/javaversion.java: Likewise.
37786         * lib/lbrkprop.h: Likewise.
37787         * lib/lchmod.h: Likewise.
37788         * lib/lchown.c: Likewise.
37789         * lib/ldexpl.c: Likewise.
37790         * lib/linebreak.c: Likewise.
37791         * lib/linebreak.h: Likewise.
37792         * lib/linebuffer.c: Likewise.
37793         * lib/linebuffer.h: Likewise.
37794         * lib/locale.in.h: Likewise.
37795         * lib/logl.c: Likewise.
37796         * lib/long-options.c: Likewise.
37797         * lib/long-options.h: Likewise.
37798         * lib/lstat.c: Likewise.
37799         * lib/lstat.h: Likewise.
37800         * lib/math.in.h: Likewise.
37801         * lib/mbchar.c: Likewise.
37802         * lib/mbchar.h: Likewise.
37803         * lib/mbfile.h: Likewise.
37804         * lib/mbiter.h: Likewise.
37805         * lib/mbscasecmp.c: Likewise.
37806         * lib/mbscasestr.c: Likewise.
37807         * lib/mbschr.c: Likewise.
37808         * lib/mbscspn.c: Likewise.
37809         * lib/mbslen.c: Likewise.
37810         * lib/mbsncasecmp.c: Likewise.
37811         * lib/mbsnlen.c: Likewise.
37812         * lib/mbspbrk.c: Likewise.
37813         * lib/mbspcasecmp.c: Likewise.
37814         * lib/mbsrchr.c: Likewise.
37815         * lib/mbssep.c: Likewise.
37816         * lib/mbsspn.c: Likewise.
37817         * lib/mbsstr.c: Likewise.
37818         * lib/mbstok_r.c: Likewise.
37819         * lib/mbswidth.c: Likewise.
37820         * lib/mbswidth.h: Likewise.
37821         * lib/mbuiter.h: Likewise.
37822         * lib/memcasecmp.c: Likewise.
37823         * lib/memcasecmp.h: Likewise.
37824         * lib/memchr.c: Likewise.
37825         * lib/memcmp.c: Likewise.
37826         * lib/memcoll.c: Likewise.
37827         * lib/memcoll.h: Likewise.
37828         * lib/memcpy.c: Likewise.
37829         * lib/memrchr.c: Likewise.
37830         * lib/mkancesdirs.c: Likewise.
37831         * lib/mkdir-p.c: Likewise.
37832         * lib/mkdir-p.h: Likewise.
37833         * lib/mkdir.c: Likewise.
37834         * lib/mkdirat.c: Likewise.
37835         * lib/mkdtemp.c: Likewise.
37836         * lib/mkstemp-safer.c: Likewise.
37837         * lib/mkstemp.c: Likewise.
37838         * lib/modechange.c: Likewise.
37839         * lib/modechange.h: Likewise.
37840         * lib/mountlist.c: Likewise.
37841         * lib/mountlist.h: Likewise.
37842         * lib/mpsort.c: Likewise.
37843         * lib/nanosleep.c: Likewise.
37844         * lib/obstack.c: Likewise.
37845         * lib/obstack.h: Likewise.
37846         * lib/open-safer.c: Likewise.
37847         * lib/open.c: Likewise.
37848         * lib/openat-die.c: Likewise.
37849         * lib/openat-priv.h: Likewise.
37850         * lib/openat-proc.c: Likewise.
37851         * lib/openat.c: Likewise.
37852         * lib/openat.h: Likewise.
37853         * lib/pagealign_alloc.c: Likewise.
37854         * lib/pagealign_alloc.h: Likewise.
37855         * lib/physmem.c: Likewise.
37856         * lib/physmem.h: Likewise.
37857         * lib/pipe-safer.c: Likewise.
37858         * lib/pipe.c: Likewise.
37859         * lib/pipe.h: Likewise.
37860         * lib/posixtm.c: Likewise.
37861         * lib/posixtm.h: Likewise.
37862         * lib/posixver.c: Likewise.
37863         * lib/printf-frexp.c: Likewise.
37864         * lib/printf-frexp.h: Likewise.
37865         * lib/printf-frexpl.c: Likewise.
37866         * lib/printf-frexpl.h: Likewise.
37867         * lib/printf.c: Likewise.
37868         * lib/progname.c: Likewise.
37869         * lib/progname.h: Likewise.
37870         * lib/progreloc.c: Likewise.
37871         * lib/putenv.c: Likewise.
37872         * lib/quote.c: Likewise.
37873         * lib/quote.h: Likewise.
37874         * lib/quotearg.c: Likewise.
37875         * lib/quotearg.h: Likewise.
37876         * lib/raise.c: Likewise.
37877         * lib/readline.c: Likewise.
37878         * lib/readline.h: Likewise.
37879         * lib/readlink.c: Likewise.
37880         * lib/readtokens.c: Likewise.
37881         * lib/readtokens.h: Likewise.
37882         * lib/readtokens0.c: Likewise.
37883         * lib/readtokens0.h: Likewise.
37884         * lib/readutmp.c: Likewise.
37885         * lib/readutmp.h: Likewise.
37886         * lib/realloc.c: Likewise.
37887         * lib/relocwrapper.c: Likewise.
37888         * lib/rename-dest-slash.c: Likewise.
37889         * lib/rename.c: Likewise.
37890         * lib/rmdir.c: Likewise.
37891         * lib/rpmatch.c: Likewise.
37892         * lib/safe-read.c: Likewise.
37893         * lib/safe-read.h: Likewise.
37894         * lib/safe-write.c: Likewise.
37895         * lib/safe-write.h: Likewise.
37896         * lib/same-inode.h: Likewise.
37897         * lib/same.c: Likewise.
37898         * lib/same.h: Likewise.
37899         * lib/save-cwd.c: Likewise.
37900         * lib/save-cwd.h: Likewise.
37901         * lib/savedir.c: Likewise.
37902         * lib/savedir.h: Likewise.
37903         * lib/savewd.c: Likewise.
37904         * lib/savewd.h: Likewise.
37905         * lib/search.in.h: Likewise.
37906         * lib/setenv.c: Likewise.
37907         * lib/setenv.h: Likewise.
37908         * lib/settime.c: Likewise.
37909         * lib/sh-quote.c: Likewise.
37910         * lib/sh-quote.h: Likewise.
37911         * lib/sig2str.c: Likewise.
37912         * lib/sig2str.h: Likewise.
37913         * lib/signal.in.h: Likewise.
37914         * lib/signbitd.c: Likewise.
37915         * lib/signbitf.c: Likewise.
37916         * lib/signbitl.c: Likewise.
37917         * lib/sigprocmask.c: Likewise.
37918         * lib/sincosl.c: Likewise.
37919         * lib/sleep.c: Likewise.
37920         * lib/sprintf.c: Likewise.
37921         * lib/sqrtl.c: Likewise.
37922         * lib/stat-time.h: Likewise.
37923         * lib/stdio--.h: Likewise.
37924         * lib/stdio-safer.h: Likewise.
37925         * lib/stdlib--.h: Likewise.
37926         * lib/stdlib-safer.h: Likewise.
37927         * lib/stdlib.in.h: Likewise.
37928         * lib/stpcpy.c: Likewise.
37929         * lib/stpncpy.c: Likewise.
37930         * lib/strchrnul.c: Likewise.
37931         * lib/strcspn.c: Likewise.
37932         * lib/strerror.c: Likewise.
37933         * lib/strftime.c: Likewise.
37934         * lib/strftime.h: Likewise.
37935         * lib/striconveh.c: Likewise.
37936         * lib/striconveh.h: Likewise.
37937         * lib/striconveha.c: Likewise.
37938         * lib/striconveha.h: Likewise.
37939         * lib/stripslash.c: Likewise.
37940         * lib/strnlen1.c: Likewise.
37941         * lib/strnlen1.h: Likewise.
37942         * lib/strtod.c: Likewise.
37943         * lib/strtoimax.c: Likewise.
37944         * lib/strtok_r.c: Likewise.
37945         * lib/strtol.c: Likewise.
37946         * lib/strtoll.c: Likewise.
37947         * lib/strtoul.c: Likewise.
37948         * lib/strtoull.c: Likewise.
37949         * lib/sysexits.in.h: Likewise.
37950         * lib/tempname.c: Likewise.
37951         * lib/tempname.h: Likewise.
37952         * lib/timespec.h: Likewise.
37953         * lib/tls.c: Likewise.
37954         * lib/tls.h: Likewise.
37955         * lib/tmpdir.c: Likewise.
37956         * lib/tmpdir.h: Likewise.
37957         * lib/tmpfile-safer.c: Likewise.
37958         * lib/tmpfile.c: Likewise.
37959         * lib/trigl.c: Likewise.
37960         * lib/trigl.h: Likewise.
37961         * lib/trim.c: Likewise.
37962         * lib/trim.h: Likewise.
37963         * lib/trunc.c: Likewise.
37964         * lib/truncf.c: Likewise.
37965         * lib/truncl.c: Likewise.
37966         * lib/tsearch.c: Likewise.
37967         * lib/unicodeio.c: Likewise.
37968         * lib/unicodeio.h: Likewise.
37969         * lib/unistd--.h: Likewise.
37970         * lib/unistd-safer.h: Likewise.
37971         * lib/unistdio/ulc-fprintf.c: Likewise.
37972         * lib/unistdio/ulc-vfprintf.c: Likewise.
37973         * lib/unlinkdir.c: Likewise.
37974         * lib/unlinkdir.h: Likewise.
37975         * lib/unlocked-io.h: Likewise.
37976         * lib/unsetenv.c: Likewise.
37977         * lib/userspec.c: Likewise.
37978         * lib/utime.c: Likewise.
37979         * lib/utimecmp.c: Likewise.
37980         * lib/utimecmp.h: Likewise.
37981         * lib/utimens.c: Likewise.
37982         * lib/verify.h: Likewise.
37983         * lib/verror.c: Likewise.
37984         * lib/verror.h: Likewise.
37985         * lib/version-etc-fsf.c: Likewise.
37986         * lib/version-etc.c: Likewise.
37987         * lib/version-etc.h: Likewise.
37988         * lib/vfprintf.c: Likewise.
37989         * lib/vprintf.c: Likewise.
37990         * lib/vsprintf.c: Likewise.
37991         * lib/w32spawn.h: Likewise.
37992         * lib/wait-process.c: Likewise.
37993         * lib/wait-process.h: Likewise.
37994         * lib/wcwidth.c: Likewise.
37995         * lib/write-any-file.c: Likewise.
37996         * lib/xalloc-die.c: Likewise.
37997         * lib/xalloc.h: Likewise.
37998         * lib/xasprintf.c: Likewise.
37999         * lib/xgetcwd.c: Likewise.
38000         * lib/xgetcwd.h: Likewise.
38001         * lib/xgetdomainname.c: Likewise.
38002         * lib/xgetdomainname.h: Likewise.
38003         * lib/xgethostname.c: Likewise.
38004         * lib/xmalloc.c: Likewise.
38005         * lib/xmalloca.c: Likewise.
38006         * lib/xmalloca.h: Likewise.
38007         * lib/xmemcoll.c: Likewise.
38008         * lib/xnanosleep.c: Likewise.
38009         * lib/xreadlink.c: Likewise.
38010         * lib/xreadlink.h: Likewise.
38011         * lib/xsetenv.c: Likewise.
38012         * lib/xsetenv.h: Likewise.
38013         * lib/xstriconv.c: Likewise.
38014         * lib/xstriconv.h: Likewise.
38015         * lib/xstrndup.c: Likewise.
38016         * lib/xstrndup.h: Likewise.
38017         * lib/xstrtod.c: Likewise.
38018         * lib/xstrtod.h: Likewise.
38019         * lib/xstrtol-error.c: Likewise.
38020         * lib/xstrtol.c: Likewise.
38021         * lib/xstrtol.h: Likewise.
38022         * lib/xtime.h: Likewise.
38023         * lib/xvasprintf.c: Likewise.
38024         * lib/xvasprintf.h: Likewise.
38025         * lib/yesno.c: Likewise.
38026         * lib/yesno.h: Likewise.
38027         * posix-modules: Likewise.
38028         * tests/test-alloca-opt.c: Likewise.
38029         * tests/test-arcfour.c: Likewise.
38030         * tests/test-arctwo.c: Likewise.
38031         * tests/test-argmatch.c: Likewise.
38032         * tests/test-argp-2.sh: Likewise.
38033         * tests/test-argp.c: Likewise.
38034         * tests/test-arpa_inet.c: Likewise.
38035         * tests/test-array_list.c: Likewise.
38036         * tests/test-array_oset.c: Likewise.
38037         * tests/test-atexit.c: Likewise.
38038         * tests/test-avltree_list.c: Likewise.
38039         * tests/test-avltree_oset.c: Likewise.
38040         * tests/test-avltreehash_list.c: Likewise.
38041         * tests/test-base64.c: Likewise.
38042         * tests/test-binary-io.c: Likewise.
38043         * tests/test-byteswap.c: Likewise.
38044         * tests/test-c-ctype.c: Likewise.
38045         * tests/test-c-strcasecmp.c: Likewise.
38046         * tests/test-c-strcasestr.c: Likewise.
38047         * tests/test-c-strncasecmp.c: Likewise.
38048         * tests/test-c-strstr.c: Likewise.
38049         * tests/test-canonicalize-lgpl.c: Likewise.
38050         * tests/test-canonicalize.c: Likewise.
38051         * tests/test-carray_list.c: Likewise.
38052         * tests/test-ceilf.c: Likewise.
38053         * tests/test-ceill.c: Likewise.
38054         * tests/test-count-one-bits.c: Likewise.
38055         * tests/test-crc.c: Likewise.
38056         * tests/test-dirname.c: Likewise.
38057         * tests/test-fbufmode.c: Likewise.
38058         * tests/test-fcntl.c: Likewise.
38059         * tests/test-fflush.c: Likewise.
38060         * tests/test-floorf.c: Likewise.
38061         * tests/test-floorl.c: Likewise.
38062         * tests/test-fopen.c: Likewise.
38063         * tests/test-fprintf-posix.c: Likewise.
38064         * tests/test-fprintf-posix.h: Likewise.
38065         * tests/test-fpurge.c: Likewise.
38066         * tests/test-freadable.c: Likewise.
38067         * tests/test-freadahead.c: Likewise.
38068         * tests/test-freading.c: Likewise.
38069         * tests/test-freopen.c: Likewise.
38070         * tests/test-frexp.c: Likewise.
38071         * tests/test-frexpl.c: Likewise.
38072         * tests/test-fseek.c: Likewise.
38073         * tests/test-fseeko.c: Likewise.
38074         * tests/test-fseterr.c: Likewise.
38075         * tests/test-fstrcmp.c: Likewise.
38076         * tests/test-ftell.c: Likewise.
38077         * tests/test-ftello.c: Likewise.
38078         * tests/test-fwritable.c: Likewise.
38079         * tests/test-fwriting.c: Likewise.
38080         * tests/test-getaddrinfo.c: Likewise.
38081         * tests/test-getpass.c: Likewise.
38082         * tests/test-gettimeofday.c: Likewise.
38083         * tests/test-hmac-md5.c: Likewise.
38084         * tests/test-hmac-sha1.c: Likewise.
38085         * tests/test-iconv.c: Likewise.
38086         * tests/test-iconvme.c: Likewise.
38087         * tests/test-inttypes.c: Likewise.
38088         * tests/test-isnan.c: Likewise.
38089         * tests/test-isnanf.c: Likewise.
38090         * tests/test-isnanl-nolibm.c: Likewise.
38091         * tests/test-isnanl.c: Likewise.
38092         * tests/test-isnanl.h: Likewise.
38093         * tests/test-ldexpl.c: Likewise.
38094         * tests/test-linked_list.c: Likewise.
38095         * tests/test-linkedhash_list.c: Likewise.
38096         * tests/test-locale.c: Likewise.
38097         * tests/test-localename.c: Likewise.
38098         * tests/test-lock.c: Likewise.
38099         * tests/test-lseek.c: Likewise.
38100         * tests/test-malloca.c: Likewise.
38101         * tests/test-math.c: Likewise.
38102         * tests/test-mbscasecmp.c: Likewise.
38103         * tests/test-mbscasestr1.c: Likewise.
38104         * tests/test-mbscasestr2.c: Likewise.
38105         * tests/test-mbscasestr3.c: Likewise.
38106         * tests/test-mbscasestr4.c: Likewise.
38107         * tests/test-mbschr.c: Likewise.
38108         * tests/test-mbscspn.c: Likewise.
38109         * tests/test-mbsncasecmp.c: Likewise.
38110         * tests/test-mbspbrk.c: Likewise.
38111         * tests/test-mbspcasecmp.c: Likewise.
38112         * tests/test-mbsrchr.c: Likewise.
38113         * tests/test-mbsspn.c: Likewise.
38114         * tests/test-mbsstr1.c: Likewise.
38115         * tests/test-mbsstr2.c: Likewise.
38116         * tests/test-mbsstr3.c: Likewise.
38117         * tests/test-md5.c: Likewise.
38118         * tests/test-memmem.c: Likewise.
38119         * tests/test-netinet_in.c: Likewise.
38120         * tests/test-open.c: Likewise.
38121         * tests/test-printf-frexp.c: Likewise.
38122         * tests/test-printf-frexpl.c: Likewise.
38123         * tests/test-printf-posix.c: Likewise.
38124         * tests/test-printf-posix.h: Likewise.
38125         * tests/test-rbtree_list.c: Likewise.
38126         * tests/test-rbtree_oset.c: Likewise.
38127         * tests/test-rbtreehash_list.c: Likewise.
38128         * tests/test-read-file.c: Likewise.
38129         * tests/test-rijndael.c: Likewise.
38130         * tests/test-search.c: Likewise.
38131         * tests/test-signbit.c: Likewise.
38132         * tests/test-sleep.c: Likewise.
38133         * tests/test-snprintf-posix.c: Likewise.
38134         * tests/test-snprintf-posix.h: Likewise.
38135         * tests/test-snprintf.c: Likewise.
38136         * tests/test-sprintf-posix.c: Likewise.
38137         * tests/test-sprintf-posix.h: Likewise.
38138         * tests/test-stat-time.c: Likewise.
38139         * tests/test-stdbool.c: Likewise.
38140         * tests/test-stdint.c: Likewise.
38141         * tests/test-stdio.c: Likewise.
38142         * tests/test-stdlib.c: Likewise.
38143         * tests/test-stpncpy.c: Likewise.
38144         * tests/test-strcasestr.c: Likewise.
38145         * tests/test-striconv.c: Likewise.
38146         * tests/test-striconveh.c: Likewise.
38147         * tests/test-striconveha.c: Likewise.
38148         * tests/test-string.c: Likewise.
38149         * tests/test-sys_select.c: Likewise.
38150         * tests/test-sys_socket.c: Likewise.
38151         * tests/test-sys_stat.c: Likewise.
38152         * tests/test-sys_time.c: Likewise.
38153         * tests/test-sysexits.c: Likewise.
38154         * tests/test-time.c: Likewise.
38155         * tests/test-tls.c: Likewise.
38156         * tests/test-trunc.c: Likewise.
38157         * tests/test-truncf.c: Likewise.
38158         * tests/test-truncl.c: Likewise.
38159         * tests/test-unistd.c: Likewise.
38160         * tests/test-vasnprintf-posix.c: Likewise.
38161         * tests/test-vasnprintf-posix2.c: Likewise.
38162         * tests/test-vasnprintf.c: Likewise.
38163         * tests/test-vasprintf-posix.c: Likewise.
38164         * tests/test-vasprintf.c: Likewise.
38165         * tests/test-verify.c: Likewise.
38166         * tests/test-vfprintf-posix.c: Likewise.
38167         * tests/test-vprintf-posix.c: Likewise.
38168         * tests/test-vsnprintf-posix.c: Likewise.
38169         * tests/test-vsnprintf.c: Likewise.
38170         * tests/test-vsprintf-posix.c: Likewise.
38171         * tests/test-wchar.c: Likewise.
38172         * tests/test-wctype.c: Likewise.
38173         * tests/test-wcwidth.c: Likewise.
38174         * tests/test-xstrtol.c: Likewise.
38175         * tests/test-xvasprintf.c: Likewise.
38176         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38177         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38178         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38179         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38180         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38181         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38182         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38183         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38184         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38185         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38186         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38187         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38188         * tests/uniname/test-uninames.c: Likewise.
38189         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38190         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38191         * tests/unistdio/test-u16-printf1.h: Likewise.
38192         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38193         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38194         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38195         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38196         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38197         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38198         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38199         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38200         * tests/unistdio/test-u32-printf1.h: Likewise.
38201         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38202         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38203         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38204         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38205         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38206         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38207         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38208         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38209         * tests/unistdio/test-u8-printf1.h: Likewise.
38210         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38211         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38212         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38213         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38214         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38215         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38216         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38217         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38218         * tests/unistdio/test-ulc-printf1.h: Likewise.
38219         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38220         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38221         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38222         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38223         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38224         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38225         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38226         * tests/uniwidth/test-u16-width.c: Likewise.
38227         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38228         * tests/uniwidth/test-u32-width.c: Likewise.
38229         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38230         * tests/uniwidth/test-u8-width.c: Likewise.
38231         * tests/uniwidth/test-uc_width.c: Likewise.
38232         * config/srclist-update: Likewise.
38233         (fixlicense): Update to GPLv3+.
38234
38235         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38236         * tests/test-tsearch.c: Change copyright notice.
38237
38238         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38239         * lib/c-strcaseeq.h: Change copyright notice.
38240         * lib/streq.h: Likewise.
38241         * lib/uniconv.h: Likewise.
38242         * lib/uniconv/u-conv-from-enc.h: Likewise.
38243         * lib/uniconv/u-conv-to-enc.h: Likewise.
38244         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38245         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38246         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38247         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38248         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38249         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38250         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38251         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38252         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38253         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38254         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38255         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38256         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38257         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38258         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38259         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38260         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38261         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38262         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38263         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38264         * lib/uniname.h: Likewise.
38265         * lib/uniname/uniname.c: Likewise.
38266         * lib/unistdio.h: Likewise.
38267         * lib/unistdio/u-asnprintf.h: Likewise.
38268         * lib/unistdio/u-asprintf.h: Likewise.
38269         * lib/unistdio/u-printf-args.c: Likewise.
38270         * lib/unistdio/u-printf-args.h: Likewise.
38271         * lib/unistdio/u-printf-parse.h: Likewise.
38272         * lib/unistdio/u-snprintf.h: Likewise.
38273         * lib/unistdio/u-sprintf.h: Likewise.
38274         * lib/unistdio/u-vasprintf.h: Likewise.
38275         * lib/unistdio/u-vsnprintf.h: Likewise.
38276         * lib/unistdio/u-vsprintf.h: Likewise.
38277         * lib/unistdio/u16-asnprintf.c: Likewise.
38278         * lib/unistdio/u16-asprintf.c: Likewise.
38279         * lib/unistdio/u16-printf-parse.c: Likewise.
38280         * lib/unistdio/u16-snprintf.c: Likewise.
38281         * lib/unistdio/u16-sprintf.c: Likewise.
38282         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38283         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38284         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38285         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38286         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38287         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38288         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38289         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38290         * lib/unistdio/u16-vasnprintf.c: Likewise.
38291         * lib/unistdio/u16-vasprintf.c: Likewise.
38292         * lib/unistdio/u16-vsnprintf.c: Likewise.
38293         * lib/unistdio/u16-vsprintf.c: Likewise.
38294         * lib/unistdio/u32-asnprintf.c: Likewise.
38295         * lib/unistdio/u32-asprintf.c: Likewise.
38296         * lib/unistdio/u32-printf-parse.c: Likewise.
38297         * lib/unistdio/u32-snprintf.c: Likewise.
38298         * lib/unistdio/u32-sprintf.c: Likewise.
38299         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38300         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38301         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38302         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38303         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38304         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38305         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38306         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38307         * lib/unistdio/u32-vasnprintf.c: Likewise.
38308         * lib/unistdio/u32-vasprintf.c: Likewise.
38309         * lib/unistdio/u32-vsnprintf.c: Likewise.
38310         * lib/unistdio/u32-vsprintf.c: Likewise.
38311         * lib/unistdio/u8-asnprintf.c: Likewise.
38312         * lib/unistdio/u8-asprintf.c: Likewise.
38313         * lib/unistdio/u8-printf-parse.c: Likewise.
38314         * lib/unistdio/u8-snprintf.c: Likewise.
38315         * lib/unistdio/u8-sprintf.c: Likewise.
38316         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38317         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38318         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38319         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38320         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38321         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38322         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38323         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38324         * lib/unistdio/u8-vasnprintf.c: Likewise.
38325         * lib/unistdio/u8-vasprintf.c: Likewise.
38326         * lib/unistdio/u8-vsnprintf.c: Likewise.
38327         * lib/unistdio/u8-vsprintf.c: Likewise.
38328         * lib/unistdio/ulc-asnprintf.c: Likewise.
38329         * lib/unistdio/ulc-asprintf.c: Likewise.
38330         * lib/unistdio/ulc-printf-parse.c: Likewise.
38331         * lib/unistdio/ulc-snprintf.c: Likewise.
38332         * lib/unistdio/ulc-sprintf.c: Likewise.
38333         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38334         * lib/unistdio/ulc-vasprintf.c: Likewise.
38335         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38336         * lib/unistdio/ulc-vsprintf.c: Likewise.
38337         * lib/unistr.h: Likewise.
38338         * lib/unistr/u-cpy-alloc.h: Likewise.
38339         * lib/unistr/u-cpy.h: Likewise.
38340         * lib/unistr/u-endswith.h: Likewise.
38341         * lib/unistr/u-move.h: Likewise.
38342         * lib/unistr/u-set.h: Likewise.
38343         * lib/unistr/u-startswith.h: Likewise.
38344         * lib/unistr/u-stpcpy.h: Likewise.
38345         * lib/unistr/u-stpncpy.h: Likewise.
38346         * lib/unistr/u-strcat.h: Likewise.
38347         * lib/unistr/u-strcpy.h: Likewise.
38348         * lib/unistr/u-strcspn.h: Likewise.
38349         * lib/unistr/u-strdup.h: Likewise.
38350         * lib/unistr/u-strlen.h: Likewise.
38351         * lib/unistr/u-strncat.h: Likewise.
38352         * lib/unistr/u-strncpy.h: Likewise.
38353         * lib/unistr/u-strnlen.h: Likewise.
38354         * lib/unistr/u-strpbrk.h: Likewise.
38355         * lib/unistr/u-strspn.h: Likewise.
38356         * lib/unistr/u-strstr.h: Likewise.
38357         * lib/unistr/u-strtok.h: Likewise.
38358         * lib/unistr/u16-check.c: Likewise.
38359         * lib/unistr/u16-chr.c: Likewise.
38360         * lib/unistr/u16-cmp.c: Likewise.
38361         * lib/unistr/u16-cpy-alloc.c: Likewise.
38362         * lib/unistr/u16-cpy.c: Likewise.
38363         * lib/unistr/u16-endswith.c: Likewise.
38364         * lib/unistr/u16-mblen.c: Likewise.
38365         * lib/unistr/u16-mbsnlen.c: Likewise.
38366         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38367         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38368         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38369         * lib/unistr/u16-mbtouc.c: Likewise.
38370         * lib/unistr/u16-mbtoucr.c: Likewise.
38371         * lib/unistr/u16-move.c: Likewise.
38372         * lib/unistr/u16-next.c: Likewise.
38373         * lib/unistr/u16-prev.c: Likewise.
38374         * lib/unistr/u16-set.c: Likewise.
38375         * lib/unistr/u16-startswith.c: Likewise.
38376         * lib/unistr/u16-stpcpy.c: Likewise.
38377         * lib/unistr/u16-stpncpy.c: Likewise.
38378         * lib/unistr/u16-strcat.c: Likewise.
38379         * lib/unistr/u16-strchr.c: Likewise.
38380         * lib/unistr/u16-strcmp.c: Likewise.
38381         * lib/unistr/u16-strcpy.c: Likewise.
38382         * lib/unistr/u16-strcspn.c: Likewise.
38383         * lib/unistr/u16-strdup.c: Likewise.
38384         * lib/unistr/u16-strlen.c: Likewise.
38385         * lib/unistr/u16-strmblen.c: Likewise.
38386         * lib/unistr/u16-strmbtouc.c: Likewise.
38387         * lib/unistr/u16-strncat.c: Likewise.
38388         * lib/unistr/u16-strncmp.c: Likewise.
38389         * lib/unistr/u16-strncpy.c: Likewise.
38390         * lib/unistr/u16-strnlen.c: Likewise.
38391         * lib/unistr/u16-strpbrk.c: Likewise.
38392         * lib/unistr/u16-strrchr.c: Likewise.
38393         * lib/unistr/u16-strspn.c: Likewise.
38394         * lib/unistr/u16-strstr.c: Likewise.
38395         * lib/unistr/u16-strtok.c: Likewise.
38396         * lib/unistr/u16-to-u32.c: Likewise.
38397         * lib/unistr/u16-to-u8.c: Likewise.
38398         * lib/unistr/u16-uctomb-aux.c: Likewise.
38399         * lib/unistr/u16-uctomb.c: Likewise.
38400         * lib/unistr/u32-check.c: Likewise.
38401         * lib/unistr/u32-chr.c: Likewise.
38402         * lib/unistr/u32-cmp.c: Likewise.
38403         * lib/unistr/u32-cpy-alloc.c: Likewise.
38404         * lib/unistr/u32-cpy.c: Likewise.
38405         * lib/unistr/u32-endswith.c: Likewise.
38406         * lib/unistr/u32-mblen.c: Likewise.
38407         * lib/unistr/u32-mbsnlen.c: Likewise.
38408         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38409         * lib/unistr/u32-mbtouc.c: Likewise.
38410         * lib/unistr/u32-mbtoucr.c: Likewise.
38411         * lib/unistr/u32-move.c: Likewise.
38412         * lib/unistr/u32-next.c: Likewise.
38413         * lib/unistr/u32-prev.c: Likewise.
38414         * lib/unistr/u32-set.c: Likewise.
38415         * lib/unistr/u32-startswith.c: Likewise.
38416         * lib/unistr/u32-stpcpy.c: Likewise.
38417         * lib/unistr/u32-stpncpy.c: Likewise.
38418         * lib/unistr/u32-strcat.c: Likewise.
38419         * lib/unistr/u32-strchr.c: Likewise.
38420         * lib/unistr/u32-strcmp.c: Likewise.
38421         * lib/unistr/u32-strcpy.c: Likewise.
38422         * lib/unistr/u32-strcspn.c: Likewise.
38423         * lib/unistr/u32-strdup.c: Likewise.
38424         * lib/unistr/u32-strlen.c: Likewise.
38425         * lib/unistr/u32-strmblen.c: Likewise.
38426         * lib/unistr/u32-strmbtouc.c: Likewise.
38427         * lib/unistr/u32-strncat.c: Likewise.
38428         * lib/unistr/u32-strncmp.c: Likewise.
38429         * lib/unistr/u32-strncpy.c: Likewise.
38430         * lib/unistr/u32-strnlen.c: Likewise.
38431         * lib/unistr/u32-strpbrk.c: Likewise.
38432         * lib/unistr/u32-strrchr.c: Likewise.
38433         * lib/unistr/u32-strspn.c: Likewise.
38434         * lib/unistr/u32-strstr.c: Likewise.
38435         * lib/unistr/u32-strtok.c: Likewise.
38436         * lib/unistr/u32-to-u16.c: Likewise.
38437         * lib/unistr/u32-to-u8.c: Likewise.
38438         * lib/unistr/u32-uctomb.c: Likewise.
38439         * lib/unistr/u8-check.c: Likewise.
38440         * lib/unistr/u8-chr.c: Likewise.
38441         * lib/unistr/u8-cmp.c: Likewise.
38442         * lib/unistr/u8-cpy-alloc.c: Likewise.
38443         * lib/unistr/u8-cpy.c: Likewise.
38444         * lib/unistr/u8-endswith.c: Likewise.
38445         * lib/unistr/u8-mblen.c: Likewise.
38446         * lib/unistr/u8-mbsnlen.c: Likewise.
38447         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38448         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38449         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38450         * lib/unistr/u8-mbtouc.c: Likewise.
38451         * lib/unistr/u8-mbtoucr.c: Likewise.
38452         * lib/unistr/u8-move.c: Likewise.
38453         * lib/unistr/u8-next.c: Likewise.
38454         * lib/unistr/u8-prev.c: Likewise.
38455         * lib/unistr/u8-set.c: Likewise.
38456         * lib/unistr/u8-startswith.c: Likewise.
38457         * lib/unistr/u8-stpcpy.c: Likewise.
38458         * lib/unistr/u8-stpncpy.c: Likewise.
38459         * lib/unistr/u8-strcat.c: Likewise.
38460         * lib/unistr/u8-strchr.c: Likewise.
38461         * lib/unistr/u8-strcmp.c: Likewise.
38462         * lib/unistr/u8-strcpy.c: Likewise.
38463         * lib/unistr/u8-strcspn.c: Likewise.
38464         * lib/unistr/u8-strdup.c: Likewise.
38465         * lib/unistr/u8-strlen.c: Likewise.
38466         * lib/unistr/u8-strmblen.c: Likewise.
38467         * lib/unistr/u8-strmbtouc.c: Likewise.
38468         * lib/unistr/u8-strncat.c: Likewise.
38469         * lib/unistr/u8-strncmp.c: Likewise.
38470         * lib/unistr/u8-strncpy.c: Likewise.
38471         * lib/unistr/u8-strnlen.c: Likewise.
38472         * lib/unistr/u8-strpbrk.c: Likewise.
38473         * lib/unistr/u8-strrchr.c: Likewise.
38474         * lib/unistr/u8-strspn.c: Likewise.
38475         * lib/unistr/u8-strstr.c: Likewise.
38476         * lib/unistr/u8-strtok.c: Likewise.
38477         * lib/unistr/u8-to-u16.c: Likewise.
38478         * lib/unistr/u8-to-u32.c: Likewise.
38479         * lib/unistr/u8-uctomb-aux.c: Likewise.
38480         * lib/unistr/u8-uctomb.c: Likewise.
38481         * lib/unitypes.h: Likewise.
38482         * lib/uniwidth.h: Likewise.
38483         * lib/uniwidth/cjk.h: Likewise.
38484         * lib/uniwidth/u16-strwidth.c: Likewise.
38485         * lib/uniwidth/u16-width.c: Likewise.
38486         * lib/uniwidth/u32-strwidth.c: Likewise.
38487         * lib/uniwidth/u32-width.c: Likewise.
38488         * lib/uniwidth/u8-strwidth.c: Likewise.
38489         * lib/uniwidth/u8-width.c: Likewise.
38490         * lib/uniwidth/width.c: Likewise.
38491
38492 2007-10-07  Bruno Haible  <bruno@clisp.org>
38493
38494         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38495         The file is still under LGPL (see modules/inttypes).
38496
38497 2007-10-06  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/trunc (Dependencies): Add 'extensions'.
38500         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38501         Reported by Ben Pfaff <blp@gnu.org>.
38502
38503 2007-10-06  Bruno Haible  <bruno@clisp.org>
38504
38505         * modules/freopen-tests: New file.
38506         * tests/test-freopen.c: New file.
38507
38508         * modules/fopen-tests: New file.
38509         * tests/test-fopen.c: New file.
38510
38511         * modules/fopen: New file.
38512         * lib/fopen.c: New file.
38513         * m4/fopen.m4: New file.
38514         * modules/freopen: New file.
38515         * lib/freopen.c: New file.
38516         * m4/freopen.m4: New file.
38517         * lib/stdio.in.h (fopen, freopen): New declarations.
38518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38519         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38520         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38521         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38522         * doc/functions/fopen.texi: Mention the 'fopen' module.
38523         * doc/functions/freopen.texi: Mention the 'freopen' module.
38524
38525 2007-10-06  Bruno Haible  <bruno@clisp.org>
38526
38527         * modules/open-tests: New file.
38528         * tests/test-open.c: New file.
38529
38530         * modules/open: New file.
38531         * lib/open.c: New file.
38532         * m4/open.m4: New file.
38533         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38534         lib/open.c does.
38535         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38536         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38537         macros.
38538         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38539         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38540         REPLACE_OPEN.
38541         * doc/functions/open.texi: Mention the 'open' module.
38542
38543 2007-10-04  Bruno Haible  <bruno@clisp.org>
38544
38545         * modules/ceill-tests: New file.
38546         * tests/test-ceill.c: New file.
38547
38548         * modules/ceill: New file.
38549         * lib/ceill.c: Replace entire file.
38550         * m4/ceill.m4: New file.
38551         * lib/math.in.h (ceill): Replace declaration.
38552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38553         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38554         * doc/functions/ceill.texi: Mention the 'ceill' module.
38555         * modules/mathl (Files): Remove lib/ceill.c.
38556         (Depends-on): Add ceill.
38557
38558 2007-10-04  Bruno Haible  <bruno@clisp.org>
38559
38560         * modules/ceilf-tests: New file.
38561         * tests/test-ceilf.c: New file.
38562
38563         * modules/ceilf: New file.
38564         * lib/ceil.c: New file.
38565         * lib/ceilf.c: New file.
38566         * m4/ceilf.m4: New file.
38567         * lib/math.in.h (ceilf): New declaration.
38568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38569         HAVE_DECL_CEILF.
38570         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38571         HAVE_DECL_CEILF.
38572         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38573
38574 2007-10-04  Bruno Haible  <bruno@clisp.org>
38575
38576         * modules/floorl-tests: New file.
38577         * tests/test-floorl.c: New file.
38578
38579         * modules/floorl: New file.
38580         * lib/floorl.c: Replace entire file.
38581         * m4/floorl.m4: New file.
38582         * lib/math.in.h (floorl): Replace declaration.
38583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38584         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38585         * doc/functions/floorl.texi: Mention the 'floorl' module.
38586         * modules/mathl (Files): Remove lib/floorl.c.
38587         (Depends-on): Add floorl.
38588
38589 2007-10-04  Bruno Haible  <bruno@clisp.org>
38590
38591         * modules/floorf-tests: New file.
38592         * tests/test-floorf.c: New file.
38593
38594         * modules/floorf: New file.
38595         * lib/floor.c: New file.
38596         * lib/floorf.c: New file.
38597         * m4/floorf.m4: New file.
38598         * lib/math.in.h (floorf): New declaration.
38599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38600         HAVE_DECL_FLOORF.
38601         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38602         HAVE_DECL_FLOORF.
38603         * doc/functions/floorf.texi: Mention the 'floorf' module.
38604
38605 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38606             Bruno Haible  <bruno@clisp.org>
38607
38608         Advertise for the Git server instead of the CVS server.
38609         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38610         repository instead of the CVS one.
38611         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38612         about all VCS systems generically.
38613         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38614
38615 2007-10-04  Bruno Haible  <bruno@clisp.org>
38616
38617         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38618         means.
38619         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38620
38621 2007-10-04  Bruno Haible  <bruno@clisp.org>
38622
38623         * modules/truncl-tests: New file.
38624         * tests/test-truncl.c: New file.
38625
38626         * modules/truncl: New file.
38627         * lib/truncl.c: New file.
38628         * m4/truncl.m4: New file.
38629         * lib/math.in.h (truncl): New declaration.
38630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38631         HAVE_DECL_TRUNCL.
38632         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38633         HAVE_DECL_TRUNCL.
38634         * doc/functions/truncl.texi: Mention the 'truncl' module.
38635
38636 2007-10-04  Bruno Haible  <bruno@clisp.org>
38637
38638         * modules/truncf-tests: New file.
38639         * tests/test-truncf.c: New file.
38640
38641         * modules/truncf: New file.
38642         * lib/trunc.c: Make paramerizable through USE_* macros.
38643         * lib/truncf.c: New file.
38644         * m4/truncf.m4: New file.
38645         * lib/math.in.h (truncf): New declaration.
38646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38647         HAVE_DECL_TRUNCF.
38648         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38649         HAVE_DECL_TRUNCF.
38650         * doc/functions/truncf.texi: Mention the 'truncf' module.
38651
38652 2007-10-03  Bruno Haible  <bruno@clisp.org>
38653
38654         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38655         augmentation also for tests modules.
38656         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38657         * modules/atexit-tests (Makefile.am): Likewise.
38658         * modules/binary-io-tests (Makefile.am): Likewise.
38659         * modules/c-strcase-tests (Makefile.am): Likewise.
38660         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38661         * modules/canonicalize-tests (Makefile.am): Likewise.
38662         * modules/closein-tests (Makefile.am): Likewise.
38663         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38664         * modules/freadahead-tests (Makefile.am): Likewise.
38665         * modules/fseek-tests (Makefile.am): Likewise.
38666         * modules/fseeko-tests (Makefile.am): Likewise.
38667         * modules/ftell-tests (Makefile.am): Likewise.
38668         * modules/ftello-tests (Makefile.am): Likewise.
38669         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38670         * modules/isnanl-tests (Makefile.am): Likewise.
38671         * modules/lseek-tests (Makefile.am): Likewise.
38672         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38673         * modules/mbscasestr-tests (Makefile.am): Likewise.
38674         * modules/mbschr-tests (Makefile.am): Likewise.
38675         * modules/mbscspn-tests (Makefile.am): Likewise.
38676         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38677         * modules/mbspbrk-tests (Makefile.am): Likewise.
38678         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38679         * modules/mbsrchr-tests (Makefile.am): Likewise.
38680         * modules/mbsspn-tests (Makefile.am): Likewise.
38681         * modules/mbsstr-tests (Makefile.am): Likewise.
38682         * modules/printf-posix-tests (Makefile.am): Likewise.
38683         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38684         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38685         * modules/tsearch-tests (Makefile.am): Likewise.
38686         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38687         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38688         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38689         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38690         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38691         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38692         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38693         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38694         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38695         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38696         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38697         * modules/xstrtol-tests (Makefile.am): Likewise.
38698         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38699         * modules/yesno-tests (Makefile.am): Likewise.
38700
38701 2007-10-03  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/trunc-tests: New file.
38704         * tests/test-trunc.c: New file.
38705
38706         * modules/trunc: New file.
38707         * lib/trunc.c: New file.
38708         * m4/trunc.m4: New file.
38709         * lib/math.in.h (trunc): New declaration.
38710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38711         HAVE_DECL_TRUNC.
38712         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38713         HAVE_DECL_TRUNC.
38714         * doc/functions/trunc.texi: Mention the 'trunc' module.
38715
38716 2007-10-03  Bruno Haible  <bruno@clisp.org>
38717
38718         * tests/test-fpending.c: New file, mostly copied
38719         from coreutils/lib/t-fpending.c.
38720         * modules/fpending-tests: New file.
38721
38722 2007-10-03  Bruno Haible  <bruno@clisp.org>
38723
38724         Port the stdio extensions to QNX (untested).
38725         * lib/fseterr.c (fseterr): Add support for QNX.
38726         * lib/fbufmode.c (fbufmode): Likewise.
38727         * lib/freadable.c (freadable): Likewise.
38728         * lib/fwritable.c (fwritable): Likewise.
38729         * lib/freading.c (freading): Likewise.
38730         * lib/fwriting.c (fwriting): Likewise.
38731         * lib/freadahead.c (freadahed): Likewise.
38732         * lib/fpurge.c (fpurge): Likewise.
38733         * lib/fseeko.c (rpl_fseeko): Likewise.
38734
38735 2007-10-03  Bruno Haible  <bruno@clisp.org>
38736             Jim Meyering  <jim@meyering.net>
38737             Eric Blake  <ebb9@byu.net>
38738
38739         * doc/relocatable.texi: Use @command instead of @program.
38740
38741 2007-10-02  Jim Meyering  <jim@meyering.net>
38742
38743         Perform one more "_.h" -> ".in.h" substitution.
38744         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38745         instead of unistd_.h here, too.
38746
38747 2007-10-01  Bruno Haible  <bruno@clisp.org>
38748
38749         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38750         Needed for the alloca-opt module.
38751
38752 2007-09-30  Bruno Haible  <bruno@clisp.org>
38753
38754         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38755         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38756         alloca_.h.
38757         * lib/argz.in.h: Renamed from lib/argz_.h.
38758         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38759         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38760         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38761         byteswap_.h.
38762         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38763         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38764         dirent_.h.
38765         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38766         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38767         fcntl_.h.
38768         * lib/float.in.h: Renamed from lib/float_.h.
38769         * modules/float (Files, Makefile.am): Use float.in.h instead of
38770         float_.h.
38771         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38772         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38773         fnmatch_.h.
38774         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38775         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38776         getopt_.h.
38777         * lib/glob.in.h: Renamed from lib/glob_.h.
38778         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38779         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38780         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38781         iconv_.h.
38782         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38783         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38784         inttypes_.h.
38785         * lib/locale.in.h: Renamed from lib/locale_.h.
38786         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38787         locale_.h.
38788         * lib/math.in.h: Renamed from lib/math_.h.
38789         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38790         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38791         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38792         of netinet_in_.h. Add dependency.
38793         * lib/poll.in.h: Renamed from lib/poll_.h.
38794         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38795         * lib/search.in.h: Renamed from lib/search_.h.
38796         * modules/search (Files, Makefile.am): Use search.in.h instead of
38797         search_.h.
38798         * lib/signal.in.h: Renamed from lib/signal_.h.
38799         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38800         _signal.h.
38801         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38802         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38803         stdbool_.h.
38804         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38805         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38806         stdint_.h.
38807         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38808         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38809         stdio_.h.
38810         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38811         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38812         stdlib_.h.
38813         * lib/string.in.h: Renamed from lib/string_.h.
38814         * modules/string (Files, Makefile.am): Use string.in.h instead of
38815         string_.h.
38816         * doc/gnulib-tool.texi (Initial import): Update.
38817         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38818         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38819         of sys_select_.h. Add dependency.
38820         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38821         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38822         of sys_socket_.h.
38823         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38824         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38825         sys_stat_.h.
38826         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38827         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38828         sys_time_.h.
38829         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38830         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38831         sysexits_.h.
38832         * lib/time.in.h: Renamed from lib/time_.h.
38833         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38834         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38835         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38836         unistd_.h.
38837         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38838         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38839         wchar_.h.
38840         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38841         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38842         wctype_.h.
38843         * build-aux/bootstrap (slurp): Update.
38844         * lib/.cppi-disable: Update.
38845
38846 2007-09-30  Bruno Haible  <bruno@clisp.org>
38847
38848         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38849         Needed on BeOS.
38850
38851 2007-09-30  Bruno Haible  <bruno@clisp.org>
38852
38853         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38854
38855 2007-09-29  Bruno Haible  <bruno@clisp.org>
38856
38857         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38858
38859 2007-09-29  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38862         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38863         * build-aux/install-reloc: Compile also areadlink.c.
38864         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38865
38866 2007-09-29  Bruno Haible  <bruno@clisp.org>
38867
38868         * gnulib-tool (func_emit_initmacro_done): Indentation.
38869
38870 2007-09-29  Bruno Haible  <bruno@clisp.org>
38871
38872         * README: Add CVS checkout update instructions.
38873         Info from Bob Proulx <bob@proulx.com>.
38874
38875 2007-09-28  Eric Blake  <ebb9@byu.net>
38876
38877         Provide move-if-change.
38878         * build-aux/move-if-change: New file, based on best practice
38879         rather than any canonical upstream location.
38880
38881 2007-09-28  Jim Meyering  <jim@meyering.net>
38882
38883         Fix canonicalize loop-detection corner case.
38884         Do not attempt to stat the symlink values stored via seen_triple.
38885         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38886         on linux-2.6.18, (but not 2.6.22).
38887         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38888         triple_compare.  The former compares dev,ino,filename, while the latter
38889         would actually stat dirname(filename) when dev and ino were equal.
38890         * lib/hash-triple.c: Install <string.h>.
38891         (STREQ): Define.
38892         (triple_compare_ino_str): New function.
38893         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38894
38895 2007-09-28  Eric Blake  <ebb9@byu.net>
38896
38897         Enforce that AC_REPLACE_FUNCS files exist.
38898         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38899         override check for typos.
38900
38901         Fix test-closein on Solaris 10.
38902         * tests/test-closein.c (main): Don't assume stdin can be inherited
38903         closed on all systems.
38904         * tests/test-closein.sh: Likewise.
38905         Reported by Piotr Tarnowski.
38906
38907 2007-09-28  Jim Meyering  <jim@meyering.net>
38908
38909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38910
38911 2007-09-27  Jim Meyering  <jim@meyering.net>
38912
38913         canonicalize: Avoid a false-positive cycle failure.
38914         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38915         Sort.  Remove cycle-check.
38916         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38917         not cycle-check.h.
38918         (seen_triple): New function.
38919         (canonicalize_filename_mode): Use it instead of cycle-check.
38920         * tests/test-canonicalize.c: Add a test for this bug.
38921         * tests/test-canonicalize.sh: Set up and run the test.
38922
38923         New module, file-set, from coreutils.
38924         * modules/file-set: Define it.
38925         * lib/file-set.c, lib/file-set.h: Implement.
38926
38927         New module, hash-triple, from coreutils.
38928         * modules/hash-triple: Define it.
38929         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38930
38931 2007-09-25  Eric Blake  <ebb9@byu.net>
38932
38933         Fix strerror on Interix.
38934         * lib/string_.h (strerror): Declare replacement.
38935         * doc/functions/strerror.texi (strerror): Document the Interix
38936         shortcoming.
38937         * modules/string (Makefile.am): Support new hooks.
38938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38939         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38940         gl_FUNC_STRERROR_SEPARATE.
38941         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38942         * lib/strerror.c (rpl_strerror): Provide replacement.
38943         * modules/strerror (Depends-on): Add string.
38944         (configure.ac): Detect use of module.
38945         * tests/test-strerror.c: New file.
38946         * modules/strerror-tests: New test module.
38947         * modules/argp (Depends-on): Add strerror.
38948         * modules/error (Depends-on): Likewise.
38949         Reported by Martin Koeppe.
38950
38951 2007-09-24  Bruno Haible  <bruno@clisp.org>
38952
38953         * README: Update git instructions.
38954
38955 2007-09-24  Eric Blake  <ebb9@byu.net>
38956
38957         Revert fpending breakage from 2007-09-08.
38958         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38959         __fpending.c.
38960
38961 2007-09-24  Jim Meyering  <jim@meyering.net>
38962
38963         filenamecat.c: Add a test.
38964         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38965         showing how the function works when DIR is the empty string.
38966
38967 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38968
38969         * tests/test-canonicalize.sh: Turn on executable bit.
38970
38971 2007-09-19  Eric Blake  <ebb9@byu.net>
38972
38973         * README: Update CVS instructions.
38974
38975 2007-09-18  Bruno Haible  <bruno@clisp.org>
38976
38977         * modules/areadlink: New file.
38978         * lib/areadlink.h (areadlink): New declaration.
38979         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38980
38981 2007-09-17  Jim Meyering  <jim@meyering.net>
38982
38983         * lib/savewd.c (ESTALE) [!defined]: Define.
38984         Reported to be required on Interix by Martin Koeppe.
38985
38986 2007-09-17  Bruno Haible  <bruno@clisp.org>
38987
38988         * gnulib-tool (func_version): Use $version.
38989
38990 2007-09-16  Bruno Haible  <bruno@clisp.org>
38991
38992         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38993         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38994         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38995         Reported by Greg Schafer <gschafer@zip.com.au>.
38996
38997 2007-09-15  Bruno Haible  <bruno@clisp.org>
38998
38999         * gnulib-tool (sed): Try a little harder to make bash understand the
39000         alias.
39001         Reported by Bruce Korb <bruce.korb@gmail.com>.
39002
39003 2007-09-13  Eric Blake  <ebb9@byu.net>
39004
39005         * ChangeLog: Remove conflict markers.
39006
39007 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39008
39009         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39010         Reported by Bruno Haible <bruno@clisp.org>.
39011
39012 2007-09-12  Bruno Haible  <bruno@clisp.org>
39013
39014         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39015         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39016         is not defined.
39017
39018 2007-09-12  Eric Blake  <ebb9@byu.net>
39019
39020         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39021         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39022         Autoconf definition.
39023         * modules/euidaccess (Depends-on): Add extensions, for
39024         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39025         * modules/fnmatch (Depends-on): Likewise.
39026         * modules/getaddrinfo (Depends-on): Likewise.
39027         * modules/getdelim (Depends-on): Likewise.
39028         * modules/getline (Depends-on): Likewise.
39029         * modules/getsubopt (Depends-on): Likewise.
39030         * modules/gettext (Depends-on): Likewise.
39031         * modules/group-member (Depends-on): Likewise.
39032         * modules/mbchar (Depends-on): Likewise.
39033         * modules/memmem (Depends-on): Likewise.
39034         * modules/mempcpy (Depends-on): Likewise.
39035         * modules/memrchr (Depends-on): Likewise.
39036         * modules/pagealign_alloc (Depends-on): Likewise.
39037         * modules/readutmp (Depends-on): Likewise.
39038         * modules/stpcpy (Depends-on): Likewise.
39039         * modules/stpncpy (Depends-on): Likewise.
39040         * modules/strchrnul (Depends-on): Likewise.
39041         * modules/strndup (Depends-on): Likewise.
39042         * modules/strsep (Depends-on): Likewise.
39043         * modules/strverscmp (Depends-on): Likewise.
39044         * modules/vasprintf (Depends-on): Likewise.
39045         * modules/wcwidth (Depends-on): Likewise.
39046         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39047         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39048         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39049         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39051         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39052         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39053         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39054         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39055         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39057         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39058         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39059         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39060         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39061         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39062         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39065         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39066         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39067         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39068         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39069         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39070         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39072         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39073         so that lock.m4 can be used in gettext without extensions module.
39074
39075 2007-09-11  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/isc-posix.m4: Remove file.
39078         Suggested by Eric Blake.
39079
39080 2007-09-11  Eric Blake  <ebb9@byu.net>
39081
39082         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39083
39084 2007-09-10  Bruno Haible  <bruno@clisp.org>
39085
39086         * posix-modules: Fix typo in error message.
39087         Reported by Matt <mkraai@beckman.com>.
39088
39089 2007-09-09  Bruno Haible  <bruno@clisp.org>
39090
39091         * doc/functions/getdelim.texi: Update list of platforms lacking the
39092         function.
39093         * doc/functions/getline.texi: Likewise.
39094
39095 2007-09-09  Jim Meyering  <jim@meyering.net>
39096
39097         * lib/hash.c (hash_initialize): Detect calloc failure.
39098         Reported by Bruno Haible.
39099
39100 2007-09-09  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39103         malloc or realloc fails.
39104
39105 2007-09-09  Bruno Haible  <bruno@clisp.org>
39106
39107         * modules/getcwd (Depends-on): Add malloc-posix.
39108         * modules/glob (Depends-on): Likewise.
39109         * modules/putenv (Depends-on): Likewise.
39110         * modules/strdup (Depends-on): Likewise.
39111         * modules/getdelim (Depends-on): Add realloc-posix.
39112         * modules/read-file (Depends-on): Likewise.
39113
39114 2007-09-09  Bruno Haible  <bruno@clisp.org>
39115
39116         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39117         (gl_FUNC_MALLOC_POSIX): Require it.
39118         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39119         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39120         * modules/realloc (Files): Add m4/malloc.m4.
39121         * modules/calloc (Files): Likewise.
39122
39123 2007-09-09  Bruno Haible  <bruno@clisp.org>
39124
39125         * modules/malloc-posix: New file.
39126         * modules/malloc (Depends-on): Add malloc-posix.
39127         * lib/malloc.c: Include errno.h.
39128         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39129         and a POSIX-compatible malloc into a single function. Set ENOMEM
39130         when returning NULL.
39131         * m4/malloc.m4: New file.
39132         * doc/functions/malloc.texi: Mention the malloc-posix module.
39133         * lib/stdlib_.h (malloc): New declaration.
39134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39135         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39136         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39137         and HAVE_MALLOC_POSIX.
39138
39139 2007-09-09  Bruno Haible  <bruno@clisp.org>
39140
39141         * modules/realloc-posix: New file.
39142         * modules/realloc (Depends-on): Add realloc-posix.
39143         * lib/realloc.c: Include errno.h.
39144         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39145         and a POSIX-compatible realloc into a single function. Set ENOMEM
39146         when returning NULL.
39147         * m4/realloc.m4: New file.
39148         * doc/functions/realloc.texi: Mention the realloc-posix module.
39149         * lib/stdlib_.h (realloc): New declaration.
39150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39151         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39152         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39153         and HAVE_REALLOC_POSIX.
39154
39155 2007-09-09  Bruno Haible  <bruno@clisp.org>
39156
39157         * modules/calloc-posix: New file.
39158         * modules/calloc (Depends-on): Add calloc-posix.
39159         * lib/calloc.c: Include errno.h.
39160         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39161         and a POSIX-compatible calloc into a single function. Set ENOMEM
39162         when returning NULL.
39163         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39164         * doc/functions/calloc.texi: Mention the calloc-posix module.
39165         * lib/stdlib_.h (calloc): New declaration.
39166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39167         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39168         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39169         and HAVE_CALLOC_POSIX.
39170
39171 2007-09-09  Bruno Haible  <bruno@clisp.org>
39172
39173         Allow for modules to show an arbitrary notice.
39174         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39175         * gnulib-tool: New option --extract-notice.
39176         (func_usage): Document it.
39177         (sed_extract_prog): Update.
39178         (func_get_notice): New function.
39179         (func_modules_notice): New function.
39180         (func_import, func_create_testdir): Invoke it.
39181         Suggested by Jim Meyering.
39182
39183 2007-09-09  Bruno Haible  <bruno@clisp.org>
39184
39185         * gnulib-tool: New options --verbose, --quiet.
39186         (func_usage): Document them.
39187         (verbose): New variable.
39188         (func_execute_command): New function.
39189         (func_import): Don't show the module list and the file list if
39190         $verbose < 0.
39191         (func_create_testdir): Likewise. Use func_execute_command.
39192         (func_create_megatestdir): Use func_execute_command.
39193
39194 2007-09-08  Bruno Haible  <bruno@clisp.org>
39195
39196         * gnulib-tool (func_import): Prefer rsync over wget when available,
39197         for fetching the PO files.
39198
39199 2007-09-08  Bruno Haible  <bruno@clisp.org>
39200
39201         * posix-modules: New file. Portions copied from gnulib-tool.
39202         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39203
39204 2007-09-08  Jim Meyering  <jim@meyering.net>
39205
39206         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39207         * lib/fpending.h: Rename from __fpending.h.
39208         * lib/fpending.c: Rename from __fpending.c.
39209         Include "fpending.h", not "__fpending.h".
39210         * lib/__fpending.h, lib/__fpending.c: Remove files.
39211         * modules/fpending (Files): Reflect new file names.
39212         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39213
39214 2007-09-08  Bruno Haible  <bruno@clisp.org>
39215
39216         * m4/inttypes-h.m4: Remove stub file.
39217
39218 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39219
39220         * doc/headers/stdint.texi: Discuss #include_next issue.
39221
39222 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39223
39224         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39225
39226 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39227
39228         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39229         in variable name.
39230
39231 2007-09-03  Jim Meyering  <jim@meyering.net>
39232
39233         New module: git-version-gen.
39234         * modules/git-version-gen: New file.
39235
39236         Import changes from coreutils for bootstrap script.
39237
39238         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39239
39240         bootstrap: uses rsync to download the .po files
39241         * build-aux/bootstrap (po_download_command_format): New global.
39242         (download_po_files): Use rsync.
39243         (update_po_files): Don't remove .po files after download,
39244         so future rsync runs can take advantage of the copies.
39245
39246         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39247
39248         Solve the unnecessary-.po-file-regeneration problem once and for all.
39249         * build-aux/bootstrap (download_po_files): New function, renamed from
39250         get_translations.  Now, downloads, but doesn't update LINGUAS.
39251         (update_po_files): New function.
39252
39253         bootstrap: Ignore more.
39254         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39255         uniwidth to e.g., lib/.gitignore.
39256         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39257
39258         * build-aux/bootstrap: New setting: vc_ignore.
39259         (insert_sorted_if_absent): Create $file if absent.
39260         Adapt to new, possibly empty, list: $vc_ignore.
39261
39262         bootstrap: generate more ignorable names
39263         * build-aux/bootstrap (slurp): When generating ignorable names,
39264         also map .sin to .sed, .gperf to .c, and .y to .c.
39265
39266 2007-09-03  Jim Meyering  <jim@meyering.net>
39267
39268         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39269         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39270
39271 2007-09-02  Bruno Haible  <bruno@clisp.org>
39272
39273         Fix mis-recognition of 'mcs' on QNX 6.
39274         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39275         output contains the string "Mono".
39276         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39277         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39278
39279 2007-09-01  Bruno Haible  <bruno@clisp.org>
39280
39281         Fix collision between uniwidth/* and linebreak modules.
39282         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39283         u32_width): Remove declarations.
39284         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39285         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39286         streq3, streq2, streq1, streq0): Remove functions.
39287         (STREQ): Remove macro.
39288         (is_cjk_encoding): Remove function.
39289         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39290         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39291         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39292         * NEWS: Document the change.
39293
39294 2007-09-01  Bruno Haible  <bruno@clisp.org>
39295
39296         * lib/streq.h: Add double-inclusion guard.
39297
39298 2007-09-01  Karl Berry  <karl@gnu.org>
39299
39300         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39301
39302 2007-08-28  Jim Meyering  <jim@meyering.net>
39303
39304         Rename mreadlink_with_size to areadlink_with_size.
39305         * NEWS: Document the change.
39306         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39307         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39308         * lib/mreadlink.h: Rename this to...
39309         * lib/areadlink.h: ...this.
39310         * modules/mreadlink-with-size: Rename this to...
39311         * modules/areadlink-with-size: ...this.
39312         * lib/canonicalize.c: Reflect the renaming.
39313         * modules/canonicalize: Likewise.
39314
39315 2007-08-26  Bruno Haible  <bruno@clisp.org>
39316
39317         * gnulib-tool (func_import): When deciding which files to remove,
39318         consider also dangling symbolic links.
39319         Reported by Eric Blake.
39320
39321 2007-08-26  Bruno Haible  <bruno@clisp.org>
39322
39323         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39324
39325 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39326
39327         * lib/readline.c: Don't include getline.h, the prototype is now
39328         found in stdio.h.
39329
39330 2007-08-23  Jim Meyering  <jim@meyering.net>
39331
39332         Getdelim touchup.
39333         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39334         around the funlockfile call, since funlockfile never sets errno.
39335         Don't set errno upon failed realloc.
39336
39337 2007-08-22  Eric Blake  <ebb9@byu.net>
39338
39339         Getline touchups.
39340         * lib/getdelim.c (getdelim): Revert regression that required *n to
39341         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39342         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39343         getdelim, rather than whether implementation is missing.
39344         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39345         * lib/stdio_.h (getline): Also declare if replacement is
39346         required.
39347         * doc/functions/getdelim.texi: New file.
39348         * doc/functions/getline.texi: Likewise.
39349         * doc/gnulib.texi (Function Substitutes): Add new files.
39350         Reported by Bruno Haible.
39351
39352 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39353
39354         * users.txt: Add Guile.
39355
39356 2007-08-22  Eric Blake  <ebb9@byu.net>
39357
39358         * tests/test-getdelim.c (main): Use remove, not unlink.
39359         * tests/test-getline.c (main): Likewise.
39360
39361         Move getline and getdelim into stdio.h, per POSIX 200x.
39362         * modules/getline (Files): Remove getline.h.
39363         (Depends-on): Add stdio.
39364         (configure.ac): Add module indicator.
39365         * modules/getdelim (Files): Remove getdelim.h.
39366         (Depends-on): Add stdio.
39367         (configure.ac): Add module indicator.
39368         * modules/stdio (Makefile.am): Work with new indicators.
39369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39371         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39372         * lib/getdelim.h: Delete.
39373         * lib/getline.h: Delete.
39374         * lib/stdio_.h (getdelim, getline): Declare.
39375         * modules/getdelim-tests: New module.
39376         * modules/getline-tests: Likewise.
39377         * tests/test-getdelim.c: New file.
39378         * tests/test-getline.c: Likewise.
39379         * NEWS: Document the change.
39380         * lib/getline.c: Update choice of header.
39381         * lib/csharpcomp.c: Likewise.
39382         * lib/getpass.c: Likewise.
39383         * lib/javacomp.c: Likewise.
39384         * lib/javaversion.c: Likewise.
39385         * lib/yesno.c: Likewise.
39386         * lib/getdelim.c: Likewise.
39387         (getdelim): Set errno on failure, and avoid memory leak.
39388
39389 2007-08-19  Bruno Haible  <bruno@clisp.org>
39390
39391         * modules/closein (Depends-on): Add freadahead.
39392         * lib/closein.c: Include freadahead.h.
39393         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39394         is zero.
39395
39396 2007-08-19  Bruno Haible  <bruno@clisp.org>
39397
39398         * modules/freadahead-tests: New file.
39399         * tests/test-freadahead.sh: New file.
39400         * tests/test-freadahead.c: New file.
39401
39402         * modules/freadahead: New file.
39403         * lib/freadahead.h: New file.
39404         * lib/freadahead.c: New file.
39405         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39406         fbufmode, fpurge, freadable, fwritable.
39407
39408 2007-08-19  Eric Blake  <ebb9@byu.net>
39409
39410         Test yesno in combination with closein.
39411         * lib/yesno.c (yesno): Document use of stdin.
39412         * modules/yesno-tests (Files): New module.
39413         * tests/test-yesno.c (main): New file.
39414         * tests/test-yesno.sh: Likewise.
39415
39416 2007-08-19  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39419         * lib/fseeko.c (rpl_fseeko): Likewise.
39420         * lib/fseterr.c (fseterr): Likewise.
39421
39422 2007-08-19  Bruno Haible  <bruno@clisp.org>
39423
39424         * tests/test-lseek.c (main): Disable a test for BeOS.
39425         * doc/functions/lseek.texi: Document the BeOS bug.
39426
39427 2007-08-19  Bruno Haible  <bruno@clisp.org>
39428             Eric Blake  <ebb9@byu.net>
39429
39430         * lib/lseek.c: Include <sys/stat.h>.
39431         (rpl_lseek): Add workaround code also for Unix platforms.
39432         Needed for BeOS.
39433         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39434         * doc/functions/lseek.texi: Document BeOS definiency.
39435
39436 2007-08-18  Bruno Haible  <bruno@clisp.org>
39437
39438         * modules/fstrcmp-tests: New file.
39439         * tests/test-fstrcmp.c: New file.
39440
39441 2007-08-18  Bruno Haible  <bruno@clisp.org>
39442
39443         * modules/fstrcmp: New file, from GNU gettext with modifications.
39444         * lib/fstrcmp.h: New file, from GNU gettext.
39445         * lib/fstrcmp.c: New file, from GNU gettext.
39446         * MODULES.html.sh (String handling): Add fstrcmp.
39447
39448 2007-08-18  Bruno Haible  <bruno@clisp.org>
39449
39450         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39451         'bool'.
39452         (diag, compareseq): Remove const from the ctxt argument.
39453         (USE_HEURISTIC): Undefine at the end.
39454
39455 2007-08-18  Jim Meyering  <jim@meyering.net>
39456
39457         New file: lib/idcache.h
39458         * NEWS: Mention the addition.
39459         * modules/idcache (Files): Add lib/idcache.h
39460         * lib/idcache.c: Include "idcache.h".
39461         Don't include <sys/types.h>.
39462         Add a FIXME comment.
39463         Move file-scoped "static" declarations to the top.
39464         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39465
39466 2007-08-17  Bruno Haible  <bruno@clisp.org>
39467         and Paul Eggert  <eggert@cs.ucla.edu>
39468
39469         * MODULES.html.sh: Add diffseq.
39470         * modules/diffseq: New file.
39471         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39472         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39473
39474 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39475
39476         Import changes from coreutils for bootstrap script.
39477
39478         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39479
39480         * build-aux/bootstrap (slurp): Work even in environments where
39481         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39482         current code does not slurp files whose names start with ".", and
39483         this looks like it might be a troublesome area.
39484
39485         2007-07-11  Jim Meyering  <jim@meyering.net>
39486
39487         If there's a GPL vN copyright comment, require that N == 3.
39488
39489         2007-07-08  Jim Meyering  <jim@meyering.net>
39490
39491         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39492         * build-aux/bootstrap (mam_template): Move definition out of loop.
39493
39494         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39495
39496         * build-aux/bootstrap (symlink_to_dir): Rename function from
39497         symlink_to_gnulib.  Add a directory parameter.  Update all
39498         callers.
39499         (cp_mark_as_generated): Also check for -- and link to -- files in
39500         gl/.
39501
39502         2007-07-08  Jim Meyering  <jim@meyering.net>
39503
39504         Adapt to deeper hierarchy in gnulib.
39505         * build-aux/bootstrap (symlink_to_dir): If the destination
39506         directory doesn't exist, create it. This is required at least for
39507         "lib/uniwidth/cjk.h".
39508
39509         2007-05-15  Jim Meyering  <jim@meyering.net>
39510
39511         * build-aux/bootstrap: Now that generated Makefile.am files
39512         are no longer under version control, they must be created at
39513         bootstrap time.
39514
39515 2007-08-14  Ben Pfaff  <blp@gnu.org>
39516
39517         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39518
39519 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39520
39521         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39522         given the changes below.
39523         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39524         even on hosts that have padding bits beyond the supported 64.
39525
39526 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39529         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39530         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39531         depends on it.
39532         (xstrtol_error): Remove.
39533         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39534         but with a different signature.
39535         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39536         * lib/xstrtol-error.c: Include exitfail.h.
39537         (xstrtol_fatal): New function, with a different signature from the
39538         old xstrtol_error, so that the caller need not worry about passing
39539         in an exit status, or about storage management of the option argument.
39540         (xstrtol_error): Now a static function.  Redo signature to
39541         implement xstrtol_fatal.  Output the correct number of hyphens in
39542         front of the option so that the caller need not worry about
39543         storage management.
39544         (N_): New macro.
39545         (_): Remove; not used now.
39546         * modules/xstrtol: Depend on getopt.
39547         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39548         of old STRTOL_FATAL_ERROR macro.
39549         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39550         of test program.
39551         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39552         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39553
39554 2007-08-08  Eric Blake  <ebb9@byu.net>
39555
39556         * lib/xstrtol-error.c: Add missing include.
39557
39558         Move xstrtol messages into gnulib domain, when --pobase is used.
39559         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39560         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39561         * modules/xstrtol (Files): Distribute new file.
39562         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39563         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39564         * tests/test-xstrtol.c: ...into new file.
39565         * tests/test-xstrtoul.c: Also test xstrtoul.
39566         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39567         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39568         * tests/test-xstrtol.sh: Drive the tests.
39569         * tests/test-xstrtoimax.sh: Likewise.
39570         * tests/test-xstrtoumax.sh: Likewise.
39571         * modules/xstrtol-tests: New module.
39572         * modules/xstrtoimax-tests: Likewise.
39573         * modules/xstrtoumax-tests: Likewise.
39574
39575 2007-08-08  Jim Meyering  <jim@meyering.net>
39576
39577         New function: mfile_name_concat.
39578         * lib/filenamecat.c (mfile_name_concat): New function, just like
39579         file_name_concat, but return NULL upon failure rather than exiting
39580         with a diagnostic.
39581         * lib/filenamecat.h: Declare it.
39582
39583 2007-08-07  Bruno Haible  <bruno@clisp.org>
39584
39585         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39586         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39587         warning from gcc.
39588         Reported by Eric Blake.
39589
39590 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39591
39592         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39593         * modules/crypto/arcfour (License): Likewise.
39594         * modules/crypto/des-tests (License): Likewise.
39595         * modules/crypto/gc-arctwo-tests (License): Likewise.
39596         * modules/crypto/gc-des-tests (License): Likewise.
39597         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39598         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39599         * modules/crypto/gc-md2-tests (License): Likewise.
39600         * modules/crypto/gc-md4-tests (License): Likewise.
39601         * modules/crypto/gc-md5-tests (License): Likewise.
39602         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39603         * modules/crypto/gc-rijndael-tests (License): Likewise.
39604         * modules/crypto/gc-sha1-tests (License): Likewise.
39605         * modules/crypto/gc-tests (License): Likewise.
39606         * modules/crypto/hmac-md5 (License): Likewise.
39607         * modules/crypto/hmac-sha1 (License): Likewise.
39608         * modules/crypto/md2-tests (License): Likewise.
39609         * modules/crypto/md4-tests (License): Likewise.
39610         * modules/crypto/md5 (License): Likewise.
39611         * modules/crypto/rijndael (License): Likewise.
39612         * modules/crypto/sha1 (License): Likewise.
39613         * modules/memxor (License): Likewise.
39614
39615 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39616         and Bruno Haible  <bruno@clisp.org>
39617
39618         * NEWS: Describe interface changes to human, xstrtol.
39619         * lib/human.h: Include <xstrtol.h>.
39620         (human_options): Return enum strtol_error, not int.  Remove
39621         bool arg; take int * instead.
39622         * lib/human.c: Don't include "gettext.h".
39623         (_): Remove; no longer used.
39624         Don't include <xstrtol.h>, since human.h does it.
39625         (human_options): Adjust to abovementioned interface changes.
39626         Do not report error to stderr; that's now the caller's
39627         responsibility.
39628         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39629         interface change.
39630         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39631         Str, Argument_type_string.  All uses changed.  Put " argument"
39632         in diagnostics to make them clearer.  Change wording of suffix
39633         message for clarity.
39634         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39635         Argument_type_string.
39636         (STRTOL_FATAL_WARN): Remove; no longer used.
39637         * modules/human (Depends-on): Remove gettext-h.
39638
39639 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39640
39641         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39642
39643 2007-07-31  Bruno Haible  <bruno@clisp.org>
39644
39645         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39646         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39647         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39648
39649 2007-07-31  Bruno Haible  <bruno@clisp.org>
39650
39651         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39652         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39653
39654 2007-07-30  Bruno Haible  <bruno@clisp.org>
39655
39656         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39657         * modules/c-ctype (License): Likewise.
39658         * modules/c-strcase (License): Likewise.
39659         * modules/check-version (License): Likewise.
39660         * modules/iconv (License): Likewise.
39661         * modules/iconv_open (License): Likewise.
39662         * modules/read-file (License): Likewise.
39663         * modules/striconv (License): Likewise.
39664         * modules/strverscmp (License): Likewise.
39665         * modules/vasprintf (License): Likewise.
39666         * modules/crypto/des (License): Likewise.
39667         * modules/crypto/gc (License): Likewise.
39668         * modules/crypto/gc-arcfour (License): Likewise.
39669         * modules/crypto/gc-arctwo (License): Likewise.
39670         * modules/crypto/gc-des (License): Likewise.
39671         * modules/crypto/gc-hmac-md5 (License): Likewise.
39672         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39673         * modules/crypto/gc-md2 (License): Likewise.
39674         * modules/crypto/gc-md4 (License): Likewise.
39675         * modules/crypto/gc-md5 (License): Likewise.
39676         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39677         * modules/crypto/gc-random (License): Likewise.
39678         * modules/crypto/gc-rijndael (License): Likewise.
39679         * modules/crypto/gc-sha1 (License): Likewise.
39680         * modules/crypto/md2 (License): Likewise.
39681         * modules/crypto/md4 (License): Likewise.
39682
39683 2007-07-30  Jim Meyering  <jim@meyering.net>
39684
39685         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39686         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39687         it has valid stat data.  This bug would cause du not to count the
39688         sizes of inaccessible directories.
39689         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39690         in <http://bugzilla.redhat.com/250077>.
39691
39692 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39693             Bruno Haible  <bruno@clisp.org>
39694
39695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39696         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39697         #include_next, gives a diagnostic about it, but reports no error in
39698         the exit code.
39699         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39700
39701 2007-07-24  Ben Pfaff  <blp@gnu.org>
39702
39703         Improve name: "count-one-bits" is better than "popcount".
39704         * MODULES.html.sh: Update name.
39705         * lib/popcount.h: Renamed lib/count-one-bits.h.
39706         (popcount): Renamed count_one_bits.
39707         (popcountl): Renamed count_one_bits_l.
39708         (popcountll): Renamed count_one_bits_ll.
39709         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39710         * modules/popcount: Renamed module/count-one-bits.
39711         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39712         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39713
39714 2007-07-23  Ben Pfaff  <blp@gnu.org>
39715
39716         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39717         better code generation, and add U to large constants to avoid
39718         warnings, in non-GCC case.
39719         Suggested by Bruno Haible.
39720
39721 2007-07-23  Ben Pfaff  <blp@gnu.org>
39722
39723         * lib/popcount.h: Use verify_true instead of if...abort.
39724         * modules/popcount: Depend on verify module.
39725         Suggested by Jim Meyering.
39726
39727 2007-07-23  Bruno Haible  <bruno@clisp.org>
39728
39729         * gnulib-tool (func_import): Create a .cvsignore file also when the
39730         directory is not yet in CVS but the toplevel directory is. When
39731         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39732         Reported by Karl Berry.
39733
39734 2007-07-22  Ben Pfaff  <blp@gnu.org>
39735
39736         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39737         case.
39738         Suggested by Eric Blake.
39739
39740 2007-07-22  Ben Pfaff  <blp@gnu.org>
39741
39742         New module: popcount.
39743         * MODULES.html.sh: Add popcount.
39744         * modules/popcount: New file.
39745         * modules/popcount-tests: New file.
39746         * tests/test-popcount.c: New file.
39747         * lib/popcount.h: New file.
39748         * m4/popcount.m4: New file.
39749
39750 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39751
39752         * build-aux/announce-gen: Update to GPLv3.
39753
39754         * build-aux/config.guess: Update from config.
39755
39756 2007-07-21  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39759         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39760
39761 2007-07-20  Jim Meyering  <jim@meyering.net>
39762
39763         * check-module: Diagnose a self-dependency.
39764
39765 2007-07-19  Bruno Haible  <bruno@clisp.org>
39766
39767         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39768         empty.
39769         Reported by Eric Blake.
39770
39771 2007-07-18  Bruno Haible  <bruno@clisp.org>
39772
39773         * gnulib-tool: New options --po-base, --po-domain.
39774         (func_usage): Document them.
39775         (pobase, po_domain): New variables.
39776         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39777         DEFAULT_TEXT_DOMAIN.
39778         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39779         (func_import): Consider pobase and po_domain. Create a po/ directory.
39780         (func_create_testdir): Set pobase and po_domain to empty.
39781         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39782         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39783
39784 2007-07-18  Bruno Haible  <bruno@clisp.org>
39785
39786         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39787         EXTRA_DIST augmentation for files in build-aux/.
39788
39789 2007-07-16  Bruno Haible  <bruno@clisp.org>
39790
39791         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39792         * modules/getdelim (License): Likewise.
39793
39794 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39795
39796         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39797         * modules/d-type (License): Likewise.
39798         * modules/extensions (License): Likewise.
39799         * modules/fnmatch (License): Likewise.
39800         * modules/fseeko (License): Likewise.
39801         * modules/getaddrinfo (License): Likewise.
39802         * modules/getline (License): Likewise.
39803         * modules/getlogin_r (License): Likewise.
39804         * modules/getpass (License): Likewise.
39805         * modules/gettimeofday (License): Likewise.
39806         * modules/glob (License): Likewise.
39807         * modules/inet_ntop (License): Likewise.
39808         * modules/malloc (License): Likewise.
39809         * modules/malloca (License): Likewise.
39810         * modules/memmem (License): Likewise.
39811         * modules/mempcpy (License): Likewise.
39812         * modules/memset (License): Likewise.
39813         * modules/minmax (License): Likewise.
39814         * modules/mktime (License): Likewise.
39815         * modules/netinet_in (License): Likewise.
39816         * modules/pathmax (License): Likewise.
39817         * modules/poll (License): Likewise.
39818         * modules/regex (License): Likewise.
39819         * modules/snprintf (License): Likewise.
39820         * modules/stdbool (License): Likewise.
39821         * modules/stdint (License): Likewise.
39822         * modules/stdio (License): Likewise.
39823         * modules/strcase (License): Likewise.
39824         * modules/strcasestr (License): Likewise.
39825         * modules/strdup (License): Likewise.
39826         * modules/string (License): Likewise.
39827         * modules/strndup (License): Likewise.
39828         * modules/strnlen (License): Likewise.
39829         * modules/strpbrk (License): Likewise.
39830         * modules/strptime (License): Likewise.
39831         * modules/strsep (License): Likewise.
39832         * modules/sys_select (License): Likewise.
39833         * modules/sys_socket (License): Likewise.
39834         * modules/sys_stat (License): Likewise.
39835         * modules/sys_time (License): Likewise.
39836         * modules/time (License): Likewise.
39837         * modules/time_r (License): Likewise.
39838         * modules/timegm (License): Likewise.
39839         * modules/unistd (License): Likewise.
39840         * modules/vsnprintf (License): Likewise.
39841         * modules/wctype (License): Likewise.
39842
39843 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39844
39845         * modules/argz (License): LGPLv2+.
39846
39847 2007-07-15  Karl Berry  <karl@gnu.org>
39848
39849         * doc/gnulib.texi: revise node structure per new fdl.texi.
39850
39851 2007-07-14  Bruno Haible  <bruno@clisp.org>
39852
39853         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39854         the output file.
39855         * lib/uniname/uninames.h: Regenerated.
39856
39857 2007-07-14  Karl Berry  <karl@gnu.org>
39858
39859         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39860         omitting sectioning and index commands.
39861
39862 2007-07-13  Bruno Haible  <bruno@clisp.org>
39863
39864         New gnulib-tool option --more-symlinks.
39865         * gnulib-tool (func_usage): Document --more-symlinks.
39866         (do_copyrights): New variable.
39867         Recognize option --more-symlinks.
39868         (func_import): Don't add a copyright notice transform to
39869         sed_transform_lib_file if do_copyrights is empty.
39870
39871 2007-07-13  Bruno Haible  <bruno@clisp.org>
39872
39873         * lib/vasnprintf.c (decimal_point_char): Define also if
39874         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39875         && !NEED_PRINTF_DIRECTIVE_A.
39876         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39877         Gary V. Vaughan <gary@gnu.org>.
39878
39879 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39880
39881         * lib/inttypes_.h: Undo previous change, since it was fixed
39882         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39883
39884 2007-07-13  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39887         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39888
39889 2007-07-13  Jim Meyering  <jim@meyering.net>
39890
39891         df: Don't fail for Tru64's "file-on-file mount".
39892         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39893         so we fall through and use statfs instead.  Details here:
39894         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39895         Reported by Albert Chin.
39896
39897 2007-07-13  Bruno Haible  <bruno@clisp.org>
39898
39899         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39900         * modules/configmake (License): Likewise.
39901         * modules/gettext (License): Likewise.
39902         * modules/gettext-h (License): Likewise.
39903         * modules/include_next (License): Likewise.
39904         * modules/link-warning (License): Likewise.
39905         * modules/localcharset (License): Likewise.
39906         * modules/localename (License): Likewise.
39907         * modules/lock (License): Likewise.
39908         * modules/relocatable-lib-lgpl (License): Likewise.
39909         * modules/size_max (License): Likewise.
39910         * modules/vasnprintf (License): Likewise.
39911         * modules/wchar (License): Likewise.
39912         * modules/xsize (License): Likewise.
39913
39914 2007-07-13  Bruno Haible  <bruno@clisp.org>
39915
39916         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39917         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39918
39919 2007-07-12  Bruno Haible  <bruno@clisp.org>
39920
39921         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39922         in the modules files.
39923
39924 2007-07-11  Karl Berry  <karl@gnu.org>
39925
39926         * MODULES.html.sh (func_module): use
39927          sed -e '\|^'"${includefile}"'$|d'
39928          instead of /.../d, to avoid errors on $includefile's containing /.
39929
39930 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39931
39932         * gnulib-tool (func_import): Avoid duplication of --avoid
39933         statements
39934         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39935         names to `_' in variable names.
39936
39937 2007-07-10  Eric Blake  <ebb9@byu.net>
39938
39939         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39940         * NEWS: Document this change.
39941
39942 2007-07-08  Bruno Haible  <bruno@clisp.org>
39943
39944         Update to Unicode 5.0.
39945         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39946         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39947         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39948         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39949         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39950         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39951         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39952         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39953         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39954         U+10A3F, U+1D242..U+1D244.
39955         (nonspacing_table_ind): Update.
39956         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39957         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39958
39959 2007-07-08  Bruno Haible  <bruno@clisp.org>
39960
39961         Update to Unicode 5.0.
39962         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39963         code transform. Extend the name index field of unicode_name_to_code and
39964         unicode_code_to_name from 16 to 24 bits.
39965         * lib/uniname/uniname.c (unicode_character_name,
39966         unicode_name_character): Add the range 0x12xxx to the code transform.
39967         * lib/uniname/uninames.h: Regenerated.
39968         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39969
39970 2007-07-07  Bruno Haible  <bruno@clisp.org>
39971
39972         * modules/wcwidth-tests: New file.
39973         * tests/test-wcwidth.c: New file.
39974
39975         Work around MacOS X wcwidth() bug.
39976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39977         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39978         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39979         original wcwidth in non-UTF-8 locales.
39980         * modules/wcwidth (Depends-on): Add localcharset, streq,
39981         uniwidth/width.
39982         * doc/functions/wcwidth.texi: Update.
39983
39984 2007-07-07  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39987         (wcwidth): New declaration.
39988         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39989         macros.
39990         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39991         here. Prepare for creating <wchar.h> unconditionally.
39992         * modules/wchar (Depends-on): Add link-warning.
39993         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39994         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39995         * lib/wcwidth.h: Remove file.
39996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39997         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39998         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39999         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40000         (Include): Replace wcwidth.h with <wchar.h>.
40001         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40002         * lib/mbchar.h: Don't include wcwidth.h.
40003         * lib/mbswidth.c: Likewise.
40004         * NEWS: Mention the change.
40005
40006 2007-07-07  Bruno Haible  <bruno@clisp.org>
40007
40008         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40009         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40010         definition with an external declaration.
40011         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40012         defined as a function. Remove AC_C_INLINE requirement.
40013         * modules/wcwidth (Files): Add lib/wcwidth.c.
40014         (Makefile.am): Remove redundant statement.
40015
40016 2007-07-07  Bruno Haible  <bruno@clisp.org>
40017
40018         * MODULES.html.sh (Unicode string functions): Add the new modules.
40019
40020         * tests/uniwidth/test-u32-strwidth.c: New file.
40021         * modules/uniwidth/u32-strwidth-tests: New file.
40022
40023         * lib/uniwidth/u32-strwidth.c: New file.
40024         * modules/uniwidth/u32-strwidth: New file.
40025
40026         * tests/uniwidth/test-u16-strwidth.c: New file.
40027         * modules/uniwidth/u16-strwidth-tests: New file.
40028
40029         * lib/uniwidth/u16-strwidth.c: New file.
40030         * modules/uniwidth/u16-strwidth: New file.
40031
40032         * tests/uniwidth/test-u8-strwidth.c: New file.
40033         * modules/uniwidth/u8-strwidth-tests: New file.
40034
40035         * lib/uniwidth/u8-strwidth.c: New file.
40036         * modules/uniwidth/u8-strwidth: New file.
40037
40038         * tests/uniwidth/test-u32-width.c: New file.
40039         * modules/uniwidth/u32-width-tests: New file.
40040
40041         * lib/uniwidth/u32-width.c: New file.
40042         * modules/uniwidth/u32-width: New file.
40043
40044         * tests/uniwidth/test-u16-width.c: New file.
40045         * modules/uniwidth/u16-width-tests: New file.
40046
40047         * lib/uniwidth/u16-width.c: New file.
40048         * modules/uniwidth/u16-width: New file.
40049
40050         * tests/uniwidth/test-u8-width.c: New file.
40051         * modules/uniwidth/u8-width-tests: New file.
40052
40053         * lib/uniwidth/u8-width.c: New file.
40054         * modules/uniwidth/u8-width: New file.
40055
40056         * tests/uniwidth/test-uc_width.c: New file.
40057         * modules/uniwidth/width-tests: New file.
40058
40059         * lib/uniwidth/width.c: New file, from GNU libiconv.
40060         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40061         * modules/uniwidth/width: New file.
40062
40063         * lib/uniwidth.h: New file, from GNU libiconv.
40064         * modules/uniwidth/base: New file.
40065
40066 2007-07-07  Bruno Haible  <bruno@clisp.org>
40067
40068         * lib/uniname.h: New file, from GNU gettext.
40069         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40070         * lib/uniname/uninames.h: New file, from GNU gettext.
40071         * lib/uniname/uniname.c: New file, from GNU gettext.
40072         * tests/uniname/test-uninames.sh: New file.
40073         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40074         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40075         * modules/uniname/base: New file.
40076         * modules/uniname/uniname: New file.
40077         * modules/uniname/uniname-tests: New file.
40078         * MODULES.html.sh (Unicode string functions): Add the new modules.
40079
40080 2007-07-06  Bruno Haible  <bruno@clisp.org>
40081
40082         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40083
40084 2007-07-06  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40087         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40088         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40089         include <sys/time.h>.
40090         Reported by Eric Blake.
40091
40092 2007-07-06  Eric Blake  <ebb9@byu.net>
40093
40094         Fix testing canonicalize on cygwin.
40095         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40096         Revert patch from 2007-06-19.
40097         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40098         canonicalize module is also in use.
40099         * tests/test-canonicalize.c: New file.
40100         * tests/test-canonicalize.sh: Likewise.
40101         * modules/canonicalize-tests: Likewise.
40102
40103 2007-07-06  Jim Meyering  <jim@meyering.net>
40104
40105         * lib/getugroups.c (getugroups): Detect getgrent failure.
40106         Adjust comment to reflect reality: this function may return -1.
40107
40108 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40109
40110         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40111         the new TP address.
40112         (usage): Fix typo
40113         (gnulib_mk): New variable.
40114
40115 2007-07-05  Jim Meyering  <jim@meyering.net>
40116
40117         Don't let endgrent clobber errno, no matter how improbable.
40118         * lib/getugroups.c (getugroups): Save and restore errno around
40119         endgrent call.
40120
40121         Close the group DB even when failing with 2^31 or more members.
40122         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40123
40124 2007-07-04  Jim Meyering  <jim@meyering.net>
40125
40126         * lib/getugroups.h: New file.
40127         * lib/getugroups.c: Include "getugroups.h".
40128         Remove uses of "register" keyword.
40129         Move local variable, "cp", down into scope where used.
40130         Give "username" parameter the "const" attribute.
40131         * modules/getugroups (Files): Add lib/getugroups.h
40132
40133 2007-07-04  Karl Berry  <karl@gnu.org>
40134
40135         * MODULES.html.sh (func_all_modules): Complete rename of
40136         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40137
40138 2007-07-02  Bruno Haible  <bruno@clisp.org>
40139
40140         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40141         mode, when inttypes.h comes from gnulib.
40142         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40143
40144 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40145
40146         * NEWS: Mention lgpl module name change.
40147
40148         * modules/lgpl-2.1: Renamed from lgpl.
40149
40150         * NEWS: Mention gpl module name change.
40151
40152         * modules/gpl-3.0: New file, based on gpl-2.0.
40153
40154         * modules/gpl-2.0: Renamed from gpl.
40155
40156         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40157         doc/gpl-2.0.texi.
40158
40159 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40160
40161         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40162         #define __STDC_LIMIT_MACROS temporarily while including
40163         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40164         Problem reported by Joel E. Denny in
40165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40166
40167 2007-07-01  Bruno Haible  <bruno@clisp.org>
40168
40169         * lib/unistdio.h: New file.
40170         * lib/unistdio/u-asnprintf.h: New file.
40171         * lib/unistdio/u-asprintf.h: New file.
40172         * lib/unistdio/u-printf-args.c: New file.
40173         * lib/unistdio/u-printf-args.h: New file.
40174         * lib/unistdio/u-printf-parse.h: New file.
40175         * lib/unistdio/u-snprintf.h: New file.
40176         * lib/unistdio/u-sprintf.h: New file.
40177         * lib/unistdio/u-vasprintf.h: New file.
40178         * lib/unistdio/u-vsnprintf.h: New file.
40179         * lib/unistdio/u-vsprintf.h: New file.
40180         * lib/unistdio/ulc-asnprintf.c: New file.
40181         * lib/unistdio/ulc-asprintf.c: New file.
40182         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40183         * lib/unistdio/ulc-printf-parse.c: New file.
40184         * lib/unistdio/ulc-snprintf.c: New file.
40185         * lib/unistdio/ulc-sprintf.c: New file.
40186         * lib/unistdio/ulc-vasnprintf.c: New file.
40187         * lib/unistdio/ulc-vasprintf.c: New file.
40188         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40189         * lib/unistdio/ulc-vsnprintf.c: New file.
40190         * lib/unistdio/ulc-vsprintf.c: New file.
40191         * lib/unistdio/u8-asnprintf.c: New file.
40192         * lib/unistdio/u8-asprintf.c: New file.
40193         * lib/unistdio/u8-printf-parse.c: New file.
40194         * lib/unistdio/u8-snprintf.c: New file.
40195         * lib/unistdio/u8-sprintf.c: New file.
40196         * lib/unistdio/u8-vasnprintf.c: New file.
40197         * lib/unistdio/u8-vasprintf.c: New file.
40198         * lib/unistdio/u8-vsnprintf.c: New file.
40199         * lib/unistdio/u8-vsprintf.c: New file.
40200         * lib/unistdio/u8-u8-asnprintf.c: New file.
40201         * lib/unistdio/u8-u8-asprintf.c: New file.
40202         * lib/unistdio/u8-u8-snprintf.c: New file.
40203         * lib/unistdio/u8-u8-sprintf.c: New file.
40204         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40205         * lib/unistdio/u8-u8-vasprintf.c: New file.
40206         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40207         * lib/unistdio/u8-u8-vsprintf.c: New file.
40208         * lib/unistdio/u16-asnprintf.c: New file.
40209         * lib/unistdio/u16-asprintf.c: New file.
40210         * lib/unistdio/u16-printf-parse.c: New file.
40211         * lib/unistdio/u16-snprintf.c: New file.
40212         * lib/unistdio/u16-sprintf.c: New file.
40213         * lib/unistdio/u16-vasnprintf.c: New file.
40214         * lib/unistdio/u16-vasprintf.c: New file.
40215         * lib/unistdio/u16-vsnprintf.c: New file.
40216         * lib/unistdio/u16-vsprintf.c: New file.
40217         * lib/unistdio/u16-u16-asnprintf.c: New file.
40218         * lib/unistdio/u16-u16-asprintf.c: New file.
40219         * lib/unistdio/u16-u16-snprintf.c: New file.
40220         * lib/unistdio/u16-u16-sprintf.c: New file.
40221         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40222         * lib/unistdio/u16-u16-vasprintf.c: New file.
40223         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40224         * lib/unistdio/u16-u16-vsprintf.c: New file.
40225         * lib/unistdio/u32-asnprintf.c: New file.
40226         * lib/unistdio/u32-asprintf.c: New file.
40227         * lib/unistdio/u32-printf-parse.c: New file.
40228         * lib/unistdio/u32-snprintf.c: New file.
40229         * lib/unistdio/u32-sprintf.c: New file.
40230         * lib/unistdio/u32-vasnprintf.c: New file.
40231         * lib/unistdio/u32-vasprintf.c: New file.
40232         * lib/unistdio/u32-vsnprintf.c: New file.
40233         * lib/unistdio/u32-vsprintf.c: New file.
40234         * lib/unistdio/u32-u32-asnprintf.c: New file.
40235         * lib/unistdio/u32-u32-asprintf.c: New file.
40236         * lib/unistdio/u32-u32-snprintf.c: New file.
40237         * lib/unistdio/u32-u32-sprintf.c: New file.
40238         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40239         * lib/unistdio/u32-u32-vasprintf.c: New file.
40240         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40241         * lib/unistdio/u32-u32-vsprintf.c: New file.
40242         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40243         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40244         * tests/unistdio/test-ulc-printf1.h: New file.
40245         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40246         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40247         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40248         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40249         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40250         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40251         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40252         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40253         * tests/unistdio/test-u8-asnprintf1.c: New file.
40254         * tests/unistdio/test-u8-asnprintf1.h: New file.
40255         * tests/unistdio/test-u8-printf1.h: New file.
40256         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40257         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40258         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40259         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40260         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40261         * tests/unistdio/test-u8-vasprintf1.c: New file.
40262         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40263         * tests/unistdio/test-u8-vsprintf1.c: New file.
40264         * tests/unistdio/test-u16-asnprintf1.c: New file.
40265         * tests/unistdio/test-u16-asnprintf1.h: New file.
40266         * tests/unistdio/test-u16-printf1.h: New file.
40267         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40268         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40269         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40270         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40271         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40272         * tests/unistdio/test-u16-vasprintf1.c: New file.
40273         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40274         * tests/unistdio/test-u16-vsprintf1.c: New file.
40275         * tests/unistdio/test-u32-asnprintf1.c: New file.
40276         * tests/unistdio/test-u32-asnprintf1.h: New file.
40277         * tests/unistdio/test-u32-printf1.h: New file.
40278         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40279         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40280         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40281         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40282         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40283         * tests/unistdio/test-u32-vasprintf1.c: New file.
40284         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40285         * tests/unistdio/test-u32-vsprintf1.c: New file.
40286         * modules/unistdio/base: New file.
40287         * modules/unistdio/u-printf-args: New file.
40288         * modules/unistdio/ulc-asnprintf: New file.
40289         * modules/unistdio/ulc-asprintf: New file.
40290         * modules/unistdio/ulc-fprintf: New file.
40291         * modules/unistdio/ulc-printf-parse: New file.
40292         * modules/unistdio/ulc-snprintf: New file.
40293         * modules/unistdio/ulc-sprintf: New file.
40294         * modules/unistdio/ulc-vasnprintf: New file.
40295         * modules/unistdio/ulc-vasprintf: New file.
40296         * modules/unistdio/ulc-vfprintf: New file.
40297         * modules/unistdio/ulc-vsnprintf: New file.
40298         * modules/unistdio/ulc-vsprintf: New file.
40299         * modules/unistdio/u8-asnprintf: New file.
40300         * modules/unistdio/u8-asprintf: New file.
40301         * modules/unistdio/u8-printf-parse: New file.
40302         * modules/unistdio/u8-snprintf: New file.
40303         * modules/unistdio/u8-sprintf: New file.
40304         * modules/unistdio/u8-vasnprintf: New file.
40305         * modules/unistdio/u8-vasprintf: New file.
40306         * modules/unistdio/u8-vsnprintf: New file.
40307         * modules/unistdio/u8-vsprintf: New file.
40308         * modules/unistdio/u8-u8-asnprintf: New file.
40309         * modules/unistdio/u8-u8-asprintf: New file.
40310         * modules/unistdio/u8-u8-snprintf: New file.
40311         * modules/unistdio/u8-u8-sprintf: New file.
40312         * modules/unistdio/u8-u8-vasnprintf: New file.
40313         * modules/unistdio/u8-u8-vasprintf: New file.
40314         * modules/unistdio/u8-u8-vsnprintf: New file.
40315         * modules/unistdio/u8-u8-vsprintf: New file.
40316         * modules/unistdio/u16-asnprintf: New file.
40317         * modules/unistdio/u16-asprintf: New file.
40318         * modules/unistdio/u16-printf-parse: New file.
40319         * modules/unistdio/u16-snprintf: New file.
40320         * modules/unistdio/u16-sprintf: New file.
40321         * modules/unistdio/u16-vasnprintf: New file.
40322         * modules/unistdio/u16-vasprintf: New file.
40323         * modules/unistdio/u16-vsnprintf: New file.
40324         * modules/unistdio/u16-vsprintf: New file.
40325         * modules/unistdio/u16-u16-asnprintf: New file.
40326         * modules/unistdio/u16-u16-asprintf: New file.
40327         * modules/unistdio/u16-u16-snprintf: New file.
40328         * modules/unistdio/u16-u16-sprintf: New file.
40329         * modules/unistdio/u16-u16-vasnprintf: New file.
40330         * modules/unistdio/u16-u16-vasprintf: New file.
40331         * modules/unistdio/u16-u16-vsnprintf: New file.
40332         * modules/unistdio/u16-u16-vsprintf: New file.
40333         * modules/unistdio/u32-asnprintf: New file.
40334         * modules/unistdio/u32-asprintf: New file.
40335         * modules/unistdio/u32-printf-parse: New file.
40336         * modules/unistdio/u32-snprintf: New file.
40337         * modules/unistdio/u32-sprintf: New file.
40338         * modules/unistdio/u32-vasnprintf: New file.
40339         * modules/unistdio/u32-vasprintf: New file.
40340         * modules/unistdio/u32-vsnprintf: New file.
40341         * modules/unistdio/u32-vsprintf: New file.
40342         * modules/unistdio/u32-u32-asnprintf: New file.
40343         * modules/unistdio/u32-u32-asprintf: New file.
40344         * modules/unistdio/u32-u32-snprintf: New file.
40345         * modules/unistdio/u32-u32-sprintf: New file.
40346         * modules/unistdio/u32-u32-vasnprintf: New file.
40347         * modules/unistdio/u32-u32-vasprintf: New file.
40348         * modules/unistdio/u32-u32-vsnprintf: New file.
40349         * modules/unistdio/u32-u32-vsprintf: New file.
40350         * modules/unistdio/ulc-asnprintf-tests: New file.
40351         * modules/unistdio/ulc-vasnprintf-tests: New file.
40352         * modules/unistdio/ulc-vasprintf-tests: New file.
40353         * modules/unistdio/ulc-vsnprintf-tests: New file.
40354         * modules/unistdio/ulc-vsprintf-tests: New file.
40355         * modules/unistdio/u8-asnprintf-tests: New file.
40356         * modules/unistdio/u8-vasnprintf-tests: New file.
40357         * modules/unistdio/u8-vasprintf-tests: New file.
40358         * modules/unistdio/u8-vsnprintf-tests: New file.
40359         * modules/unistdio/u8-vsprintf-tests: New file.
40360         * modules/unistdio/u16-asnprintf-tests: New file.
40361         * modules/unistdio/u16-vasnprintf-tests: New file.
40362         * modules/unistdio/u16-vasprintf-tests: New file.
40363         * modules/unistdio/u16-vsnprintf-tests: New file.
40364         * modules/unistdio/u16-vsprintf-tests: New file.
40365         * modules/unistdio/u32-asnprintf-tests: New file.
40366         * modules/unistdio/u32-vasnprintf-tests: New file.
40367         * modules/unistdio/u32-vasprintf-tests: New file.
40368         * modules/unistdio/u32-vsnprintf-tests: New file.
40369         * modules/unistdio/u32-vsprintf-tests: New file.
40370         * MODULES.html.sh (Unicode string functions): Add the new modules.
40371
40372 2007-07-01  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/sprintf.c (sprintf): Limit the available length estimation,
40375         to avoid address wraparound.
40376         * lib/vsprintf.c (vsprintf): Likewise.
40377         * modules/sprintf-posix (Dependencies): Add stdint.
40378         * modules/vsprintf-posix (Dependencies): Likewise.
40379
40380 2007-07-01  Bruno Haible  <bruno@clisp.org>
40381
40382         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40383         Windows PATH as well. Conservative double-quoting. Comments.
40384
40385 2007-07-01  Bruno Haible  <bruno@clisp.org>
40386             Eric Blake  <ebb9@byu.net>
40387             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40388
40389         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40390         empty components in $PATH, denoting '.'.
40391
40392 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40393
40394         * gnulib-tool: Fix indentation.
40395         (func_create_megatestdir): Likewise.
40396         Report by Bruno Haible.
40397
40398 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40399
40400         Sync from Automake.
40401         * build-aux/gnupload: Fix shell portability issues with for loops.
40402         Report by Karl Berry.
40403
40404 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40405
40406         * build-aux/maint.mk (POURL): Use translationproject.org.
40407
40408 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40409             Bruno Haible  <bruno@clisp.org>
40410
40411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40412         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40413         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40414         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40415         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40416
40417 2007-06-27  Bruno Haible  <bruno@clisp.org>
40418
40419         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40420         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40421
40422 2007-06-26  Karl Berry  <karl@gnu.org>
40423
40424         * MODULES.html.sh: remove xreadlink-with-size.
40425
40426 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40427
40428         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40429         method that I hope also handles the double-include problem noted
40430         by Bruno Haible in
40431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40432
40433 2007-06-23  Bruno Haible  <bruno@clisp.org>
40434
40435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40436         Don't let the 'mostlyclean' target fail if the last subdirectory could
40437         not be removed.
40438         Reported by Karl Berry.
40439
40440 2007-06-23  Bruno Haible  <bruno@clisp.org>
40441
40442         * gnulib-tool (echo): Add a speedier workaround for ksh.
40443         * tests/test-echo.sh: Likewise.
40444
40445 2007-06-23  Bruno Haible  <bruno@clisp.org>
40446
40447         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40448         * tests/test-echo.sh: Likewise.
40449
40450 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40451
40452         * gnulib-tool (IFS): Initialize early, so we don't set it to
40453         empty later.
40454         (self_abspathname): Rewrite algorithm to set it, reindent.
40455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40456         (func_create_megatestdir): Merge some sed scripts.
40457
40458 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40459
40460         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40461         exposed by Sun Studio 11 cc on Solaris 8.
40462
40463 2007-06-22  Bruno Haible  <bruno@clisp.org>
40464
40465         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40466         backslashes.
40467         * tests/test-echo.sh: New file.
40468
40469 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40470
40471         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40472         simplify `sed_replace_build_aux' scripts, they are portable but
40473         echoing them with `echo' is not.
40474         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40475
40476 2007-06-21  Karl Berry  <karl@gnu.org>
40477
40478         * config/srclist.txt: guess we can't handle the licenses via
40479         srclist at the moment.
40480
40481 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40482
40483         * MODULES.html.sh: Add include_next.
40484         * modules/include_next: New file.
40485
40486 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40487
40488         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40489         INCLUDE_NEXT.
40490         (gl_CHECK_NEXT_HEADERS): New macro.
40491         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40492         the obsolescent gl_ABSOLUTE_HEADER.
40493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40494         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40495         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40496         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40497         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40498         * m4/math_h.m4 (gl_MATH_H): Likewise.
40499         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40500         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40501         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40502         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40503         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40504         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40505         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40510         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40511         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40512         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40513         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40514         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40515         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40516         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40517         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40518         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40519         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40520         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40521         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40522         * lib/float_.h: Likewise.
40523         * lib/inttypes_.h: Likewise.
40524         * lib/math_.h: Likewise.
40525         * lib/search_.h: Likewise.
40526         * lib/signal_.h: Likewise.
40527         * lib/stdint_.h: Likewise.
40528         * lib/stdio_.h: Likewise.
40529         * lib/stdlib_.h: Likewise.
40530         * lib/string_.h: Likewise.
40531         * lib/sys_stat_.h: Likewise.
40532         * lib/sys_time_.h: Likewise.
40533         * lib/time_.h: Likewise.
40534         * lib/unistd_.h: Likewise.
40535         * lib/wchar_.h: Likewise.
40536         * lib/wctype_.h: Likewise.
40537         * lib/dirent_.h: Likewise.
40538         * lib/iconv_.h: Likewise.
40539         * lib/locale_.h: Likewise.
40540         * lib/netinet_in_.h: Likewise.
40541         * lib/sys_select_.h: Likewise.
40542         * lib/sys_socket_.h: Likewise.
40543         * lib/sysexits_.h: Likewise.
40544         * modules/fcntl (Depends-on): Depend on include_next, not
40545         absolute_header.
40546         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40547         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40548         * modules/fchdir: Likewise.
40549         * modules/float: Likewise.
40550         * modules/iconv_open: Likewise.
40551         * modules/inttypes: Likewise.
40552         * modules/locale: Likewise.
40553         * modules/math: Likewise.
40554         * modules/netinet_in: Likewise.
40555         * modules/search: Likewise.
40556         * modules/signal: Likewise.
40557         * modules/stdint: Likewise.
40558         * modules/stdio: Likewise.
40559         * modules/stdlib: Likewise.
40560         * modules/string: Likewise.
40561         * modules/sys_select: Likewise.
40562         * modules/sys_socket: Likewise.
40563         * modules/sys_stat: Likewise.
40564         * modules/sys_time: Likewise.
40565         * modules/sysexits: Likewise.
40566         * modules/time: Likewise.
40567         * modules/unistd: Likewise.
40568         * modules/wchar: Likewise.
40569         * modules/wctype: Likewise.
40570         * modules/sys_stat: Change maintainer to "all".
40571         * modules/unistd: Likewise.
40572
40573 2007-06-20  Karl Berry  <karl@gnu.org>
40574
40575         * config/srclist.txt: track www changes in license files.
40576
40577 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40578
40579         * build-aux/bootstrap: Remove stray dot.
40580         Make sure build_aux settings are honored when linking
40581         gnulib_extra_files.
40582
40583 2007-06-19  Eric Blake  <ebb9@byu.net>
40584
40585         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40586         Allow compilation on cygwin.
40587
40588 2007-06-19  Jim Meyering  <jim@meyering.net>
40589
40590         xreadlink-with-size: Remove module.  No longer used.
40591         Ex-callers now use xreadlink or mreadlink-with-size.
40592         * modules/xreadlink-with-size: Remove module.
40593         * lib/xreadlink-with-size.c: Remove file.
40594         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40595         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40596         just before the function definition *is* accurate.
40597
40598         Eliminate one way canonicalize_filename_mode could exit.
40599         * lib/canonicalize.c (canonicalize_filename_mode):
40600         Use mreadlink_with_size, not xreadlink_with_size.
40601
40602 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40603
40604         Detect porting problems to FreeBSD/arm, which has time_t wider than
40605         long int.  Original problem reported for GNU diff by Xin Li in
40606         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40607         * modules/getdate (Depends-on): Add intprops, verify.
40608         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40609         is an integer type no wider than long int.
40610
40611 2007-06-18  Jim Meyering  <jim@meyering.net>
40612
40613         New module: mreadlink-with-size.
40614         * MODULES.html.sh: Add mreadlink-with-size.
40615         * modules/mreadlink-with-size: New module
40616         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40617         not xreadlink-with-size.
40618         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40619
40620 2007-06-16  Bruno Haible  <bruno@clisp.org>
40621
40622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40623         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40624         Reported by Gary V. Vaughan <gary@gnu.org>.
40625
40626 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40627
40628         Revamp lchown so that it lives in unistd.h where it belongs.
40629         * lib/lchown.h: Remove.
40630         * lib/dirchownmod.c: Don't include lib/lchown.h.
40631         * lib/fchownat.c: Likewise.
40632         * lib/openat.c: Likewise.
40633         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40634         does not follow symlinks.
40635         (EOPNOTSUPP): Define if not defined.
40636         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40637         is defined to 0.
40638         (lchown): New decl.
40639         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40640         Do not check for lchown decl.
40641         Set REPLACE_LCHOWN.
40642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40643         REPLACE_LCHOWN.
40644         * modules/chown: Make it clear it follows symlinks.
40645         * modules/lchown: Make it clear it doesn't follow symlinks.
40646         (Files): Remove lib/lchown.h
40647         (Depends-on): Add unistd.
40648         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40649         (Include): Include <unistd.h>, not "lchown.h".
40650         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40651         REPLACE_LCHOWN.
40652
40653 2007-06-15  Jim Meyering  <jim@meyering.net>
40654
40655         Change license (GPL to LGPL) of fsusage and dependents.
40656         * modules/fsusage (License): Change to LGPL.
40657         * modules/full-read (License): Likewise.
40658         * modules/full-write (License): Likewise.
40659         * modules/safe-read (License): Likewise.
40660         * modules/safe-write (License): Likewise.
40661
40662 2007-06-14  Ben Pfaff  <blp@gnu.org>
40663
40664         Missing part of allocsa -> malloca transition.
40665         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40666         gl_MALLOCA.
40667
40668 2007-06-12  Bruno Haible  <bruno@clisp.org>
40669
40670         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40671         to ia64, x86_64, i386.
40672         Reported by Eric Blake.
40673
40674 2007-06-12  Bruno Haible  <bruno@clisp.org>
40675
40676         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40677         cross-compiling to x86_64.
40678
40679 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40680
40681         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40682         glitch reported by Ralf Wildenhues in
40683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40684
40685         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40686         Vin Shelton.
40687
40688 2007-06-11  Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40691         replacement string.
40692         Reported by Eric Blake.
40693
40694 2007-06-10  Bruno Haible  <bruno@clisp.org>
40695
40696         Prepare vasnprintf code for use with Unicode strings.
40697         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40698         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40699         TYPE_U32_STRING.
40700         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40701         a_u32_string variants.
40702         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40703         * lib/printf-args.c: Don't include config.h and the specification
40704         header if PRINTF_FETCHARGS is already defined.
40705         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40706         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40707         TYPE_U16_STRING, TYPE_U32_STRING.
40708         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40709         u16_directive, u16_directives, u32_directive, u32_directives): New
40710         types.
40711         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40712         New declarations.
40713         * lib/printf-parse.c: Don't include config.h and the specification
40714         header if PRINTF_PARSE is already defined. Eliminate the set of
40715         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40716         them now. Include c-ctype.h.
40717         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40718         directive and CHAR_T_ONLY_ASCII.
40719         * lib/vasnprintf.c: Don't include config.h and the specification header
40720         if VASNPRINTF is already defined.
40721         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40722         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40723         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40724         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40725         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40726         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40727         code accordingly.
40728         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40729         pad_ourselves also in this case, with the 'c' and 's' directives, and
40730         with a different notion of "width".
40731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40732
40733 2007-06-10  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/unistr/u32-mbsnlen: New file.
40736         * lib/unistr/u32-mbsnlen.c: New file.
40737
40738         * modules/unistr/u16-mbsnlen: New file.
40739         * lib/unistr/u16-mbsnlen.c: New file.
40740
40741         * modules/unistr/u8-mbsnlen: New file.
40742         * lib/unistr/u8-mbsnlen.c: New file.
40743
40744         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40745         declarations.
40746
40747 2007-06-10  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/string_.h (mbsnlen): New declaration.
40750         * lib/mbsnlen.c: New file.
40751         * m4/mbsnlen.m4: New file.
40752         * modules/mbsnlen: New file.
40753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40754         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40755         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40756
40757 2007-06-10  Bruno Haible  <bruno@clisp.org>
40758
40759         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40760
40761 2007-06-10  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40764         * lib/mbuiter.h: Likewise.
40765
40766 2007-06-10  Bruno Haible  <bruno@clisp.org>
40767
40768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40769         declaration.
40770
40771 2007-06-10  Karl Berry  <karl@gnu.org>
40772
40773         * config/srclist.txt: remove gettext entries, Bruno prefers
40774         to update individually.
40775
40776 2007-06-10  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40779         'maxlen'. Ensure only length + width bytes are allocated, not
40780         length + 1 + width.
40781
40782 2007-06-09  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40785         (CHAR_T): Remove macro.
40786         (VASNPRINTF): Update.
40787
40788 2007-06-09  Bruno Haible  <bruno@clisp.org>
40789
40790         * MODULES.html.sh (Unicode string functions): Add the new modules.
40791
40792         * modules/uniconv/u32-conv-to-enc: New file.
40793         * lib/uniconv/u32-conv-to-enc.c: New file.
40794         * modules/uniconv/u32-conv-to-enc-tests: New file.
40795         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40796
40797         * modules/uniconv/u16-conv-to-enc: New file.
40798         * lib/uniconv/u16-conv-to-enc.c: New file.
40799         * lib/uniconv/u-conv-to-enc.h: New file.
40800         * modules/uniconv/u16-conv-to-enc-tests: New file.
40801         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40802
40803         * modules/uniconv/u8-conv-to-enc: New file.
40804         * lib/uniconv/u8-conv-to-enc.c: New file.
40805         * modules/uniconv/u8-conv-to-enc-tests: New file.
40806         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40807
40808         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40809         u32_conv_to_encoding): New declarations.
40810
40811 2007-06-09  Bruno Haible  <bruno@clisp.org>
40812
40813         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40814
40815 2007-06-09  Bruno Haible  <bruno@clisp.org>
40816
40817         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40818         * modules/malloca: Renamed from modules/allocsa, updated.
40819         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40820         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40821         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40822         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40823         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40824         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40825         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40826         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40827         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40828         * modules/c-strcasestr (Depends-on): Update.
40829         * lib/c-strcasestr.c: Update.
40830         * modules/c-strstr (Depends-on): Update.
40831         * lib/c-strstr.c: Update.
40832         * modules/canonicalize-lgpl (Depends-on): Update.
40833         * lib/canonicalize-lgpl.c: Update.
40834         * modules/clean-temp (Depends-on): Update.
40835         * lib/clean-temp.c: Update.
40836         * modules/csharpcomp (Depends-on): Update.
40837         * lib/csharpcomp.c: Update.
40838         * modules/csharpexec (Depends-on): Update.
40839         * lib/csharpexec.c: Update.
40840         * modules/javacomp (Depends-on): Update.
40841         * lib/javacomp.c: Update.
40842         * modules/javaexec (Depends-on): Update.
40843         * lib/javaexec.c: Update.
40844         * modules/mbscasestr (Depends-on): Update.
40845         * lib/mbscasestr.c: Update.
40846         * modules/mbsstr (Depends-on): Update.
40847         * lib/mbsstr.c: Update.
40848         * modules/setenv (Depends-on): Update.
40849         * lib/setenv.c: Update.
40850         * modules/strcasestr (Depends-on): Update.
40851         * lib/strcasestr.c: Update.
40852         * modules/striconveha (Depends-on): Update.
40853         * lib/striconveha.c: Update.
40854         * modules/relocatable-prog-wrapper (Files): Update.
40855         * lib/relocwrapper.c: Update.
40856         * build-aux/install-reloc: Update.
40857         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40858
40859 2007-06-08  Bruno Haible  <bruno@clisp.org>
40860
40861         Port to uClibc.
40862         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40863         * lib/fpurge.c (fpurge): Likewise.
40864         * lib/freading.c (freading): Likewise.
40865         * lib/fseeko.c (rpl_fseeko): Likewise.
40866         * lib/fseterr.c (fseterr): Likewise.
40867         * lib/fwriting.c (fwriting): Likewise.
40868         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40869
40870 2007-06-08  Bruno Haible  <bruno@clisp.org>
40871
40872         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40873         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40874         * modules/gettext (Files): Add m4/intlmacosx.m4.
40875
40876 2007-06-07  Bruno Haible  <bruno@clisp.org>
40877
40878         * modules/localename-tests: New file.
40879         * tests/test-localename.c: New file.
40880
40881         New module 'localename'.
40882         * lib/localename.h: New file.
40883         * lib/localename.c: New file, from GNU gettext.
40884         * m4/localename.m4: New file.
40885         * modules/localename: New file.
40886
40887 2007-06-07  Bruno Haible  <bruno@clisp.org>
40888
40889         Work around the lack of <wchar.h> on some builds of uClibc.
40890         * doc/headers/wchar.texi: Update.
40891         * lib/wchar_.h: Include <wchar.h> only if it exists.
40892         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40893         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40894         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40895         doesn't exist.
40896         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40897         * modules/mbfile (Depends-on): Add wchar.
40898         * modules/mbiter (Depends-on): Likewise.
40899         * modules/mbuiter (Depends-on): Likewise.
40900         Reported by Simon Josefsson.
40901
40902 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40903
40904         Work around problem reported by Steven M. Schweda in
40905         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40906         Tru64 5.1B with the Compaq compiler environment installed declares
40907         an 'isblank' function but does not define it in the C library.
40908         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40909         * lib/regex_internal.h (isblank): Likewise.
40910         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40911         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40912
40913 2007-06-05  Bruno Haible  <bruno@clisp.org>
40914
40915         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40916         ia64.
40917         * modules/printf-safe: New file.
40918         * modules/fprintf-posix (Depends-on): Add printf-safe.
40919         * modules/printf-posix (Depends-on): Likewise.
40920         * modules/snprintf-posix (Depends-on): Likewise.
40921         * modules/sprintf-posix (Depends-on): Likewise.
40922         * modules/vasnprintf-posix (Depends-on): Likewise.
40923         * modules/vasprintf-posix (Depends-on): Likewise.
40924         * modules/vfprintf-posix (Depends-on): Likewise.
40925         * modules/vprintf-posix (Depends-on): Likewise.
40926         * modules/vsnprintf-posix (Depends-on): Likewise.
40927         * modules/vsprintf-posix (Depends-on): Likewise.
40928         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40929         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40930         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40931         "no" on i386, x86_64, ia64.
40932         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40933         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40934         on i386, x86_64, ia64.
40935         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40936         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40937         on i386, x86_64, ia64.
40938         * tests/test-vasnprintf-posix.c: Include float.h.
40939         (LDBL80_WORDS): New macro.
40940         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40941         on i386, x86_64, ia64.
40942         * tests/test-vasprintf-posix.c: Include float.h.
40943         (LDBL80_WORDS): New macro.
40944         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40945         on i386, x86_64, ia64.
40946         * tests/test-snprintf-posix.c: Include float.h.
40947         * tests/test-sprintf-posix.c: Likewise.
40948         * tests/test-vsnprintf-posix.c: Likewise.
40949         * tests/test-vsprintf-posix.c: Likewise.
40950
40951 2007-06-05  Bruno Haible  <bruno@clisp.org>
40952
40953         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40954         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40955         non-IEEE numbers on i386, x86_64, ia64.
40956         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40957         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40958         * tests/test-isnanl.h: Include float.h.
40959         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40960
40961 2007-06-05  Bruno Haible  <bruno@clisp.org>
40962
40963         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40964         also the %a / %A. Handle the %a / %A code before this extra handling.
40965
40966 2007-06-05  Bruno Haible  <bruno@clisp.org>
40967
40968         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40969         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40970
40971 2007-06-05  Bruno Haible  <bruno@clisp.org>
40972
40973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40974         typo in variable name.
40975
40976 2007-06-05  Eric Blake  <ebb9@byu.net>
40977
40978         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40979         Reported by Simon Josefsson.
40980
40981 2007-06-04  Bruno Haible  <bruno@clisp.org>
40982
40983         Avoid test failures on some PowerPC platforms.
40984         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40985         Define differently for PowerPC.
40986         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40987         Reported by Gary V. Vaughan <gary@gnu.org>.
40988
40989 2007-06-02  Bruno Haible  <bruno@clisp.org>
40990
40991         Fix test-stdint failure on FreeBSD/ia64.
40992         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40993         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40994         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40995         * doc/headers/stdint.texi: Update.
40996
40997 2007-06-01  Bruno Haible  <bruno@clisp.org>
40998
40999         * tests/test-binary-io.c (main): Pass a third argument to open().
41000         Reported by Gary V. Vaughan <gary@gnu.org>.
41001
41002 2007-06-01  Bruno Haible  <bruno@clisp.org>
41003
41004         * doc/functions/frexpl.texi: Update for mingw.
41005
41006 2007-06-01  Bruno Haible  <bruno@clisp.org>
41007
41008         * tests/test-lseek.c (main): Disable test of errno for invalid third
41009         argument.
41010         * doc/functions/lseek.texi: Update.
41011         Reported by Gary V. Vaughan <gary@gnu.org>.
41012
41013 2007-05-28  Bruno Haible  <bruno@clisp.org>
41014
41015         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41016
41017 2007-05-31  Eric Blake  <ebb9@byu.net>
41018
41019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41020         cross compiling.
41021
41022 2007-05-30  Eric Blake  <ebb9@byu.net>
41023         and Bruno Haible  <bruno@clisp.org>
41024
41025         Work around mingw test failures exposed by m4-1.4.9b.
41026         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41027         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41028         moment.
41029
41030 2007-05-30  Bruno Haible  <bruno@clisp.org>
41031
41032         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41033         assuming that they are closed. Needed on HP-UX 11.
41034
41035 2007-05-29  Bruno Haible  <bruno@clisp.org>
41036
41037         Fix a problem with #include_next.
41038         * lib/dirent_.h: Split the double-inclusion guard.
41039         * lib/fcntl_.h: Likewise.
41040         * lib/float_.h: Likewise.
41041         * lib/iconv_.h: Likewise.
41042         * lib/inttypes_.h: Likewise.
41043         * lib/locale_.h: Likewise.
41044         * lib/math_.h: Likewise.
41045         * lib/netinet_in_.h: Likewise.
41046         * lib/search_.h: Likewise.
41047         * lib/signal_.h: Likewise.
41048         * lib/stdint_.h: Likewise.
41049         * lib/stdio_.h: Likewise.
41050         * lib/stdlib_.h: Likewise.
41051         * lib/string_.h: Likewise.
41052         * lib/sys_select_.h: Likewise.
41053         * lib/sys_socket_.h: Likewise.
41054         * lib/sys_stat_.h: Likewise.
41055         * lib/sys_time_.h: Likewise.
41056         * lib/sysexits_.h: Likewise.
41057         * lib/time_.h: Likewise.
41058         * lib/unistd_.h: Likewise.
41059         * lib/wchar_.h: Likewise.
41060         * lib/wctype_.h: Likewise.
41061
41062 2007-05-29  Bruno Haible  <bruno@clisp.org>
41063
41064         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41065         for the moment.
41066
41067 2007-05-29  Bruno Haible  <bruno@clisp.org>
41068
41069         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41070         invocation.
41071         Reported by Eric Blake.
41072
41073 2007-05-29  Bruno Haible  <bruno@clisp.org>
41074
41075         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41076         compiling case.
41077
41078 2007-05-29  Eric Blake  <ebb9@byu.net>
41079             Bruno Haible  <bruno@clisp.org>
41080
41081         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41082         cross compiles.
41083
41084 2007-05-28  Eric Blake  <ebb9@byu.net>
41085
41086         * modules/closein-tests (test_closein_LDADD): Support test on
41087         cygwin with libtool.
41088
41089 2007-05-28  Bruno Haible  <bruno@clisp.org>
41090
41091         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41092         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41093         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41094         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41095         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41096         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41097         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41098         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41099         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41100
41101 2007-05-28  Eric Blake  <ebb9@byu.net>
41102
41103         Unconditionally include <config.h> in unit tests.
41104         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41105         * tests/test-allocsa.c, tests/test-arcfour.c,
41106         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41107         tests/test-array_list.c, tests/test-array_oset.c,
41108         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41109         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41110         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41111         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41112         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41113         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41114         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41115         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41116         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41117         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41118         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41119         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41120         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41121         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41122         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41123         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41124         test-md5.c, test-memmem.c, test-printf-posix.c,
41125         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41126         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41127         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41128         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41129         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41130         test-vasnprintf-posix2.c, test-vasnprintf.c,
41131         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41132         test-vfprintf-posix.c, test-vprintf-posix.c,
41133         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41134         test-xvasprintf.c: Likewise.
41135
41136 2007-05-28  Bruno Haible  <bruno@clisp.org>
41137
41138         * gnulib-tool (func_import): Remember the --with-tests command-line
41139         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41140         Reported by Eric Blake.
41141
41142 2007-05-28  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/ftell-tests: New file.
41145         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41146         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41147
41148         * lib/ftell.c: New file.
41149         * modules/ftell: New file.
41150         * m4/ftell.m4: New file.
41151         * doc/functions/ftell.texi: Update.
41152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41153         REPLACE_FTELL.
41154         * lib/stdio_.h (rpl_ftell): New declaration.
41155         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41156         REPLACE_FTELL.
41157
41158 2007-05-28  Eric Blake  <ebb9@byu.net>
41159
41160         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41161
41162 2007-05-28  Bruno Haible  <bruno@clisp.org>
41163
41164         * modules/fseek-tests: New file.
41165         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41166         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41167
41168         * lib/fseek.c: New file.
41169         * modules/fseek: New file.
41170         * m4/fseek.m4: New file.
41171         * doc/functions/fseek.texi: Update.
41172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41173         REPLACE_FSEEK.
41174         * lib/stdio_.h (rpl_fseek): New declaration.
41175         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41176         REPLACE_FSEEK.
41177
41178 2007-05-28  Bruno Haible  <bruno@clisp.org>
41179
41180         * lib/stdio_.h (fflush): More comments.
41181
41182 2007-05-28  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41185         runtime test.
41186
41187 2007-05-28  Eric Blake  <ebb9@byu.net>
41188
41189         Improve lseek module.
41190         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41191         * lib/unistd_.h (lseek): Scale back link warning message.
41192         * tests/test-lseek.c: Beef up test.
41193         * tests/test-lseek.sh: Exercise more facets of lseek.
41194         Reported by Bruno Haible.
41195
41196 2007-05-28  Bruno Haible  <bruno@clisp.org>
41197
41198         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41199         to define.
41200
41201 2007-05-27  Bruno Haible  <bruno@clisp.org>
41202
41203         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41204
41205 2007-05-27  Bruno Haible  <bruno@clisp.org>
41206
41207         * modules/openmp: New file.
41208         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41209         Noah Misch.
41210
41211 2007-05-26  Bruno Haible  <bruno@clisp.org>
41212
41213         * modules/chdir-long (Depends-on): Add fchdir.
41214         * modules/chdir-safer (Depends-on): Likewise.
41215         * modules/fts (Depends-on): Likewise.
41216         * modules/fts-lgpl (Depends-on): Likewise.
41217         * modules/openat (Depends-on): Likewise.
41218         * modules/savewd (Depends-on): Likewise.
41219
41220 2007-05-24  Eric Blake  <ebb9@byu.net>
41221
41222         Fix lseek on mingw.
41223         * modules/lseek: New module.
41224         * m4/lseek.m4: New file.
41225         * lib/lseek.c: New file.
41226         * modules/lseek-tests: New file.
41227         * tests/test-lseek.c: New file.
41228         * tests/test-lseek.sh: New file.
41229         * MODULES.html.sh: Document lseek module.
41230         * modules/fflush (Depends-on): Add lseek, fseeko.
41231         * modules/fseeko (Depends-on): Likewise.
41232         * modules/ftello (Depends-on): Likewise.
41233         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41234         broken.
41235         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41236         broken.
41237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41238         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41239         * lib/ftello.c (rpl_ftello): Likewise.
41240         * tests/test-fseeko.c (main): Test this.
41241         * tests/test-fseeko.sh: Likewise.
41242         * tests/test-ftello.c (main): Likewise.
41243         * tests/test-ftello.sh: Likewise.
41244         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41245         implies replacing fseek.
41246         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41247         HAVE_FTELLO.
41248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41249         * modules/unistd (Makefile.am): Likewise.
41250         * lib/unistd_.h (lseek): Declare a replacement.
41251         * doc/functions/lseek.texi (lseek): Document this fix.
41252         * doc/functions/fseek.texi (fseek): Likewise.
41253         * doc/functions/ftell.texi (ftell): Likewise.
41254
41255 2007-05-24  Bruno Haible  <bruno@clisp.org>
41256
41257         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41258         in the printed representation of a NaN.
41259         * tests/test-vasprintf-posix.c (test_function): Likewise.
41260         * tests/test-snprintf-posix.h (test_function): Likewise.
41261         * tests/test-sprintf-posix.h (test_function): Likewise.
41262         Reported by Eric Blake.
41263
41264 2007-05-23  Eric Blake  <ebb9@byu.net>
41265
41266         Fix fseeko/ftello on cygwin 1.5.24.
41267         * doc/functions/fseeko.texi (fseeko): Document the fix.
41268         * doc/functions/ftello.texi (ftello): Document the fix.
41269         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41270         * doc/functions/stdout.text (stdout): New file.
41271         * doc/functions/stderr.text (stderr): New file.
41272         * doc/gnulib.texi (Function Substitutes): Use new files.
41273         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41274         prior to 1.7.0.
41275         * tests/test-ftello.c (main): Likewise for ftello.
41276         * tests/test-fseeko.sh: New file.
41277         * tests/test-ftello.sh: New file.
41278         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41279         with seekable stdin.
41280         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41281         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41282         (gl_REPLACE_FSEEKO): New macro.
41283         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41284         * modules/fseeko (Files): Distribute fseeko.c.
41285         * modules/ftello (Files): Distribute ftello.c.
41286         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41287         mode.
41288         * lib/ftello.c (rpl_ftello): New file.
41289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41290         fseeko, ftello.
41291         (gl_STDIN_LARGE_OFFSET): New macro.
41292         * modules/stdio (Makefile.am): Perform the replacement.
41293         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41294
41295 2007-05-23  Bruno Haible  <bruno@clisp.org>
41296
41297         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41298         GNULIB_POSIXCHECK is defined.
41299
41300 2007-05-21  Bruno Haible  <bruno@clisp.org>
41301
41302         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41303         Check also the output for NaN arguments. When cross-compiling, guess
41304         no on IRIX.
41305         * lib/vasnprintf.c: Update comments.
41306         * tests/test-vasnprintf-posix.c (strisnan): New function.
41307         (test_function): Use it.
41308         * tests/test-vasprintf-posix.c (strisnan): New function.
41309         (test_function): Use it.
41310         * tests/test-snprintf-posix.h (strisnan): New function.
41311         (test_function): Use it.
41312         * tests/test-sprintf-posix.h (strisnan): New function.
41313         (test_function): Use it.
41314         Reported by Eric Blake.
41315
41316 2007-05-20  Bruno Haible  <bruno@clisp.org>
41317
41318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41319         numbers that fails on BeOS.
41320         * doc/functions/frexpl.texi: Update.
41321
41322 2007-05-20  Jim Meyering  <jim@meyering.net>
41323
41324         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41325         forced upon us by glibc-2.6.
41326
41327 2007-05-20  Bruno Haible  <bruno@clisp.org>
41328
41329         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41330         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41331         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41332         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41333         NEED_PRINTF_INFINITE.
41334         (is_infinitel): New function.
41335         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41337         gl_PREREQ_VASNPRINTF_INFINITE.
41338         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41339         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41340         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41341         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41342         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41343         gl_PREREQ_VASNPRINTF_INFINITE.
41344         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41351         * doc/functions/fprintf.texi: Update.
41352         * doc/functions/printf.texi: Update.
41353         * doc/functions/snprintf.texi: Update.
41354         * doc/functions/sprintf.texi: Update.
41355         * doc/functions/vfprintf.texi: Update.
41356         * doc/functions/vprintf.texi: Update.
41357         * doc/functions/vsnprintf.texi: Update.
41358         * doc/functions/vsprintf.texi: Update.
41359
41360 2007-05-20  Bruno Haible  <bruno@clisp.org>
41361
41362         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41363         was not found in libc.
41364         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41365
41366 2007-05-20  Bruno Haible  <bruno@clisp.org>
41367
41368         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41369         printed as "-nan" instead of "nan".
41370         * tests/test-vasprintf-posix.c (test_function): Likewise.
41371         * tests/test-snprintf-posix.h (test_function): Likewise.
41372         * tests/test-sprintf-posix.h (test_function): Likewise.
41373         Needed for HP-UX 11.
41374
41375 2007-05-20  Jim Meyering  <jim@meyering.net>
41376
41377         Fix buggy test for the fchownat-deref bug.
41378         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41379         symlink required for the run-test.  Without it, this test would
41380         always declare that fchownat doesn't work, and client code would
41381         unnecessarily use the replacement function with fixed libc.
41382         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41383         Reported by Greg Schafer.
41384
41385 2007-05-19  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41388         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41389         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41390         Needed for IRIX 6.5 and Solaris 2.5.1.
41391
41392 2007-05-19  Bruno Haible  <bruno@clisp.org>
41393
41394         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41395         (test_function): Skip tests involving -0.0 on platforms where
41396         -0.0 = 0.0.
41397         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41398         (test_function): Skip tests involving -0.0 on platforms where
41399         -0.0 = 0.0.
41400         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41401         (test_function): Skip tests involving -0.0 on platforms where
41402         -0.0 = 0.0.
41403         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41404         (test_function): Skip tests involving -0.0 on platforms where
41405         -0.0 = 0.0.
41406         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41407         tests.
41408         * tests/test-printf-posix.h (test_function): Likewise.
41409         * tests/test-printf-posix.output: Remove all -0.0 related results.
41410         Needed for IRIX 6.5.
41411
41412 2007-05-19  Bruno Haible  <bruno@clisp.org>
41413
41414         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41415         printed as "nan0x7fffffff" instead of "nan".
41416         * tests/test-vasprintf-posix.c (test_function): Likewise.
41417         * tests/test-snprintf-posix.h (test_function): Likewise.
41418         * tests/test-sprintf-posix.h (test_function): Likewise.
41419         * tests/test-fprintf-posix.h (NaN): Remove macro.
41420         (test_function): Remove all NaN related tests.
41421         * tests/test-printf-posix.h (NaN): Remove macro.
41422         (test_function): Remove all NaN related tests.
41423         * tests/test-printf-posix.output: Remove all NaN related results.
41424         Needed for IRIX 6.5.
41425
41426 2007-05-19  Bruno Haible  <bruno@clisp.org>
41427
41428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41430
41431 2007-05-19  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/float_.h: New file.
41434         * m4/float_h.m4: New file.
41435         * modules/float: New file.
41436         * modules/isnanl (Dependencies): Add float.
41437         * modules/isnanl-nolibm (Dependencies): Likewise.
41438         * modules/mathl (Dependencies): Likewise.
41439         * modules/printf-frexpl (Dependencies): Likewise.
41440         * modules/signbit (Dependencies): Likewise.
41441         * modules/vasnprintf (Dependencies): Likewise.
41442         * doc/headers/float.texi: Update.
41443
41444 2007-05-19  Jim Meyering  <jim@meyering.net>
41445
41446         * lib/utimens.c (gl_futimens): Rename from futimens,
41447         now that glibc-2.6 declares futimens.
41448         * lib/utimens.h: Likewise.
41449
41450 2007-05-19  Bruno Haible  <bruno@clisp.org>
41451
41452         Avoid test failures on mingw.
41453         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41454         * tests/test-printf-posix.sh: Likewise.
41455         * tests/test-vfprintf-posix.sh: Likewise.
41456         * tests/test-vprintf-posix.sh: Likewise.
41457
41458 2007-05-19  Bruno Haible  <bruno@clisp.org>
41459
41460         Fix *printf result for NaN, Inf, -0.0 on mingw.
41461         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41462         * lib/vasnprintf.c: Include math.h and isnan.h.
41463         (is_infinite_or_zero): New function.
41464         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41465         values in the %f, %F, %e, %E, %g, %G directives.
41466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41468         gl_PRINTF_INFINITE and test its result. Invoke
41469         gl_PREREQ_VASNPRINTF_INFINITE.
41470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41477         * doc/functions/fprintf.texi: Update.
41478         * doc/functions/printf.texi: Update.
41479         * doc/functions/snprintf.texi: Update.
41480         * doc/functions/sprintf.texi: Update.
41481         * doc/functions/vfprintf.texi: Update.
41482         * doc/functions/vprintf.texi: Update.
41483         * doc/functions/vsnprintf.texi: Update.
41484         * doc/functions/vsprintf.texi: Update.
41485
41486 2007-05-19  Bruno Haible  <bruno@clisp.org>
41487
41488         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41489         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41490         Instead of multiplying with 10^k, set extra_zeroes to k.
41491         (scale10_round_long_double): Remove function.
41492
41493 2007-05-18  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41496         introduced on 2007-05-06.
41497
41498 2007-05-18  Bruno Haible  <bruno@clisp.org>
41499
41500         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41501         %g directives.
41502         * tests/test-vasprintf-posix.c (test_function): Likewise.
41503         * tests/test-snprintf-posix.h (test_function): Likewise.
41504         * tests/test-sprintf-posix.h (test_function): Likewise.
41505
41506 2007-05-18  Bruno Haible  <bruno@clisp.org>
41507
41508         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41509         (strmatch): New function.
41510         (test_function): Test the %f directive on numbers of various exponents.
41511         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41512         (strmatch): New function.
41513         (test_function): Test the %f directive on numbers of various exponents.
41514         * tests/test-snprintf-posix.h (strmatch): New function.
41515         (test_function): Test the %f directive on numbers of various exponents.
41516         * tests/test-sprintf-posix.h (strmatch): New function.
41517         (test_function): Test the %f directive on numbers of various exponents.
41518         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41519         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41520         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41521         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41522
41523 2007-05-18  Bruno Haible  <bruno@clisp.org>
41524
41525         Add support for 'long double' number output.
41526         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41527         * lib/vasnprintf.c: Include math.h and float+.h.
41528         (mp_limb_t): New type.
41529         (GMP_LIMB_BITS): New macro.
41530         (mp_twolimb_t): New type.
41531         (GMP_TWOLIMB_BITS): New macro.
41532         (mpn_t): New type.
41533         (multiply, divide, convert_to_decimal, decode_long_double,
41534         scale10_round_long_double, scale10_round_decimal_long_double,
41535         floorlog10l): New functions.
41536         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41537         for the %f, %F, %e, %E, %g, %G directives.
41538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41540         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41541         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41549         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41550         * modules/snprintf-posix (Depends-on): Likewise.
41551         * modules/sprintf-posix (Depends-on): Likewise.
41552         * modules/vasnprintf-posix (Depends-on): Likewise.
41553         * modules/vasprintf-posix (Depends-on): Likewise.
41554         * modules/vfprintf-posix (Depends-on): Likewise.
41555         * modules/vsnprintf-posix (Depends-on): Likewise.
41556         * modules/vsprintf-posix (Depends-on): Likewise.
41557         * modules/vasnprintf (Files): Add lib/float+.h.
41558         * doc/functions/fprintf.texi: Update.
41559         * doc/functions/printf.texi: Update.
41560         * doc/functions/snprintf.texi: Update.
41561         * doc/functions/sprintf.texi: Update.
41562         * doc/functions/vfprintf.texi: Update.
41563         * doc/functions/vprintf.texi: Update.
41564         * doc/functions/vsnprintf.texi: Update.
41565         * doc/functions/vsprintf.texi: Update.
41566
41567 2007-05-18  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41570
41571 2007-05-18  Bruno Haible  <bruno@clisp.org>
41572
41573         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41574         for printing 64-bit integers. Needed for mingw.
41575
41576 2007-05-18  Bruno Haible  <bruno@clisp.org>
41577
41578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41579         gl_FUNC_FREXPL_WORKS.
41580         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41581
41582 2007-05-18  Bruno Haible  <bruno@clisp.org>
41583
41584         * modules/frexpl-nolibm-tests: New file.
41585
41586         * modules/frexpl-nolibm: New file.
41587         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41588
41589 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41590
41591         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41592         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41593         GCC 4.2, which otherwise issues a lot of warnings.
41594         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41595         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41596         Likewise.
41597         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41598         * modules/iconv_open (iconv.h): Likewise.
41599         * modules/locale (locale.h): Likewise.
41600         * modules/netinet_in (netinet/in.h): Likewise.
41601         * modules/sys_select (sys_select.h): Likewise.
41602         * modules/sys_socket (sys/socket.h): Likewise.
41603         * modules/sys_stat (sys/stat.h): Likewise.
41604         * modules/sysexits (sysexits.h): Likewise.
41605         * modules/unistd (unistd.h): Likewise.
41606
41607 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41608
41609         * modules/closein-tests (Makefile.am): Distribute
41610         `test-closein.sh'.
41611
41612 2007-05-17  Bruno Haible  <bruno@clisp.org>
41613
41614         * tests/test-printf-posix.output: Renamed from
41615         tests/test-fprintf-posix.out.
41616         * modules/fprintf-posix-tests: Update.
41617         * modules/printf-posix-tests: Update.
41618         * modules/vfprintf-posix-tests: Update.
41619         * modules/vprintf-posix-tests: Update.
41620         * tests/test-fprintf-posix.sh: Update.
41621         * tests/test-printf-posix.sh: Update.
41622         * tests/test-vfprintf-posix.sh: Update.
41623         * tests/test-vprintf-posix.sh: Update.
41624         Reported by Ralf Wildenhues.
41625
41626 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41627
41628         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41629         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41630         GCC 4.2, which otherwise issues a lot of warnings.
41631         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41632         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41633         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41634         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41635         it should no longer be needed.
41636         * lib/string_.h: Likewise.
41637         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41638         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41639         * modules/inttypes (inttypes.h): Likewise.
41640         * modules/math (math.h): Likewise.
41641         * modules/search (search.h): Likewise.
41642         * modules/signal (signal.h): Likewise.
41643         * modules/stdint (stdint.h): Likewise.
41644         * modules/stdio (stdio.h): Likewise.
41645         * modules/stdlib (stdlib.h): Likewise.
41646         * modules/string (string.h): Likewise.
41647         * modules/sys_time (sys/time.h): Likewise.
41648         * modules/time (time.h): Likewise.
41649         * modules/wchar (wchar.h): Likewise.
41650         * modules/wctype (wtype.h): Likewise.
41651
41652 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41653
41654         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41655
41656 2007-05-13  Bruno Haible  <bruno@clisp.org>
41657
41658         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41659         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41660         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41661         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41662         (gl_PREREQ_STRTOK_R): Don't require it here.
41663
41664 2007-05-13  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41667         when used in C++ mode.
41668
41669 2007-05-12  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/linebuffer.h: Tweak doc.
41672         * lib/linebuffer.c: Likewise.
41673
41674 2007-05-12  James Youngman  <jay@gnu.org>
41675
41676         * lib/linebuffer.c (readlinebuffer_delim): New function,
41677         like readlinebuffer, but use a caller-specified delimiter.
41678         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41679         as the delimiter.
41680         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41681
41682 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41683
41684         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41685         * modules/openat (Files): Remove openat-die.c.
41686         (Depends-on): Add openat-die.
41687         * modules/openat-die: New module.
41688
41689 2007-05-06  Bruno Haible  <bruno@clisp.org>
41690
41691         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41692         Update with info about Cygwin.
41693         * doc/functions/fprintf.texi: Update.
41694         * doc/functions/printf.texi: Update.
41695         * doc/functions/snprintf.texi: Update.
41696         * doc/functions/sprintf.texi: Update.
41697         * doc/functions/vfprintf.texi: Update.
41698         * doc/functions/vprintf.texi: Update.
41699         * doc/functions/vsnprintf.texi: Update.
41700         * doc/functions/vsprintf.texi: Update.
41701         Reported by Eric Blake.
41702
41703 2007-05-06  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41706         padding ourselves for the floating-point directives.
41707         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41710         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41711         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41713         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41714         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41716         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41718         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41719         * tests/test-snprintf-posix.h (test_function): Also check the width
41720         and some flags in the %f directive.
41721         * tests/test-sprintf-posix.h (test_function): Likewise.
41722         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41723         * tests/test-vasprintf-posix.c (test_function): Likewise.
41724         * doc/functions/fprintf.texi: Update.
41725         * doc/functions/printf.texi: Update.
41726         * doc/functions/snprintf.texi: Update.
41727         * doc/functions/sprintf.texi: Update.
41728         * doc/functions/vfprintf.texi: Update.
41729         * doc/functions/vprintf.texi: Update.
41730         * doc/functions/vsnprintf.texi: Update.
41731         * doc/functions/vsprintf.texi: Update.
41732
41733 2007-05-06  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41736         pass the ' flag character to sprintf or snprintf.
41737         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41740         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41741         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41746         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41749         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41750         flag.
41751         * tests/test-sprintf-posix.h (test_function): Likewise.
41752         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41753         * tests/test-vasprintf-posix.c (test_function): Likewise.
41754         * doc/functions/fprintf.texi: Update.
41755         * doc/functions/printf.texi: Update.
41756         * doc/functions/snprintf.texi: Update.
41757         * doc/functions/sprintf.texi: Update.
41758         * doc/functions/vfprintf.texi: Update.
41759         * doc/functions/vprintf.texi: Update.
41760         * doc/functions/vsnprintf.texi: Update.
41761         * doc/functions/vsprintf.texi: Update.
41762
41763 2007-05-01  Bruno Haible  <bruno@clisp.org>
41764
41765         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41766
41767 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41768
41769         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41770         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41771
41772 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41773
41774         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41775         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41777
41778 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41779
41780         * lib/argp-help.c (struct hol_entry): New member `ord'.
41781         (HOL_ENTRY_PTRCMP): Use ord for comparison
41782         (hol_sort): Initialize ord.
41783
41784 2007-05-01  Bruno Haible  <bruno@clisp.org>
41785
41786         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41787         Reported by Eric Blake.
41788         * doc/gnulib.texi (Function Substitutes): Update.
41789
41790 2007-05-01  Bruno Haible  <bruno@clisp.org>
41791
41792         * doc/functions.texi: Remove file, now redundant through
41793         doc/functions/*.texi.
41794
41795 2007-05-01  Bruno Haible  <bruno@clisp.org>
41796
41797         * modules/argp (Depends-on): Add sleep.
41798
41799 2007-05-01  Bruno Haible  <bruno@clisp.org>
41800
41801         * modules/sleep-tests: New file.
41802         * tests/test-sleep.c: New file.
41803
41804         * modules/sleep: New file.
41805         * lib/sleep.c: New file.
41806         * m4/sleep.m4: New file.
41807         * lib/unistd_.h (sleep): New declaration.
41808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41809         HAVE_SLEEP.
41810         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41811         * doc/functions/sleep.texi: Document the sleep module.
41812
41813 2007-05-01  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/sigprocmask.h: Remove file.
41816         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41817         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41818         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41819         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41820         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41821         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41822         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41823         HAVE_SIGSET_T as a shell variable.
41824         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41825         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41826         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41827         (Depends-on): Add signal. Remove verify.
41828         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41829         (Include): Mention <signal.h> instead of sigprocmask.h.
41830         * NEWS: Mention the change.
41831         * lib/fatal-signal.c: Don't include sigprocmask.h.
41832
41833 2007-05-01  Bruno Haible  <bruno@clisp.org>
41834
41835         * modules/signal: New file.
41836         * lib/signal_.h: New file.
41837         * m4/signal_h.m4: New file.
41838
41839 2007-05-01  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41842         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41843         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41844         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41845
41846 2007-05-01  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41849         configure time.
41850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41851         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41852         * modules/sys_stat (Makefile.am): Substitute their values into
41853         sys/stat.h.
41854
41855 2007-05-01  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41858         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41859         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41860
41861 2007-05-01  Bruno Haible  <bruno@clisp.org>
41862
41863         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41864         'assert' module here.
41865
41866 2007-05-01  Bruno Haible  <bruno@clisp.org>
41867
41868         * doc/functions/*.texi: New files.
41869         * doc/functions/google-ranking.txt: New file.
41870         * doc/gnulib.texi (Function Substitutes): New chapter.
41871         (ctime, inet_ntoa): Remove sections.
41872         * doc/ctime.texi: Remove file.
41873         * doc/inet_ntoa.texi: Remove file.
41874         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41875         dependencies.
41876         (%.info): New rule, specifying a --reference-limit.
41877
41878 2007-05-01  Bruno Haible  <bruno@clisp.org>
41879
41880         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41881
41882 2007-05-01  Bruno Haible  <bruno@clisp.org>
41883
41884         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41885         the portability of 'mkdir' to mingw systems.
41886
41887 2007-05-01  Bruno Haible  <bruno@clisp.org>
41888
41889         * doc/headers/google-ranking.txt: New file.
41890
41891 2007-04-30  Eric Blake  <ebb9@byu.net>
41892
41893         Prefer fseeko to fseek.
41894         * modules/getpass (Depends-on): Add fseeko.
41895         * lib/getpass.c (getpass): Use fseeko, not fseek.
41896
41897 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41898
41899         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41900         assumes the sorting is stable, while most qsort implementations
41901         are not.  Use argument addresses to ensure they never compare as
41902         equal.
41903
41904         * tests/test-argp-2.sh (usage-indent test): Fix output
41905         (func_compare): Restore diff options
41906         * tests/test-argp.c: Restore #include "progname.h"
41907
41908 2007-04-29  Bruno Haible  <bruno@clisp.org>
41909
41910         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41912         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41914         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41915         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41916         (TESTS, check_PROGRAMS): Add test-snprintf.
41917         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41918         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41919         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41920         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41921         assertions that fail on HP-UX, OSF/1, or IRIX.
41922         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41923
41924 2007-04-29  Bruno Haible  <bruno@clisp.org>
41925
41926         * MODULES.html.sh (posix_functions): Remove 'contents'.
41927
41928 2007-04-29  Karl Berry  <karl@gnu.org>
41929
41930         * config/srclist.txt (gendocs_template_min): new entry.
41931
41932 2007-04-29  Bruno Haible  <bruno@clisp.org>
41933
41934         Work around fpurge bug on BSD systems.
41935         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41937         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41938         fpurge to rpl_fpurge if the system already has this function.
41939         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41940         the case where the system already has this function. Correct invariants
41941         on BSD systems.
41942         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41943         BSD systems.
41944
41945 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41946
41947         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41948         proposed by Sven Verdoolaege.
41949
41950         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41951         options.
41952         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41953         (usage and help tests): Update
41954
41955 2007-04-29  Bruno Haible  <bruno@clisp.org>
41956
41957         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41958         Print more information in case of failure. Disable a test on BeOS.
41959
41960 2007-04-29  Bruno Haible  <bruno@clisp.org>
41961
41962         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41963         This helps debugging on systems on which no gdb is available.
41964
41965 2007-04-29  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/freading.h: Improve comments.
41968         * lib/fwriting.h: Likewise.
41969         * tests/test-freading.c (main): Don't check freading immediately after
41970         repositioning. Needed for glibc.
41971
41972 2007-04-29  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/freading.c (freading): Trivial simplification.
41975
41976 2007-04-28  Bruno Haible  <bruno@clisp.org>
41977
41978         * tests/test-fwriting.c (main): Also test the interaction between
41979         fflush and fwriting.
41980         * modules/fwriting-tests (Depends-on): Add fflush.
41981
41982         * tests/test-freading.c (main): Also test the interaction between
41983         fflush and freading.
41984         * modules/freading-tests (Depends-on): Add fflush.
41985
41986 2007-04-28  Bruno Haible  <bruno@clisp.org>
41987
41988         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41989         fseeko and ftello.
41990         Suggested by Eric Blake.
41991
41992 2007-04-28  Jim Meyering  <jim@meyering.net>
41993
41994         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41995         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41996         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41997
41998 2007-04-27  Eric Blake  <ebb9@byu.net>
41999
42000         * doc/headers/assert.texi (assert.h): Document assert module use.
42001
42002 2007-04-27  Bruno Haible  <bruno@clisp.org>
42003
42004         * doc/headers/*.texi: New files.
42005         * doc/gnulib.texi (Header File Substitutes): New chapter.
42006         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42007         dependencies.
42008         (standards.info ,standards.html, standards.dvi): Update dependencies.
42009         (mostlyclean, clean): New targets.
42010
42011 2007-04-27  Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42014         * modules/sysexits (Files, Makefile.am): Update.
42015
42016         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42017         * modules/sys_socket (Files, Makefile.am): Update.
42018
42019         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42020         * modules/sys_stat (Files, Makefile.am): Update.
42021
42022 2007-04-27  Eric Blake  <ebb9@byu.net>
42023
42024         * lib/freading.h: Improve comments.
42025         * lib/fwriting.h: Likewise.
42026         * lib/fflush.c: Likewise.
42027
42028         Fix closein for mingw.
42029         * modules/closein-tests: Add tests for closein.
42030         * tests/test-closein.c: New file.
42031         * tests/test-closein.sh: Likewise.
42032         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42033         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42034
42035 2007-04-27  Bruno Haible  <bruno@clisp.org>
42036
42037         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42038         version is < 6.
42039         * lib/math_.h [__DECC]: Likewise.
42040         * lib/stdio_.h [__DECC]: Likewise.
42041         * lib/stdlib_.h [__DECC]: Likewise.
42042         * lib/string_.h [__DECC]: Likewise.
42043         * lib/time_.h [__DECC]: Likewise.
42044         * lib/wchar_.h [__DECC]: Likewise.
42045         * lib/wctype_.h [__DECC]: Likewise.
42046
42047 2007-04-27  Bruno Haible  <bruno@clisp.org>
42048
42049         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42050
42051 2007-04-27  Bruno Haible  <bruno@clisp.org>
42052
42053         * lib/fflush.c: Add comments.
42054         * modules/fpurge-tests (Depends-on): Add fflush.
42055         * modules/freadable-tests (Depends-on): Likewise.
42056         * modules/fwritable-tests (Depends-on): Likewise.
42057
42058 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42059
42060         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42061         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42062         Report by Bruno Haible <bruno@clisp.org>.
42063
42064 2007-04-26  Eric Blake  <ebb9@byu.net>
42065
42066         Fix fflush on mingw.
42067         * modules/fflush (Depends-on): Add freading.
42068         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42069         but unread data.
42070
42071 2007-04-26  Eric Blake  <ebb9@byu.net>
42072         and Bruno Haible  <bruno@clisp.org>
42073
42074         Implement freading and fwriting.
42075         * lib/freading.c: New file.
42076         * lib/freading.h: Likewise.
42077         * m4/freading.m4: Likewise.
42078         * modules/freading: Likewise.
42079         * modules/freading-tests: Likewise.
42080         * tests/test-freading.c: Likewise.
42081         * lib/fwriting.c: New file.
42082         * lib/fwriting.h: Likewise.
42083         * m4/fwriting.m4: Likewise.
42084         * modules/fwriting: Likewise.
42085         * modules/fwriting-tests: Likewise.
42086         * tests/test-fwriting.c: Likewise.
42087         * MODULES.html.sh (File stream based Input/Output): Mention them.
42088
42089 2007-04-26  Bruno Haible  <bruno@clisp.org>
42090
42091         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42092         'long' when we assume it.
42093         Suggested by Eric Blake.
42094
42095 2007-04-26  Bruno Haible  <bruno@clisp.org>
42096
42097         Ensure fseeko, ftello are declared on glibc systems.
42098         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42099         * modules/fseeko (configure.ac-early): Likewise.
42100         * modules/ftello (configure.ac-early): Likewise.
42101         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42102         AC_FUNC_FSEEKO for this.
42103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42104         (gl_CHECK_FSEEKO): Remove macro.
42105
42106 2007-04-26  Bruno Haible  <bruno@clisp.org>
42107
42108         * tests/test-fflush.c (main): Also check the ftell result after
42109         fflush and fseek/fseeko.
42110         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42111         file descriptor position cache in the stream.
42112         * lib/fseeko.c (rpl_fseeko): Likewise.
42113
42114 2007-04-26  Bruno Haible  <bruno@clisp.org>
42115
42116         * modules/fflush-tests (Depends-on): Add fseeko.
42117
42118 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42119             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42120
42121         * lib/argz_.h: ensure error_t definition is obtained in same
42122         mechanism system argz.h would have.
42123         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42124         argz facilities are known bad.  Err on the side of caution if
42125         cross-compiling.
42126
42127 2007-04-25  Eric Blake  <ebb9@byu.net>
42128
42129         * lib/fpurge.c (includes): Use stdlib.h for free.
42130         * tests/test-fflush.c (main): Also test fflush-fseeko.
42131
42132 2007-04-25  Bruno Haible  <bruno@clisp.org>
42133
42134         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42135         * lib/fseeko.c: New file.
42136         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42137         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42138         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42139         gl_FUNC_FSEEKO.
42140         (gl_FUNC_FSEEKO): Invoke it.
42141         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42142         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42143         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42144
42145 2007-04-25  Bruno Haible  <bruno@clisp.org>
42146
42147         * modules/fflush (Depends-on): Add ftello.
42148
42149 2007-04-25  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/ftello-tests: New file.
42152         * tests/test-ftello.c: New file.
42153
42154         * modules/ftello: New file.
42155         * m4/ftello.m4: New file.
42156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42157         HAVE_FTELLO.
42158         * lib/stdio_.h (ftello): New declaration.
42159         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42160         HAVE_FTELLO.
42161
42162 2007-04-25  Bruno Haible  <bruno@clisp.org>
42163
42164         * modules/fseeko-tests: New file.
42165         * tests/test-fseeko.c: New file.
42166
42167         * modules/fseeko: New file.
42168         * m4/fseeko.m4: New file.
42169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42170         HAVE_FSEEKO.
42171         * lib/stdio_.h (fseeko): New declaration.
42172         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42173         HAVE_FSEEKO.
42174
42175 2007-04-25  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42178
42179 2007-04-25  Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42182         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42183         * tests/test-unistd.c: Likewise.
42184         * tests/test-fcntl.c: Likewise.
42185
42186 2007-04-23  Eric Blake  <ebb9@byu.net>
42187
42188         * lib/fflush.c: Fix missing include.
42189         Reported by Bruno Haible.
42190
42191 2007-04-23  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42194         Reported by Eric Blake.
42195
42196 2007-04-23  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42199
42200 2007-04-23  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42203
42204 2007-04-23  Bruno Haible  <bruno@clisp.org>
42205
42206         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42207         Needed on HP-UX 11.
42208
42209 2007-04-16  Eric Blake  <ebb9@byu.net>
42210
42211         Make fflush rely on fpurge.
42212         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42213         open coding all variants.
42214         * modules/fflush (Depends-on): Add fpurge and unistd.
42215         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42216         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42217
42218         Fix --with-tests compilation on cygwin.
42219         * modules/argmatch-tests (Makefile.am): List gnulib library first
42220         in LDADD.
42221         * modules/argp-tests (Makefile.am): Likewise.
42222         * modules/array-list-tests (Makefile.am): Likewise.
42223         * modules/array-oset-tests (Makefile.am): Likewise.
42224         * modules/avltree-list-tests (Makefile.am): Likewise.
42225         * modules/avltree-oset-tests (Makefile.am): Likewise.
42226         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42227         * modules/carray-list-tests (Makefile.am): Likewise.
42228         * modules/dirname-tests (Makefile.am): Likewise.
42229         * modules/frexp-tests (Makefile.am): Likewise.
42230         * modules/isnanl-tests (Makefile.am): Likewise.
42231         * modules/linked-list-tests (Makefile.am): Likewise.
42232         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42233         * modules/lock-tests (Makefile.am): Likewise.
42234         * modules/rbtree-list-tests (Makefile.am): Likewise.
42235         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42236         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42237         * modules/tls-tests (Makefile.am): Likewise.
42238         * modules/tsearch-tests (Makefile.am): Likewise.
42239         * modules/xvasprintf-tests (Makefile.am): Likewise.
42240
42241         Fix fpurge for cygwin.
42242         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42243         value.
42244         * modules/fpurge-tests (Depends-on): Clean up trash.
42245
42246 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42247
42248         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42249
42250         * m4/autobuild.m4: Re-indent.
42251
42252 2007-04-13  Bruno Haible  <bruno@clisp.org>
42253
42254         * modules/fpurge-tests: New file.
42255         * tests/test-fpurge.c: New file.
42256
42257         * modules/fpurge: New file.
42258         * lib/fpurge.h: New file.
42259         * lib/fpurge.c: New file.
42260         * m4/fpurge.m4: New file.
42261
42262 2007-04-13  Bruno Haible  <bruno@clisp.org>
42263
42264         * modules/fbufmode-tests: New file.
42265         * tests/test-fbufmode.c: New file.
42266
42267         * modules/fbufmode: New file.
42268         * lib/fbufmode.h: New file.
42269         * lib/fbufmode.c: New file.
42270         * m4/fbufmode.m4: New file.
42271
42272 2007-04-13  Bruno Haible  <bruno@clisp.org>
42273
42274         * modules/fwritable-tests: New file.
42275         * tests/test-fwritable.c: New file.
42276
42277         * modules/fwritable: New file.
42278         * lib/fwritable.h: New file.
42279         * lib/fwritable.c: New file.
42280         * m4/fwritable.m4: New file.
42281
42282 2007-04-13  Bruno Haible  <bruno@clisp.org>
42283
42284         * modules/freadable-tests: New file.
42285         * tests/test-freadable.c: New file.
42286
42287         * modules/freadable: New file.
42288         * lib/freadable.h: New file.
42289         * lib/freadable.c: New file.
42290         * m4/freadable.m4: New file.
42291
42292 2007-04-13  Bruno Haible  <bruno@clisp.org>
42293
42294         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42295         MOSTLYCLEANFILES.
42296
42297 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42298
42299         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42300         gzip bootstrap.conf to avoid dragging in i18n machinery.
42301         (gnulib_tool_option): Use it.
42302
42303 2007-04-13  Bruno Haible  <bruno@clisp.org>
42304
42305         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42306         %F directives.
42307         * tests/test-vasprintf-posix.c (test_function): Likewise.
42308         * tests/test-snprintf-posix.h (test_function): Likewise.
42309         * tests/test-sprintf-posix.h (test_function): Likewise.
42310         * tests/test-fprintf-posix.h (test_function): Likewise.
42311         * tests/test-printf-posix.h (test_function): Likewise.
42312         * tests/test-fprintf-posix.out: Likewise.
42313
42314 2007-04-13  Bruno Haible  <bruno@clisp.org>
42315
42316         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42317         * modules/tls-tests (configure.ac): Likewise.
42318         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42319
42320 2007-04-13  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/tls.c (glthread_tls_get): Fix return type.
42323         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42324
42325 2007-04-12  Eric Blake  <ebb9@byu.net>
42326
42327         * modules/gettime (Depends-on): Remove gettime.
42328         Reported by Dmitry V. Levin.
42329
42330 2007-04-12  Bruno Haible  <bruno@clisp.org>
42331
42332         * modules/fflush (Include): Mention <stdio.h>.
42333         * modules/strtoimax (Include): Mention <inttypes.h>.
42334         * modules/strtoumax (Include): Likewise.
42335
42336 2007-04-12  Eric Blake  <ebb9@byu.net>
42337
42338         * .cvsignore: New file.
42339         * .gitignore: Likewise.
42340
42341 2007-04-12  Bruno Haible  <bruno@clisp.org>
42342
42343         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42344         not before, since $(LDADD) often contains libgnu.a.
42345         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42346         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42347         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42348         Needed on Cygwin.
42349
42350 2007-04-12  Eric Blake  <ebb9@byu.net>
42351
42352         Work around glibc's failure to flush stdin on fclose.
42353         * lib/closein.c (close_stdin): Flush stdin before closing.
42354
42355         Work around glibc's failure to reset seekable stdin on exit.
42356         * modules/closein: New module.
42357         * lib/closein.c: New file.
42358         * lib/closein.h: Likewise.
42359         * m4/closein.m4: Likewise.
42360         * MODULES.html.sh (File stream based Input/Output): Document it.
42361
42362 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42363
42364         * gnulib-tool: Rename generated 'autobuild' script to
42365         'do-autobuild' in --create-megatestdir output.
42366
42367         * doc/gnulib.texi (Build robot for gnulib): Fix.
42368
42369 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42370
42371         * modules/sysexits (Depends-on): Add absolute-header.
42372
42373 2007-04-12  Eric Blake  <ebb9@byu.net>
42374
42375         No need to preserve errno on success.
42376         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42377         Reported by Bruno Haible.
42378
42379 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42380
42381         * MODULES.html.sh (Support for maintaining and releasing
42382         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42383
42384 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42385
42386         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42387
42388 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42389
42390         * modules/autobuild: New module.
42391
42392         * m4/autobuild.m4: New file.
42393
42394 2007-04-11  Bruno Haible  <bruno@clisp.org>
42395
42396         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42397         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42401         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42402         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42413         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42414         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42416         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42417         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42418         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42419         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42420         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42422         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42423         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42424         Reported by Eric Blake.
42425
42426 2007-04-11  Bruno Haible  <bruno@clisp.org>
42427
42428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42429
42430 2007-04-10  Bruno Haible  <bruno@clisp.org>
42431
42432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42433         for NaN and Infinity. Needed on FreeBSD 6.1.
42434         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42435         regarding results for "%010a" of Infinity and NaN.
42436         * tests/test-vasprintf-posix.c (test_function): Likewise.
42437         * tests/test-snprintf-posix.h (test_function): Likewise.
42438         * tests/test-sprintf-posix.h (test_function): Likewise.
42439         * tests/test-fprintf-posix.h (test_function): Likewise.
42440         * tests/test-printf-posix.h (test_function): Likewise.
42441         * tests/test-fprintf-posix.out: Likewise.
42442
42443 2007-04-10  Bruno Haible  <bruno@clisp.org>
42444
42445         * modules/locale-tests: New file.
42446         * tests/test-locale.c: New file.
42447
42448         * modules/locale: New file.
42449         * lib/locale_.h: New file.
42450         * m4/locale_h.m4: New file.
42451
42452 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42453             Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42456         be determined, test for availability of the copysignf, copysign,
42457         copysignl functions.
42458         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42459         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42460         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42461
42462 2007-04-09  Eric Blake  <ebb9@byu.net>
42463
42464         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42465         * modules/stdio (Makefile.am): Support fflush.
42466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42467         * modules/fflush: New file.
42468         * lib/fflush.c: Likewise.
42469         * m4/fflush.m4: Likewise.
42470         * modules/fflush-tests: New test.
42471         * tests/test-fflush.c: Likewise.
42472         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42473
42474 2007-04-06  Bruno Haible  <bruno@clisp.org>
42475
42476         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42477         (VASNPRINTF): Use signbit for faster determination whether to print a
42478         minus sign.
42479         * modules/vasnprintf (Files): Remove lib/float+.h.
42480         * modules/fprintf-posix (Depends-on): Add signbit.
42481         * modules/snprintf-posix (Depends-on): Likewise.
42482         * modules/sprintf-posix (Depends-on): Likewise.
42483         * modules/vasnprintf-posix (Depends-on): Likewise.
42484         * modules/vasprintf-posix (Depends-on): Likewise.
42485         * modules/vfprintf-posix (Depends-on): Likewise.
42486         * modules/vsnprintf-posix (Depends-on): Likewise.
42487         * modules/vsprintf-posix (Depends-on): Likewise.
42488
42489 2007-04-06  Bruno Haible  <bruno@clisp.org>
42490
42491         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42492         * tests/test-frexpl.c (main): Likewise.
42493         * tests/test-ldexpl.c (main): Likewise.
42494         * modules/frexp-tests (Depends-on): Add signbit.
42495         * modules/frexpl-tests (Depdends-on): Likewise.
42496         * modules/ldexpl-tests (Depdends-on): Likewise.
42497
42498 2007-04-06  Bruno Haible  <bruno@clisp.org>
42499
42500         * modules/signbit-tests: New file.
42501         * tests/test-signbit.c: New file.
42502
42503         * modules/signbit: New file.
42504         * lib/signbitf.c: New file.
42505         * lib/signbitd.c: New file.
42506         * lib/signbitl.c: New file.
42507         * m4/signbit.m4: New file.
42508         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42509         (signbit): New macro.
42510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42511         REPLACE_SIGNBIT.
42512         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42513         REPLACE_FREXPL into math.h.
42514
42515 2007-04-06  Bruno Haible  <bruno@clisp.org>
42516
42517         * modules/isnanf-nolibm-tests: New file.
42518         * tests/test-isnanf.c: New file.
42519
42520         * modules/isnanf-nolibm: New file.
42521         * lib/isnanf.h: New file.
42522         * lib/isnanf.c: New file.
42523         * lib/isnan.c: Consider the USE_FLOAT macro.
42524         * m4/isnanf.m4: New file.
42525
42526 2007-04-06  Bruno Haible  <bruno@clisp.org>
42527
42528         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42529         (Link): New section.
42530
42531         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42532
42533 2007-04-06  Bruno Haible  <bruno@clisp.org>
42534
42535         Assume the 'long double' type.
42536         * m4/longdouble.m4: Remove file.
42537         * config/srclist.txt: Don't mention longdouble.m4.
42538         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42539         * lib/float+.h: Likewise.
42540         * lib/frexp.c: Likewise.
42541         * lib/printf-args.h: Likewise.
42542         * lib/printf-args.c: Likewise.
42543         * lib/printf-frexp.c: Likewise.
42544         * lib/printf-parse.c: Likewise.
42545         * lib/vasnprintf.c: Likewise.
42546         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42547         * m4/intl.m4: Likewise.
42548         * m4/isnanl.m4: Likewise.
42549         * m4/printf.m4: Likewise.
42550         * m4/printf-frexpl.m4: Likewise.
42551         * m4/vasnprintf.m4: Likewise.
42552         * modules/allocsa (Files): Remove m4/longdouble.m4.
42553         * modules/gettext (Files): Likewise.
42554         * modules/relocatable-prog-wrapper (Files): Likewise.
42555         * modules/vasnprintf (Files): Likewise.
42556         * modules/isnanl (Files): Likewise.
42557         (Include): Simplify.
42558         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42559         (Include): Simplify.
42560         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42561         (Include): Simplify.
42562         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42563         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42564         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42565         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42566         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42567         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42568         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42569         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42570         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42571         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42572         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42573         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42574         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42575         * tests/test-isnanl.c: Likewise.
42576         * tests/test-snprintf-posix.h: Likewise.
42577         * tests/test-sprintf-posix.h: Likewise.
42578         * tests/test-vasnprintf-posix.c: Likewise.
42579         * tests/test-vasnprintf-posix2.c: Likewise.
42580         * tests/test-vasprintf-posix.c: Likewise.
42581
42582 2007-04-06  Bruno Haible  <bruno@clisp.org>
42583
42584         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42585         * lib/math_.h [__DECC]: Include the overridden include file through
42586         #include_next, outside the double-inclusion guard.
42587         * lib/stdio_.h [__DECC]: Likewise.
42588         * lib/stdlib_.h [__DECC]: Likewise.
42589         * lib/string_.h [__DECC]: Likewise.
42590         * lib/time_.h [__DECC]: Likewise.
42591         * lib/wchar_.h [__DECC]: Likewise.
42592         * lib/wctype_.h [__DECC]: Likewise.
42593         * lib/inttypes_.h [__DECC]: Likewise.
42594         Reported by Albert Chin <china@thewrittenword.com> in
42595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42596
42597 2007-04-04  Eric Blake  <ebb9@byu.net>
42598
42599         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42600         1.5.x.
42601
42602 2007-04-04  Bruno Haible  <bruno@clisp.org>
42603
42604         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42605         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42606
42607 2007-04-04  Bruno Haible  <bruno@clisp.org>
42608
42609         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42610         results for "%010a" of Infinity and NaN.
42611         * tests/test-vasprintf-posix.c (test_function): Likewise.
42612         * tests/test-snprintf-posix.h (test_function): Likewise.
42613         * tests/test-sprintf-posix.h (test_function): Likewise.
42614         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42615         * tests/test-printf-posix.h (test_function): Likewise.
42616         * tests/test-fprintf-posix.out: Update.
42617         Needed for FreeBSD 6.1.
42618
42619 2007-04-04  Bruno Haible  <bruno@clisp.org>
42620
42621         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42622         directly used by the gnulib modules nor by gnulib-tool.
42623
42624 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42625
42626         * DEPENDENCIES: Give overall description of version dependency
42627         desirability.  Use more-typical names for apps.
42628         Add shell, coreutils, diffutils, grep, tar, gzip.
42629
42630 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42631
42632         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42633
42634 2007-04-04  Karl Berry  <karl@gnu.org>
42635
42636         * MODULES.html.sh (func_module): missing '.
42637
42638 2007-04-03  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/argmatch-tests (Makefile.am): New variable
42641         test_argmatch_LDADD.
42642         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42643         * modules/array-list-tests (Makefile.am): New variable
42644         test_array_list_LDADD.
42645         * modules/array-oset-tests (Makefile.am): New variable
42646         test_array_oset_LDADD.
42647         * modules/avltree-list-tests (Makefile.am): New variable
42648         test_avltree_list_LDADD.
42649         * modules/avltree-oset-tests (Makefile.am): New variable
42650         test_avltree_oset_LDADD.
42651         * modules/avltreehash-list-tests (Makefile.am): New variable
42652         test_avltreehash_list_LDADD.
42653         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42654         test_canonicalize_lgpl_LDADD.
42655         * modules/carray-list-tests (Makefile.am): New variable
42656         test_carray_list_LDADD.
42657         * modules/dirname-tests (Makefile.am): New variable
42658         test_dirname_LDADD.
42659         * modules/linked-list-tests (Makefile.am): New variable
42660         test_linked_list_LDADD.
42661         * modules/linkedhash-list-tests (Makefile.am): New variable
42662         test_linkedhash_list_LDADD.
42663         * modules/rbtree-list-tests (Makefile.am): New variable
42664         test_rbtree_list_LDADD.
42665         * modules/rbtree-oset-tests (Makefile.am): New variable
42666         test_rbtree_oset_LDADD.
42667         * modules/rbtreehash-list-tests (Makefile.am): New variable
42668         test_rbtreehash_list_LDADD.
42669         * modules/xvasprintf-tests (Makefile.am): New variable
42670         test_xvasprintf_LDADD.
42671         Reported by Eric Blake.
42672
42673 2007-04-03  Eric Blake  <ebb9@byu.net>
42674
42675         * DEPENDENCIES: Weaken m4 requirements.
42676
42677 2007-04-03  Bruno Haible  <bruno@clisp.org>
42678
42679         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42680         * modules/isnanl-tests (configure.ac): Likewise.
42681
42682 2007-04-03  Ben Pfaff  <blp@gnu.org>
42683
42684         * modules/iconv_open: Add $(srcdir)/ to source directory
42685         references in Makefile fragments that call gperf, to fix VPATH
42686         builds.
42687
42688 2007-04-03  Bruno Haible  <bruno@clisp.org>
42689
42690         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42691         * lib/ldexpl.c: Undo last change.
42692
42693 2007-04-03  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/printf-frexpl (Depends-on): Undo last change.
42696         (Files): Add m4/ldexpl.m4.
42697
42698 2007-04-03  Bruno Haible  <bruno@clisp.org>
42699
42700         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42701         * modules/isnanl (Link): New section.
42702
42703         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42704         * modules/frexp (Link): New section.
42705
42706         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42707         * modules/frexpl (Link): New section.
42708
42709         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42710         * modules/ldexpl (Link): New section.
42711
42712 2007-04-03  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/TEMPLATE-EXTENDED: New file.
42715         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42716
42717 2007-04-03  Bruno Haible  <bruno@clisp.org>
42718
42719         * DEPENDENCIES: New file.
42720         Suggested by Simon Josefsson.
42721
42722 2007-04-03  Bruno Haible  <bruno@clisp.org>
42723
42724         * doc/gnulib.texi: Escape @.
42725
42726 2007-04-03  James Youngman  <jay@gnu.org>
42727         and Paul Eggert  <eggert@cs.ucla.edu>
42728
42729         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42730         birthtime on all systems that have birthtime, not just those which
42731         use st_birthtimensec rather than st_birthtim.  Putting zero in
42732         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42733         that the birth time is not available for files on an NFS mount.
42734
42735 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42736
42737         * modules/memxor: Move back from crypto/, suggested by Bruno.
42738         * modules/crypto/hmac-sha1: Fix memxor dependency.
42739
42740         * modules/crypto/gc: Moved from ../.
42741
42742 2007-04-02  Eric Blake  <ebb9@byu.net>
42743
42744         * lib/ldexpl.c (includes): Avoid libm.
42745
42746         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42747
42748 2007-04-02  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42751         on IRIX.
42752
42753 2007-04-02  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42756         x86 or x86_64 platforms running MacOS X.
42757         Reported by Ryan Schmidt <@ryandesign.com>.
42758
42759 2007-04-02  Bruno Haible  <bruno@clisp.org>
42760
42761         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42762         i386.
42763
42764 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42765
42766         * modules/crypto/arcfour: Moved from ../.
42767         * modules/crypto/arcfour-tests: Moved from ../.
42768         * modules/crypto/arctwo: Moved from ../.
42769         * modules/crypto/arctwo-tests: Moved from ../.
42770         * modules/crypto/des: Moved from ../.
42771         * modules/crypto/des-tests: Moved from ../.
42772         * modules/crypto/gc-arcfour: Moved from ../.
42773         * modules/crypto/gc-arcfour-tests: Moved from ../.
42774         * modules/crypto/gc-arctwo: Moved from ../.
42775         * modules/crypto/gc-arctwo-tests: Moved from ../.
42776         * modules/crypto/gc-des: Moved from ../.
42777         * modules/crypto/gc-des-tests: Moved from ../.
42778         * modules/crypto/gc-hmac-md5: Moved from ../.
42779         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42780         * modules/crypto/gc-hmac-sha1: Moved from ../.
42781         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42782         * modules/crypto/gc-md2: Moved from ../.
42783         * modules/crypto/gc-md2-tests: Moved from ../.
42784         * modules/crypto/gc-md4: Moved from ../.
42785         * modules/crypto/gc-md4-tests: Moved from ../.
42786         * modules/crypto/gc-md5: Moved from ../.
42787         * modules/crypto/gc-md5-tests: Moved from ../.
42788         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42789         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42790         * modules/crypto/gc-random: Moved from ../.
42791         * modules/crypto/gc-rijndael: Moved from ../.
42792         * modules/crypto/gc-rijndael-tests: Moved from ../.
42793         * modules/crypto/gc-sha1: Moved from ../.
42794         * modules/crypto/gc-sha1-tests: Moved from ../.
42795         * modules/crypto/gc-tests: Moved from ../.
42796         * modules/crypto/hmac-md5: Moved from ../.
42797         * modules/crypto/hmac-md5-tests: Moved from ../.
42798         * modules/crypto/hmac-sha1: Moved from ../.
42799         * modules/crypto/hmac-sha1-tests: Moved from ../.
42800         * modules/crypto/md2: Moved from ../.
42801         * modules/crypto/md2-tests: Moved from ../.
42802         * modules/crypto/md4: Moved from ../.
42803         * modules/crypto/md4-tests: Moved from ../.
42804         * modules/crypto/md5: Moved from ../.
42805         * modules/crypto/md5-tests: Moved from ../.
42806         * modules/crypto/memxor: Moved from ../.
42807         * modules/crypto/rijndael: Moved from ../.
42808         * modules/crypto/rijndael-tests: Moved from ../.
42809         * modules/crypto/sha1: Moved from ../.
42810
42811 2007-03-30  James Youngman  <jay@gnu.org>
42812
42813         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42814         rename() to change the ctime of a file (because ctime is unaffected
42815         by rename on jfs2 on AIX 5.1).
42816         (main): Start by doing cleanup, in case a previous run failed leaving
42817         test files behind.
42818
42819 2007-03-31  Bruno Haible  <bruno@clisp.org>
42820
42821         Support old proprietary implementations of iconv.
42822         * modules/iconv_open: New file.
42823         * lib/iconv_.h: New file.
42824         * m4/iconv_h.m4: New file.
42825         * lib/iconv_open.c: New file.
42826         * lib/iconv_open-aix.gperf: New file.
42827         * lib/iconv_open-hpux.gperf: New file.
42828         * lib/iconv_open-irix.gperf: New file.
42829         * lib/iconv_open-osf.gperf: New file.
42830         * m4/iconv_open.m4: New file.
42831         * modules/linebreak (Depends-on): Add iconv_open.
42832         * modules/striconv (Depends-on): Likewise.
42833         * modules/striconveh (Depends-on): Likewise.
42834         * modules/unicodeio (Depends-on): Likewise.
42835         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42836         (iconv_t)(-1).
42837         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42838         conversion if cd is (iconv_t)(-1).
42839         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42840         is not possible.
42841
42842 2007-03-31  Bruno Haible  <bruno@clisp.org>
42843
42844         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42845         work on Solaris either. Protect also second use of "autodetect_jp".
42846
42847 2007-03-31  Bruno Haible  <bruno@clisp.org>
42848
42849         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42850         the function is not present.
42851
42852 2007-03-31  Bruno Haible  <bruno@clisp.org>
42853
42854         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42855         the function is not present.
42856
42857 2007-03-31  Bruno Haible  <bruno@clisp.org>
42858
42859         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42860         a bug in HP-UX iconv_open().
42861
42862 2007-03-31  Bruno Haible  <bruno@clisp.org>
42863
42864         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42865         (Mathematics <math.h>): New section, add fpieee.
42866         (Input/output <stdio.h>): Add fseterr.
42867         (Mathematics <math.h>): New section, add printf-frexp.
42868         (Container data structures): Add sublist.
42869         (Core language properties): Add fpucw, inline.
42870         (Functions for greatest-width integer types <inttypes.h>): Add
42871         imaxabs, imaxdiv, inttypes.
42872         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42873         isnanl-nolibm, ldexp.
42874         (Mathematics <math.h>): New section, add printf-frexpl.
42875         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42876         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42877         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42878         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42879         (Unicode string functions): Add unistr/u*-mbtoucr.
42880         (Java): Add javacomp-script, javaexec-script.
42881         (C#): Add csharpcomp-script, csharpexec-script.
42882         (Support for building libraries and executables): Add havelib,
42883         relocatable-*.
42884         (Support for maintaining and releasing projects): Renamed from
42885         'Support for maintaining and release projects'. Add announce-gen.
42886
42887 2007-03-31  Bruno Haible  <bruno@clisp.org>
42888
42889         * README: Talk primarily about git.
42890         (git and CVS): Renamed from CVS.
42891         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42892         gnulib is available through git.
42893         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42894
42895 2007-03-30  Bruno Haible  <bruno@clisp.org>
42896
42897         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42898         * lib/poll_.h: Likewise.
42899         * lib/stat_.h: Likewise.
42900         * lib/sys_time_.h: Likewise.
42901         * lib/sysexit_.h: Likewise.
42902         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42903         * lib/stdbool_.h: Likewise.
42904         * lib/byteswap_.h: Add double-inclusion guard.
42905
42906 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42907
42908         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42909
42910 2007-03-30  Karl Berry  <karl@gnu.org>
42911
42912         * config/srclist-update: double space after USA in the license
42913         substitution, since that's how it's usually (?) written.
42914
42915 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42916
42917         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42918         reported by Bruno Haible.
42919
42920 2007-03-29  Bruno Haible  <bruno@clisp.org>
42921
42922         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42923         a bug in AIX iconv().
42924
42925 2007-03-29  Bruno Haible  <bruno@clisp.org>
42926
42927         * modules/ldexpl-tests: New file.
42928         * tests/test-ldexpl.c: New file.
42929
42930 2007-03-29  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/ldexpl.c: Include fpucw.h.
42933         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42934         multiplication.
42935         * modules/ldexpl (Depends-on): Add fpucw.
42936
42937 2007-03-29  Bruno Haible  <bruno@clisp.org>
42938
42939         * modules/ldexpl: New file.
42940         * m4/ldexpl.m4: New file.
42941         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42942         set.
42943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42944         REPLACE_LDEXPL.
42945         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42946         REPLACE_LDEXPL.
42947         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42948         gl_FUNC_LDEXPL_WORKS.
42949         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42950         * modules/mathl (Files): Remove lib/ldexpl.c.
42951         (Depends-on): Add ldexpl.
42952
42953 2007-03-29  Bruno Haible  <bruno@clisp.org>
42954
42955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42956
42957 2007-03-29  Bruno Haible  <bruno@clisp.org>
42958
42959         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42960         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42961         and possibly also HP-UX.
42962         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42963         work on AIX, IRIX, HP-UX, OSF/1.
42964         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42965         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42966         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42967         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42968         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42969         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42970
42971 2007-03-29  Bruno Haible  <bruno@clisp.org>
42972
42973         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42974
42975 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42976
42977         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42978         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42979
42980 2007-03-29  Eric Blake  <ebb9@byu.net>
42981
42982         * lib/acl-internal.h: Remove redundant include.
42983         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42984         Cygwin when a file is locked.
42985
42986 2007-03-29  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42989         file.
42990         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42991
42992 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42993
42994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42995         try to remove a parent directory if the child couldn't be removed
42996         (except for the first rmdir, which could fail because the child
42997         doesn't exist).  Problem reported by Jeff Blaine in
42998         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42999
43000 2007-03-28  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/striconveh.c (utf8conv_carefully): New function.
43003         (mem_cd_iconveh_internal): Invoke it.
43004
43005 2007-03-28  Bruno Haible  <bruno@clisp.org>
43006
43007         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43008         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43009         input.
43010         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43011         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43012         unistr/u8-uctomb.
43013
43014 2007-03-28  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/unistr/u8-mbtoucr: New file.
43017         * lib/unistr/u8-mbtoucr.c: New file.
43018         * modules/unistr/u16-mbtoucr: New file.
43019         * lib/unistr/u16-mbtoucr.c: New file.
43020         * modules/unistr/u16-mbtoucr: New file.
43021         * lib/unistr/u16-mbtoucr.c: New file.
43022         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43023
43024 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43025             Bruno Haible  <bruno@clisp.org>
43026
43027         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43028         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43029         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43030
43031         * m4/stdio_h.m4: Add stubs for vasprintf too.
43032
43033         * modules/stdio: Support vasprintf in sed command.
43034
43035         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43036         vasprintf.h.  Add stdio module indicator.
43037
43038         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43039         vasprintf.h.
43040
43041         * lib/vasprintf.h: File removed.
43042
43043         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43044         * lib/vasprintf.c: Ditto.
43045         * lib/xvasprintf.c: Ditto.
43046         * tests/test-vasprintf-posix.c: Ditto.
43047         * tests/test-vasprintf.c: Ditto.
43048
43049 2007-03-27  Bruno Haible  <bruno@clisp.org>
43050
43051         Make vasnprintf multithread-safe.
43052         * lib/vasnprintf.c (decimal_point_char): New function.
43053         (VASNPRINTF): Use it.
43054         Suggested by Simon Josefsson.
43055
43056 2007-03-27  Eric Blake  <ebb9@byu.net>
43057
43058         Support sub-second birthtime on cygwin.
43059         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43060         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43061         (get_stat_birthtime): Also work with st_birthtim.
43062
43063 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43064
43065         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43066         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43067         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43068         (get_stat_birthtime_ns): Simplify compile-time tests.
43069         (get_stat_birthtime): Change the API to look like
43070         get_stat_mtime etc., except return a negative tv_nsec on error.
43071         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43072         Don't check for "spare" fields.
43073         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43074         or for struct stat.st_birthtime, as these tests aren't used.
43075         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43076
43077 2007-03-27  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/stat-time.h: Include <sys/stat.h>.
43080
43081 2007-03-27  James Youngman  <jay@gnu.org>
43082
43083         * lib/stat-time.h (get_stat_birthtime): New function for
43084           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43085         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43086           and its variants.
43087         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43088         * modules/stat-time-test: New file.
43089         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43090
43091 2007-03-26  Bruno Haible  <bruno@clisp.org>
43092
43093         Better support of signalling NaNs.
43094         * lib/atanl.c: Include isnanl.h.
43095         (atanl): Perform test for NaN at the beginning of the function and
43096         through a call to isnanl.
43097         * lib/cosl.c: Include isnanl.h.
43098         (cosl): Perform test for NaN at the beginning of the function and
43099         through a call to isnanl.
43100         * lib/ldexpl.c: Include isnanl.h.
43101         (ldexpl): Perform test for NaN through a call to isnanl.
43102         * lib/logl.c: Include isnanl.h.
43103         (logl): Perform test for NaN at the beginning of the function and
43104         through a call to isnanl.
43105         * lib/sinl.c: Include isnanl.h.
43106         (sinl): Perform test for NaN at the beginning of the function and
43107         through a call to isnanl.
43108         * lib/sqrtl.c: Include isnanl.h.
43109         (sqrtl): Perform test for NaN at the beginning of the function and
43110         through a call to isnanl.
43111         * lib/tanl.c: Include isnanl.h.
43112         (tanl): Perform test for NaN at the beginning of the function and
43113         through a call to isnanl.
43114         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43115         * modules/mathl (Depends-on): Add isnanl.
43116
43117 2007-03-26  Eric Blake  <ebb9@byu.net>
43118
43119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43120         regression in logic sense of previous patch.
43121
43122 2007-03-26  Bruno Haible  <bruno@clisp.org>
43123
43124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43125         unportable shell command "if ! ...".
43126         Reported by Ralf Wildenhues.
43127
43128 2007-03-25  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43131         <sysexits.h> file, and only add EX_CONFIG.
43132         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43133         absolute file name and whether it is sufficient. Substitute also
43134         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43135         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43136         ABSOLUTE_SYSEXITS_H into sysexits.h.
43137
43138 2007-03-25  Bruno Haible  <bruno@clisp.org>
43139
43140         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43141         hints is NULL.
43142
43143 2007-03-25  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43146         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43147
43148 2007-03-25  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/vasnprintf.c: Include langinfo.h.
43151         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43152         multithread-safe.
43153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43162         Reported by Simon Josefsson.
43163
43164 2007-03-25  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43167         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43168         * modules/vasnprintf (Depends-on): Add stdint.
43169
43170 2007-03-25  Bruno Haible  <bruno@clisp.org>
43171
43172         * modules/fpieee: New file.
43173         * m4/fpieee.m4: New file.
43174         * modules/isnan-nolibm (Depends-on): Add fpieee.
43175         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43176         * modules/isnanl (Depends-on): Add fpieee.
43177
43178 2007-03-25  Bruno Haible  <bruno@clisp.org>
43179
43180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43181
43182 2007-03-25  Bruno Haible  <bruno@clisp.org>
43183
43184         Avoid test failures on IRIX 6.5.
43185         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43186         (main): Use it.
43187         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43188         macros.
43189         (main): Use them.
43190
43191 2007-03-25  Bruno Haible  <bruno@clisp.org>
43192
43193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43194         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43195         exists but doesn't work.
43196         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43197         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43199         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43200
43201 2007-03-25  Bruno Haible  <bruno@clisp.org>
43202
43203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43204         returns inf. Needed on IRIX 6.5.
43205
43206 2007-03-25  Bruno Haible  <bruno@clisp.org>
43207
43208         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43209         (main): Use isnanl instead of x != x idiom.
43210         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43211
43212         * tests/test-frexp.c: Include isnan.h.
43213         (main): Use isnan instead of x != x idiom.
43214         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43215
43216 2007-03-25  Bruno Haible  <bruno@clisp.org>
43217
43218         * tests/test-frexp.c (NaN): New function/macro.
43219         (main): Use it instead of 0.0 / 0.0.
43220         * tests/test-isnan.c (NaN): New function/macro.
43221         (main): Use it instead of 0.0 / 0.0.
43222         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43223         (test_function): Use it instead of 0.0 / 0.0.
43224         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43225         (test_function): Use it instead of 0.0 / 0.0.
43226         * tests/test-snprintf-posix.h (NaN): New function/macro.
43227         (test_function): Use it instead of 0.0 / 0.0.
43228         * tests/test-sprintf-posix.h (NaN): New function/macro.
43229         (test_function): Use it instead of 0.0 / 0.0.
43230         * tests/test-fprintf-posix.h (NaN): New function/macro.
43231         (test_function): Use it instead of 0.0 / 0.0.
43232         * tests/test-printf-posix.h (NaN): New function/macro.
43233         (test_function): Use it instead of 0.0 / 0.0.
43234
43235         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43236
43237 2007-03-25  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43240
43241 2007-03-25  Bruno Haible  <bruno@clisp.org>
43242
43243         * lib/regexec.c (merge_state_with_log): Make static.
43244
43245 2007-03-25  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/trigl.c (kernel_rem_pio2): Make static.
43248
43249 2007-03-25  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/sincosl.c (sincosl_table): Make static.
43252
43253 2007-03-25  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43256         if the compiler does not support C99.
43257
43258 2007-03-25  Bruno Haible  <bruno@clisp.org>
43259
43260         * modules/time (Makefile.am): Ensure all rule action lines start with a
43261         tab.
43262
43263 2007-03-24  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/tsearch-tests: New file.
43266         * tests/test-tsearch.sh: New file.
43267         * tests/test-tsearch.c: New file, mostly copied from glibc.
43268
43269         * modules/search-tests: New file.
43270         * tests/test-search.c: New file.
43271
43272         * modules/search: New file.
43273         * lib/search_.h: New file, incorporating lib/tsearch.h.
43274         * m4/search_h.m4: New file.
43275         * lib/tsearch.h: Remove file.
43276         * lib/tsearch.c: Include search.h instead of tsearch.h.
43277         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43278         HAVE_TSEARCH.
43279         * modules/tsearch (Files): Remove lib/tsearch.h.
43280         (Depends-on): Add search.
43281         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43282         (Include): Change tsearch.h into search.h.
43283
43284 2007-03-24  Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/fpucw: New file.
43287         * lib/fpucw.h: New file.
43288         * lib/frexp.c: Include fpucw.h.
43289         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43290         (FUNC): Use them.
43291         * lib/printf-frexp.c: Include fpucw.h.
43292         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43293         (FUNC): Use them.
43294         * lib/vasnprintf.c: Include fpucw.h.
43295         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43296         'long double' calculations.
43297         * tests/test-frexpl.c: Include fpucw.h.
43298         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43299         * tests/test-printf-frexpl.c: Include fpucw.h.
43300         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43301         * modules/frexpl (Depends-on): Add fpucw.
43302         * modules/printf-frexpl (Depends-on): Likewise.
43303         * modules/fprintf-posix (Depends-on): Likewise.
43304         * modules/snprintf-posix (Depends-on): Likewise.
43305         * modules/sprintf-posix (Depends-on): Likewise.
43306         * modules/vasnprintf-posix (Depends-on): Likewise.
43307         * modules/vasprintf-posix (Depends-on): Likewise.
43308         * modules/vfprintf-posix (Depends-on): Likewise.
43309         * modules/vsnprintf-posix (Depends-on): Likewise.
43310         * modules/vsprintf-posix (Depends-on): Likewise.
43311         * modules/frexpl-tests (Depends-on): Likewise.
43312         * modules/printf-frexpl-tests (Depends-on): Likewise.
43313
43314 2007-03-24  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/float+.h: New file.
43317         * lib/isnan.c: Include float+.h.
43318         (SIZE): New macro.
43319         (FUNC): Compare only SIZE bytes of the value.
43320         * lib/vasnprintf.c: Include float+.h.
43321         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43322         SIZEOF_LDBL or SIZEOF_DBL bytes.
43323         * modules/isnan-nolibm (Files): Add lib/float+.h.
43324         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43325         * modules/isnanl (Files): Add lib/float+.h.
43326         * modules/vasnprintf (Files): Add lib/float+.h.
43327
43328 2007-03-24  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43331         include isnanl-nolibm.h.
43332
43333 2007-03-24  Bruno Haible  <bruno@clisp.org>
43334
43335         * tests/test-read-file.c (main): Don't produce spurious output for
43336         expected situations. Make the test fail if it encountered unexpected
43337         results.
43338
43339 2007-03-24  Bruno Haible  <bruno@clisp.org>
43340
43341         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43342         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43343
43344 2007-03-24  Bruno Haible  <bruno@clisp.org>
43345
43346         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43347
43348 2007-03-24  Bruno Haible  <bruno@clisp.org>
43349
43350         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43351         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43352
43353         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43354         * modules/utf8-ucs4: Turn into a symbolic link to module
43355         unistr/u8-mbtouc.
43356
43357         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43358         utf8-ucs4-unsafe.
43359         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43360         unistr/u8-mbtouc-unsafe.
43361
43362         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43363         * modules/utf16-ucs4: Turn into a symbolic link to module
43364         unistr/u16-mbtouc.
43365
43366         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43367         utf16-ucs4-unsafe.
43368         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43369         unistr/u16-mbtouc-unsafe.
43370
43371         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43372         * modules/ucs4-utf8: Turn into a symbolic link to module
43373         unistr/u8-ubtomb.
43374
43375         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43376         * modules/ucs4-utf16: Turn into a symbolic link to module
43377         unistr/u16-ubtomb.
43378
43379 2007-03-24  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43382         Enable the function only if HAVE_INLINE.
43383         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43384         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43385         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43386         Enable the function only if HAVE_INLINE.
43387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43388         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43389         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43390         Enable the function only if HAVE_INLINE.
43391         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43392         Enable the function only if HAVE_INLINE.
43393         * modules/utf8-ucs4: Update.
43394         * modules/utf8-ucs4-unsafe: Update.
43395         * modules/utf16-ucs4: Update.
43396         * modules/utf16-ucs4-unsafe: Update.
43397         * modules/ucs4-utf8: Update.
43398         * modules/ucs4-utf16: Update.
43399
43400 2007-03-24  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/utf8-ucs4.h: Remove file.
43403         * lib/utf8-ucs4-unsafe.h: Remove file.
43404         * lib/utf16-ucs4.h: Remove file.
43405         * lib/utf16-ucs4-unsafe.h: Remove file.
43406         * lib/ucs4-utf8.h: Remove file.
43407         * lib/ucs4-utf16.h: Remove file.
43408         * lib/unistr.h: Include their previous contents.
43409         * m4/utf-ucs4.m4: Remove file.
43410         * m4/ucs4-utf.m4: Remove file.
43411         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43412         (Depends-on): Add unistr/base.
43413         (configure.ac): Remove gl_UTF_UCS4.
43414         (Makefile.am): Update.
43415         (Include): Change to unistr.h.
43416         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43417         (Depends-on): Add unistr/base.
43418         (configure.ac): Remove gl_UTF_UCS4.
43419         (Makefile.am): Update.
43420         (Include): Change to unistr.h.
43421         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43422         (Depends-on): Add unistr/base.
43423         (configure.ac): Remove gl_UTF_UCS4.
43424         (Makefile.am): Update.
43425         (Include): Change to unistr.h.
43426         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43427         (Depends-on): Add unistr/base.
43428         (configure.ac): Remove gl_UTF_UCS4.
43429         (Makefile.am): Update.
43430         (Include): Change to unistr.h.
43431         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43432         (Depends-on): Add unistr/base.
43433         (configure.ac): Remove gl_UCS4_UTF.
43434         (Makefile.am): Update.
43435         (Include): Change to unistr.h.
43436         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43437         (Depends-on): Add unistr/base.
43438         (configure.ac): Remove gl_UCS4_UTF.
43439         (Makefile.am): Update.
43440         (Include): Change to unistr.h.
43441         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43442         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43443         utf8-ucs4-unsafe.h.
43444         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43445         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43446         utf16-ucs4-unsafe.h.
43447         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43448         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43449         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43450         * lib/unistr/u8-strchr.c: Likewise.
43451         * lib/unistr/u8-strrchr.c: Likewise.
43452         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43453         * lib/unistr/u16-strchr.c: Likewise.
43454         * lib/unistr/u16-strrchr.c: Likewise.
43455         * lib/striconveh.c: Update.
43456         * lib/linebreak.c: Update.
43457
43458 2007-03-24  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43461         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43462
43463 2007-03-22  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43466
43467 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * MODULES.html.sh (File system functions): New module write-any-file.
43470         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43471         * m4/write-any-file.m4: New files.
43472
43473 2007-03-23  Eric Blake  <ebb9@byu.net>
43474
43475         * gnulib-tool: Rearrange space-tab sequences, since some editors
43476         like to eat them.
43477
43478 2007-03-23  Eric Blake  <ebb9@byu.net>
43479
43480         * lib/version-etc.c (version_etc_va): Update license wording to
43481         be more concise.  Recommended by Richard Stallman.
43482
43483 2007-03-22  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/poll.c (MSG_PEEK): New fallback definition.
43486
43487 2007-03-22  Bruno Haible  <bruno@clisp.org>
43488
43489         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43490         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43491         (main): Update.
43492         Fixes a compilation error on BeOS.
43493
43494 2007-03-22  Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/frexpl-tests: New file.
43497         * tests/test-frexpl.c: New file.
43498
43499         * modules/frexpl: New file.
43500         * m4/frexpl.m4: New file.
43501         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43502         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43504         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43505         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43506         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43507
43508 2007-03-22  Bruno Haible  <bruno@clisp.org>
43509
43510         * lib/frexpl.c: Share code with lib/frexp.c.
43511         * modules/mathl (Files): Add lib/frexp.c.
43512         (Depends-on): Add isnanl-nolibm.
43513
43514 2007-03-22  Bruno Haible  <bruno@clisp.org>
43515
43516         * modules/printf-frexp (Files): Add m4/frexp.m4.
43517         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43518         only if the found frexp function actually works.
43519
43520 2007-03-22  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/frexp.c: Remove older implementation that uses divisions.
43523
43524 2007-03-21  Bruno Haible  <bruno@clisp.org>
43525
43526         * modules/frexp-tests: New file.
43527         * tests/test-frexp.c: New file.
43528
43529         * modules/frexp: New file.
43530         * lib/frexp.c: New file.
43531         * m4/frexp.m4: New file.
43532         * lib/math_.h (frexp): New declaration.
43533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43534         REPLACE_FREXP.
43535         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43536
43537 2007-03-21  Bruno Haible  <bruno@clisp.org>
43538
43539         * modules/isnanl-tests: New file.
43540         * tests/test-isnanl.c: New file.
43541
43542         * modules/isnanl: New file.
43543         * lib/isnanl.h: New file.
43544         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43545         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43546         gl_FUNC_ISNANL_WORKS.
43547         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43548         New macros.
43549
43550 2007-03-21  Bruno Haible  <bruno@clisp.org>
43551
43552         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43553         lib/isnanl.h.
43554         (Include): Update.
43555         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43556         * lib/vasnprintf.c: Update.
43557         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43558         tests/test-isnanl.h, remove tests/test-isnanl.c.
43559         (Makefile.am): Update.
43560         * tests/test-isnanl-nolibm.c: New file.
43561         * tests/test-isnanl.h: New file.
43562         * tests/test-isnanl.c: Remove file.
43563
43564 2007-03-21  Jim Meyering  <jim@meyering.net>
43565
43566         When trying to open ".", treat ESTALE like EACCES.
43567         * lib/savewd.c (savewd_save): Resort to forking not just upon
43568         failure with EACCES, but also when errno is ESTALE.
43569
43570 2007-03-20  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43573         Needed on AIX 5.1. Reported by Matthew Woehlke.
43574
43575 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43576
43577         Suggestions by Bruno Haible:
43578         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43579         our own.
43580         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43581         * modules/acl (Depends-on): Add gettext.
43582
43583 2007-03-19  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/iconvme: Remove file.
43586         * lib/iconvme.h: Remove file.
43587         * lib/iconvme.c: Remove file.
43588         * m4/iconvme.m4: Remove file.
43589
43590 2007-03-19  Bruno Haible  <bruno@clisp.org>
43591
43592         * doc/relocatable-maint.texi: Break long shell script line.
43593         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43594
43595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43596
43597         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43598         handle file_has_acl.
43599         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43600         * lib/acl.c: Move header inclusions and related macro defns into
43601         lib/acl-internal.h.
43602         (S_ISLNK): Remove defn, since that's now done for us.
43603         (file_has_acl): Move to lib/file-has-acl.c.
43604         Call acl_trivial if available.  This is the crucial part of the fix.
43605         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43606         shared within the library.  Rewrite a bit, partly to make it compatible
43607         with the GNU coding style.
43608         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43609         Remove unnecessary double-quotes.
43610         Don't test for acl_to_text; the build will catch that.
43611         Replace acl_entries if it doesn't exist and it is needed.
43612         Check for -lsec and acl_trivial (as used on Solaris 10).
43613         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43614         lib/file-has-acl.c.
43615         (Depends-on): Add sys_stat, for S_ISLNK.
43616
43617 2007-03-19  Ben Pfaff  <blp@gnu.org>
43618
43619         * doc/gnulib.texi: Fix typos.
43620         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43621
43622 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43623
43624         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43625         If size is zero here, buf must be zero.
43626
43627 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43628
43629         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43630         <bruno@clisp.org>.
43631
43632 2007-03-18  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43635         Suggested by Eric Blake.
43636
43637 2007-03-18  Ben Pfaff  <blp@gnu.org>
43638
43639         * doc/relocatable.texi: Recommend using as prefix a directory
43640         that does not exist and will never be created.  Based on
43641         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43642         and others.
43643
43644 2007-03-17  Bruno Haible  <bruno@clisp.org>
43645
43646         * lib/fchownat.c: Include lchown.h.
43647
43648 2007-03-17  Bruno Haible  <bruno@clisp.org>
43649
43650         Fix endless loop when the given allocated size was > INT_MAX.
43651         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43652         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43653         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43654         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43655         * lib/sprintf.c (sprintf): Likewise.
43656
43657 2007-03-17  Bruno Haible  <bruno@clisp.org>
43658
43659         * tests/test-argp-2.sh (func_compare): Output a context diff.
43660
43661 2007-03-17  Bruno Haible  <bruno@clisp.org>
43662
43663         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43664         locale's decimal-point character.
43665
43666 2007-03-17  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43669         before comparing it. Needed because on some platforms (e.g. x86) a
43670         'long double' occupies less bytes than sizeof (long double).
43671
43672 2007-03-17  Bruno Haible  <bruno@clisp.org>
43673
43674         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43675         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43676         * tests/test-getaddrinfo.c (simple): Likewise.
43677         * tests/test-read-file.c (main): Likewise.
43678
43679 2007-03-17  Bruno Haible  <bruno@clisp.org>
43680
43681         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43682
43683 2007-03-17  Bruno Haible  <bruno@clisp.org>
43684
43685         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43686         unused variable.
43687
43688 2007-03-17  Bruno Haible  <bruno@clisp.org>
43689
43690         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43691         * tests/test-c-strncasecmp.c: Likewise.
43692
43693 2007-03-17  Bruno Haible  <bruno@clisp.org>
43694
43695         * modules/stdlib (Depends-on): Add unistd.
43696         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43697         Needed for MacOS X 10.3.
43698
43699 2007-03-17  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43702
43703 2007-03-17  Bruno Haible  <bruno@clisp.org>
43704
43705         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43706
43707 2007-03-17  Bruno Haible  <bruno@clisp.org>
43708
43709         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43710         to reflect files copied from gnulib (with or without modifications).
43711         Suggested by Jim Meyering.
43712
43713 2007-03-17  Eric Blake  <ebb9@byu.net>
43714
43715         * NEWS: Document stdlib change from 2007-02-18.
43716
43717 2007-03-17  Jim Meyering  <jim@meyering.net>
43718
43719         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43720         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43721         someone uses a name containing shell meta-characters.
43722         Reported by Alfred M. Szmidt.
43723
43724         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43725
43726 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43727
43728         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43729         and copy gettext configuration files only if configure.ac contains
43730         a use of AM_GNU_GETTEXT_VERSION.
43731
43732 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43733
43734         * build-aux/bootstrap (gnulib_name): New variable.
43735         (gnulib_tool_options): Use it.
43736
43737 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43738
43739         * tests/test-des.c: Use new namespace.
43740
43741 2007-03-15  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43744         Reported by James Youngman <jay@gnu.org>.
43745
43746 2007-03-15  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43749         declared prototype. Needed with cc on OSF/1 5.1.
43750
43751 2007-03-15  Bruno Haible  <bruno@clisp.org>
43752
43753         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43754         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43755         (struct gl_list_implementation): Add dispose_fn argument to the
43756         'create_empty', 'create' methods.
43757         (struct gl_list_impl_base): Add field 'dispose_fn'.
43758         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43759         argument.
43760         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43761         dispose_fn argument.
43762         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43763         dispose_fn on the dropped values.
43764         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43765         dispose_fn argument.
43766         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43767         dropped values.
43768         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43769         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43770         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43771         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43772         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43773         argument.
43774         (gl_tree_list_free): Call dispose_fn on the dropped values.
43775         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43776         the dropped values.
43777         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43778         Add dispose_fn argument.
43779         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43780         Call dispose_fn on the dropped values.
43781         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43782         Add dispose_fn argument.
43783         (gl_sublist_create): Initialize the 'dispose_fn' field.
43784         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43785         * tests/test-array_list.c (main): Update.
43786         * tests/test-carray_list.c (main): Update.
43787         * tests/test-avltree_list.c (main): Update.
43788         * tests/test-rbtree_list.c (main): Update.
43789         * tests/test-avltreehash_list.c (main): Update.
43790         * tests/test-rbtreehash_list.c (main): Update.
43791         * tests/test-linked_list.c (main): Update.
43792         * tests/test-linkedhash_list.c (main): Update.
43793         * tests/test-array_oset.c (main): Update.
43794
43795 2007-03-15  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43798         (gl_oset_create_empty): Add dispose_fn argument.
43799         (struct gl_oset_implementation): Add dispose_fn argument to
43800         'create_empty' method.
43801         (struct gl_oset_impl_base): Add dispose_fn field.
43802         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43803         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43804         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43805         values.
43806         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43807         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43808         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43809         dropped value.
43810         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43811         dropped value.
43812         * tests/test-array_oset.c (main): Update.
43813         * tests/test-avltree_oset.c (main): Update.
43814         * tests/test-rbtree_oset.c (main): Update.
43815         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43816
43817 2007-03-13  Bruno Haible  <bruno@clisp.org>
43818
43819         * tests/test-stdbool.c (i): Update after last patch.
43820
43821 2007-03-12  Bruno Haible  <bruno@clisp.org>
43822
43823         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43824         the iswprint macro. Needed on Solaris 2.5.1.
43825
43826 2007-03-12  Bruno Haible  <bruno@clisp.org>
43827
43828         * tests/test-printf-frexp.c (main): Declare x as volatile.
43829
43830 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43831
43832         * doc/gnulib.texi (Build robot for gnulib): New section.
43833
43834 2007-03-12  Jim Meyering  <jim@meyering.net>
43835
43836         * build-aux/bootstrap: New file.
43837         * build-aux/bootstrap.conf: New file, from coreutils.
43838
43839 2007-03-11  Bruno Haible  <bruno@clisp.org>
43840
43841         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43842
43843 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43844
43845         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43846         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43847         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43848
43849 2007-03-11  Bruno Haible  <bruno@clisp.org>
43850
43851         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43852         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43853
43854 2007-03-11  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43857         formula. Needed for SunPRO C 5.0.
43858
43859 2007-03-11  Bruno Haible  <bruno@clisp.org>
43860
43861         * modules/long-options (Depends-on): Add getopt.
43862
43863 2007-03-11  Bruno Haible  <bruno@clisp.org>
43864
43865         * modules/modechange (Depends-on): Add stdbool.
43866
43867 2007-03-11  Bruno Haible  <bruno@clisp.org>
43868
43869         * modules/i-ring (Depends-on): Add stdbool.
43870
43871 2007-03-11  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/gc-des (Depends-on): Add stdbool.
43874
43875 2007-03-11  Bruno Haible  <bruno@clisp.org>
43876
43877         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43878
43879 2007-03-11  Bruno Haible  <bruno@clisp.org>
43880
43881         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43882
43883 2007-03-11  Bruno Haible  <bruno@clisp.org>
43884
43885         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43886
43887 2007-03-11  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/vasnprintf.c (sprintf): Undefine.
43890
43891 2007-03-11  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43894         initializers in SunPRO C and Compaq C compilers.
43895
43896 2007-03-11  Bruno Haible  <bruno@clisp.org>
43897
43898         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43899         decrementing code ANSI C compliant.
43900
43901 2007-03-11  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43904         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43905
43906 2007-03-11  Bruno Haible  <bruno@clisp.org>
43907
43908         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43909         <stdbool.h> substitute doesn't pass.
43910
43911 2007-03-11  Bruno Haible  <bruno@clisp.org>
43912
43913         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43914
43915 2007-03-11  Bruno Haible  <bruno@clisp.org>
43916
43917         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43918         script, for submission to autobuild.josefsson.org.
43919
43920 2007-03-10  Bruno Haible  <bruno@clisp.org>
43921
43922         * modules/canonicalize-lgpl-tests: New file.
43923         * tests/test-canonicalize-lgpl.sh: New file.
43924         * tests/test-canonicalize-lgpl.c: New file.
43925
43926         * modules/c-strcase-tests: New file.
43927         * tests/test-c-strcase.sh: New file.
43928         * tests/test-c-strcasecmp.c: New file.
43929         * tests/test-c-strncasecmp.c: New file.
43930
43931         * modules/atexit-tests: New file.
43932         * tests/test-atexit.sh: New file.
43933         * tests/test-atexit.c: New file.
43934
43935 2007-03-10  Bruno Haible  <bruno@clisp.org>
43936
43937         * tests/test-binary-io.sh: Use temporary filenames that are not so
43938         likely to clash with those of other tests (in a parallel make).
43939         * tests/test-binary-io.c: Likewise.
43940
43941 2007-03-10  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43944         fallback; use #error instead.
43945         Suggested by Simon Josefsson.
43946
43947 2007-03-10  Bruno Haible  <bruno@clisp.org>
43948
43949         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43950         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43951         first and the last.
43952
43953 2007-03-10  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43956
43957 2007-03-10  Bruno Haible  <bruno@clisp.org>
43958
43959         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43960         "make distcheck".
43961         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43962         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43963         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43964
43965 2007-03-10  Bruno Haible  <bruno@clisp.org>
43966
43967         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43968         variable.
43969         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43970         variable.
43971
43972 2007-03-09  Eric Blake  <ebb9@byu.net>
43973         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43974
43975         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43976         types are not being provided by gnulib.
43977         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43978         types are supported.
43979
43980 2007-03-10  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/stdio_.h (__attribute__): New macro.
43983         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43984         vsprintf): Specify __attribute__ __format__ for GCC.
43985         Suggested by Eric Blake.
43986
43987 2007-03-09  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/printf-posix-tests: New file.
43990         * tests/test-printf-posix.sh: New file.
43991         * tests/test-printf-posix.c: New file.
43992
43993         * modules/printf-posix: New file.
43994         * lib/printf.c: New file.
43995         * m4/printf-posix-rpl.m4: New file.
43996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43997         REPLACE_PRINTF.
43998         * lib/stdio_.h (printf): New declaration.
43999         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44000         ____strfmon____): New macros.
44001         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44002         REPLACE_PRINTF.
44003
44004 2007-03-09  Bruno Haible  <bruno@clisp.org>
44005
44006         * tests/test-vasnprintf-posix2.sh: New file.
44007         * tests/test-vasnprintf-posix2.c: New file.
44008         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44009         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44010         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44011
44012         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44013         a locale dependent decimal point, rather than always '.'.
44014
44015 2007-03-09  Eric Blake  <ebb9@byu.net>
44016
44017         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44018         spite of platforms like Tandem/NSK that define it to -1.
44019
44020 2007-03-08  Bruno Haible  <bruno@clisp.org>
44021
44022         * modules/vprintf-posix-tests: New file.
44023         * tests/test-vprintf-posix.sh: New file.
44024         * tests/test-vprintf-posix.c: New file.
44025         * tests/test-printf-posix.h: New file.
44026
44027         * modules/vprintf-posix: New file.
44028         * lib/vprintf.c: New file.
44029         * m4/vprintf-posix.m4: New file.
44030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44031         REPLACE_VPRINTF.
44032         * lib/stdio_.h (vprintf): New declaration.
44033         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44034         REPLACE_VPRINTF.
44035
44036 2007-03-08  Bruno Haible  <bruno@clisp.org>
44037
44038         * modules/fprintf-posix-tests: New file.
44039         * tests/test-fprintf-posix.sh: New file.
44040         * tests/test-fprintf-posix.c: New file.
44041
44042         * modules/fprintf-posix: New file.
44043         * lib/fprintf.c: New file.
44044         * m4/fprintf-posix.m4: New file.
44045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44046         REPLACE_FPRINTF.
44047         * lib/stdio_.h (fprintf): New declaration.
44048         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44049         REPLACE_FPRINTF.
44050
44051 2007-03-08  Bruno Haible  <bruno@clisp.org>
44052
44053         * modules/vfprintf-posix-tests: New file.
44054         * tests/test-vfprintf-posix.sh: New file.
44055         * tests/test-vfprintf-posix.c: New file.
44056         * tests/test-fprintf-posix.h: New file.
44057         * tests/test-fprintf-posix.out: New file.
44058
44059         * modules/vfprintf-posix: New file.
44060         * lib/vfprintf.c: New file.
44061         * m4/vfprintf-posix.m4: New file.
44062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44063         REPLACE_VFPRINTF.
44064         * lib/stdio_.h (vfprintf): New declaration.
44065         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44066         REPLACE_VFPRINTF.
44067
44068 2007-03-08  Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44071
44072 2007-03-08  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44075         instead of 'expr' invocations.
44076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44081         Suggested by Paul Eggert.
44082
44083 2007-03-08  Bruno Haible  <bruno@clisp.org>
44084
44085         * modules/fseterr-tests: New file.
44086         * tests/test-fseterr.c: New file.
44087
44088         * modules/fseterr: New file.
44089         * lib/fseterr.h: New file.
44090         * lib/fseterr.c: New file.
44091
44092 2007-03-08  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44095         * lib/getopt_.h: Likewise.
44096         * lib/mbswidth.h: Likewise.
44097         * lib/setenv.h: Likewise.
44098         * lib/vasnprintf.h: Likewise.
44099         * lib/vasprintf.h: Likewise.
44100         * lib/verror.h: Likewise.
44101         * lib/xsetenv.h: Likewise.
44102         * lib/xvasprintf.h: Likewise.
44103
44104 2007-03-08  Jim Meyering  <jim@meyering.net>
44105
44106         * users.txt: Add parted.
44107
44108         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44109
44110 2007-03-07  Bruno Haible  <bruno@clisp.org>
44111
44112         * m4/printf.m4: Make the shell script snippets copy&pastable.
44113
44114 2007-03-02  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/netinet_in_.h: New file.
44117         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44118         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44119         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44120         (Depends-on): Add absolute-header.
44121         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44122         into netinet/in.h.
44123
44124 2007-03-03  Bruno Haible  <bruno@clisp.org>
44125
44126         * lib/sys_select_.h: New file.
44127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44128         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44129         * modules/sys_select (Files): Add lib/sys_select_.h.
44130         (Depends-on): Add absolute-header.
44131         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44132         into sys/select.h.
44133
44134 2007-03-02  Bruno Haible  <bruno@clisp.org>
44135
44136         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44137         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44138         values.
44139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44140         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44141         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44142         * modules/sys_socket (Depends-on): Add absolute-header.
44143         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44144         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44145         (Include): Remove requirement of inclusion of <sys/types.h>.
44146
44147 2007-03-02  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/byteswap_.h (bswap_32): Fix formula.
44150
44151 2007-03-06  Bruno Haible  <bruno@clisp.org>
44152
44153         * modules/sprintf-posix-tests: New file.
44154         * tests/test-sprintf-posix.c: New file.
44155
44156         * modules/sprintf-posix: New file.
44157         * lib/sprintf.c: New file.
44158         * m4/sprintf-posix.m4: New file.
44159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44160         REPLACE_SPRINTF.
44161         * lib/stdio_.h (sprintf): New declaration.
44162         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44163         REPLACE_SPRINTF.
44164
44165 2007-03-06  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/vsprintf-posix-tests: New file.
44168         * tests/test-vsprintf-posix.c: New file.
44169         * tests/test-sprintf-posix.h: New file.
44170
44171         * modules/vsprintf-posix: New file.
44172         * lib/vsprintf.c: New file.
44173         * m4/vsprintf-posix.m4: New file.
44174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44175         REPLACE_VSPRINTF.
44176         * lib/stdio_.h (vsprintf): New declaration.
44177         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44178         REPLACE_VSPRINTF.
44179
44180 2007-03-06  Bruno Haible  <bruno@clisp.org>
44181
44182         * modules/vsnprintf (Depend-on): Remove minmax.
44183
44184 2007-03-06  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/snprintf-posix-tests: New file.
44187         * tests/test-snprintf-posix.c: New file.
44188
44189         * modules/snprintf-posix: New file.
44190         * m4/snprintf-posix.m4: New file.
44191         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44192         gl_FUNC_SNPRINTF.
44193         (gl_FUNC_SNPRINTF): Invoke it.
44194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44195         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44196         is set.
44197         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44198
44199 2007-03-06  Bruno Haible  <bruno@clisp.org>
44200
44201         * modules/vsnprintf-posix-tests: New file.
44202         * tests/test-vsnprintf-posix.c: New file.
44203         * tests/test-snprintf-posix.h: New file.
44204
44205         * modules/vsnprintf-posix: New file.
44206         * m4/vsnprintf-posix.m4: New file.
44207         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44208         gl_FUNC_VSNPRINTF.
44209         (gl_FUNC_VSNPRINTF): Invoke it.
44210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44211         * lib/stdio_.h (vsnprintf): Define as a replacement if
44212         REPLACE_VSNPRINTF is set.
44213         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44214
44215 2007-03-06  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44219
44220 2007-03-06  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44223         (asinl): Declare also if HAVE_DECL_ASINL is set.
44224         (atanl): Declare also if HAVE_DECL_ATANL is set.
44225         (ceill): Declare also if HAVE_DECL_CEILL is set.
44226         (cosl): Declare also if HAVE_DECL_COSL is set.
44227         (expl): Declare also if HAVE_DECL_EXPL is set.
44228         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44229         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44230         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44231         (logl): Declare also if HAVE_DECL_LOGL is set.
44232         (sinl): Declare also if HAVE_DECL_SINL is set.
44233         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44234         (tanl): Declare also if HAVE_DECL_TANL is set.
44235         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44238         declaration of frexpl, ldexpl.
44239         * modules/printf-frexpl (Depends-on): Add math.
44240         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44241
44242 2007-03-05  Bruno Haible  <bruno@clisp.org>
44243
44244         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44245         frexpl and ldexpl are declared.
44246         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44247
44248 2007-03-05  Bruno Haible  <bruno@clisp.org>
44249
44250         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44251         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44252
44253 2007-03-05  Bruno Haible  <bruno@clisp.org>
44254
44255         * lib/stdio_.h: Include <stddef.h>.
44256
44257 2007-03-05  Bruno Haible  <bruno@clisp.org>
44258
44259         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44260
44261 2007-03-05  Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44264         NetBSD 4, from Ralf Wildenhues.
44265
44266 2007-03-04  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/vasprintf.h: Update #if logic for the case when the functions
44269         exist but are overridden.
44270
44271 2007-03-04  Bruno Haible  <bruno@clisp.org>
44272
44273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44274         implementations: glibc-2.4 and MacOS X 10.3.
44275         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44276         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44277         * tests/test-vasprintf-posix.c (test_function): Likewise.
44278
44279 2007-03-04  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/vasprintf-posix-tests: New file.
44282         * tests/test-vasprintf-posix.c: New file.
44283
44284         * modules/vasprintf-posix: New file.
44285         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44286         defined.
44287         * m4/vasprintf-posix.m4: New file.
44288         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44289         gl_FUNC_VASPRINTF.
44290         (gl_FUNC_VASPRINTF): Invoke it.
44291         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44292         here.
44293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44294
44295 2007-03-04  Bruno Haible  <bruno@clisp.org>
44296
44297         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44298         REPLACE_GETTIMEOFDAY.
44299         * modules/sys_time (Makefile.am): Likewise.
44300         * m4/sys_time_h.m4: Likewise.
44301         * m4/gettimeofday.m4: Likewise.
44302
44303 2007-03-04  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/vasnprintf-posix-tests: New file.
44306         * tests/test-vasnprintf-posix.c: New file.
44307
44308         * modules/vasnprintf-posix: New file.
44309         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44310         printf-frexpl.h.
44311         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44312         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44313         REPLACE_VASNPRINTF is defined.
44314         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44315         gl_FUNC_VASNPRINTF.
44316         (gl_FUNC_VASNPRINTF): Invoke it.
44317         * m4/vasnprintf-posix.m4: New file.
44318         * m4/printf.m4: New file.
44319
44320 2007-03-04  Bruno Haible  <bruno@clisp.org>
44321
44322         Compile progreloc.c only if --enable-relocatable is specified.
44323         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44324         if --enable-relocatable was specified.
44325         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44326         lib_SOURCES.
44327
44328 2007-03-04  Jim Meyering  <jim@meyering.net>
44329
44330         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44331         Use it consistently, rather than enumerating errno constants.
44332
44333 2007-03-04  Bruno Haible  <bruno@clisp.org>
44334
44335         * modules/xvasprintf-tests: New file.
44336         * tests/test-xvasprintf.c: New file.
44337
44338         * modules/vasprintf-tests: New file.
44339         * tests/test-vasprintf.c: New file.
44340
44341         * modules/vasnprintf-tests: New file.
44342         * tests/test-vasnprintf.c: New file.
44343
44344         * modules/vsnprintf-tests: New file.
44345         * tests/test-vsnprintf.c: New file.
44346
44347         * modules/snprintf-tests: New file.
44348         * tests/test-snprintf.c: New file.
44349
44350 2007-03-04  Bruno Haible  <bruno@clisp.org>
44351
44352         Compile relocatable.c only if --enable-relocatable is specified.
44353         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44354         gl_RELOCATABLE_LIBRARY.
44355         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44356         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44357         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44358         gl_RELOCATABLE_LIBRARY.
44359         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44360         (Makefile.am): Remove lib_SOURCES.
44361         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44362         gl_RELOCATABLE_LIBRARY.
44363         (Makefile.am): Remove lib_SOURCES.
44364         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44365         always.
44366         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44367         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44368
44369 2007-03-04  Bruno Haible  <bruno@clisp.org>
44370
44371         * modules/argmatch-tests: New file.
44372         * tests/test-argmatch.c: New file.
44373
44374         * tests/test-allocsa.c (main): Halve the number of loop runs.
44375
44376         * modules/alloca-opt-tests: New file.
44377         * tests/test-alloca-opt.c: New file.
44378
44379 2007-03-04  Jim Meyering  <jim@meyering.net>
44380
44381         Work around difference between Linux ACLs and Solaris 10 ZFS.
44382         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44383         for EINVAL.
44384
44385 2007-03-03  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/relocatable-prog (Depends-on): Add back progreloc's
44388         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44389
44390 2007-03-03  Bruno Haible  <bruno@clisp.org>
44391
44392         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44393         * modules/relocatable-lib: New file.
44394
44395 2007-03-03  Bruno Haible  <bruno@clisp.org>
44396
44397         * modules/relocatable-prog: Renamed from modules/relocatable.
44398         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44399
44400 2007-03-03  Bruno Haible  <bruno@clisp.org>
44401
44402         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44403         m4/relocatable-lib.m4.
44404         (Depends-on): Remove 'relocatable'.
44405         (configure.ac): Add gl_RELOCATABLE_NOP.
44406
44407 2007-03-03  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/relocatable-prog-wrapper: New file.
44410         * modules/relocatable (Depends-on): Add it. Remove all other
44411         dependencies except progname.
44412         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44413
44414         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44415         (gl_FUNC_STRERROR): Nop.
44416         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44417
44418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44419         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44420
44421         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44422         (gl_FUNC_READLINK): Update.
44423
44424         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44425
44426 2007-03-03  Bruno Haible  <bruno@clisp.org>
44427
44428         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44429         * modules/xreadlink (Depends-on): Add unistd.
44430         * modules/xreadlink-with-size (Depends-on): Likewise.
44431
44432 2007-03-03  Bruno Haible  <bruno@clisp.org>
44433
44434         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44435         extracted from gt_FUNC_SETENV.
44436         (gt_FUNC_SETENV): Remove macro.
44437         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44438         remove gt_FUNC_SETENV.
44439
44440 2007-03-03  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44443         ENABLE_RELOCATABLE here.
44444         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44445
44446 2007-03-03  Bruno Haible  <bruno@clisp.org>
44447
44448         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44449         * tests/test-rbtreehash_list.c: Include progname.h.
44450         (main): Call set_program_name.
44451
44452         * modules/rbtree-oset-tests (Depends-on): Add progname.
44453         * tests/test-rbtree_oset.c: Include progname.h.
44454         (main): Call set_program_name.
44455
44456         * modules/rbtree-list-tests (Depends-on): Add progname.
44457         * tests/test-rbtree_list.c: Include progname.h.
44458         (main): Call set_program_name.
44459
44460         * modules/linked-list-tests (Depends-on): Add progname.
44461         * tests/test-linked_list.c: Include progname.h.
44462         (main): Call set_program_name.
44463
44464 2007-03-03  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44467         All uses of __restrict changed to _Restrict_.
44468         * lib/glob_.h (__restrict): Remove macro.
44469
44470 2007-03-02  Bruno Haible  <bruno@clisp.org>
44471
44472         * modules/gettext (configure.ac): Require gettext infrastructure
44473         from version 0.16.1.
44474
44475 2007-03-02  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/linkedhash-list-tests (Depends-on): Add progname.
44478         * tests/test-linkedhash_list.c: Include progname.h.
44479         (main): Call set_program_name.
44480
44481         * modules/carray-list-tests (Depends-on): Add progname.
44482         * tests/test-carray_list.c: Include progname.h.
44483         (main): Call set_program_name.
44484
44485         * modules/avltreehash-list-tests (Depends-on): Add progname.
44486         * tests/test-avltreehash_list.c: Include progname.h.
44487         (main): Call set_program_name.
44488
44489         * modules/avltree-oset-tests (Depends-on): Add progname.
44490         * tests/test-avltree_oset.c: Include progname.h.
44491         (main): Call set_program_name.
44492
44493         * modules/avltree-list-tests (Depends-on): Add progname.
44494         * tests/test-avltree_list.c: Include progname.h.
44495         (main): Call set_program_name.
44496
44497         * modules/array-oset-tests (Depends-on): Add progname.
44498         * tests/test-array_oset.c: Include progname.h.
44499         (main): Call set_program_name.
44500
44501         * modules/array-list-tests (Depends-on): Add progname.
44502         * tests/test-array_list.c: Include progname.h.
44503         (main): Call set_program_name.
44504
44505         * modules/argp-tests (Depends-on): Add progname.
44506         * tests/test-argp.c: Include argp.h first. Include progname.h.
44507         (main): Call set_program_name.
44508
44509 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44510
44511         * doc/gnulib-tool.texi (Initial import): Reword description of
44512         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44513         limited effect even if defined after the first system include.
44514
44515 2007-03-01  Bruno Haible  <bruno@clisp.org>
44516
44517         * build-aux/config.libpath: Update to libtool-1.5.22.
44518         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44519
44520 2007-03-01  Bruno Haible  <bruno@clisp.org>
44521
44522         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44523         foo_CFLAGS.
44524         Reported by Ralf Wildenhues.
44525
44526 2007-03-01  Bruno Haible  <bruno@clisp.org>
44527
44528         * build-aux/install-reloc: Remove object files left over by some
44529         compilers.
44530         Reported by Ralf Wildenhues.
44531
44532 2007-03-01  Bruno Haible  <bruno@clisp.org>
44533
44534         * build-aux/install-reloc: Break long lines.
44535
44536 2007-03-01  Bruno Haible  <bruno@clisp.org>
44537
44538         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44539         Reported by Ralf Wildenhues.
44540
44541 2007-03-01  Bruno Haible  <bruno@clisp.org>
44542
44543         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44544         include ordering constraints.
44545
44546 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44547
44548         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44550         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44551         as another example.
44552         * lib/time_.h: Fix misspelling.
44553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44554         Require gl_HEADER_TIME_H_DEFAULTS.
44555         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44556         * m4/time_r.m4 (gl_TIME_R): Likewise.
44557         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44558
44559 2007-03-01  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44562         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44563
44564 2007-03-01  Jim Meyering  <jim@meyering.net>
44565
44566         * modules/xreadlink (Maintainer): Add my name.
44567         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44568
44569 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44570             Bruno Haible  <bruno@clisp.org>
44571
44572         * build-aux/install-reloc: Compile also c-ctype.c.
44573         * build-aux/relocatable.sh.in: New file.
44574         * doc/relocatable.texi: New file.
44575         * doc/relocatable-maint.texi: New file.
44576         * doc/gnulib.texi: Include relocatable-maint.texi.
44577         * lib/progreloc.c: Include unistd.h unconditionally.
44578         * lib/relocwrapper.c: Include unistd.h unconditionally.
44579         Include c-ctype.h.
44580         (add_dotbin): Use c_tolower.
44581         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44582         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44583         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44584         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44585         to m4/relocatable-lib.m4.
44586         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44587         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44588         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44589         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44590         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44591         * modules/relocatable: New file.
44592         * modules/relocatable-lib: New file.
44593         * modules/relocatable-script: New file.
44594
44595 2007-02-28  Bruno Haible  <bruno@clisp.org>
44596
44597         Import --enable-relocatable infrastructure.
44598         * build-aux/config.libpath: New file, from GNU gettext.
44599         * build-aux/install-reloc: New file, from GNU gettext.
44600         * build-aux/reloc-ldflags: New file, from GNU gettext.
44601         * lib/relocatable.h: New file, from GNU gettext.
44602         * lib/relocatable.c: New file, from GNU gettext.
44603         * lib/relocwrapper.c: New file, from GNU gettext.
44604         * m4/relocatable.m4: New file, from GNU gettext.
44605
44606 2007-02-28  Bruno Haible  <bruno@clisp.org>
44607
44608         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44609
44610         * modules/xreadlink: New file, from GNU gettext with modifications.
44611         * lib/xreadlink.c: New file, from GNU gettext.
44612         * lib/xreadlink.h: Add comments.
44613         (xreadlink): New declaration.
44614
44615         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44616         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44617         lib/xreadlink-with-size.c.
44618         (configure.ac): Remove gl_XREADLINK invocation.
44619         (Makefile.am): Augment lib_SOURCES.
44620         * m4/xreadlink.m4: Remove file.
44621         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44622         (xreadlink_with_size): Renamed from xreadink.
44623         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44624         * modules/canonicalize (Depends-on): Replace xreadlink with
44625         xreadlink-with-size.
44626         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44627
44628 2007-02-25  Jim Meyering  <jim@meyering.net>
44629
44630         * build-aux/announce-gen: When complaining about excess arguments,
44631         list them.
44632
44633 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44634
44635         * README: Document signed integer overflow situation more
44636         accurately.
44637
44638 2007-02-25  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44641         'a' or 'A' conversion.
44642
44643 2007-02-25  Bruno Haible  <bruno@clisp.org>
44644
44645         * modules/filename: Renamed from modules/pathname.
44646         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44647         lib/concatpath.c with lib/concat-filename.c.
44648         (Makefile.am): Update.
44649         (Include): Replace pathname.h with filename.h.
44650         * lib/filename.h: Renamed from lib/pathname.h.
44651         (concatenated_filename): Renamed from concatenated_pathname.
44652         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44653         (concatenated_filename): Renamed from concatenated_pathname.
44654         * lib/findprog.c: Include filename.h instead of pathname.h.
44655         (find_in_path): Update.
44656         * lib/javacomp.c: Include filename.h instead of pathname.h.
44657         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44658         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44659         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44660         is_oldgcj_14_13_usable, is_javac_usable): Update.
44661         * lib/javaexec.c: Include filename.h instead of pathname.h.
44662         (execute_java_class): Update.
44663         * modules/findprog: Update.
44664         * modules/javacomp: Update.
44665         * modules/javaexec: Update.
44666         * MODULES.html.sh (File system functions): Add 'filename', remove
44667         'pathname'.
44668
44669 2007-02-25  Bruno Haible  <bruno@clisp.org>
44670
44671         * modules/printf-frexpl-tests: New file.
44672         * tests/test-printf-frexpl.c: New file.
44673
44674         * modules/printf-frexpl: New file.
44675         * lib/printf-frexpl.h: New file.
44676         * lib/printf-frexpl.c: New file.
44677         * m4/printf-frexpl.m4: New file.
44678
44679 2007-02-25  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/printf-frexp-tests: New file.
44682         * tests/test-printf-frexp.c: New file.
44683
44684         * modules/printf-frexp: New file.
44685         * lib/printf-frexp.h: New file.
44686         * lib/printf-frexp.c: New file.
44687         * m4/printf-frexp.m4: New file.
44688
44689 2007-02-25  Bruno Haible  <bruno@clisp.org>
44690
44691         Assume automake >= 1.10 for the tests.
44692         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44693         * modules/arctwo-tests: Likewise.
44694         * modules/argp-tests: Likewise.
44695         * modules/avltree-list-tests: Likewise.
44696         * modules/avltree-oset-tests: Likewise.
44697         * modules/avltreehash-list-tests: Likewise.
44698         * modules/carray-list-tests: Likewise.
44699         * modules/crc-tests: Likewise.
44700         * modules/des-tests: Likewise.
44701         * modules/gc-arcfour-tests: Likewise.
44702         * modules/gc-arctwo-tests: Likewise.
44703         * modules/gc-des-tests: Likewise.
44704         * modules/gc-hmac-md5-tests: Likewise.
44705         * modules/gc-hmac-sha1-tests: Likewise.
44706         * modules/gc-md2-tests: Likewise.
44707         * modules/gc-md4-tests: Likewise.
44708         * modules/gc-md5-tests: Likewise.
44709         * modules/gc-pbkdf2-sha1-tests: Likewise.
44710         * modules/gc-rijndael-tests: Likewise.
44711         * modules/gc-sha1-tests: Likewise.
44712         * modules/gc-tests: Likewise.
44713         * modules/getaddrinfo-tests: Likewise.
44714         * modules/hmac-md5-tests: Likewise.
44715         * modules/hmac-sha1-tests: Likewise.
44716         * modules/linked-list-tests: Likewise.
44717         * modules/linkedhash-list-tests: Likewise.
44718         * modules/lock-tests: Likewise.
44719         * modules/md2-tests: Likewise.
44720         * modules/md4-tests: Likewise.
44721         * modules/md5-tests: Likewise.
44722         * modules/rbtree-list-tests: Likewise.
44723         * modules/rbtree-oset-tests: Likewise.
44724         * modules/rbtreehash-list-tests: Likewise.
44725         * modules/read-file-tests: Likewise.
44726         * modules/rijndael-tests: Likewise.
44727         * modules/stdint-tests: Likewise.
44728         * modules/tls-tests: Likewise.
44729
44730 2007-02-24  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44733         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44734         function; instead check whether isnan with a double argument links.
44735         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44736         function; instead check whether isnan with a 'long double' argument
44737         links.
44738         Reported by Eric Blake <ebb9@byu.net>.
44739
44740 2007-02-24  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44743         defined.
44744         * lib/isnanl.c: Remove all code. Just include isnan.c.
44745         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44746
44747 2007-02-25  Jim Meyering  <jim@meyering.net>
44748
44749         Avoid conflicting types for 'unsetenv' on FreeBSD.
44750         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44751         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44752         in stdlib.h.
44753
44754 2007-02-24  Bruno Haible  <bruno@clisp.org>
44755
44756         * modules/isnanl-nolibm-tests: New file.
44757         * tests/test-isnanl.c: New file.
44758
44759         * modules/isnanl-nolibm: New file.
44760         * lib/isnanl.h: New file.
44761         * lib/isnanl.c: New file.
44762         * m4/isnanl.m4: New file.
44763
44764 2007-02-24  Bruno Haible  <bruno@clisp.org>
44765
44766         * modules/isnan-nolibm-tests: New file.
44767         * tests/test-isnan.c: New file.
44768
44769         * modules/isnan-nolibm: New file.
44770         * lib/isnan.h: New file.
44771         * lib/isnan.c: New file.
44772         * m4/isnan.m4: New file.
44773
44774 2007-02-24  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44777         assume that an exponent fits in 20 bits.
44778
44779 2007-02-24  Jim Meyering  <jim@meyering.net>
44780
44781         * m4/regex.m4: Update the description of the configure-time option,
44782         --without-included-regex, to state accurately what the defaults are,
44783         and perhaps to give people an idea why using this option is risky.
44784
44785 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44786
44787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44788         loops on small arguments.  This attempts to avoid the problem
44789         Bruno Haible reported for AIX 4.3.2 in
44790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44791
44792 2007-02-23  Bruno Haible  <bruno@clisp.org>
44793
44794         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44795         Needed for help2man.
44796
44797 2007-02-23  Karl Berry  <karl@gnu.org>
44798
44799         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44800         exists, foo.h should be cvs-ignored, not committed.
44801
44802 2007-02-23  Eric Blake  <ebb9@byu.net>
44803
44804         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44805         * lib/stat-time.h (includes): Likewise.
44806         * lib/utimecmp.c (includes): Likewise.
44807         * lib/utimens.h (includes): Likewise.
44808         * lib/getdate.y (includes): Also include "timespec.h" for use
44809         internal to the module.
44810         * modules/utimens (Depends-on): Revert yesterday's patch.
44811         * modules/nanosleep (Depends-on): Add missing dependency.
44812
44813 2007-02-22  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/glob.c: Don't include getlogin_r.h.
44816
44817 2007-02-22  Jim Meyering  <jim@meyering.net>
44818
44819         * modules/utimens (Depends-on): Add timespec, required for
44820         utimens.h's inclusion of timespec.h.
44821
44822 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44823
44824         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44825         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44826         Schwab in
44827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44828         I'll try to think of a better way to fix the Solaris problem.
44829
44830         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44831         like glibc; on Solaris 10, it fails with errno == EINVAL.
44832         POSIX says the behavior is unspecified if the first argument is NULL,
44833         so play it safe and never pass NULL to the system getcwd.
44834
44835 2007-02-21  Jim Meyering  <jim@meyering.net>
44836
44837         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44838         of gettimeofday.  It would conflict with the one now always
44839         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44840         an IRIX 6.5 build failure.
44841
44842 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44843
44844         Minor fixups to port to Solaris 10 with Sun C 5.8.
44845         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44846         * modules/getcwd (Depends-on): Add dirfd.
44847         * lib/putenv.c (putenv): #undef it.
44848         (rpl_putenv): New decl.
44849         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44850
44851 2007-02-20  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/stdio-tests: New file.
44854         * tests/test-stdio.c: New file.
44855
44856         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44857         (Depends-on): Add stdio.
44858         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44859         (Include): Use <stdio.h> instead of vsnprintf.h.
44860         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44861         HAVE_DECL_VSNPRINTF.
44862         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44863
44864         * modules/snprintf (Files): Remove lib/snprintf.h.
44865         (Depends-on): Add stdio.
44866         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44867         (Include): Use <stdio.h> instead of snprintf.h.
44868         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44869         HAVE_DECL_SNPRINTF.
44870         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44871         * lib/getaddrinfo.c: Likewise.
44872
44873         * modules/stdio: New file.
44874         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44875         * lib/snprintf.h: Remove file.
44876         * lib/vsnprintf.h: Remove file.
44877         * lib/.cppi-disable: Remove snprintf.h.
44878         * m4/stdio_h.m4: New file.
44879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44880
44881 2007-02-20  Jim Meyering  <jim@meyering.net>
44882
44883         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44884         used by e.g., mingw.  From Bruno Haible.
44885
44886 2007-02-19  Bruno Haible  <bruno@clisp.org>
44887
44888         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44889         warnings.
44890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44891
44892 2007-02-19  Bruno Haible  <bruno@clisp.org>
44893
44894         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44895         from mingw users.
44896
44897 2007-02-19  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44900         warnings.
44901         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44902
44903 2007-02-19  Jim Meyering  <jim@meyering.net>
44904
44905         Don't use FD after a successful "fdopendir (fd)".
44906         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44907         Reset it by calling dirfd on the just-obtained DIR*.
44908
44909         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44910         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44911
44912 2007-02-18  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/readlink.c: Include <unistd.h>.
44915         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44916         HAVE_READLINK.
44917         * modules/readlink (Depends-on): Add unistd.
44918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44919         (Include): Add <unistd.h>.
44920
44921         * lib/getlogin_r.h: Remove file.
44922         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44923         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44924         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44925         HAVE_DECL_GETLOGIN_R.
44926         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44928         (Include): Use <unistd.h> instead of getlogin_r.h.
44929
44930         * lib/getcwd.h: Remove file.
44931         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44932         * lib/xgetcwd.c: Likewise.
44933         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44934         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44935         * modules/getcwd (Files): Remove lib/getcwd.h.
44936         (Depends-on): Add unistd.
44937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44938         (Include): Use <unistd.h> instad of getcwd.h.
44939
44940         * lib/ftruncate.c: Include <unistd.h> first.
44941         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44942         Set HAVE_FTRUNCATE.
44943         * modules/ftruncate (Depends-on): Add unistd.
44944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44945
44946         * lib/fchdir.c: Include <unistd.h> first.
44947         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44949         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44950         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44951         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44952
44953         * lib/dup2.c: Include <unistd.h> first.
44954         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44955         HAVE_DUP2.
44956         * modules/dup2 (Depends-on): Add unistd.
44957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44958
44959         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44960         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44961         REPLACE_CHOWN. Don't define chown as a macro here.
44962         * modules/chown (Depends-on): Add unistd.
44963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44964
44965         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44966         Add definition for GL_LINK_WARNING.
44967         (chown, dup2): New declarations.
44968         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44969         link warning.
44970         (ftruncate): New declaration.
44971         (getcwd): New declaration, taken from old getcwd.h.
44972         (getlogin_r): New declaration, taken from old getlogin_r.h.
44973         (readlink): New declaration.
44974         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44975         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44976         (gl_PREREQ_UNISTD): Remove macro.
44977         (gl_UNISTD_MODULE_INDICATOR): New macro.
44978         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44979         many new variables. Don't set UNISTD_H.
44980         * modules/unistd (Description): Change.
44981         (Depends-on): Add link-warning.
44982         (configure.ac): Update.
44983         (Makefile.am): Create unistd.h always. Substitute many new variables
44984         into it.
44985
44986 2007-02-18  Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44989         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44990         HAVE_GETSUBOPT.
44991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44992         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44993         * lib/getsubopt.h: Remove file.
44994         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44995         (Depends-on): Add stdlib.
44996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44997         (Includes): Use <stdlib.h> instead of getsubopt.h.
44998         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44999         Set HAVE_GETSUBOPT.
45000         * lib/getsubopt.c: Don't include getsubopt.h.
45001
45002 2007-02-18  Bruno Haible  <bruno@clisp.org>
45003
45004         * modules/fchdir (Depends-on): Add dup2.
45005
45006 2007-02-18  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/stdlib_.h: Handle glibc's special invocation convention
45009         specially.
45010
45011 2007-02-18  Bruno Haible  <bruno@clisp.org>
45012
45013         * modules/stdlib-tests: New file.
45014         * tests/test-stdlib.c: New file.
45015
45016         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45017         (Depends-on): Add stdlib.
45018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45019         (Includes): Use <stdlib.h> instead of mkstemp.h.
45020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45021         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45022         * lib/mkstemp.c: Don't include mkstemp.h.
45023         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45024         * lib/stdlib--.h: Don't include mkstemp.h.
45025
45026         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45027         (Depends-on): Add stdlib.
45028         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45029         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45030         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45031         HAVE_MKDTEMP.
45032         * lib/mkdtemp.c: Don't include mkdtemp.h.
45033         * lib/clean-temp.c: Don't include mkdtemp.h.
45034
45035         * modules/exit (Files): Remove lib/exit.h.
45036         (Depends-on): Add stdlib.
45037         (Makefile.am): Remove lib_SOURCES.
45038         (Include): Use <stdlib.h> instead of exit.h.
45039         * lib/argmatch.c: Don't include exit.h.
45040         * lib/execute.c: Likewise.
45041         * lib/pagealign_alloc.c: Likewise.
45042         * lib/pipe.c: Likewise.
45043         * lib/wait-process.c: Likewise.
45044         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45045         * lib/exitfail.c: Likewise.
45046         * lib/savewd.c: Likewise.
45047         * lib/xsetenv.c: Likewise.
45048
45049         * modules/stdlib: New file.
45050         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45051         and extra comments about mkstemp().
45052         * lib/exit.h: Remove file.
45053         * lib/mkdtemp.h: Remove file.
45054         * lib/mkstemp.h: Remove file.
45055         * m4/stdlib_h.m4: New file.
45056         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45057
45058 2007-02-18  Bruno Haible  <bruno@clisp.org>
45059
45060         * modules/math-tests: New file.
45061         * tests/test-math.c: New file.
45062
45063         * modules/math: New file.
45064         * modules/mathl (Files): Remove lib/mathl.h.
45065         (Depends-on): Add math.
45066         (Makefile.am): Don't mention mathl.h.
45067         (Include): Use <math.h> instead of mathl.h.
45068         * lib/math_.h: New file.
45069         * lib/mathl.h: Remove file.
45070         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45071         mathl.h.
45072         * lib/asinl.c: Likewise.
45073         * lib/atanl.c: Likewise.
45074         * lib/ceill.c: Likewise.
45075         * lib/cosl.c: Likewise.
45076         * lib/expl.c: Likewise.
45077         * lib/floorl.c: Likewise.
45078         * lib/frexpl.c: Likewise.
45079         * lib/ldexpl.c: Likewise.
45080         * lib/logl.c: Likewise.
45081         * lib/sincosl.c: Likewise.
45082         * lib/sinl.c: Likewise.
45083         * lib/sqrtl.c: Likewise.
45084         * lib/tanl.c: Likewise.
45085         * lib/trigl.c: Likewise.
45086         * m4/math_h.m4: New file.
45087         * MODULES.html.sh (Mathematics): Add math.
45088
45089 2007-02-17  Bruno Haible  <bruno@clisp.org>
45090
45091         * modules/wctype-tests: New file.
45092         * tests/test-wctype.c: New file.
45093
45094         * modules/wchar-tests: New file.
45095         * tests/test-wchar.c: New file.
45096
45097         * modules/unistd-tests: New file.
45098         * tests/test-unistd.c: New file.
45099
45100         * modules/time-tests: New file.
45101         * tests/test-time.c: New file.
45102
45103         * modules/sysexits-tests: New file.
45104         * tests/test-sysexits.c: New file.
45105
45106         * modules/sys_time-tests: New file.
45107         * tests/test-sys_time.c: New file.
45108
45109         * modules/sys_stat-tests: New file.
45110         * tests/test-sys_stat.c: New file.
45111
45112         * modules/sys_socket-tests: New file.
45113         * tests/test-sys_socket.c: New file.
45114
45115         * modules/sys_select-tests: New file.
45116         * tests/test-sys_select.c: New file.
45117
45118         * modules/string-tests: New file.
45119         * tests/test-string.c: New file.
45120
45121         * modules/stdbool-tests: New file.
45122         * tests/test-stdbool.c: New file.
45123
45124         * modules/netinet_in-tests: New file.
45125         * tests/test-netinet_in.c: New file.
45126
45127         * modules/inttypes-tests: New file.
45128         * tests/test-inttypes.c: New file.
45129
45130         * modules/fcntl-tests: New file.
45131         * tests/test-fcntl.c: New file.
45132
45133         * modules/byteswap-tests: New file.
45134         * tests/test-byteswap.c: New file.
45135
45136         * modules/arpa_inet-tests: New file.
45137         * tests/test-arpa_inet.c: New file.
45138
45139 2007-02-17  Bruno Haible  <bruno@clisp.org>
45140
45141         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45142         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45143         if the corresponding module is not enabled. Emit link warnings if
45144         the function is used nevertheless.
45145         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45146         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45147         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45148         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45149         * modules/inttypes (Depends-on): Add link-warning.
45150         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45151         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45152         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45153         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45154         * modules/imaxdiv (configure.ac): Likewise.
45155         * modules/strtoimax (configure.ac): Likewise.
45156         * modules/strtoumax (configure.ac): Likewise.
45157
45158 2007-02-17  Bruno Haible  <bruno@clisp.org>
45159
45160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45161         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45162         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45163         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45164
45165 2007-02-17  Bruno Haible  <bruno@clisp.org>
45166
45167         * modules/link-warning: New file.
45168         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45169         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45170         * modules/string (Depends-on): Add link-warning.
45171         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45172         string.h.
45173         * MODULES.html.sh (Support for building libraries and executables): Add
45174         link-warning.
45175
45176 2007-02-17  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45179         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45180         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45181         long lines.
45182
45183 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45184             Bruno Haible  <bruno@clisp.org>
45185
45186         * modules/tmpfile: New file.
45187         * lib/tmpfile.c: New file.
45188         * m4/tmpfile.m4: New file.
45189         * MODULES.html.sh (func_all_modules): New section "Input/output".
45190
45191 2007-02-15  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45194         (supports_delete_on_close): New function.
45195         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45196
45197 2007-02-14  Bruno Haible  <bruno@clisp.org>
45198
45199         * modules/mbspcasecmp-tests: New file.
45200         * tests/test-mbspcasecmp.sh: New file.
45201         * tests/test-mbspcasecmp.c: New file.
45202
45203         New module mbspcasecmp.
45204         * modules/mbspcasecmp: New file.
45205         * lib/mbspcasecmp.c: New file.
45206         * lib/string_.h (strncasecmp): Change warning message.
45207         (mbspcasecmp): New declaration.
45208         * m4/mbspcasecmp.m4: New file.
45209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45210         GNULIB_MBSPCASECMP.
45211         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45212         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45213
45214 2007-02-14  Bruno Haible  <bruno@clisp.org>
45215
45216         * modules/mbsncasecmp-tests: New file.
45217         * tests/test-mbsncasecmp.sh: New file.
45218         * tests/test-mbsncasecmp.c: New file.
45219
45220         New module mbsncasecmp.
45221         * modules/mbsncasecmp: New file.
45222         * lib/mbsncasecmp.c: New file.
45223         * lib/string_.h (mbsncasecmp): New declaration.
45224         * m4/mbsncasecmp.m4: New file.
45225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45226         GNULIB_MBSNCASECMP.
45227         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45228         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45229
45230 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45231
45232         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45233         Verify that it doesn't overlap with our flags.
45234         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45235         do not have the desired effect in multibyte locales; instead, use
45236         mbscasecmp.
45237         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45238         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45239         we don't require GNU fnmatch ourselves (if our users require it, they
45240         should do so explicitly).
45241
45242         Fix regex code so it doesn't rely on strcasecmp.
45243         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45244         Otherwise, include gnulib's langinfo.h.
45245         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45246         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45247         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45248         * modules/regex (FILES): Remove m4/codeset.m4.
45249         (Depends-on): Add localcharset.  Remove strcase.
45250
45251 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45252
45253         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45254         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45255
45256 2007-02-13  Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45260
45261 2007-02-12  Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45264         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45265         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45266         time warning rather than a link error.
45267
45268 2007-02-12  Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45273
45274 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45277         args, not 2.
45278
45279 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45280
45281         New module 'time', so that apps can include <time.h> as per
45282         POSIX and GNU instead of separate include files like time_r.h
45283         and timegm.h.  This implementation tries out a simpler approach
45284         for replacing decls in standard include files (as compared to
45285         the string module), somewhat as an experiment.
45286
45287         * config/srclist.txt: Comment out mktime.c for now.
45288         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45289         since it doesn't apply any more.  Use generic wording instead.
45290         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45291         'time'.
45292         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45293         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45294         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45295         Don't include <sys/types.h>; no longer needed since we assume C89.
45296         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45297         * lib/strftime.c: Likewise.
45298         * lib/time_r.c: Likewise.
45299         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45300         * lib/nanosleep.c: Include <time.h> first, to check interface.
45301         * lib/strptime.c: Likewise.
45302         * lib/time_r.c: Likewise.
45303         * lib/timegm.c: Likewise.
45304         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45305         needed.
45306         * lib/timegm.c: Don't include timegm.h; no longer needed.
45307         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45308         time.h now handles any problems in that area.
45309         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45310         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45311         that time.h defines struct timespec.
45312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45313         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45314         handles that.
45315         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45316         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45317         needed.  Set REPLACE_LOCALTIME.
45318         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45319         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45320         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45321         nanosleep; time_h.m4 now does that.  Don't require
45322         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45323         module handles this now.
45324         * modules/getdate (Depends-on): Remove timespec.  Add time.
45325         * modules/nanosleep (Depends-on): Likewise.
45326         * modules/stat-time (Depends-on): Likewise.
45327         * modules/nanosleep (Include): Include time.h, not timespec.h.
45328         * modules/strptime (Files): Remove lib/strptime.h.
45329         (Depends-on): Add extensions, time.
45330         (Include): Include time.h, not strptime.h.
45331         * modules/time_r (Files): Remove lib/time_r.h.
45332         (Depends-on): Add time.
45333         (Include): Include time.h, not time_r.h.
45334         * modules/timegm: Likewise.
45335         * modules/timespec (Description): Now does timespec-related decls
45336         of our own, instead of struct timespec itself.
45337         (Depends-on): Add time; remove extensions.
45338         (Maintainer): Add self.
45339         * modules/utimecmp (Depends-on): Add time; remove timespec.
45340         * modules/utimens (Depends-on): Likewise.
45341         * modules/xnanosleep (Depends-on): Likewise.
45342
45343 2007-02-11  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/c-strstr.c: Include allocsa.h.
45346         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45347         * lib/c-strcasestr.c: Include allocsa.h.
45348         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45349         * lib/strcasestr.c: Include allocsa.h.
45350         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45351         * lib/mbsstr.c: Include allocsa.h.
45352         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45353         allocsa/freesa instead of malloc/free.
45354         * lib/mbscasestr.c: Include allocsa.h.
45355         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45356         allocsa/freesa instead of malloc/free.
45357         * modules/c-strstr (Depends-on): Add allocsa.
45358         * modules/c-strcasestr (Depends-on): Likewise.
45359         * modules/strcasestr (Depends-on): Likewise.
45360         * modules/mbsstr (Depends-on): Likewise.
45361         * modules/mbscasestr (Depends-on): Likewise.
45362
45363 2007-02-11  Bruno Haible  <bruno@clisp.org>
45364
45365         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45366
45367         * modules/mbsspn-tests: New file.
45368         * tests/test-mbsspn.sh: New file.
45369         * tests/test-mbsspn.c: New file.
45370
45371 2007-02-11  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45374
45375         * modules/mbspbrk-tests: New file.
45376         * tests/test-mbspbrk.sh: New file.
45377         * tests/test-mbspbrk.c: New file.
45378
45379 2007-02-11  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45382         unneeded cast.
45383
45384         * modules/mbscspn-tests: New file.
45385         * tests/test-mbscspn.sh: New file.
45386         * tests/test-mbscspn.c: New file.
45387
45388 2007-02-11  Bruno Haible  <bruno@clisp.org>
45389
45390         * modules/mbscasecmp-tests: New file.
45391         * tests/test-mbscasecmp.sh: New file.
45392         * tests/test-mbscasecmp.c: New file.
45393
45394 2007-02-11  Bruno Haible  <bruno@clisp.org>
45395
45396         Ensure O(n) worst-case complexity of mbscasestr.
45397         * lib/mbscasestr.c: Include stdbool.h.
45398         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45399         functions.
45400         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45401         the bookkeeping indicates that it's worth it.
45402         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45403
45404         * modules/mbscasestr-tests: New file.
45405         * tests/test-mbscasestr1.c: New file.
45406         * tests/test-mbscasestr2.sh: New file.
45407         * tests/test-mbscasestr2.c: New file.
45408         * tests/test-mbscasestr3.sh: New file.
45409         * tests/test-mbscasestr3.c: New file.
45410         * tests/test-mbscasestr4.sh: New file.
45411         * tests/test-mbscasestr4.c: New file.
45412         * m4/locale-tr.m4: New file.
45413
45414 2007-02-11  Bruno Haible  <bruno@clisp.org>
45415
45416         Ensure O(n) worst-case complexity of mbsstr.
45417         * lib/mbsstr.c: Include stdbool.h.
45418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45419         functions.
45420         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45421         bookkeeping indicates that it's worth it.
45422         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45423
45424         * modules/mbsstr-tests: New file.
45425         * tests/test-mbsstr1.c: New file.
45426         * tests/test-mbsstr2.sh: New file.
45427         * tests/test-mbsstr2.c: New file.
45428         * tests/test-mbsstr3.sh: New file.
45429         * tests/test-mbsstr3.c: New file.
45430         * m4/locale-fr.m4: New file.
45431
45432 2007-02-11  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/mbsrchr.c (mbsrchr): Fix bug.
45435
45436         * modules/mbsrchr-tests: New file.
45437         * tests/test-mbsrchr.sh: New file.
45438         * tests/test-mbsrchr.c: New file.
45439
45440 2007-02-11  Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/mbschr.c (mbschr): Fix bug.
45443
45444         * modules/mbschr-tests: New file.
45445         * tests/test-mbschr.sh: New file.
45446         * tests/test-mbschr.c: New file.
45447         * m4/locale-zh.m4: New file.
45448
45449 2007-02-11  Bruno Haible  <bruno@clisp.org>
45450
45451         Support for copying multibyte string iterators.
45452         * lib/mbiter.h: Include <string.h>.
45453         (mbiter_multi_copy): New function.
45454         (mbi_copy): New macro.
45455         * lib/mbuiter.h: Include <string.h>.
45456         (mbuiter_multi_copy): New function.
45457         (mbui_copy): New macro.
45458
45459 2007-02-11  Bruno Haible  <bruno@clisp.org>
45460
45461         New module mbslen.
45462         * modules/mbslen: New file.
45463         * lib/mbslen.c: New file.
45464         * lib/string_.h (mbslen): New declaration.
45465         * m4/mbslen.m4: New file.
45466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45467         GNULIB_MBSLEN.
45468         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45469         * MODULES.html.sh (Internationalization functions): Add mbslen.
45470
45471 2007-02-11  Bruno Haible  <bruno@clisp.org>
45472
45473         Ensure O(n) worst-case complexity of strcasestr substitute.
45474         * lib/strcasestr.c: Include stdbool.h.
45475         (knuth_morris_pratt): New function.
45476         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45477         bookkeeping indicates that it's worth it.
45478         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45479
45480         * modules/strcasestr-tests: New file.
45481         * tests/test-strcasestr.c: New file.
45482
45483 2007-02-11  Bruno Haible  <bruno@clisp.org>
45484
45485         Ensure O(n) worst-case complexity of c_strcasestr.
45486         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45487         (knuth_morris_pratt): New function.
45488         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45489         the bookkeeping indicates that it's worth it.
45490         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45491
45492         * modules/c-strcasestr-tests: New file.
45493         * tests/test-c-strcasestr.c: New file.
45494
45495 2007-02-11  Bruno Haible  <bruno@clisp.org>
45496
45497         Ensure O(n) worst-case complexity of c_strstr.
45498         * lib/c-strstr.c: Include stdbool.h, string.h.
45499         (knuth_morris_pratt): New function.
45500         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45501         bookkeeping indicates that it's worth it.
45502         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45503
45504         * lib/c-strstr.c: Complete rewrite for maintainability.
45505
45506         * modules/c-strstr-tests: New file.
45507         * tests/test-c-strstr.c: New file.
45508
45509 2007-02-11  Bruno Haible  <bruno@clisp.org>
45510
45511         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45512         5.2.1 and earlier, whereby \055 was treated just like the range
45513         delimiter '-'.
45514         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45515
45516 2007-02-08  Bruno Haible  <bruno@clisp.org>
45517
45518         * modules/regex (Depends-on): Add stdbool.
45519         Reported by Dalibor Topic <robilad@kaffe.org>.
45520
45521 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45522
45523         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45524         Prefer returning from main to exiting from it.
45525         Remove unnecessary parens after sizeof.
45526
45527 2007-02-05  Bruno Haible  <bruno@clisp.org>
45528
45529         New module mbssep.
45530         * modules/mbssep: New file.
45531         * lib/mbssep.c: New file.
45532         * lib/string_.h (strsep): Add a conditional link warning.
45533         (mbssep): New declaration.
45534         * m4/mbssep.m4: New file.
45535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45536         GNULIB_MBSSEP.
45537         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45538         * MODULES.html.sh (Internationalization functions): Add mbssep.
45539
45540 2007-02-05  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45543         Optimize search in case of 1 delimiter.
45544
45545 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45546
45547         * lib/acl.h: Include sys/types.h before sys/acl.h.
45548
45549 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45550
45551         Merge upstream fix for glibc bugzilla #3957:
45552
45553         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45554
45555         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45556         bit for RE_HAT_LISTS_NOT_NEWLINE.
45557         (build_charclass_op): Remove bogus comment.
45558
45559 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45560
45561         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45562
45563 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45564
45565         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45566         * lib/memmem.c [!defined _LIBC]: Include config.h.
45567
45568 2007-02-04  Bruno Haible  <bruno@clisp.org>
45569
45570         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45571         warning message.
45572
45573 2007-02-04  Bruno Haible  <bruno@clisp.org>
45574
45575         New module mbstok_r.
45576         * modules/mbstok_r: New file.
45577         * lib/mbstok_r.c: New file.
45578         * lib/string_.h (strtok_r): Change argument names to match the
45579         comments. Add a conditional link warning.
45580         (mbstok_r): New declaration.
45581         * m4/mbstok_r.m4: New file.
45582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45583         GNULIB_MBSTOK_R.
45584         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45585         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45586
45587 2007-02-04  Bruno Haible  <bruno@clisp.org>
45588
45589         New module mbsspn.
45590         * modules/mbsspn: New file.
45591         * lib/mbsspn.c: New file.
45592         * lib/string_.h (strspn): Add a conditional link warning.
45593         (mbsspn): New declaration.
45594         * m4/mbsspn.m4: New file.
45595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45596         GNULIB_MBSSPN.
45597         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45598         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45599
45600 2007-02-04  Bruno Haible  <bruno@clisp.org>
45601
45602         New module mbspbrk.
45603         * modules/mbspbrk: New file.
45604         * lib/mbspbrk.c: New file.
45605         * lib/string_.h (strpbrk): Add a conditional link warning.
45606         (mbspbrk): New declaration.
45607         * m4/mbspbrk.m4: New file.
45608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45609         GNULIB_MBSPBRK.
45610         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45611         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45612
45613 2007-02-04  Bruno Haible  <bruno@clisp.org>
45614
45615         New module mbscspn.
45616         * modules/mbscspn: New file.
45617         * lib/mbscspn.c: New file.
45618         * lib/string_.h (strcspn): Add a conditional link warning.
45619         (mbscspn): New declaration.
45620         * m4/mbscspn.m4: New file.
45621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45622         GNULIB_MBSCSPN.
45623         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45624         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45625
45626 2007-02-04  Bruno Haible  <bruno@clisp.org>
45627
45628         New module mbscasestr, reduced goal of strcasestr.
45629         * modules/mbscasestr: New file.
45630         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45631         (mbscasestr): Renamed from strcasestr.
45632         * lib/strcasestr.c: Don't include mbuiter.h.
45633         (strcasestr): Remove support for multibyte locales.
45634         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45635         Change the conditional link warning.
45636         (mbscasestr): New declaration.
45637         * m4/mbscasestr.m4: New file.
45638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45639         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45640         REPLACE_STRCASESTR.
45641         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45643         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45644         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45645         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45646         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45647         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45648         (Depends-on): Remove mbuiter.
45649         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45650
45651 2007-02-04  Bruno Haible  <bruno@clisp.org>
45652
45653         Simplify handling of strncasecmp.
45654         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45655         the conditional link warning.
45656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45657         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45658         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45659         * modules/strcase (configure.ac): Don't invoke
45660         gl_STRING_MODULE_INDICATOR.
45661         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45662
45663 2007-02-04  Bruno Haible  <bruno@clisp.org>
45664
45665         New module mbscasecmp, reduced goal of strcasecmp.
45666         * modules/mbscasecmp: New file.
45667         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45668         (mbscasecmp): Renamed from strcasecmp.
45669         * lib/strcasecmp.c: Don't include mbuiter.h.
45670         (strcasecmp): Remove support for multibyte locales.
45671         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45672         Change the conditional link warning.
45673         (mbscasecmp): New declaration.
45674         * m4/mbscasecmp.m4: New file.
45675         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45676         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45677         REPLACE_STRCASECMP.
45678         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45680         GNULIB_MBSCASECMP.
45681         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45682         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45683         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45684         (Depends-on): Remove mbuiter.
45685         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45686
45687 2007-02-04  Bruno Haible  <bruno@clisp.org>
45688
45689         New module mbsstr. Remove module strstr.
45690         * modules/mbsstr: New file.
45691         * modules/strstr: Remove file.
45692         * lib/mbsstr.c: Renamed from lib/strstr.c.
45693         (mbsstr): Renamed from strstr.
45694         * lib/string_.h (strstr): Remove declaration. Change the conditional
45695         link warning.
45696         (mbsstr): New declaration.
45697         * m4/mbsstr.m4: New file.
45698         * m4/strstr.m4: Remove file.
45699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45700         REPLACE_STRSTR.
45701         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45702         Don't initialize GNULIB_STRSTR.
45703         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45704         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45705         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45706         (Support for systems lacking ANSI C 89): Remove strstr.
45707
45708 2007-02-04  Bruno Haible  <bruno@clisp.org>
45709
45710         New module mbsrchr.
45711         * modules/mbsrchr: New file.
45712         * lib/mbsrchr.c: New file.
45713         * lib/string_.h (strrchr): Add a conditional link warning.
45714         (mbsrchr): New declaration.
45715         * m4/mbsrchr.m4: New file.
45716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45717         GNULIB_MBSRCHR.
45718         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45719         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45720
45721 2007-02-04  Bruno Haible  <bruno@clisp.org>
45722
45723         New module mbschr.
45724         * modules/mbschr: New file.
45725         * lib/mbschr.c: New file.
45726         * lib/string_.h (strchr): Add a conditional link warning.
45727         (mbschr): New declaration.
45728         * m4/mbschr.m4: New file.
45729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45730         GNULIB_MBSCHR.
45731         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45732         * MODULES.html.sh (Internationalization functions): Add mbschr.
45733
45734 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45737
45738         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45739
45740 2007-02-04  Bruno Haible  <bruno@clisp.org>
45741
45742         New module description section 'configure.ac-early'.
45743         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45744         (func_get_autoconf_early_snippet): New function.
45745         (func_import, func_create_testdir): Use it. Remove special cases for
45746         modules 'extensions' and 'lock'.
45747         * modules/extensions (configure.ac-early): Require
45748         gl_USE_SYSTEM_EXTENSIONS.
45749         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45750
45751 2007-02-04  Bruno Haible  <bruno@clisp.org>
45752
45753         Make use of gcj-4.3's -fsource and -ftarget option.
45754         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45755         and if so try the options -fsource and -ftarget.
45756         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45757         source_version, ftarget_option, target_version arguments.
45758         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45759         (is_envjavac_oldgcj_14_14_usable): Renamed from
45760         is_envjavac_gcj_14_14_usable.
45761         (is_envjavac_oldgcj_14_13_usable): Renamed from
45762         is_envjavac_gcj_14_13_usable.
45763         (is_gcj_present): Update.
45764         (is_gcj_43, is_gcj43_usable): New functions.
45765         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45766         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45767         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45768         try the options -fsource and -ftarget.
45769
45770 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45771
45772         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45773         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45774         larger value.
45775
45776 2007-02-03  Jim Meyering  <jim@meyering.net>
45777
45778         Give tools a better chance to allocate space for very large buffers.
45779         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45780
45781         Make pwd and readlink work also when run with an unreadable parent dir
45782         on systems with openat support.
45783         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45784         provided getcwd function, even when we have openat support.
45785         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45786
45787 2007-02-02  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45790         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45791         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45792         portability problems if one of these functions is only used on specific
45793         platforms.
45794         Reported by Paul Eggert.
45795
45796 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45797
45798         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45799         is causing more trouble than it's curing.
45800         * lib/regex_internal.h (__mempcpy): Remove.
45801         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45802         (and make the code a tad smaller to boot).
45803         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45804
45805 2007-02-02  Jim Meyering  <jim@meyering.net>
45806
45807         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45808         section, not in the Makefile.am: one.
45809
45810 2007-02-02  Eric Blake  <ebb9@byu.net>
45811
45812         * lib/strchrnul.c: Always include config.h first.
45813
45814         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45815         gnulib strstr is not necessary here.
45816
45817 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45818
45819         * m4/socklen.m4: Fix typo.
45820
45821 2007-02-02  Eric Blake  <ebb9@byu.net>
45822
45823         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45824         * modules/netinet_in (Makefile.am): Likewise.
45825
45826 2007-02-01  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/string_.h (GL_LINK_WARNING): New macro.
45829         (strcasecmp, strstr, strcasestr): If provided by the system,
45830         conditionally define as a macro that leads to a warning instead of to
45831         an error.
45832         (strncasecmp): Conditionally define as a macro that leads to a warning.
45833
45834 2007-02-01  Karl Berry  <karl@gnu.org>
45835
45836         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45837
45838 2007-02-01  Bruno Haible  <bruno@clisp.org>
45839
45840         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45841         renamings.
45842
45843 2007-02-01  Eric Blake  <ebb9@byu.net>
45844
45845         * modules/regex (Depends-on): Revert dependence on mempcpy.
45846         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45847         module's definition of mempcpy.
45848         Reported by Paul Eggert.
45849
45850 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45851
45852         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45853         the symbol XYZ before redefining it.  This fixes a problem with
45854         programs that don't use XYZ, when compiled on systems that define
45855         XYZ to something else.
45856
45857 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45860         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45861         writeable to group or other and (2) is intended to have a special
45862         mode bit that is set or cleared.  In such a case, the directory
45863         should be neither group- nor other-writeable until the special
45864         mode bits are right.
45865
45866 2007-01-31  Eric Blake  <ebb9@byu.net>
45867
45868         * modules/mountlist (Depends-on): Add strstr.
45869
45870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45871         bug.
45872         * modules/string (Makefile.am): Remove redundant replacement.
45873         * modules/regex (Depends-on): Add mempcpy.
45874
45875 2007-01-31  Bruno Haible  <bruno@clisp.org>
45876
45877         New module description field 'Link'.
45878         * gnulib-tool (func_usage): Document --extract-link-directive.
45879         (sed_extract_prog): Recognize 'Link' directive.
45880         (func_get_link_directive): New function.
45881         (func_import): Show summary of link directives.
45882         Handle --extract-link-directive option.
45883         * modules/acl (Link): New section.
45884         * modules/clock-time (Link): New section.
45885         * modules/euidaccess (Link): New section.
45886         * modules/gettext (Link): New section.
45887         * modules/iconv (Link): New section.
45888         * modules/lock (Link): New section.
45889         * modules/nanosleep (Link): New section.
45890         * modules/readline (Link): New section.
45891
45892 2007-01-27  Bruno Haible  <bruno@clisp.org>
45893
45894         Enforce the use of gnulib modules for unportable <string.h> functions.
45895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45896         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45897         (gl_HEADER_STRING_H_BODY): Require it.
45898         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45899         the symbol XYZ to one that gives a link error.
45900         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45901         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45902         * modules/mempcpy (configure.ac): Likewise.
45903         * modules/memrchr (configure.ac): Likewise.
45904         * modules/stpcpy (configure.ac): Likewise.
45905         * modules/stpncpy (configure.ac): Likewise.
45906         * modules/strcase (configure.ac): Likewise.
45907         * modules/strcasestr (configure.ac): Likewise.
45908         * modules/strchrnul (configure.ac): Likewise.
45909         * modules/strdup (configure.ac): Likewise.
45910         * modules/strndup (configure.ac): Likewise.
45911         * modules/strnlen (configure.ac): Likewise.
45912         * modules/strpbrk (configure.ac): Likewise.
45913         * modules/strsep (configure.ac): Likewise.
45914         * modules/strstr (configure.ac): Likewise.
45915         * modules/strtok_r (configure.ac): Likewise.
45916
45917 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45918
45919         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45920
45921 2007-01-30  Jim Meyering  <jim@meyering.net>
45922
45923         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45924
45925 2007-01-29  Bruno Haible  <bruno@clisp.org>
45926
45927         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45928         * lib/execute.c: Likewise.
45929         * lib/pipe.c: Likewise.
45930         * lib/printf-args.h: Likewise.
45931         * lib/printf-args.c: Likewise.
45932         * lib/printf-parse.c: Likewise.
45933         * lib/vasnprintf.c: Likewise.
45934
45935 2007-01-29  Eric Blake  <ebb9@byu.net>
45936
45937         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45938         declaration.
45939
45940 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45941
45942         * lib/strptime.h (strptime): Use 'restrict' for args where
45943         POSIX requires this.
45944         * lib/strptime.c (strptime): Likewise.
45945         Change license notice from LGPL to GPL, since gnulib-tool will
45946         change this as needed.
45947         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45948         defined.
45949         Include "strptime.h" first, to check interface.
45950         Do not #undef _LIBC and _NL_CURRENT.
45951         Do not include <stdlib.h>; no longer needed.
45952         Include "time_r.h" and declare ptime_locale_status
45953         only if _LIBC is not defined.
45954         (__P): Remove unused macro.
45955         (match_string): Bring back glibc version, but use it only if _LIBC
45956         is defined.
45957         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45958         Remove unnecessary assertion and abort() call.
45959         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45960         * m4/strptime.m4: Fix serial number comment.
45961         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45962         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45963         (Depends-on): Add time_r.
45964
45965 2007-01-29  Bruno Haible  <bruno@clisp.org>
45966
45967         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45968         strptime.
45969         * modules/strptime (Depends-on): Add stdbool.
45970         * lib/strptime.h: Include <time.h> always. Add comments.
45971
45972 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45973
45974         * modules/strptime: New file.
45975         * lib/strptime.h: New file.
45976         * lib/strptime.c: New file.
45977         * m4/strptime.m4: New file.
45978
45979 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45980
45981         * MODULES.html.sh: New module mpsort.
45982         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45983
45984         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45985         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45987         All uses changed.
45988         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45989         All uses changed.
45990         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45991         to _Restrict_.
45992         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45993         the parameter matches the prototype.
45994
45995 2007-01-28  Jim Meyering  <jim@meyering.net>
45996
45997         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45998         sys/time.h here, reverting that part of the previous patch:
45999         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46000
46001 2007-01-28  Bruno Haible  <bruno@clisp.org>
46002
46003         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46004         value of $(SYS_TIME_H).
46005         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46006         remove it conditionally, too. [added by Jim Meyering]
46007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46008         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46009         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46010         GETTIMEOFDAY_REPLACEMENT to 1.
46011
46012 2007-01-28  Bruno Haible  <bruno@clisp.org>
46013
46014         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46015         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46017         Set UNISTD_H instead of UNISTD_H2.
46018         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46019
46020 2007-01-28  Bruno Haible  <bruno@clisp.org>
46021
46022         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46023         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46024
46025 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46026
46027         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46028         (func_create_testdir): Ensure C locale for `grep' and `tr'
46029         character ranges.
46030         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46031         ACLOCAL_AMFLAGS parsing state machine.
46032
46033 2007-01-27  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/unistr/base: Update.
46036
46037 2007-01-27  Bruno Haible  <bruno@clisp.org>
46038
46039         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46040         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46041         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46042         modules/unistr/u32-mbtouc.
46043         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46044         * lib/unistr.h: Update.
46045         * lib/linebreak.c: Update.
46046         * modules/unistr/u32-mbtouc: Renamed from
46047         modules/unistr/u32-mbtouc-safe.
46048         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46049         * lib/unistr.h: Update.
46050         * lib/unistr/u32-to-u8.c: Update.
46051         * lib/unistr/u32-to-u16.c: Update.
46052
46053 2007-01-27  Bruno Haible  <bruno@clisp.org>
46054
46055         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46056         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46057         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46058         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46059         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46060         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46061         modules/unistr/u16-mbtouc.
46062         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46063         * lib/unistr.h: Update.
46064         * lib/linebreak.c: Update.
46065         * modules/linebreak: Update.
46066         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46067         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46068         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46069         * modules/unistr/u16-mbtouc: Renamed from
46070         modules/unistr/u16-mbtouc-safe.
46071         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46072         * lib/unistr.h: Update.
46073         * lib/unistr/u16-to-u8.c: Update.
46074         * modules/unistr/u16-to-u8: Update.
46075         * lib/unistr/u16-to-u32.c: Update.
46076         * modules/unistr/u16-to-u32: Update.
46077
46078 2007-01-27  Bruno Haible  <bruno@clisp.org>
46079
46080         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46081         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46082         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46083         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46084         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46085         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46086         modules/unistr/u8-mbtouc.
46087         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46088         * lib/unistr.h: Update.
46089         * lib/striconveh.c: Update.
46090         * modules/striconveh: Update.
46091         * lib/linebreak.c: Update.
46092         * modules/linebreak: Update.
46093         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46094         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46095         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46096         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46097         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46098         * lib/unistr.h: Update.
46099         * lib/striconveh.c: Update.
46100         * modules/striconveh: Update.
46101         * lib/unistr/u8-to-u16.c: Update.
46102         * modules/unistr/u8-to-u16: Update.
46103         * lib/unistr/u8-to-u32.c: Update.
46104         * modules/unistr/u8-to-u32: Update.
46105
46106 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46107
46108         Sync from Libtool.
46109         * lib/argz.c: Do not include strings.h nor memory.h, include
46110         string.h unconditionally.  Patch by Simon Josefsson.
46111
46112 2007-01-27  Bruno Haible  <bruno@clisp.org>
46113
46114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46115         from gl_HEADER_STRING_H_BODY.
46116         (gl_HEADER_STRING_H_BODY): Require it.
46117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46118         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46119         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46120         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46121         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46122         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46125         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46128         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46129         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46130         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46131         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46132
46133 2007-01-27  Bruno Haible  <bruno@clisp.org>
46134
46135         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46136         check_PROGRAMS into noinst_PROGRAMS.
46137         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46138         check_PROGRAMS in this case.
46139         (func_import): Set for_test to false.
46140         (func_create_testdir): Set for_test to true.
46141
46142 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46143             Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46146         (Depends-on): Add string.
46147         (Includes): Use <string.h> instead of strcasestr.h.
46148         * modules/string (Makefile.am): Also substitute the value of
46149         REPLACE_STRCASESTR.
46150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46151         assume strcasestr is declared in <string.h> not <strings.h>. Also
46152         set REPLACE_STRCASESTR.
46153         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46154         REPLACE_STRCASESTR.
46155         * lib/strcasestr.h: Remove file.
46156         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46157         * lib/string_.h (strcasestr): New declaration.
46158
46159 2007-01-27  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/string_.h: Use 'extern'.
46162
46163 2007-01-27  Jim Meyering  <jim@meyering.net>
46164
46165         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46166         of set-but-not-used local, "q".
46167
46168         * lib/mempcpy.c: Include <config.h> before <string.h>.
46169         This fixes a compilation error on HP-UX, due to the system's
46170         "restrict"-using mempcpy prototype.
46171
46172 2007-01-26  Bruno Haible  <bruno@clisp.org>
46173
46174         Small optimization.
46175         * lib/javacomp.c: Include c-strstr.h.
46176          (is_envjavac_gcj): Use c_strstr instead of strstr.
46177         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46178
46179 2007-01-26  Bruno Haible  <bruno@clisp.org>
46180
46181         * MODULES.html.sh (Unicode string functions): Add the new modules.
46182
46183         * modules/uniconv/u32-strconv-to-locale: New file.
46184         * lib/uniconv/u32-strconv-to-locale.c: New file.
46185
46186         * modules/uniconv/u16-strconv-to-locale: New file.
46187         * lib/uniconv/u16-strconv-to-locale.c: New file.
46188
46189         * modules/uniconv/u8-strconv-to-locale: New file.
46190         * lib/uniconv/u8-strconv-to-locale.c: New file.
46191
46192         * modules/uniconv/u32-strconv-from-locale: New file.
46193         * lib/uniconv/u32-strconv-from-locale.c: New file.
46194
46195         * modules/uniconv/u16-strconv-from-locale: New file.
46196         * lib/uniconv/u16-strconv-from-locale.c: New file.
46197
46198         * modules/uniconv/u8-strconv-from-locale: New file.
46199         * lib/uniconv/u8-strconv-from-locale.c: New file.
46200
46201         * modules/uniconv/u32-strconv-to-enc: New file.
46202         * lib/uniconv/u32-strconv-to-enc.c: New file.
46203         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46204         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46205
46206         * modules/uniconv/u16-strconv-to-enc: New file.
46207         * lib/uniconv/u16-strconv-to-enc.c: New file.
46208         * lib/uniconv/u-strconv-to-enc.h: New file.
46209         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46210         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46211
46212         * modules/uniconv/u8-strconv-to-enc: New file.
46213         * lib/uniconv/u8-strconv-to-enc.c: New file.
46214         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46215         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46216
46217         * modules/uniconv/u32-strconv-from-enc: New file.
46218         * lib/uniconv/u32-strconv-from-enc.c: New file.
46219         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46220         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46221
46222         * modules/uniconv/u16-strconv-from-enc: New file.
46223         * lib/uniconv/u16-strconv-from-enc.c: New file.
46224         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46225         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46226
46227         * modules/uniconv/u8-strconv-from-enc: New file.
46228         * lib/uniconv/u8-strconv-from-enc.c: New file.
46229         * lib/uniconv/u-strconv-from-enc.h: New file.
46230         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46231         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46232
46233         * modules/uniconv/u32-conv-from-enc: New file.
46234         * lib/uniconv/u32-conv-from-enc.c: New file.
46235         * modules/uniconv/u32-conv-from-enc-tests: New file.
46236         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46237
46238         * modules/uniconv/u16-conv-from-enc: New file.
46239         * lib/uniconv/u16-conv-from-enc.c: New file.
46240         * lib/uniconv/u-conv-from-enc.h: New file.
46241         * modules/uniconv/u16-conv-from-enc-tests: New file.
46242         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46243
46244         * modules/uniconv/u8-conv-from-enc: New file.
46245         * lib/uniconv/u8-conv-from-enc.c: New file.
46246         * modules/uniconv/u8-conv-from-enc-tests: New file.
46247         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46248
46249         * modules/uniconv/base: New file.
46250         * lib/uniconv.h: New file.
46251
46252 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46253
46254         * doc/gnulib-tool.texi (Initial import): Update to match current
46255         behavior with strdup module.
46256         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46257         * lib/memmem.h: Remove; all uses removed.  This is now done
46258         by <string.h>.
46259         * lib/mempcpy.h: Likewise.
46260         * lib/memrchr.h: Likewise.
46261         * lib/stpcpy.h: Likewise.
46262         * lib/stpncpy.h: Likewise.
46263         * lib/strcase.h: Likewise.
46264         * lib/strchrnul.h: Likewise.
46265         * lib/strdup.h: Likewise.
46266         * lib/strndup.h: Likewise.
46267         * lib/strnlen.h: Likewise.
46268         * lib/strpbrk.h: Likewise.
46269         * lib/strsep.h: Likewise.
46270         * lib/strstr.h: Likewise.
46271         * lib/strtok_r.h: Likewise.
46272         * lib/string_.h: New file.
46273         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46274         Rely on <string.h> instead.
46275         * lib/canon-host.c: Likewise.
46276         * lib/chdir-long.c: Likewise.
46277         * lib/concatpath.c: Likewise.
46278         * lib/exclude.c: Likewise.
46279         * lib/fchdir.c: Likewise.
46280         * lib/getaddrinfo.c: Likewise.
46281         * lib/getcwd.c: Likewise.
46282         * lib/getsubopt.c: Likewise.
46283         * lib/glob.c: Likewise.
46284         * lib/hard-locale.c: Likewise.
46285         * lib/iconvme.c: Likewise.
46286         * lib/javacomp.c: Likewise.
46287         * lib/mempcpy.c: Likewise.
46288         * lib/memrchr.c: Likewise.
46289         * lib/regex_internal.h: Likewise.
46290         * lib/stpncpy.c: Likewise.
46291         * lib/strcasecmp.c: Likewise.
46292         * lib/strchrnul.c: Likewise.
46293         * lib/strdup.c: Likewise.
46294         * lib/striconv.c: Likewise.
46295         * lib/striconveh.c: Likewise.
46296         * lib/striconveha.c: Likewise.
46297         * lib/strncasecmp.c: Likewise.
46298         * lib/strndup.c: Likewise.
46299         * lib/strnlen.c: Likewise.
46300         * lib/strsep.c: Likewise.
46301         * lib/strstr.c: Likewise.
46302         * lib/strtok_r.c: Likewise.
46303         * lib/userspec.c: Likewise.
46304         * lib/w32spawn.h: Likewise.
46305         * lib/xstrndup.c: Likewise.
46306         * lib/mountlist.c (strstr): Remove decl.
46307         * m4/string_h.m4: New file.
46308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46309         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46310         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46311         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46312         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46313         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46314         Set REPLACE_STRCASECMP if necessary.
46315         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46316         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46317         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46319         HAVE_DECL_STRDUP if necessary.
46320         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46321         since gl_FUNC_STRNDUP does that now.
46322         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46323         Check for decl here...
46324         (gl_PREREQ_STRNLEN): ... not here.
46325         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46326         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46327         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46329         necessary.
46330         * modules/string: New file.
46331         * modules/memmem (Files): Remove special-purpose include file.
46332         (Depends-on): Add string.
46333         (Include): Include <string.h>, not the removed file.
46334         * modules/mempcpy: Likewise.
46335         * modules/memrchr: Likewise.
46336         * modules/stpcpy: Likewise.
46337         * modules/stpncpy: Likewise.
46338         * modules/strcase: Likewise.
46339         * modules/strchrnul: Likewise.
46340         * modules/strdup: Likewise.
46341         * modules/strndup: Likewise.
46342         * modules/strnlen: Likewise.
46343         * modules/strpbrk: Likewise.
46344         * modules/strsep: Likewise.
46345         * modules/strstr: Likewise.
46346         * modules/strtok_r: Likewise.
46347         * tests/test-dirname.c: Don't include "strdup.h", since
46348         <string.h> now suffices.
46349         * tests/test-memmem.c: Don't include "memmem.h", since
46350         <string.h> now suffices.
46351
46352 2007-01-25  Bruno Haible  <bruno@clisp.org>
46353
46354         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46355         *resultp is 0.
46356
46357         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46358         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46359         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46360         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46361
46362         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46363         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46364         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46365         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46366         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46367         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46368
46369 2007-01-24  Bruno Haible  <bruno@clisp.org>
46370
46371         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46373         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46374         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46375         gl_FUNC_FTS_CORE.
46376         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46377         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46378         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46379         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46380         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46381         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46382         gl_FUNC_FCHOWNAT.
46383         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46384         gl_FUNC_STRFTIME.
46385         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46386         Reported by Ralf Wildenhues.
46387
46388 2007-01-24  Bruno Haible  <bruno@clisp.org>
46389
46390         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46391         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46392         gl_GETADDRINFO.
46393         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46394         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46395         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46396
46397 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46400         Don't use 'exit'; just return from 'main'.
46401         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46402
46403         * lib/fnmatch_.h: Readjust white space and comments to match
46404         glibc, to avoid spurious diffs.
46405
46406 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46409         2004-12-01 change by Jakub Jelinek, since this code won't compile
46410         if !LIBC.  Problem reported by Bob Proulx.
46411
46412 2007-01-23  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/striconveh.c: Include c-strcaseeq.h.
46415         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46416         * modules/striconveh (Depends-on): Add c-strcaseeq.
46417
46418 2007-01-23  Bruno Haible  <bruno@clisp.org>
46419
46420         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46421
46422         * modules/c-strcaseeq: New file.
46423         * lib/c-strcaseeq.h: New file.
46424
46425         * modules/streq: New file.
46426         * lib/streq.h: New file.
46427
46428 2007-01-23  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/striconveha-tests: New file.
46431         * tests/test-striconveha.c: New file.
46432
46433         * lib/striconveha.h: Include <stdbool.h>.
46434         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46435         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46436         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46437         (mem_iconveha): New function.
46438         (str_iconveha_notranslit): Renamed from str_iconveha.
46439         (str_iconveha): New function.
46440         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46441         c-strcase.
46442
46443 2007-01-23  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46446         encodings without forgiving before trying any encoding with handler.
46447         (str_iconveha): Try all encodings without forgiving before trying any
46448         encoding with handler.
46449
46450 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46451
46452         Import the following changes from libc.
46453
46454         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46455
46456         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46457
46458         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46459
46460         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46461         normal_bracket label.
46462
46463         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46464
46465         [BZ #361]
46466         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46467         to normal_bracket after fetching the next character.
46468
46469 2007-01-22  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46472         argument.
46473         * lib/striconveh.c (iconv_carefully_1): New function.
46474         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46475         argument.
46476         (str_cd_iconveh): Update.
46477         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46478         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46479         * tests/test-striconveh.c (MAGIC): New macro.
46480         (new_offsets): New function.
46481         (main): Test call with and without offsets.
46482
46483 2007-01-22  Bruno Haible  <bruno@clisp.org>
46484
46485         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46486         * modules/sys_select (Makefile.am): Likewise.
46487         * modules/sys_socket (Makefile.am): Likewise.
46488         * modules/sys_time (Makefile.am): Likewise.
46489
46490 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46491
46492         * modules/gettimeofday (License): Change from GPL to LGPL, since
46493         gettimeofday is a library function.
46494
46495 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46496
46497         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46498
46499 2007-01-21  Bruno Haible  <bruno@clisp.org>
46500
46501         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46502
46503 2007-01-21  Bruno Haible  <bruno@clisp.org>
46504
46505         * modules/striconveha: New file.
46506         * lib/striconveha.h: New file.
46507         * lib/striconveha.c: New file.
46508         * MODULES.html.sh (Internationalization functions): Add striconveha.
46509         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46510         string.
46511         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46512
46513 2007-01-21  Bruno Haible  <bruno@clisp.org>
46514
46515         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46516         * lib/striconveh.c (str_iconveh): Likewise.
46517
46518 2007-01-21  Bruno Haible  <bruno@clisp.org>
46519
46520         * lib/striconveh.h (mem_iconveh): New declaration.
46521         * lib/striconveh.c (mem_iconveh): New function.
46522         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46523
46524 2007-01-21  Bruno Haible  <bruno@clisp.org>
46525
46526         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46527
46528         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46529         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46530         original result buffer.
46531         (str_cd_iconveh): Update.
46532         * tests/test-striconveh.c (main): Update.
46533
46534         * lib/striconv.h (mem_cd_iconv): Change specification.
46535         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46536         result buffer.
46537         (str_cd_iconv): Update.
46538         * tests/test-striconv.c (main): Update.
46539
46540 2007-01-21  Bruno Haible  <bruno@clisp.org>
46541
46542         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46543
46544 2007-01-20  Jim Meyering  <jim@meyering.net>
46545
46546         * lib/userspec.c (parse_with_separator): If a user or group string
46547         starts with "+", skip the corresponding name-to-ID look-up, since
46548         such a look-up must fail: user and group names may not include "+".
46549
46550 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46551
46552         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46553         since we now assume the sys_time module.
46554         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46555         check for sys/time.h; no longer needed.
46556         * modules/poll (Depends-on): Depend on sys_time.
46557
46558 2007-01-18  Bruno Haible  <bruno@clisp.org>
46559
46560         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46562
46563         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46564         gettimeofday.
46565
46566         * tests/test-gettimeofday.c: Include <time.h>.
46567         (dummy): Remove variable.
46568
46569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46570         gl_HEADER_SYS_TIME_H.
46571         (gl_HEADER_SYS_TIME_H): New macro.
46572
46573         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46574         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46575         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46576         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46577         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46578         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46579         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46580         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46581         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46582         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46583         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46584
46585         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46586         last change; it caused a compilation error when cross-compiling to
46587         Cygwin.
46588
46589 2007-01-18  Jim Meyering  <jim@meyering.net>
46590
46591         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46592         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46593         than the race-prone "test -d sys || mkdir sys".
46594         (configure.ac): Use AC_PROG_MKDIR_P.
46595         * modules/sys_select: Likewise.
46596         * modules/sys_socket: Likewise.
46597         * modules/sys_time: Likewise.
46598
46599 2007-01-18  Eric Blake  <ebb9@byu.net>
46600
46601         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46602         replace gettimeofday.
46603         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46604         name, to avoid infinite recursion.
46605
46606 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46607
46608         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46609         module sys_time.
46610         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46611         assume timespec.h defines struct timeval.
46612         * lib/settime.c: Likewise.
46613         * lib/utimens.c: Likewise.
46614         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46615         since we now assume the gettimeofday module.
46616         * lib/tempname.c (__gen_tempname): Likewise.
46617         * lib/gettimeofday.h: Remove.
46618         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46619         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46620         Include <time.h>, for 'time()'.
46621         (localtime_buffer_addr): Also use this workaround if
46622         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46623         to simplify the uses.  All uses changed.
46624         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46625         that #undef is inside {}, and 'const' follows type name consistently.
46626         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46627         (gettimeofday): Do not use the maximum possible value for
46628         tv->tv_usec, since that might break usages other than ls.c.
46629         Instead, we'll leave ls.c alone.  This undoes today's patch
46630         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46631         we've never observed the problem but might as well keep the
46632         canary.
46633         * lib/nanosleep.c: Include timespec.h first, for interface check.
46634         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46635         now assume the sys_time module.
46636         * lib/tempname.c: Likewise.
46637         * lib/timespec.h: Likewise.
46638         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46639         needed.
46640         * lib/strftime.c: Likewise.
46641         * lib/timespec.h: Likewise.
46642         * lib/posixtm.c: Include posixtm.h first, for interface check.
46643         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46644         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46645         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46646         * lib/sys_time_.h: New file.
46647         * lib/timespec.h (struct timespec): Use long int, not long.
46648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46649         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46650         Remove obsolescent call to AC_HEADER_TIME.
46651         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46653         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46654         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46655         Likewise.
46656         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46657         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46658         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46659         into the sys_time module.  Check for gettimeofday just once.
46660         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46661         for gettimeofday signature to just check the signature.  Merely
46662         compile it, since linking doesn't test signature.  Improve test for
46663         whether gettimeofday.o is actually needed.
46664         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46665         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46666         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46667         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46668         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46669         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46670         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46671         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46672         than worrying about sys/time.h.
46673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46674         Don't bother worrying about TIME_WITH_SYS_TIME.
46675         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46676         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46677         * m4/sys_time_h.m4: New file.
46678         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46679         Don't include sys/time.h.  Return from main rather than exiting.
46680         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46681         all uses changed.
46682         * modules/gethrxtime (Depends-on): Add sys_time.
46683         * modules/gettime (Depends-on): Likewise.
46684         * modules/gettimeofday (Depends-on): Likewise.
46685         * modules/nanosleep (Depends-on): Likewise.
46686         * modules/settime (Depends-on): Likewise.
46687         * modules/tempname (Depends-on): Likewise.
46688         * modules/utimens (Depends-on): Likewise.
46689         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46690         (Include:) Change back to <sys/time.h>.
46691         (Maintainer:) Add self.
46692         * modules/sys_time: New file.
46693         * modules/tempname (Depends-on): Add gettimeofday.
46694         * tests/test-gettimeofday.c: Include <sys/time.h>
46695         rather than gettimeofday.h.
46696
46697 2007-01-17  Bruno Haible  <bruno@clisp.org>
46698
46699         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46700         the license default to GPL.
46701         (func_create_testdir): Don't complain if a module is LGPL and its
46702         tests module depends on GPLed modules.
46703
46704 2007-01-17  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/gettimeofday.c (gettimeofday): Add code for the case
46707         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46708         maximum possible value for tv->tv_usec, rather than the minimum one.
46709
46710 2005-10-08  Martin Lambers  <marlam@marlam.de>
46711 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46712 2007-01-16  Bruno Haible  <bruno@clisp.org>
46713
46714         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46715         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46716         gl_FUNC_GETTIMEOFDAY.
46717         (Include): Add gettimeofday.h.
46718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46719         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46720         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46721         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46722         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46723         * lib/gettimeofday.h: New file.
46724         * lib/gettimeofday.c: Include <sys/timeb.h>.
46725         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46726         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46727         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46728         fall back on time().
46729
46730         * tests/test-gettimeofday.c: New file.
46731         * modules/gettimeofday-tests: New file.
46732
46733 2007-01-16  Eric Blake  <ebb9@byu.net>
46734
46735         * modules/fnmatch (Depends-on): Depend on wchar.
46736         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46737         * m4/fnmatch.m4: Likewise.
46738         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46739         * m4/mbchar.m4: Likewise.
46740         * modules/mbswidth (Depends-on): Depend on wchar.
46741         * lib/mbswidth.c: Assume <wchar.h>.
46742         * m4/mbswidth.m4: Likewise.
46743         * modules/quotearg (Depends-on): Depend on wchar.
46744         * lib/quotearg.c: Assume <wchar.h>.
46745         * m4/quotearg.m4: Likewise.
46746         * modules/regex (Depends-on): Depend on wchar.
46747         * lib/regex_internal.h: Assume <wchar.h>.
46748         * m4/regex.m4: Likewise.
46749         * modules/stdint (Depends-on): Depend on wchar.
46750         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46751         * m4/stdint.m4: Likewise.
46752         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46753         * modules/strftime (Depends-on): Depend on wchar.
46754         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46755         * modules/strtol (Depends-on): Depend on wchar.
46756         * lib/strtol.c: Assume <wchar.h>.
46757         * modules/wcwidth (Depends-on): Depend on wchar.
46758         * lib/wcwidth.h: Assume <wchar.h>.
46759         * m4/wcwidth.m4: Likewise.
46760
46761 2007-01-16  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/csharpexec-script: New, created from...
46764         * modules/csharpexec: ... this.
46765
46766 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46767
46768         * modules/javaexec-script: New, created from...
46769         * modules/javaexec: ... this.
46770
46771 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46772
46773         * modules/poll (Dependencies): Add sys_select.
46774
46775 2007-01-15  Jim Meyering  <jim@meyering.net>
46776
46777         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46778         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46779         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46780         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46781
46782 2007-01-15  Bruno Haible  <bruno@clisp.org>
46783
46784         * modules/striconveh: New file.
46785         * lib/striconveh.h: New file.
46786         * lib/striconveh.c: New file.
46787         * MODULES.html.sh (Internationalization functions): Add striconveh.
46788
46789         * modules/striconveh-tests: New file.
46790         * tests/test-striconveh.c: New file.
46791
46792 2007-01-15  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46795         not from GNU libiconv or GNU libc.
46796
46797 2007-01-15  Bruno Haible  <bruno@clisp.org>
46798
46799         * doc/gnulib-intro.texi (Copyright): Explain the different license
46800         terms for module descriptions, autoconf macros, tests, documentation.
46801
46802 2007-01-14  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/striconv-tests: New file.
46805         * tests/test-striconv.c: New file.
46806
46807 2007-01-14  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/iconv-tests: New file.
46810         * tests/test-iconv.c: New file.
46811
46812 2007-01-14  Bruno Haible  <bruno@clisp.org>
46813
46814         * gnulib-tool (func_get_license): For test modules, use the license of
46815         the main module.
46816
46817 2007-01-14  Bruno Haible  <bruno@clisp.org>
46818
46819         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46820         if iconv is found to exist.
46821
46822 2007-01-14  Bruno Haible  <bruno@clisp.org>
46823
46824         * modules/c-ctype-tests: New file.
46825         * tests/test-c-ctype.c: New file.
46826
46827 2007-01-14  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/binary-io-tests: New file.
46830         * tests/test-binary-io.sh: New file.
46831         * tests/test-binary-io.c: New file.
46832
46833 2007-01-14  Bruno Haible  <bruno@clisp.org>
46834
46835         * modules/array-oset-tests: New file.
46836         * tests/test-array_oset.c: New file.
46837
46838 2007-01-14  Bruno Haible  <bruno@clisp.org>
46839
46840         * modules/array-list-tests: New file.
46841         * tests/test-array_list.c: New file.
46842
46843 2007-01-14  Bruno Haible  <bruno@clisp.org>
46844
46845         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46846         and make.
46847         Reported by Simon Josefsson in
46848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46849
46850 2007-01-14  Bruno Haible  <bruno@clisp.org>
46851
46852         * modules/allocsa-tests: New file.
46853         * tests/test-allocsa.c: New file.
46854
46855 2007-01-14  Bruno Haible  <bruno@clisp.org>
46856
46857         * modules/fchdir (Depends-on): Add absolute-header.
46858         * modules/unistd (Depends-on): Likewise.
46859
46860 2006-12-30  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/fchdir: New file.
46863         * modules/unistd (Files): Add lib/unistd_.h.
46864         (Makefile.am): Generate unistd.h from unistd_.h.
46865         * lib/fchdir.c: New file.
46866         * lib/dirent_.h: New file.
46867         * lib/unistd_.h: New file.
46868         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46869         * m4/fchdir.m4: New file.
46870         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46871         (gl_HEADER_UNISTD): Invoke it.
46872         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46873         function.
46874         * lib/backupfile.c (opendir, closedir): Undefine.
46875         * lib/chown.c (open, close): Undefine.
46876         * lib/clean-temp.c (open, close): Undefine.
46877         * lib/copy-file.c (open, close): Undefine.
46878         * lib/execute.c (open, close): Undefine.
46879         * lib/fsusage.c (open, close): Undefine.
46880         * lib/gc-gnulib.c (open, close): Undefine.
46881         * lib/getcwd.c (opendir, closedir): Undefine.
46882         * lib/glob.c (opendir, closedir): Undefine.
46883         * lib/javacomp.c (open, close): Undefine.
46884         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46885         * lib/openat-proc.c (open, close): Undefine.
46886         * lib/pagealign_alloc.c (open, close): Undefine.
46887         * lib/pipe.c (open, close): Undefine.
46888         * lib/progreloc.c (open, close): Undefine.
46889         * lib/savedir.c (opendir, closedir): Undefine.
46890         * lib/utime.c (open, close): Undefine.
46891         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46892
46893 2007-01-10  Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46896
46897 2007-01-12  Eric Blake  <ebb9@byu.net>
46898
46899         Provide a robust <wchar.h>.  Further simplifications are now
46900         possible in other modules, but not included here.
46901         * modules/wchar: New module.
46902         * m4/wchar.m4: New file.
46903         * lib/wchar_.h: Likewise.
46904         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46905         of the new module.
46906         * MODULES.html.sh (Extended multibyte and wide character utilities):
46907         New section.
46908
46909 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46910
46911         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46912         to a reasonable default for memory allocation.
46913         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46914         file system that reports garbage st_size values for symlinks.
46915         Problem reported by Liyang Hu.
46916
46917 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46918
46919         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46920         Emacs .#* auto-save files).
46921
46922 2007-01-11  Bruno Haible  <bruno@clisp.org>
46923
46924         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46925         directory.
46926
46927 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46928
46929         Use @...@ consistently in lib/wctype_.h.
46930         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46931         on it being set to 1 or 0.
46932         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46933         go back to AC_SUBSTing it.
46934         * modules/wctype (Makefile.am): Undo previous change.
46935
46936 2007-01-10  Eric Blake  <ebb9@byu.net>
46937
46938         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46939         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46940         * modules/wctype (Makefile.am): Likewise.
46941         Reported by Chris McGuire.
46942
46943 2007-01-10  Jim Meyering  <jim@meyering.net>
46944
46945         fts.c: a small readability/maintainability improvement
46946         * lib/fts.c (fts_read): Make this code slightly more readable and
46947         maintainable by hoisting the "sp->fts_cur = p" assignments to
46948         immediately follow the statements that set P.  Derived from
46949         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46950
46951 2007-01-10  Eric Blake  <ebb9@byu.net>
46952
46953         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46954         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46956         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46957         Reported by Chris McGuire.
46958
46959 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46960
46961         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46962         in sed script.
46963
46964 2007-01-09  Bruno Haible  <bruno@clisp.org>
46965
46966         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46967         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46968         variables.
46969         (func_module): Use them.
46970
46971 2007-01-09  Bruno Haible  <bruno@clisp.org>
46972
46973         * modules/unistr/base: New file.
46974         * lib/unistr.h: New file.
46975
46976         * modules/unistr/u8-to-u16: New file.
46977         * lib/unistr/u8-to-u16.c: New file.
46978
46979         * modules/unistr/u8-to-u32: New file.
46980         * lib/unistr/u8-to-u32.c: New file.
46981
46982         * modules/unistr/u16-to-u8: New file.
46983         * lib/unistr/u16-to-u8.c: New file.
46984
46985         * modules/unistr/u16-to-u32: New file.
46986         * lib/unistr/u16-to-u32.c: New file.
46987
46988         * modules/unistr/u32-to-u8: New file.
46989         * lib/unistr/u32-to-u8.c: New file.
46990
46991         * modules/unistr/u32-to-u16: New file.
46992         * lib/unistr/u32-to-u16.c: New file.
46993
46994         * modules/unistr/u8-check: New file.
46995         * modules/unistr/u16-check: New file.
46996         * modules/unistr/u32-check: New file.
46997         * lib/unistr/u8-check.c: New file.
46998         * lib/unistr/u16-check.c: New file.
46999         * lib/unistr/u32-check.c: New file.
47000
47001         * modules/unistr/u8-chr: New file.
47002         * modules/unistr/u16-chr: New file.
47003         * modules/unistr/u32-chr: New file.
47004         * lib/unistr/u8-chr.c: New file.
47005         * lib/unistr/u16-chr.c: New file.
47006         * lib/unistr/u32-chr.c: New file.
47007
47008         * modules/unistr/u8-cmp: New file.
47009         * modules/unistr/u16-cmp: New file.
47010         * modules/unistr/u32-cmp: New file.
47011         * lib/unistr/u8-cmp.c: New file.
47012         * lib/unistr/u16-cmp.c: New file.
47013         * lib/unistr/u32-cmp.c: New file.
47014
47015         * modules/unistr/u8-cpy: New file.
47016         * modules/unistr/u16-cpy: New file.
47017         * modules/unistr/u32-cpy: New file.
47018         * lib/unistr/u8-cpy.c: New file.
47019         * lib/unistr/u16-cpy.c: New file.
47020         * lib/unistr/u32-cpy.c: New file.
47021         * lib/unistr/u-cpy.h: New file.
47022
47023         * modules/unistr/u8-cpy-alloc: New file.
47024         * modules/unistr/u16-cpy-alloc: New file.
47025         * modules/unistr/u32-cpy-alloc: New file.
47026         * lib/unistr/u8-cpy-alloc.c: New file.
47027         * lib/unistr/u16-cpy-alloc.c: New file.
47028         * lib/unistr/u32-cpy-alloc.c: New file.
47029         * lib/unistr/u-cpy-alloc.h: New file.
47030
47031         * modules/unistr/u8-endswith: New file.
47032         * modules/unistr/u16-endswith: New file.
47033         * modules/unistr/u32-endswith: New file.
47034         * lib/unistr/u8-endswith.c: New file.
47035         * lib/unistr/u16-endswith.c: New file.
47036         * lib/unistr/u32-endswith.c: New file.
47037         * lib/unistr/u-endswith.h: New file.
47038
47039         * modules/unistr/u8-mblen: New file.
47040         * modules/unistr/u16-mblen: New file.
47041         * modules/unistr/u32-mblen: New file.
47042         * lib/unistr/u8-mblen.c: New file.
47043         * lib/unistr/u16-mblen.c: New file.
47044         * lib/unistr/u32-mblen.c: New file.
47045
47046         * modules/unistr/u8-mbtouc: New file.
47047         * modules/unistr/u16-mbtouc: New file.
47048         * modules/unistr/u32-mbtouc: New file.
47049         * lib/unistr/u8-mbtouc.c: New file.
47050         * lib/unistr/u16-mbtouc.c: New file.
47051         * lib/unistr/u32-mbtouc.c: New file.
47052
47053         * modules/unistr/u8-mbtouc-safe: New file.
47054         * modules/unistr/u16-mbtouc-safe: New file.
47055         * modules/unistr/u32-mbtouc-safe: New file.
47056         * lib/unistr/u8-mbtouc-safe.c: New file.
47057         * lib/unistr/u16-mbtouc-safe.c: New file.
47058         * lib/unistr/u32-mbtouc-safe.c: New file.
47059
47060         * modules/unistr/u8-move: New file.
47061         * modules/unistr/u16-move: New file.
47062         * modules/unistr/u32-move: New file.
47063         * lib/unistr/u8-move.c: New file.
47064         * lib/unistr/u16-move.c: New file.
47065         * lib/unistr/u32-move.c: New file.
47066         * lib/unistr/u-move.h: New file.
47067
47068         * modules/unistr/u8-next: New file.
47069         * modules/unistr/u16-next: New file.
47070         * modules/unistr/u32-next: New file.
47071         * lib/unistr/u8-next.c: New file.
47072         * lib/unistr/u16-next.c: New file.
47073         * lib/unistr/u32-next.c: New file.
47074
47075         * modules/unistr/u8-prev: New file.
47076         * modules/unistr/u16-prev: New file.
47077         * modules/unistr/u32-prev: New file.
47078         * lib/unistr/u8-prev.c: New file.
47079         * lib/unistr/u16-prev.c: New file.
47080         * lib/unistr/u32-prev.c: New file.
47081
47082         * modules/unistr/u8-set: New file.
47083         * modules/unistr/u16-set: New file.
47084         * modules/unistr/u32-set: New file.
47085         * lib/unistr/u8-set.c: New file.
47086         * lib/unistr/u16-set.c: New file.
47087         * lib/unistr/u32-set.c: New file.
47088         * lib/unistr/u-set.h: New file.
47089
47090         * modules/unistr/u8-startswith: New file.
47091         * modules/unistr/u16-startswith: New file.
47092         * modules/unistr/u32-startswith: New file.
47093         * lib/unistr/u8-startswith.c: New file.
47094         * lib/unistr/u16-startswith.c: New file.
47095         * lib/unistr/u32-startswith.c: New file.
47096         * lib/unistr/u-startswith.h: New file.
47097
47098         * modules/unistr/u8-stpcpy: New file.
47099         * modules/unistr/u16-stpcpy: New file.
47100         * modules/unistr/u32-stpcpy: New file.
47101         * lib/unistr/u8-stpcpy.c: New file.
47102         * lib/unistr/u16-stpcpy.c: New file.
47103         * lib/unistr/u32-stpcpy.c: New file.
47104         * lib/unistr/u-stpcpy.h: New file.
47105
47106         * modules/unistr/u8-stpncpy: New file.
47107         * modules/unistr/u16-stpncpy: New file.
47108         * modules/unistr/u32-stpncpy: New file.
47109         * lib/unistr/u8-stpncpy.c: New file.
47110         * lib/unistr/u16-stpncpy.c: New file.
47111         * lib/unistr/u32-stpncpy.c: New file.
47112         * lib/unistr/u-stpncpy.h: New file.
47113
47114         * modules/unistr/u8-strcat: New file.
47115         * modules/unistr/u16-strcat: New file.
47116         * modules/unistr/u32-strcat: New file.
47117         * lib/unistr/u8-strcat.c: New file.
47118         * lib/unistr/u16-strcat.c: New file.
47119         * lib/unistr/u32-strcat.c: New file.
47120         * lib/unistr/u-strcat.h: New file.
47121
47122         * modules/unistr/u8-strchr: New file.
47123         * modules/unistr/u16-strchr: New file.
47124         * modules/unistr/u32-strchr: New file.
47125         * lib/unistr/u8-strchr.c: New file.
47126         * lib/unistr/u16-strchr.c: New file.
47127         * lib/unistr/u32-strchr.c: New file.
47128
47129         * modules/unistr/u8-strcmp: New file.
47130         * modules/unistr/u16-strcmp: New file.
47131         * modules/unistr/u32-strcmp: New file.
47132         * lib/unistr/u8-strcmp.c: New file.
47133         * lib/unistr/u16-strcmp.c: New file.
47134         * lib/unistr/u32-strcmp.c: New file.
47135
47136         * modules/unistr/u8-strcpy: New file.
47137         * modules/unistr/u16-strcpy: New file.
47138         * modules/unistr/u32-strcpy: New file.
47139         * lib/unistr/u8-strcpy.c: New file.
47140         * lib/unistr/u16-strcpy.c: New file.
47141         * lib/unistr/u32-strcpy.c: New file.
47142         * lib/unistr/u-strcpy.h: New file.
47143
47144         * modules/unistr/u8-strcspn: New file.
47145         * modules/unistr/u16-strcspn: New file.
47146         * modules/unistr/u32-strcspn: New file.
47147         * lib/unistr/u8-strcspn.c: New file.
47148         * lib/unistr/u16-strcspn.c: New file.
47149         * lib/unistr/u32-strcspn.c: New file.
47150         * lib/unistr/u-strcspn.h: New file.
47151
47152         * modules/unistr/u8-strdup: New file.
47153         * modules/unistr/u16-strdup: New file.
47154         * modules/unistr/u32-strdup: New file.
47155         * lib/unistr/u8-strdup.c: New file.
47156         * lib/unistr/u16-strdup.c: New file.
47157         * lib/unistr/u32-strdup.c: New file.
47158         * lib/unistr/u-strdup.h: New file.
47159
47160         * modules/unistr/u8-strlen: New file.
47161         * modules/unistr/u16-strlen: New file.
47162         * modules/unistr/u32-strlen: New file.
47163         * lib/unistr/u8-strlen.c: New file.
47164         * lib/unistr/u16-strlen.c: New file.
47165         * lib/unistr/u32-strlen.c: New file.
47166         * lib/unistr/u-strlen.h: New file.
47167
47168         * modules/unistr/u8-strmblen: New file.
47169         * modules/unistr/u16-strmblen: New file.
47170         * modules/unistr/u32-strmblen: New file.
47171         * lib/unistr/u8-strmblen.c: New file.
47172         * lib/unistr/u16-strmblen.c: New file.
47173         * lib/unistr/u32-strmblen.c: New file.
47174
47175         * modules/unistr/u8-strmbtouc: New file.
47176         * modules/unistr/u16-strmbtouc: New file.
47177         * modules/unistr/u32-strmbtouc: New file.
47178         * lib/unistr/u8-strmbtouc.c: New file.
47179         * lib/unistr/u16-strmbtouc.c: New file.
47180         * lib/unistr/u32-strmbtouc.c: New file.
47181
47182         * modules/unistr/u8-strncat: New file.
47183         * modules/unistr/u16-strncat: New file.
47184         * modules/unistr/u32-strncat: New file.
47185         * lib/unistr/u8-strncat.c: New file.
47186         * lib/unistr/u16-strncat.c: New file.
47187         * lib/unistr/u32-strncat.c: New file.
47188         * lib/unistr/u-strncat.h: New file.
47189
47190         * modules/unistr/u8-strncmp: New file.
47191         * modules/unistr/u16-strncmp: New file.
47192         * modules/unistr/u32-strncmp: New file.
47193         * lib/unistr/u8-strncmp.c: New file.
47194         * lib/unistr/u16-strncmp.c: New file.
47195         * lib/unistr/u32-strncmp.c: New file.
47196
47197         * modules/unistr/u8-strncpy: New file.
47198         * modules/unistr/u16-strncpy: New file.
47199         * modules/unistr/u32-strncpy: New file.
47200         * lib/unistr/u8-strncpy.c: New file.
47201         * lib/unistr/u16-strncpy.c: New file.
47202         * lib/unistr/u32-strncpy.c: New file.
47203         * lib/unistr/u-strncpy.h: New file.
47204
47205         * modules/unistr/u8-strnlen: New file.
47206         * modules/unistr/u16-strnlen: New file.
47207         * modules/unistr/u32-strnlen: New file.
47208         * lib/unistr/u8-strnlen.c: New file.
47209         * lib/unistr/u16-strnlen.c: New file.
47210         * lib/unistr/u32-strnlen.c: New file.
47211         * lib/unistr/u-strnlen.h: New file.
47212
47213         * modules/unistr/u8-strpbrk: New file.
47214         * modules/unistr/u16-strpbrk: New file.
47215         * modules/unistr/u32-strpbrk: New file.
47216         * lib/unistr/u8-strpbrk.c: New file.
47217         * lib/unistr/u16-strpbrk.c: New file.
47218         * lib/unistr/u32-strpbrk.c: New file.
47219         * lib/unistr/u-strpbrk.h: New file.
47220
47221         * modules/unistr/u8-strrchr: New file.
47222         * modules/unistr/u16-strrchr: New file.
47223         * modules/unistr/u32-strrchr: New file.
47224         * lib/unistr/u8-strrchr.c: New file.
47225         * lib/unistr/u16-strrchr.c: New file.
47226         * lib/unistr/u32-strrchr.c: New file.
47227
47228         * modules/unistr/u8-strspn: New file.
47229         * modules/unistr/u16-strspn: New file.
47230         * modules/unistr/u32-strspn: New file.
47231         * lib/unistr/u8-strspn.c: New file.
47232         * lib/unistr/u16-strspn.c: New file.
47233         * lib/unistr/u32-strspn.c: New file.
47234         * lib/unistr/u-strspn.h: New file.
47235
47236         * modules/unistr/u8-strstr: New file.
47237         * modules/unistr/u16-strstr: New file.
47238         * modules/unistr/u32-strstr: New file.
47239         * lib/unistr/u8-strstr.c: New file.
47240         * lib/unistr/u16-strstr.c: New file.
47241         * lib/unistr/u32-strstr.c: New file.
47242         * lib/unistr/u-strstr.h: New file.
47243
47244         * modules/unistr/u8-strtok: New file.
47245         * modules/unistr/u16-strtok: New file.
47246         * modules/unistr/u32-strtok: New file.
47247         * lib/unistr/u8-strtok.c: New file.
47248         * lib/unistr/u16-strtok.c: New file.
47249         * lib/unistr/u32-strtok.c: New file.
47250         * lib/unistr/u-strtok.h: New file.
47251
47252         * modules/unistr/u8-uctomb: New file.
47253         * modules/unistr/u16-uctomb: New file.
47254         * modules/unistr/u32-uctomb: New file.
47255         * lib/unistr/u8-uctomb.c: New file.
47256         * lib/unistr/u16-uctomb.c: New file.
47257         * lib/unistr/u32-uctomb.c: New file.
47258
47259         * MODULES.html.sh (Unicode string functions): Add the new modules.
47260
47261 2007-01-08  Bruno Haible  <bruno@clisp.org>
47262
47263         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47264         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47265         subdirectories.
47266
47267 2007-01-08  Karl Berry  <karl@gnu.org>
47268
47269         * doc/error.texi: mention that main() fns must set program_name
47270         when progname is used.
47271
47272 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47273
47274         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47275         WCTYPE_H is empty, for the benefit of builds from non-distclean
47276         directories.  Problem reported by Eric Blake in
47277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47278
47279 2007-01-08  Bruno Haible  <bruno@clisp.org>
47280
47281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47282         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47283         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47284         PROVIDE_CANONICALIZE_FILENAME_MODE.
47285         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47286
47287 2007-01-08  Bruno Haible  <bruno@clisp.org>
47288
47289         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47290         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47291         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47292         * lib/fts.c: Likewise.
47293         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47294
47295 2006-12-25  Bruno Haible  <bruno@clisp.org>
47296
47297         * modules/utf8-ucs4-safe: New file.
47298         * lib/utf8-ucs4-safe.h: New file.
47299         * lib/unistr/utf8-ucs4-safe.c: New file.
47300
47301         * modules/utf16-ucs4-safe: New file.
47302         * lib/utf16-ucs4-safe.h: New file.
47303         * lib/unistr/utf16-ucs4-safe.c: New file.
47304
47305         * MODULES.html.sh (Unicode string functions): Add the new modules.
47306
47307 2007-01-08  Bruno Haible  <bruno@clisp.org>
47308
47309         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47310         (Depends-on): Add unitypes.
47311         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47312         (u8_mbtouc_aux): Move out to separate file.
47313         (u8_mbtouc): Use ucs4_t, uint8_t types.
47314         * lib/unistr/utf8-ucs4.c: New file.
47315
47316         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47317         (Depends-on): Add unitypes.
47318         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47319         (u16_mbtouc_aux): Move out to separate file.
47320         (u16_mbtouc): Use ucs4_t, uint16_t types.
47321         * lib/unistr/utf16-ucs4.c: New file.
47322
47323         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47324         (Depends-on): Add unitypes.
47325         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47326         (u8_uctomb_aux): Move out to separate file.
47327         (u8_uctomb): Use ucs4_t, uint8_t types.
47328         * lib/unistr/ucs4-utf8.c: New file.
47329
47330         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47331         (Depends-on): Add unitypes.
47332         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47333         (u16_uctomb_aux): Move out to separate file.
47334         (u16_uctomb): Use ucs4_t, uint16_t types.
47335         * lib/unistr/ucs4-utf16.c: New file.
47336
47337 2006-12-25  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/unitypes: New file.
47340         * lib/unitypes.h: New file.
47341         * MODULES.html.sh (func_all_modules): New section "Unicode string
47342         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47343         this section. Add unitypes.
47344
47345 2007-01-08  Bruno Haible  <bruno@clisp.org>
47346
47347         Avoid variable names that conflict with those from libtool.
47348         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47349         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47350         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47351         library_names_spec to acl_library_names_spec, hardcode_* to
47352         acl_hardcode_*.
47353         Reported by Ralf Wildenhues.
47354
47355 2007-01-08  Bruno Haible  <bruno@clisp.org>
47356
47357         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47358         definition.
47359         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47360         definition.
47361         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47362         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47363         definition.
47364         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47365         definition.
47366         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47367         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47368         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47369         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47370         definition.
47371         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47372         definition.
47373         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47374         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47375         GC_USE_<algorithm>.
47376         * lib/gc-libgcrypt.c: Likewise.
47377         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47378         * modules/gc-arctwo (configure.ac): Likewise.
47379         * modules/gc-des (configure.ac): Likewise.
47380         * modules/gc-hmac-md5 (configure.ac): Likewise.
47381         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47382         * modules/gc-md2 (configure.ac): Likewise.
47383         * modules/gc-md4 (configure.ac): Likewise.
47384         * modules/gc-md5 (configure.ac): Likewise.
47385         * modules/gc-random (configure.ac): Likewise.
47386         * modules/gc-rijndael (configure.ac): Likewise.
47387         * modules/gc-sha1 (configure.ac): Likewise.
47388
47389 2007-01-08  Bruno Haible  <bruno@clisp.org>
47390
47391         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47392         macro definition.
47393         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47394         definition.
47395         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47396         definition.
47397         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47398         * modules/fcntl-safer (configure.ac): Likewise.
47399         * modules/fopen-safer (configure.ac): Likewise.
47400         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47401         GNULIB_FWRITEERROR macro definition.
47402
47403 2007-01-08  Bruno Haible  <bruno@clisp.org>
47404
47405         * m4/gnulib-common.m4: New file.
47406         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47407         (func_get_filelist): Add m4/gnulib-common.m4.
47408
47409 2007-01-08  Bruno Haible  <bruno@clisp.org>
47410
47411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47412         command.
47413
47414 2007-01-08  Jim Meyering  <jim@meyering.net>
47415
47416         Use a more robust test for a "can't happen" condition.
47417         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47418         narrowed the st_size value.  Presuming the "can't happen" condition
47419         is true, that narrowing could conceivably convert an invalid st_size
47420         value into a valid one.  Instead, use a change based on Matthew
47421         Woehlke's original patch.
47422
47423         Slight readability improvement: use an assert-like macro
47424         in place of literal "abort ()" uses.
47425         * lib/fts.c (fts_assert): Define.
47426         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47427         Use this macro instead of a bare 'abort'.
47428
47429 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47430
47431         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47432         simply work around them.
47433         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47434         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47435         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47436         declaring.
47437         Don't bother to define as macros, since the standard doesn't require it.
47438         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47439         longer worry about IRIX 5.3.
47440         (HAVE_WCTYPE_CTMP_BUG): Remove.
47441
47442 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47443
47444         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47445         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47446         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47447         Problems reported by Georg Schwarz for IRIX 5.3.
47448
47449         * gnulib-tool (autoconf_minversion): Take the maximum version number
47450         found, not the minimum.  Problem reported by James Youngman.
47451
47452 2007-01-03  Karl Berry  <karl@gnu.org>
47453
47454         * doc/error.texi: new file, explaining interaction with progname.
47455         * doc/gnulib.texi: include it.  Update copyright.
47456
47457 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47458
47459         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47460         AC_CANONICAL_HOST, to improve autobuild outputs.
47461
47462 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47463             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47464
47465         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47466         sockets, server sockets, and other file descriptors.  Count errors
47467         to compute the return value.  Reorder the code a bit to be easier
47468         to follow.  Don't set event bits that were not requested (except
47469         POLLERR and POLLHUP).
47470
47471 2007-01-01  Bruno Haible  <bruno@clisp.org>
47472
47473         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47474
47475 2007-01-03  Jim Meyering  <jim@meyering.net>
47476
47477         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47478
47479 2007-01-02  Bruno Haible  <bruno@clisp.org>
47480
47481         * modules/settime (Include): Require timespec.h.
47482         * modules/nanosleep (Include): Likewise.
47483
47484 2007-01-01  Bruno Haible  <bruno@clisp.org>
47485
47486         * gnulib-tool (func_emit_copyright_notice): Bump year.
47487         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47488
47489 2007-01-01  Bruno Haible  <bruno@clisp.org>
47490
47491         Improve support for OpenBSD.
47492         * build-aux/config.rpath (libname_spec): Export.
47493         (library_names_spec): New variable. Export.
47494         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47495         library_names_spec from the config.rpath output. Locate shared library
47496         through the name pattern in library_names_spec.
47497
47498 2007-01-01  Eric Blake  <ebb9@byu.net>
47499
47500         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47501
47502 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47503
47504         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47505         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47506         assume the C locale, and avoid an "eval" that could cause trouble.
47507         Problem with SORT reported by Bob Proulx.
47508
47509         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47510         Define.  Trivial patch from Henning Nielsen Lund, originally
47511         sent to bug-grep@gnu.org today.
47512
47513 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47514
47515         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47516         struct stat.  Problem reported by Henning Nielsen Lund.
47517         * lib/acl.c: Include acl.h first, to check interface.  Don't
47518         bother to include sys/types.h and sys/stat.h again.
47519
47520 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47521
47522         Import the following change from libc; problem reported by
47523         Sven Verdoolaege.
47524
47525         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47526
47527         [BZ #1373]
47528         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47529
47530 2006-12-28  Jim Meyering  <jim@meyering.net>
47531
47532         * build-aux/announce-gen: Do not assume that the package
47533         builds any of tar.gz, tar.bz2, and .xdelta files.
47534         Suggestion from Simon Josefsson.
47535
47536 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47537
47538         * modules/announce-gen: New file.
47539
47540 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47543         handles its gotchas now.
47544         * lib/mbswidth.c: Likewise.
47545         * lib/wcwidth.h: Likewise.
47546         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47547         and iswcntrl; the wctype module does this stuff now.
47548         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47550         * modules/mbchar (Depends-on): Add wctype.
47551         * modules/mbswidth (Depends-on): Likewise.
47552         * modules/wcwidth (Depends-on): Likewise.
47553
47554 2006-12-27  Eric Blake  <ebb9@byu.net>
47555
47556         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47557         module uses more than what <wctype.h> is required to provide.
47558
47559 2006-12-26  Eric Blake  <ebb9@byu.net>
47560
47561         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47562
47563 2006-12-26  Eric Blake  <ebb9@byu.net>
47564
47565         * modules/absolute-header: New module.
47566         * modules/fcntl (Depends-on): Depend on it.
47567         * modules/inttypes (Depends-on): Likewise.
47568         * modules/stdint (Depends-on): Likewise.
47569         * modules/sys_stat (Depends-on): Likewise.
47570         * modules/wctype (Depends-on): Likewise.
47571         * MODULES.html.sh (Support for building libraries and
47572         executables): Document it.
47573
47574 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47575
47576         * gnulib-tool (SED): Remove, undoing previous change.
47577         The problem was that it broke coreutils on Solaris, because
47578         "sed --posix" leaked into a makefile.
47579         (sed): New alias, if 'alias' and GNU sed.
47580
47581 2006-12-24  Jim Meyering  <jim@meyering.net>
47582
47583         Work around an fchownat bug in glibc-2.4:
47584         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47585         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47586         in spite of the -P option.
47587         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47588         New macros.
47589         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47590         * modules/openat (Files): Add lib/fchownat.c.
47591         * lib/openat.c (fchownat): Don't define here.  Move to...
47592         * lib/fchownat.c: ...this new file.
47593
47594 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47595
47596         Fix bug reported by Bruno Haible in
47597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47598         where quotearg.c didn't compile on Mac OS X 10.2 because it
47599         lacks <wchar.h> and wint_t.
47600         * lib/wctype_.h (__wctype_wint_t): New type.
47601         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47602         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47603         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47604         Arg is now of type __wctype_wint_t, not wint_t.
47605         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47606         substitute HAVE_WINT_T.
47607         * modules/wctype (Files): Add m4/wint_t.m4.
47608         (wctype.h): Substitute HAVE_WINT_T.
47609
47610 2006-12-23  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47613
47614 2006-12-23  Bruno Haible  <bruno@clisp.org>
47615
47616         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47617         S_ISLNK.
47618         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47619         mingw.
47620
47621 2006-12-22  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/copy-file.c: Include acl.h.
47624         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47625         Close the file descriptors only after being done with copy_acl.
47626         * modules/copy-file (Depends-on): Add acl.
47627
47628 2006-12-22  Bruno Haible  <bruno@clisp.org>
47629
47630         * gnulib-tool (SED): New variable.
47631         Use $SED instead of sed everywhere.
47632
47633 2006-12-22  Bruno Haible  <bruno@clisp.org>
47634
47635         * modules/no-c++: New file.
47636         * m4/no-c++.m4: New file.
47637         * MODULES.html.sh (Support for building libraries and executables):
47638         Add no-c++.
47639
47640 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47643         Include <limits.h>, and use its INT_MAX to rewrite the
47644         j loop so that it does not overflow 'int'.  Problem reported by
47645         Ralf Wildenhues in
47646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47647         Play it safe by shifting left by 1 rather than multiplying by 2,
47648         as GCC is less likely to optimize this away when the value
47649         is signed (when it assumes overflow leads to undefined behavior).
47650         Also, don't assume time_t uses two's complement.
47651
47652 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47653
47654         * MODULES.html.sh: New module wctype.
47655         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47656         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47657         <wctype.h>, since the new wctype module should fix this.
47658         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47659         the wctype module should arrange for it.
47660         * lib/regex_internal.h: Likewise.
47661         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47662         since the wctype module should handle this now.
47663         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47664         * modules/fnmatch (Depends-on): Add wctype.
47665         * modules/quotearg (Depends-on): Likewise.
47666         * modules/regex (Depends-on): Likewise.
47667
47668 2006-12-19  Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47671         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47672
47673 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47674
47675         * modules/savewd (Depends-on): Fix dependency on fcntl.
47676
47677 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47678
47679         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47680         conforms to C99, rather than relying on the user's environment
47681         setting of STDINT_H.
47682
47683 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47684         and Eric Blake  <ebb9@byu.net>
47685
47686         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47687         This is more consistent with the other defines here.
47688         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47689         Port to z/OS.  Problem reported by Paul Gilmartin.
47690         Change local vars to use gl_ prefix rather than ac_.
47691         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47692         with other defines.
47693         * modules/double-slash-root: New module.
47694         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47695         (Depends-on): Add double-slash-root.
47696         * MODULES.html.sh (File system functions): Mention new module.
47697
47698 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47701         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47702         This is for the benefit of gzip, which doesn't do i18n.
47703
47704 2006-12-12  Jim Meyering  <jim@meyering.net>
47705
47706         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47707         Reported by Andreas Schwab <schwab@suse.de>.
47708
47709 2006-12-12  Bruno Haible  <bruno@clisp.org>
47710
47711         Merge these changes.
47712         2006-09-05  Bruno Haible  <bruno@clisp.org>
47713         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47714         iconv_alloc succeeded.
47715         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47716         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47717         test for " && dest " at the end - dest is always != NULL there. Call
47718         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47719         with 2xNULL arguments, also to flush the state storage. Handle the
47720         IRIX iconv behaviour. Realloc the final result, to throw away unused
47721         memory.
47722
47723 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47724
47725         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47726         and fchmodat unconditionally, since glibc 2.4 has them.
47727         Problem reported by Arkadiusz Miskiewicz.
47728
47729 2006-12-10  Bruno Haible  <bruno@clisp.org>
47730
47731         * gnulib-tool (func_import): Show the include files only for those
47732         modules that are copied and specified.
47733         Reported by Karl Berry.
47734
47735 2006-12-08  Jim Meyering  <jim@meyering.net>
47736
47737         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47738         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47739
47740         * build-aux/announce-gen: Add two new options, both optional:
47741         --bootstrap-tools=TOOL_LIST
47742               a comma-separated list of tools, e.g.,
47743               autoconf,automake,bison,gnulib
47744         --gnulib-snapshot-date=DATE
47745               if gnulib is in the bootstrap tool list,
47746               then report this as the snapshot date.
47747               If not specified, use the current date/time.
47748               If you specify a date here, be sure it's UTC.
47749
47750 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47751
47752         * tests/test-argp-2.sh: Fix test to match actual output.
47753         (func_compare): Fix sed script to be portable.
47754
47755 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47756
47757         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47758         workaround for this case.  It is not autoconfigured now; offhand
47759         it's hard to see how to autoconfigure it.
47760
47761 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47762
47763         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47764         a directory that is about to be chowned.  Such a directory's
47765         initial file permissions should permit the owner only and this
47766         should not be changed until after the chown, since the group and
47767         other bits would be incorrect if they granted permission before
47768         the chown.
47769
47770         Fix porting problem for iswctype reported by Georg Schwarz in:
47771         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47772         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47773         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47774         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47775         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47776
47777 2006-12-03  Jim Meyering  <jim@meyering.net>
47778
47779         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47780         p->fts_statp may not yet be defined.
47781         (fts_read): Instead, set it in the caller, once p->fts_statp is
47782         sure to be defined, and corresponds to a top-level directory.
47783         This bug made du -x fail.  Here's the coreutils test case:
47784         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47785         Reported by Mike Frysinger.
47786
47787 2006-12-01  Jim Meyering  <jim@meyering.net>
47788
47789         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47790         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47791         Reported by Simon Josefsson.
47792
47793 2006-11-30  Jim Meyering  <jim@meyering.net>
47794
47795         * m4/warning.m4: Use the all-permissive copyright notice
47796         recommended by RMS (rather than LGPL).
47797         * m4/vararrays.m4: Likewise.
47798         * m4/flexmember.m4: Likewise.
47799
47800 2006-11-29  Bruno Haible  <bruno@clisp.org>
47801
47802         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47803         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47804         using +=.
47805         Reported by Simon Josefsson <simon@josefsson.org>.
47806
47807 2006-11-28  James Youngman <jay@gnu.org>
47808
47809         * README: Advise users that they might find the bug-gnulib@gnu.org
47810         and autotools-announce@gnu.org mailing lists useful.
47811
47812 2006-11-28  Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/ptrdiff_max.m4: Remove file.
47815
47816 2006-11-21  Bruno Haible  <bruno@clisp.org>
47817
47818         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47819         _AC_COMPUTE_INT.
47820         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47821         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47822         _AC_COMPUTE_INT.
47823         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47824         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47825         _AC_COMPUTE_INT.
47826         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47827
47828 2006-11-28  Jim Meyering  <jim@meyering.net>
47829
47830         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47831         warning from "gcc -Wshadow" about shadowing the builtin.
47832
47833 2006-11-27  Bruno Haible  <bruno@clisp.org>
47834
47835         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47836         _AC_COMPUTE_INT.
47837         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47838
47839 2006-11-27  Bruno Haible  <bruno@clisp.org>
47840             Paul Eggert  <eggert@cs.ucla.edu>
47841
47842         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47843
47844 2006-11-26  Bruno Haible  <bruno@clisp.org>
47845
47846         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47847         noinst_LTLIBRARIES.
47848
47849 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47850             Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47853         if compiling with "gcc -ansi".
47854
47855 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         Fix some incompatibilities with gcc -ansi -pedantic.
47858         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47859         if compiling pedantically with GCC, unless it's C99 or later.
47860         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47861         it mishandles gcc -ansi -pedantic as well.
47862         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47863         if gcc -pedantic.
47864         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47865         initializers for struct if -pedantic, unless it's C99 or later.
47866
47867 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47868
47869         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47870         Don't close an fd more than once. Identical atimes indicate
47871         success, not failure.
47872
47873 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47874
47875         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47876
47877 2006-11-23  Jim Meyering  <jim@meyering.net>
47878
47879         * build-aux/announce-gen: New file.  From coreutils.
47880
47881 2006-11-22  Jim Meyering  <jim@meyering.net>
47882
47883         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47884         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47885         (fts_read): Use a temporary to narrow the overused st_size member
47886         before using it in a switch statement.  Reported by Matthew Woehlke.
47887
47888         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47889         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47890
47891 2006-11-20  Bruno Haible  <bruno@clisp.org>
47892
47893         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47894         changequote instead of pairs of brackets.
47895         Reported by Andreas Schwab <schwab@suse.de>.
47896
47897 2006-11-21  Jim Meyering  <jim@meyering.net>
47898
47899         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47900         so as to remain compatible with older compilers.
47901         Patch from Michael Deutschmann.
47902
47903 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47904
47905         * MODULES.html.sh (File system functions): Add openat.
47906
47907         * lib/openat.h (rpl_fstatat): New macro, if
47908         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47909         (fstatat): Define to rpl_fstatat under the same conditions,
47910         unless COMPILING_FSTATAT.
47911         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47912         seems to have the bug.
47913         * lib/fstatat.c: New file.
47914         * modules/openat (Files): Add it.
47915
47916 2006-11-20  Bruno Haible  <bruno@clisp.org>
47917
47918         * Makefile: New file.
47919
47920 2006-11-20  Jim Meyering  <jim@meyering.net>
47921
47922         The beginnings of syntax-related checks for gnulib.
47923         * lib/Makefile: New file.
47924         * lib/t-idcache: New script.  Ensure that the two halves of
47925         idcache.c stay in sync.
47926
47927         * lib/idcache.c: Adjust comments in user- and group- portions to
47928         be more accurate, and to be consistent with one another.
47929
47930 2006-11-20  Jim Meyering  <jim@meyering.net>
47931
47932         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47933         continue using the flexible array member (thus, this module performs
47934         half as many malloc calls), with the addition that...
47935         (getgroup, getuser): Consistently record a non-match via an empty
47936         "name" string, and map an empty string match to a NULL return value.
47937         * modules/idcache (Depends-on): Re-add flexmember.
47938
47939         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47940         (getuidbyname, getgroup, getgidbyname): Likewise.
47941
47942         Use cleaner syntax: NULL rather than 0.
47943         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47944
47945 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47948         It mishandled the case where the group was missing.
47949         Problem reported by Greg Schafer.
47950         * modules/idcache: Likewise.
47951
47952 2006-11-18  Jim Meyering  <jim@meyering.net>
47953
47954         * check-module (%exempt_header): Add exception for some
47955         conditionally-included headers.
47956
47957         * modules/i-ring (Depends-on): Add verify.
47958         (License): Change to LGPL.
47959
47960 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47963         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47964         and inttostr.h.  Use snprintf rather than uinttostr, so that
47965         LGPLed code doesn't depend on GPLed.
47966
47967 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * modules/inline (License): Change from GPL to LGPL.
47970
47971 2006-11-17  Jim Meyering  <jim@meyering.net>
47972
47973         * modules/d-type (License): Switch to LGPL.
47974
47975 2006-11-15  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47978
47979 2006-11-15  Eric Blake  <ebb9@byu.net>
47980
47981         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47982         the module dependency.
47983
47984 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47985             Bruno Haible  <bruno@clisp.org>
47986
47987         * gnulib-tool (func_create_testdir): Add license consistency check.
47988
47989 2006-11-15  Eric Blake  <ebb9@byu.net>
47990
47991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47992         random "(cached)" in configure output.
47993
47994 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47995
47996         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47997         test for conforming inttypes.h is both announced and cached.
47998
47999         * MODULES.html.sh (seen_modules, seen_files): New variables.
48000         (func_module): Rewrite to use a few less gnulib-tool and sed
48001         invocations.  Avoid a couple of quadratic algorithms for ...
48002         (missed_modules, missed_files): ... these, with ...
48003         (func_append, func_tmpdir): ... these new functions, from
48004         gnulib-tool.  Analogously, install traps for cleanup.
48005
48006         * tests/test-gc.c (main): Remove unused variables.
48007         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48008
48009 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48010
48011         * modules/inttostr (License): Change to LGPL.
48012
48013 2006-11-14  Eric Blake  <ebb9@byu.net>
48014
48015         * modules/tempname (License): Change to LGPL.
48016
48017 2006-11-14  Eric Blake  <ebb9@byu.net>
48018
48019         * doc/functions.texi (Function Portability): *printf functions on
48020         Cygwin now understand all POSIX size specifiers.
48021
48022 2006-11-14  Bruno Haible  <bruno@clisp.org>
48023
48024         * modules/c-ctype (License): Change to LGPL.
48025
48026 2006-11-12  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48029         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48030         for GNOME libraries, for which the include files are installed in
48031         subdirectories of $prefix/include.
48032
48033 2006-11-12  Bruno Haible  <bruno@clisp.org>
48034
48035         * m4/lib-link.m4: Require at least autoconf-2.54.
48036         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48037         name to underscores for the --with option.
48038
48039 2006-11-13  Bruno Haible  <bruno@clisp.org>
48040
48041         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48042         the tests directory.
48043         Reported by Ralf Wildenhues.
48044
48045 2006-11-13  Bruno Haible  <bruno@clisp.org>
48046
48047         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48048         (func_emit_initmacro_end): Undo the override here.
48049         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48050         Works around the famous automake error in coreutils.
48051
48052 2006-11-13  Eric Blake  <ebb9@byu.net>
48053
48054         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48055         element, not its node.
48056
48057 2006-11-12  Bruno Haible  <bruno@clisp.org>
48058
48059         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48060         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48061
48062 2006-11-12  Bruno Haible  <bruno@clisp.org>
48063
48064         * gnulib-tool: New option --local-symlink.
48065         (func_usage): Document it.
48066         (lsymbolic): New variable.
48067         (func_import, func_create_testdir): If --symlink was not specified,
48068         test whether --local-symlink was specified and the file comes from
48069         the local_gnulib_dir.
48070
48071 2006-11-12  Bruno Haible  <bruno@clisp.org>
48072
48073         * gnulib-tool (func_ln): New function.
48074         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48075
48076 2006-11-12  Bruno Haible  <bruno@clisp.org>
48077
48078         Finish support for source files in subdirectories.
48079         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48080         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48081         AUTOMAKE_OPTIONS.
48082         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48083
48084 2006-11-12  Bruno Haible  <bruno@clisp.org>
48085
48086         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48087         EXTRA_lib_SOURCES augmentation.
48088         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48089
48090 2006-11-12  Jim Meyering  <jim@meyering.net>
48091
48092         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48093         file descriptors.  This also averts a failure on systems with
48094         native openat support when a traversed directory lacks "x" access.
48095         * lib/fts_.h: Include "i-ring.h"
48096         (struct FTS) [fts_fd_ring]: New member.
48097         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48098         (FCHDIR): Add parentheses.
48099         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48100         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48101         When descending, rather than simply closing the previous
48102         fts_cwd_fd value, push that file descriptor onto the ring.
48103         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48104         (fts_open): Initialize the new fd_ring member.
48105         (fts_close): Clear the ring.
48106         (fts_safe_changedir): When possible, use our new fd_ring to skip
48107         the diropen and fstat and dev/ino comparison that would normally
48108         accompany a virtual `chdir ("..")'.
48109
48110         * modules/fts (Depends-on): Add i-ring.
48111         * modules/i-ring: New module.
48112         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48113         * m4/i-ring.m4: New file.
48114
48115 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48116
48117         * gnulib-tool (func_create_testdir): Fix replacement of
48118         `build-aux' in configure.ac.  Run autotools in gltests
48119         subdirectory.
48120         (func_create_testdir, func_create_megatestdir, test): There is
48121         no need for '--force' in most autotool invocations in a new
48122         tree.  Actually fail the whole test if any of the tools, or the
48123         configure or make stages fail.
48124
48125         Sync from Automake.
48126         * build-aux/gnupload: Revert last change.  Add pointer to upload
48127         instructions of the GNU Maintenance Instructions.
48128         Suggestion by Karl Berry.
48129
48130 2006-11-10  Jim Meyering  <jim@meyering.net>
48131
48132         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48133
48134 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48137         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48138         (bind_textdomain_codeset) [! ENABLE_NLS]:
48139         Evaluate all the arguments.  That way, callers get compatible behavior
48140         if the arguments have side effects.  Also, it avoids some GCC
48141         diagnostics in some cases; Joel E. Denny reported problems when Bison
48142         was configured with --enable-gcc-warnigs.
48143
48144 2006-11-10  Jim Meyering  <jim@meyering.net>
48145
48146         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48147         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48148         account.
48149
48150 2006-11-10  Jim Meyering  <jim@meyering.net>
48151
48152         * modules/inline: New file/module.
48153         * modules/xalloc (Files): Remove m4/inline.m4.
48154         (Depends-on): Add inline, instead.
48155         * modules/oset: Likewise.
48156         * modules/list: Likewise.
48157
48158 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48159
48160         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48161         Problem reported by Matthew Woehlke.
48162
48163 2006-11-09  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/tempname.c (gen_tempname): Remove variant that invokes
48166         __gen_tempname.
48167         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48168         __gen_tempname.
48169
48170 2006-11-08  Bruno Haible  <bruno@clisp.org>
48171
48172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48173         to 'yes' instead of 'cross-compiling'.
48174
48175 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48176
48177         * lib/quotearg.h (quotearg_free): New decl.
48178         * lib/quotearg.c (quotearg_free): New function.
48179         (slot0, nslots, slotvec0, slotvec):
48180         Now file-scope so that quotearg_free can get at them.
48181
48182 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48183
48184         Sync from Automake.
48185         * build-aux/gnupload: Add missing 'gnu' to example URL.
48186         Report by Karl Berry.
48187
48188 2006-11-08  Bruno Haible  <bruno@clisp.org>
48189
48190         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48191         Suggested by Paul Eggert.
48192
48193 2006-11-08  Jim Meyering  <jim@meyering.net>
48194
48195         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48196         It's already included if !_LIBC.
48197         (fts_safe_changedir): Add a comment.
48198
48199 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48200
48201         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48202         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48203         Matthew Woehlke.
48204
48205         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48206         definitions up, to avoid colliding with change below.
48207         (static_inline) [HAVE_INLINE]: New macro.
48208         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48209         Provide extern decls when !HAVE_INLINE.  Do not define unless
48210         static_inline is defined, either by us or by xmalloc.c.  Use
48211         static_inline rather than static inline.
48212         (XCALLOC): Optimize sizeof(T) = 1 case.
48213         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48214
48215 2006-11-07  Bruno Haible  <bruno@clisp.org>
48216
48217         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48218         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48219         AC_C_INLINE.
48220         * modules/xalloc (Files): Add m4/inline.m4.
48221
48222 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48223
48224         * README: Fix typo.
48225         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48226         (Miscellanous Notes): ...from this.
48227
48228 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48229
48230         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48231         Mention that offsetof should be used instead of sizeof.
48232         From Bruno Haible.
48233
48234 2006-11-07  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48237
48238 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48241         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48242         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48243         (gl_tree_add_before, gl_tree_add_after):
48244         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48245         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48246         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48247         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48248         (gl_linked_add_after, gl_linked_add_at): Likewise.
48249         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48250         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48251         (gl_tree_add_before, gl_tree_add_after): Likewise.
48252         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48253         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48254         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48255
48256 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48257
48258         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48259
48260 2006-11-06  Bruno Haible  <bruno@clisp.org>
48261
48262         * m4/inline.m4: New file.
48263         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48264         * modules/list (Files): Add m4/inline.m4.
48265         * modules/oset (Files): Likewise.
48266
48267 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * lib/idcache.c: Include <stddef.h>, for offsetof.
48270         (struct userid.name): Change from char * to a flexible array member.
48271         All uses changed.
48272         * modules/idcache (Depends-on): Add flexmember.
48273
48274         * MODULES.html.sh (Core language properties): New module flexmember.
48275         * modules/flexmember, m4/flexmember.m4: New files.
48276
48277         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48278         inline functions that are identical with the old xnmalloc_inline,
48279         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48280         that we can avoid some unnecessary integer multiplications and
48281         divisions in the common case where the element size is known at
48282         compile time.
48283         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48284         needed.
48285         (xnboundedmalloc): Remove.
48286         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48287         arguments, for consistency with rest of this header.
48288         (xcharalloc): Rewrite using XNMALLOC.
48289         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48290         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48291         versions have been moved to lib/xalloc.h and renamed to be the
48292         non-*_inline versions.
48293         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48294         and xnrealloc functions, since those functions are now inline and
48295         now call us.
48296         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48297         renaming described above.
48298         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48299         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48300         captures the dependency in AC_C_INLINE.
48301
48302         New module canonicalize-lgpl, proposed by Charles Wilson in
48303         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48304         with a few small changes afterwards.
48305         * MODULES.html.sh (File system functions): New module
48306         canonicalize-lgpl.
48307         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48308         and canonicalize_file_name.
48309         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48310         * modules/canonicalize-lgpl: New files.
48311
48312 2006-11-05  Bruno Haible  <bruno@clisp.org>
48313
48314         * gnulib-tool (func_import, func_create_testdir): Create directories
48315         also for files in subdirectories of lib/.
48316
48317 2006-11-05  Bruno Haible  <bruno@clisp.org>
48318
48319         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48320         ANSI C compliant.
48321
48322 2006-11-03  Bruno Haible  <bruno@clisp.org>
48323
48324         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48325         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48326         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48327         (xnboundedmalloc): New inline function.
48328         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48329         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48330         xmalloc.
48331         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48332         xmalloc.
48333         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48334         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48335         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48336         xmalloc.
48337         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48338         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48339         xmalloc.
48340         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48341         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48342         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48343         xmalloc.
48344         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48345         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48346         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48347         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48348         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48349         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48350         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48351
48352 2006-11-03  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/c-ctype.h [C++]: Define functions without name mangling.
48355         * lib/fwriteerror.h [C++]: Likewise.
48356         * lib/gcd.h [C++]: Likewise.
48357         * lib/linebreak.h [C++]: Likewise.
48358
48359 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48360
48361         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48362         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48363         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48364         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48365         Check for functions and headers just once.
48366         Check for declaration of canonicalize_file_name.
48367         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48368
48369 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48370
48371         * gnulib-tool (func_import): Fix typo in actioncmd.
48372
48373 2006-11-02  Bruno Haible  <bruno@clisp.org>
48374
48375         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48376         newline sequence in the Makefile.am snippet as a space, like "make"
48377         does.
48378         Reported by Roger Persson <perrog@gmail.com>.
48379
48380 2006-11-01  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48383         already declared in <string.h>.
48384         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48385
48386 2006-11-01  Bruno Haible  <bruno@clisp.org>
48387
48388         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48389         * lib/strcase.h: Include <string.h>.
48390         (strcasecmp): Define to rpl_strcasecmp here.
48391
48392 2006-11-01  Bruno Haible  <bruno@clisp.org>
48393
48394         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48395
48396 2006-11-01  Eric Blake  <ebb9@byu.net>
48397
48398         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48399
48400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48401
48402 2006-10-29  Bruno Haible  <bruno@clisp.org>
48403
48404         Make it compile in C++ mode.
48405         * lib/full-write.c (full_rw): Add a cast.
48406
48407 2006-11-01  Bruno Haible  <bruno@clisp.org>
48408
48409         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48410         be POSIX compliant.
48411         Reported by Roger Persson <perrog@gmail.com>.
48412
48413 2006-11-01  Eric Blake  <ebb9@byu.net>
48414
48415         * lib/getopt_.h: Fix comments.
48416
48417 2006-10-31  Eric Blake  <ebb9@byu.net>
48418
48419         * modules/tmpdir (Depends-on): Add sys_stat.
48420         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48421         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48422         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48423         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48424         tempname.
48425
48426 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48427
48428         Avoid some C++ diagnostics reported by Bruno Haible.
48429         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48430         xmalloc.
48431         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48432         (struct slotvec): Move to top level.
48433         (quotearg_n_options): Rewrite to avoid xmalloc.
48434         * lib/xalloc.h (xcharalloc): New function.
48435         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48436         [defined __cplusplus]: Add function template that provides result
48437         type propagation.  This part of the change is from Bruno Haible.
48438
48439 2006-10-29  Bruno Haible  <bruno@clisp.org>
48440
48441         Make it compile in C++ mode.
48442         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48443         * lib/strnlen1.c (strnlen1): Cast memchr result.
48444         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48445         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48446         (create_temp_dir): Rename local variable 'template'.
48447         (compile_csharp_using_sscli): Add cast.
48448         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48449         * lib/findprog.c (find_in_path): Likewise.
48450         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48451         * lib/wait-process.c (register_slave_subprocess): Likewise.
48452
48453 2006-10-22  Bruno Haible  <bruno@clisp.org>
48454
48455         * modules/tsearch: New file.
48456         * lib/tsearch.h: New file.
48457         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48458         * m4/tsearch.m4: New file.
48459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48460
48461 2006-10-29  Eric Blake  <ebb9@byu.net>
48462
48463         * lib/arcfour.c: Assume config.h.
48464         * lib/arctwo.c: Likewise.
48465         * lib/base64.c: Likewise.
48466         * lib/check-version.c: Likewise.
48467         * lib/crc.c: Likewise.
48468         * lib/des.c: Likewise.
48469         * lib/gc-gnulib.c: Likewise.
48470         * lib/gc-libgcrypt.c: Likewise.
48471         * lib/gc-pbkdf2-sha1.c: Likewise.
48472         * lib/getaddrinfo.c: Likewise.
48473         * lib/getdelim.c: Likewise.
48474         * lib/getline.c: Likewise.
48475         * lib/hmac-md5.c: Likewise.
48476         * lib/hmac-sha1.c: Likewise.
48477         * lib/iconvme.c: Likewise.
48478         * lib/md2.c: Likewise.
48479         * lib/md4.c: Likewise.
48480         * lib/memxor.c: Likewise.
48481         * lib/read-file.c: Likewise.
48482         * lib/readline.c: Likewise.
48483         * lib/rijndael-alg-fst.c: Likewise.
48484         * lib/rijndael-api-fst.c: Likewise.
48485         * lib/xgetdomainname.c: Likewise.
48486
48487 2006-10-28  Eric Blake  <ebb9@byu.net>
48488
48489         * lib/xstrndup.c: Assume config.h.
48490
48491 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48492
48493         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48494         stat-macros.h is now for our own macros, whereas stat_h is for
48495         macros in the <sys/stat.h> name space.
48496         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48497         (STAT_MACROS_H): Remove.
48498         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48499         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48500         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48501         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48502         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48503         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48504         Move these macros to ...
48505         * lib/stat_.h: here.  Don't include stat-macros.h.
48506         * lib/canonicalize.c: Don't include stat-macros.h.
48507         * lib/chown.c: Likewise.
48508         * lib/euidaccess.c: Likewise.
48509         * lib/file-type.c: Likewise.
48510         * lib/filemode.c: Likewise.
48511         * lib/glob.c: Likewise.
48512         * lib/isapipe.c: Likewise.
48513         * lib/lchown.c: Likewise.
48514         * lib/lstat.c: Likewise.
48515         * lib/mkdir-p.c: Likewise.
48516         * lib/rmdir.c: Likewise.
48517         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48519         unless mkdir isn't declared, to speed up 'configure'.
48520         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48521         would define all the S_* symbols.
48522         * modules/canonicalize (Depends-on):
48523         Depend on sys_stat, not stat-macros.
48524         * modules/chown: Likewise.
48525         * modules/euidaccess: Likewise.
48526         * modules/filemode: Likewise.
48527         * modules/file-type: Likewise.
48528         * modules/glob: Likewise.
48529         * modules/isapipe: Likewise.
48530         * modules/lchown: Likewise.
48531         * modules/lstat: Likewise.
48532         * modules/mkancesdirs: Likewise.
48533         * modules/rmdir: Likewise.
48534         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48535         * modules/modechange: Likewise.
48536         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48537         (configure.ac): Remove gl_STAT_MACROS.
48538         * modules/sys_stat (Depends-on): Remove stat-macros.
48539
48540 2006-10-27  Bruno Haible  <bruno@clisp.org>
48541
48542         * m4/signed.m4: Remove file.
48543         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48544         invocation.
48545         * modules/vasnprintf (Files): Remove m4/signed.m4.
48546
48547 2006-10-27  Bruno Haible  <bruno@clisp.org>
48548
48549         Update to GNU gettext 0.16.
48550         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48551         m4/inttypes-h.m4, m4/signed.m4.
48552         * m4/gettext.m4: Update to GNU gettext 0.16.
48553         * m4/intl.m4: New file, from GNU gettext.
48554         * m4/intldir.m4: New file, from GNU gettext.
48555         * config/srclist.txt: Update
48556
48557 2006-10-27  Eric Blake  <ebb9@byu.net>
48558
48559         * MODULES.html.sh: Document tempname.
48560         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48561         dependencies.
48562         (Files): Move lib/tempname.c...
48563         * modules/tempname: ...to this new module.
48564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48565         (gl_PREREQ_TEMPNAME): Move...
48566         * m4/tempname.m4: ...to this new file.
48567         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48568         * modules/sys_stat (Depends-on): Add stat-macros.
48569         * lib/stat_.h (includes): Pick up stat macros.
48570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48571         if stat macros are broken.
48572         * lib/tempname.c (includes): No need to include "stat-macros.h".
48573         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48574         (direxists, __path_search) [!_LIBC]: Don't compile these in
48575         gnulib; the tmpdir module covers that.
48576         * lib/tempname.h: New file.
48577
48578 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         * COPYING: Explain how gnulib-tool converts licence headers.
48581         Almost all wording by Eric Blake.
48582
48583 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48584
48585         * lib/mbchar.h (is_basic_table): Make read-only.
48586         * lib/mbchar.c (is_basic_table): Likewise.
48587         Reported by John Darrington.
48588
48589 2006-10-25  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/progname.h (set_program_name): Undefine before defining.
48592
48593 2006-10-25  Bruno Haible  <bruno@clisp.org>
48594
48595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48596         false for non-gcc C++ compilers.
48597         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48598
48599 2006-10-24  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48602         iconv implementations like Irix iconv.
48603
48604 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         * modules/vararrays: New file.
48607         * m4/vararrays.m4: New file, taken from diffutils.
48608         * MODULES.html.sh: New module vararrays.
48609
48610 2006-10-24  Karl Berry  <karl@gnu.org>
48611
48612         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48613         Don't call GNU Unix.
48614
48615 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48616
48617         * users.txt: Add Libtool.
48618
48619         Sync from Libtool:
48620
48621         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48624         to gnulib's policy of including config.h unconditionally.
48625
48626 2006-10-24  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/wcwidth (Files): Add m4/wint_t.m4.
48629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48630         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48631
48632 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48635         to pacify GCC with some -W flags enabled.  Problem reported by
48636         Bruno Haible.
48637
48638 2006-10-24  Jim Meyering  <jim@meyering.net>
48639
48640         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48641         Reported by Karl Berry.
48642
48643 2006-10-23  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48646
48647 2006-10-24  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/gl_list.h: Use C comment style, not C++ comment style.
48650
48651 2006-10-23  Eric Blake  <ebb9@byu.net>
48652
48653         * lib/getaddrinfo.c (includes): Add missing include.
48654
48655 2006-10-23  Bruno Haible  <bruno@clisp.org>
48656             Paul Eggert  <eggert@cs.ucla.edu>
48657
48658         Ability to rename obstack_free.
48659         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48660         obstack_free.
48661         (obstack_free): Invoke the __obstack_free macro.
48662         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48663
48664 2006-10-23  Bruno Haible  <bruno@clisp.org>
48665             Paul Eggert  <eggert@cs.ucla.edu>
48666
48667         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48668         __argc, __argv from the declaration. (They are defined as macros on
48669         mingw.)
48670
48671 2006-10-22  Bruno Haible  <bruno@clisp.org>
48672
48673         * doc/gnulib-intro.texi: New file.
48674         * doc/gnulib.texi: Include it.
48675
48676 2006-10-21  Bruno Haible  <bruno@clisp.org>
48677
48678         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48679         "Introduction", "Miscellanous Notes", "Particular Modules".
48680
48681 2006-10-21  Bruno Haible  <bruno@clisp.org>
48682
48683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48684         Change mostlyclean-local rule to avoid sh syntax error from bash
48685         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48686
48687 2006-10-23  Jim Meyering  <jim@meyering.net>
48688
48689         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48690         in place of snprintf.
48691
48692         * modules/inttostr (Files): Add lib/uinttostr.c.
48693         * lib/uinttostr.c (inttostr): New file/function.
48694         * lib/inttostr.h (uinttostr): Declare.
48695         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48696         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48697         Add uinttostr.
48698         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48699
48700 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48701
48702         * lib/canonicalize.c (ELOOP): Define if not already defined.
48703         Problem reported by Bruno Haible in
48704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48705
48706 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48707
48708         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48709         Problem reported by Perry Smith and Ville Laurikari.
48710
48711         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48712         uses.
48713
48714 2006-10-19  Bruno Haible  <bruno@clisp.org>
48715
48716         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48717         for mingw.
48718
48719 2006-10-19  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48722         Needed for mingw.
48723
48724 2006-10-19  Bruno Haible  <bruno@clisp.org>
48725
48726         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48727
48728 2006-10-19  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48731         it.
48732
48733 2006-10-19  Bruno Haible  <bruno@clisp.org>
48734
48735         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48736         invocation.
48737
48738 2006-10-19  Bruno Haible  <bruno@clisp.org>
48739
48740         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48741         mountlist by default.
48742
48743 2006-10-16  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/c-strstr.c: Include c-strstr.h.
48746
48747 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48748
48749         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48750         in a slash.
48751
48752 2006-10-18  Bruno Haible  <bruno@clisp.org>
48753
48754         * lib/lock.h [C++]: Wrap definitions in extern "C".
48755
48756 2006-10-18  Bruno Haible  <bruno@clisp.org>
48757
48758         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48759         gl_LIBOBJS list.
48760
48761 2006-10-18  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48764
48765 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48766
48767         * lib/xstrtol.h: Include gettext.h.
48768         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48769         Problem reported by Eric Blake.
48770         * modules/xstrtol (Depends-on): Add gettext-h.
48771
48772 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48773
48774         * lib/strftime.c (advance): New macro.
48775         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48776         incomplete type, so you can't add 0 to it.  Problem and patch
48777         reported by Eelco Dolstra for dietlibc.
48778
48779 2006-10-18  Jim Meyering  <jim@meyering.net>
48780
48781         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48782         type for a local, and rename it: s/up/user_proc/.
48783
48784 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48785
48786         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48787         READ_UTMP_USER_PROCESS.
48788         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48789
48790 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48791
48792         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48793         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48794
48795 2006-10-17  Eric Blake  <ebb9@byu.net>
48796
48797         * lib/sigprocmask.c (sigprocmask): Fix typo.
48798
48799         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48800
48801         * modules/clean-temp (Makefile.am): Don't add to make output...
48802         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48803         config.h.
48804
48805 2006-10-17  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48808         differently if DEFAULT_TEXT_DOMAIN is set.
48809
48810 2006-10-16  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/clean-temp.c: Include fwriteerror.h.
48813
48814 2006-10-16  Bruno Haible  <bruno@clisp.org>
48815
48816         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48817
48818 2006-10-16  Bruno Haible  <bruno@clisp.org>
48819
48820         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48821         * lib/sigprocmask.h: Include <sys/types.h>.
48822         (sigset_t): Use the system's definition if present.
48823
48824 2006-10-17  Eric Blake  <ebb9@byu.net>
48825
48826         * lib/xvasprintf.c (includes): Assume config.h.
48827         * lib/xasprintf.c (includes): Likewise.
48828
48829 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48830
48831         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48832         at least as wide as intmax_t.
48833
48834 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48835
48836         (Imported from Automake.)
48837         * build-aux/gnupload: Update to version 1.1 of directive file.
48838
48839 2006-10-16  Eric Blake  <ebb9@byu.net>
48840
48841         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48842         match Automake 1.10a.
48843
48844 2006-10-14  Bruno Haible  <bruno@clisp.org>
48845
48846         * modules/sigprocmask: New file.
48847         * lib/sigprocmask.h: New file.
48848         * lib/sigprocmask.c: New file.
48849         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48850         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48851         request sigprocmask.o.
48852         (gl_PREREQ_SIGPROCMASK): New macro.
48853         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48854         (Depends-on): Add sigprocmask.
48855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48856         gt_SIGNALBLOCKING. Test for 'raise' only once.
48857         * lib/fatal-signal.c: Include sigprocmask.h.
48858         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48859         unblock_fatal_signals): Define always.
48860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48861         sigprocmask.
48862
48863 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48864
48865         Sync from Automake.
48866         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48867         which incorrectly sets the mode of an existing destination
48868         directory.  In some cases the unpatched install-sh could do the
48869         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48870         system.  We hope this is rare in practice, but it's clearly worth
48871         fixing.  Problem reported by Alex Unleashed in
48872         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48873         Also, don't bother to check for -m bugs unless we're using -m;
48874         suggested by Stepan Kasal.
48875
48876 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48877
48878         Sync from Automake.
48879         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48880         `-c' flag, so they appear at the same position as in %FASTDEP%
48881         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48882         which ignores unknown options only after the first non-option.
48883         Bug report against M4 by Nelson H. F. Beebe.
48884
48885 2006-10-13  Jim Meyering  <jim@meyering.net>
48886
48887         Fix a bug in yesterday's change.
48888         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48889         p->fts_statp->st_dev would be used uninitialized.
48890         Ensures that we always call fts_stat on the very first entry.
48891         Miklos Szeredi reported that find -xdev stopped working.
48892
48893 2006-10-12  Bruno Haible  <bruno@clisp.org>
48894
48895         * gnulib-tool (func_get_automake_snippet): Append an automatically
48896         computed EXTRA_DIST augmentation.
48897         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48898         * modules/alloca-opt (Makefile.am): Likewise.
48899         * modules/allocsa (Makefile.am): Likewise.
48900         * modules/arcfour (Makefile.am): Likewise.
48901         * modules/arctwo (Makefile.am): Likewise.
48902         * modules/argmatch (Makefile.am): Likewise.
48903         * modules/argz (Makefile.am): Likewise.
48904         * modules/atexit (Makefile.am): Likewise.
48905         * modules/backupfile (Makefile.am): Likewise.
48906         * modules/byteswap (Makefile.am): Likewise.
48907         * modules/c-strtod (Makefile.am): Likewise.
48908         * modules/c-strtold (Makefile.am): Likewise.
48909         * modules/calloc (Makefile.am): Likewise.
48910         * modules/canon-host (Makefile.am): Likewise.
48911         * modules/canonicalize (Makefile.am): Likewise.
48912         * modules/chdir-long (Makefile.am): Likewise.
48913         * modules/chdir-safer (Makefile.am): Likewise.
48914         * modules/check-version (Makefile.am): Likewise.
48915         * modules/chown (Makefile.am): Likewise.
48916         * modules/cloexec (Makefile.am): Likewise.
48917         * modules/close-stream (Makefile.am): Likewise.
48918         * modules/closeout (Makefile.am): Likewise.
48919         * modules/crc (Makefile.am): Likewise.
48920         * modules/csharpexec (Makefile.am): Likewise.
48921         * modules/cycle-check (Makefile.am): Likewise.
48922         * modules/des (Makefile.am): Likewise.
48923         * modules/dev-ino (Makefile.am): Likewise.
48924         * modules/dirfd (Makefile.am): Likewise.
48925         * modules/dirname (Makefile.am): Likewise.
48926         * modules/dup2 (Makefile.am): Likewise.
48927         * modules/eealloc (Makefile.am): Likewise.
48928         * modules/error (Makefile.am): Likewise.
48929         * modules/euidaccess (Makefile.am): Likewise.
48930         * modules/exclude (Makefile.am): Likewise.
48931         * modules/exitfail (Makefile.am): Likewise.
48932         * modules/fcntl-safer (Makefile.am): Likewise.
48933         * modules/fcntl (Makefile.am): Likewise.
48934         * modules/file-type (Makefile.am): Likewise.
48935         * modules/fileblocks (Makefile.am): Likewise.
48936         * modules/filemode (Makefile.am): Likewise.
48937         * modules/filenamecat (Makefile.am): Likewise.
48938         * modules/fnmatch (Makefile.am): Likewise.
48939         * modules/fopen-safer (Makefile.am): Likewise.
48940         * modules/fpending (Makefile.am): Likewise.
48941         * modules/fprintftime (Makefile.am): Likewise.
48942         * modules/free (Makefile.am): Likewise.
48943         * modules/fsusage (Makefile.am): Likewise.
48944         * modules/ftruncate (Makefile.am): Likewise.
48945         * modules/fts (Makefile.am): Likewise.
48946         * modules/gc-arcfour (Makefile.am): Likewise.
48947         * modules/gc-des (Makefile.am): Likewise.
48948         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48949         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48950         * modules/gc-md4 (Makefile.am): Likewise.
48951         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48952         * modules/gc-sha1 (Makefile.am): Likewise.
48953         * modules/gc (Makefile.am): Likewise.
48954         * modules/getaddrinfo (Makefile.am): Likewise.
48955         * modules/getcwd (Makefile.am): Likewise.
48956         * modules/getdelim (Makefile.am): Likewise.
48957         * modules/getdomainname (Makefile.am): Likewise.
48958         * modules/getgroups (Makefile.am): Likewise.
48959         * modules/gethostname (Makefile.am): Likewise.
48960         * modules/gethrxtime (Makefile.am): Likewise.
48961         * modules/getline (Makefile.am): Likewise.
48962         * modules/getloadavg (Makefile.am): Likewise.
48963         * modules/getlogin_r (Makefile.am): Likewise.
48964         * modules/getndelim2 (Makefile.am): Likewise.
48965         * modules/getopt (Makefile.am): Likewise.
48966         * modules/getpagesize (Makefile.am): Likewise.
48967         * modules/getpass-gnu (Makefile.am): Likewise.
48968         * modules/getpass (Makefile.am): Likewise.
48969         * modules/getsubopt (Makefile.am): Likewise.
48970         * modules/gettime (Makefile.am): Likewise.
48971         * modules/gettimeofday (Makefile.am): Likewise.
48972         * modules/getugroups (Makefile.am): Likewise.
48973         * modules/getusershell (Makefile.am): Likewise.
48974         * modules/glob (Makefile.am): Likewise.
48975         * modules/group-member (Makefile.am): Likewise.
48976         * modules/hard-locale (Makefile.am): Likewise.
48977         * modules/hash (Makefile.am): Likewise.
48978         * modules/hmac-md5 (Makefile.am): Likewise.
48979         * modules/hmac-sha1 (Makefile.am): Likewise.
48980         * modules/human (Makefile.am): Likewise.
48981         * modules/idcache (Makefile.am): Likewise.
48982         * modules/imaxabs (Makefile.am): Likewise.
48983         * modules/imaxdiv (Makefile.am): Likewise.
48984         * modules/inet_ntop (Makefile.am): Likewise.
48985         * modules/inet_pton (Makefile.am): Likewise.
48986         * modules/intprops (Makefile.am): Likewise.
48987         * modules/inttostr (Makefile.am): Likewise.
48988         * modules/inttypes (Makefile.am): Likewise.
48989         * modules/isapipe (Makefile.am): Likewise.
48990         * modules/javaversion (Makefile.am): Likewise.
48991         * modules/lchmod (Makefile.am): Likewise.
48992         * modules/lchown (Makefile.am): Likewise.
48993         * modules/localcharset (Makefile.am): Likewise.
48994         * modules/long-options (Makefile.am): Likewise.
48995         * modules/lstat (Makefile.am): Likewise.
48996         * modules/malloc (Makefile.am): Likewise.
48997         * modules/mathl (Makefile.am): Likewise.
48998         * modules/mbchar (Makefile.am): Likewise.
48999         * modules/md2 (Makefile.am): Likewise.
49000         * modules/md4 (Makefile.am): Likewise.
49001         * modules/md5 (Makefile.am): Likewise.
49002         * modules/memcasecmp (Makefile.am): Likewise.
49003         * modules/memchr (Makefile.am): Likewise.
49004         * modules/memcmp (Makefile.am): Likewise.
49005         * modules/memcoll (Makefile.am): Likewise.
49006         * modules/memcpy (Makefile.am): Likewise.
49007         * modules/memmem (Makefile.am): Likewise.
49008         * modules/memmove (Makefile.am): Likewise.
49009         * modules/mempcpy (Makefile.am): Likewise.
49010         * modules/memrchr (Makefile.am): Likewise.
49011         * modules/memset (Makefile.am): Likewise.
49012         * modules/memxor (Makefile.am): Likewise.
49013         * modules/mkancesdirs (Makefile.am): Likewise.
49014         * modules/mkdir-p (Makefile.am): Likewise.
49015         * modules/mkdir (Makefile.am): Likewise.
49016         * modules/mkdtemp (Makefile.am): Likewise.
49017         * modules/mkstemp (Makefile.am): Likewise.
49018         * modules/mktime (Makefile.am): Likewise.
49019         * modules/modechange (Makefile.am): Likewise.
49020         * modules/mountlist (Makefile.am): Likewise.
49021         * modules/nanosleep (Makefile.am): Likewise.
49022         * modules/obstack (Makefile.am): Likewise.
49023         * modules/openat (Makefile.am): Likewise.
49024         * modules/pagealign_alloc (Makefile.am): Likewise.
49025         * modules/pathmax (Makefile.am): Likewise.
49026         * modules/physmem (Makefile.am): Likewise.
49027         * modules/poll (Makefile.am): Likewise.
49028         * modules/posixtm (Makefile.am): Likewise.
49029         * modules/posixver (Makefile.am): Likewise.
49030         * modules/putenv (Makefile.am): Likewise.
49031         * modules/quote (Makefile.am): Likewise.
49032         * modules/quotearg (Makefile.am): Likewise.
49033         * modules/raise (Makefile.am): Likewise.
49034         * modules/read-file (Makefile.am): Likewise.
49035         * modules/readline (Makefile.am): Likewise.
49036         * modules/readlink (Makefile.am): Likewise.
49037         * modules/readtokens (Makefile.am): Likewise.
49038         * modules/readutmp (Makefile.am): Likewise.
49039         * modules/realloc (Makefile.am): Likewise.
49040         * modules/regex (Makefile.am): Likewise.
49041         * modules/rename-dest-slash (Makefile.am): Likewise.
49042         * modules/rename (Makefile.am): Likewise.
49043         * modules/rijndael (Makefile.am): Likewise.
49044         * modules/rmdir (Makefile.am): Likewise.
49045         * modules/rpmatch (Makefile.am): Likewise.
49046         * modules/safe-read (Makefile.am): Likewise.
49047         * modules/safe-write (Makefile.am): Likewise.
49048         * modules/same-inode (Makefile.am): Likewise.
49049         * modules/same (Makefile.am): Likewise.
49050         * modules/save-cwd (Makefile.am): Likewise.
49051         * modules/savedir (Makefile.am): Likewise.
49052         * modules/setenv (Makefile.am): Likewise.
49053         * modules/settime (Makefile.am): Likewise.
49054         * modules/sha1 (Makefile.am): Likewise.
49055         * modules/sig2str (Makefile.am): Likewise.
49056         * modules/snprintf (Makefile.am): Likewise.
49057         * modules/stat-macros (Makefile.am): Likewise.
49058         * modules/stat-time (Makefile.am): Likewise.
49059         * modules/stdbool (Makefile.am): Likewise.
49060         * modules/stdint (Makefile.am): Likewise.
49061         * modules/stdlib-safer (Makefile.am): Likewise.
49062         * modules/stpcpy (Makefile.am): Likewise.
49063         * modules/stpncpy (Makefile.am): Likewise.
49064         * modules/strcase (Makefile.am): Likewise.
49065         * modules/strcasestr (Makefile.am): Likewise.
49066         * modules/strchrnul (Makefile.am): Likewise.
49067         * modules/strcspn (Makefile.am): Likewise.
49068         * modules/strdup (Makefile.am): Likewise.
49069         * modules/strerror (Makefile.am): Likewise.
49070         * modules/strftime (Makefile.am): Likewise.
49071         * modules/strndup (Makefile.am): Likewise.
49072         * modules/strnlen (Makefile.am): Likewise.
49073         * modules/strpbrk (Makefile.am): Likewise.
49074         * modules/strsep (Makefile.am): Likewise.
49075         * modules/strstr (Makefile.am): Likewise.
49076         * modules/strtod (Makefile.am): Likewise.
49077         * modules/strtoimax (Makefile.am): Likewise.
49078         * modules/strtok_r (Makefile.am): Likewise.
49079         * modules/strtol (Makefile.am): Likewise.
49080         * modules/strtoll (Makefile.am): Likewise.
49081         * modules/strtoul (Makefile.am): Likewise.
49082         * modules/strtoull (Makefile.am): Likewise.
49083         * modules/strtoumax (Makefile.am): Likewise.
49084         * modules/strverscmp (Makefile.am): Likewise.
49085         * modules/sys_socket (Makefile.am): Likewise.
49086         * modules/sys_stat (Makefile.am): Likewise.
49087         * modules/sysexits (Makefile.am): Likewise.
49088         * modules/time_r (Makefile.am): Likewise.
49089         * modules/timegm (Makefile.am): Likewise.
49090         * modules/timespec (Makefile.am): Likewise.
49091         * modules/tmpfile-safer (Makefile.am): Likewise.
49092         * modules/trim (Makefile.am): Likewise.
49093         * modules/unistd-safer (Makefile.am): Likewise.
49094         * modules/unlinkdir (Makefile.am): Likewise.
49095         * modules/unlocked-io (Makefile.am): Likewise.
49096         * modules/userspec (Makefile.am): Likewise.
49097         * modules/utime (Makefile.am): Likewise.
49098         * modules/utimecmp (Makefile.am): Likewise.
49099         * modules/utimens (Makefile.am): Likewise.
49100         * modules/vasnprintf (Makefile.am): Likewise.
49101         * modules/vasprintf (Makefile.am): Likewise.
49102         * modules/vsnprintf (Makefile.am): Likewise.
49103         * modules/xalloc (Makefile.am): Likewise.
49104         * modules/xgetcwd (Makefile.am): Likewise.
49105         * modules/xnanosleep (Makefile.am): Likewise.
49106         * modules/xreadlink (Makefile.am): Likewise.
49107         * modules/xstrtod (Makefile.am): Likewise.
49108         * modules/xstrtol (Makefile.am): Likewise.
49109         * modules/xstrtold (Makefile.am): Likewise.
49110         * modules/yesno (Makefile.am): Likewise.
49111         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49112
49113 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49114
49115         * modules/error (Makefile.am): Distribute files through
49116         EXTRA_DIST, not lib_SOURCES.
49117
49118 2006-10-12  Eric Blake  <ebb9@byu.net>
49119
49120         * modules/error (Makefile.am): Distribute files in /lib.
49121         * modules/obstack (Makefile.am): Likewise.
49122
49123 2006-10-12  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/acl (Makefile.am): Distribute all files in lib/ through
49126         EXTRA_DIST.
49127         * modules/arcfour (Makefile.am): Likewise.
49128         * modules/arctwo (Makefile.am): Likewise.
49129         * modules/argmatch (Makefile.am): Likewise.
49130         * modules/argz (Makefile.am): Likewise.
49131         * modules/atexit (Makefile.am): Likewise.
49132         * modules/backupfile (Makefile.am): Likewise.
49133         * modules/c-strtod (Makefile.am): Likewise.
49134         * modules/c-strtold (Makefile.am): Likewise.
49135         * modules/calloc (Makefile.am): Likewise.
49136         * modules/canon-host (Makefile.am): Likewise.
49137         * modules/canonicalize (Makefile.am): Likewise.
49138         * modules/chdir-long (Makefile.am): Likewise.
49139         * modules/chdir-safer (Makefile.am): Likewise.
49140         * modules/check-version (Makefile.am): Likewise.
49141         * modules/chown (Makefile.am): Likewise.
49142         * modules/cloexec (Makefile.am): Likewise.
49143         * modules/close-stream (Makefile.am): Likewise.
49144         * modules/closeout (Makefile.am): Likewise.
49145         * modules/crc (Makefile.am): Likewise.
49146         * modules/cycle-check (Makefile.am): Likewise.
49147         * modules/des (Makefile.am): Likewise.
49148         * modules/dirfd (Makefile.am): Likewise.
49149         * modules/dirname (Makefile.am): Likewise.
49150         * modules/dup2 (Makefile.am): Likewise.
49151         * modules/euidaccess (Makefile.am): Likewise.
49152         * modules/exclude (Makefile.am): Likewise.
49153         * modules/exitfail (Makefile.am): Likewise.
49154         * modules/fcntl-safer (Makefile.am): Likewise.
49155         * modules/file-type (Makefile.am): Likewise.
49156         * modules/fileblocks (Makefile.am): Likewise.
49157         * modules/filemode (Makefile.am): Likewise.
49158         * modules/filenamecat (Makefile.am): Likewise.
49159         * modules/fnmatch (Makefile.am): Likewise.
49160         * modules/fopen-safer (Makefile.am): Likewise.
49161         * modules/fpending (Makefile.am): Likewise.
49162         * modules/fprintftime (Makefile.am): Likewise.
49163         * modules/free (Makefile.am): Likewise.
49164         * modules/fsusage (Makefile.am): Likewise.
49165         * modules/ftruncate (Makefile.am): Likewise.
49166         * modules/fts (Makefile.am): Likewise.
49167         * modules/gc (Makefile.am): Likewise.
49168         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49169         * modules/getaddrinfo (Makefile.am): Likewise.
49170         * modules/getcwd (Makefile.am): Likewise.
49171         * modules/getdelim (Makefile.am): Likewise.
49172         * modules/getdomainname (Makefile.am): Likewise.
49173         * modules/getgroups (Makefile.am): Likewise.
49174         * modules/gethostname (Makefile.am): Likewise.
49175         * modules/gethrxtime (Makefile.am): Likewise.
49176         * modules/getline (Makefile.am): Likewise.
49177         * modules/getloadavg (Makefile.am): Likewise.
49178         * modules/getlogin_r (Makefile.am): Likewise.
49179         * modules/getopt (Makefile.am): Likewise.
49180         * modules/getpass (Makefile.am): Likewise.
49181         * modules/getpass-gnu (Makefile.am): Likewise.
49182         * modules/getsubopt (Makefile.am): Likewise.
49183         * modules/gettime (Makefile.am): Likewise.
49184         * modules/gettimeofday (Makefile.am): Likewise.
49185         * modules/getugroups (Makefile.am): Likewise.
49186         * modules/getusershell (Makefile.am): Likewise.
49187         * modules/glob (Makefile.am): Likewise.
49188         * modules/group-member (Makefile.am): Likewise.
49189         * modules/hard-locale (Makefile.am): Likewise.
49190         * modules/hash (Makefile.am): Likewise.
49191         * modules/hmac-md5 (Makefile.am): Likewise.
49192         * modules/hmac-sha1 (Makefile.am): Likewise.
49193         * modules/human (Makefile.am): Likewise.
49194         * modules/idcache (Makefile.am): Likewise.
49195         * modules/imaxabs (Makefile.am): Likewise.
49196         * modules/imaxdiv (Makefile.am): Likewise.
49197         * modules/inet_ntop (Makefile.am): Likewise.
49198         * modules/inet_pton (Makefile.am): Likewise.
49199         * modules/inttostr (Makefile.am): Likewise.
49200         * modules/isapipe (Makefile.am): Likewise.
49201         * modules/lchown (Makefile.am): Likewise.
49202         * modules/long-options (Makefile.am): Likewise.
49203         * modules/lstat (Makefile.am): Likewise.
49204         * modules/malloc (Makefile.am): Likewise.
49205         * modules/mathl (Makefile.am): Likewise.
49206         * modules/mbchar (Makefile.am): Likewise.
49207         * modules/md2 (Makefile.am): Likewise.
49208         * modules/md4 (Makefile.am): Likewise.
49209         * modules/md5 (Makefile.am): Likewise.
49210         * modules/memcasecmp (Makefile.am): Likewise.
49211         * modules/memchr (Makefile.am): Likewise.
49212         * modules/memcmp (Makefile.am): Likewise.
49213         * modules/memcoll (Makefile.am): Likewise.
49214         * modules/memcpy (Makefile.am): Likewise.
49215         * modules/memmem (Makefile.am): Likewise.
49216         * modules/memmove (Makefile.am): Likewise.
49217         * modules/mempcpy (Makefile.am): Likewise.
49218         * modules/memrchr (Makefile.am): Likewise.
49219         * modules/memset (Makefile.am): Likewise.
49220         * modules/memxor (Makefile.am): Likewise.
49221         * modules/mkancesdirs (Makefile.am): Likewise.
49222         * modules/mkdir (Makefile.am): Likewise.
49223         * modules/mkdir-p (Makefile.am): Likewise.
49224         * modules/mkdtemp (Makefile.am): Likewise.
49225         * modules/mkstemp (Makefile.am): Likewise.
49226         * modules/mktime (Makefile.am): Likewise.
49227         * modules/modechange (Makefile.am): Likewise.
49228         * modules/mountlist (Makefile.am): Likewise.
49229         * modules/nanosleep (Makefile.am): Likewise.
49230         * modules/openat (Makefile.am): Likewise.
49231         * modules/pagealign_alloc (Makefile.am): Likewise.
49232         * modules/physmem (Makefile.am): Likewise.
49233         * modules/poll (Makefile.am): Likewise.
49234         * modules/posixtm (Makefile.am): Likewise.
49235         * modules/posixver (Makefile.am): Likewise.
49236         * modules/putenv (Makefile.am): Likewise.
49237         * modules/quote (Makefile.am): Likewise.
49238         * modules/quotearg (Makefile.am): Likewise.
49239         * modules/raise (Makefile.am): Likewise.
49240         * modules/read-file (Makefile.am): Likewise.
49241         * modules/readline (Makefile.am): Likewise.
49242         * modules/readlink (Makefile.am): Likewise.
49243         * modules/readtokens (Makefile.am): Likewise.
49244         * modules/readutmp (Makefile.am): Likewise.
49245         * modules/realloc (Makefile.am): Likewise.
49246         * modules/regex (Makefile.am): Likewise.
49247         * modules/rename (Makefile.am): Likewise.
49248         * modules/rename-dest-slash (Makefile.am): Likewise.
49249         * modules/rijndael (Makefile.am): Likewise.
49250         * modules/rmdir (Makefile.am): Likewise.
49251         * modules/rpmatch (Makefile.am): Likewise.
49252         * modules/safe-read (Makefile.am): Likewise.
49253         * modules/safe-write (Makefile.am): Likewise.
49254         * modules/same (Makefile.am): Likewise.
49255         * modules/save-cwd (Makefile.am): Likewise.
49256         * modules/savedir (Makefile.am): Likewise.
49257         * modules/setenv (Makefile.am): Likewise.
49258         * modules/settime (Makefile.am): Likewise.
49259         * modules/sha1 (Makefile.am): Likewise.
49260         * modules/sig2str (Makefile.am): Likewise.
49261         * modules/snprintf (Makefile.am): Likewise.
49262         * modules/stdlib-safer (Makefile.am): Likewise.
49263         * modules/stpcpy (Makefile.am): Likewise.
49264         * modules/stpncpy (Makefile.am): Likewise.
49265         * modules/strcase (Makefile.am): Likewise.
49266         * modules/strcasestr (Makefile.am): Likewise.
49267         * modules/strchrnul (Makefile.am): Likewise.
49268         * modules/strcspn (Makefile.am): Likewise.
49269         * modules/strdup (Makefile.am): Likewise.
49270         * modules/strerror (Makefile.am): Likewise.
49271         * modules/strftime (Makefile.am): Likewise.
49272         * modules/strndup (Makefile.am): Likewise.
49273         * modules/strnlen (Makefile.am): Likewise.
49274         * modules/strpbrk (Makefile.am): Likewise.
49275         * modules/strsep (Makefile.am): Likewise.
49276         * modules/strstr (Makefile.am): Likewise.
49277         * modules/strtod (Makefile.am): Likewise.
49278         * modules/strtoimax (Makefile.am): Likewise.
49279         * modules/strtok_r (Makefile.am): Likewise.
49280         * modules/strtol (Makefile.am): Likewise.
49281         * modules/strtoll (Makefile.am): Likewise.
49282         * modules/strtoul (Makefile.am): Likewise.
49283         * modules/strtoull (Makefile.am): Likewise.
49284         * modules/strtoumax (Makefile.am): Likewise.
49285         * modules/strverscmp (Makefile.am): Likewise.
49286         * modules/time_r (Makefile.am): Likewise.
49287         * modules/timegm (Makefile.am): Likewise.
49288         * modules/tmpfile-safer (Makefile.am): Likewise.
49289         * modules/unistd-safer (Makefile.am): Likewise.
49290         * modules/unlinkdir (Makefile.am): Likewise.
49291         * modules/userspec (Makefile.am): Likewise.
49292         * modules/utime (Makefile.am): Likewise.
49293         * modules/utimecmp (Makefile.am): Likewise.
49294         * modules/utimens (Makefile.am): Likewise.
49295         * modules/vasnprintf (Makefile.am): Likewise.
49296         * modules/vasprintf (Makefile.am): Likewise.
49297         * modules/vsnprintf (Makefile.am): Likewise.
49298         * modules/xalloc (Makefile.am): Likewise.
49299         * modules/xgetcwd (Makefile.am): Likewise.
49300         * modules/xnanosleep (Makefile.am): Likewise.
49301         * modules/xreadlink (Makefile.am): Likewise.
49302         * modules/xstrtod (Makefile.am): Likewise.
49303         * modules/xstrtol (Makefile.am): Likewise.
49304         * modules/xstrtold (Makefile.am): Likewise.
49305         * modules/yesno (Makefile.am): Likewise.
49306
49307 2006-10-12  Jim Meyering  <jim@meyering.net>
49308
49309         * m4/getloadavg.m4: Revert the change below.
49310
49311         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49312         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49313         fail with a symlink, which is what coreutils' ./bootstrap now
49314         creates by default.
49315
49316 2006-10-12  Bruno Haible  <bruno@clisp.org>
49317
49318         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49319         mingw.
49320         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49321         MSVC and mingw explicitly.
49322
49323 2006-10-11  Simon Josefsson  <jas@extundo.com>
49324             Bruno Haible  <bruno@clisp.org>
49325
49326         Add support for multiple gnulib-tool invocations in the scope of a
49327         single configure.ac file.
49328         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49329         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49330         with the same contents as the _LIBADD variable.
49331         (func_emit_initmacro_start, func_emit_initmacro_end,
49332         func_emit_initmacro_done): New functions.
49333         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49334         gl_LIBOBJS and gl_LTLIBOBJS.
49335
49336 2006-10-11  Bruno Haible  <bruno@clisp.org>
49337
49338         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49339         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49340         autoreconf. Instead, invoke autopoint explicitly but move back the
49341         *.m4 files from gnulib.
49342
49343 2006-10-11  Bruno Haible  <bruno@clisp.org>
49344
49345         * gnulib-tool (func_usage): Make module names after --create-testdir
49346         optional.
49347         (func_create_testdir): If no module was specified, use nearly all
49348         modules.
49349
49350 2006-10-12  Jim Meyering  <jim@meyering.net>
49351
49352         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49353         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49354         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49355         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49356         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49357         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49358         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49359         (fts_set_stat_required): New function.
49360         (fts_open): Defer the calls to fts_stat, if possible or requested.
49361         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49362         into fts_stat itself.
49363         (fts_read): Perform any required (deferred) fts_stat call.
49364         (fts_build): Likewise, for the directory we're about to open and read.
49365         In the readdir loop, carefully decide whether each entry will require
49366         an eventual call to fts_stat, using dirent.d_type info if available.
49367         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49368         a command line argument into this function.  Update all callers.
49369         Map a return value of FTS_DOT to FTS_D for a command line argument.
49370         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49371         Thanks to Miklos Szeredi for his tenacity and for the initial
49372         bug report about "find" failing on a FUSE-based file system.
49373
49374         * lib/fts.c (fts_open): Use consistent indentation.
49375
49376 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49377
49378         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49379         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49380         reported by Jim Meyering.  All uses of cache variables renamed
49381         to match Autoconf's.
49382         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49383         the other one.
49384
49385         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49386         Fix misspelling in diagnostic.
49387
49388 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49391         defined.  Problem reported by Matthew Woehlke.
49392
49393         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49394         Add support for Tandem NonStop R series.
49395         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49396         Use new macro.
49397
49398         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49399         (has_trailing_slash): Omit size arg; all callers changed.
49400         Omit 'inline', since it doesn't help performance and we'd
49401         need to configure it.
49402         Don't count //, ///, etc. as having a trailing slash.
49403         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49404         (rpl_rename_dest_slash): On failure, use rename's errno rather
49405         than (in some cases) an incorrect or junk errno.
49406         Simplify code by removing need to compute length; this does
49407         cause it to make two passes instead of one over the file name,
49408         but it's worth it.
49409
49410         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49411         change, since Autoconf's version may no longer be appropriate now
49412         that we are using CVS Autoconf's version.  Add support for Tandem.
49413
49414 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49415             Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49418         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49419         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49420         gl_AC_TYPE_LONG_LONG.
49421
49422         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49423         instead of HAVE_LONG_LONG.
49424         * lib/printf-args.c (printf_fetchargs): Likewise.
49425         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49426         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49427         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49428         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49429         gl_AC_TYPE_LONG_LONG.
49430
49431 2006-10-11  Bruno Haible  <bruno@clisp.org>
49432
49433         * m4/longlong.m4: Add comments.
49434         * m4/ulonglong.m4: Likewise.
49435
49436 2006-10-10  Bruno Haible  <bruno@clisp.org>
49437
49438         Make it possible to #define stpcpy, strdup to aliases.
49439         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49440         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49441
49442 2006-10-10  Bruno Haible  <bruno@clisp.org>
49443
49444         Make it possible to #define gcd to an alias.
49445         * lib/gcd.c: Include config.h.
49446
49447 2006-10-10  Bruno Haible  <bruno@clisp.org>
49448
49449         Make it possible to #define c_isascii to an alias.
49450         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49451         defined. Undefine the macros before defining them, to avoid gcc
49452         warnings.
49453         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49454         define NO_C_CTYPE_MACROS early.
49455
49456 2006-10-10  Bruno Haible  <bruno@clisp.org>
49457
49458         Make it possible to #define set_program_name to an alias.
49459         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49460         ENABLE_RELOCATABLE early.
49461
49462 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49463
49464         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49465         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49466         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49467         More generally, don't assume that 64-bit signed int is available
49468         if unsigned int is, and vice versa.
49469         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49470         unsigned symbols, not on their signed counterparts.
49471         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49472         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49473         (UINT64_C, UINTMAX_C):
49474         Likewise.
49475         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49476         unsigned counterparts.
49477         (Have_long_long, Unsigned): New macros.
49478         (Int): Renamed from INT.
49479         (strtoimax): Use the new macros.
49480         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49481         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49482         * modules/inttypes (inttypes.h): Substitute
49483         HAVE_UNSIGNED_LONG_LONG_INT.
49484         * modules/stdint (stdint.h): Likewise.
49485         (Files): Add m4/ulonglong.m4.
49486
49487 2006-10-10  Bruno Haible  <bruno@clisp.org>
49488
49489         Fix a gcc -Wshadow warning.
49490         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49491         to 'bucket'.
49492         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49493         gl_linked_indexof_from_to): Likewise.
49494         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49495         Likewise.
49496         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49497         Likewise.
49498         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49499         Reported by Eric Blake.
49500
49501 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49502
49503         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49504         for NetBSD.  Problem reported by Bruno Haible.
49505
49506 2006-10-09  Jim Meyering  <jim@meyering.net>
49507
49508         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49509         Patch from Bruno Haible.
49510
49511 2006-10-09  Jim Meyering  <jim@meyering.net>
49512
49513         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49514         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49515         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49516
49517 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49518
49519         Don't include <config.h> twice; this doesn't work in some cases,
49520         e.g., when config.h has "#define intmax_t long long int" and
49521         we include <config.h>, <inttypes.h>, <config.h> in that order.
49522         Problem reported by Matthew Woehlke in:
49523         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49524         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49525         * lib/fts-cycle.c: Don't include config.h.
49526         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49527         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49528         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49529         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49530         inttypes.h.
49531         * lib/xstrtoumax.c: Likewise.
49532         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49533         __strtol and the like, so that this module is more like its siblings.
49534         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49535         Remove; no longer needed now that we assume gnulib inttypes.h.
49536
49537 2006-10-08  Bruno Haible  <bruno@clisp.org>
49538
49539         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49540         option.
49541
49542 2006-10-07  Jim Meyering  <jim@meyering.net>
49543
49544         * modules/inttypes (inttypes.h): Revert what seems to have been
49545         an inadvertent part of today's change: use "|", not "/" in the
49546         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49547
49548 2006-10-07  Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/sublist: New file.
49551
49552 2006-10-07  Bruno Haible  <bruno@clisp.org>
49553
49554         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49555         * modules/argz (argz.h): Likewise.
49556         * modules/arpa_inet (arpa/inet.h): Likewise.
49557         * modules/byteswap (byteswap.h): Likewise.
49558         * modules/configmake (configmake.h): Likewise.
49559         * modules/fcntl (fcntl.h): Likewise.
49560         * modules/fnmatch (fnmatch.h): Likewise.
49561         * modules/getopt (getopt.h): Likewise.
49562         * modules/glob (glob.h): Likewise.
49563         * modules/inttypes (inttypes.h): Likewise.
49564         * modules/netinet_in (netinet/in.h): Likewise.
49565         * modules/poll (poll.h): Likewise.
49566         * modules/stdbool (stdbool.h): Likewise.
49567         * modules/stdint (stdint.h): Likewise.
49568         * modules/sys_select (sys/select.h): Likewise.
49569         * modules/sys_socket (sys/socket.h): Likewise.
49570         * modules/sys_stat (sys/stat.h): Likewise.
49571         * modules/sysexits (sysexits.h): Likewise.
49572         * modules/unistd (unistd.h): Likewise.
49573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49574         Add a "DO NOT EDIT" comment to the generated file.
49575         (func_import): Likewise for gnulib-comp.m4.
49576
49577 2006-10-07  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/gl_sublist.h: New file.
49580         * lib/gl_sublist.c: New file.
49581
49582 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49585         name (relative to the original working directory) and the file
49586         name component (relative to the temporary working directory).  All
49587         callers changed.
49588         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49589         * lib/mkdir-p.c (make_dir_parents): Likewise.
49590         * lib/mkdir-p.h (make_dir_parents): Likewise.
49591
49592 2006-10-06  Eric Blake  <ebb9@byu.net>
49593
49594         Define several macros for use by the clean-temp module.
49595         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49596         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49597         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49598
49599         * lib/clean-temp.h (close_stream_temp): New declaration.
49600         * lib/clean-temp.c (includes): Pull in headers according to what
49601         other modules are in use.
49602         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49603
49604 2006-10-06  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49607         instead of fopen, fwriteerror.
49608
49609 2006-10-06  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49612         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49613         int.
49614         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49615         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49616         Return an error indicator.
49617         Suggested by Eric Blake.
49618
49619 2006-10-06  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49622         Reported by Eric Blake.
49623
49624 2006-10-06  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/closeout (Description): Mention stderr too.
49627
49628 2006-10-06  Bruno Haible  <bruno@clisp.org>
49629         and Paul Eggert  <eggert@cs.ucla.edu>
49630
49631         * lib/closeout.c (close_stdout): Also close stderr.
49632         * lib/closeout.h: Update comment.
49633
49634 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49635
49636         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49637         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49638         * lib/dirchownmod.c: Include lchown.h.
49639         * lib/lchown.c: Don't include files that lchown.h now includes.
49640         Don't declare chown, since lchown.h now does that.
49641         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49642         (lchown): Define to rpl_chown if lchown is declared but
49643         does not exist.  Declare using a prototype if lchown is not
49644         declared.  Add a copyright notice.
49645         * lib/mkstemp.h: Include <unistd.h>.
49646         * lib/openat.c: Include lchown.h.
49647
49648         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49649         we now test for that separately.
49650         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49651         rather than O_NOFOLLOW, when testing whether it's possible to
49652         avoid a race condition reliably.
49653         * lib/savewd.c (savewd_chdir): Likewise.
49654
49655         Remove macros that are no longer needed now that stdint.h is
49656         reliable.
49657         * lib/fsusage.c (UINTMAX_MAX): Remove.
49658         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49659         * lib/utimecmp.c (SIZE_MAX): Remove.
49660
49661         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49662
49663         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49664         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49665         O_NOATIME works.
49666
49667 2006-10-05  Bruno Haible  <bruno@clisp.org>
49668
49669         * lib/gl_list.h (gl_sortedlist_search_from_to,
49670         gl_sortedlist_indexof_from_to): New declarations.
49671         (gl_list_implementation): New fields sortedlist_search_from_to,
49672         sortedlist_indexof_from_to.
49673         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49674         inline functions.
49675         * lib/gl_list.c (gl_sortedlist_search_from_to,
49676         gl_sortedlist_indexof_from_to): New functions.
49677         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49678         function.
49679         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49680         (gl_array_sortedlist_search_from_to): New function.
49681         (gl_array_list_implementation): Update.
49682         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49683         function.
49684         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49685         (gl_carray_sortedlist_search_from_to): New function.
49686         (gl_carray_list_implementation): Update.
49687         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49688         gl_linked_sortedlist_indexof_from_to): New functions.
49689         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49690         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49691         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49692         gl_tree_sortedlist_indexof_from_to): New functions.
49693         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49694         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49695         Update.
49696         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49697         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49698         Update.
49699
49700 2006-10-05  Bruno Haible  <bruno@clisp.org>
49701
49702         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49703         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49704         (struct gl_list_implementation): Add fields search_from_to,
49705         indexof_from_to. Remove fields search, indexof.
49706         (gl_list_search): Use the search_from_to method.
49707         (gl_list_search_from, gl_list_search_from_to): New functions.
49708         (gl_list_indexof): Use the indexof_from_to method.
49709         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49710         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49711         (gl_list_search_from, gl_list_search_from_to): New functions.
49712         (gl_list_indexof): Use the indexof_from_to method.
49713         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49714         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49715         gl_array_indexof. Add start_index, end_index arguments.
49716         (gl_array_search_from_to): Renamed from gl_array_search. Add
49717         start_index, end_index arguments.
49718         (gl_array_remove, gl_array_list_implementation): Update.
49719         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49720         gl_carray_indexof. Add start_index, end_index arguments.
49721         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49722         start_index, end_index arguments.
49723         (gl_carray_remove, gl_carray_list_implementation): Update.
49724         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49725         gl_linked_search. Add start_index, end_index arguments.
49726         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49727         start_index, end_index arguments.
49728         (gl_linked_remove): Update.
49729         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49730         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49731         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49732         field to 'size_t'.
49733         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49734         gl_tree_search. Add start_index, end_index arguments.
49735         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49736         start_index, end_index arguments.
49737         (gl_tree_remove): Update.
49738         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49739         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49740         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49741         function.
49742         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49743         gl_tree_search. Add start_index, end_index arguments.
49744         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49745         start_index, end_index arguments.
49746         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49747         Update.
49748         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49749
49750 2006-10-05  Bruno Haible  <bruno@clisp.org>
49751
49752         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49753
49754         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49755         fwriteerror_temp): New declarations.
49756         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49757         (descriptors): New variable.
49758         (cleanup): First, close the descriptors.
49759         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49760         fclose_temp, fwriteerror_temp): New functions.
49761
49762 2006-10-04  Jim Meyering  <jim@meyering.net>
49763
49764         * lib/fts.c (fts_open): Tiny comment change.
49765
49766 2006-10-04  Bruno Haible  <bruno@clisp.org>
49767
49768         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49769         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49770         gl_LOCK_BODY.
49771         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49772         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49773         gl_LOCK_EARLY_BODY.
49774         (gl_LOCK): Require gl_LOCK_BODY.
49775
49776 2006-10-04  Bruno Haible  <bruno@clisp.org>
49777
49778         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49779         (gl_oset_search_atleast): New declaration.
49780         (struct gl_oset_implementation): Add field 'search_atleast'.
49781         (gl_oset_search_atleast): New inline function.
49782         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49783         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49784         (gl_array_oset_implementation): Update.
49785         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49786         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49787         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49788
49789 2006-10-04  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49792
49793 2006-10-03  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49796         from gl_avltreehash_list_implementation.
49797
49798 2006-10-03  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/gl_oset.c (gl_oset_add): Fix return type.
49801
49802 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49803
49804         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49805
49806 2006-10-02  Eric Blake  <ebb9@byu.net>
49807
49808         * modules/strnlen (Depends-on): Add extensions.
49809
49810 2006-10-02  Eric Blake  <ebb9@byu.net>
49811
49812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49813         definition in 2.60+.
49814
49815 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49816
49817         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49818         checks.
49819
49820 2006-10-02  Bruno Haible  <bruno@clisp.org>
49821
49822         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49823         to the AUTOMAKE_OPTIONS.
49824         Reported by Jim Meyering.
49825
49826 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         Work around bug in Solaris 10 /proc file system:
49829         /proc/self/fd/NNN/.. isn't the parent directory of
49830         the directory whose file descriptor is NNN.  This needs to
49831         be worked around at run time, not compile time, since a
49832         program might be built on Solaris 8, where things work, and
49833         run on Solaris 10.
49834         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49835         to use the following interface instead:
49836         (OPENAT_BUFFER_SIZE): New macro.
49837         (openat_proc_name): New function.
49838         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49839         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49840         Likewise.
49841         * lib/openat-proc.c: New file.
49842         * modules/openat (Files): Add lib/openat-proc.c.
49843         (Depends-on): Add same-inode, stdbool.
49844         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49845
49846 2006-09-29  Bruno Haible  <bruno@clisp.org>
49847
49848         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49849         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49850         argument. Set stdout_closed before testing for ferror, not after.
49851         (fwriteerror, fwriteerror_no_ebadf): New functions.
49852
49853 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49854
49855         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49856
49857 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49858
49859         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49860         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49861
49862 2006-09-28  Jim Meyering  <jim@meyering.net>
49863
49864         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49865         Include <unistd.h>.
49866
49867 2006-09-28  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49870         * modules/linkedhash-list (Depends-on): Likewise.
49871         * modules/rbtreehash-list (Depends-on): Likewise.
49872
49873 2006-09-28  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/strndup.h: Simplify the redefinition of strndup.
49876         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49877         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49878
49879 2006-09-28  Bruno Haible  <bruno@clisp.org>
49880
49881         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49882         * lib/gl_linkedhash_list.c: Likewise.
49883         * lib/gl_rbtreehash_list.c: Likewise.
49884
49885 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49886
49887         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49888         getaddrinfo.
49889
49890         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49891         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49892         it causes <stdio_ext.h> to cause a compile-time error.
49893         Problem reported by Nelson H. F. Beebe.
49894         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49895         of HAVE_DECL___PENDING.
49896
49897         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49898         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49899         declaration.
49900
49901 2006-09-27  Jim Meyering  <jim@meyering.net>
49902
49903         This file could end up with a definition for a function
49904         named __strndup, rather than rpl_strndup on a system with
49905         incomplete weak_alias support.
49906         * lib/strndup.c (strndup): Rename from __strndup.
49907         Remove #defines that used to map __strndup to strndup.
49908         Don't use K&R prototypes.
49909         Remove LIBC-related code, since this file is not sync'd with glibc.
49910         * lib/strndup.h: Revamp, accordingly.
49911         * m4/strndup.m4: Modernize.
49912
49913 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         * modules/savewd (Depends-on): Add 'raise'.
49916         * lib/savewd.c: Include <signal.h>, for 'raise'.
49917
49918 2006-09-26  Jim Meyering  <jim@meyering.net>
49919
49920         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49921         when we detect Darwin 8.7.0's acl_get_file bug.
49922         Rearrange to perform the new (below) run-test while $LIBS
49923         contains any acl-related library.  Set USE_ACL at the end.
49924         (gl_ACL_GET_FILE): New function.
49925
49926 2006-09-26  Eric Blake  <ebb9@byu.net>
49927
49928         * lib/verror.c: Include <config.h> unconditionally.
49929
49930 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * modules/clock-time (Maintainer): Add self.
49933         * modules/getlogin_r (Depends-on): Add extensions.
49934
49935 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49936
49937         * modules/clock-time: New module.
49938         * modules/nanosleep (Depends-on): Add clock-time.
49939         * modules/gethrxtime (Depends-on): Likewise.
49940         * modules/gettime (Depends-on): Likewise.
49941         * modules/settime (Depends-on): Likewise.
49942
49943         * modules/fts-lgpl: Depend on openat.
49944         * modules/mkancesdirs: Depend on savewd.
49945         * modules/mkdir-p: Likewise.
49946
49947 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49948
49949         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49950
49951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49952         `gl_have_arbitrary_file_name_length_limit' to
49953         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49954         actually works between configure runs.
49955
49956 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49957             Bruno Haible  <bruno@clisp.org>
49958
49959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49960
49961 2006-09-25  Jim Meyering  <jim@meyering.net>
49962
49963         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49964         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49965
49966 2006-09-25  Eric Blake  <ebb9@byu.net>
49967
49968         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49969         exec's in 2006-09-18 patch when shuffling fds.
49970
49971 2006-09-25  Bruno Haible  <bruno@clisp.org>
49972
49973         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49974         Reported by Jim Meyering.
49975
49976 2006-09-24  Jim Meyering  <jim@meyering.net>
49977
49978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49979         compare a pointer against a literal "0".  That caused failures with
49980         at least HP-UX's hpcc.
49981
49982 2006-09-22  Simon Josefsson  <jas@extundo.com>
49983
49984         * modules/gc-sha1:
49985         * modules/gc-md4:
49986         * modules/gc-hmac-sha1:
49987         * modules/gc-hmac-md5:
49988         * modules/gc-des:
49989         * modules/gc-arcfour: Distribute more files.
49990
49991 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49992
49993         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49994         (gl_linked_iterator_from_to): Initialize struct completely.
49995         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49996         (gl_tree_iterator_from_to): Likewise
49997         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49998         * lib/gl_array_list.c [lint] (gl_array_iterator)
49999         (gl_array_iterator_from_to): Likewise.
50000         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50001         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50002         (gl_carray_iterator_from_to): Likewise.
50003
50004         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50005         * lib/md4.c (md4_process_block): Remove unused variable.
50006         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50007         parentheses for clarity.
50008
50009 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50010
50011         * modules/bison-i18n (Depends-on): Add gettext.
50012
50013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50014
50015         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50016         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50017         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50018         also add missing comma that caused broken test.
50019         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50020         stdlib.h, for `abort'.
50021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50022         variables.
50023         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50024         include unistd.h if present, for `rmdir'.
50025         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50026         variables.
50027         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50028         in the process include standard headers for prototypes.
50029         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50030         gets declared on GNU/Linux.
50031         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50032         unistd.h, for `rmdir'.
50033         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50034
50035         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50036         always true.
50037         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50038
50039         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50040
50041 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50042
50043         * gnulib-tool (func_version): Create output all at once.  This
50044         may help avoid triggering unnecessary SIGPIPEs, and at any
50045         rate it doesn't hurt.
50046
50047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50048             Bruno Haible  <bruno@clisp.org>
50049
50050         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50051         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50052         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50053
50054         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50055         (gl_FUNC_VASPRINTF): Invoke it.
50056
50057 2006-09-22  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50060         getloadavg.c as first argument.
50061
50062 2006-09-22  Bruno Haible  <bruno@clisp.org>
50063
50064         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50065         at the beginning of the gl_INIT macro.
50066         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50067         gl_GETLOADAVG.
50068
50069 2006-09-22  Bruno Haible  <bruno@clisp.org>
50070
50071         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50072         module.
50073         Suggested by Ralf Wildenhues.
50074
50075 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         Import this patch from libc:
50078
50079         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50080
50081         * lib/regex_internal.c (re_string_reconstruct): Handle
50082         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50083         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50084         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50085         re_string_context_at.
50086
50087         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50088         now requires it.
50089         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50090         gl_REGEX now does it for us.
50091         (gl_REGEX): Add test taken from
50092         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50093
50094         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50095         Check that large offsets work.  Modernize Autoconf usages.
50096         Prefer "yes" to mean a good thing rather than a bad.
50097         Don't put "#define mkstemp" in config.h, as this might interfere
50098         with standard system headers that "#define mkstemp mkstemp64".
50099
50100         * modules/mkstemp (Depends-on): Add extensions, so that
50101         mkstemp is visible on some platforms.
50102         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50103         (Include): Change to "mkstemp.h" from <stdlib.h>.
50104         (Files): Add mkstemp.h.
50105
50106         * lib/mkstemp.h: New file, since some standard headers
50107         #define mkstemp.
50108         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50109         Include "mkstemp.h".
50110         Make the _LIBC code resemble glibc original more,
50111         e.g., use K&R style.
50112         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50113         (mkstemp): Remove, since mkstemp.h does this for us.
50114         * lib/stdlib--.h: Include mkstemp.h.
50115
50116         Import this patch from libc:
50117
50118         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50119
50120         * lib/tempname.c (__gen_tempname): Change attempts_min
50121         into a macro.  Use preprocessor to decide how to initialize
50122         attempts [Coverity CID 67].
50123
50124 2006-09-20  Bruno Haible  <bruno@clisp.org>
50125
50126         * lib/mkdtemp.c: Import from libc.
50127         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50128                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50129                 attempts_min into a macro.  Use preprocessor to decide how to
50130                 initialize attempts [Coverity CID 67].
50131         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50132                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50133                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50134
50135 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50136
50137         * gnulib-tool (func_exit): New function, to allow to pass the
50138         exit status portably through the trap.  Use everywhere.
50139         (--help, --version): Signal a write error.
50140         (trap): catch SIGPIPE, for write errors.
50141         Exit at the end of the trap, with the correct exit status.
50142
50143 2006-09-19  Karl Berry  <karl@gnu.org>
50144
50145         * doc/gnulib.texi: note about the license texinfo files.
50146
50147 2006-09-19  Eric Blake  <ebb9@byu.net>
50148
50149         * gnulib-tool: Avoid space-tab.
50150
50151 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50152
50153         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50154         that prevented coreutils 6.1 from building.  Problem reported
50155         by Petter Reinholdtsen.
50156
50157 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50158
50159         * gnulib-tool (avoidlist): Fix typo that broke options like
50160         --avoid=lock that are used by coreutils bootstrap.
50161
50162 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50163
50164         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50165         more systematically.
50166
50167 2006-09-18  Jim Meyering  <jim@meyering.net>
50168
50169         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50170
50171 2006-09-18  Bruno Haible  <bruno@clisp.org>
50172
50173         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50174
50175 2006-09-18  Bruno Haible  <bruno@clisp.org>
50176
50177         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50178         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50179         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50180         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50181         * m4/gettext.m4: Require autoconf >= 2.52.
50182         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50183         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50184         of gl_cv_header_inttypes_h.
50185
50186 2006-09-18  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/javaversion.c: Include configmake.h.
50189
50190 2006-09-18  Bruno Haible  <bruno@clisp.org>
50191
50192         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50193         avoid that the while loops be executed in a subshell.
50194
50195 2006-09-18  Bruno Haible  <bruno@clisp.org>
50196
50197         * MODULES.html.sh (func_module): Break long lines.
50198         Suggested by Bruce Korb <bkorb@gnu.org>.
50199
50200 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50201
50202         Speed up by a factor of 1.12.
50203         * gnulib-tool (nl): New variable.
50204         (func_import): Rewrite include directive extraction to only read each
50205         directive once.
50206
50207 2006-09-17  Bruno Haible  <bruno@clisp.org>
50208
50209         * modules/javaversion (Makefile.am): Remove DEFS setting.
50210         (Depends-on): Add configmake, for PKGDATADIR definition.
50211
50212 2006-09-17  Bruno Haible  <bruno@clisp.org>
50213
50214         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50215
50216 2006-09-17  Bruno Haible  <bruno@clisp.org>
50217
50218         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50219         (func_modules_transitive_closure, func_modules_add_dummy,
50220         func_modules_to_filelist, func_import, func_create_testdir,
50221         func_create_megatestdir, ...): Use it wherever possible.
50222         Suggested by Ralf Wildenhues.
50223
50224 2006-09-16  Karl Berry  <karl@gnu.org>
50225
50226         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50227         to avoid sectioning errors.
50228         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50229         [ifinfo]: blank line after @center-ed titles.
50230         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50231         Spell FSF address consistently with others.
50232         (These changes approved by rms.)
50233
50234 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50235
50236         Speed up by a factor of 1.61.
50237         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50238         already checked module names again.
50239
50240 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50241
50242         Speed up by a factor of 1.13.
50243         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50244         for new_files, and the input to func_add_or_update.
50245
50246 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50247
50248         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50249         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50250
50251 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50252
50253         * modules/mkancesdirs (Depends-on): Add fcntl.
50254         * modules/savewd: New file.
50255         * MODULES.html.sh (File system functions): Add savewd.
50256
50257         * modules/configmake (Makefile.am): Add support for the
50258         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50259
50260 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50261
50262         * m4/savewd.m4: New file.
50263
50264 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50265
50266         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50267         (dirchownmod): New arg FD.  All callers changed.
50268         Use FD rather than opening the directory ourself, as opening is
50269         now the caller's responsibility.
50270         * lib/dirchownmod.h: Likewise.
50271         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50272         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50273         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50274         (test_dir): Remove.
50275         (mkancesdirs): Return length of prefix of FILE that has already
50276         been made, or -2 if there is a child doing the work.  Redo
50277         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50278         ".", and treat ".." specially since it might stray back into
50279         already-created areas.  Use a subprocess if necessary.  New arg
50280         WD; all users changed.  MAKE_DIR function should now return 1
50281         if it creates a directory that is not readable.  Return -2 if
50282         a child process is spun off.
50283         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50284         Adjust signature to match code.
50285         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50286         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50287         all users changed.
50288         * lib/savewd.c, lib/savewd.h: New files.
50289
50290 2006-09-15  Jim Meyering  <jim@meyering.net>
50291
50292         * modules/rename-dest-slash: New module.
50293         * MODULES.html.sh (posix_compat): Add it here.
50294
50295         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50296
50297 2006-09-15  Jim Meyering  <jim@meyering.net>
50298
50299         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50300         file.
50301
50302         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50303
50304 2006-09-15  Jim Meyering  <jim@meyering.net>
50305
50306         * lib/rename-dest-slash.c (has_trailing_slash): Use
50307         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50308         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50309         test before testing whether SRC is a directory.
50310         Suggestions from Bruno Haible.
50311
50312         Avoid a warning about an unused variable.
50313         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50314         into the #ifdef block where it's used.
50315
50316         * lib/rename-dest-slash.c: New file.
50317
50318 2006-09-14  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/allocsa.c: Include <config.h> unconditionally.
50321         * lib/asnprintf.c: Likewise.
50322         * lib/asprintf.c: Likewise.
50323         * lib/c-strcasecmp.c: Likewise.
50324         * lib/c-strcasestr.c: Likewise.
50325         * lib/c-strncasecmp.c: Likewise.
50326         * lib/c-strstr.c: Likewise.
50327         * lib/classpath.c: Likewise.
50328         * lib/clean-temp.c: Likewise.
50329         * lib/concatpath.c: Likewise.
50330         * lib/copy-file.c: Likewise.
50331         * lib/csharpcomp.c: Likewise.
50332         * lib/csharpexec.c: Likewise.
50333         * lib/execute.c: Likewise.
50334         * lib/fatal-signal.c: Likewise.
50335         * lib/findprog.c: Likewise.
50336         * lib/fwriteerror.c: Likewise.
50337         * lib/gl_array_list.c: Likewise.
50338         * lib/gl_array_oset.c: Likewise.
50339         * lib/gl_avltree_list.c: Likewise.
50340         * lib/gl_avltree_oset.c: Likewise.
50341         * lib/gl_avltreehash_list.c: Likewise.
50342         * lib/gl_carray_list.c: Likewise.
50343         * lib/gl_linked_list.c: Likewise.
50344         * lib/gl_linkedhash_list.c: Likewise.
50345         * lib/gl_list.c: Likewise.
50346         * lib/gl_oset.c: Likewise.
50347         * lib/gl_rbtree_list.c: Likewise.
50348         * lib/gl_rbtree_oset.c: Likewise.
50349         * lib/gl_rbtreehash_list.c: Likewise.
50350         * lib/imaxabs.c: Likewise.
50351         * lib/imaxdiv.c: Likewise.
50352         * lib/javacomp.c: Likewise.
50353         * lib/javaexec.c: Likewise.
50354         * lib/javaversion.c: Likewise.
50355         * lib/linebreak.c: Likewise.
50356         * lib/localcharset.c: Likewise.
50357         * lib/lock.c: Likewise.
50358         * lib/mbchar.c: Likewise.
50359         * lib/mbswidth.c: Likewise.
50360         * lib/mkdtemp.c: Likewise.
50361         * lib/pipe.c: Likewise.
50362         * lib/printf-args.c: Likewise.
50363         * lib/printf-parse.c: Likewise.
50364         * lib/progname.c: Likewise.
50365         * lib/progreloc.c: Likewise.
50366         * lib/readlink.c: Likewise.
50367         * lib/sh-quote.c: Likewise.
50368         * lib/stpcpy.c: Likewise.
50369         * lib/stpncpy.c: Likewise.
50370         * lib/strcasecmp.c: Likewise.
50371         * lib/strcasestr.c: Likewise.
50372         * lib/strcspn.c: Likewise.
50373         * lib/striconv.c: Likewise.
50374         * lib/strncasecmp.c: Likewise.
50375         * lib/strnlen1.c: Likewise.
50376         * lib/strstr.c: Likewise.
50377         * lib/strtok_r.c: Likewise.
50378         * lib/tls.c: Likewise.
50379         * lib/tmpdir.c: Likewise.
50380         * lib/unicodeio.c: Likewise.
50381         * lib/unsetenv.c: Likewise.
50382         * lib/vasnprintf.c: Likewise.
50383         * lib/vasprintf.c: Likewise.
50384         * lib/wait-process.c: Likewise.
50385         * lib/xallocsa.c: Likewise.
50386         * lib/xsetenv.c: Likewise.
50387         * lib/xstriconv.c: Likewise.
50388
50389 2006-09-13  Simon Josefsson  <jas@extundo.com>
50390
50391         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50392         that internally, suggested by Ralf Wildenhues
50393         <Ralf.Wildenhues@gmx.de>.
50394
50395 2006-09-13  Simon Josefsson  <jas@extundo.com>
50396
50397         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50398         @LIBOBJS@.
50399         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50400
50401 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50402
50403         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50404         longer worry about uses that don't define HAVE_CONFIG_H.
50405         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50406         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50407         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50408         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50409         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50410         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50411         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50412         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50413         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50414         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50415         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50416         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50417         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50418         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50419         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50420         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50421         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50422         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50423         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50424         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50425         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50426         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50427         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50428         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50429         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50430         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50431         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50432         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50433         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50434         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50435         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50436         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50437         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50438         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50439         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50440         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50441         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50442         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50443         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50444         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50445         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50446         Likewise.
50447
50448 2006-09-13  Eric Blake  <ebb9@byu.net>
50449
50450         * lib/getopt.c: Fix typo in last commit.
50451
50452 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50453
50454         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50455         dgettext.
50456
50457 2006-09-12  Jim Meyering  <jim@meyering.net>
50458
50459         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50460         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50461         Reported by Nelson H. F. Beebe.
50462
50463 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50464
50465         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50466         program_invocation_name and program_invocation_short_name are
50467         initialized.
50468         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50469         and program_invocation_short_name to argp.h, so they are visible
50470         to user programs.
50471         * lib/argp.h: Likewise
50472
50473 2006-09-10  Bruno Haible  <bruno@clisp.org>
50474
50475         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50476         m4/inttypes_h.m4, m4/uintmax_t.m4.
50477
50478 2006-09-10  Bruno Haible  <bruno@clisp.org>
50479
50480         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50481         gl_AC_TYPE_UINTMAX_T.
50482
50483 2006-09-10  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50486
50487 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50488
50489         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50490         convention.  Text proposed by Bruno Haible.
50491         (struct argp_option): Document the use of N_() wrappers.
50492
50493         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50494         '\v', and translate the two parts separately, instead of feeding
50495         the whole string to gettext.  This allows to exclude
50496         '\v' from the strings visible to the translator by writing doc
50497         strings as N_("..") "\v" N_("..").
50498
50499 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         * config/srclist.txt: Undo latest change; the bug was fixed.
50502
50503 2006-09-09  Bruno Haible  <bruno@clisp.org>
50504
50505         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50506         assignments if building a library without libtool.
50507         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50508         in func_emit_lib_Makefile_am.
50509         (func_import): When building a static library libfoo.a, arrange to
50510         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50511         (func_create_testdir): Likewise.
50512         * modules/gc (configure.ac, Makefile.am): If building statically,
50513         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50514         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50515         * modules/striconv (configure.ac, Makefile.am): Likewise.
50516         Based on a suggestion by Ralf Wildenhues.
50517
50518 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50519
50520         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50521         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50522         Also:
50523
50524         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50525         Add year_2050_test to catch glibc bug 2821
50526         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50527
50528         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50529         Prefer #ifdef to #if.
50530
50531         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50532         Return from 'main' instead of calling 'exit'.
50533
50534 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50537         returned the maximum time_t value rather than (time_t) -1.
50538         Problem originally reported by William Bardwell
50539         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50540
50541         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50542         Moved to here ...
50543         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50544         ... from here.
50545
50546 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50547
50548         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50549         2821 is fixed.
50550
50551 2006-09-08  Jim Meyering  <jim@meyering.net>
50552
50553         Don't make generated files read-only.  That would bother too many
50554         people.  However, do retain the ability to work when targets are
50555         read-only: remove the destination and temporary files before writing
50556         them (when generated via sed or echo), or by using the -f option for
50557         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50558         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50559         * modules/byteswap, modules/configmake, modules/fcntl:
50560         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50561         * modules/localcharset, modules/netinet_in, modules/poll:
50562         * modules/stdbool, modules/stdint, modules/sys_select:
50563         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50564
50565 2006-09-08  Jim Meyering  <jim@meyering.net>
50566
50567         Avoid new build failure on FreeBSD 6.0.
50568         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50569         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50570         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50571
50572 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50573
50574         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50575
50576 2006-09-07  Jim Meyering  <jim@meyering.net>
50577
50578         Fix global typo in last change: use chmod u-w, not chmod u-x.
50579         Spotted by Paul Eggert and Bruce Korb.
50580         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50581         * modules/byteswap, modules/configmake, modules/fcntl:
50582         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50583         * modules/localcharset, modules/netinet_in, modules/poll:
50584         * modules/stdbool, modules/stdint, modules/sys_select:
50585         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50586
50587 2006-09-06  Jim Meyering  <jim@meyering.net>
50588
50589         Make generated files be read-only.
50590         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50591         Ensure that each generated file is now read-only.
50592         * modules/argz: Likewise.
50593         * modules/arpa_inet: Likewise.
50594         * modules/byteswap: Likewise.
50595         * modules/configmake: Likewise.
50596         * modules/fcntl: Likewise.
50597         * modules/fnmatch: Likewise.
50598         * modules/getopt: Likewise.
50599         * modules/glob: Likewise.
50600         * modules/inttypes: Likewise.
50601         * modules/netinet_in: Likewise.
50602         * modules/poll: Likewise.
50603         * modules/stdbool: Likewise.
50604         * modules/stdint: Likewise.
50605         * modules/sys_select: Likewise.
50606         * modules/sys_socket: Likewise.
50607         * modules/sys_stat: Likewise.
50608         * modules/sysexits: Likewise.
50609         * modules/localcharset: Same as above, but continue using temporary
50610         file named "t-$@" (why different?) rather than the "$@-t" used
50611         everywhere else.
50612
50613         * modules/sysexits (Makefile.am): Replace literal occurrences
50614         of "sysexit.h" more readable, and more consistent, "$@".
50615
50616 2006-09-06  Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/striconv: New file.
50619         * modules/xstriconv: New file.
50620         * MODULES.html.sh (Internationalization functions): Add striconv,
50621         xstriconv.
50622
50623 2006-09-06  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50626         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50627         not using libtool correctly.
50628
50629 2006-09-06  Bruno Haible  <bruno@clisp.org>
50630
50631         * lib/striconv.h: New file.
50632         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50633         iconvstring.c.
50634         * lib/xstriconv.h: New file.
50635         * lib/xstriconv.c: New file.
50636
50637 2006-09-06  Bruno Haible  <bruno@clisp.org>
50638
50639         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50640         lib_..._LDFLAGS.
50641
50642 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50643
50644         * lib/argz_.h: Sync from Libtool.
50645
50646         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50647                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50648
50649         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50650
50651 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50652
50653         * modules/trim: New file.
50654
50655 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50656
50657         * lib/trim.h: New file.
50658         * lib/trim.c: New file.
50659
50660 2006-09-05  Bruno Haible  <bruno@clisp.org>
50661
50662         * MODULES.html.sh (String handling): Add trim.
50663
50664 2006-09-04  Karl Berry  <karl@gnu.org>
50665
50666         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50667         until next release.
50668
50669 2006-09-03  Bruno Haible  <bruno@clisp.org>
50670
50671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50672         correctly.
50673
50674 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50675
50676         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50677         not gl_GETLOADAVG.  Omit unneeded semicolons.
50678         Problems reported by Ralf Wildenhues in
50679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50680         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50681         at the end, which is the usual gnulib style.
50682
50683         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50684         of doing all the work ourselves.
50685         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50686         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50687
50688 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50689
50690         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50691         Problem reported by Ralf Wildenhues in
50692         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50693
50694         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50695         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50696
50697 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50698
50699         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50700         yesterday's patch by changing test -n to test -z.
50701
50702 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50705         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50706         the former is now obsolescent.
50707
50708         * modules/chdir-long (Depends-on): Add fcntl.
50709
50710 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50711
50712         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50713         obsolescent, and programs should use gnulib instead.
50714         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50715         but with prefixes changed.
50716
50717 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50720         or stdbool.h, because they might not exist while configuring.
50721
50722         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50723         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50724         does that for us.
50725         (O_DIRECTORY): Remove.
50726
50727 2006-08-31  Eric Blake  <ebb9@byu.net>
50728
50729         * gnulib-tool: Don't let emacs change spaces to TAB.
50730
50731 2006-08-31  Bruno Haible  <bruno@clisp.org>
50732
50733         * gnulib-tool: When calling func_import more than once, do it in a
50734         subshell.
50735         Reported by Eric Blake <ebb9@byu.net>.
50736
50737 2006-08-31  Bruno Haible  <bruno@clisp.org>
50738
50739         * gnulib-tool (nl): Remove variable.
50740         (sed_transform_lib_file): Use more robust test for config-h module.
50741         (func_import): Fix typo in 2006-08-25 patch.
50742
50743 2006-08-31  Bruno Haible  <bruno@clisp.org>
50744
50745         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50746         specified, augment Makefile.am variables instead of assigning them.
50747
50748 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         Work around a bug in both the Linux and SunOS 64-bit kernels:
50751         nanosleep mishandles sleeps for longer than 2**31 seconds.
50752         Problem reported by Frank v Waveren in
50753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50755         Check for nanosleep bug.
50756         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50757
50758 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50759
50760         Work around a bug in both the Linux and SunOS 64-bit kernels:
50761         nanosleep mishandles sleeps for longer than 2**31 seconds.
50762         Problem reported by Frank v Waveren in
50763         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50764         * lib/nanosleep.c (BILLION): New constant.
50765         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50766         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50767         implementation.
50768
50769 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * modules/nanosleep (Depends-on): Add gettime.
50772
50773 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50774         and Simon Josefsson  <jas@extundo.com>
50775         and Oskar Liljeblad  <oskar@osk.mine.nu>
50776
50777         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50778         * gnulib-tool (func_import): New license type 'unmodifiable license
50779         text'.
50780         * modules/fdl: Use it.  Longer description.
50781         * module/gpl, module/lgpl: New files.
50782
50783 2006-08-30  Jim Meyering  <jim@meyering.net>
50784
50785         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50786         shadowing the parameter.
50787
50788 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50789
50790         Sync from Libtool:
50791
50792         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50793
50794         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50795         sharing with gnulib.  Report by Eric Blake.
50796
50797 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         * modules/isapipe: New file.
50800         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50801
50802 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50803
50804         * modules/configmake (Makefile.am): Add a comment, and omit
50805         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50806         by Bruno Haible.
50807
50808 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50809
50810         * m4/isapipe.m4: New file.
50811
50812 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         * lib/isapipe.c, lib/isapipe.h: New files.
50815
50816 2006-08-29  Jim Meyering  <jim@meyering.net>
50817
50818         * modules/configmake (Makefile.am): Make configmake.h depend on
50819         Makefile.  Otherwise, a stale configmake.h could hang around.
50820
50821 2006-08-29  Eric Blake  <ebb9@byu.net>
50822
50823         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50824         resolution of upstream bug 3044.
50825
50826 2006-08-29  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/localcharset (Depends-on): Add configmake.
50829         (Makefile.am): Remove setting of LIBDIR through DEFS.
50830
50831 2006-08-29  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50834         defined.
50835
50836 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * modules/fcntl: New file.
50839         * modules/chdir-safer (Depends-on): Add fcntl.
50840         * modules/fts: Likewise.
50841         * modules/mkdir-p: Likewise.
50842
50843         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50844         This undoes the most recent change, since we're now addressing the
50845         problem in a different way.
50846
50847         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50848         into output, since the output might be called Makefile.am even
50849         if $makefile_name is something different.
50850         (func_import): Use $makefile_am rather than
50851         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50852         empty.
50853
50854         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50855
50856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50857
50858         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50859         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50860         recent change to stdint.m4, since we're now addressing the problem in a
50861         different way.
50862
50863 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         * m4/fcntl_h.m4: New file.
50866
50867 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * lib/fcntl_.h: New file.
50870         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50871         the fcntl module.
50872         * lib/dirchownmod.c: Likewise.
50873         * lib/fts.c: Likewise.
50874
50875         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50876         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50877         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50878         just before including <inttypes.h>, to avoid circular inclusion.
50879
50880 2006-08-28  Jim Meyering  <jim@meyering.net>
50881
50882         * doc/visibility.texi: Actually read and correct the grammar of the
50883         sentence affected by yesterday's change.
50884
50885 2006-08-28  Eric Blake  <ebb9@byu.net>
50886
50887         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50888         needs wrapper.
50889
50890 2006-08-28  Eric Blake  <ebb9@byu.net>
50891
50892         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50893
50894 2006-08-28  Eric Blake  <ebb9@byu.net>
50895
50896         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50897
50898 2006-08-28  Bruno Haible  <bruno@clisp.org>
50899
50900         * modules/c-strstr: New file, from GNU gettext.
50901         * MODULES.html.sh (String handling): Add c-strstr.
50902
50903 2006-08-28  Bruno Haible  <bruno@clisp.org>
50904
50905         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50906         macros.
50907         Reported by Eric Blake.
50908
50909 2006-08-28  Bruno Haible  <bruno@clisp.org>
50910
50911         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50912         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50913         * lib/vasprintf.c: Include errno.h, limits.h.
50914         (EOVERFLOW): New fallback definition.
50915         (vasprintf): Test here whether the string length is > INT_MAX.
50916         * lib/vsnprintf.c: Include errno.h, limits.h.
50917         (EOVERFLOW): New fallback definition.
50918         (vsnprintf): Fix bug when generated string was too long for the buffer.
50919         Test here whether the string length is > INT_MAX.
50920
50921 2006-08-28  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/inttypes_.h (SCNX*): Remove definitions.
50924         Reported by Eric Blake.
50925
50926 2006-08-28  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/c-strstr.h: New file, from GNU gettext.
50929         * lib/c-strstr.c: New file, from GNU gettext.
50930
50931 2006-08-28  Bruno Haible  <bruno@clisp.org>
50932
50933         * gnulib-tool: Reorder some statements.
50934
50935 2006-08-28  Bruno Haible  <bruno@clisp.org>
50936
50937         * gnulib-tool: New option --makefile-name.
50938         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50939         $makefile_name.
50940         (func_import): Write $makefile_name to the cache file, and read it from
50941         there unless explicitly specified. Use $makefile_name as file name
50942         instead of Makefile.am. Adjust the recommendations accordingly.
50943
50944 2006-08-28  Bruno Haible  <bruno@clisp.org>
50945
50946         * gnulib-tool (func_verify_module): Check against misapplying patch.
50947
50948 2006-08-28  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (func_relativize, func_relconcat): New functions.
50951         Give an error if --local-dir is given with --update.
50952         Remove trailing slashes from $local_gnulib_dir.
50953         (func_import): Store the relativized $local_gnulib_dir in
50954         gnulib-cache.m4, and read it from there if not specified explicitly.
50955
50956 2006-08-28  Bruno Haible  <bruno@clisp.org>
50957
50958         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50959         is the current directory. Respect also $local_gnulib_dir.
50960
50961 2006-08-28  Bruno Haible  <bruno@clisp.org>
50962             Simon Josefsson  <jas@extundo.com>
50963
50964         BeOS portability.
50965         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50966
50967 2006-08-27  Jim Meyering  <jim@meyering.net>
50968
50969         * doc/visibility.texi: Remove duplicate word: "pointer".
50970
50971 2006-08-26  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50974         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50975         (Makefile.am): Create inttypes.h from inttypes_.h.
50976         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50977
50978         * modules/imaxabs: New file.
50979
50980         * modules/imaxdiv: New file.
50981
50982 2006-08-26  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/inttypes.m4: New file.
50985         * m4/_inttypes_h.m4: Remove file.
50986         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50987         PRI_MACROS_BROKEN.
50988         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50989
50990         * m4/imaxabs.m4: New file.
50991
50992         * m4/imaxdiv.m4: New file.
50993
50994 2006-08-26  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/inttypes_.h: New file.
50997         * lib/inttypes.h: Remove file.
50998         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50999
51000         * lib/imaxabs.c: New file.
51001
51002         * lib/imaxdiv.c: New file.
51003
51004 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51005
51006         New config-h module, so that "make" output needn't be cluttered
51007         by -DHAVE_CONFIG_H.
51008         * MODULES.html.sh (Support for building libraries and executables):
51009         Add config-h.
51010         * modules/config-h: New file.
51011         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51012         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51013         the config-h module is used.
51014
51015         New configmake module, so that "make" output needn't be cluttered
51016         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51017         * MODULES.html.sh (Support for building libraries and executables):
51018         Add configmake.
51019         * modules/configmake: New file.
51020
51021 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * m4/config-h.m4: New file.
51024
51025 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51026
51027         * config/srclist.txt: Add elisp-comp.
51028
51029 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51030
51031         * MODULES.html.sh (Support for building libraries and executables):
51032         Add elisp-comp.
51033         * build-aux/elisp-comp: New file.
51034         * modules/elisp-comp: New file.
51035
51036 2006-08-24  Bruno Haible  <bruno@clisp.org>
51037
51038         * gnulib-tool (func_create_testdir): Use non-default values of
51039         sourcebase and m4base.
51040
51041 2006-08-24  Bruno Haible  <bruno@clisp.org>
51042
51043         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51044         HTML structure.
51045
51046 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * modules/openat (Depends-on): Add lchown.
51049
51050 2006-08-23  Bruno Haible  <bruno@clisp.org>
51051
51052         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51053         of gl_LOCK_EARLY instead of gl_LOCK.
51054
51055 2006-08-23  Bruno Haible  <bruno@clisp.org>
51056
51057         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51058         on OSF/1 to no.
51059         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51060
51061 2006-08-23  Bruno Haible  <bruno@clisp.org>
51062
51063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51064         as unusable.
51065
51066         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51067         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51068         (gl_LOCK): New macro.
51069
51070 2006-08-22  Simon Josefsson  <jas@extundo.com>
51071
51072         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51073         to md5 module.
51074
51075 2006-08-22  Simon Josefsson  <jas@extundo.com>
51076
51077         * MODULES.html.sh: Add "Support for maintaining and release
51078         projects".
51079
51080         * build-aux/gnupload: New file, from coreutils.
51081
51082 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         Avoid the need for AC_LIBSOURCES in m4 macros.
51085         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51086         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51087         * modules/check-version (EXTRA_DIST): Add check-version.h.
51088         * modules/crc (EXTRA_DIST): Add crc.h.
51089         * modules/des (EXTRA_DIST): Add des.h.
51090         * modules/gc (EXTRA_DIST): Add gc.h.
51091         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51092         * modules/getline (EXTRA_DIST): Add getline.h.
51093         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51094         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51095         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51096         * modules/md2 (EXTRA_DIST): Add md2.h.
51097         * modules/md4 (EXTRA_DIST): Add md4.h.
51098         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51099         * modules/read-file (EXTRA_DIST): Add read-file.h.
51100         * modules/readline (EXTRA_DIST): Add readline.h.
51101         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51102         rijndael-api-fst.h.
51103
51104 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51105
51106         * m4/rijndael.m4 (gl_ARCFOUR):
51107         * m4/arctwo.m4 (gl_ARCTWO):
51108         * m4/check-version.m4 (gl_CHECK_VERSION):
51109         * m4/crc.m4 (gl_CRC):
51110         * m4/des.m4 (gl_DES):
51111         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51112         * m4/gc.m4 (gl_GC):
51113         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51114         * m4/getline.m4 (gl_FUNC_GETLINE):
51115         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51116         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51117         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51118         * m4/md2.m4 (gl_MD2):
51119         * m4/md4.m4 (gl_MD4):
51120         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51121         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51122         * m4/readline.m4 (gl_FUNC_READLINE):
51123         * m4/rijndael.m4 (gl_RIJNDAEL):
51124         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51125         to get the necessary .h files and whatnot.
51126
51127 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51130         gnulib rather than the other way around.
51131         * config/srclistvars.sh (COREUTILS): Remove.
51132
51133 2006-08-22  Jim Meyering  <jim@meyering.net>
51134
51135         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51136
51137         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51138
51139 2006-08-22  Eric Blake  <ebb9@byu.net>
51140
51141         * modules/regexprops-generic: New file.
51142         * MODULES.html.sh (Support for building documentation): List it.
51143
51144 2006-08-22  Eric Blake  <ebb9@byu.net>
51145
51146         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51147         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51149         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51150
51151 2006-08-22  Bruno Haible  <bruno@clisp.org>
51152
51153         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51154         and lib_LTLIBRARIES like the other lib_* variables.
51155
51156 2006-08-22  Bruno Haible  <bruno@clisp.org>
51157
51158         * build-aux/x-to-1.in: New file, from GNU gettext.
51159
51160 2006-08-22  Bruno Haible  <bruno@clisp.org>
51161
51162         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51163         <utmpx.h> exists.
51164
51165 2006-08-22  Bruno Haible  <bruno@clisp.org>
51166
51167         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51168         <utmpx.h> exists.
51169
51170 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51171
51172         BeOS portability.
51173         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51174         exist.
51175         Problem reported by Bruno Haible.
51176
51177 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         Avoid the need for AC_LIBSOURCES in m4 macros.
51180         * modules/acl (EXTRA_DIST): Add acl.h.
51181         * modules/argmatch (Files): Add m4/argmatch.m4.
51182         (configure.ac): Add gl_ARGMATCH.
51183         (EXTRA_DIST): Renamed from lib_SOURCES, for
51184         consistency with the other modules.  Remove argmatch.c.
51185         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51186         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51187         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51188         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51189         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51190         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51191         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51192         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51193         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51194         * modules/closeout (EXTRA_DIST): Add closeout.h.
51195         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51196         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51197         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51198         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51199         dirname.h; remove basename.c and stripslash.c.
51200         * modules/exclude (EXTRA_DIST): Add exclude.h.
51201         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51202         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51203         * modules/file-type (EXTRA_DIST): Add file-type.h.
51204         * modules/filemode (EXTRA_DIST): Add filemode.h.
51205         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51206         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51207         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51208         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51209         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51210         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51211         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51212         * modules/getdate (EXTRA_DIST): Add getdate.c.
51213         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51214         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51215         * modules/getpass (EXTRA_DIST): Add getpass.h.
51216         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51217         * modules/group-member (EXTRA_DIST): Add group-member.h.
51218         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51219         * modules/hash (EXTRA_DIST): Add hash.h.
51220         * modules/human (EXTRA_DIST): Add human.h.
51221         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51222         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51223         * modules/lchown (EXTRA_DIST): Add lchown.h.
51224         * modules/long-options (EXTRA_DIST): Add long-options.h.
51225         * modules/lstat (EXTRA_DIST): Add lstat.h.
51226         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51227         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51228         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51229         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51230         * modules/memxor (EXTRA_DIST): Add memxor.h.
51231         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51232         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51233         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51234         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51235         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51236         * modules/physmem (EXTRA_DIST): Add physmem.h.
51237         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51238         * modules/posixver (EXTRA_DIST): Add posixver.h.
51239         * modules/quote (EXTRA_DIST): Add quote.h.
51240         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51241         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51242         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51243         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51244         regex_internal.h regexec.c.
51245         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51246         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51247         * modules/same (EXTRA_DIST): Add same.h.
51248         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51249         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51250         * modules/savedir (EXTRA_DIST): Add savedir.h.
51251         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51252         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51253         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51254         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51255         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51256         * modules/strdup (EXTRA_DIST): Add strdup.h.
51257         * modules/strftime (EXTRA_DIST): Add strftime.h.
51258         * modules/strndup (EXTRA_DIST): Add strndup.h.
51259         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51260         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51261         * modules/time_r (EXTRA_DIST): Add time_r.h.
51262         * modules/timespec (EXTRA_DIST): Add timespec.h.
51263         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51264         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51265         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51266         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51267         * modules/userspec (EXTRA_DIST): Add userspec.h.
51268         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51269         * modules/utimens (EXTRA_DIST): Add utimens.h.
51270         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51271         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51272         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51273         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51274         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51275         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51276         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51277         * modules/yesno (EXTRA_DIST): Add yesno.h.
51278
51279 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51282
51283         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51284         * m4/dev-ino.m4, same-inode.m4: Remove.
51285
51286         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51287         * m4/acl.m4 (AC_FUNC_ACL):
51288         * m4/backupfile.m4 (gl_BACKUPFILE):
51289         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51290         * m4/canon-host.m4 (gl_CANON_HOST):
51291         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51292         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51293         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51294         * m4/cloexec.m4 (gl_CLOEXEC):
51295         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51296         * m4/closeout.m4 (gl_CLOSEOUT):
51297         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51298         * m4/dirname.m4 (gl_DIRNAME):
51299         * m4/exclude.m4 (gl_EXCLUDE):
51300         * m4/exitfail.m4 (gl_EXITFAIL):
51301         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51302         * m4/file-type.m4 (gl_FILE_TYPE):
51303         * m4/filemode.m4 (gl_FILEMODE):
51304         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51305         * m4/fpending.m4 (gl_FUNC_FPENDING):
51306         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51307         * m4/fts.m4 (gl_FUNC_FTS):
51308         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51309         * m4/getdate.m4 (gl_GETDATE):
51310         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51311         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51312         * m4/getpass.m4 (gl_FUNC_GETPASS):
51313         * m4/gettime.m4 (gl_GETTIME):
51314         * m4/getugroups.m4 (gl_GETUGROUPS):
51315         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51316         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51317         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51318         * m4/hash.m4 (gl_HASH):
51319         * m4/idcache.m4 (gl_IDCACHE):
51320         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51321         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51322         * m4/long-options.m4 (gl_LONG_OPTIONS):
51323         * m4/lstat.m4 (gl_FUNC_LSTAT):
51324         * m4/md5.m4 (gl_MD5):
51325         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51326         * m4/memcoll.m4 (gl_MEMCOLL):
51327         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51328         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51329         * m4/memxor.m4 (gl_MEMXOR):
51330         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51331         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51332         * m4/modechange.m4 (gl_MODECHANGE):
51333         * m4/mountlist.m4 (gl_MOUNTLIST):
51334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51335         * m4/openat.m4 (gl_FUNC_OPENAT):
51336         * m4/pathmax.m4 (gl_PATHMAX):
51337         * m4/physmem.m4 (gl_PHYSMEM):
51338         * m4/posixtm.m4 (gl_POSIXTM):
51339         * m4/posixver.m4 (gl_POSIXVER):
51340         * m4/quote.m4 (gl_QUOTE):
51341         * m4/quotearg.m4 (gl_QUOTEARG):
51342         * m4/readtokens.m4 (gl_READTOKENS):
51343         * m4/readutmp.m4 (gl_READUTMP):
51344         * m4/regex.m4 (gl_REGEX):
51345         * m4/safe-read.m4 (gl_SAFE_READ):
51346         * m4/safe-write.m4 (gl_SAFE_WRITE):
51347         * m4/same.m4 (gl_SAME):
51348         * m4/save-cwd.m4 (gl_SAVE_CWD):
51349         * m4/savedir.m4 (gl_SAVEDIR):
51350         * m4/settime.m4 (gl_SETTIME):
51351         * m4/sha1.m4 (gl_SHA1):
51352         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51353         * m4/stat-macros.m4 (gl_STAT_MACROS):
51354         * m4/stat-time.m4 (gl_STAT_TIME):
51355         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51356         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51357         * m4/strdup.m4 (gl_FUNC_STRDUP):
51358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51359         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51360         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51361         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51362         * m4/time_r.m4 (gl_TIME_R):
51363         * m4/timespec.m4 (gl_TIMESPEC):
51364         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51365         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51366         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51367         * m4/userspec.m4 (gl_USERSPEC):
51368         * m4/utimecmp.m4 (gl_UTIMECMP):
51369         * m4/utimens.m4 (gl_UTIMENS):
51370         * m4/xalloc.m4 (gl_XALLOC):
51371         * m4/xgetcwd.m4 (gl_XGETCWD):
51372         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51373         * m4/xreadlink.m4 (gl_XREADLINK):
51374         * m4/xstrtod.m4 (gl_XSTRTOD):
51375         * m4/yesno.m4 (gl_YESNO):
51376         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51377         to get the necessary .h files and whatnot.
51378
51379 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51380             Bruno Haible  <bruno@clisp.org>
51381
51382         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51383         /bin/sh understanding of '!' conditional negation.
51384
51385 2006-08-21  Jim Meyering  <jim@meyering.net>
51386
51387         * modules/openat (Depends-on): Really alphabetize.
51388
51389         * modules/acl (Depends-on): Add error and quote.
51390
51391         * check-module (find_included_lib_files): Add at-func.c to the
51392         ok-to-include-more-than-once white list.
51393
51394         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51395
51396 2006-08-21  Bruno Haible  <bruno@clisp.org>
51397
51398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51399         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51400         Reported by Martin Lambers <marlam@marlam.de>.
51401
51402 2006-08-21  Bruno Haible  <bruno@clisp.org>
51403
51404         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51405         specify an installation location, don't emit a noinst_LIBRARIES or
51406         noinst_LTLIBRARIES assignment.
51407
51408 2006-08-21  Bruno Haible  <bruno@clisp.org>
51409
51410         BeOS portability.
51411         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51412         BeOS has mbrtowc() but no <wctype.h>.
51413
51414 2006-08-21  Bruno Haible  <bruno@clisp.org>
51415
51416         BeOS portability.
51417         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51418         exist.
51419
51420 2006-08-21  Bruno Haible  <bruno@clisp.org>
51421
51422         BeOS portability.
51423         * lib/mbchar.h: Include <wctype.h> only if it exists.
51424
51425 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         Remove files that are no longer needed by their respective modules.
51428         * m4/obstack.m4: Remove.
51429         * m4/strerror_r.m4: Remove.
51430         * m4/uint32_t.m4: Remove.
51431         * m4/uintptr_t.m4: Remove.
51432         * m4/ullong_max.m4: Remove.
51433         * m4/xstrtoimax.m4: Remove.
51434         * m4/xstrtoumax.m4: Remove.
51435
51436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51437         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51438         dependencies now capture this.
51439
51440         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51441         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51442         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51443         * m4/human.m4 (gl_HUMAN): Likewise.
51444         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51445         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51446
51447         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51448
51449         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51450         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51451         stdint.
51452         * m4/human.m4 (gl_HUMAN): Likewise.
51453         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51454         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51455         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51456         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51457         * m4/xstrtol (gl_XSTRTOL): Likewise.
51458
51459         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51460         AC_TYPE_LONG_LONG_INT.
51461         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51462         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51463         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51464         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51465
51466         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51467         on stdbool.
51468
51469         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51470         (gl_PREREQ_XSTRTOUL): Remove.
51471
51472         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51473
51474         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51475         mode.
51476
51477 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51478
51479         Add and change modules to make it easier for coreutils to use
51480         gnulib-tool.
51481         * modules/backupfile (Files): Remove m4/d-ino.m4.
51482         (Depends-on): Add d-ino.
51483         * modules/cycle-check (Depends-on): Add stdint.
51484         (lib_SOURCES): Add cycle-check.h.
51485         * modules/d-ino: New module.
51486         * modules/d-type: New module.
51487         * modules/error (Files): Remove m4/strerror_r.m4.
51488         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51489         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51490         m4/inttypes_h.m4, m4/uintmax_t.m4.
51491         (Depends-on): Add stdint.
51492         (lib_SOURCES): Add fsusage.h.
51493         * modules/getcwd (Files): Remove d-ino.m4.
51494         (Depends-on): Add d-ino.
51495         * modules/getndelim2 (Depends-on): Add stdint.
51496         * modules/glob (Files): Remove m4/d-type.m4.
51497         (Depends-on): Add d-type.
51498         * modules/host-os: New module.
51499         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51500         m4/inttypes_h.m4, m4/uintmax_t.m4.
51501         * Depends-on: Add stdint.
51502         (lib_SOURCES): Add human.h.
51503         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51504         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51505         m4/uintmax_t.m4, m4/ulonglong.m4.
51506         (Depends-on): Add stdint.
51507         (EXTRA_DIST): Add inttostr.h.
51508         * modules/lchmod: New module.
51509         * modules/link-follow: New module.
51510         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51511         (Depends-on): Add lchmod.
51512         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51513         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51514         (Depends-on): Add stdint.
51515         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51516         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51517         (Depends-on): Add stdint.
51518         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51519         * modules/perl: New module.
51520         * modules/regex (Depends-on): Add stdint.
51521         * modules/rmdir-errno: New module.
51522         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51523         m4/intmax_t.m4.
51524         (Depends-on): Add stdint.
51525         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51526         m4/uintmax_t.m4.
51527         (Depends-on): Add stdint.
51528         * modules/unlink-busy: New module.
51529         * modules/utimecmp (Depends-on): Add stdint.
51530         * modules/uptime: New module.
51531         * modules/winsz-ioctl: New module.
51532         * modules/winsz-termios: New module.
51533         * modules/xnanosleep (Depends-on): Add nanosleep.
51534         * modules/ullong_max: Remove.
51535         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51536         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51537         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51538         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51539         (Depends-on): Add inttypes.
51540         (lib_SOURCES): Add xstrtol.h.
51541         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51542         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51543         * MODULES.html.sh: Move 'assert' into the assert section.
51544         Move 'dummy' into the linking section.
51545         Remove ullong_max.
51546         Add section for compatibility checks for POSIX:2001 functions,
51547         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51548         winsz-ioctl, and winsz-termios into it.
51549         Add lchmod.
51550         Add top-level Misc section and put host-os, perl, and uptime
51551         into it.
51552
51553 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51556         now assume the stdint module.  Do not include inttypes.h.
51557         * lib/fsusage.h: Likewise.
51558         * lib/getndelim2.c: Likewise.
51559         * lib/human.h: Likewise.
51560         * lib/inttostr.h: Likewise.
51561         * lib/obstack.c: Likewise.
51562         * lib/regex_internal.h: Likewise.
51563         * lib/tempname.c: Likewise.
51564         * lib/utimecmp.c: Likewise.
51565         * lib/xstrtol.h: Likewise.
51566
51567         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51568
51569         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51570         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51571         * lib/xtime.h: Likewise.
51572
51573 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51574
51575         * modules/openat (Files): Add lib/fchmodat.c.
51576         Fixes problem reported by Jay Youngman.
51577
51578 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51581         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51582
51583 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51584             Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51587         and is a script that invokes bison. Tighten the code. Add comments.
51588
51589 2006-08-18  Jim Meyering  <jim@meyering.net>
51590
51591         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51592         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51593         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51594         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51595
51596 2006-08-18  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/bison-i18n: New file.
51599         * MODULES.html.sh (Internationalization functions): Add it.
51600
51601 2006-08-18  Bruno Haible  <bruno@clisp.org>
51602
51603         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51604         sys/statvfs.h. When getmntinfo was found, check its declaration and
51605         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51606
51607 2006-08-18  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/bison-i18n.m4: New file, from bison.
51610
51611 2006-08-18  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51614         (ME_DUMMY): Treat "kernfs" as a dummy.
51615         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51616
51617 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         Update from coreutils.
51620
51621         2006-08-15  Jim Meyering  <jim@meyering.net>
51622
51623         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51624
51625         2006-01-17  Jim Meyering  <jim@meyering.net>
51626
51627         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51628
51629         2006-01-11  Jim Meyering  <jim@meyering.net>
51630
51631         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51632         Check for the lchmod function.
51633
51634 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51635
51636         Update from coreutils.
51637
51638         * lib/__fpending.h: Add copyright notice.
51639         * lib/fprintftime.h: Likewise.
51640         * lib/savedir.c: Use (C) in copyright notice.
51641         * lib/savedir.h: Likewise.
51642
51643         2006-08-15  Jim Meyering  <jim@meyering.net>
51644
51645         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51646         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51647         in support of the EXPECTED_ERRNO macro.
51648         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51649         definitions.  Instead, define the appropriate symbols and include
51650         "at-func.c".
51651         * lib/mkdirat.c (mkdirat): Likewise.
51652         * lib/fchmodat.c (fchmodat): Likewise.
51653         (ENOSYS): Remove definition.
51654         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51655         it.  Don't include "unistd--.h" -- it wasn't ever used.
51656
51657         2006-01-17  Jim Meyering  <jim@meyering.net>
51658
51659         Rewrite fts.c not to change the current working directory,
51660         by using openat, fstatat, fdopendir, etc..
51661
51662         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51663         (HAVE_OPENAT_SUPPORT): Define.
51664         [_LIBC] (fchdir): Don't undef or define; no longer used.
51665         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51666         Now, this `function' always succeeds, and consumes its file descriptor
51667         parameter -- so callers must not close such FDs.  Update callers.
51668         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51669         (diropen): Add parameter, SP.  Adjust all callers.
51670         Implement using diropen_fd, rather than open.
51671         (fts_open): Initialize new member, fts_cwd_fd.
51672         Remove fts_rft-setting code.
51673         (fts_close): Close fts_cwd_fd, if necessary.
51674         (__opendir2): Define in terms of opendir or opendirat,
51675         depending on whether the FST_NOCHDIR flag is set.
51676         (fts_build): Since fts_safe_changedir consumes its FD, and since
51677         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51678         and close the dup'd file descriptor upon failure.
51679         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51680         (fts_safe_changedir): Tweak semantics to reflect that this function
51681         now calls cwd_advance_fd and hence consumes its FD argument.
51682         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51683         [struct FTS] (fts_rft): Remove now-unused member.
51684         [struct FTS] (fts_cycle.state): Improve comment.
51685
51686         * lib/openat.c (openat_needs_fchdir): New function.
51687         * lib/openat.h (openat_needs_fchdir): Declare it.
51688
51689 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51692         Problem and fix reported by Pádraig Brady in
51693         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51694
51695 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51698
51699 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * lib/memcoll.c (memcoll): Optimize for the common case where the
51702         arguments are bytewise equal.
51703
51704 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         * doc/regexprops-generic.texi: Add a copyright notice.
51707
51708 2006-08-15  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/tmpdir (License): Change to LGPL.
51711
51712 2006-08-15  Bruno Haible  <bruno@clisp.org>
51713
51714         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51715         module.
51716
51717 2006-08-14  Simon Josefsson  <jas@extundo.com>
51718
51719         * config/srclist.txt: Add gnupload.
51720
51721 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51722
51723         Change copyright notice from LGPL 2 to GPL 2, since that's the
51724         standard form used in the gnulib repository.
51725         * tests/test-lock.c: Likewise.
51726         * tests/test-stdint.c: Likewise.
51727         * tests/test-tls.c: Likewise.
51728
51729         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51730         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51731         Add copyright notice.
51732
51733         * check-module: Add copyright notice.  Output a copyright
51734         notice if "--version" is specified.
51735         * modules/COPYING: New file.
51736         * tests/test-getaddrinfo.c: Add copyright notice.
51737         * tests/test-verify.c: Likewise.
51738
51739 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         Change copyright notice from LGPL 2 to GPL 2, since that's the
51742         standard form used in the gnulib repository.
51743         * lib/lock.c: LGPL -> GPL.
51744         * lib/lock.h: Likewise.
51745         * lib/strnlen1.c: Likewise.
51746         * lib/strnlen1.h: Likewise.
51747         * lib/tls.c: Likewise.
51748         * lib/tls.h: Likewise.
51749         * lib/tmpdir.c: Likewise.
51750
51751         * lib/TODO: Remove; this belongs only in coreutils.
51752
51753 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51754
51755         Add copyright notices to long-enough files that lack them, since
51756         otherwise the files aren't clearly free.  Use the same notice that
51757         getdate.texi already uses.
51758         * doc/alloca-opt.texi: Add copyright notice.
51759         * doc/alloca.texi: Likewise.
51760         * doc/ctime.texi: Likewise.
51761         * doc/functions.texi: Likewise.
51762         * doc/gcd.texi: Likewise.
51763         * doc/gnulib-tool.texi: Likewise.
51764         * doc/inet_ntoa.texi: Likewise.
51765         * doc/visibility.texi: Likewise.
51766
51767         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51768         * doc/quote.texi: Add copyright notice.
51769
51770         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51771         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51772         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51773         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51774         is now obsolete, and give a pointer to the Sun list.
51775         Add copyright notice.
51776
51777 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         * config/srclistvars.sh: Add copyright notice.
51780
51781 2006-08-14  Eric Blake  <ebb9@byu.net>
51782
51783         Import the following change from libc:
51784
51785         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51786
51787         Upstream bug 2997.
51788         * lib/misc/error.c: Add space between program name and message if file
51789         name is missing.
51790
51791 2006-08-12  Karl Berry  <karl@gnu.org>
51792
51793         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51794         remove, these originate in gnulib now.
51795
51796 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51797
51798         * doc/Makefile (standards.info standards.html standards.dvi):
51799         Also depend on make-stds.texi.
51800
51801 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51804         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51805
51806         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51807         in wchar_t.  Problem reported by Eric Blake.
51808
51809         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51810         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51811         Also, help the compiler to keep LEN in a register.
51812
51813 2006-08-11  Eric Blake  <ebb9@byu.net>
51814
51815         * users.txt: Sort.  Add tar.
51816
51817 2006-08-11  Bruno Haible  <bruno@clisp.org>
51818
51819         * users.txt: New file.
51820
51821 2006-08-11  Bruno Haible  <bruno@clisp.org>
51822
51823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51824         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51825
51826 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * modules/snprintf (Depends-on): Remove minmax.
51829         (Maintainer): Add self and Bruno.
51830
51831 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51834         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51835         (EOVERFLOW): Define if the system does not.
51836         Do not include "minmax.h"; it wasn't used.
51837         (snprintf): Don't assume size_t promotes to an unsigned type.
51838         Fix bug when generated string was too long for the buffer: the
51839         buffer's contents are supposed to be the initial prefix of the
51840         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51841         exceeds INT_MAX; do the check ourselves.
51842
51843         Import the following changes from libc:
51844
51845         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51846
51847         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51848         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51849         set wc to the byte which couldn't be converted.
51850         (re_string_reconstruct): Don't clear valid_raw_len before calling
51851         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51852         tip_context using re_string_context_at.
51853
51854         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51855
51856         * lib/posix/regex.h: g++ still cannot handled [restrict].
51857
51858         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51859
51860         * lib/posix/regex.h: Remove special handling for VMS.
51861
51862 2006-08-10  Jim Meyering  <jim@meyering.net>
51863
51864         * modules/same-inode: New module.
51865         * modules/dev-ino: New module.
51866         * modules/cycle-check: Depend on these modules, rather than simply
51867         including their .h files.
51868         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51869         required via m4/cycle-check.m4.
51870         * modules/same: Depend on new same-inode module, rather than
51871         including same-inode.h.
51872         * modules/chdir-safer: New file.
51873
51874         * modules/chown (Depends-on): Add stat-macros.
51875
51876 2006-08-10  Jim Meyering  <jim@meyering.net>
51877
51878         * m4/cycle-check.m4: New file.
51879         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51880         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51881
51882 2006-08-10  Eric Blake  <ebb9@byu.net>
51883
51884         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51885         in from original proposal.
51886
51887 2006-08-10  Eric Blake  <ebb9@byu.net>
51888         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51889
51890         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51891         namespace.
51892
51893 2006-08-10  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51896         as well.
51897
51898 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51899
51900         Sync from coreutils.
51901
51902         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51903
51904         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51905         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51906
51907 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51908
51909         * modules/restrict: Remove; no longer needed now that we assume
51910         Autoconf 2.59 or later.
51911         * MODULES.html.sh: Remove 'restrict'.
51912         * modules/argp (Depends-on): Remove 'restrict'.
51913         * modules/base64 (Depends-on): Likewise.
51914         * modules/gc (Depends-on): Likewise.
51915         * modules/getaddrinfo (Depends-on): Likewise.
51916         * modules/glob (Depends-on): Likewise.
51917         * modules/inet_ntop (Depends-on): Likewise.
51918         * modules/inet_pton (Depends-on): Likewise.
51919         * modules/memxor (Depends-on): Likewise.
51920         * modules/regex (Depends-on): Likewise.
51921         * modules/strtok_r (Depends-on): Likewise.
51922         * modules/time_r (Depends-on): Likewise.
51923
51924 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51927         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51928         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51929         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51930         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51931         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51932         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51933         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51934
51935         Merge from coreutils.
51936         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51937         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51938         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51939         * m4/time_r.m4 (gl_TIME_R): Likewise.
51940
51941 2006-08-09  Karl Berry  <karl@gnu.org>
51942
51943         * config/srclist.txt: no more gettext-tools, per Bruno.
51944
51945 2006-08-08  Eric Blake  <ebb9@byu.net>
51946
51947         * modules/verror: New module.
51948         * MODULES.html.sh: Document it.
51949
51950 2006-08-08  Eric Blake  <ebb9@byu.net>
51951
51952         * lib/verror.h, lib/verror.c: New files.
51953
51954 2006-08-08  Eric Blake  <ebb9@byu.net>
51955
51956         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51957         verror_at_line output complies with GNU Coding Standards even when
51958         file is NULL.
51959
51960 2006-08-07  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51963         versions of AIX.
51964         Reported by Ralf Wildenhues.
51965
51966 2006-08-07  Bruno Haible  <bruno@clisp.org>
51967
51968         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51969         in an AC_DEFUN. Needed so that the autoconf snippets can use
51970         AC_REQUIRE.
51971
51972 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51973
51974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51975         Initialize pkgdata_DATA.
51976         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51977         overriding it.
51978
51979 2006-08-06  Eric Blake  <ebb9@byu.net>
51980
51981         * lib/error.h: Fold in some upstream changes from glibc.
51982         * lib/error.c: Likewise.
51983
51984 2006-08-04  Bruno Haible  <bruno@clisp.org>
51985
51986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51987         Make the mostlyclean-local rule depend on mostlyclean-generic.
51988         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51989
51990 2006-07-31  Bruno Haible  <bruno@clisp.org>
51991
51992         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51993         <stdlib.h>, <string.h>.
51994
51995 2006-07-30  Bruno Haible  <bruno@clisp.org>
51996
51997         * modules/readlink (License): Change to LGPL.
51998
51999 2006-07-30  Bruno Haible  <bruno@clisp.org>
52000
52001         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52002         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52003         set PKGDATADIR to point to it.
52004
52005 2006-07-30  Bruno Haible  <bruno@clisp.org>
52006
52007         * modules/csharpexec (configure.ac): Comment out macro invocation.
52008         * modules/javaexec (configure.ac): Likewise.
52009         * modules/javacomp-script (configure.ac): Likewise.
52010
52011         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52012
52013 2006-07-30  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52016         linked-list.
52017
52018 2006-07-30  Bruno Haible  <bruno@clisp.org>
52019
52020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52021
52022 2006-07-30  Bruno Haible  <bruno@clisp.org>
52023
52024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52025         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52026         get removed.
52027
52028 2006-07-29  Bruno Haible  <bruno@clisp.org>
52029
52030         Make it possible for gnulib-tool to work with locally modified or
52031         augmented gnulib repositories.
52032         * gnulib-tool (func_usage): Document --local-dir option.
52033         (local_gnulib_dir): New variable.
52034         Handle --local-dir option.
52035         (func_lookup_file): New function.
52036         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52037         (func_get_description, func_get_filelist, func_get_description,
52038         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52039         func_get_automake_snippet, func_get_include_directive,
52040         func_get_license, func_get_maintainer): Use func_lookup_file.
52041         (func_import, func_create_testdir): Use func_lookup_file.
52042
52043 2006-07-29  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/setenv (Depends-on): Add unistd.
52046
52047 2006-07-29  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52050
52051 2006-07-29  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52054
52055 2006-07-29  Bruno Haible  <bruno@clisp.org>
52056
52057         * gnulib-tool (import, update): If there is no Makefile.am, look at
52058         aclocal.m4, instead of bailing out.
52059
52060 2006-07-29  Bruno Haible  <bruno@clisp.org>
52061
52062         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52063         Categorize the options by when they are useful.
52064
52065 2006-07-29  Bruno Haible  <bruno@clisp.org>
52066
52067         * gnulib-tool (func_usage): Document option --no-libtool.
52068         Handle option --no-libtool.
52069         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52070         for changed semantics of $libtool variable.
52071         (func_import): Likewise. If libtool is not used, show this through
52072         an option --no-libtool.
52073         (func_create_testdir): Update.
52074
52075 2006-07-29  Bruno Haible  <bruno@clisp.org>
52076
52077         * gnulib-tool (func_import): Extend error message about missing
52078         --doc-base.
52079
52080 2006-07-29  Bruno Haible  <bruno@clisp.org>
52081
52082         * gnulib-tool (func_import): Don't create the $docbase directory if
52083         there is no file to store there.
52084
52085 2006-07-29  Bruno Haible  <bruno@clisp.org>
52086
52087         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52088         relevant, look for configure.ac there, not in the current directory.
52089         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52090
52091 2006-07-29  Bruno Haible  <bruno@clisp.org>
52092
52093         * gnulib-tool (SORT): New variable.
52094         (func_usage): Undocument --assume-autoconf option.
52095         Remove --assume-autoconf option handling.
52096         (autoconf_minversion): Determine from the contents of configure.ac.
52097         (func_import): Remove autoconf_minversion handling.
52098         Suggested by Eric Blake.
52099
52100 2006-07-29  Bruno Haible  <bruno@clisp.org>
52101
52102         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52103
52104 2006-07-29  Bruno Haible  <bruno@clisp.org>
52105
52106         * config/srclist.txt (*setenv.[ch]): Remove rules.
52107
52108 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52109
52110         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52111
52112 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52113
52114         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52115         arpa/inet.h.
52116
52117 2006-07-28  Simon Josefsson  <jas@extundo.com>
52118
52119         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52120         * modules/inet_pton (Depends-on): Likewise.
52121
52122 2006-07-28  Simon Josefsson  <jas@extundo.com>
52123
52124         * m4/netinet_in_h.m4: New file.
52125
52126 2006-07-28  Simon Josefsson  <jas@extundo.com>
52127
52128         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52129         #include's.
52130
52131 2006-07-28  Simon Josefsson  <jas@extundo.com>
52132
52133         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52134         #include's.
52135
52136 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52139         setgid on directories only if they set these bits.
52140         * lib/modechange.h: Remove obsolete comment about masks.
52141
52142 2006-07-28  Eric Blake  <ebb9@byu.net>
52143
52144         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52145         macro expansion.
52146
52147 2006-07-28  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52150
52151 2006-07-28  Bruno Haible  <bruno@clisp.org>
52152
52153         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52154
52155 2006-07-28  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52158         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52159         Define fallbacks.
52160         Avoids link error on FreeBSD 4.x.
52161         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52162
52163         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52164         encoding.
52165         * lib/mbswidth.c (iswcntrl): Likewise.
52166
52167 2006-07-27  Bruno Haible  <bruno@clisp.org>
52168
52169         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52170         test.
52171
52172 2006-07-27  Bruno Haible  <bruno@clisp.org>
52173
52174         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52175         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52176         defined.
52177
52178 2006-07-26  Eric Blake  <ebb9@byu.net>
52179
52180         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52181
52182 2006-07-26  Eric Blake  <ebb9@byu.net>
52183
52184         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52185         like mingw that lack mkstemp.
52186         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52187         avoid compilation warning on mingw.
52188
52189 2006-07-26  Bruno Haible  <bruno@clisp.org>
52190
52191         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52192         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52193         INT_FAST*_MIN, INTPTR_MIN.
52194
52195 2006-07-25  Bruno Haible  <bruno@clisp.org>
52196
52197         * modules/version-etc (Depends-on): Add stdarg.
52198
52199 2006-07-25  Bruno Haible  <bruno@clisp.org>
52200
52201         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52202         complex commands.
52203
52204 2006-07-25  Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52207         defined in <stdarg.h> or config.h.
52208
52209 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52210
52211         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52212         (gl_STDIO_SAFER): Remove.
52213
52214 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         * MODULES.html.sh (File stream based Input/Output):
52217         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52218         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52219         * modules/fopen-safer, modules/tmpfile-safer: New files.
52220         * modules/stdio-safer: Remove.
52221
52222 2006-07-24  Bruno Haible  <bruno@clisp.org>
52223
52224         * modules/tmpdir: New file.
52225         * MODULES.html.sh (File system functions): Add it.
52226
52227 2006-07-24  Bruno Haible  <bruno@clisp.org>
52228
52229         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52230         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52231
52232 2006-07-24  Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/clean-temp: New file.
52235
52236 2006-07-24  Bruno Haible  <bruno@clisp.org>
52237
52238         * m4/tmpdir.m4: New file, from GNU gettext.
52239
52240 2006-07-24  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/tmpdir.h: New file, from GNU gettext.
52243         * lib/tmpdir.c: New file, from GNU gettext.
52244
52245 2006-07-24  Bruno Haible  <bruno@clisp.org>
52246
52247         * lib/clean-temp.h: New file, from GNU gettext.
52248         * lib/clean-temp.c: New file, from GNU gettext.
52249
52250 2006-07-23  Eric Blake  <ebb9@byu.net>
52251
52252         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52253         (Depends-on): Add binary-io.
52254
52255 2006-07-23  Eric Blake  <ebb9@byu.net>
52256
52257         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52258
52259 2006-07-23  Eric Blake  <ebb9@byu.net>
52260
52261         * lib/tmpfile-safer.c: New file.
52262         * lib/stdio-safer.h (fopen_safer): Add prototype.
52263         * lib/stdio--.h (tmpfile): Make safer.
52264
52265 2006-07-23  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52268         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52269         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52270         gl_linked_remove_at): Use it.
52271
52272 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52273         and Simon Josefsson <jas@extundo.com>
52274
52275         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52276
52277         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52278
52279 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         * modules/close-stream: New file.
52282         * modules/closeout (Description): Make it clear that it exits
52283         with a diagnostic on error.
52284         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52285         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52286
52287 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         * m4/close-stream.m4: New file.
52290
52291 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         * lib/close-stream.c, lib/close-stream.h: New files.
52294
52295 2006-07-22  Bruno Haible  <bruno@clisp.org>
52296
52297         Merge from GNU gettext 0.15.
52298
52299         2006-05-01  Bruno Haible  <bruno@clisp.org>
52300
52301                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52302
52303         2006-07-22  Bruno Haible  <bruno@clisp.org>
52304
52305                 * modules/javaversion: New file.
52306                 * MODULES.html.sh (Java): Add javaversion.
52307
52308         2006-03-12  Bruno Haible  <bruno@clisp.org>
52309
52310                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52311
52312         2005-12-04  Bruno Haible  <bruno@clisp.org>
52313
52314                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52315                 (untested).
52316
52317         2006-06-21  Bruno Haible  <bruno@clisp.org>
52318
52319                 Avoid warnings from recent versions of mcs.
52320                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52321                 -o, -L, -r any more. Use options documented since mcs-1.0
52322                 instead. Similarly for -g.
52323
52324         2005-12-04  Bruno Haible  <bruno@clisp.org>
52325
52326                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52327                 .resources, not .resource.
52328
52329         2005-07-09  Bruno Haible  <bruno@clisp.org>
52330
52331                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52332                 add a .dll suffix.
52333                 Reported by Mark Junker <mjscod@gmx.de>.
52334
52335         2006-07-22  Bruno Haible  <bruno@clisp.org>
52336
52337                 * modules/gettext: Upgrade to gettext-0.15.
52338                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52339                 m4/visibility.m4.
52340                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52341
52342 2006-07-22  Bruno Haible  <bruno@clisp.org>
52343
52344         Merge from GNU gettext 0.15.
52345
52346         2006-03-25  Bruno Haible  <bruno@clisp.org>
52347
52348                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52349
52350         2006-07-21  Bruno Haible  <bruno@clisp.org>
52351
52352                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52353                 "1.1".
52354
52355         2006-05-09  Bruno Haible  <bruno@clisp.org>
52356
52357                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52358                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52359                 for the conftestver execution.
52360
52361         2006-05-01  Bruno Haible  <bruno@clisp.org>
52362
52363                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52364                 optional target-version argument. Verify that the compiler
52365                 groks source of the specified source-version, or add -source
52366                 option as necessary. Verify that the compiler produces
52367                 bytecode in the specified target-version, or add -target and
52368                 -source options as necessary. Make the result of the test
52369                 available as variable CONF_JAVAC. Also log error output in
52370                 config.log.
52371
52372         2006-03-11  Bruno Haible  <bruno@clisp.org>
52373
52374                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52375
52376         2006-05-09  Bruno Haible  <bruno@clisp.org>
52377
52378                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52379                 CLASSPATH_SEPARATOR to a semicolon.
52380
52381         2006-03-12  Bruno Haible  <bruno@clisp.org>
52382
52383                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52384                 available as variable CONF_JAVA, for subsequent autoconf
52385                 tests. Also log error output in config.log.
52386
52387         2006-07-19  Bruno Haible  <bruno@clisp.org>
52388
52389                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52390                 that getline works on glibc2 systems. Needed to avoid trouble
52391                 in relocatable.c.
52392                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52393
52394         2005-12-04  Bruno Haible  <bruno@clisp.org>
52395
52396                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52397                 launcher (untested).
52398
52399         2005-12-04  Bruno Haible  <bruno@clisp.org>
52400
52401                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52402
52403         2006-07-22  Bruno Haible  <bruno@clisp.org>
52404
52405                 * gettext.m4: Update from GNU gettext-0.15.
52406                 * nls.m4: Likewise.
52407                 * po.m4: Likewise.
52408                 * inttypes-pri.m4: Likewise.
52409                 * inttypes-h.m4: Renamed from inttypes.m4.
52410                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52411
52412 2006-07-22  Bruno Haible  <bruno@clisp.org>
52413
52414         Merge from GNU gettext 0.15.
52415
52416         2005-07-05  Bruno Haible  <bruno@clisp.org>
52417
52418                 * printf-args.c (printf_fetchargs): Work around broken
52419                 definition of wint_t on mingw.
52420
52421         2005-02-12  Bruno Haible  <bruno@clisp.org>
52422
52423                 * xallocsa.h: Add extern "C" for C++.
52424
52425         2006-05-17  Bruno Haible  <bruno@clisp.org>
52426
52427                 Cygwin portability.
52428                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52429
52430         2006-04-30  Bruno Haible  <bruno@clisp.org>
52431
52432                 * progreloc.c: Include <mach-o/dyld.h> if available.
52433                 (find_executable): Use _NSGetExecutablePath when possible.
52434
52435         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52436
52437                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52438                 function.
52439
52440         2005-12-29  Bruno Haible  <bruno@clisp.org>
52441
52442                 * progreloc.c (set_program_name_and_installdir): Fix
52443                 compilation error.
52444
52445         2005-12-04  Bruno Haible  <bruno@clisp.org>
52446
52447                 Cygwin portability.
52448                 * progreloc.c: Include <windows.h> also on Cygwin.
52449                 (find_executable): Add support for Cygwin.
52450                 (set_program_name_and_installdir): Handle also platforms with
52451                 nonempty EXEEXT.
52452
52453         2006-07-11  Bruno Haible  <bruno@clisp.org>
52454
52455                 * javacomp.c: Fix a comment.
52456                 Reported by Jim Meyering.
52457
52458         2006-04-30  Bruno Haible  <bruno@clisp.org>
52459
52460                 * javacomp.h (compile_java_class): Add source_version,
52461                 target_version arguments.
52462                 * javacomp.c: Rewritten to choose only a compiler that
52463                 respects the specified source_version and target_version.
52464
52465         2006-06-27  Bruno Haible  <bruno@clisp.org>
52466
52467                 Assume correct S_ISDIR macro.
52468                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52469
52470         2006-07-22  Bruno Haible  <bruno@clisp.org>
52471
52472                 * javaversion.h: New file, from GNU gettext.
52473                 * javaversion.c: New file, from GNU gettext.
52474                 * javaversion.java: New file, from GNU gettext.
52475                 * javaversion.class: New file, from GNU gettext.
52476
52477         2006-05-17  Bruno Haible  <bruno@clisp.org>
52478
52479                 Cygwin portability.
52480                 * javaexec.c (execute_java_class): Test for jview program
52481                 also on Cygwin.
52482
52483         2006-04-09  Bruno Haible  <bruno@clisp.org>
52484
52485                 * fatal-signal.c: Don't include string.h.
52486                 (at_fatal_signal): Use a copying loop instead of memcpy.
52487
52488         2005-12-04  Bruno Haible  <bruno@clisp.org>
52489
52490                 * csharpexec.c: Add support for 'clix' launcher (untested).
52491                 (execute_csharp_using_sscli): New function.
52492                 (execute_csharp_program): Call it.
52493
52494         2006-06-21  Bruno Haible  <bruno@clisp.org>
52495
52496                 Avoid warnings from recent versions of mcs.
52497                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52498                 -o, -L, -r any more. Use options documented since mcs-1.0
52499                 instead. Similarly for -g.
52500
52501         2005-07-09  Bruno Haible  <bruno@clisp.org>
52502
52503                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52504                 add a .dll suffix.
52505                 Reported by Mark Junker <mjscod@gmx.de>.
52506
52507         2006-06-17  Bruno Haible  <bruno@clisp.org>
52508
52509                 * config.charset: Update for NetBSD 3.0.
52510
52511         2006-05-17  Bruno Haible  <bruno@clisp.org>
52512
52513                 Cygwin portability.
52514                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52515
52516         2006-05-16  Bruno Haible  <bruno@clisp.org>
52517
52518                 * localcharset.c [CYGWIN]: Include <windows.h>.
52519                 (get_charset_aliases): For Cygwin, return the same CPxxx
52520                 aliases list as under WIN32.
52521                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52522                 the environment variables. Fall back to GetACP().
52523
52524         2006-04-05  Bruno Haible  <bruno@clisp.org>
52525
52526                 * config.charset: Update Juan Manuel Guerrero's address.
52527
52528         2005-02-12  Bruno Haible  <bruno@clisp.org>
52529
52530                 * allocsa.h: Add extern "C" for C++.
52531
52532         2005-02-10  Bruno Haible  <bruno@clisp.org>
52533
52534                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52535                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52536
52537         2006-07-22  Bruno Haible  <bruno@clisp.org>
52538
52539                 * gettext.h: Update to GNU gettext-0.15.
52540
52541 2006-07-22  Bruno Haible  <bruno@clisp.org>
52542
52543         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52544         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52545         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52546
52547 2006-07-21  Eric Blake  <ebb9@byu.net>
52548
52549         * modules/stdlib-safer: New file.
52550         * MODULES.html.sh (File stream based Input/Output): Add
52551         stdlib-safer.
52552
52553 2006-07-21  Eric Blake  <ebb9@byu.net>
52554
52555         * lib/stdlib-safer.h: New file from coreutils, required by
52556         stdlib--.h.
52557
52558 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52559
52560         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52561
52562 2006-07-20  Bruno Haible  <bruno@clisp.org>
52563
52564         * gnulib-tool: Recognize new option --assume-autoconf.
52565         (autoconf_minversion): New variable.
52566         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52567
52568 2006-07-20  Bruno Haible  <bruno@clisp.org>
52569
52570         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52571
52572 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52573
52574         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52575         Reindent and repaginate.
52576
52577 2006-07-19  Derek Price  <derek@ximbiot.com>
52578
52579         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52580         Correct grammar.
52581
52582 2006-07-17  Bruno Haible  <bruno@clisp.org>
52583
52584         * modules/list: New file.
52585         * modules/array-list: New file.
52586         * modules/carray-list, modules/carray-list-tests: New files.
52587         * modules/linked-list, modules/linked-list-tests: New files.
52588         * modules/avltree-list, modules/avltree-list-tests: New files.
52589         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52590         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52591         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52592         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52593         * modules/oset: New file.
52594         * modules/array-oset: New file.
52595         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52596         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52597         * tests/test-carray_list.c: New file.
52598         * tests/test-linked_list.c: New file.
52599         * tests/test-avltree_list.c: New file.
52600         * tests/test-rbtree_list.c: New file.
52601         * tests/test-linkedhash_list.c: New file.
52602         * tests/test-avltreehash_list.c: New file.
52603         * tests/test-rbtreehash_list.c: New file.
52604         * tests/test-avltree_oset.c: New file.
52605         * tests/test-rbtree_oset.c: New file.
52606         * MODULES.html.sh (Container data structures): New section.
52607
52608 2006-07-17  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/gl_list.m4: New file.
52611
52612 2006-07-17  Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/gl_list.h: New file.
52615         * lib/gl_list.c: New file.
52616         * lib/gl_array_list.h: New file.
52617         * lib/gl_array_list.c: New file.
52618         * lib/gl_carray_list.h: New file.
52619         * lib/gl_carray_list.c: New file.
52620         * lib/gl_linked_list.h: New file.
52621         * lib/gl_linked_list.c: New file.
52622         * lib/gl_anylinked_list1.h: New file.
52623         * lib/gl_anylinked_list2.h: New file.
52624         * lib/gl_avltree_list.h: New file.
52625         * lib/gl_avltree_list.c: New file.
52626         * lib/gl_anyavltree_list1.h: New file.
52627         * lib/gl_anyavltree_list2.h: New file.
52628         * lib/gl_rbtree_list.h: New file.
52629         * lib/gl_rbtree_list.c: New file.
52630         * lib/gl_anyrbtree_list1.h: New file.
52631         * lib/gl_anyrbtree_list2.h: New file.
52632         * lib/gl_anytree_list1.h: New file.
52633         * lib/gl_anytree_list2.h: New file.
52634         * lib/gl_linkedhash_list.h: New file.
52635         * lib/gl_linkedhash_list.c: New file.
52636         * lib/gl_anyhash_list1.h: New file.
52637         * lib/gl_anyhash_list2.h: New file.
52638         * lib/gl_avltreehash_list.h: New file.
52639         * lib/gl_avltreehash_list.c: New file.
52640         * lib/gl_rbtreehash_list.h: New file.
52641         * lib/gl_rbtreehash_list.c: New file.
52642         * lib/gl_anytreehash_list1.h: New file.
52643         * lib/gl_anytreehash_list2.h: New file.
52644
52645         * lib/gl_oset.h: New file.
52646         * lib/gl_oset.c: New file.
52647         * lib/gl_array_oset.h: New file.
52648         * lib/gl_array_oset.c: New file.
52649         * lib/gl_avltree_oset.h: New file.
52650         * lib/gl_avltree_oset.c: New file.
52651         * lib/gl_rbtree_oset.h: New file.
52652         * lib/gl_rbtree_oset.c: New file.
52653         * lib/gl_anytree_oset.h: New file.
52654
52655 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52656
52657         * m4/mkancesdirs.m4: New file.
52658         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52659         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52660         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52661         it.
52662
52663 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52664
52665         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52666         * lib/mkancesdirs.h: New files.
52667         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52668         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52669         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52670         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52671         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52672         callers changed.  Revamp internals significantly, by not
52673         attempting to create directories that are temporarily more
52674         permissive than the final results.  Do not attempt to use
52675         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52676         This removes some race conditions, fixes some bugs, and simplifies
52677         things.  Use new dirchownmod function to do owner and mode changes.
52678         * lib/mkdir-p.h: Likewise.
52679         * lib/modechange.c (octal_to_mode): New function.
52680         (struct mode_change): New member mentioned.
52681         (make_node_op_equals): New arg mentioned.  All callers changed.
52682         (mode_compile): Keep track of which mode bits the user has explicitly
52683         mentioned.
52684         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52685         New arg PMODE_BITS, to keep track of which mode bits the user
52686         mentioned; it treats S_ISUID and S_ISGID speciall.
52687         All callers changed.
52688         * lib/modechange.h: Likewise.
52689
52690 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         * MODULES.html.sh: Add mkancestors.
52693         * modules/mkancesdirs: New module.
52694         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52695         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52696         The chdir-safer and afs files are now orphans; I'll remove them
52697         unless someone speaks up.
52698         Add lib/dirchownmod.c, lib/dirchownmod.h.
52699         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52700         Add lchown, mkancesdirs.
52701         (Maintainer): Add self.
52702
52703 2006-07-15  Karl Berry  <karl@gnu.org>
52704
52705         * gnulib-tool: help message wording/arrangement.
52706
52707 2006-07-14  Simon Josefsson  <jas@extundo.com>
52708
52709         * doc/gnulib.texi (Libtool and Windows): New section.
52710
52711 2006-07-12  Simon Josefsson  <jas@extundo.com>
52712
52713         * modules/gendocs (License): Fix license, approved by Karl.
52714
52715 2006-07-12  Eric Blake  <ebb9@byu.net>
52716
52717         * MODULES.html.sh: Add gendocs.
52718
52719 2006-07-11  Eric Blake  <ebb9@byu.net>
52720
52721         * modules/fdl: New module, to install doc/fdl.texi.
52722         * MODULES.html.sh: Add new section for documentation modules.
52723         * gnulib-tool: Avoid space-tab.
52724         (--doc-base): New option, to manage files from doc.
52725
52726 2006-07-11  Eric Blake  <ebb9@byu.net>
52727
52728         * m4/absolute-header.m4: Fix comments to match recent change.
52729
52730 2006-07-11  Eric Blake  <ebb9@byu.net>
52731
52732         * gnulib-tool: List --doc-base before --tests-base.
52733
52734 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52735
52736         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52737
52738 2006-07-11  Bruno Haible  <bruno@clisp.org>
52739
52740         * README: Mention where to put documentation.
52741
52742 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52743
52744         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52745
52746 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52747
52748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52749         to stdint.m4.
52750
52751 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52752
52753         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52754         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52755         "no/such/file/stdint.h" when there is no such file, so that
52756         the resulting C code can be parsed by dodgy compilers.
52757         Problems reported by Bob Proulx.
52758
52759 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52760
52761         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52762         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52763         macros into the GNU _D_EXACT_NAMLEN.
52764         * lib/savedir.c:  Likewise.
52765         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52766
52767 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52768         and Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52771         * m4/savedir.m4:
52772         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52773         macros into the GNU _D_EXACT_NAMLEN.
52774
52775 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52778         around the absolute name, to work around a problem with the HP-UX
52779         11.23 native C compiler, reported by Bob Proulx.
52780
52781 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52782
52783         * doc/maintain.texi, make-stds.texi: Sync from
52784         <http://savannah.gnu.org/projects/gnustandards>.
52785
52786 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52789
52790 2006-07-09  Jim Meyering  <jim@meyering.net>
52791
52792         * m4/glob.m4: Remove a doubled word in a comment.
52793
52794 2006-07-09  Jim Meyering  <jim@meyering.net>
52795
52796         * lib/argp-pv.c: Remove a doubled word in a comment.
52797         * lib/check-version.c (check_version): Likewise.
52798         * lib/javacomp.c (compile_java_class): Likewise.
52799
52800 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52801
52802         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52803         for the benefit of people using Autoconf 2.60.  If you want to
52804         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52805         (or m4/onceonly.m4, if pre-2.57) manually.
52806
52807 2006-07-08  Jim Meyering  <jim@meyering.net>
52808
52809         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52810         comment.
52811         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52812         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52813         comment.
52814
52815 2006-07-08  Jim Meyering  <jim@meyering.net>
52816
52817         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52818
52819 2006-07-07  Simon Josefsson  <jas@extundo.com>
52820
52821         * tests/test-crc.c: Change expected crc value, the test vector
52822         were probably computed using the old broken crc.c?
52823
52824 2006-07-06  Simon Josefsson  <jas@extundo.com>
52825
52826         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52827         now the canonical place for the M4 file).
52828
52829         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52830         from the sys_socket dependency now.
52831
52832         * modules/inet_pton (Files): Ditto.
52833
52834         * modules/inet_ntop (Files): Ditto.
52835
52836 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52837
52838         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52839         not gl_PREREQ_GETUSERSHELL.
52840
52841 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52842
52843         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52844         with only one argument, for Autoconf 2.60.
52845         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52846         expand to nothing, so add a shell command to avoid syntax error.
52847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52848
52849 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52850
52851         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52852
52853 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52856         no longer needed.  Check for isblank decl.
52857         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52858         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52859         of existence.
52860
52861 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * lib/getloadavg.c: Use __VMS, not VMS.
52864         * lib/getopt.c: Likewise.
52865         * lib/getpagesize.h: Likewise.
52866         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52867         and probably does not work.
52868
52869 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52870
52871         * lib/.cppi-disable: Add wcwidth.
52872         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52873         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52874         (ISGRAPH): Remove.  All uses changed to isgraph.
52875         (FOLD) [!defined _LIBC]: Remove special case.
52876         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52877         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52878         HAVE_ISBLANK.
52879         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52880         case.
52881
52882 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52883
52884         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52885         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52886         brackets.  Other minor changes to suppress some compiler
52887         warnings.
52888
52889 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52890         and Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52893         of invoking obsolescent AC_HEADER_DIRENT macro.
52894         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52895         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52896         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52897         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52898         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52899         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52900         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52901         * m4/readdir.m4: Remove; no longer needed.
52902
52903 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52904         and Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52907         Don't worry about this obsolete case any more.
52908         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52909         directories.
52910         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52911         worry about this obsolete case any more.
52912         * lib/fts.c: Likewise.
52913         * lib/getcwd.c: Likewise.
52914         * lib/glob.h: Likewise.
52915         * lib/savedir.c: Likewise.
52916
52917 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52918
52919         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52920         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52921         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52922         needed.
52923         All uses removed.
52924         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52925         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52926         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52927         needed.
52928         * m4/getdate.m4 (gl_GETDATE): Likewise.
52929         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52930         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52931         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52932         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52933         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52934         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52935         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52936         needed.
52937
52938 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         * lib/memcasecmp.c: Include <limits.h>.
52941         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52942         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52943         Don't assume isdigit succeeds only on '0' through '9'.
52944
52945 2006-07-05  Eric Blake  <ebb9@byu.net>
52946
52947         * modules/getaddrinfo (Depends-on): Add snprintf.
52948
52949 2006-07-05  Eric Blake  <ebb9@byu.net>
52950
52951         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52952         to avoid 'header present but could not be compiled' on cygwin.
52953
52954 2006-07-05  Eric Blake  <ebb9@byu.net>
52955
52956         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52957         missing from netdb.h.
52958         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52959
52960 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52961
52962         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52963         no longer needed.
52964         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52965         * m4/getdate.m4 (gl_GETDATE): Likewise.
52966         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52967         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52969         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52971
52972 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52973
52974         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52975         All uses of is_space replaced by isspace.
52976         * lib/exit.h: Don't talk about STDC_HEADERS.
52977         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52978         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52979         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52980         replaced by isprint etc.
52981         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52982         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52983         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52984         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52985         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52986         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52987
52988 2006-07-05  Bruno Haible  <bruno@clisp.org>
52989
52990         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52991         the function exists, before testing against AIX.
52992         Reported by Martin Lambers <marlam@marlam.de>.
52993
52994 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52995
52996         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52997         From Mark D. Baushke.
52998
52999 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53000
53001         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53002         to the absolute name, not just one, to bypass Sun C 5.8's
53003         "warning: #include of /usr/include/... may be non-portable".
53004
53005 2006-07-04  Eric Blake  <ebb9@byu.net>
53006
53007         * modules/dirname-tests: New test module.
53008         * tests/test-dirname.c: New file, replacing dirname.c
53009         TEST_DIRNAME section that was recently deleted.
53010
53011 2006-07-04  Bruno Haible  <bruno@clisp.org>
53012
53013         Assume ANSI C header files and <ctype.h> functions.
53014         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53015         (mbsnwidth): Use isprint, iscntrl instead.
53016
53017 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         Merge from coreutils.
53020         * MODULES.html.sh: Add xstrtold.
53021         * modules/xstrtold: New file.
53022         * modules/cycle-check (Files): Add lib/same-inode.h.
53023         * modules/dirname (Files): Add m4/double-slash-root.m4.
53024         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53025         * modules/mkdir-p (Files): Add lib/same-inode.h.
53026         * modules/same (Files): Add lib/same-inode.h.
53027
53028 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53031         This is to keep the terminology clean; POSIX talks about
53032         "absolute pathnames", not "full pathnames", but the GNU
53033         Coding Standards say to use "path" for something else;
53034         so use "absolute" to keep both sides happy.
53035         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53036         Set gl_absolute_header, not gl_full_header_path.
53037         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53038         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53039         All uses changed.
53040
53041         Merge from coreutils.
53042
53043         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53044
53045         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53046         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53047         want to require the building of c-strtod.o.
53048         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53049         needs -lm directly.
53050         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53051
53052         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53055         --as-needed option if available.  Problem reported by Albert Chin in
53056         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53057         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53058         cc merely issues a bunch of annoying warnings for --as-needed
53059         (this problem was reported by Bob Proulx).  Also, try linking with
53060         -lm to detect a bug in binutils 2.16 (this problem was reported
53061         by Ralf Wildenhues).
53062
53063         2006-06-18  Jim Meyering  <jim@meyering.net>
53064
53065         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53066         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53067         macro.
53068         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53069         also check for glibc-2.4's abort-inducing bug.
53070
53071         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53072         Low-probability clean-up should be to use rmdir to get rid of
53073         the just-created directory, not unlink.
53074
53075         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53076         configure fail, and request a bug report to inform us about it.
53077         Add a comment that, barring reports to the contrary, in 2007 we'll
53078         assume ftruncate is universally available.
53079
53080         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53081
53082         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53083
53084         2006-03-12  Jim Meyering  <jim@meyering.net>
53085
53086         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53087         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53088         * m4/same.m4 (gl_SAME): Likewise.
53089         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53090
53091         2006-03-11  Eric Blake  <ebb9@byu.net>
53092
53093         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53094         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53095         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53096         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53097
53098 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53101         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53102         reported by Mark D. Baushke, one in
53103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53104
53105         Merge from coreutils.
53106
53107         * lib/.cppi-disable: Add stdint_.h.
53108         * lib/.cvsignore: Add stdint.h.
53109
53110         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53111
53112         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53113         both double and long double versions.
53114         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53115         * lib/xstrtold.c: New file.
53116         * lib/xstrtod.h (xstrtold): New decl.
53117
53118         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * lib/filemode.c (setst): Remove.
53121         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53122         (arguably) clearer, and the generated code is a bit smaller on my
53123         Debian GNU/Linux stable x86 host.
53124
53125         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53128         Assume that filemode.h includes sys/types.h and sys/stat.h.
53129         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53130         (ftypelet): Reorder to put common cases first, for efficiency.
53131         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53132         to do 'M'.
53133         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53134         of 10, for compatibility with FreeBSD.  All callers changed.
53135         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53136         types that can't be deduced solely from st_mode.  First arg is now a
53137         const pointer.
53138         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53139         (strmode): Renamed from mode_string.
53140         (filemodestring): New decl.
53141         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53142         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53143         needed.
53144         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53145
53146         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53149         fsusage.h now does that.  Include fsusage.h first, to test interface.
53150         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53151         at most one method (the old code could have generated decls that
53152         didn't conform to C89, not that this was ever exercised).
53153         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53154
53155         2006-03-19  Jim Meyering  <jim@meyering.net>
53156
53157         Work even in a chroot where d_ino values for entries in "/"
53158         don't match the stat.st_ino values for the same names.
53159         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53160         number, iterate through all entries again, using lstat instead.
53161         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53162         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53163
53164         * lib/getcwd.c (__getcwd): Clarify a comment.
53165         Use memcpy in place of a call to strcpy.
53166
53167         2006-03-12  Jim Meyering  <jim@meyering.net>
53168
53169         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53170         matches that of the current directory (which we're about to chdir ".."
53171         out of), then save the dev-ino of the parent, instead.
53172
53173         * lib/same-inode.h (SAME_INODE): New file/macro.
53174         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53175         Include "same-inode.h", instead.
53176         * lib/same.c: Likewise.
53177         * lib/cycle-check.h: Include "same-inode.h".
53178         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53179         * lib/cycle-check.c (SAME_INODE): Remove definition.
53180         * lib/root-dev-ino.h: Include "same-inode.h".
53181
53182         2006-03-11  Eric Blake  <ebb9@byu.net>
53183
53184         * lib/same.c (same_name): s/base_name/last_component/
53185         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53186         * lib/filenamecat.c (file_name_concat): Likewise.
53187
53188         2006-03-11  Eric Blake  <ebb9@byu.net>,
53189                     Paul Eggert  <eggert@cs.ucla.edu>
53190
53191         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53192         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53193         drive prefix.
53194         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53195         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53196         (last_component): New method.
53197         * lib/dirname.c (dir_len): Determine when drive letters need a
53198         subsequent slash.  Preserve // when it is special.
53199         (dir_name): Don't append dot when drive letter is absolute.
53200         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53201         * lib/basename.c (base_name): New semantics - malloc the result.
53202         Preserve // when it is special.  Preserve relative files that look
53203         like drive letters.
53204         (base_len): Preserve // when it is special.
53205         (last_component): New method, similar to old base_name semantics.
53206         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53207         base_name.  Strip redundant slashes from ///.
53208
53209 2006-07-03  Jim Meyering  <jim@meyering.net>
53210
53211         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53212         macro is used before the first cycle_check call.
53213
53214 2006-07-03  Eric Blake  <ebb9@byu.net>
53215
53216         * modules/dirname (Depends-on): Add xstrndup.
53217
53218 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53219
53220         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53221         test cases, so that config.log is a bit easier to follow.
53222
53223 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53226         both are 64 bits, since this seems to be the tradition, and this
53227         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53228         we ever run into a host that prefers long long to long in this
53229         case, we'll need another configure-time test.  Problem reported by
53230         Jim Meyering.
53231
53232 2006-07-02  Eric Blake  <ebb9@byu.net>
53233
53234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53235
53236 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         * modules/inttypes (Depends-on): No longer depends on stdint.
53239         * modules/stdint (Description): Say more about assumptions.
53240         Say that the fast types might differ.  Say macros are used.
53241         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53242         (Makefile.am): Revise list of substituted symbols to match
53243         new stdint.m4.
53244         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53245         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53246         * tests/test-stdint.c (verify_same_types)
53247         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53248         the code conforms to C99/C89.
53249         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53250         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53251
53252 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53253
53254         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53255         but fix a bug, by requiring at least 64 bits.
53256         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53257         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53258         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53259         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53260
53261         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53262         changes.  Make 2.59 a prerequisite.  Check and substitute for
53263         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53264         inttypes.h.  Do not use special include files; just use the
53265         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53266         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53267         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53268         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53269         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53270         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53271         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53272         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53273         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53274         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53275         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53276         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53277         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53278         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53279         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53280         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53281         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53282         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53283         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53284         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53285         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53286         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53287         not check for things that C99 does not require, e.g., int8_t.  If
53288         a test isn't needed unless <stdint.h> isn't working, and is
53289         unlikely to be needed for any other reason, then don't do it
53290         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53291         size_t, since we assume C89 freestanding at least.  Do not check
53292         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53293         the right thing even if the types are not defined.  Instead use:
53294         (gl_STDINT_TYPE_PROPERTIES): New macro.
53295         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53296         testing whether <sys/types.h> clashes, as Autoconf does this for
53297         us now.  All uses removed.
53298         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53299         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53300         (gl_CHECK_TYPE_SAME):
53301         Remove; no longer needed.
53302         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53303         exists, since we'll return 0 anyway in that case.
53304         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53305
53306 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53309         possible collision with system files.
53310         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53311         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53312         WCHAR_MIN and WCHAR_MAX in this case.
53313         (<stddef.h>): Do not include; no longer needed.
53314         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53315         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53316         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53317         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53318         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53319         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53320         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53321         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53322         !defined(__c99))]: Include in this case too, since it's harmless
53323         now.
53324         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53325         dangerous to do so.
53326         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53327         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53328         (_STDINT_MIN, _STDINT_MAX): New macros.
53329         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53330         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53331         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53332         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53333         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53334         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53335         macros, not typedefs; this simplifies things quite a bit.
53336         Use long int for all types narrower than int64_t.
53337         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53338         Define in terms of long long int or int64_t or long int,
53339         not int64_t or int32_t.  This saves some compile-time testing.
53340         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53341         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53342         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53343         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53344         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53345         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53346         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53347         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53348         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53349         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53350         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53351         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53352         undef any previous version and define our own version, for
53353         simplicity and consistency with the new macros for types.
53354         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53355         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53356         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53357         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53358         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53359         @WINT_T_SUFFIX@ to keep things simple here.
53360         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53361         Simplify by assuming typical 8/16/32/64 host, since we're
53362         already doing that elsewhere anyway.
53363         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53364         and assume long long int is 64 bits if available.  This
53365         speeds up 'configure'.
53366
53367 2006-07-01  Eric Blake  <ebb9@byu.net>
53368
53369         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53370         Reported by Andreas Buening.
53371
53372 2006-07-01  Eric Blake  <ebb9@byu.net>
53373
53374         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53375
53376 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53377
53378         * lib/getaddrinfo.c: fixed typo
53379
53380 2006-06-29  Jim Meyering  <jim@meyering.net>
53381
53382         * modules/strftime (Maintainer): Add my name, since with the
53383         FPRINTFTIME changes strftime.c has forked from glibc.
53384
53385 2006-06-29  Eric Blake  <ebb9@byu.net>
53386
53387         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53388
53389 2006-06-29  Eric Blake  <ebb9@byu.net>
53390
53391         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53392
53393 2006-06-29  Eric Blake  <ebb9@byu.net>
53394
53395         * lib/stat_.h: New file.
53396
53397 2006-06-29  Eric Blake  <ebb9@byu.net>
53398
53399         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53400         unused static function.
53401
53402 2006-06-29  Eric Blake  <ebb9@byu.net>
53403
53404         * doc/functions.texi (Function Portability): Document missing lstat
53405         on mingw.
53406
53407 2006-06-29  Eric Blake  <ebb9@byu.net>
53408
53409         * MODULES.html.sh: Add sys_stat.
53410         * modules/sys_stat: New module.
53411         * modules/mkstemp (Depends-on): Add sys_stat.
53412
53413 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53414
53415         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53416
53417 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53418
53419         * m4/c-bs-a.m4: Removed.
53420
53421 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53422
53423         * lib/strftime.c: Assume strftime() exists.
53424
53425 2006-06-29  Derek Price  <derek@ximbiot.com>
53426
53427         * modules/c-bs-a: Removed - \a is C89.
53428         * MODULES.html.sh: Remove c-bs-a.
53429
53430 2006-06-29  Bruno Haible  <bruno@clisp.org>
53431
53432         * modules/wcwidth (License): Change to LGPL.
53433
53434 2006-06-28  Simon Josefsson  <jas@extundo.com>
53435
53436         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53437         on _WIN32.
53438
53439         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53440         getnameinfo.
53441
53442 2006-06-28  Simon Josefsson  <jas@extundo.com>
53443
53444         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53445
53446 2006-06-28  Simon Josefsson  <jas@extundo.com>
53447
53448         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53449         functions there.  It will succeed on Windows XP, but on Windows
53450         2000 and (presumably) earlier, it will fail, and use the internal
53451         re-implementation.
53452         (use_win32_p): New function.
53453         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53454         Support AI_NUMERICSERV to disable getservbyname.
53455         (getnameinfo): New function, only supports
53456         NI_NUMERICHOST|NI_NUMERICSERV for now.
53457
53458         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53459         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53460         getnameinfo.
53461
53462 2006-06-28  Eric Blake  <ebb9@byu.net>
53463
53464         * modules/wcwidth: New file.
53465         * modules/mbchar (Depends-on): Add wcwidth.
53466         * modules/mbswidth (Depends-on): Add wcwidth.
53467         * MODULES.html.sh: Add wcwidth.
53468
53469 2006-06-28  Eric Blake  <ebb9@byu.net>
53470
53471         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53473
53474 2006-06-28  Eric Blake  <ebb9@byu.net>
53475
53476         * lib/xvasprintf.h: Fix comments.
53477
53478 2006-06-28  Eric Blake  <ebb9@byu.net>
53479
53480         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53481         * lib/mbswidth.c (wcwidth): Move from here...
53482         * lib/wcwidth.h: ...to this new file.
53483
53484 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53485
53486         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53487
53488         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53489         it's obsolete.
53490         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53491
53492 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53493
53494         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53495         Autoconf 2.60 says this stuff was obsolete.
53496
53497 2006-06-28  Bruno Haible  <bruno@clisp.org>
53498
53499         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53500
53501 2006-06-28  Bruno Haible  <bruno@clisp.org>
53502
53503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53504         gt_TYPE_WCHAR_T.
53505
53506 2006-06-28  Bruno Haible  <bruno@clisp.org>
53507
53508         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53509         declaration for wcwidth.
53510         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53511
53512 2006-06-28  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53515         (mkdir): Define using _mkdir.
53516
53517 2006-06-28  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/getaddrinfo.h: Fix POSIX URL.
53520         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53521         _WIN32.
53522         (use_win32_p): Make static.
53523         (getaddrinfo): Reject service name if it is empty or does not consist
53524         solely of decimal digits, or if its value is > 65535.
53525         (getnameinfo): Remove useless casts.
53526
53527 2006-06-27  Simon Josefsson  <jas@extundo.com>
53528
53529         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53530         Eggert and Martin Lambers.
53531
53532 2006-06-27  Simon Josefsson  <jas@extundo.com>
53533
53534         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53535         Eggert and Martin Lambers.
53536
53537 2006-06-27  Bruno Haible  <bruno@clisp.org>
53538
53539         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53540         result to 0, not to empty.
53541         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53542
53543 2006-06-27  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53546
53547 2006-06-26  Simon Josefsson  <jas@extundo.com>
53548
53549         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53550         present.
53551
53552 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53555         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53557
53558 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53559
53560         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53561
53562 2006-06-26  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53565
53566 2006-06-26  Bruno Haible  <bruno@clisp.org>
53567
53568         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53569
53570 2006-06-26  Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53573         SGI C compiler in pre-C99 mode.
53574         Suggested by Mark D. Baushke and Larry Jones.
53575
53576 2006-06-26  Bruno Haible  <bruno@clisp.org>
53577
53578         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53579         WCHAR_MAX.
53580         Reported by Mark D. Baushke and Larry Jones.
53581
53582 2006-06-26  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53585         in pre-C99 mode.
53586         Suggested by Mark D. Baushke and Larry Jones.
53587
53588 2006-06-23  Simon Josefsson  <jas@extundo.com>
53589             Bruno Haible  <bruno@clisp.org>
53590
53591         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53592         Emit mostlyclean-local rule.
53593         (func_emit_tests_Makefile_am): Likewise.
53594         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53595
53596 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53597
53598         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53599
53600 2006-06-23  Bruno Haible  <bruno@clisp.org>
53601
53602         * tests/test-stdint.c: Update to match ISO C 99 Technical
53603         Corrigendum 1.
53604
53605 2006-06-23  Bruno Haible  <bruno@clisp.org>
53606
53607         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53608
53609 2006-06-23  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/stdint_.h: Treat IRIX like OpenBSD.
53612
53613 2006-06-23  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53616         ISO C 99 Technical Corrigendum 1.
53617
53618 2006-06-22  Simon Josefsson  <jas@extundo.com>
53619
53620         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53621         MinGW.
53622
53623 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53624
53625         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53626         needed.  Some compiler complained about some of them.  Problem reported
53627         by Larry Jones in
53628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53629
53630 2006-06-21  Simon Josefsson  <jas@extundo.com>
53631
53632         * tests/test-getaddrinfo.c: New file.
53633
53634         * modules/getaddrinfo-tests: New file.
53635
53636         * MODULES.html.sh: Add inet_pton.
53637
53638         * modules/inet_pton: New file.
53639
53640 2006-06-21  Simon Josefsson  <jas@extundo.com>
53641
53642         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53643         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53644         of using the (limited) gnulib implementation on Windows XP.
53645
53646         * m4/inet_pton.m4: New file.
53647
53648 2006-06-21  Simon Josefsson  <jas@extundo.com>
53649
53650         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53651         variable.
53652
53653         * lib/socket_.h: Don't define WINVER.
53654
53655         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53656         slightly modified to work in gnulib.
53657
53658 2006-06-21  Simon Josefsson  <jas@extundo.com>
53659
53660         * doc/gnulib.texi (Windows sockets): Add.
53661
53662 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * lib/read-file.c (fread_file): Start with buffer allocation of
53665         0 bytes rather than 1 byte; this simplifies the code.
53666         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53667         code to free buffer and save/restore errno.
53668         (internal_read_file): Remove unused local.
53669
53670 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53673         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53674         Problem reported by Denis Excoffier in
53675         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53676
53677 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53678
53679         * modules/sys_socket, modules/socklen: Include sys/types since
53680         FreeBSD 4.x's sys/socket.h needs it.
53681
53682 2006-06-19  Simon Josefsson  <jas@extundo.com>
53683
53684         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53685
53686 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53689
53690 2006-06-19  Bruno Haible  <bruno@clisp.org>
53691
53692         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53693         and FULL_PATH_INTTYPES_H in angle brackets.
53694         Reported by Mark D. Baushke <mdb@gnu.org>.
53695
53696 2006-06-17  Eric Blake  <ebb9@byu.net>
53697
53698         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53699         errno.
53700
53701 2006-06-17  Bruno Haible  <bruno@clisp.org>
53702
53703         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53704         <sys/inttypes.h>.
53705
53706 2006-06-17  Bruno Haible  <bruno@clisp.org>
53707
53708         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53709         whether errno is declared. Assume <errno.h> declares errno.
53710
53711 2006-06-17  Bruno Haible  <bruno@clisp.org>
53712
53713         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53714
53715 2006-06-17  Bruno Haible  <bruno@clisp.org>
53716
53717         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53718         problem on Solaris 2.5.1.
53719
53720 2006-06-16  Eric Blake  <ebb9@byu.net>
53721
53722         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53723         * lib/unicodeio.c [!defined errno]: Likewise.
53724         * lib/strtol.c [!defined errno]: Likewise.
53725         * lib/strtod.c [!defined errno]: Likewise.
53726
53727 2006-06-15  Eric Blake  <ebb9@byu.net>
53728
53729         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53730
53731 2006-06-15  Eric Blake  <ebb9@byu.net>
53732
53733         * config/srclist.txt (ssize_t.m4): Lose sync.
53734
53735 2006-06-15  Bruno Haible  <bruno@clisp.org>
53736
53737         * modules/stdint (Files): Include m4/full-header-path.m4,
53738         m4/size_max.m4, m4/wchar_t.m4.
53739         (Makefile.am): Many more substitutions.
53740         * modules/stdint-tests: New file.
53741         * tests/test-stdint.c: New file.
53742
53743 2006-06-15  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53746         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53747         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53748         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53749         gl_CHECK_TYPE_SAME): New macros.
53750
53751 2006-06-15  Bruno Haible  <bruno@clisp.org>
53752
53753         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53754
53755 2006-06-15  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/stdint_.h: Rewritten to be fully auto-configured.
53758         Fixes bug on HP-UX/IA64.
53759
53760 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * lib/getdate.y (__attribute__): Don't define if already defined.
53763         Problem reported by Larry Jones.
53764         * lib/utimens.c (__attribute__): Likewise.
53765
53766 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53769         reported by Andreas Schwab.
53770
53771 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53772             Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53775         check for the declaration of strnlen and a run test that exposes the
53776         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53777         rpl_strndup.
53778
53779 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53780             Bruno Haible  <bruno@clisp.org>
53781
53782         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53783
53784 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53785
53786         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53787         compile test, for Tru64 4.0D.
53788
53789 2006-05-28  Karl Berry  <karl@gnu.org>
53790
53791         * config/srclist.txt (printf-args.c): lose sync.
53792
53793 2006-05-26  Martin Lambers  <marlam@marlam.de>
53794
53795         * lib/getpass.c: Updates the test for the native W32 API, and adds
53796         missing includes, thus fixing compilation warnings.
53797
53798 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53799
53800         * lib/exclude.c (exclude_fnmatch): New function.
53801         (excluded_file_name): Call exclude_fnmatch.
53802         * lib/exclude.h (excluded_file_name): New prototype
53803
53804 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53805
53806         * lib/tempname.c (small_open, large_open): New macros.
53807         (__open, __open64) [!_LIBC]: Remove.
53808         (__gen_tempname): Use small_open and large_open instead of __open
53809         and __open64.  This fixes a portability bug on HP-UX 11.11i
53810         reported by Simon Wing-Tang in
53811         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53812
53813 2006-05-24  Bruno Haible  <bruno@clisp.org>
53814
53815         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53816         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53817         Reported by Thorsten Maerz <torte@netztorte.de> via
53818         Aaron Stone <aaron@serendipity.cx>.
53819
53820 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53823         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53824         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53825         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53826         not really conditional on the cache.
53827         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53828
53829 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53832         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53833         (my_usleep): Don't mishandle maximum value.
53834
53835 2006-05-19  Jim Meyering  <jim@meyering.net>
53836
53837         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53838
53839 2006-05-17  Bruno Haible  <bruno@clisp.org>
53840
53841         Cygwin portability.
53842         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53843
53844 2006-05-17  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/stdint_.h: Fix recognition of Cygwin.
53847
53848 2006-05-15  Bruno Haible  <bruno@clisp.org>
53849
53850         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53851         on libtool patch by Ralf Wildenhues.
53852
53853 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53856         test for C99 conformance; (bool) 0.5 is an integer constant
53857         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53858         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53859
53860 2006-05-11  Simon Josefsson  <jas@extundo.com>
53861
53862         * m4/xvasprintf.m4: Fix obvious typo.
53863
53864 2006-05-11  Jim Meyering  <jim@meyering.net>
53865
53866         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53867         James Lemley.
53868
53869 2006-05-10  Simon Josefsson  <jas@extundo.com>
53870
53871         * lib/md4.c: Typo fix, update copyright years.
53872         (K1, K2): Don't use L because it turn computations into 64-bit on
53873         64-bit platforms.
53874
53875 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53876
53877         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53878         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53879         unwanted sign propagation, e.g., on hosts with 64-bit int.
53880         There still are some problems with reeelly weird theoretical hosts
53881         (e.g., 33-bit int) but it's not worth worrying about now.
53882         * lib/sha1.c (rol): Likewise.
53883         (K1, K2, K3, K4): Remove unnecessary L suffix.
53884
53885 2006-05-10  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/des.c: Cast to avoid warnings.
53888
53889 2006-05-09  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53892         (Depends-on): Depend also on xsize, stdarg.
53893         (configure.ac): Add gl_XVASPRINTF.
53894
53895 2006-05-09  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/xvasprintf.m4: New file.
53898
53899 2006-05-09  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53902         (EOVERFLOW): Define fallback value.
53903         (xstrcat): New function.
53904         (xvasprintf): Recognize the special case of a string concatenation.
53905
53906 2006-05-08  Eric Blake  <ebb9@byu.net>
53907
53908         * gnulib-tool (func_version): Base copyright year on CVS date.
53909         (func_emit_copyright_notice): New function.
53910         (func_emit_lib_Makefile_am): Use it.
53911         (func_emit_tests_Makefile_am): Likewise.
53912         (func_import): Likewise.
53913
53914 2006-05-08  Bruno Haible  <bruno@clisp.org>
53915
53916         * modules/stdarg: New file.
53917         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53918
53919 2006-05-08  Bruno Haible  <bruno@clisp.org>
53920
53921         * m4/stdarg.m4: New file, from GNU gettext.
53922
53923 2006-05-08  Bruno Haible  <bruno@clisp.org>
53924
53925         * config/srclist.txt (build-aux/config.rpath): different from latest
53926         release.
53927
53928 2006-05-08  Bruno Haible  <bruno@clisp.org>
53929
53930         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53931
53932 2006-05-05  Jim Meyering  <jim@meyering.net>
53933
53934         * m4/warning.m4: New file, derived from bison's file by the same name.
53935
53936 2006-05-03  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/stdint_.h: Shorter URL.
53939         * lib/inttypes.h: Likewise.
53940
53941 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53944
53945 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * lib/verify.h: Document the internals better.  Most of this change
53948         was written by Bruno Haible.
53949
53950 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53951
53952         * doc/verify.texi: New file, partly based on a proposal by
53953         Bruno Haible.
53954
53955 2006-05-02  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53958         test from here...
53959         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53960
53961 2006-04-29  Bruno Haible  <bruno@clisp.org>
53962
53963         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53964         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53965
53966 2006-04-29  Bruno Haible  <bruno@clisp.org>
53967
53968         * gnulib-tool: Make --update option actually work.
53969
53970 2006-04-29  Bruno Haible  <bruno@clisp.org>
53971
53972         * doc/gcd.texi: New file.
53973         * doc/gnulib.texi: Include it.
53974
53975 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/getdate.y (get_date): When adding relative date, start with the
53978         initial time, not with the result of the first mktime call.
53979
53980 2006-04-25  Bruno Haible  <bruno@clisp.org>
53981
53982         * gnulib-tool (func_import): Output the include directives in three
53983         blocks, sorted separately.
53984         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53985
53986 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53989         to define main with arguments, for C++.  Reported by Eric Blake.
53990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53991         Prefer 'int main ()' to 'int main (void)', for C++.
53992         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53994         for 'main', for C99 and C++.
53995
53996 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53999         Don't assume that exit status -1 is valid.
54000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54001         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54002         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54003         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54004         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54005         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54006         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54007         functions can be used without declaring them, or that you can
54008         exit with status -1.
54009         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54010
54011 2006-04-24  Karl Berry  <karl@gnu.org>
54012
54013         * config/srclist.txt (longdouble.m4): sync lost.
54014
54015 2006-04-24  Eric Blake  <ebb9@byu.net>
54016
54017         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54018
54019 2006-04-24  Bruno Haible  <bruno@clisp.org>
54020
54021         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54022         poll() implementation in AIX.
54023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54024
54025 2006-04-24  Bruno Haible  <bruno@clisp.org>
54026
54027         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54028         assigned exactly once.
54029
54030 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54031             Bruno Haible  <bruno@clisp.org>
54032
54033         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54034         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54035         for AM_CPPFLAGS.
54036
54037 2006-04-23  Bruno Haible  <bruno@clisp.org>
54038
54039         * modules/copy-file: Depend on unistd.
54040         * modules/execute: Likewise.
54041         * modules/fatal-signal: Likewise.
54042         * modules/findprog: Likewise.
54043         * modules/mkdtemp : Likewise.
54044         * modules/pipe: Likewise.
54045         * modules/wait-process: Likewise.
54046
54047 2006-04-23  Bruno Haible  <bruno@clisp.org>
54048
54049         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54050         condition was already detected.
54051         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54052
54053 2006-04-23  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/copy-file.c: Include <unistd.h> unconditionally.
54056         * lib/execute.c: Likewise.
54057         * lib/fatal-signal.c: Likewise.
54058         * lib/findprog.c: Likewise.
54059         * lib/mkdtemp.c: Likewise.
54060         * lib/pipe.h: Likewise.
54061         * lib/pipe.c: Likewise.
54062         * lib/wait-process.h: Likewise.
54063
54064 2006-04-23  Bruno Haible  <bruno@clisp.org>
54065
54066         * gnulib-tool (func_usage): Fix --import description. Document
54067         --update.
54068         (func_import): Create temporary file in a temporary directory, if
54069         --dry-run is specified. Silence errors from 'grep' when there are no
54070         m4 files in $m4dir.
54071         (func_create_testdir): Silence errors from 'grep' when there are no
54072         m4 files in $m4dir.
54073         Reported by Karl Berry <karl@freefriends.org>.
54074
54075 2006-04-20  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54078         one argument, so that the code will be portable to Autoconf 2.60.
54079         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54080         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54081         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54082
54083 2006-04-19  Derek Price  <derek@ximbiot.com>
54084             Eric Blake  <ebb9@byu.net>
54085
54086         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54087         rather than "/full/path.h".  Update comment to match.  Shorten &
54088         generalize m4_translit call via AS_TR_CPP.
54089
54090 2006-04-19  Derek Price  <derek@ximbiot.com>
54091             Eric Blake  <ebb9@byu.net>
54092
54093         * lib/inttypes.h: Correct grammar in comment.
54094
54095 2006-04-18  Derek Price  <derek@ximbiot.com>
54096             Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         * modules/inttypes: New file.
54099         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54100
54101 2006-04-18  Derek Price  <derek@ximbiot.com>
54102             Paul Eggert  <eggert@cs.ucla.edu>
54103
54104         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54105         New files.
54106
54107 2006-04-18  Derek Price  <derek@ximbiot.com>
54108             Paul Eggert  <eggert@cs.ucla.edu>
54109
54110         * lib/inttypes.h: New file.
54111         * lib/strtoimax.c: Assume <inttypes.h>.
54112
54113 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54114
54115         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54116         isn't mounted.  Problem reported by Kir Kolyshkin.
54117
54118 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54121         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54122         Derek R. Price.
54123         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54124         implementation.
54125
54126 2006-04-12  Eric Blake  <ebb9@byu.net>
54127
54128         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54129         is now done automatically by the corresponding Autoconf macro.
54130
54131 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54134         time_r.h.
54135
54136 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54137
54138         Merge regex changes from libc, removing some of our
54139         POSIX-conformance changes that were rejected and redoing them in a
54140         less-intrusive way.
54141
54142         * lib/regcomp.c (re_compile_internal, init_dfa):
54143         Length arg is now size_t, not Idx.  All uses changed.
54144         (peek_token): Forward decl now says internal_function.
54145         (__re_error_msgid, __re_error_msgid_idx):
54146         Now static rather than extern with attribute_hidden.
54147         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54148         For some reason libc prefers K&R style defns for external functions.
54149         (regerror) [!defined _LIBC]: Likewise.
54150         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54151         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54152         (build_range_exp, build_collating_symbol):
54153         Use K&R-style defn.
54154         (re_compile_fastmap): Use '\0' to memset, not 0.
54155         (utf8_sb_map): Make the calculations more obvious.
54156         (init_dfa, parse_bracket_exp, build_charclass_op):
54157         Call calloc and cast result, as glibc does.
54158         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54159         (build_range_exp, build_collating_symbol):
54160         Now internal functions.
54161
54162         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54163
54164         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54165         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54166         Don't depend on VMS; depend on __VMS instead, for POSIX
54167         namespace cleanness.
54168         (regoff_t): Define to ssize_t, not long int.
54169
54170         Remove the REG_ macros named below.  Instead, make the old names
54171         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54172         __USE_GNU_REGEX.
54173         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54174         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54175         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54176         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54177         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54178         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54179         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54180         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54181         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54182         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54183         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54184         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54185         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54186         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54187         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54188         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54189         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54190         (REG_NREGS):
54191         Remove.  All uses replaced by the old RE_* names.
54192         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54193         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54194         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54195         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54196         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54197         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54198         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54199         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54200         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54201         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54202         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54203         Don't bother having these macros be independent of each others'
54204         values, since they no longer exist in the POSIX name space.
54205
54206         Rename the following member names back to their old names,
54207         unless !__USE_GNU_REGEX.  All uses changed back.
54208         (buffer): Renamed from re_buffer.
54209         (allocated): Renamed from re_allocated.
54210         (used): Renamed from re_used.
54211         (syntax): Renamed from re_syntax.
54212         (fastmap): Renamed from re_fastmap.
54213         (translate): Renamed from re_translate.
54214         (can_be_null): Renamed from re_can_be_null.
54215         (regs_allocated): Renamed from re_regs_allocated.
54216         (fastmap_accurate): Renamed from re_fastmap_accurate.
54217         (no_sub): Renamed from re_no_sub.
54218         (not_bol): Renamed from re_not_bol.
54219         (not_eol): Renamed from re_not_eol.
54220         (newline_anchor): Renamed from re_newline_anchor.
54221         (num_regs): Renamed from rm_num_regs.
54222         (start): Renamed from rm_start.
54223         (end): Renamed from rm_end.
54224
54225         (free_state): Move up a bit.
54226
54227         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54228         #define to be empty.
54229         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54230         when that is what is intended.
54231         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54232         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54233         (MAX): New macro.
54234         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54235         All uses changed back to re_malloc, etc.  It's now the caller's
54236         responsibility to check for overflow; all callers changed.
54237         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54238         (re_x2nrealloc): Remove.
54239         (free_state): Remove decl.
54240
54241         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54242         (re_set_registers, re_exec):
54243         Use K&R-style defn.
54244
54245         2006-01-31  Roland McGrath  <roland@redhat.com>
54246
54247         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54248         Reported by Mike Frysinger <vapier@gentoo.org>.
54249
54250         2006-01-15  Andreas Jaeger  <aj@suse.de>
54251
54252         [BZ #1950]
54253         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54254         build_wcs_upper_buffer change.
54255         (build_wcs_upper_buffer): Change return type.
54256
54257         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54258
54259         * lib/regex_internal.h: Include <stdint.h> if available.
54260
54261         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54262
54263         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54264
54265         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54266
54267         * lib/regcomp.c: Adjust for changed secondary hash function.
54268
54269         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54270
54271         * lib/regex.h: Pretty printing.
54272         Clean up namespace a bit.
54273
54274         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54275
54276         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54277         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54278
54279         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54280                     Ulrich Drepper  <drepper@redhat.com>
54281
54282         [BZ #1302]
54283         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54284         changed.
54285         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54286
54287         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54288
54289         [BZ #281]
54290         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54291         * lib/regcomp.c: Remove unnecessary uses of
54292         unsigned RE_TRANSLATE_TYPE.
54293         * lib/regex_internal.h: Likewise.
54294         * lib/regex_internal.c: Likewise.
54295         * lib/regexec.c: Likewise.
54296         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54297
54298         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54299
54300         * lib/regexec.c (find_recover_state): Remove unnecessary
54301         initialization.
54302         (transit_state_bkref): Make DFA a const pointer.
54303         (get_subexp): Likewise.
54304         (check_arrival): Likewise.
54305         (update_cur_sifted_state): Likewise.
54306         (re_search_internal): Likewise.
54307         (prune_impossible_nodes): Likewise.
54308         (acquire_init_state_context): Likewise.
54309         (proceed_next_node): Likewise.
54310         (set_regs): Likewise.
54311         (free_fail_stack_return): Likewise.
54312         (check_arrival_expand_ecl): Mark DFA parameter as const.
54313         (check_arrival_expand_ecl_sub): Likewise.
54314         (check_subexp_limits): Likewise.
54315         (sub_epsilon_src_nodes):  Likewise.
54316         (add_epsilon_src_nodes):  Likewise.
54317         (merge_state_array): Likewise.
54318         (update_regs): Likewise.
54319         (build_trtable): Likewise.
54320         (sift_states_backward): Mark MCTX parameter as const.
54321         (build_sifted_states): Likewise.
54322         (update_cur_sifted_state): Likewise.
54323         (sift_states_mkref): Likewise.
54324         (check_arrival_expand_ecl): Mark eclosure as const.
54325         (check_dst_limits_calc_pos_1): Likewise.
54326         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54327         pointer.
54328
54329         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54330
54331         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54332         (transit_state_sb): Likewise.
54333         (transit_state_mb): Likewise.
54334         (sift_states_iter_mb): Likewise.
54335         (check_arrival_add_next_nodes): Likewise.
54336         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54337         [_LIBC] (re_search_2_stub): Use mempcpy.
54338
54339         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54340         mbrtowc for very simple UTF-8 case.
54341
54342         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54343         a pointer-to-const.
54344         (re_acquire_state_context): Likewise.
54345         * lib/regex_internal.h: Adjust prototypes.
54346
54347         * lib/regex.c: Prevent using C++ compilers.
54348
54349         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54350         (re_acquire_state_context): Likewise.
54351
54352 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54353
54354         * modules/regex (Depends-on): Add ssize_t.
54355
54356 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54359         translation table.
54360
54361 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54364
54365 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54366             Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54369         <sys/types.h> and <inttypes.h>.
54370
54371 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54372
54373         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54374         `__error_t_defined', so argp.h will not typedef the former.
54375
54376 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54377
54378         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54379         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54380         glibc names.  Even if glibc is changed to conform to POSIX, the
54381         traditional names will be available anyway, since regex depends on
54382         the extensions module.  Also, fix a longstanding typo in the
54383         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54384         reported by Emanuele Giaquinta.  Also, change sense of cached
54385         variable, so that the message makes sense.
54386
54387 2006-03-24  Simon Josefsson  <jas@extundo.com>
54388
54389         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54390         including some doc fixes.
54391         (base64_encode_alloc): Fix +1 bug on allocation failures.
54392
54393 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54394
54395         * lib/base64.c (base64_encode): Do not read past end of array with
54396         unsanitized input on systems with CHAR_BIT > 8.
54397
54398 2006-03-24  Eric Blake  <ebb9@byu.net>
54399
54400         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54401
54402 2006-03-22  Karl Berry  <karl@gnu.org>
54403
54404         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54405         * config/srclistvars.sh (COREUTILS): new var.
54406
54407 2006-03-17  Jim Meyering  <jim@meyering.net>
54408
54409         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54410         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54411
54412 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54413
54414         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54415         no longer needs it.  Instead, check that regoff_t is as least
54416         as wide as ptrdiff_t.
54417
54418         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54419         so that our regex.h stays compatible with the installed regex.
54420         This is helpful for installers who configure --without-included-regex.
54421         Problem reported by Emanuele Giaquinta.
54422
54423 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54426         Typedef to long int, not to off_, as POSIX will likely change
54427         in that direction.
54428
54429 2006-03-15  Eric Blake  <ebb9@byu.net>
54430
54431         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54432
54433 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54434
54435         * lib/argp-help.c (validate_uparams): Fix typo
54436         * lib/argp-parse.c (argp_default_options): Consistently begin help
54437         messages with a lowercase letter.
54438
54439 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54442         overrun buffers and shouldn't be used (much as gets shouldn't be
54443         used).
54444         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54445
54446 2006-03-08  Simon Josefsson  <jas@extundo.com>
54447
54448         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54449         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54450
54451 2006-03-08  Simon Josefsson  <jas@extundo.com>
54452
54453         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54454         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54455
54456 2006-03-08  Simon Josefsson  <jas@extundo.com>
54457
54458         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54459         signal that configure disabled the device.
54460
54461 2006-03-08  Simon Josefsson  <jas@extundo.com>
54462
54463         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54464         languages.
54465
54466 2006-03-07  Simon Josefsson  <jas@extundo.com>
54467
54468         * modules/getopt (Depends-on): Add unistd.
54469
54470         * modules/unistd: New file.
54471
54472 2006-03-07  Simon Josefsson  <jas@extundo.com>
54473
54474         * modules/gc-random: New file.
54475
54476 2006-03-07  Simon Josefsson  <jas@extundo.com>
54477
54478         * m4/unistd_h.m4: New file.
54479
54480 2006-03-07  Simon Josefsson  <jas@extundo.com>
54481
54482         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54483         test to be side-effect free by storing the result in the cache
54484         variable gl_cv_lib_readline, and moving the assignment of
54485         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54486         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54487
54488 2006-03-07  Simon Josefsson  <jas@extundo.com>
54489
54490         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54491         error on missing devices (the functions will return an error).
54492
54493         * m4/gc.m4: Move random stuff to gc-random.m4
54494
54495 2006-03-07  Simon Josefsson  <jas@extundo.com>
54496
54497         * lib/unistd_.h: New file.
54498
54499 2006-03-07  Simon Josefsson  <jas@extundo.com>
54500
54501         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54502
54503 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54506         Problem reported by Juan Manuel Guerrero.
54507
54508 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54511         the unistd module.
54512         * lib/getlogin_r.c: Likewise.
54513         * lib/getlogin_r.h: Likewise.
54514         * lib/glob.c: Likewise.
54515         * lib/pagealign_alloc.c: Likewise.
54516         * lib/unistd_.h: Remove; no longer needed.
54517
54518 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54521         Add unistd.
54522         * modules/c-stack (Depends-on): Add unistd.
54523         * modules/getlogin_r: Likewise.
54524         * modules/glob: Likewise.
54525         * modules/pagealign_alloc: Likewise.
54526         * modules/unistd (Files): Remove lib/unistd_.h.
54527         (EXTRA_DIST): Remove.
54528         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54529         need unistd_.h.
54530         (MOSTLYCLEANFILES): Remove unistd.h-t.
54531
54532 2006-03-03  Simon Josefsson  <jas@extundo.com>
54533
54534         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54535
54536 2006-03-03  Simon Josefsson  <jas@extundo.com>
54537
54538         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54539         libidn and bison.
54540
54541 2006-03-03  Simon Josefsson  <jas@extundo.com>
54542
54543         * build-aux/maint.mk: Add indent target.
54544
54545 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54546
54547         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54548         our replacement poll.h in any case, to avoid a differing
54549         declaration from a system header.  Seen on AIX.
54550
54551 2006-03-01  Simon Josefsson  <jas@extundo.com>
54552
54553         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54554         <kasal@ucw.cz>.
54555
54556 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54557
54558         * modules/gettime (Depends-on): Add extensions module.
54559         * modules/nanosleep (Depends-on): Likewise.
54560         * modules/settime (Depends-on): Likewise.
54561
54562 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54565         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54566         pedantically.
54567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54568         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54569
54570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54571         not "==".  Reported by Ralf Wildenhues.
54572
54573 2006-03-01  Karl Berry  <karl@gnu.org>
54574
54575         * doc/Copyright/request-*: new files, synced from gnuorg.
54576
54577 2006-03-01  Karl Berry  <karl@gnu.org>
54578
54579         * config/srclist.txt (Copyright/*): new entries.
54580
54581 2006-02-28  Simon Josefsson  <jas@extundo.com>
54582
54583         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54584
54585 2006-02-27  Simon Josefsson  <jas@extundo.com>
54586
54587         * lib/base64.h: Indent #define's.  From Jim Meyering
54588         <jim@meyering.net>.
54589
54590 2006-02-27  Jim Meyering  <jim@meyering.net>
54591
54592         Revert the change of 2006-02-24, so these files can continue
54593         to be sync'd from gettext.
54594         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54595         of `config.h'.
54596
54597 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54598
54599         * modules/intprops: New file.
54600         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54601         Add intprops.
54602         * modules/getloadavg (Files): Remove lib/intprops.h.
54603         (Depends-on): Add intprops.
54604         * modules/human: Likewise.
54605         * modules/inttostr: Likewise.
54606         * modules/openat: Likewise.
54607         * modules/sig2str: Likewise.
54608         * modules/userspec: Likewise.
54609         * modules/utimecmp: Likewise.
54610         * modules/xnanosleep: Likewise.
54611         * modules/xstrtol: Likewise.
54612
54613 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54614
54615         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54616         * modules/lock-tests (TESTS): Use $(EXEEXT).
54617         * modules/tls-tests: Likewise.
54618         * modules/argp-tests: Likewise.
54619         (check_PROGRAMS): New var, replacing...
54620         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54621
54622 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54623
54624         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54625         `config.h'.
54626
54627 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54630
54631 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54632
54633         Sync from coreutils.
54634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54635         gl_CHDIR_SAFER.
54636
54637 2006-02-22  Jim Meyering  <jim@meyering.net>
54638
54639         Sync from coreutils.
54640         * m4/chdir-safer.m4: New file.
54641
54642 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54643
54644         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54645         AT_FDCWD exceeds INT_MAX.
54646         * lib/openat.h (AT_FDCWD): Likewise.
54647
54648 2006-02-17  Eric Blake  <address@hidden>
54649
54650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54651
54652 2006-02-16  Simon Josefsson  <jas@extundo.com>
54653
54654         * modules/getaddrinfo (Depends-on): Add sys_socket.
54655
54656 2006-02-15  Simon Josefsson  <jas@extundo.com>
54657
54658         * build-aux/maint.mk: Add dsyntax-check rule.
54659
54660 2006-02-15  Eric Blake  <ebb9@byu.net>
54661
54662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54663         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54664         'present but cannot compile' warnings on cygwin.
54665         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54666         use ws2tcpip.h if sys/socket.h works.
54667         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54668         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54669
54670 2006-02-14  Simon Josefsson  <jas@extundo.com>
54671
54672         * modules/maintainer-makefile (Files): Rename.
54673
54674         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54675         and (the local) Makefile.cfg to maint-cfg.mk.
54676
54677         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54678         to the latter.
54679
54680         * modules/maintainer-makefile: New module.
54681
54682         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54683         severaly stripped to make it possible to build it up from scratch
54684         with reliable tests.
54685
54686         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54687         fixes to permit overriding the default actions when configure and
54688         makefile are not available.
54689
54690 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         Sync from coreutils.
54693         * modules/lstat (Depends-on): Don't depend on xalloc.
54694         (License): Change from GPL to LGPL, since this is now simply a
54695         replacement for a libc function.
54696
54697 2006-02-14  Jim Meyering  <jim@meyering.net>
54698
54699         Sync from coreutils.
54700
54701         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54702         failure on deficient systems, and simplify gnulib lgpl dependencies.
54703         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54704         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54705
54706         * lib/xalloc-die.c: Remove unused definition of N_.
54707
54708 2006-02-14  Jim Meyering  <jim@meyering.net>
54709
54710         Sync from coreutils.
54711         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54712         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54713         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54714         double-quote uses of that variable, to accommodate the rare case in
54715         which getmntent is available in none of the libraries checked.  This
54716         happens at least on FreeBSD 5.0.
54717
54718 2006-02-13  Simon Josefsson  <jas@extundo.com>
54719
54720         * gnulib-tool (Usage): Fix --import, from
54721         karl@freefriends.org (Karl Berry).
54722
54723 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54724
54725         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54726
54727 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54728
54729         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54730         "autoupdate" on 2005-12-12.
54731
54732 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54733
54734         * modules/closeout (Depends-on): Remove atexit.
54735
54736 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54739         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54740
54741 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54744         __EXTENSIONS__ if this causes compilation to fail.  Problem
54745         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54746         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54747
54748 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54749
54750         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54751         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54753         All uses changed.
54754
54755 2006-01-26  Simon Josefsson  <jas@extundo.com>
54756
54757         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54758         prototype is visible on mingw32.
54759
54760         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54761         for mingw32.
54762
54763         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54764         mingw32).
54765
54766 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54769         attempt to open for write; this always fails, at least on POSIX
54770         hosts.  This reinstates the 2006-01-09 change, which was
54771         inadvertently removed.
54772
54773 2006-01-26  Bruno Haible  <bruno@clisp.org>
54774
54775         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54776         Reported by Paul Eggert.
54777
54778 2006-01-26  Bruno Haible  <bruno@clisp.org>
54779             Paul Eggert  <eggert@cs.ucla.edu>
54780
54781         * lib/stdbool_.h (_Bool)
54782         [(! (defined __cplusplus || defined __BEOS__)
54783           && !defined __GNUC__
54784           && !(defined __HP_cc || defined __xlc__
54785                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54786                || defined __sgi))]:
54787         #define to signed char in these cases too; this simplifies
54788         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54789         etc., separately) and makes it more conservative.
54790
54791 2006-01-25  Simon Josefsson  <jas@extundo.com>
54792
54793         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54794         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54795         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54796
54797 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54798
54799         * lib/argp-namefrob.h: Bugfix. Remove stray #
54800
54801 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54804         so that we test the test.
54805         Check for yet another HP-UX cc bug involving *bool |= bool.
54806
54807 2006-01-25  Karl Berry  <karl@gnu.org>
54808
54809         * config/srclist.txt (vasnprintf.c): sync lost.
54810
54811 2006-01-25  Jim Meyering  <jim@meyering.net>
54812
54813         Sync from the stable (b5) branch of coreutils:
54814
54815         * lib/fts.c (fts_children): Don't let close() clobber errno from
54816         failed fchdir().
54817
54818         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54819         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54820         a dangling symlink.  That can also happen at least for ELOOP.
54821         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54822         FYI, this bug predates the inclusion of fts.c in coreutils.
54823
54824         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54825         in their own block, so pre-c99 compilers don't object.
54826
54827         Avoid the double-free (first in fts_read, second in fts_close) that
54828         would occur when an `active' directory is made inaccessible (e.g.,
54829         via chmod a-x) during a traversal.
54830         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54831         before returning.  Reproduce this failure by
54832         mkdir -p a/b; cd a; chmod a-x . b
54833         Reported by Stavros Passas.
54834
54835 2006-01-25  Jim Meyering  <jim@meyering.net>
54836
54837         * lib/fileblocks.c: Remove more useless parentheses.
54838         * lib/readutmp.h: Likewise.
54839
54840 2006-01-25  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54843         warnings.
54844         Reported by Paul Eggert.
54845
54846 2006-01-25  Bruno Haible  <bruno@clisp.org>
54847
54848         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54849         rid of a trap command. For Solaris sh.
54850         Reported by Mark D. Baushke <mdb@gnu.org>.
54851
54852 2006-01-24  Simon Josefsson  <jas@extundo.com>
54853
54854         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54855         Bruno.
54856
54857 2006-01-24  Karl Berry  <karl@gnu.org>
54858
54859         * config/srclist.txt (argp-namefrob.h): sync lost.
54860
54861 2006-01-24  Jim Meyering  <jim@meyering.net>
54862
54863         * modules/openat (Files): Add lib/intprops.h.
54864         From Mark D. Baushke.
54865
54866 2006-01-24  Jim Meyering  <jim@meyering.net>
54867
54868         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54869         Reported by Mark D. Baushke.
54870
54871 2006-01-24  Jim Meyering  <jim@meyering.net>
54872
54873         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54874
54875 2006-01-24  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/strnlen (Maintainer): Change from glibc to all.
54878
54879 2006-01-24  Bruno Haible  <bruno@clisp.org>
54880
54881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54882         Patch by Paul Eggert.
54883
54884 2006-01-24  Bruno Haible  <bruno@clisp.org>
54885
54886         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54887         already has it.
54888         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54889         2005-11-26.
54890
54891         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54892         'signed char' to avoid problems with the built-in _Bool type.
54893         Reported by Paul Eggert on 2005-11-26.
54894
54895 2006-01-24  Bruno Haible  <bruno@clisp.org>
54896
54897         * gnulib-tool (func_import): Avoid constructing complicated sed
54898         expressions inside backquote.
54899         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54900
54901 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54902
54903         These changes imported from libc.
54904         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54905         test and two separate function calls.
54906         * lib/strndup.c (__strndup): Add libc_hidden_def.
54907
54908 2006-01-23  Simon Josefsson  <jas@extundo.com>
54909
54910         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54911         Remove the test_*_SOURCES variable: automake infers it by default.
54912         * modules/tls-tests: Likewise.
54913
54914 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         Work around porting bugs reported by Dieter in
54917         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54918         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54919         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54920         Include "getopt.h" first, to check interface.
54921         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54922         !HAVE_DECL_GETENV.
54923         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54924         (__strndup): Revert to K&R-style function dfns, the glibc style.
54925         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54926         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54927         Include strnlen.h first, to get prototype properly.
54928         (strnlen): Renamed from __strnlen.
54929         Remove weak alias.
54930
54931 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54934
54935 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54936
54937         * config/srclist.txt: Adjust to reflect glibc reorganization.
54938         This affects only comments.
54939
54940 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54941
54942          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54943          Reported by Bruce Korb <bkorb@gnu.org>.
54944
54945 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54948         to pacify gcc -Wswitch-default.
54949
54950 2006-01-22  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54953         temporary buffer for sprintf, take into account the precision also
54954         for 'd', 'i', 'u', 'o', 'x', 'X'.
54955
54956 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54957
54958         * modules/argp-tests: New module
54959         * tests/test-argp.c: New file
54960         * tests/test-argp-2.sh: New file
54961
54962 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54963
54964         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54965         (__argp_base_name): Removed
54966         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54967         typo.
54968         (__argp_base_name): Provide macro definition or extern declaration
54969         depending on the configuration
54970
54971 2006-01-20  Simon Josefsson  <jas@extundo.com>
54972
54973         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54974
54975 2006-01-20  Simon Josefsson  <jas@extundo.com>
54976
54977         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54978
54979 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54982         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54983         Suggested by Bruno Haible.
54984
54985 2006-01-20  Karl Berry  <karl@gnu.org>
54986
54987         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54988         until changes propagate, I guess.
54989
54990 2006-01-19  Simon Josefsson  <jas@extundo.com>
54991
54992         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54993
54994 2006-01-19  Simon Josefsson  <jas@extundo.com>
54995
54996         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54997
54998 2006-01-19  Simon Josefsson  <jas@extundo.com>
54999
55000         * gnulib-tool: Set check_PROGRAMS.
55001
55002         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55003         modules/des-tests, modules/gc-arcfour-tests,
55004         modules/gc-arctwo-tests, modules/gc-des-tests,
55005         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55006         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55007         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55008         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55009         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55010         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55011         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55012         test_*_SOURCES.
55013
55014 2006-01-18  Simon Josefsson  <jas@extundo.com>
55015
55016         * modules/socklen (Depends-on): Depend on sys_socket.
55017
55018 2006-01-18  Simon Josefsson  <jas@extundo.com>
55019
55020         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55021         modules/des-tests, modules/gc-arcfour-tests,
55022         modules/gc-arctwo-tests, modules/gc-des-tests,
55023         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55024         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55025         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55026         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55027         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55028         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55029         $(EXEEXT) to automake TESTS variable, for mingw32.
55030
55031 2006-01-17  Simon Josefsson  <jas@extundo.com>
55032
55033         * modules/socklen (Include): Need sys/socket.h.
55034
55035 2006-01-17  Bruno Haible  <bruno@clisp.org>
55036
55037         * modules/ssize_t (Include): Add <sys/types.h>.
55038
55039 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55042         it's not portable and it doesn't work with cross-compiles.
55043         Problem reported by Bruno Haible.  Fix missing-$ typo in
55044         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55045         -zignore from being used with Sun's C compiler.
55046
55047 2006-01-12  Simon Josefsson  <jas@extundo.com>
55048
55049         * lib/base64.c: Fix warning, reported by Bruno Haible
55050         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55051
55052 2006-01-12  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/ldd: New file.
55055         * build-aux/ldd.sh.in: New file.
55056         * MODULES.html.sh (Support for building libraries and executables): Add
55057         ldd.
55058
55059 2006-01-12  Bruno Haible  <bruno@clisp.org>
55060
55061         * m4/ldd.m4: New file.
55062
55063 2006-01-12  Bruno Haible  <bruno@clisp.org>
55064
55065         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55066         endless loop while replacing $auxdir with build-aux.
55067
55068 2006-01-11  Simon Josefsson  <jas@extundo.com>
55069
55070         * lib/stdint_.h (SIZE_MAX): Add missing (.
55071
55072 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55073
55074         Sync from coreutils.
55075         * lib/md5.c: Fix commentary typos.
55076         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55077         * lib/md5.h (__attribute__): Remove; unused.
55078         * lib/sha1.c: Fix commentary to match md5 better.
55079         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55080         so that we don't need to worry about alignment.  All uses changed.
55081         This merges the 2005-10-28 md5 change into sha1.
55082
55083 2006-01-11  Jim Meyering  <jim@meyering.net>
55084
55085         Sync from coreutils.
55086         * lib/md5.c (OP): Fix spacing.
55087
55088 2006-01-11  Bruno Haible  <bruno@clisp.org>
55089
55090         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55091         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55092         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55093
55094 2006-01-11  Bruno Haible  <bruno@clisp.org>
55095
55096         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55097         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55098         the "early" section as well.
55099
55100 2006-01-11  Bruno Haible  <bruno@clisp.org>
55101
55102         Avoid "ar: no archive members specified" error on MacOS X.
55103         * gnulib-tool (func_modules_add_dummy): New function.
55104         (func_import, func_create_testdir): Invoke it.
55105
55106 2006-01-11  Bruno Haible  <bruno@clisp.org>
55107
55108         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55109         with $auxdir in AC_CONFIG_FILES statements.
55110
55111 2006-01-11  Bruno Haible  <bruno@clisp.org>
55112
55113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55114         Initialize also noinst_HEADERS to empty.
55115
55116 2006-01-11  Bruno Haible  <bruno@clisp.org>
55117
55118         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55119         variables.
55120         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55121         autoreconf.
55122
55123 2006-01-11  Bruno Haible  <bruno@clisp.org>
55124
55125         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55126         overridable by the user.
55127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55128
55129 2006-01-10  Simon Josefsson  <jas@extundo.com>
55130
55131         * modules/sys_socket: New file.
55132
55133 2006-01-10  Simon Josefsson  <jas@extundo.com>
55134
55135         * m4/sys_socket_h.m4: New file.
55136
55137 2006-01-10  Simon Josefsson  <jas@extundo.com>
55138
55139         * lib/socket_.h: New file.
55140
55141 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * modules/readutmp (Maintainer): Add myself.
55144
55145 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55148         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55149         People who are still concerned with buggy memcmp implementations
55150         can invoke gl_FUNC_MEMCMP themselves.
55151
55152 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * lib/regex_internal.h (BITSET_WORD_BITS):
55155         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55156         preprocessor mishandles large unsigned values as if they were signed.
55157         Problem reported by Claudio Fontana in
55158         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55159
55160 2006-01-10  Jim Meyering  <jim@meyering.net>
55161
55162         Avoid the double-free (first in fts_read, second in fts_close) that
55163         would occur when an `active' directory is made inaccessible (e.g.,
55164         via chmod a-x) during a traversal.
55165         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55166         before returning.  Reproduce this failure by
55167         mkdir -p a/b; cd a; chmod a-x . b
55168         Reported by Stavros Passas.
55169
55170         Sync from coreutils.
55171         * lib/sha1.c: Tweak grammar in a comment.
55172
55173 2006-01-10  Jim Meyering  <jim@meyering.net>
55174
55175         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55176         Patch by Joerg Sonnenberger.
55177
55178 2006-01-10  Bruno Haible  <bruno@clisp.org>
55179
55180         * modules/readutmp: Depend on module free.
55181         * modules/strtok_r: Depend on module restrict.
55182
55183 2006-01-10  Bruno Haible  <bruno@clisp.org>
55184
55185         * modules/gettext (configure.ac): Add an invocation of
55186         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55187
55188 2006-01-10  Bruno Haible  <bruno@clisp.org>
55189
55190         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55191         Reported by Werner Lemberg <wl@gnu.org>.
55192
55193 2006-01-10  Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/localcharset.c: Update from GNU gettext.
55196
55197 2006-01-10  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/argp.h (__const): Remove macro. Use const instead.
55200         * lib/argp-fmtstream.h (__const): Likewise.
55201         * lib/glob_.h (__const): Remove macro.
55202         * lib/glob-libc.h: Use const instead of __const.
55203
55204 2006-01-10  Bruno Haible  <bruno@clisp.org>
55205
55206         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55207         variable.
55208         Needed to avoid an automake error regarding the 'gettext' module.
55209
55210 2006-01-09  Simon Josefsson  <jas@extundo.com>
55211
55212         * modules/inet_ntop (Depends-on): Add restrict.
55213
55214 2006-01-09  Simon Josefsson  <jas@extundo.com>
55215
55216         * modules/gc-rijndael-tests (License): Put under LGPL.
55217
55218         * modules/gc-des-tests (License): Likewise.
55219
55220         * modules/gc-arcfour-tests (License): Likewise.
55221
55222         * modules/gc-arctwo-tests (License): Likewise.
55223
55224         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55225
55226         * modules/gc-hmac-sha1-tests (Files): Likewise.
55227
55228         * modules/gc-hmac-md5-tests (License): Likewise.
55229
55230         * modules/gc-sha1-tests (License): Likewise.
55231
55232         * modules/gc-md5-tests (License): Likewise.
55233
55234         * modules/gc-md4-tests (License): Likewise.
55235
55236         * modules/gc-md2-tests (License): Likewise.
55237
55238         * modules/gc-tests (License): Likewise.
55239
55240         * modules/des-tests (License): Likewise.
55241
55242         * modules/md4-tests (License): Likewise.
55243
55244         * modules/md2-tests (License): Likewise.
55245
55246 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55247
55248         Sync from coreutils:
55249
55250         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55251         * modules/lib-ignore: New file.
55252         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55253         chdir-safer.m4, lchmod.m4.
55254         * modules/openat: Add mkdirat.c, openat-priv.h.
55255
55256 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         Sync from coreutils.
55259         * m4/lib-ignore.m4: New file.
55260         * m4/lchmod.m4: New file.
55261
55262 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         Sync from coreutils.
55265         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55266         for write access: POSIX says that must fail.
55267         * lib/fts.c (diropen): Likewise.
55268         * lib/save-cwd.c (save_cwd): Likewise.
55269         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55270         well, for minor improvements on hosts that lack O_DIRECTORY.
55271         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55272         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55273         Fall back on chown if open failed with EACCES.
55274
55275         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55276         Report an error at compile-time if only a 1-second nominal clock
55277         resolution is found.
55278
55279         * lib/lchmod.h: New file.
55280         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55281         (make_dir_parents): Use lchown rather than chown, and
55282         lchmod rather than chmod.
55283
55284         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55285         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55286         "proc" reported by n0dalus.
55287
55288         * lib/mountlist.c: Include <limits.h>.
55289         (dev_from_mount_options)
55290         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55291         New function.  It no longer assumes "dev=" has the System V meaning
55292         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55293         (read_file_system_list)
55294         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55295         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55296         dev= in that case.
55297
55298         * lib/posixtm.h (PDS_PRE_2000): New macro.
55299         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55300         allow_century.  All usages changed.  Reject dates outside the range
55301         1969-1999 if PDS_PRE_2000 is used.
55302
55303 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         Sync from coreutils.
55306         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55307         (Time of day items): Mention the possibility of leap seconds.
55308         Problem reported by Dr. David Alan Gilbert.
55309
55310 2006-01-09  Jim Meyering  <jim@meyering.net>
55311
55312         Sync from coreutils.
55313
55314         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55315
55316         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55317
55318         * lib/modechange.c (mode_compile): Reject an invalid mode string
55319         that starts with an octal digit.  From Andreas Gruenbacher.
55320
55321         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55322         and dup to open_safer and dup_safer, respectively.
55323         (openat_permissive): Fix typo in comment.
55324
55325         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55326         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55327         (_): Remove; no longer needed.
55328         (openat): Renamed from rpl_openat; no need for rpl_openat
55329         since openat.h renames openat for us.
55330         Replace most of the body with a call to openat_permissive,
55331         to avoid duplicate code.
55332         Port to (probably hypothetical) environments were mode_t is
55333         wider than int.
55334         (openat_permissive): Require mode arg, so that we can check
55335         types better.  Put it just after flags.  Change cwd failure
55336         indicator from pointer-to-bool to pointer-to-errno-value.
55337         All callers changed.
55338         Invoke openat_save_fail and/or openat_restore_fail if
55339         cwd_errno is null, so that openat can call us.
55340         (openat_permissive, fdopendir, fstatat, unlinkat):
55341         Simplify errno handling to avoid some duplicate code,
55342         as it's OK to set errno on success.
55343         * lib/openat.h: Revamp code so that function macros depend on
55344         __OPENAT_PREFIX only, not also on AT_FDCWD.
55345         (openat_ro): Remove.  Caller changed to use openat_permissive.
55346         (openat_permissive): Now a macro, if not a function.
55347         (openat_restore_fail, openat_save_fail): Now always functions,
55348         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55349
55350         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55351         and openat.c.
55352         * lib/mkdirat.c: Include openat-priv.h.
55353         Remove definitions of macros defined therein.
55354         * lib/openat.c: Likewise.
55355
55356         * lib/mkdirat.c (mkdirat): New file and function.
55357         * lib/openat.h (mkdirat): Declare.
55358
55359         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55360
55361         * lib/openat.h (openat_permissive): Declare.
55362         (openat_ro): Define.
55363
55364         * lib/openat.c (EXPECTED_ERRNO): New macro.
55365         (openat_permissive): New function -- used in remove.c rewrite.
55366         (all functions): Set errno just before returning, only if there
55367         was an actual failure.
55368         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55369
55370         Emulate openat-family functions using Linux's procfs, if possible.
55371         Idea and some code based on Ulrich Drepper's glibc changes.
55372
55373         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55374         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55375         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55376         before falling back on save_cwd and restore_cwd.
55377         (fdopendir, fstatat, unlinkat): Likewise.
55378
55379         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55380         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55381
55382         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55383         as second argument to va_arg.  Otherwise, some versions of gcc
55384         warn that `if this code is reached, the program will abort'.
55385
55386 2006-01-09  Jim Meyering  <jim@meyering.net>
55387
55388         Sync from coreutils.
55389         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55390         Require openat-priv.h.
55391
55392 2006-01-09  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/strnlen (Include): Use strnlen.h.
55395
55396 2006-01-09  Bruno Haible  <bruno@clisp.org>
55397
55398         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55399
55400 2006-01-09  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/sysexit_.h (EX_OK): New macro.
55403         Suggested by Martin Lambers <marlam@marlam.de>.
55404
55405 2006-01-09  Bruno Haible  <bruno@clisp.org>
55406
55407         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55408         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55409
55410 2006-01-09  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55413         numbers.
55414
55415 2006-01-09  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55418         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55419         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55420         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55421
55422 2006-01-09  Bruno Haible  <bruno@clisp.org>
55423
55424         * build-aux/javacomp.sh.in: New file, moved from lib/.
55425         * modules/javacomp-script (Files): Update.
55426         (configure.ac): Add AC_CONFIG_FILES invocation.
55427         (EXTRA_DIST): Remove variable.
55428
55429         * build-aux/javaexec.sh.in: New file, moved from lib/.
55430         * modules/javaexec (Files): Update.
55431         (configure.ac): Add AC_CONFIG_FILES invocation.
55432         (EXTRA_DIST): Remove javaexec.sh.in.
55433
55434         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55435         * modules/csharpcomp-script (Files): Update.
55436         (configure.ac): Add AC_CONFIG_FILES invocation.
55437         (EXTRA_DIST): Remove variable.
55438
55439         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55440         * modules/csharpexec (Files): Update.
55441         (configure.ac): Add AC_CONFIG_FILES invocation.
55442         (EXTRA_DIST): Remove csharpexec.sh.in.
55443
55444 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55445
55446         Sync from coreutils.
55447
55448         Add POSIX ACL support
55449         * lib/acl.h (copy_acl, set_acl): Add declarations.
55450         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55451         systems other than Linux.
55452         (chmod_or_fchmod): New function: use fchmod when possible,
55453         and chmod otherwise.
55454         (file_has_acl): Add a POSIX ACL implementation, with a
55455         Linux-specific subcase.
55456         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55457         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55458         acls are unsupported.
55459         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55460         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55461         are unsupported.
55462
55463 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55464
55465         Sync from coreutils.
55466         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55467
55468 2006-01-07  Bruno Haible  <bruno@clisp.org>
55469
55470         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55471         gl_EARLY.
55472
55473 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55474
55475         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55476         Problem reported for Mingw by Mark Junker.
55477
55478 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55479
55480         * README: Gnulib normally doesn't generate a tarball.
55481
55482 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55485         long int, not int, for nanosecond counts, so that people who are
55486         used to POSIX struct timespec won't be surprised.  Reported by Jim
55487         Meyering.
55488
55489 2005-12-28  Bruno Haible  <bruno@clisp.org>
55490
55491         * build-aux/config.rpath: Update from GNU gettext.
55492
55493 2005-12-16  Jim Meyering  <jim@meyering.net>
55494
55495         * modules/fprintftime: New module.
55496         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55497
55498 2005-12-16  Jim Meyering  <jim@meyering.net>
55499
55500         * m4/fprintftime.m4: New file.
55501
55502 2005-12-16  Jim Meyering  <jim@meyering.net>
55503
55504         * lib/fprintftime.c, lib/fprintftime.h: New files.
55505
55506 2005-12-15  Simon Josefsson  <jas@extundo.com>
55507
55508         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55509         new m4/socklen.m4.
55510
55511 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55512
55513         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55514         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55515
55516 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55517
55518         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55519         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55520         struct uparams is valid. Fall back to the default values if it is
55521         not.
55522
55523 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55524
55525         * modules/argp (Files): Add argp-pin.c
55526         (Depends-on): dirname
55527         (lib_SOURCES): Add argp-pin.c
55528
55529 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55530
55531         * m4/argp.m4:  Check if program_invocation_name and
55532         program_invocation_short_name are declared and define appropriate
55533         macros if they are not.
55534
55535 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55536
55537         * lib/argp-help.c (__argp_base_name): New function
55538         (__argp_short_program_name): Rewrite using __argp_base_name
55539         * lib/argp-namefrob.h: Define program_invocation_name and
55540         program_invocation_short_name if requested
55541         (__argp_base_name): Add prototype
55542         * lib/argp-parse.c (argp_def): Use gettext wrappers
55543         (argp_default_parser): Use __argp_base_name
55544         * lib/argp-pin.c: New file. Defines program_invocation_name and
55545         program_invocation_short_name on systems that lack them.
55546
55547 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55550         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55551         porting problem reported by Georg Schwarz in
55552         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55553
55554 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55557         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55558         porting problem reported by Georg Schwarz in
55559         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55560
55561 2005-12-05  Bruno Haible  <bruno@clisp.org>
55562
55563         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55564         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55565         Reported by Mark Junker <mjscod@gmx.de>.
55566
55567 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55570         Use implementation from Albert Chin, with some
55571         comments/corrections by Stepan Kasal and myself.
55572
55573 2005-12-02  Bruno Haible  <bruno@clisp.org>
55574
55575         * gnulib-tool (func_import): Accept GPLed build tool modules when
55576         --lgpl is given.
55577         * modules/csharpcomp-script: New file.
55578         * modules/csharpcomp: Depend on it.
55579         * modules/javacomp-script: New file.
55580         * modules/javacomp: Depend on it.
55581         Suggested by Simon Josefsson.
55582
55583 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55586         statement, to work around an HP-UX 10.20 compiler bug reported by
55587         Peter O'Gorman.
55588
55589 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         * modules/savedir (Depends-on): Add openat.
55592
55593 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55596         (uintmax_t) [defined uintmax_t]: Do not declare.
55597         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55598         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55599         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55600         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55601         sake of portability to weird hosts that C allows (though we don't
55602         know of any practical examples).
55603
55604         * lib/savedir.h (fdsavedir): New decl.
55605         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55606         contains most of the former guts of savedir.
55607         (savedir): Use savedirstream.
55608         Include "openat.h".
55609
55610 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         * modules/obstack (Files): Add m4/ulonglong.m4.
55613         Problem reported by Davide Angelocola.
55614
55615 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55618         coreutils no longer futzes with rounding modes.
55619
55620 2005-11-14  Jim Meyering  <jim@meyering.net>
55621
55622         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55623         replacement of mkstemp.
55624
55625 2005-11-10  Simon Josefsson  <jas@extundo.com>
55626
55627         * lib/readline.c: Remove EOL.
55628
55629 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55630
55631         * modules/gethrxtime (Depends-on): Add gettime.
55632
55633 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55636         or gettimeofday; no longer needed.
55637
55638 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55641         time business.
55642         (gethrxtime) [! (HAVE_NANOUPTIME
55643         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55644         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55645         our own approximation.
55646
55647 2005-11-08  Eric Blake  <ebb9@byu.net>
55648
55649         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55650
55651 2005-11-08  Eric Blake  <ebb9@byu.net>
55652
55653         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55654
55655 2005-11-04  Bruno Haible  <bruno@clisp.org>
55656
55657         * gnulib-tool: Implement --update mode.
55658
55659 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         Fix porting problem reported by Theodoros V. Kalamatianos.
55662         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55663         Don't assume that futimes failing means we must fail.
55664
55665 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55666
55667         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55668         variables to suggest the intended function of the PATH_MAX check.
55669
55670 2005-10-30  Kean Johnston  <jkj@sco.com>
55671
55672         Trivial changes to support SCO systems.
55673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55674         as PATH_MAX.
55675         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55676         where __ptr is null when no I/O is pending.
55677
55678 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55681         leave errno alone.  Problem reported by Dmitry V. Levin.
55682
55683 2005-10-28  Simon Josefsson  <jas@extundo.com>
55684
55685         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55686         Test more.
55687
55688         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55689
55690         * modules/md2, modules/md2-tests: New files.
55691
55692 2005-10-28  Simon Josefsson  <jas@extundo.com>
55693
55694         * m4/inet_ntop.m4: More tests.
55695
55696         * m4/gc-md2.m4, md2.m4: New file.
55697
55698 2005-10-28  Simon Josefsson  <jas@extundo.com>
55699
55700         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55701         "restrict" keywords, as per POSIX.  Protect the function
55702         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55703         Don't use K&R prototypes.  Check the sprintf return values.
55704         Re-define EAFNOSUPPORT if not present.  Indent.
55705
55706         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55707         suggested by Bruno Haible <bruno@clisp.org>.
55708
55709         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55710
55711         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55712
55713         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55714         libgcrypt).
55715
55716         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55717
55718         * lib/md2.h, lib/md2.c: New files.
55719
55720 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55723         errno alone.  Problem reported by Frederic Jolliton.
55724
55725 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * modules/verify (License): Change from GPL to LGPL.  This is a
55728         tiny module and there are apparently near-equivalents that are
55729         under the BSD license.
55730
55731 2005-10-24  Simon Josefsson  <jas@extundo.com>
55732
55733         * modules/sha1: Relicense to LGPL.
55734
55735 2005-10-24  Simon Josefsson  <jas@extundo.com>
55736
55737         * lib/md4.h: Shrink buffer size, now that we changed the type.
55738
55739 2005-10-23  Simon Josefsson  <jas@extundo.com>
55740
55741         * gnulib-tool (func_import): Fix --tests-base.
55742
55743 2005-10-22  Simon Josefsson  <jas@extundo.com>
55744
55745         * modules/arcfour (Depends-on): Need stdint.
55746
55747 2005-10-22  Simon Josefsson  <jas@extundo.com>
55748
55749         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55750         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55751
55752 2005-10-22  Simon Josefsson  <jas@extundo.com>
55753
55754         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55755         suggested by Bruno Haible <bruno@clisp.org>.
55756
55757 2005-10-22  Simon Josefsson  <jas@extundo.com>
55758
55759         * lib/crc.h: Include stddef.h, for size_t.
55760
55761 2005-10-22  Simon Josefsson  <jas@extundo.com>
55762
55763         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55764         arcfour_context struct (simplify test vector testing in GNU
55765         Shishi).
55766
55767 2005-10-21  Simon Josefsson  <jas@extundo.com>
55768
55769         * modules/des, modules/des-tests: New files.
55770
55771         * modules/gc-des, modules/gc-des-tests: New files.
55772
55773         * tests/test-des.c, tests/test-gc-des.c: New file.
55774
55775 2005-10-21  Simon Josefsson  <jas@extundo.com>
55776
55777         * modules/arctwo, modules/arctwo-tests: New files.
55778
55779         * tests/test-arctwo.c: New file.
55780
55781         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55782
55783         * tests/test-gc-arctwo.c: New file.
55784
55785 2005-10-21  Simon Josefsson  <jas@extundo.com>
55786
55787         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55788         Bruno Haible <bruno@clisp.org>.
55789
55790         * m4/gc-des.m4: New file.
55791
55792 2005-10-21  Simon Josefsson  <jas@extundo.com>
55793
55794         * m4/arctwo.m4: New file.
55795
55796         * m4/gc-arctwo.m4: New file.
55797
55798 2005-10-21  Simon Josefsson  <jas@extundo.com>
55799
55800         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55801         block.
55802
55803 2005-10-21  Simon Josefsson  <jas@extundo.com>
55804
55805         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55806         <bruno@clisp.org>.
55807
55808         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55809
55810         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55811         Bruno Haible <bruno@clisp.org>.
55812
55813         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55814         <bruno@clisp.org>.
55815
55816 2005-10-21  Simon Josefsson  <jas@extundo.com>
55817
55818         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55819
55820 2005-10-21  Simon Josefsson  <jas@extundo.com>
55821
55822         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55823
55824 2005-10-21  Simon Josefsson  <jas@extundo.com>
55825
55826         * lib/des.h, lib/des.c: New files.
55827
55828         * lib/gc-gnulib.c: Support DES.c
55829
55830 2005-10-21  Simon Josefsson  <jas@extundo.com>
55831
55832         * lib/arctwo.h, lib/arctwo.c: New files.
55833
55834         * lib/gc-gnulib.c: Support ARCTWO.
55835
55836 2005-10-21  Simon Josefsson  <jas@extundo.com>
55837
55838         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55839         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55840
55841 2005-10-21  Simon Josefsson  <jas@extundo.com>
55842
55843         * gnulib-tool (func_import, func_create_testdir): Define automake
55844         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55845         Makefile.am snippet),
55846         suggested by Bruno Haible <bruno@clisp.org>.
55847
55848         * modules/gc (Makefile.am): Use it.
55849
55850 2005-10-21  Bruno Haible  <bruno@clisp.org>
55851
55852         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55853         patch.
55854
55855 2005-10-19  Simon Josefsson  <jas@extundo.com>
55856
55857         * tests/test-gc-rijndael.c: New file.
55858
55859         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55860
55861 2005-10-19  Simon Josefsson  <jas@extundo.com>
55862
55863         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55864         interface too.
55865
55866 2005-10-19  Simon Josefsson  <jas@extundo.com>
55867
55868         * tests/test-gc-arcfour.c: New file.
55869
55870         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55871
55872 2005-10-19  Simon Josefsson  <jas@extundo.com>
55873
55874         * modules/gc-md4, modules/gc-md4-tests: New file.
55875
55876         * tests/test-gc-md4.c: New file.
55877
55878 2005-10-19  Simon Josefsson  <jas@extundo.com>
55879
55880         * m4/gc-md4.m4: New file.
55881
55882 2005-10-19  Simon Josefsson  <jas@extundo.com>
55883
55884         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55885         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55886         <kasal@ucw.cz>.
55887
55888 2005-10-19  Simon Josefsson  <jas@extundo.com>
55889
55890         * m4/gc-arcfour.m4: New file.
55891
55892         * m4/gc-rijndael.m4: New file.
55893
55894 2005-10-19  Simon Josefsson  <jas@extundo.com>
55895
55896         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55897
55898 2005-10-19  Simon Josefsson  <jas@extundo.com>
55899
55900         * lib/gc-gnulib.c: Support ARCFOUR.
55901
55902 2005-10-19  Simon Josefsson  <jas@extundo.com>
55903
55904         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55905         support.
55906
55907         * lib/gc.h: Add ECB enum type.
55908
55909         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55910
55911 2005-10-18  Simon Josefsson  <jas@extundo.com>
55912
55913         * tests/test-md5.c: New file.
55914
55915         * modules/md5-tests: New file.
55916
55917 2005-10-18  Simon Josefsson  <jas@extundo.com>
55918
55919         * tests/test-md4.c: New file.
55920
55921         * modules/md4, modules/md4-tests: New files.
55922
55923 2005-10-18  Simon Josefsson  <jas@extundo.com>
55924
55925         * m4/md4.m4: New file.
55926
55927 2005-10-18  Simon Josefsson  <jas@extundo.com>
55928
55929         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55930
55931 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55932
55933         * gnulib-tool (func_create_testdir): Omit the second check whether
55934         BUILT_SOURCES in nonempty.
55935
55936 2005-10-17  Simon Josefsson  <jas@extundo.com>
55937
55938         * tests/test-rijndael.c: New file.
55939
55940 2005-10-17  Simon Josefsson  <jas@extundo.com>
55941
55942         * modules/sha1: Depend on stdint instead of md5.
55943
55944         * modules/md5: Depend on stdint, remove uint32_t.
55945
55946 2005-10-17  Simon Josefsson  <jas@extundo.com>
55947
55948         * modules/gc-sha1-tests: New file.
55949
55950         * tests/test-gc-sha1.c: New file.
55951
55952 2005-10-17  Simon Josefsson  <jas@extundo.com>
55953
55954         * m4/md5.m4: Remove call to uint32_t.m4.
55955
55956 2005-10-17  Simon Josefsson  <jas@extundo.com>
55957
55958         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55959
55960         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55961         md5.h.
55962
55963         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55964
55965         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55966
55967 2005-10-17  Simon Josefsson  <jas@extundo.com>
55968
55969         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55970
55971 2005-10-17  Simon Josefsson  <jas@extundo.com>
55972
55973         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55974
55975 2005-10-17  Simon Josefsson  <jas@extundo.com>
55976
55977         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55978
55979         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55980
55981 2005-10-17  Bruno Haible  <bruno@clisp.org>
55982
55983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55984         that it can also be used in a test.
55985
55986 2005-10-16  Bruno Haible  <bruno@clisp.org>
55987
55988         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55989         TESTS_ENVIRONMENT, so that individual tests can augment it.
55990
55991         * gnulib-tool (func_create_testdir): Use an intermediate target for
55992         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55993         macros, like $(ALLOCA_H), which cannot be passed through the command
55994         line.
55995
55996 2005-10-15  Simon Josefsson  <jas@extundo.com>
55997
55998         * modules/rijndael-tests: New file.
55999
56000         * modules/rijndael: New file.
56001
56002 2005-10-15  Simon Josefsson  <jas@extundo.com>
56003
56004         * m4/rijndael.m4: New file.
56005
56006 2005-10-15  Simon Josefsson  <jas@extundo.com>
56007
56008         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56009
56010         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56011
56012 2005-10-14  Simon Josefsson  <jas@extundo.com>
56013
56014         * tests/test-arcfour.c: New file.
56015
56016         * modules/arcfour, modules/arcfour-tests: New files.
56017
56018 2005-10-14  Simon Josefsson  <jas@extundo.com>
56019
56020         * m4/arcfour.m4: New file.
56021
56022 2005-10-14  Simon Josefsson  <jas@extundo.com>
56023
56024         * lib/arcfour.h, lib/arcfour.c: New files.
56025
56026 2005-10-14  Roland McGrath  <roland@redhat.com>
56027
56028         Import from libc.  [BZ #1331]
56029         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56030         macro argument.
56031         Reported by Matej Vela <vela@debian.org>.
56032
56033 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56034
56035         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56036         include <wchar.h>; no longer needed.
56037
56038 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56039
56040         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56041
56042 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56043         and  Ulrich Drepper  <drepper@redhat.com>
56044
56045         Import from libc.
56046         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56047         instead of inline stream orientation test and two separate
56048         function calls.  Pay no attention to USE_IN_LIBIO.
56049
56050 2005-10-13  Simon Josefsson  <jas@extundo.com>
56051
56052         * modules/gc-hmac-md5-tests: New file.
56053
56054         * tests/test-gc-hmac-sha1.c: New file.
56055
56056         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56057
56058         * modules/gc-hmac-md5-tests: New file.
56059
56060         * tests/test-gc-md5.c: New file.
56061
56062         * modules/gc-md5-tests: New file.
56063
56064 2005-10-13  Simon Josefsson  <jas@extundo.com>
56065
56066         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56067         Move memory allocation outside of loop.
56068
56069 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56070
56071         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56072         intermediate directory is in a read-only file system.  Problem
56073         reported by Eric Blake.
56074
56075 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56076
56077         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56078
56079 2005-10-12  Simon Josefsson  <jas@extundo.com>
56080
56081         * tests/test-hmac-sha1.c: New file.
56082
56083         * modules/hmac-sha1-tests: New file.
56084
56085         * modules/hmac-sha1: New file.
56086
56087 2005-10-12  Simon Josefsson  <jas@extundo.com>
56088
56089         * modules/gc-sha1: New file.
56090
56091 2005-10-12  Simon Josefsson  <jas@extundo.com>
56092
56093         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56094
56095         * tests/test-gc-pbkdf2-sha1.c: New file.
56096
56097 2005-10-12  Simon Josefsson  <jas@extundo.com>
56098
56099         * modules/gc-md5, modules/gc-hmac-md5: New files.
56100
56101         * modules/gc (Files): Remove md5, memxor and hmac files.
56102
56103 2005-10-12  Simon Josefsson  <jas@extundo.com>
56104
56105         * m4/gc-pbkdf2-sha1.m4: New file.
56106
56107         * m4/gc-hmac-sha1.m4: New file.
56108
56109         * m4/gc-sha1: New file.
56110
56111         * m4/hmac-sha1.m4: New file.
56112
56113 2005-10-12  Simon Josefsson  <jas@extundo.com>
56114
56115         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56116
56117         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56118
56119 2005-10-12  Simon Josefsson  <jas@extundo.com>
56120
56121         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56122         suggested by Bruno Haible <bruno@clisp.org>.
56123
56124 2005-10-12  Simon Josefsson  <jas@extundo.com>
56125
56126         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56127
56128 2005-10-12  Simon Josefsson  <jas@extundo.com>
56129
56130         * lib/gc-pbkdf2-sha1.c: New file.
56131
56132         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56133
56134 2005-10-12  Simon Josefsson  <jas@extundo.com>
56135
56136         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56137
56138         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56139
56140 2005-10-12  Simon Josefsson  <jas@extundo.com>
56141
56142         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56143         GC_USE_HMAC_MD5, respectively.
56144
56145         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56146         (gc_md5): Fix typo.
56147
56148         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56149
56150         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56151
56152         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56153
56154 2005-10-12  Bruno Haible  <bruno@clisp.org>
56155
56156         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56157         Reported by Stepan Kasal <kasal@ucw.cz>.
56158
56159 2005-10-11  Simon Josefsson  <jas@extundo.com>
56160
56161         * tests/test-crc.c: New file.
56162
56163         * modules/crc, modules/crc-tests: New files.
56164
56165 2005-10-11  Simon Josefsson  <jas@extundo.com>
56166
56167         * m4/crc.m4: New file.
56168
56169 2005-10-11  Simon Josefsson  <jas@extundo.com>
56170
56171         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56172
56173         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56174
56175         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56176
56177 2005-10-11  Simon Josefsson  <jas@extundo.com>
56178
56179         * lib/crc.h, lib/crc.c: New files.
56180
56181         * lib/gc.h (gc_hash_buffer): Add doc.
56182
56183 2005-10-11  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/c-strcasestr: New file.
56186         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56187
56188 2005-10-11  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/c-strcase: New file.
56191         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56192
56193 2005-10-11  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/strcasecmp.c: Include limits.h.
56196         (strcasecmp): Avoid integer overflow on exotic platforms.
56197         * lib/strncasecmp.c: Include limits.h.
56198         (strncasecmp): Avoid integer overflow on exotic platforms.
56199         Reported by Paul Eggert.
56200
56201 2005-10-11  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/c-strcasestr.h: New file, from GNU gettext.
56204         * lib/c-strcasestr.c: New file, from GNU gettext.
56205
56206 2005-10-11  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/c-strcase.h: New file, from GNU gettext.
56209         * lib/c-strcasecmp.c: New file, from GNU gettext.
56210         * lib/c-strncasecmp.c: New file, from GNU gettext.
56211
56212 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * modules/mempcpy (License): GPL -> LGPL.
56215         * modules/strchrnul (License): Likewise.
56216         * modules/sysexits (License): Likewise.
56217
56218 2005-10-08  Simon Josefsson  <jas@extundo.com>
56219
56220         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56221
56222 2005-10-07  Simon Josefsson  <jas@extundo.com>
56223
56224         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56225
56226 2005-10-06  Simon Josefsson  <jas@extundo.com>
56227
56228         * tests/test-hmac-md5.c: New file.
56229
56230         * modules/hmac-md5-tests: New file.
56231
56232         * modules/hmac-md5: New file.
56233
56234 2005-10-06  Simon Josefsson  <jas@extundo.com>
56235
56236         * m4/hmac-md5.m4: New file.
56237
56238         * m4/memxor.m4: Require gl_C_RESTRICT.
56239
56240 2005-10-06  Simon Josefsson  <jas@extundo.com>
56241
56242         * lib/memxor.c (memxor): Avoid casts and warnings.
56243
56244 2005-10-06  Simon Josefsson  <jas@extundo.com>
56245
56246         * lib/hmac-md5.c: New file.
56247
56248         * lib/hmac.h: New file.
56249
56250 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56253         promotes to int, not unsigned int, to catch the AIX 5.3
56254         compiler bug.
56255
56256 2005-10-05  Simon Josefsson  <jas@extundo.com>
56257
56258         * modules/memxor: New file.
56259
56260         * modules/iconv (Files): Move config.rpath to havelib, it is used
56261         there.
56262
56263         * modules/havelib (Files): Add config.rpath.
56264
56265 2005-10-05  Simon Josefsson  <jas@extundo.com>
56266
56267         * m4/memxor.m4: New file.
56268
56269 2005-10-05  Simon Josefsson  <jas@extundo.com>
56270
56271         * lib/memxor.c (memxor): Fix compiler error.
56272
56273         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56274         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56275
56276         * lib/memxor.h, lib/memxor.c: New files.
56277
56278         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56279         we assume all systems have it, suggested by Jim Meyering
56280         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56281         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56282         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56283         same reasons.
56284
56285 2005-10-05  Simon Josefsson  <jas@extundo.com>
56286
56287         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56288
56289 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56292         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56293         needed, since the source code now assumes these .h files.
56294
56295 2005-10-05  Derek Price  <derek@ximbiot.com>
56296
56297         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56298
56299 2005-10-05  Bruno Haible  <bruno@clisp.org>
56300
56301         * modules/stdint (License): Change to LGPL.
56302
56303 2005-10-04  Simon Josefsson  <jas@extundo.com>
56304
56305         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56306         D. Baushke" <mdb@gnu.org>.
56307
56308 2005-10-04  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/verify.h (verify_true): Provide alternative definition for C++.
56311
56312 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56315         (SSIZE_MAX): New macro, if not already defined.
56316         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56317         than 2 GiB.
56318
56319 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56320
56321         Sync from coreutils.
56322         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56323         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56324         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56325         ULLONG_MAX doesn't work with 2.7.2.1.
56326
56327 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56328
56329         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56330         From Ben Pfaff.
56331
56332         * modules/exclude (Depends-on): Depend on verify.
56333         * modules/strtoimax (Depends-on): Likewise.
56334         * modules/utimecmp (Depends-on): Likewise.
56335
56336 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * lib/exclude.c: Include verify.h.
56339         (verify): Remove.  All callers changed to use verify.h's version.
56340         * lib/strtoimax.c: Likewise.
56341         * lib/utimecmp.c: Likewis.e
56342
56343         Sync from coreutils.
56344         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56345         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56346         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56347         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56348         bother returning ENOSYS if settimeofday or stime fails; just let
56349         them return whatever errno they want to return.
56350         * lib/utimens.c: Include unistd.h, for dup2.
56351         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56352         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56353
56354 2005-10-02  Jim Meyering  <jim@meyering.net>
56355
56356         Sync from coreutils.
56357         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56358         from glibc-2.2.5 that fails for read-only files.
56359
56360 2005-10-02  Jim Meyering  <jim@meyering.net>
56361
56362         Sync from coreutils.
56363         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56364         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56365         `#if HAVE_CONFIG_H'.
56366         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56367         Remove AT_FDCWD test.
56368         Do not consume the fd unless successful.
56369         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56370         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56371         block, so that we don't even try to compile it if settimeofday is
56372         available.  This works around a compilation failure on OSF1 V5.1,
56373         due to stime requiring a `long int*' while tv_sec is `int'.
56374
56375 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56376
56377         Sync from coreutils.
56378         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56379         against `yes', rather than just testing for nonempty.
56380
56381 2005-10-01  Simon Josefsson  <jas@extundo.com>
56382
56383         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56384         and Darwin.
56385
56386         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56387         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56388         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56389         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56390         Check if struct addrinfo is declared.
56391
56392 2005-10-01  Simon Josefsson  <jas@extundo.com>
56393
56394         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56395         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56396         AI_* and EAI_* definitions.  Protect function declarations.
56397
56398 2005-10-01  Jim Meyering  <jim@meyering.net>
56399
56400         Sync from coreutils.
56401
56402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56403         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56404         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56406         in the inet and nsl libraries.  Required on Solaris 5.7.
56407
56408 2005-10-01  Jim Meyering  <jim@meyering.net>
56409
56410         Sync from coreutils.
56411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56412         in the inet and nsl libraries.  Required on Solaris 5.7.
56413
56414 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56415
56416         * lib/getdelim.c (getdelim): Remove unused variables.
56417
56418 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56421         so that the code works even with ancient cpp.  Portability problem
56422         with GCC 2.7.2.1 reported by Thomas M.Ott.
56423
56424 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56425
56426         * modules/regex (Depends-on): Add strcase.
56427
56428         * modules/gethostname (Licence): Change from GPL to LGPL, since
56429         gethostname.c is a trivial implementation of a standard library
56430         function.
56431         * modules/poll (License): Change from GPL to LGPL, since it's
56432         derived from LGPL code.
56433
56434 2005-09-27  Jim Meyering  <jim@meyering.net>
56435
56436         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56437         HAVE_CONFIG_H.
56438
56439         * lib/intprops.h (signed_type_or_expr__): Define.
56440         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56441         for unsigned types.
56442
56443 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56444
56445         * lib/verify.h (verify_expr): Remove, replacing with:
56446         (verify_true): New macro that returns true instead of void.
56447         (verify_type__): Remove.
56448         (verify): Use verify_true rather than verify_type__.
56449
56450 2005-09-26  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56453         is necessary.
56454         (lib_SOURCES): Remove mbchar.c.
56455         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56456         (Files): Add m4/mbrtowc.m4.
56457         * modules/mbiter: Likewise.
56458         * modules/mbuiter: Likewise.
56459
56460 2005-09-26  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56463         compile mbchar.c if they are not both present.
56464         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56465         * m4/mbiter.m4 (gl_MBITER): Likewise.
56466         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56467         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56468         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56469
56470 2005-09-25  Jim Meyering  <jim@meyering.net>
56471
56472         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56473         also uses socklen_t.
56474
56475 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56476
56477         * lib/utimens.c (ENOSYS): Define if not already defined.
56478         (futimens): Support having a null PATH if the file descriptor
56479         is nonnegative.
56480
56481         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56482         Remove.
56483         (__attribute): Define to empty unless GCC 3.1 or later.
56484         This works around a core dump on OpenBSD 3.4, which has GCC
56485         2.95.3, which dumps core when given __attribute__(()).  It also
56486         simplifies other tests, since we really don't want to bother with
56487         worrying about which ancient version of GCC supported what.
56488         Original problem reported by Yoann Vandoorselaere, with part of
56489         the fix suggested by Derek Price.
56490
56491 2005-09-24  Jim Meyering  <jim@meyering.net>
56492
56493         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56494         so we can once again use a positive bitfield width of 1 -- now we
56495         don't have to explain why we were using a bitfield width of 2.
56496
56497 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56500         and similarly for the other external symbols.  Problem reported
56501         by James Gallager.
56502
56503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56504         bug reported by Jim Meyering.
56505
56506         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56508         not needed, since socklen is a prerequisite module.
56509
56510 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56513         Problem reported by Eric Blake.
56514         (getaddrinfo): Initialize se so that it's not garbage.
56515         Redo internal storage allocation so that it doesn't make unportable
56516         assumptions about alignment.
56517         Fix a memory leak.
56518
56519         * lib/utimens.c (futimens): Use futimesat if available.
56520         Prefer it to futimes since it doesn't have the futimes bug.
56521
56522         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56523         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56524         Instead, declare a function that returns a pointer to an array,
56525         and use verify_type__ to declare the size of the array.
56526         Problem and germ of a solution reported by Bruno Haible.
56527         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56528         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56529
56530 2005-09-23  Jim Meyering  <jim@meyering.net>
56531
56532         Sync from coreutils.
56533         Correct build failure (socklen_t not defined) on at least
56534         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56536
56537 2005-09-23  Jim Meyering  <jim@meyering.net>
56538
56539         * modules/getaddrinfo (Depends-on): Add socklen.
56540
56541 2005-09-23  Bruno Haible  <bruno@clisp.org>
56542
56543         * tests/test-verify.c: New file.
56544
56545 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         Sync from coreutils.
56548
56549         * modules/argmatch (Depends-on): Add verify.
56550         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56551         unistd-safer.
56552         * modules/save-cwd (Depends-on): Likewise.
56553
56554         * modules/openat (Files): Add lib/openat-die.c.
56555         (Depends-on): Remove error, exitfail.
56556         Add dirname.
56557
56558         * modules/verify: New file.
56559         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56560         with "verify" module.
56561
56562 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56563
56564         Sync from coreutils.
56565
56566         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56567         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56568         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56569         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56570         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56571         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56572         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56573         Don't bother checking for string.h, stdlib.h, unistd.h.
56574         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56575         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56576         module's job.
56577         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56578         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56579
56580         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56581         (gl_GETDATE): Use it.
56582
56583         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56584
56585 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56586
56587         Sync from coreutils.
56588
56589         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56590         stat-time.h.
56591         * lib/argmatch.h: Include verify.h
56592         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56593         (ARGMATCH_ASSERT): Remove; unused.
56594         * lib/canonicalize.c: Assume STDC_HEADERS.
56595         * lib/exclude.c: Include "strcase.h".
56596         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56597         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56598         and stdio-safer.h.
56599         (getusershell): Call fopen, not fopen_safer.
56600         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56601         Do not include unistd-safer.h.
56602         (save_cwd): Don't call fd_safer; no longer needed
56603         now that we include fcntl--.h.
56604
56605         * lib/getdate.y (relative_time): New type.
56606         (RELATIVE_TIME_0): New constant.
56607         (parser_control): Use relative_time instead of doing it ourselves.
56608         (%union): Add new relative_time rel member.
56609         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56610         Now typeless.
56611         (relunit, relunit_snumber): Now of type rel.
56612         (zone, rel, relunit, get_date): Adjust to above changes.
56613
56614         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56615         Do not include unistd-safer.h.
56616         (getloadavg): Don't call fd_safer; no longer needed
56617         now that we include fcntl--.h.
56618
56619         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56620         (make_dir_parents): Treat ENOSYS like EEXIST.
56621
56622         Improve quality of diagnostics on restore_cwd failure.
56623         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56624         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56625         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56626         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56627         each time through the loop.  Do not diagnose restore_cwd failure;
56628         that is the caller's job (and perhaps the caller does not care).
56629
56630         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56631         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56632         If the file already exists but is not a directory, don't bother
56633         to try to make its parents.
56634         Close potential file descriptor leak if we can't chdir("/") (!).
56635         Don't always return true if chdir($PWD) fails; return true only
56636         if the requested action was done successfully (except for the
56637         chdir($PWD)).
56638         Don't log final directory unless we actually made it.
56639         Refactor to avoid duplicate code to fix up permissions.
56640         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56641
56642         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56643         to make it a bit faster and (I hope) clearer.
56644         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56645         Fix bug in formats like %2N.
56646
56647         * lib/verify.h: New file.
56648
56649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56650
56651         Sync from coreutils.
56652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56653
56654 2005-09-22  Jim Meyering  <jim@meyering.net>
56655
56656         Sync from coreutils.
56657
56658         * m4/lstat.m4 (gl_FUNC_LSTAT):
56659         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56660         Remove obsolete comment.
56661         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56662         * m4/xstrtod.m4: Likewise.
56663
56664         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56665
56666 2005-09-22  Jim Meyering  <jim@meyering.net>
56667
56668         Sync from coreutils.
56669
56670         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56671
56672         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56673         the .tm_year member, since otherwise gcc-4.0 would now warn about
56674         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56675
56676         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56677         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56678
56679         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56680         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56681         when run in a time zone for which daylight savings time is in effect
56682         for the starting date.
56683
56684         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56685         stop us from restricting permissions of just-created absolute-named
56686         directories.
56687         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56688         to restore initial working directory.
56689         * lib/mkdir-p.c (make_dir_parents): New parameter:
56690         different_working_dir, to tell caller if/when we change the working
56691         directory and are unable to return to the initial one.
56692         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56693         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56694         `return false'.  This fixes a bug introduced on 2004-07-30.
56695
56696         * lib/openat.c (fdopendir): Be sure to close the supplied
56697         file descriptor before returning.  This makes our replacement
56698         implementation a little closer to Solaris's, where fdopendir
56699         ties the file descriptor to the returned DIR* pointer.
56700         * lib/openat.c (unlinkat): New function.
56701         * lib/openat.h (unlinkat): Add prototype.
56702         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56703         (openat_restore_fail): Rename from openat_restore_die.
56704         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56705
56706         Provide an alternative to exiting immediately upon save_cwd or
56707         restore_cwd failure.  Now, an application can arrange e.g.,
56708         to perform a longjump in that case.
56709         * lib/openat.c: Include dirname.h.
56710         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56711         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56712         and openat_restore_die rather than calling error directly.
56713         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56714
56715         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56716         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56717         define.
56718
56719         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56720         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56721                             int utc, int nanoseconds);
56722         Background:
56723         date should not have to allocate a megabyte of virtual memory to
56724         handle a format argument like +%1048575T.  When implemented with
56725         strftime, it must allocate such a buffer, use strftime to fill it
56726         in, print it, then free it.
56727         With fprintftime, it simply prints everything and exits.
56728         With no need for memory allocation, that's one fewer way to fail.
56729         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56730         optional field width, not before, so we accept %9:z, not %:9z.
56731         (my_strftime): Be sure to use L_('x') for literals.
56732
56733         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56734         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56735         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56736         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56737         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56738         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56739         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56740         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56741         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56742         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56743         * lib/xgethostname.c, lib/xreadlink.c:
56744         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56745
56746         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56747         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56748         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56749         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56750         and don't include <sys/file.h>).
56751
56752 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56753
56754         Sync from coreutils.
56755
56756         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56757         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56758         [!LDAV_DONE]: Avoid unused variable warning.
56759
56760 2005-09-21  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/unicodeio.h (unicode_to_mb): New declaration.
56763
56764 2005-09-20  Derek Price  <derek@ximbiot.com>
56765
56766         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56767         getaddrinfo.h.
56768
56769 2005-09-20  Bruno Haible  <bruno@clisp.org>
56770
56771         * gnulib-tool: Remove trailing slashes from the values specified for
56772         --source-base, --m4-base, --tests-base, --aux-dir.
56773         Suggested by Simon Josefsson <jas@extundo.com>.
56774
56775 2005-09-20  Bruno Haible  <bruno@clisp.org>
56776
56777         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56778         func_modules_to_filelist, func_import, func_create_testdir): Make all
56779         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56780         change when gnulib-tool is invoked in a different locale.
56781
56782 2005-09-19  Simon Josefsson  <jas@extundo.com>
56783
56784         * m4/socklen.m4: Fix typo.
56785
56786 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56787
56788         Use a consistent style for including <config.h>.
56789         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56790         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56791         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56792         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56793         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56794         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56795         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56796         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56797         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56798         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56799         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56800         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56801         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56802         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56803         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56804         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56805         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56806         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56807         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56808         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56809         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56810         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56811         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56812         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56813         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56814         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56815         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56816         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56817         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56818         lib/xstrtoumax.c, lib/yesno.c:
56819         Standardize inclusion of config.h.
56820         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56821         lib/inttostr.h:  Removed inclusion of config.h from header files.
56822         * lib/inttostr.c:  Adjusted in-tree users.
56823         * lib/timespec.h: Remove superfluous warning to include config.h.
56824         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56825         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56826         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56827         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56828         config.h with HAVE_CONFIG_H.
56829
56830 2005-09-19  Jim Meyering  <jim@meyering.net>
56831
56832         * modules/pathmax (License): Change to LGPL.
56833
56834 2005-09-19  Derek Price  <derek@ximbiot.com>
56835
56836         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56837
56838 2005-09-19  Bruno Haible  <bruno@clisp.org>
56839
56840         * gnulib-tool (import): Provide default for --tests-base.
56841
56842 2005-09-19  Bruno Haible  <bruno@clisp.org>
56843
56844         * doc/quote.texi: New file, extracted from gnulib.texi.
56845         * doc/ctime.texi: New file, extracted from gnulib.texi.
56846         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56847         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56848         * doc/gnulib.texi: Include them.
56849
56850 2005-09-18  Bruno Haible  <bruno@clisp.org>
56851
56852         Portability fix.
56853         * gnulib-tool (func_readlink): New function.
56854         (func_ln_if_changed): Use it.
56855
56856 2005-09-18  Bruno Haible  <bruno@clisp.org>
56857
56858         * gnulib-tool: Support --with-tests also with --import.
56859         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56860         (func_import): Use variables $testsbase and $inctests. Emit a
56861         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56862         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56863         SUBDIRS += $testsdir.
56864         (func_create_testdir): Update.
56865
56866 2005-09-18  Bruno Haible  <bruno@clisp.org>
56867
56868         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56869         instead of $dry_run.
56870         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56871         (func_ln_if_changed): Don't handle dry-run here.
56872         (func_import): In dry-run mode, detect more precisely which actions
56873         would be performed, and don't use "...ing" verbs.
56874
56875 2005-09-18  Bruno Haible  <bruno@clisp.org>
56876
56877         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56878         (func_import): Use join on two temporary files instead of three nested
56879         loops, in order to determine which files are new or old.
56880
56881 2005-09-18  Bruno Haible  <bruno@clisp.org>
56882
56883         * gnulib-tool (func_import): Comment out code that spits out the
56884         new files with --dry-run.
56885
56886 2005-09-18  Bruno Haible  <bruno@clisp.org>
56887
56888         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56889
56890 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56891
56892         * lib/stat-time.h: New file.
56893         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56894         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56895         in a different way.
56896         (timespec_cmp): New function.
56897         * lib/utimecmp.c: Include stat-time.h.
56898         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56899         members exist, not on the obsolescent ST_MTIM_NSEC.
56900         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56901
56902 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56905
56906 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * MODULES.html.sh (File system functions): Add stat-time.
56909         * modules/stat-time: New file.
56910         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56911         is now done in a different way, by the stat-time module.
56912         * modules/utimecmp (Depends-on): Add stat-time.
56913
56914 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56915
56916         * m4/st_mtim.m4: Remove.  Superseded by...
56917         * m4/stat-time.m4: New file.
56918         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56919         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56920
56921 2005-09-15  Derek Price  <derek@ximbiot.com>
56922
56923         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56924
56925 2005-09-15  Derek Price  <derek@ximbiot.com>
56926
56927         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56928         * lib/regex_internal.c: Ditto, using this...
56929         (__GNUC_PREREQ): ...new macro.
56930         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56931         using...
56932         (__GNUC_PREREQ): ...this new macro.
56933
56934         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56935
56936 2005-09-15  Derek Price  <derek@ximbiot.com>
56937             Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56940         changes, consolidating in...
56941         * lib/regex_internal.h: ...this file.
56942
56943 2005-09-13  Jim Meyering  <jim@meyering.net>
56944
56945         * lib/canon-host.c: Filter through gnu indent and reword comments
56946         slightly.
56947         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56948
56949 2005-09-13  Derek Price  <derek@ximbiot.com>
56950
56951         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56952         failure.
56953         Reported by Jim Meyering  <jim@meyering.net>.
56954
56955 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56956
56957         * lib/base64.c: Typo.
56958         (base64_encode): Put b64str in initialized data section.
56959
56960 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56961
56962         Merge glibc and coreutils changes into gnulib, plus a few
56963         extra fixes.
56964         * lib/md5.c: Use #error rather than a string.
56965         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56966         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56967         (__attribute__): Define to empty for non recent-GCC.
56968         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56969         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56970         Renamed from their non-__ counterparts, with new macros replacing
56971         them if not _LIBC.  Add __THROW attribute.
56972         (rol): Remove.
56973         (struct md5_ctx): Align buffer if using GCC.
56974         * lib/sha1.h (struct sha1_ctx): Likewise.
56975         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56976         The old name was backwards.
56977         (NOTSWAP): Remove; not used.
56978         (rol): New macro, moved here from md5.h.
56979         (sha1_process_block): Remove a FIXME that doesn't make sense.
56980
56981 2005-09-12  Derek Price  <derek@ximbiot.com>
56982
56983         Return usable errors from canon-host.
56984         * lib/canon-host.h: New file.
56985         * lib/canon-host.c (canon_host): Wrap...
56986         (canon_host_r): ...this new function, which now relies exclusively on
56987         getaddrinfo.
56988         (ch_strerror): New function.
56989         (last_cherror): New global.
56990         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56991         interface.
56992         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56993         void *.
56994         (freeaddrinfo): Free ai->ai_canonname when set.
56995
56996 2005-09-12  Derek Price  <derek@ximbiot.com>
56997
56998         Make canon-host require getaddrinfo.
56999         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57000         AC_LIBSOURCE canon-host.h.  Call...
57001         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57002         gl_GETADDRINFO.
57003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57004
57005 2005-09-12  Derek Price  <derek@ximbiot.com>
57006
57007         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57008         LGPL.
57009         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57010
57011 2005-09-12  Derek Price  <derek@ximbiot.com>
57012
57013         * lib/gai_strerror.c: Include config.h when available.  Include
57014         getaddrinfo.h before other headers to test interface.
57015         Reported by Larry Jones <lawrence.jones@ugs.com>.
57016
57017 2005-09-12  Derek Price  <derek@ximbiot.com>
57018             Paul Eggert  <eggert@cs.ucla.edu>
57019
57020         * modules/glob (Files): Add glob-libc.h.
57021
57022 2005-09-12  Derek Price  <derek@ximbiot.com>
57023             Paul Eggert  <eggert@cs.ucla.edu>
57024
57025         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57026         glob_.h, glob-libc.h.
57027         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57028
57029 2005-09-12  Derek Price  <derek@ximbiot.com>
57030             Paul Eggert  <eggert@cs.ucla.edu>
57031
57032         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57033         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57034         protecting things that should be done only in gnulib contexts.
57035         * lib/glob_.h: New file, containing only the glob things needed for
57036         gnulib.
57037         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57038         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57039         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57040         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57041         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57042         and to respect the namespace rules better.
57043
57044 2005-09-08  Simon Josefsson  <jas@extundo.com>
57045
57046         * modules/socklen: New file.
57047
57048 2005-09-08  Simon Josefsson  <jas@extundo.com>
57049
57050         * m4/socklen.m4: New file.
57051
57052 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57053
57054         * modules/utimens (Files): Add m4/utimbuf.m4, since
57055         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57056         Reported by Sergey Poznyakoff.
57057
57058 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57061         definitions, since that's the preferred style in glibc.
57062         Fix a minor spacing issue, and update copyright notice to match
57063         glibc's.
57064
57065 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57068
57069 2005-09-06  Simon Josefsson  <jas@extundo.com>
57070
57071         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57072         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57073
57074 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57075
57076         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57077         warning.
57078
57079 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * config/srclist.txt: Add glibc bug 1302.
57082
57083 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57084
57085         Change bitset word type from unsigned int to unsigned long int,
57086         as this has better performance on typical 64-bit hosts.
57087         Port bitset code to hosts with unusual word sizes.
57088         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57089         (build_collating_symbol):
57090         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57091         argument is a bitset.  This is merely a style issue, but it makes
57092         it clearer that an entire array is expected.
57093         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57094         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57095         Port to the case where bitset_word is not the same as unsigned int.
57096         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57097         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57098         Likewise.
57099         * lib/regexec.c (check_dst_limits_calc_pos_1,
57100         check_subexp_matching_top):
57101         (build_trtable, group_nodes_into_DFAstates):
57102         Likewise.
57103         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57104         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57105         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57106         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57107         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57108         * lib/regcomp.c (optimize_subexps, lower_subexp):
57109         Work even if bitset_word has holes in its bitwise representation.
57110         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57111         * lib/regexec.c (check_dst_limits_calc_pos_1,
57112         check_subexp_matching_top):
57113         Likewise.
57114         * lib/regex_internal.c (re_string_reconstruct):
57115         Don't assume UCHAR_MAX == 255.
57116         * lib/regex_internal.h (bitset_set_all): Likewise.
57117         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57118         All uses changed.
57119         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57120         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57121         All uses changed.
57122         (BITSET_WORD_MAX): New macro.
57123         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57124         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57125         (bitset_empty, bitset_copy):
57126         Prefer sizeof (bitset) to multiplying it out ourselves.
57127         (bitset_not_merge): Remove; unused.
57128         (bitset_contain): Return bool, not unsigned int with one bit on.
57129         All callers changed.
57130         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57131         alignment than re_node_set; do this by defining a new internal
57132         type struct dests_alloc and using it to allocate memory.
57133
57134 2005-09-05  Bruno Haible  <bruno@clisp.org>
57135
57136         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57137         links.
57138
57139 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57140
57141         * modules/size_max (Makefile.am): Add size_max.h
57142
57143 2005-09-04  Derek Price  <derek@ximbiot.com>
57144
57145         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57146
57147 2005-09-03  Simon Josefsson  <jas@extundo.com>
57148
57149         * gnulib-tool: Fix typo.
57150
57151 2005-09-03  Simon Josefsson  <jas@extundo.com>
57152
57153         * config/srclist.txt: Add glibc bug 1293.
57154
57155 2005-09-03  Derek Price  <derek@ximbiot.com>
57156
57157         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57158         From Larry Jones <lawrence.jones@ugs.com>.
57159
57160 2005-09-02  Simon Josefsson  <jas@extundo.com>
57161
57162         * modules/socklen: New file.
57163
57164 2005-09-02  Simon Josefsson  <jas@extundo.com>
57165
57166         * modules/havelib: New module.
57167
57168         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57169         Use havelib.
57170
57171 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         Check for arithmetic overflow when calculating sizes, to prevent
57174         some buffer-overflow issues.  These patches are conservative, in the
57175         sense that when I couldn't determine whether an overflow was possible,
57176         I inserted a run-time check.
57177         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57178         macros.
57179         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57180         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57181         (re_xnrealloc, re_x2nrealloc): New inline functions.
57182         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57183         parse_bracket_exp):
57184         (build_equiv_class, build_charclass): Check for arithmetic overflow
57185         in size expression calculations.
57186         * lib/regex_internal.c (re_string_realloc_buffers):
57187         (build_wcs_upper_buffer, re_node_set_add_intersect):
57188         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57189         (re_dfa_add_node, register_state): Likewise.
57190         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57191         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57192         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57193         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57194
57195 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57198         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57199
57200 2005-09-02  Bruno Haible  <bruno@clisp.org>
57201
57202         Support for lib vs. lib64 distinction on biarch platforms.
57203         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57204         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57205         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57206
57207 2005-09-02  Bruno Haible  <bruno@clisp.org>
57208
57209         * gnulib-tool (import): In the other first-use case, provide defaults
57210         as well.
57211
57212 2005-09-02  Bruno Haible  <bruno@clisp.org>
57213
57214         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57215         patches not yet found in the latest gettext release.
57216
57217 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57218
57219         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57220         to avoid a collision with bits/local_lim.h in glibc.
57221         All uses changed.  Problem reported by Dmitry V. Levin in
57222         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57223
57224         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57225         bugs in int versus size_t comparisons.
57226         (re_string_context_at): Fix bug where the code assumed that
57227         Idx is signed.
57228
57229         Use bool where appropriate.
57230         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57231         All callers changed.
57232         (calc_eclosure_iter): Likewise, for ROOT arg.
57233         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57234         (build_charclass_op): Likewise, for NON_MATCH arg.
57235         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57236         (re_string_construct_common): Likewise, for ICASE arg.
57237         * lib/regexec.c (re_search_2_stub, re_search_stub):
57238         Likewise, for RET_LEN arg.
57239         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57240         (set_regs): Likewise, for FL_BACKTRACK arg.
57241         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57242         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57243         (calc_eclosure_iter, parse_bracket_exp):
57244         Use bool for internal variables that are booleans.
57245         * lib/regexec.c (re_search_internal, check_matching,
57246         proceed_next_node):
57247         (set_regs, build_sifted_states, sift_states_bkref):
57248         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57249         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57250         (find_collation_sequence_value):
57251         Likewise.
57252         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57253         (re_node_set_compare):
57254         Return bool, not int. All callers changed.
57255         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57256         (build_trtable, check_node_accept): Likewise.
57257         * lib/regex_internal.h: Include stdbool.h.
57258
57259         Fix bugs uncovered when converting to bool.
57260         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57261         failure instead of charging ahead blindly.
57262         * lib/regex_internal.c (register_state): Likewise.
57263         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57264         for freeing internal storage.
57265         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57266         bitset pieces used as boolean, to avoid undefined behavior
57267         on hosts that do int overflow checking.
57268
57269 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * config/srclist.txt: Add glibc bugs 1285-1287.
57272
57273 2005-09-01  Jim Meyering  <jim@meyering.net>
57274
57275         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57276         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57277         Require gl_STAT_MACROS, too.
57278
57279 2005-09-01  Bruno Haible  <bruno@clisp.org>
57280
57281         * gnulib-tool (import): In the first-use case, provide defaults.
57282
57283 2005-09-01  Bruno Haible  <bruno@clisp.org>
57284
57285         * gnulib-tool (func_import): Remove the .tmp files.
57286
57287 2005-09-01  Bruno Haible  <bruno@clisp.org>
57288
57289         * gnulib-tool (func_import): Fix handling of symbolic links.
57290
57291 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57294         old glibc regex code mishandles strings longer than 2**31 bytes.
57295         This patch fixes this when the regex code is used in gnulib
57296         (i.e., outside glibc).
57297
57298         This patch should not affect the use of the regex code inside
57299         glibc.  No doubt this problem also needs to be handled for glibc
57300         as well, but the result will be an incompatible change to the
57301         glibc ABI, and the old ABI will have to be supported too.  That
57302         can be the the subject for another patch.
57303
57304         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57305         governing whether the rest of this patch is active.  By default,
57306         the macro is disabled and the patch has no effect.
57307         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57308         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57309         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57310         (re_match_2, re_set_registers): Use the new types.
57311         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57312         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57313         New macros.
57314         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57315         (re_string_context_at, bin_tree_t, re_dfastate_t):
57316         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57317         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57318         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57319         (re_string_char_size_at, re_string_wchar_at):
57320         (re_string_elem_size_at):
57321         Use the new types and macros to port to 64-bit hosts.
57322         Use unsigned types for internal values, so that the code
57323         mostly works even for arrays larger than SSIZE_MAX.
57324         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57325         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57326         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57327         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57328         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57329         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57330         (calc_inveclosure, parse_dup_op, build_range_exp):
57331         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57332         (fetch_number, create_token_tree, mark_opt_subexp):
57333         Likewise.
57334         * lib/regex_internal.c (re_string_construct_common,
57335         create_ci_newstate):
57336         (create_cd_newstate, re_string_allocate, re_string_construct):
57337         (re_string_realloc_buffers, build_wcs_upper_buffer):
57338         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57339         (re_string_reconstruct, re_string_peek_byte_case):
57340         (re_string_fetch_byte_case, re_string_context_at):
57341         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57342         (re_node_set_init_copy, re_node_set_add_intersect):
57343         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57344         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57345         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57346         (re_acquire_state, re_acquire_state_context, register_state):
57347         Likewise.
57348         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57349         search_cur_bkref_entry):
57350         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57351         (re_search_internal, re_search_2_stub, re_search_stub)
57352         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57353         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57354         (update_cur_sifted_state, check_dst_limits):
57355         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57356         (check_subexp_limits, sift_states_bkref, merge_state_array):
57357         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57358         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57359         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57360         (expand_bkref_cache, check_node_accept_bytes):
57361         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57362         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57363         (acquire_init_state_context, check_halt_node_context):
57364         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57365         (sift_states_backward, clean_state_log_if_needed):
57366         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57367         (find_recover_state, transit_state_sb, transit_state_mb):
57368         (transit_state_bkref, build_trtable, match_ctx_clean):
57369         Likewise.
57370         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57371         to work around an assumption that REG_MISSING is negative.
57372
57373         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57374         (seek_collating_symbol_entry) [defined _LIBC]:
57375         (lookup_collation_sequence_value) [defined _LIBC]:
57376         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57377         Use prototypes rather than old-style function definitions.
57378         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57379         (transit_state_sb) [0]:
57380         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57381
57382         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57383         rm_eo.
57384
57385         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57386         (optimize_subexps, lower_subexp):
57387         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57388         since the signed shift might overflow.  Use 1u<<31 instead.
57389         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57390         Likewise.
57391         * lib/regexec.c (check_dst_limits_calc_pos_1,
57392         check_subexp_matching_top): Likewise.
57393
57394         * lib/regcomp.c (optimize_subexps, lower_subexp):
57395         Use CHAR_BIT rather than 8, for clarity.
57396         * lib/regexec.c (check_dst_limits_calc_pos_1):
57397         (check_subexp_matching_top): Likewise.
57398         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57399         have to worry about portability issues when shifting it left.
57400         Remove no-longer-needed test for table_size > 0.
57401         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57402         in a word, as the resulting behavior is undefined.
57403         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57404         in one case, a <= should have been an <, and in another case the
57405         whole test was missing.
57406         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57407         the standard name CHAR_BIT.
57408         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57409         this is not true on one's complement and signed-magnitude hosts.
57410
57411         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57412         next_last_offset.
57413         (struct re_dfa_t): Remove unused member states_alloc.
57414         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57415
57416 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57419         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57420         and large-file glibc and in 32-bit large-file Solaris.
57421
57422 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57423
57424         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57425         lengths fit in regoff_t; this isn't true if regoff_t is the same
57426         width as size_t.
57427         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57428         (= START + RANGE) instead of RANGE.  This avoids overflow
57429         problems when regoff_t is the same width as size_t.
57430         All callers changed.
57431         (re_search_2_stub): Check for overflow when adding the
57432         sizes of the two strings.
57433         (re_search_stub): Check for overflow when adding START
57434         to RANGE; if it occurs, substitute the extreme value.
57435
57436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57437
57438         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57439
57440 2005-08-31  Jim Meyering  <jim@meyering.net>
57441
57442         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57443         a pointer-to-const.
57444         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57445         (register_state): Likewise.
57446         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57447         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57448         (group_nodes_into_DFAstates): Likewise.
57449
57450 2005-08-31  Jim Meyering  <jim@meyering.net>
57451
57452         * check-module: Add a FIXME comment.
57453
57454 2005-08-31  Eric Blake  <ebb9@byu.net>
57455
57456         * modules/unistd-safer (Files): Add unistd--.h.
57457         * modules/stdio-safer (Files): Add stdio--.h.
57458
57459 2005-08-31  Derek Price  <derek@ximbiot.com>
57460
57461         * lib/getdelim.c (getdelim): Return EOF on EOF.
57462         Reported by Larry Jones <lawrence.jones@ugs.com>.
57463
57464 2005-08-31  Bruno Haible  <bruno@clisp.org>
57465
57466         Avoid unnecessary diffs in the generated lib/Makefile.am.
57467         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57468         the generated files.
57469         (func_import): Don't set cmd.
57470
57471 2005-08-31  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/strstr.c: Include <stddef.h>, for NULL.
57474         * lib/strcasestr.c: Likewise.
57475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57476
57477 2005-08-31  Bruno Haible  <bruno@clisp.org>
57478
57479         * gnulib-tool: New option --macro-prefix.
57480         (func_import): Use macro_prefix.
57481         (import): Handle option --macro-prefix.
57482
57483 2005-08-31  Bruno Haible  <bruno@clisp.org>
57484
57485         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57486         Also use new variables cached_lgpl, cached_libtool.
57487
57488 2005-08-31  Bruno Haible  <bruno@clisp.org>
57489
57490         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57491         always instantiating them.
57492
57493 2005-08-31  Bruno Haible  <bruno@clisp.org>
57494
57495         * gnulib-tool (func_import): Read the previous cached settings
57496         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57497         earlier added by gnulib but are now dropped. Warn when a gnulib file
57498         overwrites a non-gnulib file.
57499
57500 2005-08-31  Bruno Haible  <bruno@clisp.org>
57501
57502         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57503         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57504         projects that don't keep autogenerated files in CVS. Put into
57505         actioncmd only the specified modules, not the transitive closure.
57506
57507 2005-08-31  Bruno Haible  <bruno@clisp.org>
57508
57509         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57510         Create directories that shall be filled.
57511         (import): Don't look for gl_* macros in configure.ac. Recurse across
57512         all directories containing a gnulib-cache.m4 files, if meaningful.
57513
57514 2005-08-31  Bruno Haible  <bruno@clisp.org>
57515
57516         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57517         (import): Set seen_libtool when we see gl_LIBTOOL.
57518
57519 2005-08-31  Bruno Haible  <bruno@clisp.org>
57520
57521         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57522         declaration macro definitions from generated gnulib.m4.
57523
57524 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57525
57526         * lib/iconvme.h: Add prototype for iconv_alloc.
57527
57528 2005-08-29  Simon Josefsson  <jas@extundo.com>
57529
57530         * lib/iconvme.c: Fix errno.
57531
57532 2005-08-29  Bruno Haible  <bruno@clisp.org>
57533
57534         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57535         that it works when the directory contains spaces.
57536
57537 2005-08-29  Bruno Haible  <bruno@clisp.org>
57538
57539         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57540
57541 2005-08-29  Bruno Haible  <bruno@clisp.org>
57542
57543         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57544         Emit more advice.
57545
57546 2005-08-29  Bruno Haible  <bruno@clisp.org>
57547         and Stepan Kasal  <kasal@ucw.cz>
57548
57549         * check-module: If more parameters are given, check each of them
57550         separately; add more exceptions, as noted by Jim Meyering.
57551         (check_module): New procedure.
57552         (%exempt_header): Now contains all exceptions.
57553
57554 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57555
57556         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57557
57558 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57559
57560         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57561
57562 2005-08-28  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/gnulib-tool.m4: New file.
57565
57566 2005-08-27  Jim Meyering  <jim@meyering.net>
57567
57568         * modules/unistd-safer (Files): Add pipe-safer.c.
57569         * modules/fcntl-safer (Files): Add creat-safer.c.
57570
57571 2005-08-27  Jim Meyering  <jim@meyering.net>
57572
57573         * m4/stdlib-safer.m4: New file.  From coreutils.
57574         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57575         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57576         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57577         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57578         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57579
57580 2005-08-27  Jim Meyering  <jim@meyering.net>
57581
57582         * lib/fopen-safer.c: Merge minor changes from coreutils.
57583         * lib/dup-safer.c: Likewise.
57584         * lib/fd-safer.c: Likewise.
57585
57586         Merge from coreutils.
57587         * lib/stdio--.h: New file.
57588         * lib/stdlib--.h: New file.
57589         * lib/mkstemp-safer.c: New file.
57590
57591         GNU tar needs these.
57592         * lib/pipe-safer.c: New file.
57593         * lib/creat-safer.c: New file.
57594         * lib/fcntl--.h (creat): Define to creat_safer.
57595         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57596         * lib/unistd--.h (pipe): Define to pipe_safer.
57597         * lib/unistd-safer.h: Declare pipe_safer.
57598
57599 2005-08-26  Simon Josefsson  <jas@extundo.com>
57600
57601         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57602         Haible <bruno@clisp.org>.
57603
57604 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         * lib/regex_internal.h: Remove all references to
57607         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57608         or better.
57609         (bitset_not, bitset_merge, bitset_not_merge):
57610         (bitset_mask, re_string_allocate, re_string_construct):
57611         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57612         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57613         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57614         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57615         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57616         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57617         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57618         (re_acquire_state_context):
57619         Remove unnecessary forward decls.
57620         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57621         Put __attribute at function definition,
57622         now that the function decl has been removed.
57623         * lib/regex_internal.c (re_string_peek_byte_case):
57624         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57625         Likewise.
57626
57627 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57628
57629         * m4/regex.m4: Add AC_PREREQ(2.50).
57630         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57631
57632 2005-08-25  Simon Josefsson  <jas@extundo.com>
57633
57634         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57635         __fsetlocking.
57636
57637 2005-08-25  Simon Josefsson  <jas@extundo.com>
57638
57639         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57640         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57641         GLIBC specific code.
57642
57643 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         Make regex safe for g++.  This fixes one real bug (an "err"
57646         that should have been "*err").  g++ problem reported by
57647         Sam Steingold.
57648         * lib/regex_internal.h (re_calloc): New macro, consistent with
57649         re_malloc etc.  All callers of calloc changed to use re_calloc.
57650         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57651         not int.  All callers changed.
57652         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57653         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57654         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57655         (find_recover_state): Change "err" to "*err"; this fixes what
57656         appears to be a real bug.
57657         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57658         versus int.
57659
57660 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * modules/regex (Depends-on): Add malloc, since the code
57663         assumes that !malloc(0) means failure.
57664
57665 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57668
57669         alloca modernization/simplification for regex.
57670         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57671         needs to be at the start of the file, and can be moved into
57672         regex_internal.h and simplified.
57673         * lib/regex_internal.h: Include <alloca.h>.
57674         (__libc_use_alloca) [!defined _LIBC]: New macro.
57675         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57676         now works outside glibc.
57677
57678 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * config/srclist.txt: Add glibc bugs 1241, 1245.
57681
57682 2005-08-25  Jim Meyering  <jim@meyering.net>
57683
57684         * lib/open-safer.c: Include <config.h>.
57685         Otherwise, we'd lose LARGEFILE support in any file using
57686         e.g. "fcntl--.h"
57687
57688 2005-08-25  Bruno Haible  <bruno@clisp.org>
57689
57690         * m4/minmax.m4: Require autoconf 2.52.
57691         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57692         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57693         alternatives of translit over the alphabet.
57694         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57695
57696 2005-08-24  Simon Josefsson  <jas@extundo.com>
57697
57698         * tests/test-getpass.c: New file.
57699
57700 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57703         for GNU regex features.
57704
57705 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57706
57707         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57708         * lib/regex.h (regerror): Likewise.
57709
57710         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57711         requires this.  (The code never needed it.)
57712
57713         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57714         All uses of recently-renamed identifiers changed to use the new,
57715         POSIX-compliant names.  The code will build and run just fine
57716         without these changes, but it's better to eat our own dog food
57717         and use the standard-conforming names.
57718
57719         * lib/regex.h: Fix a multitude of POSIX name space violations.
57720         These changes have an effect only for programs that define
57721         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57722         do not change anything for programs compiled in the normal way.
57723         Also, there is no effect on the ABI.
57724
57725         (_REGEX_SOURCE): New macro.
57726         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57727         defined and _GNU_SOURCE is not; this fixes a name space violation.
57728
57729         Rename the following macros to obey POSIX requirements.
57730         The old names are still visible as macros if _REGEX_SOURCE is defined.
57731         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57732         RE_BACKSLASH_ESCAPE_IN_LISTS.
57733         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57734         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57735         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57736         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57737         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57738         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57739         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57740         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57741         (REG_INTERVALS): renamed from RE_INTERVALS.
57742         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57743         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57744         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57745         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57746         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57747         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57748         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57749         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57750         RE_UNMATCHED_RIGHT_PAREN_ORD.
57751         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57752         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57753         (REG_DEBUG): renamed from RE_DEBUG.
57754         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57755         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57756         unusual, since we can't clash with the POSIX REG_ICASE.
57757         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57758         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57759         (REG_NO_SUB): renamed from RE_NO_SUB.
57760         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57761         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57762         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57763         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57764         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57765         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57766         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57767         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57768         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57769         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57770         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57771         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57772         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57773         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57774         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57775         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57776         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57777         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57778         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57779         (REG_FIXED): Renamed from REGS_FIXED.
57780         (REG_NREGS): Renamed from RE_NREGS.
57781
57782         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57783         of other REG_* macros, since POSIX says the user is allowed to
57784         #undef these macros selectively.
57785
57786         (reg_errcode_t): Update comment stating what other tables need
57787         to be consistent.
57788
57789         Rename the following enum values to obey POSIX requirements.
57790         The old names are still visible as macros.
57791         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57792         is not defined, since GNU is supposed to be a superset of POSIX as
57793         much as possible, and since we want reg_errcode_t to be a signed
57794         type for implementation consistency.
57795         (_REG_NOERROR): Renamed from REG_NOERROR.
57796         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57797         (_REG_BADPAT): Renamed from REG_BADPAT.
57798         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57799         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57800         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57801         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57802         (_REG_EBRACK): Renamed from REG_EBRACK.
57803         (_REG_EPAREN): Renamed from REG_EPAREN.
57804         (_REG_EBRACE): Renamed from REG_EBRACE.
57805         (_REG_BADBR): Renamed from REG_BADBR.
57806         (_REG_ERANGE): Renamed from REG_ERANGE.
57807         (_REG_ESPACE): Renamed from REG_ESPACE.
57808         (_REG_BADRPT): Renamed from REG_BADRPT.
57809         (_REG_EEND): Renamed from REG_EEND.
57810         (_REG_ESIZE): Renamed from REG_ESIZE.
57811         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57812         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57813         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57814         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57815         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57816
57817         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57818         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57819         changed.  But support the old name if the new one is not defined
57820         and if _REGEX_SOURCE.
57821
57822         Change the following member names in struct re_pattern_buffer.
57823         The old names are still supported if !_REGEX_SOURCE.
57824         The new names are always supported, regardless of _REGEX_SOURCE.
57825         (re_buffer): Renamed from buffer.
57826         (re_allocated): Renamed from allocated.
57827         (re_used): Renamed from used.
57828         (re_syntax): Renamed from syntax.
57829         (re_fastmap): Renamed from fastmap.
57830         (re_translate): Renamed from translate.
57831         (re_can_be_null): Renamed from can_be_null.
57832         (re_regs_allocated): Renamed from regs_allocated.
57833         (re_fastmap_accurate): Renamed from fastmap_accurate.
57834         (re_no_sub): Renamed from no_sub.
57835         (re_not_bol): Renamed from not_bol.
57836         (re_not_eol): Renamed from not_eol.
57837         (re_newline_anchor): Renamed from newline_anchor.
57838
57839         Change the following member names in struct re_registers.
57840         The old names are still supported if !_REGEX_SOURCE.
57841         The new names are always supported, regardless of _REGEX_SOURCE.
57842         (rm_num_regs): Renamed from num_regs.
57843         (rm_start): Renamed from start.
57844         (rm_end): Renamed from end.
57845
57846         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57847         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57848         Prepend __ to parameter names.
57849
57850         Undo yesterday's changes.
57851
57852 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57855         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57856         lib/regex.c.
57857
57858 2005-08-24  Jim Meyering  <jim@meyering.net>
57859
57860         Sync from coreutils.
57861         * m4/fcntl-safer.m4: New file.
57862
57863         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57864         and object files for this module.
57865
57866 2005-08-24  Jim Meyering  <jim@meyering.net>
57867
57868         Sync from coreutils.
57869         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57870
57871 2005-08-24  Jim Meyering  <jim@meyering.net>
57872
57873         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57874         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57875
57876 2005-08-24  Jim Meyering  <jim@meyering.net>
57877
57878         * modules/fcntl-safer: New module.
57879         * modules/fts (Depends-on): Add fcntl-safer.
57880         * MODULES.html.sh (File descriptor based Input/Output):
57881         Add fcntl-safer.
57882
57883 2005-08-24  Bruno Haible  <bruno@clisp.org>
57884
57885         Support for unit test modules.
57886         * modules/README: Mention tests modules.
57887         * modules/TEMPLATE-TESTS: New file.
57888         * gnulib-tool: New options --extract-tests-module, --with-tests and
57889         --tests-base (unused for the moment).
57890         (testsbase, inctests): New variables.
57891         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57892         (func_verify_module): Exclude TEMPLATE-TESTS.
57893         (func_verify_nontests_module, func_verify_tests_module): New functions.
57894         (func_get_dependencies): Add implicit dependency for tests modules.
57895         (func_get_tests_module): New function.
57896         (func_modules_transitive_closure): When --with-tests was specified,
57897         include the unit tests as well, unless explicitly avoided.
57898         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57899         (func_emit_tests_Makefile_am): New function.
57900         (func_create_testdir): When --with-tests was specified, emit a
57901         tests/ directory.
57902         * MODULES.html.sh (Future developments): Update.
57903
57904 2005-08-24  Bruno Haible  <bruno@clisp.org>
57905
57906         * modules/tls-tests: New file.
57907         * tests/test-tls.c: New file, from GNU gettext.
57908
57909 2005-08-24  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/lock-tests: New file.
57912         * tests/test-lock.c: New file, from GNU gettext.
57913
57914 2005-08-24  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/lock.h: Add multiple inclusion guard.
57917         * lib/tls.h: Add multiple inclusion guard.
57918
57919 2005-08-24  Bruno Haible  <bruno@clisp.org>
57920
57921         * gnulib-tool: Add support for the --aux-dir option to
57922         --create-testdir, --create-megatestdir, --test, --megatest.
57923         (func_create_testdir, func_create_megatestdir): Optionally emit a
57924         AC_CONFIG_AUX_DIR directive.
57925         (create-testdir, create-megatestdir, test, megatest): Provide a
57926         default value for $auxdir.
57927
57928 2005-08-24  Bruno Haible  <bruno@clisp.org>
57929
57930         * gnulib-tool (import): Use compound statement instead of subshell
57931         where possible.
57932
57933 2005-08-24  Bruno Haible  <bruno@clisp.org>
57934
57935         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57936
57937 2005-08-24  Bruno Haible  <bruno@clisp.org>
57938
57939         * gnulib-tool (func_version): Update.
57940
57941 2005-08-24  Bruno Haible  <bruno@clisp.org>
57942
57943         * gnulib-tool (func_import, func_create_testdir,
57944         func_create_megatestdir): Quote all autoconf macro arguments.
57945
57946 2005-08-24  Bruno Haible  <bruno@clisp.org>
57947
57948         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57949         option --force, because --force causes the aclocal.m4 of each
57950         subdirectory to be newer than the corresponding config.h.in.
57951
57952 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57955         All contents moved to gl_REGEX.
57956         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57957         assume that it does.
57958
57959 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57960
57961         * lib/regex.h (REG_NOSYS)
57962         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57963         Define, since POSIX requires it as of 2001.
57964         (_REG_ENOSYS)
57965         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57966         New private symbol, used to keep the enum signed in all cases.
57967         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57968         Youngman in
57969         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57970
57971         * lib/regex_internal.c (re_string_skip_chars, register_state):
57972         (calc_state_hash):
57973         Remove forward decls; no longer needed now that we use prototypes.
57974         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57975         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57976         (clean_state_log_if_needed): Likewise.
57977
57978 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57979
57980         * config/srclist.txt: Add glibc bugs 1231-1233.
57981
57982 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         Fix problems reported by Sam Steingold in
57985         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57986         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57987         assumed that reg_errcode_t is a signed type, which is not
57988         necessarily true if _XOPEN_SOURCE is not defined.
57989         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57990         since some compilers warn about it otherwise.
57991
57992 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57995         (init_word_char, create_initial_state, duplicate_node_closure):
57996         (fetch_token, peek_token_bracket, build_range_exp):
57997         (build_collating_symbol): Remove forward decls; no longer needed
57998         now that we use prototypes.
57999
58000         * lib/regcomp.c:
58001         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58002         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58003         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58004         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58005         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58006         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58007         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58008         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58009         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58010         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58011         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58012         (build_charclass, build_charclass_op, fetch_number, create_tree):
58013         (create_token_tree, mark_opt_subexp, duplicate_tree):
58014         Use prototypes rather than old-style definitions.
58015
58016         * lib/regex_internal.c:
58017         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58018         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58019         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58020         (re_string_reconstruct, re_string_peek_byte_case):
58021         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58022         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58023         (re_node_set_init_copy, re_node_set_add_intersect):
58024         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58025         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58026         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58027         (re_acquire_state, re_acquire_state_context, register_state):
58028         (create_ci_newstate, create_cd_newstate, free_state):
58029         Likewise.
58030         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58031         re_search_2):
58032         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58033         (re_search_internal, prune_impossible_nodes):
58034         (acquire_init_state_context, check_matching, static):
58035         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58036         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58037         (update_regs, sift_states_backward, build_sifted_states):
58038         (clean_state_log_if_needed, merge_state_array):
58039         (update_cur_sifted_state, add_epsilon_src_nodes):
58040         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58041         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58042         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58043         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58044         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58045         (check_arrival, check_arrival_add_next_nodes):
58046         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58047         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58048         (check_node_accept_bytes, check_node_accept, extend_buffers):
58049         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58050         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58051         (sift_ctx_init):
58052         Likewise.
58053
58054         * lib/regex_internal.h:
58055         (re_string_allocate, re_string_construct, re_string_reconstruct):
58056         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58057         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58058         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58059         (re_string_context_at, re_string_peek_byte_case):
58060         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58061         is defined, since we now use prototypes always.
58062
58063         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58064         C89 or better.  All uses removed.
58065
58066 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58067
58068         * config/srclist.txt: Add glibc bugs 1220-1227.
58069
58070 2005-08-20  Jim Meyering  <jim@meyering.net>
58071
58072         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58073         of unused local, dfa.
58074
58075 2005-08-20  Bruno Haible  <bruno@clisp.org>
58076
58077         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58078
58079 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58082         (re_node_set_insert_last, re_dfa_add_node):
58083         Rename local variables to avoid GCC shadowing warnings.
58084
58085 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58086
58087         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58088         [defined lint]: Suppress bogus uninitialized-variable warnings.
58089
58090         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58091         and let the caller return REG_ESPACE if out of space.  This
58092         removes an uninitialied-variable warning with GCC 4.0.1, and also
58093         avoids taking the address of a local variable.  All callers
58094         changed.
58095
58096 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58099         $LIBCSRC/posix/regexec.c.
58100         Add glibc bug 1217 for regcomp.c.
58101
58102 2005-08-19  Jim Meyering  <jim@meyering.net>
58103
58104         * lib/regexec.c (proceed_next_node): Redo local variables to
58105         avoid GCC shadowing warnings.
58106
58107 2005-08-18  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/strstr.c (strstr): Fix return value in multibyte case.
58110         * lib/strcasestr.c (strcasestr): Likewise.
58111
58112 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58115
58116 2005-08-17  Jim Meyering  <jim@meyering.net>
58117
58118         Make the %s format (seconds since the epoch) work for a negative
58119         number and when used with a zero-padded field width, e.g. %015s.
58120
58121         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58122         label so that it precedes the code to set `digits'.  Otherwise,
58123         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58124         print `00-22'.  Now, it prints `-0022', as it should.
58125
58126 2005-08-17  Bruno Haible  <bruno@clisp.org>
58127
58128         * modules/strstr (Files): Add m4/mbrtowc.m4.
58129         (Depends-on): Add mbuiter.
58130
58131 2005-08-17  Bruno Haible  <bruno@clisp.org>
58132
58133         * modules/strcasestr: New file.
58134         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58135         strcasestr.
58136
58137 2005-08-17  Bruno Haible  <bruno@clisp.org>
58138
58139         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58140
58141 2005-08-17  Bruno Haible  <bruno@clisp.org>
58142
58143         * modules/mbuiter: New file.
58144         * MODULES.html.sh (Extended multibyte and wide character utilities):
58145         Add mbuiter.
58146
58147 2005-08-17  Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58150         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58151
58152 2005-08-17  Bruno Haible  <bruno@clisp.org>
58153
58154         * m4/strcasestr.m4: New file.
58155
58156 2005-08-17  Bruno Haible  <bruno@clisp.org>
58157
58158         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58159         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58160
58161 2005-08-17  Bruno Haible  <bruno@clisp.org>
58162
58163         * lib/strcasestr.h: New file.
58164         * lib/strcasestr.c: New file.
58165
58166 2005-08-17  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/strcasecmp.c: Use mbuiter.h.
58169
58170 2005-08-17  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/mbuiter.h: New file.
58173
58174 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58175
58176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58177         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58178         and gl_GETOPT are both invoked via different paths (as happens
58179         with GNU tar CVS because it uses both argp and getopt), the former
58180         wins.
58181
58182 2005-08-16  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/tls: New file.
58185         * MODULES.html.sh (Multithreading): Add tls.
58186
58187 2005-08-16  Bruno Haible  <bruno@clisp.org>
58188
58189         * modules/strnlen1: New file.
58190         * MODULES.html.sh (String handling): Add strnlen1.
58191
58192 2005-08-16  Bruno Haible  <bruno@clisp.org>
58193
58194         * modules/strcase (Files): Add m4/mbrtowc.m4.
58195         (Depends-on): Add strnlen1, mbchar.
58196
58197 2005-08-16  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/mbiter: New file.
58200         * MODULES.html.sh (Extended multibyte and wide character utilities):
58201         Add mbiter.
58202
58203 2005-08-16  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/mbfile: New file.
58206         * MODULES.html.sh (Extended multibyte and wide character utilities):
58207         Add mbfile.
58208
58209 2005-08-16  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/mbchar: New file.
58212         * MODULES.html.sh (Extended multibyte and wide character utilities):
58213         New section.
58214
58215 2005-08-16  Bruno Haible  <bruno@clisp.org>
58216
58217         * m4/tls.m4: New file, from GNU gettext.
58218
58219 2005-08-16  Bruno Haible  <bruno@clisp.org>
58220
58221         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58222         always.
58223         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58224
58225 2005-08-16  Bruno Haible  <bruno@clisp.org>
58226
58227         * m4/mbiter.m4: New file.
58228
58229 2005-08-16  Bruno Haible  <bruno@clisp.org>
58230
58231         * m4/mbfile.m4: New file.
58232
58233 2005-08-16  Bruno Haible  <bruno@clisp.org>
58234
58235         * m4/mbchar.m4: New file.
58236
58237 2005-08-16  Bruno Haible  <bruno@clisp.org>
58238
58239         * lib/tls.h: New file, from GNU gettext.
58240         * lib/tls.c: New file, from GNU gettext.
58241
58242 2005-08-16  Bruno Haible  <bruno@clisp.org>
58243
58244         * lib/strnlen1.h: New file.
58245         * lib/strnlen1.c: New file.
58246
58247 2005-08-16  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58250         (mbi_init): Update.
58251         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58252         NUL byte, not after it.
58253
58254 2005-08-16  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/strcase.h (strcasecmp): Add note in comments.
58257         * lib/strncasecmp.c: Use code from strcasecmp.c.
58258         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58259         (strcasecmp): Work correctly in multibyte locales.
58260
58261 2005-08-16  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/mbiter.h: New file.
58264
58265 2005-08-16  Bruno Haible  <bruno@clisp.org>
58266
58267         * lib/mbfile.h: New file.
58268
58269 2005-08-16  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/mbchar.h: New file.
58272         * lib/mbchar.c: New file.
58273
58274 2005-08-16  Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58277         the valid ones. Makes the comparison operations transitive:
58278         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58279         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58280
58281 2005-08-15  Simon Josefsson  <jas@extundo.com>
58282
58283         * modules/ssize_t (License): Change to 'unlimited'.
58284
58285         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58286
58287 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58290         Add comments for each pending glibc patch.
58291
58292 2005-08-15  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58295         __cplusplus is defined.
58296
58297 2005-08-14  Jim Meyering  <jim@meyering.net>
58298
58299         Sync from coreutils.
58300
58301         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58302         Use the hash-table-based cycle-detection code not just when
58303         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58304         Reported by James Youngman in
58305         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58306         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58307         FTS_TIGHT_CYCLE_CHECK.
58308         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58309         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58310         once again.
58311         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58312         * lib/fts.c (fd_safer): Remove decl.
58313         Include fcntl--.h rather than unistd-safer.h
58314         (fts_safe_changedir): Don't call fd_safer; no longer needed
58315         now that we include fcntl--.h.
58316
58317 2005-08-12  Simon Josefsson  <jas@extundo.com>
58318
58319         * modules/getndelim2: Use ssize_t module.
58320         * modules/getnline: Likewise.
58321         * modules/safe-read: Likewise.
58322         * modules/xreadlink: Likewise.
58323
58324         * modules/ssize_t: New file.
58325
58326 2005-08-12  Simon Josefsson  <jas@extundo.com>
58327
58328         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58329
58330 2005-08-12  Simon Josefsson  <jas@extundo.com>
58331
58332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58333         ssize_t.
58334
58335 2005-08-12  Simon Josefsson  <jas@extundo.com>
58336
58337         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58338         readline, getdelim and check_version.
58339         (Support for systems lacking ISO C 99: Sizes of integer types):
58340         Add size_max.
58341
58342 2005-08-12  Bruno Haible  <bruno@clisp.org>
58343
58344         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58345
58346 2005-08-11  Simon Josefsson  <jas@extundo.com>
58347
58348         * modules/readline: New file.
58349
58350         * modules/strnlen (Files): Add strnlen.h.
58351
58352 2005-08-11  Simon Josefsson  <jas@extundo.com>
58353
58354         * m4/readline.m4: New file.
58355
58356 2005-08-11  Simon Josefsson  <jas@extundo.com>
58357
58358         * lib/readline.h, readline.c: New file.
58359
58360 2005-08-11  Simon Josefsson  <jas@extundo.com>
58361
58362         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58363         gl_AVOID.
58364
58365 2005-08-11  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58368
58369 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58370
58371         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58372
58373 2005-08-10  Simon Josefsson  <jas@extundo.com>
58374
58375         * tests/test-iconvme.c: New file.
58376
58377 2005-08-10  Simon Josefsson  <jas@extundo.com>
58378
58379         * m4/strnlen.m4: New file.
58380
58381         * m4/strndup.m4: Don't check for strnlen declaration, done in
58382         strnlen.m4.
58383
58384 2005-08-10  Simon Josefsson  <jas@extundo.com>
58385
58386         * lib/strndup.c: Use strnlen.h.
58387
58388         * lib/strnlen.h: New file.
58389
58390 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58391
58392         * README: Typos.
58393
58394 2005-08-02  Simon Josefsson  <jas@extundo.com>
58395
58396         * modules/readline: New file.
58397
58398 2005-08-02  Simon Josefsson  <jas@extundo.com>
58399
58400         * modules/getdelim: New file.
58401
58402         * modules/getline: Rewrite, don't use getndelim2.
58403
58404 2005-08-02  Simon Josefsson  <jas@extundo.com>
58405
58406         * m4/getline.m4: Separate out getdelim stuff into separate module.
58407
58408         * m4/getdelim.m4: New file.
58409
58410 2005-08-02  Simon Josefsson  <jas@extundo.com>
58411
58412         * lib/getline.h, getline.c: Rewrite.
58413
58414         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58415
58416 2005-07-31  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/lock.h (gl_lock_initializer): New macro.
58419         (gl_lock_define_initialized): Use it.
58420         (gl_rwlock_initializer): New macro.
58421         (gl_rwlock_define_initialized): Use it.
58422         (gl_recursive_lock_initializer): New macro.
58423         (gl_recursive_lock_define_initialized): Use it.
58424
58425 2005-07-30  Karl Berry  <karl@gnu.org>
58426
58427         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58428         Report from Ben Pfaff, regarding getopt.
58429
58430 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58433         normal way.
58434         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58435         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58436         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58437         (gl_GETOPT): Use the new macros.  Most of the implementation
58438         is moved to the new macros.  This is for programs like Emacs
58439         that don't want all the functionality of gl_GETOPT.
58440
58441 2005-07-26  Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/lock.m4: Update from GNU gettext.
58444
58445 2005-07-26  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/lock.h: Update from GNU gettext.
58448         * lib/lock.c: Update from GNU gettext.
58449
58450 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58453         obsolescent AC_TRY_RUN.  Include the default includes files, for
58454         'exit'.
58455
58456 2005-07-24  Bruno Haible  <bruno@clisp.org>
58457
58458         * modules/visibility: New file.
58459         * MODULES.html.sh (Misc): Add visibility.
58460
58461 2005-07-24  Bruno Haible  <bruno@clisp.org>
58462
58463         * m4/visibility.m4: New file.
58464
58465 2005-07-24  Bruno Haible  <bruno@clisp.org>
58466
58467         * doc/visibility.texi: New file.
58468
58469 2005-07-22  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58472         $(ALLOCA_H), redundant through BUILT_SOURCES.
58473         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58474         redundant through BUILT_SOURCES.
58475         * modules/byteswap (Makefile.am): Remove explicit dependency on
58476         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58477         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58478         $(FNMATCH_H), redundant through BUILT_SOURCES.
58479         * modules/getopt (Makefile.am): Remove explicit dependency on
58480         $(GETOPT_H), redundant through BUILT_SOURCES.
58481         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58482         redundant through BUILT_SOURCES.
58483         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58484         redundant through BUILT_SOURCES.
58485         * modules/stdbool (Makefile.am): Remove explicit dependency on
58486         $(STDBOOL_H), redundant through BUILT_SOURCES.
58487         * modules/stdint (Makefile.am): Remove explicit dependency on
58488         $(STDINT_H), redundant through BUILT_SOURCES.
58489         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58490         Remove explicit dependency on $(SYSEXITS_H).
58491         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58492
58493 2005-07-18  Simon Josefsson  <jas@extundo.com>
58494
58495         * lib/check-version.c (check_version): Accept identical versions too.
58496
58497 2005-07-18  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/lock: New file.
58500         * MODULES.html.sh (Multithreading): New section.
58501
58502 2005-07-18  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/lock.m4: New file, from GNU gettext.
58505
58506 2005-07-18  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/lock.h: New file, from GNU gettext.
58509         * lib/lock.c: New file, from GNU gettext.
58510
58511 2005-07-18  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/lock.h (gl_once_t): New type.
58514         (gl_once_define, gl_once): New macros.
58515         * lib/lock.c (fresh_once): New variable.
58516         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58517         functions.
58518
58519 2005-07-16  Simon Josefsson  <jas@extundo.com>
58520
58521         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58522         workaround, suggested by Bruno.
58523
58524 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         * modules/xalloc (Depends-on): Add xalloc-die.
58527         * modules/xvasprintf (Depends-on): Add xalloc-die.
58528
58529 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58532         with a minor change.
58533
58534 2005-07-15  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58537         When using lib/poll.c, define poll as rpl_poll.
58538
58539 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * modules/argp (Depends-on): Remove unlocked-io.
58542
58543 2005-07-14  Derek Price  <derek@ximbiot.com>
58544
58545         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58546         for glob symlink bug.
58547
58548 2005-07-14  Bruno Haible  <bruno@clisp.org>
58549
58550         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58551         Instead, test for *_unlocked function declarations directly.
58552
58553 2005-07-11  Simon Josefsson  <jas@extundo.com>
58554
58555         * modules/size_max: New file.
58556
58557         * modules/xsize: Depend on size_max module for size_max.m4.
58558
58559 2005-07-11  Simon Josefsson  <jas@extundo.com>
58560
58561         * lib/size_max.h: New file.
58562
58563 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58566         copyright symbol and the year.
58567         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58568         (version_etc_va): Use parameterized copyright notice.
58569         Reword to conform to the current GNU coding standards.
58570
58571 2005-07-11  Karl Berry  <karl@gnu.org>
58572
58573         * doc/gnulib.texi (Quoting): new node.
58574         (Initial import): more info, from Patrice.
58575
58576 2005-07-11  Bruno Haible  <bruno@clisp.org>
58577
58578         * gnulib-tool (func_usage): Document option --avoid.
58579         (Command line options): Handle --avoid.
58580         (func_acceptable): New function.
58581         (func_modules_transitive_closure): Use it.
58582
58583 2005-07-11  Bruno Haible  <bruno@clisp.org>
58584
58585         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58586         Reported by Jim Meyering.
58587
58588 2005-07-10  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58591         Needed when size_t is smaller than 'unsigned int'.
58592         Reported by Paul Eggert.
58593
58594 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58595
58596         * modules/argp (Depends-on): Add unlocked-io
58597
58598 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58599
58600         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58601         block of defines.
58602
58603 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58606         fix now.
58607
58608 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58609         and Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58612         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58613
58614 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * modules/regex (Files): Add lib/regex_internal.c,
58617         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58618         (Depends-on): Add extensions.
58619         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58620
58621 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58622
58623         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58624         pathconf.
58625         * m4/same.m4 (gl_SAME): Likewise.
58626         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58627
58628         * m4/regex.m4: Adjust to new libc regex implementation.
58629         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58630         all the .c and .h parts of (the new) regex.
58631         Quote the m4 stuff better.
58632         Check for RE_ICASE bug of old gnulib.
58633         Check for REG_STARTEND of recent libc.
58634         Rename local variables from jm_* to gl_*.
58635         Quote operand of "test -f".
58636         Say "recent enough" version of libc, not "version 2".
58637         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58638         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58639         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58640         Remove check for btowc, isascii.
58641         Require AM_LANGINFO_CODESET.
58642
58643 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58644
58645         * lib/regex.c, regex.h: Sync from libc.
58646         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58647         * lib/regexec.c:
58648         New files, synced from libc, except that regex_internal.h
58649         currently has a small porting fix.
58650
58651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58654         regex_internal.c, regexec.c.
58655         Add regex_internal.h too, but as a comment, since the libc version
58656         is currently broken in gnulib mode.
58657
58658 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         Support programs like Emacs that use gnulib but not gettext.
58661         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58662         * modules/gettext-h: New file.
58663         * modules/gettext (Files): Remove lib/gettext.h.
58664         (Depends-on): Add gettext-h.
58665         (Makefile.am): Remove lib_SOURCES.
58666         * modules/argmatch, modules/c-stack, modules/closeout:
58667         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58668         * modules/execute, modules/file-type, modules/getaddrinfo:
58669         * modules/getopt, modules/human, modules/javacomp:
58670         * modules/javaexec, modules/mkdir-p, modules/obstack:
58671         * modules/openat, modules/pagealign_alloc, modules/pipe:
58672         * modules/quotearg, modules/regex, modules/rpmatch:
58673         * modules/unicodeio, modules/userspec, modules/version-etc:
58674         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58675         * modules/xsetenv:
58676         Depend on gettext-h, not gettext.
58677
58678 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * gnulib-tool (func_import): Add support for 'public domain' license.
58681         * modules/alloca, modules/atexit, modules/memmove:
58682         Now public domain, not GPL.
58683         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58684         * modules/realloc, modules/strerror, modules/strtod:
58685         Now LGPL, not GPL.
58686
58687 2005-07-05  Bruno Haible  <bruno@clisp.org>
58688
58689         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58690         autoconf CVS. Needed for mingw.
58691
58692 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58693
58694         Remove the dependency of the strftime module on the tzset module.
58695         * modules/strftime (Depends-on): Remove dependency on tzset.
58696
58697 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58698
58699         Remove the dependency of the strftime module on the tzset module.
58700         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58701         gl_FUNC_TZSET_CLOBBER.
58702
58703 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         Remove the dependency of the strftime module on the tzset module.
58706         * lib/strftime.c (my_strftime)
58707         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58708         Copy the input structure, to work around some of the bug with
58709         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58710         Solaris releases, you should also use the tzset module, but we won't
58711         require it as a dependency any more since we don't want LGPLed code
58712         to depend on GPLed code.
58713
58714 2005-07-02  Jim Meyering  <jim@meyering.net>
58715
58716         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58717         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58718         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58719         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58720
58721 2005-07-02  Jim Meyering  <jim@meyering.net>
58722
58723         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58724
58725 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58728         declares only 'struct timespec;' (!).
58729
58730 2005-07-01  Jim Meyering  <jim@meyering.net>
58731
58732         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58733         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58734         * lib/save-cwd.c, tempname.c:
58735         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58736         and don't include <sys/file.h>).
58737
58738 2005-06-29  Jim Meyering  <jim@meyering.net>
58739
58740         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58741         type name.  Use the variable name instead.
58742         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58743         Likewise.
58744
58745 2005-06-28  Simon Josefsson  <jas@extundo.com>
58746
58747         * modules/check-version (Files): Add check-version.m4.
58748
58749 2005-06-28  Simon Josefsson  <jas@extundo.com>
58750
58751         * m4/check-version.m4: New file, suggested by Jim Meyering
58752         <jim@meyering.net>.
58753
58754 2005-06-28  Simon Josefsson  <jas@extundo.com>
58755
58756         * lib/check-version.h, lib/check-version.c: New files.
58757
58758 2005-06-28  Simon Josefsson  <jas@extundo.com>
58759
58760         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58761         collision with global variable.  Better indentation.  Don't
58762         increment buffer pointer beyond buffer end.  Based on comments
58763         from Paul Eggert <eggert@cs.ucla.edu>.
58764
58765         * lib/base64.h: Indent.
58766
58767 2005-06-28  Simon Josefsson  <jas@extundo.com>
58768
58769         * doc/gnulib.texi (Library version handling): New section.
58770
58771 2005-06-28  Jim Meyering  <jim@meyering.net>
58772
58773         * check-module (find_included_lib_files): Hard-code another
58774         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58775         but modules/fts-lgpl (correctly) does not list those files.
58776
58777         * modules/canonicalize (Files): Add lib/pathmax.h.
58778
58779 2005-06-25  Simon Josefsson  <jas@extundo.com>
58780
58781         * modules/check-version: New file.
58782
58783 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58786         initializer of struct addrinfo, as an indication that we don't
58787         care how many members the structure has.
58788
58789 2005-06-24  Derek Price  <derek@ximbiot.com>
58790         and Bruno Haible  <bruno@clisp.org>
58791
58792         Remove stat module & update lstat.
58793         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58794         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58795         * m4/stat.m4: Remove this file.
58796
58797 2005-06-24  Derek Price  <derek@ximbiot.com>
58798         and Bruno Haible  <bruno@clisp.org>
58799
58800         Remove stat module & update lstat.
58801         * lib/stat.c: Remove this file...
58802         (slash_aware_lstat): ...moving this content and its support...
58803         * lib/lstat.c (rpl_lstat): ...into here.
58804         * lib/lstat.h: New file.
58805
58806 2005-06-24  Derek Price  <derek@ximbiot.com>
58807         and Bruno Haible  <bruno@clisp.org>
58808
58809         Remove stat module & update lstat.
58810         * config/srclist.txt (libc sources): Remove stat.
58811
58812 2005-06-24  Derek Price  <derek@ximbiot.com>
58813         and Bruno Haible  <bruno@clisp.org>
58814
58815         Remove stat module & update lstat.
58816         * MODULES.html.sh (stat): Remove.
58817         * MODULES.html: Regenerated.
58818         * modules/lstat (Description): Correct function name.
58819         (Files): Add "lstat.h".
58820         (Depends-on): Remove stat, add xalloc, stat-macros.
58821         * modules/stat: Remove this file.
58822         (Include): Add "lstat.h", remove <sys/stat.h>.
58823
58824 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58827         (ranged_convert): Don't save conversion in a temporary struct.
58828         This causes a warning with GCC 4.0.0, and anyway in the typical
58829         case it's not worth the extra 100 bytes or so of code.
58830         (ranged_convert, __mktime_internal): When calling a function via a
58831         pointer P, use P () rather than (*P) (), as we now assume C89 or
58832         better.
58833
58834 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58835
58836         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58837         "who -r" failed to give output.  Problem reported by Tim Waugh.
58838
58839         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58840         (xcalloc): Use it to avoid needless tests.
58841         Problem reported by Jim Meyering.
58842
58843 2005-06-20  Derek Price  <derek@ximbiot.com>
58844
58845         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58846         unnecessary for Autoconfs > 2.59c.
58847
58848 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58849
58850         * lib/argp.h (__option_is_short): Check upper limit of
58851         __key. Isprint() requires its argument to have the value
58852         of an unsigned char or EOF.
58853
58854 2005-06-16  Jim Meyering  <jim@meyering.net>
58855
58856         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58857         when either N or S is zero.
58858
58859 2005-06-16  Derek Price  <derek@ximbiot.com>
58860
58861         * m4/bison.m4: Declare YACC & YFLAGS precious.
58862
58863 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58866         multibyte string or pattern, fall back on unibyte matching.
58867         Problem reported by James Youngman.
58868
58869 2005-06-08  Bruno Haible  <bruno@clisp.org>
58870
58871         * modules/csharpcomp: New file.
58872         * MODULES.html.sh (C#): Add csharpcomp.
58873
58874 2005-06-08  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/csharpcomp.m4: New file, from GNU gettext.
58877
58878 2005-06-08  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/csharpcomp.h: New file, from GNU gettext.
58881         * lib/csharpcomp.c: New file, from GNU gettext.
58882         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58883
58884 2005-06-08  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58887         warning on mingw.
58888
58889 2005-06-07  Derek Price  <derek@ximbiot.com>
58890
58891         Sync from CVS.
58892         * lib/glob_.h: Indent nested #ifdef.
58893
58894 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         Sync from coreutils.
58897         Use "file name" when talking about file names, instead of "filename"
58898         or "path", as per the GNU coding standards.
58899         * lib/mkdir-p.c: Renamed from makepath.c.
58900         (make_dir_parents): Renamed from make_path.  All callers changed.
58901         * lib/mkdir-p.h: Likewise.  All includers changed.
58902         * lib/filenamecat.c: Renamed from path-concat.c.
58903         (file_name_concat): Renamed from path_concat.  All callers changed.
58904         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58905         * lib/filenamecat.h: Likewise.  All includers changed.
58906         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58907         in comments or local variable names.
58908         * lib/basename.c: Likewise.
58909         * lib/canonicalize.c, canonicalize.h: Likewise.
58910         * lib/dirname.c, dirname.h: Likewise.
58911         * lib/euidaccess.c: Likewise.
58912         * lib/exclude.c: Likewise
58913         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58914         * lib/fsusage.c, fsuage.h: Likewise.
58915         * lib/fts.c, fts_.h: Likewise.
58916         * lib/getcwd.c: Likewise.
58917         * lib/getloadavg.c: Likewise.
58918         * lib/mkstemp.c: Likewise.
58919         * lib/mountlist.c, mountlist.h: Likewise.
58920         * lib/openat.c, openat.h: Likewise.
58921         * lib/readlink-stub.c: Likewise.
58922         * lib/readutmp.c, readutmp.h: Likewise.
58923         * lib/rename.c: Likewise.
58924         * lib/rmdir.c: Likewise.
58925         * lib/same.c: Likewise.
58926         * lib/savedir.c: Likewise.
58927         * lib/stripslash.c: Likewise.
58928         * lib/tempname.c: Likewise.
58929         * lib/xreadlink.c: Likewise.
58930         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58931         All uses changed.
58932         * lib/exclude.h: Likewise.
58933
58934         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58935         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58936         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58937         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58938         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58939         files have been getting away with it for years (MORE/BSD 4.3
58940         is extinct now).
58941         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58942         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58943
58944         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58945         Define to 256, not 255, as per modern POSIX.
58946
58947 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         Sync from coreutils.
58950         Use "file name" when talking about file names, instead of "filename"
58951         or "path", as per the GNU coding standards.
58952         * MODULES.html.sh: mkdir-p renamed from makepath.
58953         filenamecat renamed from path-concat.
58954         * modules/filenamecat: Renamed from modules/path-concat.
58955         (Files): filenamecat.h and filenamecat.c renamed from
58956         path-concat.h and path-concat.c.
58957         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58958         (Include): filenamecat.h, not path-concat.h.
58959         * modules/mkdir-p: Renamed from modules/makepath.
58960         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58961         makepath.c.
58962         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58963         (Include): mkdir-p.h, not makepath.h.
58964
58965 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         Sync from coreutils.
58968         * m4/mkdir-p.m4: Renamed from makepath.m4.
58969         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58970         Rename files from makepath.c to mkdir-p.c, and from
58971         makepath.h to mkdir-p.h.
58972         * m4/filenamecat.m4: Renamed from path-concat.m4.
58973         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58974         Rename files from path-concat.c to filenamecat.c,
58975         and from path-concat.h to filenamecat.h.
58976         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58977         "file name" in local variables or comments.
58978         * m4/rename.m4: Likewise.
58979
58980 2005-06-01  Bruno Haible  <bruno@clisp.org>
58981
58982         * modules/csharpexec: New file.
58983         * MODULES.html.sh (C#): New section.
58984
58985 2005-06-01  Bruno Haible  <bruno@clisp.org>
58986
58987         * m4/csharp.m4: New file, from GNU gettext.
58988         * m4/csharpexec.m4: New file, from GNU gettext.
58989
58990 2005-06-01  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/csharpexec.h: New file, from GNU gettext.
58993         * lib/csharpexec.c: New file, from GNU gettext.
58994         * lib/csharpexec.sh.in: New file, from GNU gettext.
58995
58996 2005-05-31  Derek Price  <derek@ximbiot.com>
58997             Paul Eggert  <eggert@cs.ucla.edu>
58998
58999         Sync from cvs.
59000         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59001
59002 2005-05-31  Derek Price  <derek@ximbiot.com>
59003             Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         Sync from cvs.
59006         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59007
59008 2005-05-29  Derek Price  <derek@ximbiot.com>
59009
59010         * config/srclist.txt (glob_.h, glob.c): Add these files.
59011
59012 2005-05-29  Derek Price  <derek@ximbiot.com>
59013
59014         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59015         * modules/glob: New file.
59016         * modules/getlogin_r: Add link to POSIX spec in description.
59017
59018 2005-05-29  Derek Price  <derek@ximbiot.com>
59019             Paul Eggert  <eggert@cs.ucla.edu>
59020
59021         * m4/glob.m4: New file.
59022
59023 2005-05-29  Derek Price  <derek@ximbiot.com>
59024             Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * lib/glob_.h, lib/glob.c: New files.
59027
59028 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59031         * modules/fts-lgpl (Depends-on): Remove gettext.
59032
59033 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59036         and don't require gt_INTTYPES_PRI.
59037
59038 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59041
59042         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59043         the configuration hassle isn't worth it.
59044         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59045         (LONGEST_MODIFIER, PRIuMAX): Remove.
59046
59047 2005-05-27  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59050
59051 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59052
59053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59054         _POSIX_PTHREAD_SEMANTICS for Solaris.
59055
59056 2005-05-25  Derek Price  <derek@ximbiot.com>
59057
59058         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59059
59060 2005-05-25  Derek Price  <derek@ximbiot.com>
59061             Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59064         * lib/getlogin_r.c, getlogin_r.h: New files.
59065
59066 2005-05-25  Bruno Haible  <bruno@clisp.org>
59067             Derek Price  <derek@ximbiot.com>
59068
59069         * lib/getlogin_r.h: Simplify API documentation.
59070
59071 2005-05-23  Derek Price  <derek@ximbiot.com>
59072
59073         * modules/minmax (Files): Add m4/minmax.m4.
59074         (configure.ac): Add gl_MINMAX.
59075
59076 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59077
59078         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59079         so that unistd-safer.h (GPL'ed code) need not be included.
59080
59081 2005-05-22  Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/minmax.m4: New file.
59084         Based on a patch by Derek Price <derek@ximbiot.com>.
59085
59086 2005-05-22  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59089         (INT64_MIN): Fix definition.
59090         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59091
59092         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59093         NEED_SIGNED_INT_TYPES.
59094
59095         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59096         HAVE_SYSTEM_INTTYPES.
59097
59098 2005-05-22  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59101         Also include <sys/param.h> if it defines MIN, MAX.
59102         Based on a patch by Derek Price <derek@ximbiot.com>.
59103
59104 2005-05-21  Jim Meyering  <jim@meyering.net>
59105
59106         * modules/fts (Files): Add m4/inttypes-pri.m4.
59107         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59108
59109 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59110
59111         New fts module.
59112         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59113         (setup_dir, free_dir): New functions.
59114         (enter_dir, leave_dir): Define trivial
59115         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59116         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59117         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59118         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59119         Move to fts-cycle.c.
59120         (fts_open): Use setup_dir.
59121         (fts_close): Use free_dir.
59122         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59123         This adds a label and some gotos, but the alternatives were messier.
59124         Check for memory allocation failure when entering a dir.
59125         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59126         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59127         (FTS): New member fts_cycle, that is a union that contains the
59128         old active_dir_ht and cycle_state.  All uses changed to mention
59129         fts_cycle.ht and fts_cycle.state.
59130         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59131         fts.c, with the following changes:
59132         (setup_dir, free_dir): New functions.
59133         (enter_dir): Now returns bool.  Return true if successful, false
59134         if memory exhausted.  All callers changed.
59135         Do not bother partly cleaning up on
59136         memory allocation failure; that is free_dir's job.
59137         However, free ad if hash_insert fails, to avoid memory leak.
59138         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59139         fts->fts_options to see which union member to use.
59140
59141 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59144         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59145
59146 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59149
59150 2005-05-20  Jim Meyering  <jim@meyering.net>
59151
59152         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59153         Now a macro, to pacify GCC.
59154
59155 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59156
59157         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59158         of -1.
59159
59160 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59161
59162         * lib/chown.c (rpl_chown): Return -1 on failure.
59163
59164 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59165
59166         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59167         Don't check for stddef.h.
59168         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59169         don't use its results.
59170         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59171         since we include them unconditionally.  Don't require
59172         AM_STDBOOL_H, since stdbool is a prerequisite.
59173         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59174         since we assume C89 or better.
59175         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59176         as we don't use their results.
59177         Don't check for fchdir, memmove, memset, strrchr, as we use
59178         them unconditionally.
59179         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59180         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59181
59182 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59183
59184         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59185         Include <stddef.h> unconditionally, since we assume C89 now.
59186         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59187         * lib/fts.c: Include fts_.h first, to check interface.
59188         Do not include intprops.h; no longer needed.
59189         Include cycle-check.h and hash.h, since fts_.h no longer does.
59190         Remove unnecessary casts of closedir to void.
59191         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59192         decide whether to decrement nlinks.
59193         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59194         (FTS): Use struct hash_table * instead of Hash_table, so that
59195         we no longer need to include hash.h here.
59196
59197 2005-05-18  Jim Meyering  <jim@meyering.net>
59198
59199         * modules/dirfd (License): Change to LGPL.  Most of the code
59200         is already in the public domain.
59201
59202 2005-05-18  Jim Meyering  <jim@meyering.net>
59203
59204         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59205         Reported by Yoann Vandoorselaere.
59206
59207 2005-05-17  Jim Meyering  <jim@meyering.net>
59208
59209         * m4/fts.m4: New file, from coreutils.
59210
59211 2005-05-17  Jim Meyering  <jim@meyering.net>
59212
59213         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59214
59215 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         Sync from coreutils.
59218         * m4/unlinkdir.m4: New file.
59219
59220 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         Sync from coreutils.
59223         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59224         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59225         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59226         White space changes only.
59227         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59228         special.
59229         * lib/yesno.c: Include getline.h, not ctype.h.
59230         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59231         Use getline to remove arbitrary restriction on response length.
59232
59233 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * config/srclist-update: Spell out "Street" in FSF postal
59236         mail address; this is the style the FSF seems to prefer.
59237
59238         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59239         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59240         this updates FSF postal mail address.
59241
59242         Sync from coreutils.
59243         * modules/unlinkdir: New file.
59244         * modules/yesno (Depends-on): Add getline.
59245         * MODULES.html.sh (File system functions): Add unlinkdir.
59246
59247 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59248
59249         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59250         lib/strsep.h:
59251         Change the initial comment to refer to GPL, not LGPL.
59252         gnulib-tool will change it to LGPL as needed.
59253
59254         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59255         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59256         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59257         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59258         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59259         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59260         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59261         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59262         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59263         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59264         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59265         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59266         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59267         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59268         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59269         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59270         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59271         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59272         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59273         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59274         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59275         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59276         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59277         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59278         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59279         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59280         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59281         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59282         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59283         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59284         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59285         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59286         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59287         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59288         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59289         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59290         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59291         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59292         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59293         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59294         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59295         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59296         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59297         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59298         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59299         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59300         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59301         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59302         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59303         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59304         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59305         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59306         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59307         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59308         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59309         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59310         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59311         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59312         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59313         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59314         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59315         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59316         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59317         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59318         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59319         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59320         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59321         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59322         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59323         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59324         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59325         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59326         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59327         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59328         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59329         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59330         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59331         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59332         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59333         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59334         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59335         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59336         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59337         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59338         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59339         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59340         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59341         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59342         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59343         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59344         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59345         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59346         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59347         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59348         lib/yesno.c, lib/yesno.h:
59349         Update FSF postal mail address.
59350
59351 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59354         tests/test-memmem.c, tests/test-stpncpy.c:
59355         Update FSF postal mail address.
59356
59357 2005-05-13  Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59360         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59361         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59362         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59363         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59364         Add support for 64-bit integers in the MSVC compiler.
59365
59366 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59367
59368         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59369
59370 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59371
59372         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59373
59374 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         * doc/getdate.texi (General date syntax): Don't say that date
59377         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59378         Problem reported by Nic Ferrier.
59379
59380 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59381
59382         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59383         specified in ai_socktype. Fix invalid ai_protocol
59384         check. ai_protocol is usually set to 0 or depending on
59385         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59386         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59387         ai_socktype / ai_protocol in the returned addrinfo structure.
59388
59389 2005-05-10  Simon Josefsson  <jas@extundo.com>
59390
59391         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59392         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59393
59394 2005-05-10  Karl Berry  <karl@gnu.org>
59395
59396         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59397         (from http://www.gnu.org/licenses).
59398         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59399         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59400         fdl.texi suffices.
59401
59402 2005-05-10  Karl Berry  <karl@gnu.org>
59403
59404         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59405         (COPYING.DOC): remove.
59406
59407         * config/srclist-update: new FSF address.
59408
59409 2005-05-10  Derek Price  <derek@ximbiot.com>
59410
59411         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59412         possible.
59413
59414 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59415             Bruno Haible  <bruno@clisp.org>
59416
59417         * modules/inet_ntop: New file.
59418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59419         inet_ntop.
59420
59421 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59422             Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/inet_ntop.m4: New file.
59425
59426 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59427             Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/inet_ntop.h: New file.
59430         * lib/inet_ntop.c: New file, from glibc with modifications.
59431
59432 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         * modules/time_r (License): Change to LGPL.
59435         * modules/extensions (License): Change to LGPL.  Actually,
59436         the license is more permissive than that, but currently gnulib-tool
59437         doesn't know how to handle more-permissive licenses.
59438
59439         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59440         Problem reported by Dave Love.
59441
59442 2005-05-08  Jim Meyering  <jim@meyering.net>
59443
59444         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59445         blank.
59446
59447 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59448
59449         * modules/argmatch (Depends-on): Add stdbool.
59450         * modules/backupfile (Depends-on): Likewise.
59451         * modules/chdir-long (Depends-on): Likewise.
59452         * modules/closeout (Depends-on): Likewise.
59453         * modules/cycle-check (Depends-on): Likewise.
59454         * modules/dirname (Depends-on): Likewise.
59455         * modules/fnmatch (Depends-on): Likewise.
59456         * modules/fsusage (Depends-on): Likewise.
59457         * modules/fwriteerror (Depends-on): Likewise.
59458         * modules/getcwd (Depends-on): Likewise.
59459         * modules/getloadavg (Depends-on): Likewise.
59460         * modules/hard-locale (Depends-on): Likewise.
59461         * modules/makepath (Depends-on): Likewise.
59462         * modules/mountlist (Depends-on): Likewise.
59463         * modules/nanosleep (Depends-on): Likewise.
59464         * modules/posixtm (Depends-on): Likewise.
59465         * modules/quotearg (Depends-on): Likewise.
59466         * modules/readtokens (Depends-on): Likewise.
59467         * modules/readtokens0 (Depends-on): Likewise.
59468         * modules/readutmp (Depends-on): Likewise.
59469         * modules/save-cwd (Depends-on): Likewise.
59470         * modules/strftime (Depends-on): Likewise.
59471         * modules/userspec (Depends-on): Likewise.
59472         * modules/utimecmp (Depends-on): Likewise.
59473         * modules/xgetcwd (Depends-on): Likewise.
59474         * modules/xnanosleep (Depends-on): Likewise.
59475         * modules/xstrtod (Depends-on): Likewise.
59476         * modules/yesno (Depends-on): Likewise.
59477
59478 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59481         needless checks.
59482
59483 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         Merge from coreutils.  Among other things,
59486         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59487         * lib/fd-safer.c: New file.
59488         * lib/fcntl-safer.h, open-safer.c: Remove.
59489         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59490         * lib/dup-safer.c: Include unistd-safer.h first.
59491         Don't include errno.h.
59492         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59493         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59494         * lib/file-type.c: Rely on file-type.h change.
59495         * lib/getloadavg.c: Include unistd-safer.h.
59496         (getloadavg): Use safer open.
59497         * lib/getusershell.c: Include "stdio-safer.h".
59498         (getusershell): Use safer fopen.
59499         * lib/long-options.c (long_options): Use NULL rather than 0.
59500         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59501         'free'.
59502         * lib/modechange.c: Likewise.
59503         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59504         (MODE_DONE): New constant.
59505         (struct mode_change): Remove 'next' member.
59506         (make_node_op_equals): New function; like the old one of the
59507         same name, except it allocates an array.
59508         (mode_compile, mode_create_from_ref): Use it.
59509         (mode_compile): Allocate result as an array, not a linked list.
59510         Parse octal string ourself, so that we catch mistakes like "+0".
59511         (mode_adjust): Arg is an array, not a linked list.
59512         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59513         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59514         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59515         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59516         Remove.  This is now stat-macros.h's job.
59517         (talloc): Remove.  All callers replaced by xalloc, so that
59518         our invokers don't have to worry about reporting memory failures.
59519         (make_node_op_equals): Remove.
59520         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59521         New constants.
59522         (struct mode_change): Moved here from modechange.h.
59523         (mode_append_entry): Remove.
59524         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59525         apps to have incorrect behavior.  Use simpler algorithm for head
59526         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59527         Detect more invalid usages rather than having somewhat-random behavior.
59528         Don't insert an "a=" action, as that leads to incorrect behavior.
59529         (mode_compile, mode_create_from_ref): Return NULL on error instead
59530         of an enum, since now there's only one way to have an error.  All
59531         callers changed.
59532         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59533         at the correct time.  Simplify calculation of "+u" and its ilk.
59534         Don't mishandle "+X".
59535         (mode_free): Remove "register" and localize decls.
59536         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59537         (struct mode_change): Move to modechange.c; callers don't
59538         need to see this stuff.
59539         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59540         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59541         (mode_change, mode_adjust): Reflect the new signatures noted above.
59542         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59543         that might redefine system include files.
59544         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59545         (my_usleep): Use NULL rather than (void *) 0.
59546         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59547         Use siginterrupt to specify that system calls should be interrupted.
59548         (rpl_nanosleep): Move initialization of suspended closer to call of
59549         my_usleep.
59550         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59551         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59552         (desirable_utmp_entry): New function.
59553         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59554         using x2nrealloc, to simplify logic.
59555         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59556         size calculation.  Do not assume utmp file is a regular file.
59557         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59558         (READ_UTMP_CHECK_PIDS): New constant.
59559         * lib/save-cwd.c: Include unistd-safer.h.
59560         (save_cwd): Use fd_safer.
59561         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59562         [!_LIBC] Include "stat-macros.h" instead.
59563         * lib/unistd-safer.h (fd_safer): New decl.
59564
59565 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         * modules/getloadavg (Depends-on): Add unistd-safer.
59568         * modules/getusershell (Depends-on): Add stdio-safer.
59569         * modules/lstat (Depends-on): Remove xalloc.
59570         * modules/mkstemp (Depends-on): Add stat-macros.
59571         * modules/modechange (Depends-on): Remove xstrtol.
59572         Add stat-macros, xalloc.
59573         * modules/save-cwd (Depends-on): Add unistd-safer.
59574         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59575         * modules/unistd-safer (Files): Add lib/fd-safer.c
59576         (Makefile.am): Remove lib_SOURCES.
59577
59578         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59579         Remove fcntl-safer; unistd-safer supersedes it.
59580
59581 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59584         AC_HEADER_STAT.
59585         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59586         (gl_PREREQ_CHOWN): Remove.
59587         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59588         it.  Don't require AC_HEADER_STAT.
59589         (gl_PREREQ_LSTAT): Remove.
59590         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59591         Don't require AC_HEADER_STAT.
59592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59593         (gl_PREREQ_RMDIR): Remove.
59594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59595         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59596         the stat-macros module a prerequisite.
59597         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59598         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59599         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59600         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59601         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59602         variable names.
59603         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59604         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59605         variable prefixes.
59606         * m4/fcntl-safer.m4: Remove.
59607         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59608         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59609         Invoke gl_PREREQ_FD_SAFER.
59610         (gl_PREREQ_FD_SAFER): New macro.
59611         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59612         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59613         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59614         Remove duplicate call to AC_LIBOBJ(readutmp).
59615         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59616
59617         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59618         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59619
59620 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * MODULES.html.sh (Misc): Add byteswap.
59623
59624 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59625
59626         * modules/getcwd (Depends-on): Add extensions.
59627         * modules/openat (Depends-on): Likewise.
59628
59629 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59630
59631         * modules/byteswap: New file.
59632
59633 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59634
59635         * m4/byteswap.m4: New file.
59636
59637 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59638
59639         * lib/byteswap_.h: New file.
59640
59641 2005-04-25  Karl Berry  <karl@gnu.org>
59642
59643         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59644
59645 2005-04-25  Albert Chin  <china@thewrittenword.com>
59646
59647         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59648         Toolkit C bug.
59649
59650 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59651
59652         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59653         (func_ln_if_changed) Remove forcibly for no error message
59654         in case file does not exist.
59655
59656 2005-04-19  Simon Josefsson  <jas@extundo.com>
59657
59658         * gnulib-tool (Options): Make --symlink mean --symbolic.
59659
59660 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59661
59662         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59663
59664 2005-04-16  Simon Josefsson  <jas@extundo.com>
59665
59666         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59667
59668 2005-04-15  Simon Josefsson  <jas@extundo.com>
59669
59670         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59671
59672 2005-04-15  Simon Josefsson  <jas@extundo.com>
59673
59674         * gnulib-tool: Rename --symlink to --symbolic.
59675
59676 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59677
59678         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59679         symbolic links to files instead of copying/moving.  Add --aux-dir,
59680         specifying directory relative --dir where auxiliary build tools
59681         are placed.
59682
59683 2005-04-14  Bruno Haible  <bruno@clisp.org>
59684
59685         * modules/allocsa (License): Change to LGPL.
59686         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59687
59688 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59691         that "UTC +1 second" continues to work.  Problem reported
59692         by Dmitry V. Levin.
59693         (relunit_snumber): New rule.
59694         (relunit): Use it.
59695
59696 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59697
59698         * lib/getdate.y (universal_time_zone_table): New constant.
59699         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59700         universal_time_zone_table.
59701         (lookup_zone): Prefer universal_time_zone_table to
59702         local_time_zone_table, so that "GMT" time stamps are allowed in
59703         London during the summer.  Problem reported by Ian Abbott.
59704
59705 2005-04-12  Jim Meyering  <jim@meyering.net>
59706
59707         * lib/human.c (humblock): Set *options even when returning due to
59708         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59709         warning from gcc-4.
59710
59711 2005-04-09  Jim Meyering  <jim@meyering.net>
59712
59713         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59714         -Wuninitialized: initialize tm0.tm_year.
59715
59716 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59717
59718         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59719         count, since there's no maximum.  All uses changed.
59720         Add member dsts_seen.
59721         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59722         not being INT_MAX.
59723         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59724         Use pc_rels_seen to decide whther a date is absolute.
59725
59726         * lib/getdate.y (number): Don't overwrite year.
59727         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59728         check.
59729
59730 2005-04-02  Simon Josefsson  <jas@extundo.com>
59731
59732         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59733         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59734
59735 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59736
59737         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59738         where no absolute path name can be longer than PATH_MAX.
59739
59740 2005-03-27  Jim Meyering  <jim@meyering.net>
59741
59742         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59743
59744 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59747         "one's complement" -> "ones' complement" in comment, as per Knuth.
59748         "value of type" -> "type or expression" in comment.
59749         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59750
59751 2005-03-26  Jim Meyering  <jim@meyering.net>
59752
59753         Comment nits.
59754         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59755         Correct typos: s/or/of/.
59756
59757 2005-03-26  Jim Meyering  <jim@meyering.net>
59758
59759         * modules/check-include-files: Move to ../ and rename to...
59760         * check-module: ...this.
59761
59762 2005-03-25  Jim Meyering  <jim@meyering.net>
59763
59764         * modules/xvasprintf (Files): Add xalloc.h.
59765
59766 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59767
59768         * modules/gettext (Files): config/config.rpath ->
59769         build-aux/config.rpath
59770         * modules/iconv (Files): Likewise.
59771         Problem reported by Oskar Liljeblad.
59772
59773 2005-03-23  Jim Meyering  <jim@meyering.net>
59774
59775         * modules/check-include-files: New script to check for
59776         missing dependencies, multiple includes, etc.
59777
59778         * modules/c-strtold (Depends-on): Add xalloc.
59779         * modules/c-strtod (Depends-on): Add xalloc.
59780         * modules/hash (Depends-on): Add xalloc.
59781         (Files): Remove lib/xalloc.h.
59782
59783         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59784         * modules/userspec (Files): Add lib/inttostr.h.
59785
59786 2005-03-23  Jim Meyering  <jim@meyering.net>
59787
59788         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59789
59790 2005-03-22  Jim Meyering  <jim@meyering.net>
59791
59792         * modules/stat-macros: New module.
59793         * modules/canonicalize, modules/euidaccess, modules/file-type,
59794         * modules/filemode, modules/lchown, modules/makepath,
59795         * modules/rmdir, modules/stat: Depend on new stat-macros module
59796         rather than listing lib/stat-macros.h manually.
59797         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59798
59799 2005-03-22  Jim Meyering  <jim@meyering.net>
59800
59801         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59802
59803 2005-03-22  Bruno Haible  <bruno@clisp.org>
59804
59805         * config/srclist.txt: Replace target directory 'config' with
59806         'build-aux'.
59807         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59808         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59809         ../build-aux/.
59810
59811 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * modules/chdir-long (Depends-on): Add mempcpy.
59814
59815         * modules/acl, modules/backupfile, modules/c-strtod,
59816         modules/c-strtold, modules/canon-host, modules/canonicalize,
59817         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59818         modules/exclude, modules/exitfail, modules/file-type,
59819         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59820         modules/getdate, modules/getline, modules/getpagesize,
59821         modules/getpass, modules/getugroups, modules/group-member,
59822         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59823         modules/inttostr, modules/long-options, modules/makepath,
59824         modules/md5, modules/memcasecmp, modules/memcoll,
59825         modules/modechange, modules/mountlist, modules/path-concat,
59826         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59827         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59828         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59829         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59830         modules/strftime, modules/strndup, modules/strverscmp,
59831         modules/timespec, modules/unlocked-io, modules/userspec,
59832         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59833         modules/yesno:
59834         Remove lib_SOURCES line from Makefile.am section, as this is now
59835         done automatically by the corresponding Autoconf macro.
59836
59837 2005-03-21  Jim Meyering  <jim@meyering.net>
59838
59839         Changes imported from coreutils.
59840
59841         * lib/cycle-check.c: Don't include xalloc.h.
59842
59843         * lib/path-concat.c: Don't include assert.h.
59844         (path_concat): Remove assertion that would have triggered
59845         for ABASE starting with more than one slash.
59846         Reported by Andreas Schwab.
59847
59848         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59849         properly when ABASE is an absolute file name.
59850         Correct the description of this function.
59851         Include <assert.h>.
59852         Add an assertion and a test driver.
59853         This fixes a bug introduced on 2004-07-02.
59854         Andreas Schwab reported the resulting failure of cp --parents:
59855         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59856
59857 2005-03-21  Jim Meyering  <jim@meyering.net>
59858
59859         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59860         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59861
59862 2005-03-21  Jim Meyering  <jim@meyering.net>
59863         and  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59866         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59867         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59868         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59869         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59870         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59871         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59872         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59873         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59874         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59875         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59876         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59877         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59878         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59879         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59880         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59881         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59882         for these modules.
59883
59884 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59885
59886         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59887         (which shouldn't happen), generate nothing instead of returning 0
59888         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59889
59890 2005-03-16  Bruno Haible  <bruno@clisp.org>
59891
59892         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59893         HAVE_LONGLONG_64BIT.
59894
59895 2005-03-16  Bruno Haible  <bruno@clisp.org>
59896
59897         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59898         HAVE_LONGLONG_64BIT.
59899
59900 2005-03-16  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59903         HAVE_LONGLONG_64BIT.
59904
59905 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59908         reliably distinguish strftime failure from empty output on POSIX
59909         hosts.
59910
59911 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59914         (iconv_string): Don't guess a size-zero buffer, as that might cause
59915         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59916         result would be 'too large', where 'too large' is (heuristically)
59917         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59918         overflow concerns.  This will prevent some unwanted malloc failures
59919         when the inputs are very large.
59920
59921 2005-03-15  Karl Berry  <karl@gnu.org>
59922
59923         * config/srclist.txt (config.rpath): from gettext.
59924         * config/config.rpath: update.
59925
59926 2005-03-15  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59929         to 'negate'.
59930
59931         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59932         variable.
59933
59934         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59935         results.
59936
59937 2005-03-14  Simon Josefsson  <jas@extundo.com>
59938
59939         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59940         <fx@gnu.org>.
59941
59942 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59945         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59946         intprops.h.
59947         * lib/strtol.c: Likewise.
59948
59949 2005-03-14  Jim Meyering  <jim@meyering.net>
59950
59951         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59952         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59953         to be nonzero so that we (and caller) can detect the difference
59954         between a valid zero-length expansion and an error return, even
59955         when the underlying strftime fails before writing anything into
59956         that location.
59957
59958 2005-03-14  Bruno Haible  <bruno@clisp.org>
59959
59960         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59961         Update from GNU gettext 0.14.3.
59962
59963 2005-03-10  Jim Meyering  <jim@meyering.net>
59964
59965         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59966
59967 2005-03-10  Jim Meyering  <jim@meyering.net>
59968
59969         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59970         so that this module works on systems without fchdir.
59971
59972 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         Factor int-properties macros into a single file, except for
59975         glibc-related files.
59976         * lib/intprops.h: New file.
59977         * lib/getloadavg.c: Include it instead of limits.h.
59978         (INT_STRLEN_BOUND): Remove.
59979         * lib/human.c: Include intprops.h.
59980         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59981         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59982         302/1000.
59983         * lib/inttostr.h: Include intprops.h instead of limits.h.
59984         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59985         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59986         for consistency with intprops.h.
59987         (time_t_is_integer, twos_complement_arithmetic): Use them.
59988         * lib/sig2str.h: Include <signal.h>, intprops.h.
59989         (INT_STRLEN_BOUND): Remove.
59990         * lib/strftime.c (TYPE_SIGNED): Remove.
59991         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59992         * lib/strtol.c: Adjust comments to match intprops.h.
59993         * lib/userspec.c: Include intprops.h.
59994         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59995         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59996         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59997         instead of rolling our own expressions.
59998         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59999
60000         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60001         instead of int.
60002         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60003         the right thing even if adding 1900 would overflow.  Similarly
60004         for tm_mon + 1 and tm_yday + 1.
60005         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60006         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60007         (DO_SIGNED_NUMBER): New macro.
60008         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60009
60010 2005-03-07  Bruno Haible  <bruno@clisp.org>
60011
60012         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60013
60014 2005-03-07  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60017
60018 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60019
60020         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60021         (func_import): Only replace files via --import when they have actually
60022         changed.
60023
60024 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60025
60026         * m4/mmap-anon.m4: New file.
60027         * m4/pagealign_alloc.m4: New file.
60028
60029 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60030             Bruno Haible  <bruno@clisp.org>
60031
60032         * modules/pagealign_alloc: New file.
60033         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60034
60035 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60036             Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/pagealign_alloc.h: New file.
60039         * lib/pagealign_alloc.c: New file.
60040
60041 2005-03-03  Bruno Haible  <bruno@clisp.org>
60042
60043         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60044         Use an all-permissive copyright notice, recommended by RMS.
60045
60046 2005-03-02  Bruno Haible  <bruno@clisp.org>
60047
60048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60049         of AIX, the replacement has to be done only after <string.h> is
60050         included, therefore not in config.h. stpncpy.h does the replacement,
60051         and stpncpy.c uses it.
60052
60053 2005-03-02  Bruno Haible  <bruno@clisp.org>
60054
60055         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60056         stpncpy.c uses it.
60057
60058 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60061         The workaround isn't strictly needed for POSIX conformance, and
60062         it's too much of a pain to configure and maintain.  We'll ask
60063         people to fix their kernels instead.
60064         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60065         (NANOSLEEP_BUG_WORKAROUND): Remove.
60066         (xnanosleep): Remove the workaround.
60067
60068 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60071         Reported by Derek Price.
60072         (Include): Add "timespec.h".
60073
60074         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60075
60076 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60079         to detect nanosleep bug.
60080
60081 2005-03-01  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60084
60085 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60086
60087         * modules/gethrxtime: New file.
60088         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60089         (Depends-on): Add gethrxtime.
60090         (configure.ac): Add gl_XNANOSLEEP.
60091         (Makefile.am): Remove lib_SOURCES line.
60092
60093 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60096         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60097
60098 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60101         * lib/timespec.h (gettime): Return void, since it always
60102         succeeds now.  All uses changed.
60103         * lib/gettime.c (gettime) Likewise.
60104         [HAVE_NANOTIME]: Prefer nanotime.
60105         Assume gettimeofday succeeds, as POSIX requires.
60106         Assime time () succeeds, since other code already does.
60107         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60108         (timespec_subtract): Remove.
60109         (NANOSLEEP_BUG_WORKAROUND): New constant.
60110         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60111         things considerably.  Use it only on GNU/Linux hosts, since the
60112         workaround shouldn't be needed elsewhere.
60113
60114 2005-02-24  Bruno Haible  <bruno@clisp.org>
60115
60116         * modules/gettext (Files): Add m4/glibc2.m4.
60117
60118 2005-02-24  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60121         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60122         * m4/progtest.m4:
60123         Update from GNU gettext 0.14.2.
60124         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60125
60126 2005-02-24  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60129         * lib/config.charset: Update from GNU gettext 0.14.2.
60130
60131 2005-02-24  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/gettext.h: Update from GNU gettext 0.14.2.
60134
60135 2005-02-23  Simon Josefsson  <jas@extundo.com>
60136
60137         * m4/iconvme.m4: New file.
60138
60139 2005-02-23  Jim Meyering  <jim@meyering.net>
60140
60141         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60142         change.
60143         Thanks to Bruno Haible for catching it.
60144
60145 2005-02-22  Simon Josefsson  <jas@extundo.com>
60146
60147         * modules/iconvme: New file.
60148
60149         * MODULES.html.sh: Add iconvme.
60150
60151 2005-02-22  Simon Josefsson  <jas@extundo.com>
60152
60153         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60154
60155 2005-02-22  Simon Josefsson  <jas@extundo.com>
60156
60157         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60158
60159 2005-02-22  Jim Meyering  <jim@meyering.net>
60160
60161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60162         s/ifndef/ifdef/.
60163
60164 2005-02-20  Neil Conway  <neilc@samurai.com>
60165
60166         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60167         returned by OSX/Darwin if the specified buffer is not large
60168         enough for the hostname.
60169
60170 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60171
60172         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60173         pass it to _help, otherwise the latter coredumps trying to
60174         dereference state.root_argp.
60175
60176 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * modules/chdir-long (Depends-on): Add memrchr.
60179         * modules/memrchr (Files): Add lib/memrchr.h.
60180         (Include): "memrchr.h".
60181
60182 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60183
60184         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60185
60186 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60187
60188         * lib/memrchr.h: New file.
60189         * lib/chdir-long.c: Include it.
60190         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60191         Don't bother including stddef.h.
60192
60193 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60196         inclusion.
60197         Include <sys/types.h>, for dev_t.
60198         (ME_DUMMY, ME_REMOTE): Move from here....
60199         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60200         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60201         Dmitry V. Levin.
60202         Include mountlist.h first, to test the interface.
60203
60204 2005-01-29  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/progname.c (program_name): Initialize.
60207         Needed when linking statically on MacOS X.
60208
60209 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60210
60211         Sync from coreutils.
60212         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60213         (Depends-on): Add c-strtod.
60214         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60215
60216 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60217
60218         Sync from coreutils.
60219         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60220
60221         Remove files that are specific to coreutils.
60222         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60223
60224 2005-01-28  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/javacomp: New file.
60227         * MODULES.html.sh (Java): Add javacomp.
60228
60229 2005-01-28  Bruno Haible  <bruno@clisp.org>
60230
60231         * m4/javacomp.m4: New file, from GNU gettext.
60232
60233 2005-01-28  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/javacomp.sh.in: New file, from GNU gettext.
60236         * lib/javacomp.h: New file, from GNU gettext.
60237         * lib/javacomp.c: New file, from GNU gettext.
60238
60239 2005-01-26  Simon Josefsson  <jas@extundo.com>
60240
60241         * lib/gai_strerror.c: Use GPL in header.
60242
60243 2005-01-26  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/javaexec: New file.
60246         * MODULES.html.sh (Java): Add javaexec.
60247
60248 2005-01-26  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/javaexec.m4: New file, from GNU gettext.
60251
60252 2005-01-26  Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/javaexec.sh.in: New file, from GNU gettext.
60255         * lib/javaexec.h: New file, from GNU gettext.
60256         * lib/javaexec.c: New file, from GNU gettext.
60257
60258 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60259
60260         * modules/lchown (Depends-on): Remove lchown.h
60261
60262 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60263
60264         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60265         must be defined if the header file was not found, in order
60266         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60267
60268 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60269
60270         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60271         initializers for struct pentry_state.
60272         (__argp_error): Check return value of __asprintf
60273         (__argp_failure): Translate error message
60274
60275         * lib/argp-parse.c: Removed braces around the expansion of N_()
60276
60277 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60278
60279         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60280         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60281         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60282         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60283         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60284         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60285         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60286         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60287         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60288         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60289         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60290         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60291         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60292         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60293         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60294         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60295         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60296         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60297         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60298         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60299         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60300         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60301         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60302         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60303         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60304         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60305         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60306         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60307         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60308         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60309         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60310         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60311         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60312         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60313         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60314         Use an all-permissive copyright notice, recommended by RMS.
60315
60316 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         * modules/chdir-long (Depends-on): Remove mempcpy.
60319
60320 2005-01-21  Jim Meyering  <jim@meyering.net>
60321
60322         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60323         same value as for Solaris 9.
60324
60325         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60326         component length.  This included changing the parameter to be
60327         of type `char *' rather than `char const *'.
60328         * lib/chdir-long.h (chdir_long): Update prototype.
60329
60330         * lib/openat.c (fdopendir, fstatat): New functions.
60331         * lib/openat.h: Include headers required for use of DIR and struct
60332         stat.
60333         [AT_SYMLINK_NOFOLLOW]: Define.
60334         (fdopendir, fstatat): Add prototypes.
60335
60336 2005-01-21  Bruno Haible  <bruno@clisp.org>
60337
60338         * modules/classpath: New file.
60339         * MODULES.html.sh (Java): Add classpath.
60340
60341 2005-01-21  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/classpath.h: New file, from GNU gettext.
60344         * lib/classpath.c: New file, from GNU gettext.
60345
60346 2005-01-20  Simon Josefsson  <jas@extundo.com>
60347
60348         * modules/version-etc-fsf: New file.
60349
60350 2005-01-20  Simon Josefsson  <jas@extundo.com>
60351
60352         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60353         * lib/version-etc.c: Remove version_etc_copyright.
60354         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60355         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60356
60357 2005-01-20  Simon Josefsson  <jas@extundo.com>
60358
60359         * lib/base64.h (isbase64): Add.
60360
60361         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60362         using a unsigned prototype, don't inline.
60363         (base64_decode): Use it.
60364
60365 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60368         it.
60369
60370 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * lib/save-cwd.c (save_cwd): Remove code to support the case
60373         where fchdir is missing or flaky.
60374
60375 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60378
60379 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60382         AC_LIBSOURCES now does this.
60383         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60384         with new ullong_max module.
60385
60386 2005-01-19  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/sh-quote: New file.
60389         * MODULES.html.sh (Executing programs): Add sh-quote.
60390
60391 2005-01-19  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/sh-quote.h: New file, from GNU gettext.
60394         * lib/sh-quote.c: New file, from GNU gettext.
60395
60396 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         Merge from coreutils.
60399         * m4/ullong_max.m4: New file.
60400         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60401         (gl_MACROS): Assume localeconv exists.
60402
60403 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60404
60405         Merge changes from coreutils, as described below in several
60406         changelogs dated today.
60407
60408         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60409         (O_DIRECTORY): Remove; not needed here, since "." must be
60410         a directory.  All uses removed.
60411         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60412         universal on Suns, and we also need to test for IRIX.
60413         Revamp code to use 'if' rather than '#if'.
60414         Avoid unnecessary comparison of cwd->desc to 0.
60415
60416         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60417         for known valid error numbers rather than observed invalid ones.
60418
60419 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * modules/ullong_max: New file.
60422
60423         * modules/chdir-long, modules/openat: New files.
60424         * modules/save-cwd (Depends-on): Depend on chdir-long.
60425         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60426
60427 2005-01-18  Jim Meyering  <jim@meyering.net>
60428
60429         Merge from coreutils.
60430         * m4/chdir-long.m4, m4/openat.m4: New files.
60431         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60432         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60433         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60434         is sane and DOES follow symlinks.  Besides, testing 20 different
60435         systems found no broken chown implementations.
60436         Prompted by a change in rsync's copy of this macro.
60437         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60438
60439         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60440
60441         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60442         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60443         NULL-means-set-to-current-time semantics.
60444         Remove temporary file immediately, rather than waiting
60445         for configure's at-exit trap code to do it.
60446
60447 2005-01-18  Jim Meyering  <jim@meyering.net>
60448
60449         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60450
60451         * lib/utimens.c (futimens): Account for the fact that futimes
60452         can also fail with errno == ENOSYS or errno == ENOENT.
60453         Patch from Dmitry V. Levin.
60454
60455         Change the name of the robust chdir function from chdir to chdir_long.
60456         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60457         (restore_cwd): Use chdir_long, not chdir.
60458         * lib/chdir-long.c: Renamed from chdir.c.
60459         * lib/chdir-long.h: Renamed from chdir.h.
60460         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60461         Hurd.
60462
60463 2005-01-18  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60466         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60467         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60468         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60469         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60470         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60471         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60472         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60473         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60474         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60475         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60476         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60477         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60478         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60479         Use an all-permissive copyright notice, recommended by RMS.
60480
60481 2005-01-18  Bob Proulx  <bob@proulx.com>
60482
60483         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60484         simplify offsetof() macro construct to avoid compile failure with
60485         native HP-UX 11.0 ANSI C compiler.
60486
60487 2005-01-17  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60490         redundant because stpncpy.m4 takes care of it.
60491
60492 2005-01-17  Bruno Haible  <bruno@clisp.org>
60493
60494         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60495
60496 2005-01-17  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60499         used.
60500
60501 2005-01-17  Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/fwriteerror.h (fwriteerror): Change specification to include
60504         fclose.
60505         * lib/fwriteerror.c: Include <stdbool.h>.
60506         (fwriteerror): At the end, close the file stream. Record whether
60507         stdout was already closed.
60508
60509 2005-01-17  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/execute.c (environ): Declare if needed.
60512         * lib/pipe.c (environ): Likewise.
60513         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60514
60515 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60516
60517         * modules/argp: Depend on vsnprintf
60518
60519 2005-01-10  Jim Meyering  <jim@meyering.net>
60520
60521         * modules/closeout (Depends-on): Add atexit.
60522
60523 2005-01-06  Bruno Haible  <bruno@clisp.org>
60524
60525         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60526
60527 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60530         definitions to be after all include files, to avoid collisions.
60531         Problem reported by Bob Proulx.
60532
60533 2005-01-04  Jim Meyering  <jim@meyering.net>
60534
60535         Changes imported from coreutils.
60536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60537         as the mkstemp template, use a temporary directory and an
60538         8.3-friendly template to avoid trouble on systems like DJGPP.
60539         Reported by Juan M. Guerrero via Stepan Kasal.
60540         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60541         close. Remove the temporary directory right away, rather than waiting
60542         for configure's at-exit trap code to do it.
60543         Suggestion from Stepan Kasal.
60544
60545 2005-01-01  Simon Josefsson  <jas@extundo.com>
60546
60547         * gnulib-tool: Print #include directives when --import'ing.
60548
60549 2004-12-28  Simon Josefsson  <jas@extundo.com>
60550
60551         * tests/test-base64.c: Include required header files.  Remove
60552         unused variables.
60553
60554 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * modules/error (Depends-on): Remove gettext.
60557
60558 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60559
60560         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60561         not needed.  This removes a dependency on the gettext module.
60562         [defined _LIBC]: Do not include <libintl.h>; not needed.
60563
60564 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60567         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60568
60569 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60570
60571         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60572         HAVE_DECL_STRTOLD.
60573
60574 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * modules/getdate (Depends-on): Remove alloca-opt.
60577
60578 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60579
60580         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60581
60582 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         * lib/argp-parse.c: Include <stddef.h>.
60585         (alignof, alignto): New macros.
60586         (parser_init): Don't assume that void * is aligned sufficiently
60587         for struct option.
60588
60589         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60590         need to extend the stack.
60591         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60592         large.
60593
60594 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60595
60596         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60597
60598 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60601         (2004-10-24) change.  Apparently this was a false alarm.
60602
60603         * modules/getdate: Depend on alloca-opt, not alloca.
60604
60605 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60608         Remove now-obsolete comment about AIX.
60609         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60610         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60611         (YYMAXDEPTH): New macro.
60612
60613 2004-12-18  Simon Josefsson  <jas@extundo.com>
60614
60615         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60616
60617 2004-12-18  Bruno Haible  <bruno@clisp.org>
60618
60619         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60620
60621 2004-12-18  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/fatal-signal.c (fatal_signals): Make non-const.
60624         (init_fatal_signals): New function.
60625         (uninstall_handlers, install_handlers): Ignore signals that were set to
60626         SIG_IGN.
60627         (at_fatal_signal): Call init_fatal_signals.
60628         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60629         SIG_IGN.
60630         Reported by Paul Eggert.
60631
60632 2004-12-18  Bruno Haible  <bruno@clisp.org>
60633
60634         * doc/alloca.texi: New file.
60635         * doc/alloca-opt.texi: New file.
60636
60637 2004-12-17  Jim Meyering  <jim@meyering.net>
60638
60639         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60640         Otherwise, install-sh could exit with improper exit status when
60641         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60642
60643 2004-12-16  Simon Josefsson  <jas@extundo.com>
60644
60645         * tests/test-base64.c: Add license.
60646
60647 2004-12-15  Stepan Kasal  <address@hidden>
60648
60649         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60650
60651 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * modules/getcwd (Files): Add m4/d-ino.m4.
60654         Suggested by Mark D. Baushke.
60655
60656 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * lib/getdate.y (textint): New member "negative".
60659         (time_zone_hhmm): New function.
60660         Expect 14 shift-reduce conflicts, not 13.
60661         (o_colon_minutes): New rule.
60662         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60663         (yylex): Set the "negative" member of signed numbers.
60664
60665 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60666
60667         * doc/getdate.texi (Time of day items, Time zone items):
60668         Describe new formats +00:00, UTC+00:00.
60669
60670 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60671
60672         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60673         spurious "-l"s.  Problem reported by Stepan Kasal.
60674
60675 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60678         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60679
60680 2004-12-04  Simon Josefsson  <jas@extundo.com>
60681
60682         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60683         Vandoorselaere <yoann@prelude-ids.org>.
60684
60685 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60686
60687         Changes imported from coreutils.
60688         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60689         exist.
60690         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60691
60692 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         Changes imported from coreutils.
60695         * lib/hard-locale.c: Assume <locale.h> exists.
60696         Include "strdup.h".
60697         (GLIBC_VERSION): New macro.
60698         (hard_locale): Assume setlocale exists.
60699         Rewrite to avoid #ifdef.
60700         Use strdup rather than malloc + strcpy.
60701         * lib/human.c: Assume <locale.h> exists.
60702         (human_readable): Assume localeconv exists.
60703
60704 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60705
60706         * modules/hard-locale (Depends-on): Add strdup.
60707
60708 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60709
60710         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60711         convert T2, not T.  (Imported from libc.)
60712
60713 2004-11-30  Simon Josefsson  <jas@extundo.com>
60714
60715         * modules/restrict (License): Change to LGPL.
60716
60717 2004-11-30  Simon Josefsson  <jas@extundo.com>
60718
60719         * m4/restrict.m4: Add copyright and copying conditions.
60720
60721 2004-11-30  Simon Josefsson  <jas@extundo.com>
60722
60723         * m4/base64.m4: New file.
60724
60725 2004-11-30  Simon Josefsson  <jas@extundo.com>
60726
60727         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60728         base64.
60729
60730         * tests/test-base64.c: New file.
60731
60732         * modules/base64: New file.
60733
60734 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60735
60736         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60737         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60738
60739         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60740
60741 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60744         (__getcwd.c): Don't restore errno; glibc doesn't.
60745         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60746         first, falling back to our code only if its results look suspicious.
60747         Ensure that the resulting buffer is only as large as necessary.
60748
60749         * lib/readutmp.c: Include readutmp.h first.
60750         Include <errno.h>, since readutmp.h no longer does that.
60751         * lib/readutmp.h: Don't include <errno.h>,
60752         <sys/param.h>, <time.h>; not needed to establish interface.
60753         (errno): Remove decl.
60754         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60755         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60756         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60757
60758 2004-11-28  Simon Josefsson  <jas@extundo.com>
60759
60760         * lib/base64.h, base64.c: New file.
60761
60762 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60765
60766 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60769         (Depends-on): Remove pathmax, same.  Add mempcpy.
60770         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60771         (Makefile.am): Append getcwd.h to lib_SOURCES.
60772         (Include): Add getcwd.h.
60773         (Maintainer): Change from Jim Meyering to "all, glibc",
60774         since getdate now uses intended-for-glibc code.
60775         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60776         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60777
60778 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60781         HP's ANSI C compiler.
60782         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60783         Declaring int functions causes warnings on some modern systems and
60784         shouldn't be needed to compile on ancient ones.
60785         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60786         defined.
60787
60788         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60789         with the following changes.
60790         (__set_errno): Parenthesize properly.
60791         Include <stdbool.h>.
60792         (MIN, MAX, MATCHING_INO): New macros.
60793         (__getcwd): Define with prototype, not K&R form.
60794         Use heuristics to allocate default buffer on stack if possible.
60795         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60796         behavior, and to avoid the PATH_MAX limit when computing
60797         ../../../../...
60798         Use MATCHING_INO to compare inode number to file.
60799         Check for arithmetic overflow in size calculations.
60800         Fix bug in reallocation of dot array that caused getcwd to fail
60801         on directories nested deeper than 75.
60802         Be more careful about saving errno on error.
60803         Do not use realloc; use only free+malloc, as this is a bit
60804         more flexible and avoids a needless copy operation.
60805         Do not inspect st_dev and st_ino for symbolic links; POSIX
60806         doesn't specify the latter.
60807         Check for closedir errors.
60808         Avoid needless casts.
60809         Use "#ifdef weak_alias" around weak_alias, to be like other
60810         glibc code.
60811         The following changes to getcwd.c have effect only when used in
60812         gnulib; they have no effect inside glibc proper.
60813         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60814         as alloca isn't used.
60815         (alloca, __alloca): Likewise.
60816         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60817         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60818         unconditionally, as gnulib assumes C89 or better.
60819         Do not include <sys/param.h>.
60820         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60821         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60822         better.
60823         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60824         Include <dirent.h> in a way that is compatible with modern Autoconf.
60825         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60826         New macros, if not already defined.
60827         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60828         Use "_LIBC", not "defined _LIBC", for consistency.
60829         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60830         a mempcpy module.
60831         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60832         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60833         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60834         credit only to Jim Meyering and adjust the copyright dates.
60835         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60836         <stdlib.h>, <unistd.h>, "pathmax.h".
60837         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60838         (INITIAL_BUFFER_SIZE): Remove.
60839         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60840
60841 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60844         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60845         Use the _ONCE methods, for efficiency.
60846         Check for fcntl.h.  In test program, include <errno.h>
60847         and <fcntl.h> if available.  Remove old K&R cruft from
60848         test program.  Check for common errors in GNU/Linux,
60849         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60850         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60851         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60852         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60853         name accordingly.
60854         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60855         accommodate new getcwd.c.
60856         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60857         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60858         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60859         that's all we need now.
60860
60861 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60862
60863         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60864         argp-parse.c depends on getopt internals, that means we should
60865         always use our getopt, to be on the safe side.
60866         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60867         order not to spoil the result of an eventual previous invocation
60868         of gl_GETOPT_SUBSTITUTE.
60869
60870 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60871
60872         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60873         redefinition warnings. To avoid them, include the defines
60874         in `#if !defined __need_getopt ... #endif'. The only place
60875         where __getopt_argv_const is used is in definitions
60876         of getopt_long and getopt_long_only below, which are as well
60877         protected by `#ifndef __need_getopt'.
60878         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60879         __need_getopt after including <stdio.h> and <unistd.h> These
60880         headers might have defined it.
60881
60882 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60885
60886 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60889         (futimens): New function, which uses futimes if available.
60890         (futimens, utimens): Support timespec==NULL, with same semantics
60891         as utime and utimens.
60892         * lib/utimens.h (futimens): New decl.
60893
60894 2004-11-23  Jim Meyering  <jim@meyering.net>
60895
60896         * lib/getopt_.h: Remove trailing blanks.
60897
60898 2004-11-23  Jim Meyering  <jim@meyering.net>
60899
60900         * lib/__fpending.c: Add comment.
60901
60902 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * modules/canonicalize (Depends-on): Add xreadlink.
60905         Problem reported by James Youngman.
60906
60907 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60910         New macros.
60911         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60912         optopt): Use them instead of invoking ## directly; otherwise, the
60913         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60914
60915 2004-11-19  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/strtok_r.c: Move comments from here...
60918         * lib/strtok_r.h: ... to here.
60919
60920 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60923         implementations that mishandle size_t overflow.
60924
60925 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60928         might fail.  Problem reported by Yoann Vandoorselaere.
60929         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60930         implementations that mishandle size_t overflow.
60931
60932 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * modules/canon-host (Depends-on): Add strdup.
60935
60936 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60939
60940 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * lib/canon-host.c: Include "strdup.h".
60943         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60944         Use strdup instead of malloc/strcpy to duplicate strings.
60945
60946         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60947         (human_space_before_unit): New constant.
60948         * lib/human.c (human_readable): Support it.
60949
60950         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60951         (xgetcwd): Set errno correctly when failing.
60952         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60953         the failure is actually due to a PATH_MAX problem.
60954
60955         Further getopt changes to make it more likely that glibc will
60956         buy the changes back.
60957         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60958         (getopt): Use it, so to preserve glibc semantic
60959         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60960         when compiling for libc.
60961         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60962         (getopt_long, getopt_long_only): Use it.
60963
60964         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60965         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60966         (getopt): Argv is now char * const *, as per standard.
60967         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60968         not char *__getopt_argv_const *.
60969         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60970         _getopt_long_only_r): Likewise.
60971         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60972         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60973         _getopt_long_r, _getopt_long_only_r): Likewise.
60974         * lib/getopt_.h (__getopt_argv_const): Remove.
60975         (getopt): Argv is now char * const *, as per standard.
60976
60977         * lib/getdate.y (tORDINAL): New token.
60978         (day, relunit): Allow it for relative times.
60979         (relative_time_table): Use tORDINAL for ordinals.
60980
60981 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60984         Document that "second" isn't allowed as an ordinal number.
60985
60986 2004-11-16  Jim Meyering  <jim@meyering.net>
60987
60988         * modules/closeout (Depends-on): Add fpending.
60989
60990 2004-11-15  Jim Meyering  <jim@meyering.net>
60991
60992         * lib/closeout.c: Include "__fpending.h" once again.
60993         Include <stdbool.h>.
60994         (close_stdout): Don't fail just because stdout was closed initially,
60995         since some programs don't write to stdout in the normal course of
60996         operation (other than --version and --help), and we don't want this
60997         function to make e.g. `touch file >&-' fail.
60998         But do fail if it was closed and someone has tried to write to it.
60999         E.g., `printf foo >&-' must fail.
61000
61001 2004-11-13  Jim Meyering  <jim@meyering.net>
61002
61003         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61004
61005 2004-11-12  Simon Josefsson  <jas@extundo.com>
61006
61007         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61008         small doc fix is still pending.
61009
61010 2004-11-11  Simon Josefsson  <jas@extundo.com>
61011
61012         * modules/strtok_r: New file.
61013
61014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61015         strtok_r.
61016
61017 2004-11-11  Simon Josefsson  <jas@extundo.com>
61018
61019         * m4/strtok_r.m4: New file.
61020
61021         * m4/getopt.m4: Replace opterr.
61022
61023 2004-11-11  Simon Josefsson  <jas@extundo.com>
61024
61025         * lib/strtok_r.h, strtok_r.c: New file.
61026
61027 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61028
61029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61030         of replacing opterr, getopt, etc.  This should handle the
61031         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61032
61033 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61034
61035         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61036         we can stop lying to compilers about the constness of argv when we
61037         are compiled outside glibc.
61038         (getopt, getopt_long, getopt_long_only): Use it.
61039         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61040         _getopt_internal, getopt): Likewise.
61041         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61042         _getopt_long_only_r): Likewise.
61043         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61044         _getopt_long_r, _getopt_long_only_r): Likewise.
61045
61046         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61047         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61048         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61049         the other external symbols.
61050         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61051         declaration, since the above renaming now works around collisions.
61052
61053 2004-11-11  Jim Meyering  <jim@meyering.net>
61054
61055         * lib/linebreak.c: Remove trailing blanks.
61056         * lib/alloca_.h: Likewise.
61057         * lib/acosl.c: Likewise.
61058         * lib/euidaccess.c: Likewise.
61059         * lib/allocsa.h: Likewise.
61060
61061 2004-11-10  Simon Josefsson  <jas@extundo.com>
61062
61063         * m4/getaddrinfo.m4: New file.
61064
61065 2004-11-10  Simon Josefsson  <jas@extundo.com>
61066
61067         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61068
61069 2004-11-10  Simon Josefsson  <jas@extundo.com>
61070
61071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61072         getaddrinfo.
61073
61074         * modules/getaddrinfo: New file.
61075
61076 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61079
61080 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * lib/mktime.c (SHR): New macro, which is a portable
61083         substitute for >> that should work even on Crays.
61084         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61085         Problem reported by Mark D. Baushke in
61086         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61087         * lib/getdate.y (SHR): Likewise.
61088         (tm_diff): Use it.
61089         * lib/strftime.c (SHR): Likewise.
61090         (tm_diff): Use it.
61091         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61092         quote_these_too, so that right shifts are well defined.  All uses
61093         changed.
61094
61095 2004-11-10  Jim Meyering  <jim@meyering.net>
61096
61097         Ensure that no close failure goes unreported.
61098         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61099         return early when it seems there's nothing to flush.
61100         Don't include __fpending.h.
61101
61102 2004-11-10  Jim Meyering  <jim@meyering.net>
61103
61104         * modules/closeout (Depends-on): Remove fpending.
61105
61106 2004-11-10  Jim Meyering  <jim@meyering.net>
61107
61108         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61109
61110 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61113         gl_FUNC_STRFTIME.
61114         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61115         and AC_REQUIRE when possible, to avoid duplicate checks.
61116         Check for <wchar.h>.
61117
61118 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61121
61122 2004-11-09  Bruno Haible  <bruno@clisp.org>
61123
61124         * m4/sockpfaf.m4: New file.
61125
61126 2004-11-05  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61129         Reported by Mark D. Baushke <mdb@cvshome.org>.
61130
61131 2004-11-04  Bruno Haible  <bruno@clisp.org>
61132
61133         2004-09-11  Bruno Haible  <bruno@clisp.org>
61134                 * allocsa.valgrind: New file.
61135         2004-02-06  Bruno Haible  <bruno@clisp.org>
61136                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61137                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61138                 Reported by Christopher Seip <chris.seip@hp.com>.
61139
61140 2004-11-04  Bruno Haible  <bruno@clisp.org>
61141
61142         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61143         (Makefile.am): Distribute it.
61144
61145 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61146
61147         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61148         with errno == ERANGE if the buffer is too small.
61149         Problem reported by Mark D. Baushke.
61150
61151 2004-11-03  Albert Chin  <china@thewrittenword.com>
61152             Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61155         equivalent, substitute $ac_type for equivalent type rather than
61156         blindly using uint32_t *always* which won't work if uint32_t is not
61157         available.  Define _UINT32_T to work around typedef of uint32_t if
61158         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61159         2.5.1.
61160
61161 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         * m4/jm-macros.m4: Sync from coreutils.
61164         (gl_MACROS): Check for mbrlen, for pathchk.
61165         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61166
61167 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * lib/xreadlink.c (MAXSIZE): New macro.
61170         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61171         size does not exceed MAXSIZE.  Avoid cast.
61172         As suggested by Mark D. Baushke in
61173         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61174         if readlink fails with buffer size just under MAXSIZE, try again
61175         with MAXSIZE.
61176
61177 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61180
61181 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61182         and  Paul Eggert  <eggert@cs.ucla.edu>
61183
61184         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61185         (get_date): Overparenthesize to avoid GCC warning.
61186
61187 2004-11-02  Bruno Haible  <bruno@clisp.org>
61188
61189         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61190         returns void.
61191
61192 2004-11-02  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61195         function returns void.
61196
61197 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61198
61199         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61200         fflush_unlocked, flockfile, funlockfile, funlockfile,
61201         fputs_unlocked, putc_unlocked.
61202
61203 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61204
61205         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61206         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61207         already declared.
61208
61209 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61210
61211         * modules/getdate (Files): Add doc/getdate.texi.
61212         (Depends-on): Add setenv, xalloc.
61213
61214 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61215
61216         * lib/getdate.y: Add support for TZ="foo" within a date string.
61217         Fix some bugs near time_t boundaries.  Reject dates with
61218         out-of-range components, e.g., "Sept 31".
61219         Include <stdlib.h>, "setenv.h", "xalloc.h".
61220         (ISDIGIT_LOCALE): Remove; unused.
61221         Note that the TZ and time functions used here are not reentrant.
61222         (mktime_ok, get_tz): New functions.
61223         (TZBUFSIZE): New constant.
61224         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61225         This requires that we sometimes generate our own TZ="XXX..." setting.
61226
61227 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         * doc/getdate.texi: New file, from coreutils with modifications for
61230         the new TZ parsing.
61231
61232 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61233
61234         * lib/mktime.c (not_equal_tm): Remove redundant check.
61235
61236 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61237
61238         * modules/regex (lib_SOURCES): Add regex.c.
61239         Reported by James Youngman in
61240         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61241
61242 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61243
61244         * lib/getdate.y: Use Bison 1.875 features, and some minor
61245         code cleanups.  This change does not affect semantics.
61246         Don't include <stdlib.h>; no longer needed.
61247         Don't include unlocked-io.h; only the "#if TEST" code uses
61248         stdio, and performance isn't crucial there.
61249         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61250         Bison 1.875 features as described below.
61251         All uses of "PC." replaced by "pc->".
61252         (YYSTYPE): Add a forward declaration.
61253         (yylex, yyerror): Use full prototypes in forward decls.
61254         Use "%pure-parser" rather than obsolescent "%pure_parser".
61255         Use %parse-param and %lex-param instead of obsolescent
61256         YYPARSE_PARAM and YYLEX_PARAM.
61257         (meridian_table, month_and_day_table, time_units_table,
61258         relative_time_table, time_zone_table, military_table,
61259         lookup_zone, lookup_word, get_date):
61260         Use NULL instead of 0 where appropriate.
61261         (to_hour): Avoid abort (), to avoid a dependency on
61262         stdlib.h.
61263         (yyerror, yylex): Now accepts parser_control * arg.
61264         (main) [TEST]: Use '\0' rather than 0 for char.
61265
61266 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61269
61270 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61273         It's now the caller's responsibility to handle the case where
61274         !HAVE_GETPAGESIZE && !defined getpagesize.
61275
61276         * lib/mktime.c (leapyear): Arg is long int, not int.
61277
61278 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61281
61282 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61285         missing.  Problem reported by James Youngman.
61286
61287 2004-10-16  Simon Josefsson  <jas@extundo.com>
61288
61289         * gnulib-tool: Fix comments.  Fix parse problem.
61290         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61291
61292 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61293
61294         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61295         implementation of getopt_long.  Problem reported by Alexander Taler in:
61296         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61297
61298 2004-10-15  Bruno Haible  <bruno@clisp.org>
61299
61300         * gnulib-tool: Untabify. Initialize supplied_libname.
61301         (func_usage): More homogenous output.
61302         (func_modules_transitive_closure, func_modules_to_filelist,
61303         func_emit_lib_Makefile_am): New functions.
61304         (func_import): New function, extracted from big case statement. Use
61305         func_get_license, func_modules_transitive_closure,
61306         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61307         opt_lgpl. Don't use test -a, as it's not portable.
61308         (func_create_testdir): Use func_modules_transitive_closure,
61309         func_modules_to_filelist, func_emit_lib_Makefile_am.
61310
61311 2004-10-15  Bruno Haible  <bruno@clisp.org>
61312
61313         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61314
61315 2004-10-15  Bruno Haible  <bruno@clisp.org>
61316
61317         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61318         the portions belonging to each module.
61319         Suggested by Derek Robert Price <derek@ximbiot.com>.
61320
61321 2004-10-12  Simon Josefsson  <jas@extundo.com>
61322
61323         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61324         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61325         to real functions.
61326
61327 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61328
61329         * modules/vsnprintf: New file.
61330
61331 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61332
61333         * m4/vsnprintf.m4: New file.
61334
61335 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61336
61337         * lib/vsnprintf.h: New file.
61338         * lib/vsnprintf.c: New file.
61339
61340 2004-10-11  Bruno Haible  <bruno@clisp.org>
61341
61342         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61343         vsnprintf.
61344
61345 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61348
61349 2004-10-07  Bruno Haible  <bruno@clisp.org>
61350
61351         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61352         fits into the provided buffer.
61353
61354 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * lib/diacrit.c, diacrit.h: Add GPL notice.
61357
61358         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61359         notice.
61360         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61361         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61362         This avoids a potential constant-folding bug.
61363
61364 2004-10-05  Bruno Haible  <bruno@clisp.org>
61365
61366         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61367         for the declaration of strsep.
61368
61369 2004-10-05  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61372
61373 2004-10-04  Simon Josefsson  <jas@extundo.com>
61374
61375         * modules/memmem: New file.
61376         * tests/test-memmem.c: New file.
61377         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61378
61379 2004-10-04  Simon Josefsson  <jas@extundo.com>
61380
61381         * m4/memmem.m4: New file.
61382
61383 2004-10-04  Simon Josefsson  <jas@extundo.com>
61384
61385         * lib/memmem.h: New file.
61386         * lib/memmem.c: New file, taken from glibc.
61387
61388 2004-10-04  Simon Josefsson  <jas@extundo.com>
61389
61390         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61391         '#ifdef USE_UNLOCKED_IO'.
61392
61393 2004-10-04  Simon Josefsson  <jas@extundo.com>
61394
61395         * config/srclist.txt: Add memmem from glibc.
61396
61397 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61400
61401         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61402         modules/exclude, modules/getdate, modules/getline,
61403         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61404         modules/getusershell, modules/linebuffer, modules/md5,
61405         modules/mountlist, modules/posixtm, modules/readtokens,
61406         modules/readutmp, modules/regex, modules/sha1,
61407         modules/version-etc, modules/yesno:
61408         Remove dependency on unlocked-io.
61409
61410 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61413
61414         * m4/unlocked-io.m4: Add copyright notice.
61415         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61416
61417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61420         * lib/xmalloc.c (xmemdup): Likewise.
61421         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61422         XFREE): Remove these long-obsolescent macros.
61423         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61424         * lib/xstrdup.c: Remove.
61425
61426         * lib/regex.c (re_comp): Cast gettext return value to char *,
61427         Problem reported by Martin Neitzel via Mark D. Baushke.
61428
61429 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61432         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61433         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61434         regex.c, sha1.c, version-etc.c, yesno.c:
61435         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61436         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61437         the includer's responsibility.
61438
61439         Sync from coreutils.
61440
61441         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61442         points to the start of a string, as the C Standard says the
61443         resulting behavior is undefined.
61444
61445         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61446         simple -> simple_backups, numbered_existing ->
61447         numbered_existing_backups, numbered -> numbered_backups
61448         to avoid shadowing problems.  All uses changed.
61449         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61450         * lib/backupfile.c (check_extension, numbered_backup):
61451         Rename locals to avoid shadowing 'basename'.
61452         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61453         once.
61454
61455         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61456         * lib/.cvsignore: Add getopt.h.
61457
61458 2004-10-04  Bruno Haible  <bruno@clisp.org>
61459
61460         * modules/README: New file.
61461         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61462         not a module.
61463
61464 2004-10-02  Jim Meyering  <jim@meyering.net>
61465
61466         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61467
61468 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61469
61470         * modules/strsep: New file.
61471
61472 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61473
61474         * m4/strsep.m4: New file.
61475
61476 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61477
61478         * lib/strsep.h: New file.
61479         * lib/strsep.c: New file.
61480
61481 2004-10-01  Simon Josefsson  <jas@extundo.com>
61482
61483         * lib/snprintf.c (snprintf): Handle size==0.
61484
61485 2004-10-01  Simon Josefsson  <jas@extundo.com>
61486             Bruno Haible  <bruno@clisp.org>
61487
61488         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61489         (snprintf): Declare 'args'.
61490
61491 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         * lib/snprintf.c: Remove comments as to why each header is needed.
61494
61495 2004-10-01  Bruno Haible  <bruno@clisp.org>
61496
61497         * MODULES.html.sh: Add strsep.
61498
61499 2004-09-30  Simon Josefsson  <jas@extundo.com>
61500
61501         * modules/snprintf: New file.
61502
61503 2004-09-30  Simon Josefsson  <jas@extundo.com>
61504
61505         * m4/snprintf.m4: New file.
61506
61507 2004-09-30  Simon Josefsson  <jas@extundo.com>
61508
61509         * lib/snprintf.h, lib/snprintf.c: New files.
61510
61511 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61512
61513         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61514         (hol_entry_help): Never translate an empty string.
61515         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61516         * lib/argp.h (OPTION_NO_TRANS): New option.
61517
61518 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * modules/argp (Maintainer): Replace Simon Josefsson
61521         by Sergey Poznyakoff.
61522
61523 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61526         changes merged back into glibc.
61527
61528 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61531
61532 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61533
61534         * lib/xvasprintf.c: Include xalloc.h.
61535         (xvasprintf): Use xalloc_die, not xmalloc_die.
61536
61537 2004-09-29  Bruno Haible  <bruno@clisp.org>
61538
61539         * modules/alloca-opt: New file, derived from modules/alloca.
61540         * modules/allocsa: Depend on alloca-opt instead of alloca.
61541         * modules/setenv: Likewise.
61542         * modules/vasnprintf: Likewise.
61543         * MODULES.html.sh: Add alloca-opt.
61544
61545 2004-09-28  Simon Josefsson  <jas@extundo.com>
61546
61547         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61548         LGPL, and to replace license template from GPL to LGPL.
61549
61550 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         * modules/dummy: Change license to LGPL.
61553
61554 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61555
61556         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61557
61558 2004-09-24  Simon Josefsson  <jas@extundo.com>
61559
61560         * modules/minmax (License): Change from GPL to LGPL.
61561
61562 2004-09-23  Simon Josefsson  <jas@extundo.com>
61563
61564         * gnulib-tool (--import): Typo.
61565
61566 2004-09-23  Simon Josefsson  <jas@extundo.com>
61567
61568         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61569
61570 2004-09-22  Bruno Haible  <bruno@clisp.org>
61571
61572         * modules/*: Add 'License' field.
61573         * gnulib-tool: Accept --extract-license option.
61574         (func_get_license): New function.
61575
61576 2004-09-21  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61579         Reported by Simon Josefsson.
61580
61581 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61582
61583         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61584         gl_AC_TYPE_LONG_LONG.
61585
61586 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61589
61590 2004-09-18  Simon Josefsson  <jas@extundo.com>
61591         and  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61594         calls with autoreconf.  Define GL_LIB.
61595
61596 2004-09-14  Karl Berry  <karl@gnu.org>
61597
61598         * config/srclist.txt: unsync setenv.c, sigh.
61599
61600 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61603         Problem reported by Bruno Haible in:
61604         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61605
61606 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * config/srclist.txt: Comment out argp-pvh.c.
61609
61610 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61613         in case some system header has #define'd it.  Problem reported by
61614         Soeren D. Schulze in
61615         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61616
61617 2004-09-09  Karl Berry  <karl@gnu.org>
61618
61619         * regex.[ch]: delete from the root.  These were supposed to be
61620                 synced with emacs cvs, but this has not happened for about
61621                 a year, and anyway nothing else uses emacs regex.[ch].
61622                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61623                 lib/regex[.ch] is untouched.
61624
61625 2004-09-09  Bruno Haible  <bruno@clisp.org>
61626
61627         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61628
61629 2004-09-09  Bruno Haible  <bruno@clisp.org>
61630
61631         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61632         modifications.
61633         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61634
61635 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61636
61637         * modules/xvasprintf: New file.
61638         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61639
61640 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61641
61642         * lib/xvasprintf.h: New file.
61643         * lib/xvasprintf.c: New file.
61644         * lib/xasprintf.c: New file.
61645
61646 2004-09-08  Bruno Haible  <bruno@clisp.org>
61647
61648         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61649
61650 2004-09-08  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61653         length is > INT_MAX.
61654         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61655         more.
61656
61657 2004-09-08  Bruno Haible  <bruno@clisp.org>
61658
61659         * lib/stdint_.h: New file, taken from GNU clisp.
61660
61661 2004-09-08  Bruno Haible  <bruno@clisp.org>
61662             Oskar Liljeblad  <oskar@osk.mine.nu>
61663
61664         * modules/stdint: New file.
61665         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61666
61667 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         Import from coreutils.
61670         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61671         strings on unbounded length.  alloca's performance benefits aren't
61672         that important here.
61673         (V_STRDUP): Remove.
61674         (parse_with_separator): New function, with most of the internals
61675         of the old parse_user_spec.  Allow user to omit both user and group,
61676         for compatibility with FreeBSD.
61677         Clone only the user name, not the entire spec.
61678         Do not set *uid, *gid unless entirely successful.
61679         Avoid memory leak in some failing cases.
61680         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61681         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61682         (parse_user_spec): Rewrite to use parse_with_separator.
61683
61684 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         * modules/userspec: Don't depend on alloca.
61687
61688 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61691
61692 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61695         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61696         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61697
61698 2004-08-16  Simon Josefsson  <jas@extundo.com>
61699
61700         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61701         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61702         Add --dry-run for --import.
61703         Let user provided command line parameters override configure.ac
61704         settings.
61705
61706 2004-08-12  Simon Josefsson  <jas@extundo.com>
61707
61708         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61709         as discussed with Paul Eggert in threads rooted at
61710         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61711         and
61712         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61713         Before, the test was empty, and relied on ELIDE_CODE in source
61714         code.)
61715         (gl_PREREQ_GETOPT): New macro.
61716         (gl_GETOPT): Use them.
61717
61718 2004-08-12  Simon Josefsson  <jas@extundo.com>
61719
61720         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61721         * lib/getopt_.h: Renamed from getopt.h.
61722
61723 2004-08-12  Simon Josefsson  <jas@extundo.com>
61724
61725         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61726         Change default library name from libfoo to libgnu.
61727         Now, if you have a configure.ac that says:
61728                 gl_SOURCE_BASE(gl)
61729                 gl_M4_BASE(gl/m4)
61730                 gl_MODULES(error getopt etcetera)
61731                 gl_INIT
61732         you can import all you need by running:
61733                 ../gnulib/gnulib-tool --import
61734
61735         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61736         (Makefile.am): Rewrite, use logic from argz.
61737         (Include): Use <getopt.h> instead of "getopt.h".
61738
61739 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * modules/argp (Files): Add m4/unlocked-io.m4.
61742         (Depends-on): Add extensions.
61743
61744 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61747         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61748         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61749         Check for program_invocation_name, program_invocation_short_name,
61750         flockfile, funlockfile, features.h, _getopt_long_only_r.
61751
61752 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61755         its complicated substitute.
61756         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61757         and program_invocation_name.
61758         (__argp_basename) [!_LIBC]: Remove; the only use was
61759         replaced by its body.
61760         (__argp_short_program_name): Change condition from
61761         !defined __argp_short_program_name to
61762         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61763         to match argp-namefrob.h.
61764         (__argp_failure): Don't assume strerror_r returns char *.
61765         * lib/argp-parse.c (N_): Define unconditionally.
61766         (argp_default_options): Fill out initializers with 0 to avoid
61767         gcc warnings.
61768
61769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61772         getopt1.c.
61773
61774 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         Merge from coreutils.
61777
61778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61779
61780         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61781         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61782
61783 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         Merge from coreutils.
61786
61787         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61788         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61789         for Reliant Unix 5.43.
61790
61791         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61792         (union fooround): Use uintmax_t, not long int.
61793         The rest is a merge from libc:
61794         [defined _LIBC]: Include <shlib-compat.h>.
61795         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61796
61797         * lib/settime.c (settime): Recode to avoid warning with
61798         Sun Forte C 6U2.
61799
61800         * lib/strverscmp.c: Convert to UTF-8.
61801
61802 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61803
61804         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61805         m4/uintmax_t.m4.
61806
61807 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/xalloc-die: New file.
61810         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61811
61812         * modules/md5 (Files): Add m4/uint32_t.m4.
61813         * modules/sha1: Renamed from modules/sha.
61814         (Files):
61815         Rename lib/sha.h to lib/sha1.h.
61816         Rename lib/sha.c to lib/sha1.c.
61817         Rename m4/sha.m4 to m4/sha1.m4.
61818         (lib_SOURCES): Likewise.
61819         (configure.ac): Rename gl_SHA to gl_SHA1.
61820         (Include): sha.h -> sha1.h.
61821
61822 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61825         * m4/sha1.m4: Renamed from sha.m4.
61826         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61827
61828 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61829
61830         * lib/obstack.h (obstack_empty_p):
61831         Don't assume that chunk->contents is suitably aligned.
61832         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61833         Likewise. Problem reported by Benno in
61834         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61835
61836         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61837         readable.  This could be improved further but it'd take some work.
61838
61839 2004-08-08  Simon Josefsson  <jas@extundo.com>
61840
61841         * modules/xgethostname (Depends-on): Remove exit and error (not
61842         used).
61843
61844         * modules/getpass-gnu: Add getpass.h.
61845         (Depends-on): Add stdbool.
61846         * modules/getpass: Add getpass.h.
61847
61848 2004-08-08  Simon Josefsson  <jas@extundo.com>
61849
61850         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61851         Check getpass declaration.
61852
61853 2004-08-08  Simon Josefsson  <jas@extundo.com>
61854
61855         * lib/xgethostname.c: Don't include error.h (not used).
61856
61857         * lib/getpass.h: Add.
61858         * lib/getpass.c: Include getpass.h first.
61859
61860 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * lib/xalloc-die.c: New file.
61863         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61864         All uses removed.
61865         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61866         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61867         xalloc-die.c.
61868         (_, N_, xalloc_die): Move to xalloc-die.c.
61869         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61870         so that we needn't mess with xalloc_msg_memory_exhausted.
61871
61872         * lib/sha1.h: Renamed from sha.h.
61873         (SHA1_H): Renamed from _SHA_H.
61874         (sha1_ctx): Renamed from sha_ctx.
61875         (sha1_init_ctx): Renamed from sha_init_ctx.
61876         (sha1_process_block): Renamed from sha_process_block.
61877         (sha1_process_bytes): Renamed from sha_process_bytes.
61878         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61879         (sha1_read_ctx): Renamed from sha_read_ctx.
61880         (sha1_stream): Renamed from sha_stream.
61881         (sha1_buffer): Renamed from sha_buffer.
61882         * lib/sha1.c: Likewise; renamed from sha.c.
61883         Do not include <sys/types.h>.
61884         Include <stddef.h> rather than <stdlib.h>.
61885
61886 2004-08-08  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61889         FILESYSTEM_PREFIX_LEN.
61890         * lib/progreloc.c: Likewise.
61891         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61892
61893 2004-08-06  Simon Josefsson  <jas@extundo.com>
61894
61895         * modules/progname (Depends-on): Don't depend on stdbool.
61896
61897 2004-08-06  Simon Josefsson  <jas@extundo.com>
61898
61899         * modules/getsubopt: New file.
61900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61901         getsubopt.
61902
61903 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         More merge from coreutils.
61906
61907         * m4/utimens.m4, m4/utimecmp.m4: New files.
61908         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61909         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61910         prereq.m4, sha.m4: Import changes from coreutils.
61911
61912 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         More merge from coreutils.
61915         * modules/raise, modules/readtokens0, modules/utimens:
61916         * modules/utimecmp, module/xnanosleep: New files.
61917         * modules/strftime: Add lib/strftime.h.
61918         Change include from <time.h> to "strftime.h".
61919         * modules/yesno: Add lib/yesno.h.
61920         * modules/backupfile: Remove lib/addext.c.
61921         * modules/euidaccess: Add stat-macros.h.
61922         * modules/canonicalize, modules/euidaccess,
61923         modules/filemode, modules/lchown, modules/makepath,
61924         modules/rmdir, modules/stat: Likewise.
61925
61926 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         Merge from tar.
61929         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61930         SIZE_MAX is a valid preprocessor constant.
61931         (__argp_basename): Change from "#ifndef _LIBC"
61932         to "#ifndef __argp_short_program_name", so that
61933         we don't compile these functions for tar.
61934
61935         More merges from coreutils.
61936         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61937         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61938         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61939         * lib/addext.c: Remove; no longer needed.
61940         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61941         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61942         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61943         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61944         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61945         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61946         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61947         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61948         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61949         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61950         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61951         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61952         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61953         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61954         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61955         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61956         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61957         Import changes from coreutils.
61958
61959 2004-08-05  Simon Josefsson  <jas@extundo.com>
61960
61961         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61962
61963 2004-08-05  Simon Josefsson  <jas@extundo.com>
61964
61965         * m4/getsubopt.m4: New file.
61966
61967 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         Merge from coreutils.
61970
61971         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61972         * m4/getcwd-path-max.m4: New files.
61973
61974         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61975         FILESYSTEM_PREFIX_LEN ->
61976         FILE_SYSTEM_PREFIX_LEN.
61977         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61978         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61979         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61980         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61981
61982         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61983         prerequisite modules now handle the DOS stuff.
61984         Don't check for unistd.h.
61985
61986 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         Merge from coreutils.
61989
61990         * lib/.gdb-history: Remove; this doesn't belong here.
61991
61992         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61993         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61994         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61995         * lib/getcwd.c: New files.
61996
61997         * lib/dirname.h: Include <stdbool.h>.
61998         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61999         for consistency with POSIX terminology.  All uses changed.
62000         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62001         (strip_trailing_slashes): Use bool for booleans.
62002         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62003
62004         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62005         sometimes returns a positive errno value even when it succeeds.
62006         (print_errno_message) [!LIBC]: Fall back on strerror if
62007         __strerror_r fails.
62008
62009         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62010         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62011         (longest_relative_suffix): New function.
62012         (path_concat): Use it.  Assume first argument is not NULL.
62013         Port to DOS.  Omit redundant separators.
62014         Report an error instead of returning NULL.
62015         Use mempcpy instead of memcpy.
62016         (xpath_concat): Remove: not declared or used.
62017
62018         * lib/same.h: Include <stdbool.h>
62019         (same_name): Return bool, not int.
62020         * lib/same.c (same_name): Likewise.
62021         (errno): Don't declare; we assume C89 or better now.
62022
62023         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62024         if not already defined.
62025
62026         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62027         * lib/dup-safer.c (errno): Likewise.
62028
62029 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62030
62031         Merge from coreutils.
62032         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62033         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62034         * modules/path-concat: Don't depend on strdup.
62035
62036 2004-08-03  Simon Josefsson  <jas@extundo.com>
62037
62038         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62039         * lib/progname.h: Don't include stdbool.h.
62040
62041 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62044         * MODULES.html.sh (func_all_modules): Remove fatal.
62045
62046 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62049
62050 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62053         working.
62054
62055 2004-08-02  Simon Josefsson  <jas@extundo.com>
62056
62057         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62058         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62059         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62060
62061 2004-08-01  Simon Josefsson  <jas@extundo.com>
62062
62063         * lib/xgetdomainname.c: Include stdlib.h, for free().
62064
62065 2004-07-19  Bruno Haible  <bruno@clisp.org>
62066
62067         * MODULES.html.sh (func_all_modules): Add dummy.
62068
62069 2004-07-16  Simon Josefsson  <jas@extundo.com>
62070
62071         * modules/dummy: New file.
62072
62073 2004-07-16  Simon Josefsson  <jas@extundo.com>
62074
62075         * lib/dummy.c: New file.
62076
62077 2004-07-16  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/backupfile.h: Add extern "C" for C++.
62080         * lib/closeout.h: Likewise.
62081         * lib/copy-file.h: Likewise.
62082         * lib/findprog.h: Likewise.
62083         * lib/full-write.h: Likewise.
62084         * lib/pathname.h: Likewise.
62085         * lib/progname.h: Likewise.
62086         * lib/stpcpy.h: Likewise.
62087         * lib/stpncpy.h: Likewise.
62088         * lib/strcase.h: Likewise.
62089         * lib/strstr.h: Likewise.
62090         * lib/xalloc.h: Likewise.
62091
62092         * lib/mbswidth.h: Add extern "C" for C++.
62093         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62094
62095 2004-07-13  Robert Millan  <robertmh@gnu.org>
62096
62097         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62098
62099 2004-07-09  Simon Josefsson  <jas@extundo.com>
62100
62101         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62102         failed without this.)
62103
62104 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         * modules/chown (Files): Add lib/fchown-stub.c, since
62107         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62108
62109 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         * lib/fchown-stub.c: New file.
62112
62113 2004-06-24  Jim Meyering  <jim@meyering.net>
62114
62115         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62116
62117 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * modules/argz: Omit "#include".
62120
62121         * MODULES.html.sh (func_all_modules): Add calloc, to match
62122         2004-06-01 addition of calloc module.
62123
62124 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * m4/argz.m4: New file, which is autoupdated from libtool.
62127
62128 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62131         libtool.
62132
62133 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * config/srclist-update: Don't insist on "USA." before the
62136         close-comment, as libtool omits the period and puts the */ on a
62137         separate line.
62138         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62139         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62140
62141 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62142
62143         * modules/argz: New file.
62144         * MODULES.html.sh (func_all_modules): Add argz.
62145
62146 2004-06-12  Jim Meyering  <jim@meyering.net>
62147         and  Paul Eggert  <eggert@cs.ucla.edu>
62148
62149         * modules/hash (Files): Add lib/xalloc.h.
62150         * modules/pipe (Depends-on): Add wait-process.
62151         * modules/stat (Depends-on): Add xalloc.
62152         * modules/userspec (Files): Add lib/userspec.h.
62153         * modules/xstrto
62154
62155         Upgrade from gettext-0.13.
62156         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62157         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62158         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62159
62160 2004-06-10  Jim Meyering  <jim@meyering.net>
62161
62162         * lib/calloc.c: New file.
62163
62164 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * lib/getdate.y (yylex): Allow space between sign and number.
62167         Problem reported by Dan Jacobson.
62168
62169 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         Merge from coreutils CVS.
62172
62173         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62174         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62175         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62176         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62177         xstrtol.m4: Fix copyright date and/or serial number.
62178
62179         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62180         See if we need an fchown replacement.
62181         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62182         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62183         and use the replacement function if we detect either defect.
62184
62185         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62186         gl_UTIMECMP.
62187
62188 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62189         and  Jim Meyering  <jim@meyering.net>
62190
62191         Merge from coreutils CVS.
62192
62193         * lib/stat-macros.h: New file, with contents from file-type.h
62194         and coreutils' system.h.
62195         * lib/file-type.c: Include "stat-macros.h".
62196         * lib/file-type.h (file_type): Move all macro definitions to new file,
62197         stat-macros.h.
62198
62199         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62200         Wrap old code with this conditional.
62201         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62202         function that does not dereference symlinks.
62203         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62204
62205         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62206         dependency problems.
62207         (xreadlink): Accept new arg SIZE, for efficiency.
62208         All decls and uses changed.
62209         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62210
62211         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62212         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62213
62214         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62215         sysexits.h.
62216
62217 2004-06-01  Jim Meyering  <jim@meyering.net>
62218
62219         * m4/calloc.m4: New file.
62220
62221 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62224         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62225         Also, fix a typo in a diagnostic.
62226
62227 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62230         or AC_FUNC_REALLOC.
62231
62232 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62233
62234         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62235         macros to be defined.
62236         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62237         the allocator returns NULL because the requested size is zero.
62238
62239 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62242         var.  Add comment explaining why libc still defines it.  This
62243         merges the following patch from glibc:
62244         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62245
62246 2004-05-20  Andreas Schwab  <schwab@suse.de>
62247
62248         * m4/free.m4: Replace free if it not known to work, not the other
62249         way round.
62250
62251 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62252
62253         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62254         present in glibc since revision 1.1 of this file.
62255         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62256         obstack_alignment_mask, obstack_alloc, obstack_base,
62257         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62258         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62259         obstack_grow0, obstack_init, obstack_int_grow,
62260         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62261         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62262         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62263         nonexistent functions.
62264
62265 2004-05-18  Karl Berry  <karl@gnu.org>
62266
62267         * config/srclist.txt: break link for vasnprintf.c.
62268
62269 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62270
62271         Port obstack to the AS/400, where pointers are 16 bytes wide and
62272         you cannot cast an integer to a valid pointer.  This patch is
62273         currently waiting to be integrated into glibc; see
62274         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62275
62276         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62277         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62278         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62279         (struct obstack): temp member is now a union of a pointer and
62280         an integer, instead of an integer.  All integer uses changed.
62281         This does not affect the physical layout of struct obstack,
62282         except on hosts (like the AS/400) where the size or alignment of
62283         void * is greater than that of ptrdiff_t.
62284         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62285         __STDC__)]: Store temporary in pointer member of union, not
62286         integer member.
62287         * lib/obstack.c: Include <stddef.h>, for offsetof.
62288         (struct fooalign): Remove; it doesn't need a name.
62289         (union fooround): Change double to long double, and add void *.
62290         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62291         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62292         not a macro.  Hence the values are always int; so remove all
62293         casts-to-int in uses.
62294
62295 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62298         we can get this patch merged into glibc.
62299
62300 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62301             Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * m4/argp: Depend on alloca.
62304
62305 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62306             Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62309         freecoding.
62310
62311 2004-05-17  Bruno Haible  <bruno@clisp.org>
62312
62313         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62314         precision that consists of a '.' followed by an empty digit string.
62315         Patch by Tor Lillqvist <tml@iki.fi>.
62316
62317 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62320         for backward compatibility with older code.  We need our own
62321         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62322         it under some other name, and our alloca.h will define it.
62323
62324 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62325             Derek Price  <derek@ximbiot.com>
62326
62327         * lib/alloca.c: Include <alloca.h>, to get our interface.
62328         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62329         include <alloca.h> first.  Use C89 prototype for alloca; this
62330         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62331         Use #elif for simplicity, since we can assume C89 now.
62332         Don't try to source the system alloca.h since it will not be found
62333         and to prevent recursively including its replacement.
62334         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62335         * lib/regex.c: Likewise.
62336
62337 2004-05-16  Derek Price  <derek@ximbiot.com>
62338             Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         getline cleanup.  This changes the getndelim2 API: both order of
62341         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62342         no delimiter).
62343
62344         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62345         interface does that.
62346         (getline): Always use getdelim, so that we don't have two
62347         copies of this code.
62348         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62349         if available.
62350         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62351         (GETNDELIM2_MAXIMUM): New macro.
62352         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62353         instead of the old practice of delim2==0.  All callers changed.
62354         Return -1 on overflow, instead of returning junk.
62355         Do not set *linesize unless allocation succeeds.
62356         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62357         that we include sys/types.h.
62358         * lib/getnline.h: Likewise.
62359         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62360         (getndelim2): Reorder arguments.
62361         * lib/getnline.c (getnline, getndelim):
62362         Don't discard the NMAX argument.
62363         (getnline): Invoke getndelim, to avoid code duplication.
62364         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62365         of (size_t) -1 by callers of the getnline family.
62366
62367 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62370         Check for gettimeofday.
62371         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62372         Check for settimeofday, stime.
62373
62374 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62375
62376         * lib/nanosleep.c (suspended): Change its type from int to
62377         sig_atomic_t volatile.
62378         (first_call): Make it private to rpl_nanosleep, and have it
62379         be zero initially as that's a bit faster.
62380         (my_usleep): Round up fractional times instead of truncating them,
62381         as this is the usual meaning for 'sleep'.
62382
62383         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62384         doesn't work.
62385         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62386         (ENOSYS): Define if not defined.
62387         (settime): Fall back on stime if it exists and settimeofday fails.
62388         But don't bother with fallbacks if a method fails with errno == EPERM.
62389
62390 2004-05-11  Jim Meyering  <jim@meyering.net>
62391
62392         Prior to this change, the save_cwd caller required read access to the
62393         current directory on most systems (ones with the fchdir function).
62394
62395         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62396         fails, try write-only, and finally, resort to using xgetcwd.
62397
62398 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62399
62400         * lib/obstack.c, obstack.h: Import changes from libc.
62401
62402 2004-04-28  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62405         also implicitly appends .exe to executables.
62406         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62407         accepts Windows pathnames.
62408         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62409         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62410         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62411         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62412         Reported by Derek Robert Price <derek@ximbiot.com>.
62413
62414 2004-04-21  Karl Berry  <karl@gnu.org>
62415
62416         * config/srclist.txt (localcharset.c): break sync.
62417
62418 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62419
62420         * m4/host-os.m4: Add a copyright notice.
62421
62422 2004-04-20  Jim Meyering  <jim@meyering.net>
62423
62424         Change UTILS_ to gl_ in AC_DEFINE'd names.
62425         Change utils_- and jm_-prefixed variables, too.
62426         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62427         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62428         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62429
62430         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62431         Don't emit trailing blanks.
62432         Also rename jm_-prefixed variables to have gl_ prefix.
62433
62434         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62435         Also rename jm_-prefixed variables to have gl_ prefix.
62436
62437         * m4/jm-macros.m4: Reflect the renamings.
62438         * m4/prereq.m4: Likewise.
62439
62440 2004-04-20  Jim Meyering  <jim@meyering.net>
62441
62442         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62443         memory.
62444
62445 2004-04-20  Jim Meyering  <jim@meyering.net>
62446             Bruno Haible  <bruno@clisp.org>
62447
62448         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62449         memory when realloc fails.
62450
62451 2004-04-19  Jim Meyering  <jim@meyering.net>
62452
62453         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62454         now that readutmp.c may call `free (0)'.
62455
62456 2004-04-19  Bruno Haible  <bruno@clisp.org>
62457
62458         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62459         * m4/inttypes_h.m4: Likewise.
62460         * m4/stdint_h.m4: Likewise.
62461         * m4/intmax_t.m4: Likewise.
62462         * m4/uintmax_t.m4: Likewise.
62463
62464 2004-04-18  Jim Meyering  <jim@meyering.net>
62465
62466         * m4/prereq.m4: Don't forbid jm_ prefix.
62467
62468         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62469         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62470         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62471         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62472         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62473         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62474         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62475         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62476         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62477         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62478         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62479         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62480         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62481         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62482         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62483         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62484         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62485         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62486         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62487
62488 2004-04-18  Jim Meyering  <jim@meyering.net>
62489
62490         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62491         failure, don't leak memory and do call END_UTMP_ENT.
62492
62493 2004-04-16  Jim Meyering  <jim@meyering.net>
62494
62495         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62496         coreutils' stat program.
62497         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62498
62499 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62500
62501         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62502         C89.
62503         (CHAR_BIT): Remove, since we assume C89.
62504         Include <stdint.h> if available, as per current Autoconf CVS advice.
62505
62506 2004-03-31  Jim Meyering  <jim@meyering.net>
62507
62508         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62509         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62510         * m4/xalloc.m4: Likewise.
62511
62512 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62513
62514         Merge from coreutils.
62515
62516         * m4/inttostr.m4: New file.
62517         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62518         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62519         Require gl_CLOCK_TIME.
62520         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62521
62522 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62523
62524         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62525         not bool, to be more consistent with Unix conventions.
62526         Suggested by Bruno Haible.
62527
62528         Merge from coreutils.
62529
62530         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62531         * lib/umaxtostr.c: New files.
62532
62533         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62534         the usual <time.h> dance.
62535         (get_date): Change signature to support fractional time stamps.
62536         All callers changed.
62537         * lib/getdate.y: Include "getdate.h" first, as we can now
62538         assume C89 and don't need to worry about 'const'.
62539         Similarly, include "unlocked-io.h" near start, not in middle.
62540         Include <limits.h>.
62541         (textint.value): Use long int rather than int.
62542         (textint.digits): Use size_t rather than int.
62543         (BILLION, LOG10_BILLION): New constants.
62544         (parser_control): New member rel_ns.  Members day_ordinal,
62545         time_zone, month, day, hour, minutes, rel_year, rel_month,
62546         rel_day, rel_hour, rel_minutes, rel_seconds
62547         are now long int, not int.  Member seconds is now struct timespec,
62548         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62549         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62550         not int.
62551         (%union.intval): Now long int, not int.
62552         New member timespec.
62553         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62554         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62555         (spec): Now is a timespec or an item list.
62556         (timespec, items): New nonterminals.
62557         (time, rel, relunit, number, get_date):
62558         Add support for fractional seconds.
62559         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62560         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62561         (to_hour): First arg is now long int, not int.
62562         (to_year): Returns long int, not int.
62563         Don't treat year -70 like 70.
62564         (tm_diff): Returns long int, not int.
62565         (lookup_word): Use bool instead of int when appropriate.
62566         (yylex): Use size_t for count, not int.
62567         Detect overflow when parsing large integer constants.
62568         Add support for fractions.
62569         (get_date): Make pointers 'const' if possible.
62570         Use more-portable code to detect integer overflow.
62571         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62572         Don't use ctime; it's not reliable if the year has >4 digits.
62573
62574         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62575         This is for compatibility with BSD.
62576
62577         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62578         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62579         From coreutils' system.h.
62580
62581         * lib/userspec.c: Don't include "posixver.h".
62582         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62583         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62584         compatible extension.  Simplify code by removing a boolean int
62585         that was always nonzero if a string was nonnull.
62586
62587 2004-03-30  Jim Meyering  <jim@meyering.net>
62588
62589         Merge from coreutils.
62590
62591         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62592         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62593         on some systems one must include <grp.h> before it.
62594         Reported by Christian Krackowizer.
62595
62596 2004-03-30  Jim Meyering  <jim@meyering.net>
62597
62598         Merge from coreutils.
62599
62600         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62601
62602         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62603         an empty input stream.
62604
62605         * lib/readtokens.c: Include <stdbool.h>.
62606         (readtoken): Use `size_t' rather than int/long.
62607         All callers adjusted.
62608         Use `bool' rather than `int' where appropriate.
62609         Use memset rather than an explicit loop.
62610         Use x2nrealloc rather than xrealloc.
62611         Allow the use of `\0' as a delimiter.
62612         (readtokens): Likewise.
62613         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62614
62615 2004-03-30  Jim Meyering  <jim@meyering.net>
62616
62617         * m4/realloc.m4: Remove file, since now it does no more than
62618         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62619         the `configure.ac' section of module/realloc.
62620         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62621
62622 2004-03-30  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62625         nonnull.
62626
62627 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62628
62629         Merge changes to getloadavg.c from coreutils and Emacs.
62630
62631         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62632         Define to an expression, not to the empty string.
62633         Include cloexec.h and xalloc.h.
62634         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62635         Use set_cloexec_flag rather than rolling our own.
62636         * lib/cloexec.c, lib/cloexec.h: New files.
62637
62638 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62639
62640         * m4/cloexec.m4: New file.
62641
62642 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62643
62644         * lib/getopt.h: Sync with libc CVS.
62645
62646 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62647             Bruno Haible  <bruno@clisp.org>
62648
62649         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62650         mbswidth.
62651
62652 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62653             Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/mbswidth.h: Include <wchar.h> only if
62656         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62657         <wchar.h>.
62658         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62659
62660 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62661
62662         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62663         Sync with libc CVS.
62664         * lib/getopt_int.h: New file, also synced from libc.
62665
62666 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62667
62668         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62669         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62670         Bring back getopt.c, getopt.h, getopt1.c.
62671
62672 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62673
62674         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62675         All uses changed.  Check for sa_sigaction member; this fixes
62676         a bug first reported by Jason Andrade in
62677         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62678
62679 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62680
62681         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62682         '#if' expressions.  Unlike the code it replaces, it does not
62683         depend on (defined _SC_PAGESIZE).  However, it does depend on
62684         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62685         first reported by Jason Andrade in
62686         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62687
62688 2004-02-25  Simon Josefsson  <jas@extundo.com>
62689
62690         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62691
62692 2004-02-25  Simon Josefsson  <jas@extundo.com>
62693
62694         * lib/strdup.h: New file.
62695         * lib/strdup.c: Include it.
62696         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62697         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62698
62699 2004-02-23  Karl Berry  <karl@gnu.org>
62700
62701         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62702         (from fencepost.gnu.org:/gd/gnuorg).
62703
62704 2004-02-23  Karl Berry  <karl@gnu.org>
62705
62706         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62707         * config/srclist.txt: add maintain/standards documents.
62708
62709 2004-02-18  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62712         Reported by Derek Robert Price <derek@ximbiot.com>.
62713
62714 2004-02-16  Karl Berry  <karl@gnu.org>
62715
62716         * config/mkinstalldirs, install-sh: update from automake.
62717
62718 2004-02-06  Karl Berry  <karl@gnu.org>
62719
62720         * m4/po.m4: update from gettext 0.14.1.
62721
62722 2004-02-06  Karl Berry  <karl@gnu.org>
62723
62724         * lib/config.charset: update from gettext 0.14.1.
62725
62726 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62727
62728         Add comments and code, prompted by suggestions from Bruno Haible
62729         for sh-quote.
62730         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62731         describing the enum quoting_style values.
62732         * lib/quotearg.c (quotearg_alloc): New function.
62733         (quotearg_buffer_restyled): Treat lone { and } as special.
62734         Treat = as special.  Work around bug with older shells
62735         that "see" a '\' that is really the 2nd byte of a multibyte char.
62736         Quote empty string with shell_quoting_style.
62737
62738 2004-02-03  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/pipe.m4: New file, from GNU gettext.
62741
62742 2004-02-03  Bruno Haible  <bruno@clisp.org>
62743
62744         * lib/pipe.h: New file, from GNU gettext.
62745         * lib/pipe.c: New file, from GNU gettext.
62746
62747 2004-01-27  Bruno Haible  <bruno@clisp.org>
62748
62749         * m4/execute.m4: New file, from GNU gettext.
62750
62751 2004-01-27  Bruno Haible  <bruno@clisp.org>
62752
62753         * lib/execute.h: New file, from GNU gettext.
62754         * lib/execute.c: New file, from GNU gettext.
62755         * lib/w32spawn.h: New file, from GNU gettext.
62756
62757 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62758
62759         Merge from diffutils.
62760
62761         * lib/file-type.c (file_type): Add typed memory objects.
62762         * lib/file-type.h (S_TYPEISTMO): New macro.
62763
62764         * lib/c-stack.h (c_stack_action): Remove argv argument.
62765         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62766         (die): Don't calculate message unless segv_action returns.
62767         (get_stack_location, min_address_from_argv, max_address_from_argv,
62768         volatile stack_base, volatile_stack_size): Remove.
62769         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62770         that every segmentation violation is a stack overflow.  (Ouch!)
62771         See Debian bug 136249 (still outstanding) for more info about why
62772         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62773
62774 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62775
62776         Exit-status fix from coreutils.
62777
62778         Use exit_failure consistently in place of EXIT_FAILURE,
62779         so that program exit statuses are consistent on failure.
62780
62781         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62782         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62783         * lib/argmatch.h: Comment fix to match the above.
62784         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62785         Now a macro referring to exit_failure, instead of a separate
62786         variable.  Include "exitfail.h" to get it.
62787         * lib/xstrtol.h: Include "exitfail.h".
62788         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62789
62790         * lib/long-options.c (parse_long_options): Use prototype
62791         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62792         for clarity.
62793
62794 2004-01-21  Jim Meyering  <jim@meyering.net>
62795
62796         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62797         so as not to conflict with a different-sized __mktime_internal
62798         function in GNU libc.
62799         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62800         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62801
62802 2004-01-20  Karl Berry  <karl@gnu.org>
62803
62804         * config/config.guess: update from config.
62805
62806         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62807
62808 2004-01-20  Bruno Haible  <bruno@clisp.org>
62809
62810         Safer stack allocation.
62811         * lib/setenv.c: Include allocsa.h.
62812         (alloca): Remove fallback definition.
62813         (freea): Remove macro.
62814         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62815         instead of freea.
62816
62817 2004-01-20  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/eealloc.m4: New file, from GNU gettext.
62820
62821 2004-01-20  Bruno Haible  <bruno@clisp.org>
62822
62823         * m4/allocsa.m4: New file, from GNU gettext.
62824
62825 2004-01-20  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/xallocsa.h: New file, from GNU gettext.
62828         * lib/xallocsa.c: New file, from GNU gettext.
62829
62830 2004-01-20  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62833
62834 2004-01-20  Bruno Haible  <bruno@clisp.org>
62835
62836         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62837         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62838         specially.
62839
62840 2004-01-20  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62843         patch.
62844
62845 2004-01-20  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62848
62849 2004-01-20  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/eealloc.h: New file.
62852
62853 2004-01-20  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/binary-io.h: Avoid warnings on Cygwin.
62856
62857 2004-01-20  Bruno Haible  <bruno@clisp.org>
62858
62859         * lib/allocsa.h: New file, from GNU gettext.
62860         * lib/allocsa.c: New file, from GNU gettext.
62861
62862 2004-01-18  Karl Berry  <karl@gnu.org>
62863
62864         * doc/gpl.texi, doc/lgpl.texi: new files.
62865
62866 2004-01-18  Karl Berry  <karl@gnu.org>
62867
62868         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62869         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62870
62871 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62872
62873         Merge from coreutils.
62874
62875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62876         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62877         (gl_DEFAULT_POSIX2_VERSION): Move
62878         the documentation from 'configure' into 'config.hin',
62879         so that 'configure --help' isn't burdened by it and
62880         we don't have to worry about its formatting there.
62881         Reword the documentation so that it's more succinct
62882         and can be run together into a single paragraph.
62883         * m4/same.m4 (gl_SAME): Check for pathconf.
62884
62885 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62886
62887         Merge from coreutils.
62888
62889         * lib/posixver.c: Include posixver.h.
62890
62891         * lib/same.c: Include <stdbool.h>, <limits.h>.
62892         (_POSIX_NAME_MAX): Define if not defined.
62893         (MIN): New macro.
62894         (same_name): If file names are silently truncated, report
62895         that the file names are the same if they are the same after
62896         the silent truncation.
62897
62898         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62899         conversion function.
62900         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62901         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62902         longer needed.
62903
62904 2004-01-15  Jim Meyering  <jim@meyering.net>
62905
62906         Merge from coreutils.
62907
62908         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62909         if no library is required.
62910         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62911         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62912         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62913         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62914         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62915         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62916         value, $ac_cv_search_crypt, if it's "none required".
62917         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62918         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62919         not gl_FUNC_GETLOADAVG.
62920         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62921         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62922
62923 2004-01-15  Jim Meyering  <jim@meyering.net>
62924
62925         Merge from coreutils.
62926
62927         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62928         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62929         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62930
62931         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62932         optional configure-time default.
62933
62934         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62935
62936         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62937
62938 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62939
62940         Merge from coreutils.
62941
62942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62943         value, $ac_cv_search_nanosleep, if it's "none required".
62944
62945 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62946
62947         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62948         with like-named macro in fnmatch.c.
62949         (EXT): Use an internal constant instead.
62950
62951         Merge fnmatch patches from glibc.
62952         * lib/fnmatch.c (mbsinit): Remove define.
62953         Add libc_hidden_ver (__fnmatch, fnmatch).
62954         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62955         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62956
62957 2004-01-14  Karl Berry  <karl@gnu.org>
62958
62959         * config/install-sh: update from automake.
62960
62961 2004-01-13  Karl Berry  <karl@gnu.org>
62962
62963         * config/install-sh: update from automake.
62964
62965 2004-01-09  Karl Berry  <karl@gnu.org>
62966
62967         * config/install-sh: update from automake.
62968
62969 2004-01-05  Karl Berry  <karl@gnu.org>
62970
62971         * config/config.{sub,guess}: update from config.
62972
62973 2003-12-31  Karl Berry  <karl@gnu.org>
62974
62975         * config/depcomp: update from automake.
62976
62977 2003-12-14  Karl Berry  <karl@gnu.org>
62978
62979         * lib/config.charset: update from gettext-runtime.
62980
62981 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62982
62983         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62984         Bug reported by Alfred M. Szmidt.
62985
62986 2003-12-03  Bruno Haible  <bruno@clisp.org>
62987
62988         * m4/gettext.m4: Upgrade from gettext-0.13.
62989         * m4/po.m4: Upgrade from gettext-0.13.
62990         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62991         * m4/intmax.m4: New file, from gettext-0.13.
62992         * m4/printf-posix.m4: New file, from gettext-0.13.
62993
62994 2003-11-29  Karl Berry  <karl@gnu.org>
62995
62996         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62997
62998 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62999             Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/printf-parse.h: Don't include sys/types.h.
63002         (ARG_NONE): New macro.
63003         (char_directive): Change type of *arg_index fields to size_t.
63004         * lib/printf-parse.c: Don't include sys/types.h.
63005         (SSIZE_MAX): Remove macro.
63006         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63007         Remove unnecessary overflow check.
63008         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63009         fields.
63010
63011 2003-11-25  Bruno Haible  <bruno@clisp.org>
63012
63013         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63014
63015 2003-11-25  Bruno Haible  <bruno@clisp.org>
63016
63017         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63018         gt_TYPE_SSIZE_T.
63019
63020 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63021
63022         * modules/alloca: Remove dependency on xalloc.
63023
63024 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63025
63026         * lib/alloca.c: Remove dependency on xalloc module.
63027         (xalloc_die): Remove.
63028         (memory_full) [!defined emacs]: New macro.
63029         [!defined emacs]: Don't include xalloc.h.
63030         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63031         address arithmetic overflows.  Change datatypes a bit to avoid
63032         unnecessary casts.
63033
63034 2003-11-22  Jim Meyering  <jim@meyering.net>
63035
63036         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63037         s/size/size_t/.
63038
63039 2003-11-21  Karl Berry  <karl@gnu.org>
63040
63041         * config/config.{sub,guess}: update from config.
63042
63043 2003-11-18  Karl Berry  <karl@gnu.org>
63044
63045         * config/config.{sub,guess}: update from config.
63046
63047         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63048
63049 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63050
63051         * README: Mention that S+T cannot overflow if S is the size of
63052         an existing object and T is sufficiently small.
63053
63054 2003-11-17  Jim Meyering  <jim@meyering.net>
63055
63056         On systems without utime and without a utimes function capable of
63057         dealing with a NULL struct utimbuf* argument, this utime replacement
63058         could -- in unusual circumstances -- leak a file descriptor.
63059         * lib/utime.c: Include <unistd.h> and <errno.h>.
63060         (utime_null): Be sure to close `fd' and to preserve errno.
63061         Reported by Geoff Collyer via Arnold Robbins.
63062
63063 2003-11-17  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63066         (Depends-on): Add xsize.
63067
63068 2003-11-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63071
63072 2003-11-17  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/vasnprintf.c (alloca): Remove fallback definition.
63075         (freea): Remove definition.
63076         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63077         Reported by Paul Eggert.
63078
63079 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63080             Bruno Haible  <bruno@clisp.org>
63081
63082         Protect against address arithmetic overflow.
63083         * lib/printf-args.h: Include stddef.h.
63084         (arguments): Change type of field 'count' to size_t.
63085         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63086         'unsigned int' where appropriate.
63087         * lib/printf-parse.h: Include sys/types.h.
63088         (char_directive): Change type of *arg_index fields to ssize_t.
63089         (char_directives): Change type of fields 'count', max_*_length to
63090         size_t.
63091         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63092         (SSIZE_MAX): Define fallback value.
63093         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63094         instead of 'int' where appropriate. Check a_allocated, d_allocated
63095         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63096         * lib/vasnprintf.c: Include xsize.h.
63097         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63098         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63099         overflow. Avoid wraparound when converting a width or precision from
63100         decimal to binary.
63101
63102 2003-11-16  Bruno Haible  <bruno@clisp.org>
63103
63104         Update from GNU gettext.
63105         * lib/printf-parse.c: Generalize to it can be compiled for wide
63106         strings.
63107         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63108         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63109         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63110         SNPRINTF): New macros.
63111         Don't include <alloca.h> if the file is used inside libintl.
63112         (local_wcslen): New function, for Solaris 2.5.1.
63113         (VASNPRINTF): Use it instead of wcslen.
63114
63115 2003-11-16  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/xsize.h (xmax): New function.
63118         (xsum, xsum3, xsum4): Declare as "pure" functions.
63119
63120 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63121
63122         * modules/xalloc (Files): Undo latest change, since xalloc.h
63123         no longer needs SIZE_MAX or PTRDIFF_MAX.
63124
63125 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63126
63127         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63128         gl_PTRDIFF_MAX.
63129
63130 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63131
63132         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63133         "return", to pacify some unknown compiler.  Problem reported
63134         by Joerg Schilling.
63135
63136 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63137
63138         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63139         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63140         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63141         heuristic is just as accurate as far as we know, and it removes a
63142         dependency on size_max.m4 and ptrdiff_max.m4.
63143
63144 2003-11-11  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/xsize (Files): Add m4/size_max.m4.
63147         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63148
63149 2003-11-11  Bruno Haible  <bruno@clisp.org>
63150
63151         * m4/size_max.m4: New file.
63152         * m4/ptrdiff_max.m4: New file.
63153         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63154         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63155         (gl_XALLOC): Invoke it.
63156
63157 2003-11-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63160         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63161         defined.
63162
63163 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63164
63165         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63166         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63167         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63168         From Bruno Haible.
63169         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63170         not (size_t) -1, since it's defined here.
63171
63172 2003-11-09  Karl Berry  <karl@gnu.org>
63173
63174         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63175
63176 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63177
63178         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63179         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63180         Reject sizes of exactly SIZE_MAX bytes.
63181         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63182         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63183
63184 2003-11-05  Bruno Haible  <bruno@clisp.org>
63185
63186         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63187         SIZE_MAX defined in <limits.h> on Solaris.
63188
63189 2003-11-04  Jim Meyering  <jim@meyering.net>
63190
63191         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63192         variable names, rather than @VAR@.
63193         * modules/poll: Likewise.
63194
63195 2003-11-04  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/xsize: New file.
63198         * modules/linebreak: Depend on xsize.
63199         * MODULES.html.sh (func_all_modules): Add xsize.
63200
63201 2003-11-04  Bruno Haible  <bruno@clisp.org>
63202
63203         * m4/xsize.m4: New file.
63204
63205 2003-11-04  Bruno Haible  <bruno@clisp.org>
63206
63207         * lib/xsize.h: New file.
63208         * lib/linebreak.c: Include xsize.h.
63209         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63210         argument for overflow.
63211         Suggested by Paul Eggert.
63212
63213 2003-11-03  Karl Berry  <karl@gnu.org>
63214
63215         * config/config.{guess,sub}: update from config.
63216
63217 2003-11-03  Jim Meyering  <jim@meyering.net>
63218
63219         * modules/userspec (lib_SOURCES): Add userspec.h.
63220         (Include): Add "userspec.h".
63221         Improve description.
63222
63223 2003-11-03  Jim Meyering  <jim@meyering.net>
63224
63225         * lib/userspec.c: Include "userspec.h".
63226         * lib/userspec.h: New file.
63227
63228 2003-11-03  Bruno Haible  <bruno@clisp.org>
63229
63230         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63231
63232 2003-11-03  Bruno Haible  <bruno@clisp.org>
63233
63234         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63235         available, to avoid (extremely rare) race condition.
63236         Suggested by Paul Eggert.
63237
63238 2003-11-02  Karl Berry  <karl@gnu.org>
63239
63240         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63241
63242 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63243
63244         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63245         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63246         (read_filesystem_list): Set and use me_type_malloced.
63247         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63248         whatever the type happens to be), for brevity and consistency.
63249         Check for size calculation overflow on Alphas running OSF/1.
63250
63251 2003-10-31  Jim Meyering  <jim@meyering.net>
63252
63253         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63254
63255         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63256
63257 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63258             Bruno Haible  <bruno@clisp.org>
63259
63260         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63261         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63262
63263 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63266         netbsd*-gnu*.  Suggested by Robert Millan.
63267
63268 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63269
63270         * modules/group-member: Depend on stdbool.
63271
63272 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63273
63274         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63275
63276 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63277
63278         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63279         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63280         after the 'gnu' in these cases.  This fixes some bugs in the
63281         previous change, and is based on suggestions by Robert Millan.
63282
63283 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63284
63285         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63286         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63287         no longer needed.
63288         * lib/quotearg.c (quotearg_n_options): Use it.
63289         * lib/group-member.c: Include <stdbool.h>.
63290         (free_group_info): Arg is now const *; don't free arg.
63291         (get_group_info): Now returns bool and accepts struct group_info *,
63292         rather than returning a malloc'ed struct group_info *.
63293         All uses changed.  Check for overflow in internal size calculation.
63294
63295         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63296         rather than xmalloc/xrealloc.
63297         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63298         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63299         conformance bug: the old code used a pointer after freeing the
63300         storage that it addressed.
63301         * lib/hash.c (hash_initialize): Simplify the code by using
63302         xalloc_oversized rather than doing it by hand.
63303         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63304         the buffer preserved.  Use free and xmalloc instead.
63305         * lib/quotearg.c (quotearg_n_options): Likewise.
63306         Use a simpler test for size overflow.  Don't use xalloc_oversized
63307         because unsigned int might be wider than size_t (!); this suggests
63308         that we should switch from unsigned int to size_t for slot numbers.
63309
63310 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63311
63312         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63313         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63314         NetBSD kernels.  Requested by Richard Stallman.
63315
63316 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63317
63318         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63319         to allocate the returned structure.  Do not allocate a subarray,
63320         as x2nrealloc will do that.
63321         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63322         instead of xnrealloc.
63323         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63324
63325 2003-10-27  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/stdbool_.h: Better support for BeOS.
63328
63329 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63330
63331         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63332         now uses inline.
63333
63334 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63335
63336         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63337         callers that want to do their own size-overflow checking.  Include
63338         <stdbool.h>, since xalloc_oversized returns bool.
63339         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63340         to use xalloc_oversized.
63341
63342         Add two functions x2realloc, x2nrealloc, for programs that grow
63343         arrays dynamically by doubling their sizes.
63344         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63345         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63346         New functions.
63347
63348         Port to C99 semantics for 'inline' of external functions.
63349         Bug reported by Bruno Haible.
63350         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63351         with the old contents of xnmalloc.
63352         (xnmalloc, xmalloc): Use it.
63353         (xnrealloc_inline): New static inline function,
63354         with the old contents of xnrealloc.
63355         (xnrealloc, xrealloc): Use it.
63356
63357         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63358         that.
63359
63360 2003-10-26  Karl Berry  <karl@gnu.org>
63361
63362         * config/srclist.txt (COPYING.DOC): no longer available from
63363         /gd/gnuorg; don't know where the ultimate source is.
63364
63365 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63366
63367         Fix several address-calculation bugs in the hash modules,
63368         plus some minor code cleanup.
63369
63370         * lib/hash.h: Include <stdbool.h>, for bool.
63371         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63372         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63373         hash_get_n_entries, hash_get_max_bucket_length,
63374         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63375         hash_rehash): Use size_t rather than unsigned.
63376         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63377         hash_get_n_buckets_used, hash_get_n_entries,
63378         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63379         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63380         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63381         Likewise.
63382         (SIZE_MAX): Define if not defined.
63383         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63384         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63385         hash_print):
63386         Use const * when possible.
63387         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63388         (check_tuning): Fix bug: if tuning parameters were very close to
63389         0 or 1, rounding errors could have caused subscript violations.
63390         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63391         (hash_initialize): Add 'fail:' label
63392         to free table and return NULL, and use it to simplify code.
63393         Use calloc rather than clearing the storage ourself.
63394         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63395         buffer size calculations.
63396         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63397         Include <stddef.h>, for size_t.
63398         * lib/hash-pjw.c (hash_pjw): Likewise.
63399         Switch to method described by Bruno Haible.
63400         Include <limits.h>, for CHAR_BIT.
63401         (SIZE_BITS): New macro.
63402
63403 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63404
63405         * m4/getline.m4 (AM_FUNC_GETLINE):
63406         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63407         hosts.  Problem reported by Derek Robert Price in
63408         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63409         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63410         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63411
63412 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63413
63414         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63415         ceiling the allocation at NMAX bytes rather than silently
63416         discarding input bytes before NMAX is reached.  This makes
63417         a difference only if NMAX exceeds SIZE_MAX / 2.
63418
63419         * lib/obstack.c: Merge from glibc.
63420         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63421         Add libc_hidden_def (_obstack_newchunk).
63422         (_obstack_free) [! defined _LIBC]: Remove.
63423         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63424         a clone of the function body.
63425         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63426         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63427
63428         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63429         glibc.
63430         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63431         arg to memcpy.
63432
63433         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63434         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63435         Don't use lvalue casts, as GCC plans to remove support for them
63436         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63437         was also present in the non-GCC version, indicating that this
63438         code had always been buggy and had never been widely used.
63439         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63440         Use the fast variant of each macro, rather than copying the
63441         definiens of the fast variant; that way, we'll be more likely to
63442         catch future bugs in the fast variants.
63443
63444 2003-10-20  Bruno Haible  <bruno@clisp.org>
63445
63446         * modules/wait-process: New file.
63447         * MODULES.html.sh (func_all_modules): Add wait-process.
63448
63449 2003-10-20  Bruno Haible  <bruno@clisp.org>
63450
63451         * m4/wait-process.m4: New file.
63452
63453 2003-10-20  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/wait-process.h: New file, from GNU gettext.
63456         * lib/wait-process.c: New file, from GNU gettext.
63457
63458 2003-10-19  Jim Meyering  <jim@meyering.net>
63459
63460         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63461         HPUX 10.20.
63462
63463 2003-10-18  Karl Berry  <karl@gnu.org>
63464
63465         * config/config.guess: update from config.
63466
63467 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63468
63469         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63470         (getgroups): First arg is int, not size_t.
63471         Don't let 'free' mangle errno.
63472
63473 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63474
63475         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63476
63477 2003-10-16  Karl Berry  <karl@gnu.org>
63478
63479         * config/config.{guess,sub}: update from config.
63480
63481 2003-10-16  Jim Meyering  <jim@meyering.net>
63482
63483         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63484         memcpy.
63485
63486 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63487
63488         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63489         (SIZE_MAX): Remove.
63490         (new_exclude, add_exclude_file): Initial size no longer needs to
63491         be a power of 2.
63492         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63493         our own address arithmetic overflow checking.
63494
63495         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63496         (fnmatch): Do not alloca more than 2000 wide characters;
63497         instead, use malloc for large buffers.
63498         Check for address arithmetic overflow, and return -1
63499         with errno set to ENOMEM in that case.
63500         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63501         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63502         instead, return -1.  Check for address arithmetic overflow.
63503
63504 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63505
63506         Handle invalid suffixes and overflow independently, so that
63507         callers can treat them independently as needed.  Fix some bugs in
63508         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63509         suffix for a human-readable blocksize.  The major caller-visible
63510         change is the addition of a new
63511         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63512         that both overflow and suffix chars were found.
63513
63514         * lib/human.c (humblock): Don't check separately for invalid suffix
63515         char; that is xstrtoumax's job (now that its bug is fixed).
63516         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63517         INTMAX_MAX]: New macros.
63518         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63519         TYPE_MAXIMUM): New macros.
63520         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63521         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63522         if overflow occurs, as it's what __strtol does and it's more useful
63523         in practice.
63524         (__xstrtol): If __strtol reports some error other than ERANGE,
63525         reflect it to the caller as LONGINT_INVALID.  If it reports
63526         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63527         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63528         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63529         value.
63530         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63531         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63532         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63533         [defined UINTMAX_MAX]: New macros.
63534
63535 2003-10-14  Bruno Haible  <bruno@clisp.org>
63536
63537         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63538
63539 2003-10-14  Bruno Haible  <bruno@clisp.org>
63540
63541         * m4/sig_atomic_t: New file, from GNU gettext.
63542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63543
63544 2003-10-14  Bruno Haible  <bruno@clisp.org>
63545
63546         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63547         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63548         Also use volatile where needed.
63549
63550 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63551
63552         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63553         Change maintainer from Bruno Haible to 'all'.
63554
63555 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63556
63557         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63558
63559 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63560
63561         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63562         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63563         and define in terms of the other primitives.
63564         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63565         (SIZE_MAX): Define if not already defined.
63566         (array_size_overflow): New function.
63567         (xalloc_die): Abort instead of exiting if 'error' returns.
63568         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63569         (xmalloc, xrealloc): Use them.
63570         (xcalloc): Check for address arithmetic overflow.
63571         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63572         a bit faster than strcpy.
63573
63574 2003-10-10  Simon Josefsson  <jas@extundo.com>
63575
63576         * modules/argp (Depends-on): Add restrict and strcase.
63577
63578 2003-10-10  Simon Josefsson  <jas@extundo.com>
63579
63580         * m4/argp.m4: Add AC_C_INLINE.
63581
63582 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63583
63584         Merge getpass from libc, plus a few fixes.
63585
63586         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63587         Include <stdbool.h>.
63588         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63589         __fsetlocking to empty.
63590         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63591         do include <bits/libc-lock.h>.
63592         Do not include <fcntl.h>; not needed.
63593         [_LIBC]: Include <wchar.h>.
63594         (NOTCANCEL_MODE): New macro.
63595         (flockfile, funlockfile) [_LIBC]: New macros.
63596         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63597         [!_LIBC]: New macros.
63598         (call_fclose): New function.
63599         (getpass): Use it.  Save tty stream separately; this simplifies the
63600         code and makes it more reliable if stdin happens to equal stdout.
63601         Invoke __fsetlocking on tty.
63602         Handle thread cancellation if needed.
63603         Namespace cleanup (use __tcgetattr, __getline).
63604         Use bool for Booleans.
63605         [USE_IN_LIBIO]: Handle wide streams.
63606         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63607         stream might go where.
63608
63609         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63610         doesn't have to include <stdio.h> before us.
63611         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63612         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63613         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63614         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63615         if not declared, so that we can use getpass.c code from libc without
63616         rewriting it.
63617         (flockfile, ftrylockfile, funlockfile): New macros.
63618
63619 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63620
63621         * modules/getpass: Depend on stdbool.
63622
63623 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63624
63625         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63626
63627 2003-10-07  Karl Berry  <karl@gnu.org>
63628
63629         * config/config.{guess,sub}: update from config.
63630
63631 2003-10-06  Jim Meyering  <jim@meyering.net>
63632             Bruno Haible  <bruno@clisp.org>
63633
63634         This lets translators provide better translations for the
63635         "Written by ..." part of --version output.
63636         * lib/version-etc.h: Include stdarg.h.
63637         (version_etc_copyright): Declare as readonly.
63638         (version_etc): Make this function variadic with a NULL-terminated list
63639         of author name strings.
63640         (version_etc_va): New declaration.
63641         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63642         (version_etc_copyright): Declare as readonly.
63643         (version_etc_va): New function. Provide a different translatable string
63644         for each possible number of authors < 10. Abbreviate when there are 10
63645         authors or more.
63646         (version_etc): Make this function variadic. Call version_etc_va.
63647         Suggestion from Gary V. Vaughan.
63648
63649         * lib/long-options.h (parse_long_options): Change prototype: the
63650         authors string is moved to the end and becomes variadic.
63651         * lib/long-options.c: Include stdarg.h.
63652         (parse_long_options): Make this function variadic, too.
63653         Call version_etc_va, not version_etc.
63654
63655 2003-10-06  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/version-etc-2: Remove file.
63658         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63659
63660 2003-10-06  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/fatal-signal: New file.
63663         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63664
63665 2003-10-06  Bruno Haible  <bruno@clisp.org>
63666
63667         * m4/fatal-signal.m4: New file.
63668         * m4/signalblocking.m4: New file, from GNU gettext.
63669
63670 2003-10-06  Bruno Haible  <bruno@clisp.org>
63671
63672         * lib/version-etc-2.h: Remove file.
63673         * lib/version-etc-2.c: Remove file.
63674
63675 2003-10-06  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/fatal-signal.h: New file, from GNU gettext.
63678         * lib/fatal-signal.c: New file, from GNU gettext.
63679
63680 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63681
63682         * README: Rework advice for preventing empty .o files.
63683         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63684         not <sys/types.h>.
63685
63686 2003-10-04  Karl Berry  <karl@gnu.org>
63687
63688         * lib/argp*: update from libc.
63689
63690 2003-10-04  Karl Berry  <karl@gnu.org>
63691
63692         * config/config.{guess,sub}: update from config.
63693
63694 2003-10-02  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/lchown (Include): Add lchown.h.
63697         * modules/time_r (Include): Use "..." syntax.
63698         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63699
63700 2003-10-01  Simon Josefsson  <jas@extundo.com>
63701
63702         * MODULES.html.sh (func_all_modules): Move gethostname from section
63703         'based on' to section 'lacking' POSIX:2001.
63704
63705 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63706
63707         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63708         to output mode on the same stream.
63709
63710 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63711
63712         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63713         Fix arg typo in previous patch.
63714
63715 2003-09-28  Jim Meyering  <jim@meyering.net>
63716
63717         * lib/error.c: Correct cpp indentation.
63718
63719 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63720
63721         * modules/free: New file.
63722
63723 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63724
63725         * m4/free.m4: New file.
63726
63727 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63728
63729         * lib/minmax.h (MIN, MAX)
63730         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63731         Omit the special code that used __typeof__, since we worry that
63732         it could be more trouble than it's worth.  See:
63733         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63734         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63735
63736         * lib/free.c: New file.
63737
63738 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63739
63740         Trivial fixes to Makefile.am parts of module listings.
63741         * modules/strstr: Append strstr.h to lib_SOURCES.
63742         * modules/strcase: Likewise, for strcase.h.
63743
63744 2003-09-27  Karl Berry  <karl@gnu.org>
63745
63746         * config/mkinstalldirs: update from automake.
63747
63748 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63749
63750         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63751         (error_tail): Do not loop, reallocating temporary buffer, since
63752         the output cannot contain more wide characters than the input
63753         contains bytes, the size must be big enough already.  This avoids
63754         one potential size overflow calculation.  Check for size overflow
63755         when calculating temporary buffer size.  Free temporary buffer
63756         when done, if it was allocated with malloc; this plugs a memory
63757         leak.  Remove casts from void * to pointers, that are no longer
63758         needed now that we're assuming C89 or better.
63759
63760         Merge error changes from glibc.
63761
63762         * lib/error.c, error.h: Update copyright notice header to match glibc.
63763         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63764         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63765         Disable cancellation while printing error.
63766         * lib/error.h: Prepend __ to parameter names.
63767
63768 2003-09-26  Jim Meyering  <jim@meyering.net>
63769
63770         * lib/error.c (error_tail): Move some declarations
63771         into inner scope where the local variables are used.
63772
63773 2003-09-26  Bruno Haible  <bruno@clisp.org>
63774
63775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63776         stpncpy().
63777         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63778
63779 2003-09-26  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63782         (stpncpy): Define as alias for gnu_stpncpy.
63783         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63784
63785 2003-09-25  Simon Josefsson  <jas@extundo.com>
63786
63787         * lib/xgetdomainname.h: New file.
63788         * lib/xgetdomainname.c: New file.
63789
63790 2003-09-25  Simon Josefsson  <jas@extundo.com>
63791             Bruno Haible  <bruno@clisp.org>
63792
63793         * modules/getdomainname: New file.
63794         * modules/xgetdomainname: New file.
63795         * MODULES.html.sh (func_all_modules): Add getdomainname,
63796         xgetdomainname.
63797
63798 2003-09-25  Simon Josefsson  <jas@extundo.com>
63799             Bruno Haible  <bruno@clisp.org>
63800
63801         * m4/getdomainname.m4: New file.
63802
63803 2003-09-25  Simon Josefsson  <jas@extundo.com>
63804             Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/getdomainname.h: New file.
63807         * lib/getdomainname.c: New file.
63808
63809 2003-09-25  Karl Berry  <karl@gnu.org>
63810
63811         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63812
63813 2003-09-25  Karl Berry  <karl@gnu.org>
63814
63815         * config/install-sh: update from automake.
63816
63817 2003-09-25  Bruno Haible  <bruno@clisp.org>
63818
63819         * modules/version-etc-2: New file, from modules/version-etc with
63820         modifications.
63821         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63822
63823 2003-09-25  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63826         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63827
63828 2003-09-24  Simon Josefsson  <jas@extundo.com>
63829
63830         * modules/xgethostname: Add xgethostname.h.
63831
63832 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63833
63834         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63835         the buffer associated with the argument.  Bug reported by
63836         Simon Josefsson.
63837
63838 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63839
63840         * README: Document assumptions that 'int' is at least 32 bits
63841         wide, that integer arithmetic is 2's complement without overflow,
63842         that there are no holes in integer values, that adding sizes of
63843         two nonoverlapping objects can't overflow, and that all-bits-zero
63844         yields scalar zero.  Fix spelling and capitalization typos.
63845
63846 2003-09-19  Karl Berry  <karl@gnu.org>
63847
63848         * lib/argp.h: update from libc.
63849
63850 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63851
63852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63853         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63854         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63855
63856 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63857
63858         * gnulib-tool: Use "test -h", not "test -L", for portability
63859         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63860         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63861         (sed_extract_prog): Issue s commands one-by-one, rather than
63862         using \| in one s command.
63863
63864 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63865
63866         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63867         input error, instead of returning NULL the next time we are called
63868         (and therefore losing track of errno).
63869
63870 2003-09-16  Bruno Haible  <bruno@clisp.org>
63871
63872         * gnulib-tool (func_create_testdir): Warn about duplicated
63873         dependencies.
63874
63875 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63876
63877         * modules/argmatch, modules/fatal, modules/obstack,
63878         modules/xalloc, modules/xgethostname: Sort dependencies by
63879         importance, not alphabetically.
63880
63881 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63882
63883         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63884         fails, so that the caller gets the proper errno.
63885
63886         * lib/readutmp.c (read_utmp): Likewise.
63887         Check for fstat error.  Close stream and free storage
63888         when failing.
63889
63890 2003-09-14  Karl Berry  <karl@gnu.org>
63891
63892         * config/srclist.txt (strdup.c): disable for c89 changes.
63893
63894 2003-09-14  Jim Meyering  <jim@meyering.net>
63895
63896         * lib/getloadavg.c: Correct cpp indentation.
63897         * lib/strdup.c: Likewise.
63898         * lib/vasnprintf.c: Likewise.
63899
63900 2003-09-14  Bruno Haible  <bruno@clisp.org>
63901
63902         * modules/fwriteerror: New file.
63903         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63904
63905 2003-09-14  Bruno Haible  <bruno@clisp.org>
63906
63907         * lib/fwriteerror.h: New file.
63908         * lib/fwriteerror.c: New file.
63909
63910 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63911
63912         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63913         modules/xgethostname, modules/xalloc: Depend on exit.
63914
63915 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63916
63917         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63918
63919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63920         and AC_MINIX, too, so that their extensions are available.
63921
63922         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63923         This macro has been superseded by gl_BACKUPFILE.
63924
63925         More patches to assume C89 or better.
63926
63927         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63928
63929         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63930         unconditionally.
63931         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63932         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63933         Include <string.h>, <stdlib.h> unconditionally.
63934         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63935         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63936         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63937         headers or for string.h.
63938         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63939         or strtoul.
63940
63941         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63942         headers.
63943         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63944         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63945         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63946         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63947         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63948         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63949         memcpy, memset.
63950         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63951         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63952         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63953         strtol.
63954         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63955         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63957         strtoul.
63958
63959 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63960
63961         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63962         * lib/obstack.c [!defined _LIBC]: Likewise.
63963         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63964         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63965         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63966
63967         More changes to assume C89 or better.
63968
63969         * lib/error.c (error_tail): Assume vprintf.
63970
63971         * lib/argmatch.c (getenv): Remove decl.
63972         * lib/progreloc.c (get_full_program_name): Define via prototype.
63973         * lib/setenv.c (clearenv): Likewise.
63974         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63975         needed.
63976         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63977         (malloc, memcpy): Remove decls.
63978         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63979         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63980         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63981         (memcpy): Remove macro.
63982         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63983         (__P): Remove.  All uses removed.
63984         (PTR): Remove.  All uses changed to void *.
63985         (CHAR_BIT, NULL): Remove.
63986         (spaces, zeros, memset_space, memset_zero)
63987         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63988         Remove.
63989         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63990         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63991         Define with prototype.
63992         Remove now-unnecessary prototype decl.
63993         (extra_args_spec): Assume ANSI C.  All uses changed.
63994         (extra_args_spec_iso): Remove.
63995         (my_strftime, emacs_strftimeu): Define via prototype.
63996         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63997         unconditionally.
63998         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63999         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64000         (strtoul, strtol): Remove decls.
64001         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64002         LONG_MAX): Remove.
64003         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64004         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64005         (LOCALE_PARAM_PROTO): New macro.
64006         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64007         (INTERNAL (strtol), strtol): Define with a prototype.
64008         (PARAMS): Remove.  All uses removed.
64009         * lib/tempname.c: Include <string.h> unconditionally.
64010         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64011         * lib/xgethostname.c (main): Define with a prototype.
64012         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64013         Include <stdlib.h> unconditionally.
64014         (calloc, malloc, realloc, free): Remove decls.
64015         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64016         Include <stdlib.h> unconditionally.  Sort include file names.
64017         (strtod): Remove.
64018         (xstrtod): Define with a prototype.
64019         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64020         (strtol, strtoul): Remove decls.
64021
64022 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64023
64024         More patches to assume C89 or better.
64025         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64026         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64027         string.h, memchr, STDC_HEADERS.
64028
64029 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64030
64031         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64032         Include <stdlib.h>, <string.h> unconditionally.
64033         Remove now-unnecessary cast to char *.
64034         * lib/strnlen.c: Include <string.h> unconditionally.
64035         * lib/yesno.c (yesno): Define with a prototype.
64036
64037 2003-09-11  Bruno Haible  <bruno@clisp.org>
64038
64039         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64040
64041 2003-09-10  Jim Meyering  <jim@meyering.net>
64042
64043         * lib/error.c: Correct indentation of cpp directives.
64044
64045 2003-09-10  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64048         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64049         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64050         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64051         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64052         <stdlib.h> and <string.h> checks.
64053         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64054         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64055
64056 2003-09-10  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/strcspn.c: Include <string.h> unconditionally.
64059         * lib/strpbrk.c: Include <string.h> unconditionally.
64060         * lib/strstr.c: Include <string.h> unconditionally.
64061         * lib/unicodeio.c: Include <string.h> unconditionally.
64062         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64063         * lib/unsetenv.c: Likewise.
64064         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64065         * lib/yesno.c: Include <stdlib.h> unconditionally.
64066         (rpmatch): Add prototype.
64067
64068 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64069
64070         More patches to assume C89 or better.
64071         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64072         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64073         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64074         or for string.h.
64075         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64076         stdlib.h.
64077         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64078         C headers.
64079         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64080         string.h.
64081         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64082         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64083         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64084         or for string.h.
64085         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64086         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64087         C headers.
64088         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64089         memcpy.
64090         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64091         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64092         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64093         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64094         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64095         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64096         string.h, free.
64097         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64098         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64099         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64100         C headers, or for string.h.
64101         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64102         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64103         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64104         headers, memory.h, stdlib.h, string.h, strings.h.
64105         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64106         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64107         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64108         strchr.
64109         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64110         headers, memory.h, string.h.
64111         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64112         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64113         free.
64114         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64115         headers.
64116         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64117         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64118         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64119         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64120         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64121
64122 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64123
64124         More K&R removal.
64125
64126         * lib/acosl.c (main): Use a prototype.
64127         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64128         tanl.c: Likewise.
64129
64130         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64131
64132         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64133         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64134         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64135         with a prototype.
64136         * lib/getopt.c (const): Remove macro.
64137         Include <string.h> unconditionally.
64138         (my_index): Remove; all uses changed to strchr.
64139         (strlen): Remove decl.
64140         (exchange): Remove forward decl; no longer needed.
64141         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64142         Define with prototype.
64143         * lib/getopt1.c (const): Remove macro.
64144         (getopt_long, getopt_long_only, main): Define with prototype.
64145
64146         * lib/getugroups.c: Include <string.h> unconditionally.
64147
64148         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64149         (getusershell, setusershell, endusershell, readname, main):
64150         Define with prototypes.
64151
64152         * lib/group-member.c: Include group-member.h first.
64153         Include <stdlib.h> unconditionally.
64154
64155         * lib/hard-locale.c: Include hard-locale.h first.
64156         Include <stdlib.h>, <string.h> unconditionally.
64157
64158         * lib/hash.c (free, malloc): Remove decls.
64159         Include <stdlib.h> unconditionally.
64160
64161         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64162         (getenv): Do not declare.
64163
64164         * lib/idcache.c: Include <string.h> unconditionally.
64165
64166         * lib/long-options.c: Include long-options.h first, to test interface.
64167         Include <stdlib.h> unconditionally.
64168
64169         * lib/makepath.c: Include makepath.h first, to test interface.
64170         Include <stdlib.h> and <string.h> unconditionally.
64171
64172         * lib/linebuffer.c: Include <stdlib.h>.
64173         (free): Remove decl.
64174
64175         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64176         stddef.h. rpl_malloc returns void *, not char *.
64177         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64178         prototype.
64179
64180         * lib/md5.h: Include <limits.h> unconditionally.
64181         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64182         (__P): Remove; all uses removed.
64183         * lib/md5.c: Include "md5.h" first.
64184         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64185         md5_buffer, md5_process_bytes, md5_process_block):
64186         Define with prototypes.
64187         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64188         * lib/sha.c: Include "sha.h" first.
64189         Include <stdlib.h>, <string.h> unconditionally.
64190
64191         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64192         * lib/memcmp.c (__ptr_t): Likewise.
64193         * lib/memrchr.c (__ptr_t): Likewise.
64194         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64195         Include <string.h> unconditionally.
64196         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64197         * lib/memchr.c: Include <stdlib.h> unconditionally.
64198         * lib/memchr.c (LONG_MAX): Remove.
64199         * lib/memrchr.c (LONG_MAX): Likewise.
64200         * lib/memchr.c (__memchr): Define via a prototype.
64201         * lib/memrchr.c (__memrchr): Likewise.
64202         * lib/memcmp.c (__P): Remove, and remove all uses.
64203         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64204         Remove forward decls; no longer needed.
64205         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64206         Use types required by C89 in prototype.
64207
64208         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64209         * lib/savedir.c: Likewise.
64210         * lib/mkdir.c (free): Remove decl.
64211         * lib/rmdir.c (rmdir): Define with a prototype.
64212         * lib/savedir.c: Include savedir.h first, to test interface.
64213
64214         * lib/mktime.c (STDC_HEADERS): Remove.
64215         Include <stdlib.h>, <string.h> unconditionally.
64216
64217         * lib/modechange.c: Include <stdlib.h> unconditionally.
64218         (malloc): Remove decl.
64219
64220         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64221         (free): Remove decl.
64222
64223         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64224         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64225         (This type really should be intptr_t, but that's a C99ism.)
64226         (_obstack_memcpy): Remove: all uses changed to memcpy.
64227         Include <string.h> unconditionally.
64228         (struct obstack): Assume __STDC__ for types of members
64229         chunkfun, freefun, extra_arg.
64230         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64231         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64232         obstack_begin, obstack_specify_allocation,
64233         obstack_specify_allocation_with_arg, obstack_chunkfun,
64234         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64235         Remove unprototyped decls and the macros that use them.
64236         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64237         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64238         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64239         (defined __STDC__ && __STDC__)]:
64240         Remove nonprototyped code.
64241         Include <stdlib.h> unconditionally.
64242         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64243         _obstack_allocated_p, _obstack_free, obstack_free,
64244         _obstack_memory_used, print_and_abort):
64245         Define using prototypes.
64246         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64247         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64248         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64249         obstack_next_free, obstack_object_size, obstack_room) [0]:
64250         Remove unused, unprototyped code.
64251
64252         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64253
64254         * lib/physmem.c (physmem_total, physmem_available, main): Define
64255         with prototypes.
64256
64257         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64258         (main): Define with a prototype.
64259
64260         * lib/posixver.c (getenv): Remove decl.
64261
64262         * lib/putenv.c (malloc): Returns void *, not char *.
64263         Include <string.h> unconditionally.
64264         (strchr, memcpy, NULL): Do not define.
64265
64266         * lib/readtokens.c: Include readtokens.h first, to test interface.
64267         Include <stdlib.h>, <string.h> unconditionally.
64268         (init_tokenbuffer): Define with a prototype.
64269
64270         * lib/regex.c (PARAMS): Remove.  All uses removed.
64271         All uses of _RE_ARGS removed, too.
64272         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64273         unconditionally.
64274         (bzero): Assume memset exists.
64275         (memcmp, memcpy, NULL): Remove.
64276         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64277         char, or assignments to local vars of type signed char.
64278         (init_syntax_once, PREFIX(extract_number_and_incr),
64279         PREFIX(print_partial_compiled_pattern),
64280         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64281         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64282         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64283         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64284         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64285         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64286         wcs_compile_range, byte_compile_range, truncate_wchar,
64287         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64288         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64289         count_mbs_length, wcs_re_match_2_internal,
64290         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64291         PREFIX(alt_match_null_string_p),
64292         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64293         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64294         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64295         now-unnecessary declaration, if any.
64296         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64297         regcomp, regexec):
64298         Remove now-unnecessary casts among pointer types.
64299         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64300
64301         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64302         (free): Remove decl.
64303
64304         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64305
64306         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64307         (free): Remove decl.
64308
64309         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64310         * lib/xgetcwd.c: Likewise.
64311
64312         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64313         (free): Remove decl.
64314
64315         * lib/strchrnul.c (strchrnul): Define with a prototype.
64316         Fix bug: c_in was not converted to char before searching.
64317
64318         The following changes are not K&R related:
64319
64320         * lib/group-member.h: Include <sys/types.h>, so that this file is
64321         self-contained.
64322         * lib/makepath.h: Likewise.
64323
64324         * lib/getusershell.c (readname, default_index, line_size, readname):
64325         Use size_t, not int, for sizes.
64326         (readname): If the size overflows, report an error instead of
64327         looping forever.
64328
64329 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64330
64331         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64332         libc.
64333
64334 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64335
64336         * README: New section: portability guidelines.
64337
64338 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64339
64340         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64341         C89 spec.
64342
64343 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64344
64345         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64346
64347 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64348
64349         Assume C89 or better; remove K&R cruft.
64350         A few of these changes were first proposed by Derek Robert Price
64351         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64352
64353         * lib/addext.c: Include <string.h> unconditionally.
64354         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64355         Don't declare getenv or malloc.
64356
64357         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64358         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64359         (NULL): Remove.
64360         (find_stack_direction, alloca): Use prototypes.
64361
64362         * lib/atexit.c (atexit): Define using a prototype.
64363
64364         * lib/basename.c, dirname.c, stripslash.c:
64365         Include <string.h> unconditionally.
64366
64367         * lib/bcopy.c: Include <stddef.h>.
64368         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64369
64370         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64371
64372         * lib/error.h (error, error_at_line, error_print_progname)
64373         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64374         * lib/error.c: Include error.h first, to check interface.
64375         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64376         (VA_START): Remove; all uses changeed to va_start.
64377         (exit, strerror): Remove decls.
64378         (error_print_progname): Prototype uncondionally.
64379         Don't include <errno.h>; no longer needed.
64380         (private_strerror): Remove.
64381         (error_tail): Always define.
64382         (error, error_at_line): Assume C89 or better; always use prototypes.
64383         * lib/fatal.c: Include "fatal.h" first, to test interface.
64384         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64385         (VA_START): Remove; all uses changed to va_start.
64386         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64387         this case.
64388         (exit): Remove decl.
64389         (fatal): Prototype unconditionally.  Assume va_start works.
64390         Abort at end, to pacify gcc.
64391
64392         * lib/euidaccess.c (main): Define with a prototype.
64393
64394         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64395
64396         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64397
64398         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64399         prototypes.
64400         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64401         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64402         (getenv): Remove decl.
64403         (fnmatch): Define using a prototype.
64404         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64405         (FCT): Define using a prototype.
64406
64407         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64408
64409         * lib/gethostname.c: Include <stddef.h>.
64410         (gethostname): Define with prototype.  Length is size_t, not int.
64411
64412 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64413
64414         Assume C89 or better; remove K&R cruft.
64415         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64416         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64417         string.h, getenv, malloc.
64418         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64419         headers.
64420         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64421         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64422         do not check for strerror.
64423         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64424         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64425         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64426         do not check for doprnt or vprintf.
64427         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64428         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64429
64430 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64431
64432         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64433         getversion.c should have been removed then, but was accidentally
64434         preserved.
64435
64436         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64437         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64438
64439 2003-09-08  Karl Berry  <karl@gnu.org>
64440
64441         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64442                 config, forget about prep.
64443
64444         * config/depcomp, missing: update from automake.
64445
64446 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64447
64448         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64449         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64450
64451 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64452
64453         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64454         copy_tm_result.  Bug reported by Simon Josefsson in
64455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64456
64457 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64458
64459         * m4/time_r.m4: New file.
64460         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64461         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64462         is. Check for timegm declaration.
64463         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64464         Do not check for gmtime_r.
64465         Replace mktime if __mktime_internal does not exist and if mktime
64466         hasn't been replaced already.
64467
64468 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64469
64470         * lib/time_r.c, lib/time_r.h: New files.
64471
64472         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64473         __localtime_r.
64474         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64475         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64476
64477         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64478         __gmtime_r.
64479         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64480         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64481         Include <time_r.h>.
64482
64483         * lib/timegm.c: Switch to glibc implementation, with the following
64484         changes:
64485         [defined HAVE_CONFIG_H]: Include <config.h>.
64486         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64487         (__mktime_internal) [!defined _LIBC]: New decl.
64488         (__gmtime_r) [!defined _LIBC]: New macro and function.
64489         (timegm): Use a prototype, since gnulib assumes C89.
64490         Do not bother declaring tmp to be const, as it's not really usefu.
64491         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64492         (timegm): Declare only if HAVE_DECL_TIMEGM.
64493
64494 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64495
64496         * MODULES.html.sh (func_all_modules): Add time_r.
64497         * modules/time_r: New file.
64498         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64499         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64500
64501 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64502
64503         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64504         Bug reported by Lute Kamstra in
64505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64506
64507         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64508         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64509         course with correspondingly smaller numbers for tomorrow and
64510         yesterday.  From Tadayoshi Funaba.  Originally installed into
64511         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64512         coreutils merge?).
64513
64514 2003-08-31  Simon Josefsson  <jas@extundo.com>
64515
64516         * modules/timegm: New file.
64517         * MODULES.html.sh (func_all_modules): Add timegm.
64518
64519 2003-08-31  Simon Josefsson  <jas@extundo.com>
64520
64521         * m4/timegm.m4: New file.
64522
64523 2003-08-31  Simon Josefsson  <jas@extundo.com>
64524
64525         * lib/timegm.h: New file.
64526         * lib/timegm.c: New file.  Based on
64527         wget-1.8.2/src/http.c:mktime_from_utc.
64528
64529 2003-08-31  Karl Berry  <karl@gnu.org>
64530
64531         * lib/argp.h: update from libc.
64532
64533 2003-08-28  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64536         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64537         followed by '#define fnmatch fnmatch_posix' gives an error.
64538
64539 2003-08-28  Bruno Haible  <bruno@clisp.org>
64540
64541         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64542         warning on QNX, which defines O_BINARY to 000000.
64543
64544 2003-08-27  Jim Meyering  <jim@meyering.net>
64545
64546         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64547         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64548         would fail after 32.  Reported by Danny Levinson.  Details here:
64549         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64550
64551 2003-08-24  Bruno Haible  <bruno@clisp.org>
64552
64553         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64554         MSVC7 <stdio.h> is included later.
64555
64556 2003-08-22  Simon Josefsson  <jas@extundo.com>
64557
64558         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64559
64560 2003-08-20  Karl Berry  <karl@gnu.org>
64561
64562         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64563
64564 2003-08-20  Bruno Haible  <bruno@clisp.org>
64565
64566         * modules/progname: New file.
64567         * MODULES.html.sh (func_all_modules): Add progname.
64568
64569 2003-08-20  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/progname.h: New file, from GNU gettext.
64572         * lib/progname.c: New file, from GNU gettext.
64573         * lib/progreloc.c: New file, from GNU gettext.
64574
64575 2003-08-19  Jim Meyering  <jim@meyering.net>
64576
64577         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64578         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64579
64580 2003-08-19  Bruno Haible  <bruno@clisp.org>
64581
64582         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64583         more.
64584
64585 2003-08-19  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/xstrdup.c: Assume <string.h> exists.
64588
64589 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64590
64591         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64592         in makefile rules.
64593
64594 2003-08-18  Jim Meyering  <jim@meyering.net>
64595
64596         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64597         * m4/lib-ld.m4: Likewise.
64598
64599 2003-08-18  Jim Meyering  <jim@meyering.net>
64600
64601         * lib/setenv.h: Indent nested cpp directive.
64602         * lib/vasnprintf.c: Remove trailing blanks.
64603
64604 2003-08-17  Simon Josefsson  <jas@extundo.com>
64605
64606         * modules/xstrndup: New file.
64607         * MODULES.html.sh (func_all_modules): Add xstrndup.
64608
64609 2003-08-17  Simon Josefsson  <jas@extundo.com>
64610
64611         * modules/argp: Fix autoconf macro name. Add more dependencies.
64612
64613 2003-08-17  Simon Josefsson  <jas@extundo.com>
64614
64615         * m4/xstrndup.m4: New file.
64616
64617 2003-08-17  Simon Josefsson  <jas@extundo.com>
64618
64619         * m4/argp.m4: New file.
64620
64621 2003-08-17  Simon Josefsson  <jas@extundo.com>
64622             Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/xstrndup.h: New file.
64625         * lib/xstrndup.c: New file.
64626
64627 2003-08-17  Bruno Haible  <bruno@clisp.org>
64628
64629         * modules/strndup (Files, Include): Add lib/strndup.h.
64630
64631 2003-08-17  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/euidaccess (Files): Add lib/euidaccess.h.
64634
64635 2003-08-17  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/strndup.h: New file.
64638
64639 2003-08-17  Bruno Haible  <bruno@clisp.org>
64640
64641         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64642         like AC_GNU_SOURCE.
64643         * modules/extensions (configure.ac): Comment out the invocation of
64644         gl_USE_SYSTEM_EXTENSIONS.
64645
64646 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64647
64648         Merges from coreutils, etc.
64649         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64650         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64651         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64652         fixing a typo.
64653         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64654         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64655
64656 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64657
64658         Document merge from coreutils.
64659         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64660         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64661         * modules/utime: Add m4/utimes-null.m4.
64662
64663 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64664
64665         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64666         space, undoing this 2003-08-12 change:
64667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64668
64669 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64670
64671         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64672         strtoul.c from libc, undoing this 2003-08-12 change:
64673         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64674
64675 2003-08-16  Jim Meyering  <jim@meyering.net>
64676
64677         Merges from coreutils.
64678         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64679         prefix.  Adjust cache variables similarly.  Create 500 rather than
64680         just 300 files, to exercise bug on Darwin6.5, too.
64681         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64682         $missing_dir.
64683         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64684         AM_SYS_POSIX_TERMIOS.
64685         Reported by mkc@mathdogs.com.
64686         Also change use of $am_cv_sys_posix_termios
64687         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64688         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64689         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64690         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64691         in /proc/mounts until it finds one with matching device number.  This
64692         is unnecessary when the FILE argument *is* a mount point.  No stat call
64693         is necessary in that case.  So, disable the statvfs-testing code on
64694         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64695         as RedHat bug# 84846.
64696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64697         to 1MB, so as not to render systems with no stack size limit (e.g.,
64698         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64699         Include <unistd.h>.  On some systems,
64700         it is required for the definition of _SC_PAGESIZE.
64701
64702 2003-08-16  Jim Meyering  <jim@meyering.net>
64703
64704         Merge from coreutils.
64705         * lib/xstrtoimax.c: #else #if -> #elif.
64706         * lib/xstrtoumax.c: Likewise.
64707
64708 2003-08-16  Jim Meyering  <jim@meyering.net>
64709
64710         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64711         * m4/utimes.m4: Removed.
64712         * m4/utimes-null.m4: Renamed from utimes.m4.
64713
64714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64715         to 1MB, so as not to render systems with no stack size limit (e.g.,
64716         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64717         Include <unistd.h>.  On some systems,
64718         it is required for the definition of _SC_PAGESIZE.
64719
64720 2003-08-16  Jim Meyering  <jim@meyering.net>
64721         and Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         Merges from coreutils, etc.
64724
64725         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64726         using the latest version from cvs.  This avoids problems with #line
64727         directives using a vendor (Sun) compiler.
64728         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64729         Don't set GETGROUPS_LIB here; now it's
64730         done via getgroups.m4's wrapper function.
64731         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64732         rather than just in sh-util/configure.in, so that the
64733         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64734         same.
64735         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64736         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64737         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64738         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64739         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64740         Remove code that is now done by the newly-required macros.
64741         Append $(EXEEXT) to DF_PROG.
64742         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64743         Do not invoke or require the following here,
64744         since prereq.m4 or some gnulib .m4 now does this for us:
64745         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64746         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64747         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64748         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64749         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64750         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64751         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64752         AC_FUNC_OBSTACK.
64753         Do not replace the following functions, as this is now the job
64754         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64755         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64756         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64757         atexit getpass, strdup, getpagesize.
64758         Replace 'raise'.
64759         Do not check for the following functions, as this is now the job
64760         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64761         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64762         setregid.
64763         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64764         Check for sys/sysctl.h.
64765         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64766         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64767         of checking for ssize_t ourselves.
64768
64769         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64770         Require every macro that gnulib/modules/* suggests for us.
64771         (jm_PREREQ_ADDEXT): New macro.
64772         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64773         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64774
64775         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64776         (gl_PHYSMEM): Use it.
64777         Also check for `table' function.
64778         Check for new headers and functions.
64779         Add check for sys/sysmp.h.
64780         With suggestions from Kaveh Ghazi.
64781         Ignore headers that are present but cannot be compiled.  This
64782         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64783         C 5.4.
64784
64785 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64786
64787         Document merge from coreutils.
64788         * modules/userspec: Depend on posixver.
64789         * modules/strftime: Depend on tzset.
64790
64791 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64792
64793         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64794         rather than tab, after '#' in shell-script copyright notices.
64795         Suggested by Bruno Haible.
64796
64797 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64798
64799         * config/srclist-update: Use three spaces, rather than tab, after '#'
64800         in shell-script copyright notices.  Suggested by Bruno Haible.
64801         Remove unnecessary parenthesization in regular expression.
64802
64803 2003-08-15  Jim Meyering  <jim@meyering.net>
64804
64805         Merge from coreutils.
64806         * lib/xgethostname.c: Include <stdlib.h>.
64807         (xghostname): Don't exit for anything other than memory-related
64808         failure; just return NULL.
64809         * lib/userspec.c: Include "posixver.h".
64810         (parse_user_spec): Accept `.' as a separator only
64811         in pre-POSIX-200112 mode.
64812         * lib/strtoimax.c: Use #elif rather than #else #if.
64813         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64814         Remove function, now that we can rely on a working tzset function.
64815         [!_LIBC]: Ensure that the required autoconf test has been run.
64816         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64817         Use underlying_strftime for %r.
64818         * lib/sha.c: Merge in some clean-up and optimization changes from
64819         glibc.
64820         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64821         Ensure that it is a multiple of 64.
64822         Rearrange loop exit tests so as to avoid performing an
64823         additional fread after encountering an error or EOF.
64824         * lib/realloc.c: Update copyright date.
64825
64826 2003-08-15  Jim Meyering  <jim@meyering.net>
64827         and Paul Eggert  <eggert@twinsun.com>
64828
64829         Merge from coreutils.
64830         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64831         member but strut utmpx does not.  Needed for AIX 4.3.3.
64832         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64833
64834 2003-08-15  Jim Meyering  <jim@meyering.net>
64835         and Paul Eggert  <eggert@cs.ucla.edu>
64836
64837         Merges from coreutils, etc.
64838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64839         Require gl_FUNC_TZSET_CLOBBER.
64840         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64841         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64842         members.
64843
64844 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64845
64846         Help the merge from coreutils.
64847         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64848         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64849         * m4/tzset.m4: Use it too.
64850
64851 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64852
64853         * modules/tzset: New file.
64854
64855 2003-08-14  Jim Meyering  <jim@meyering.net>
64856
64857         Merges from coreutils.
64858         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64859         variable names, rather than @FNMATCH_H@.
64860         * modules/alloca: Likewise for $(ALLOCA_H).
64861
64862         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64863         the three copies of the literal target, `fnmatch.h'.
64864         * modules/alloca (alloca.h): Likewise.
64865
64866 2003-08-14  Jim Meyering  <jim@meyering.net>
64867
64868         Merge from coreutils.
64869         * m4/tzset.m4: New file.
64870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64871         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64872         otherwise, AIX 5.1 systems would end up using the latter.
64873         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64874         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64875         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64876         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64877
64878 2003-08-14  Jim Meyering  <jim@meyering.net>
64879
64880         Merge from coreutils.
64881         * lib/obstack.h: Whitespace changes.
64882         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64883         and xcalloc return values.
64884         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64885         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64886         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64887         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64888         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64889         error from mntctl.
64890         Use mntctl's return value to drive the entry-processing loop, since
64891         we can't rely on the value of the vmt_length member in the last
64892         entry.  On some systems doing so could result in exhausting
64893         virtual memory.  Based in part on a patch from Mike Jetzer.
64894
64895 2003-08-14  Jim Meyering  <jim@meyering.net>
64896         and Paul Eggert  <eggert@twinsun.com>
64897
64898         Merges from coreutils, plus other fixes.
64899         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64900         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64901         for credits and details.  Thanks to Kaveh Ghazi for helping
64902         to keep these files in sync.
64903         (ARRAY_SIZE): Define it.
64904         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64905         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64906         (memcasecmp): Don't assume size_t fits in unsigned int.
64907         Remove casts and duplicate code.
64908         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64909         (memcpy): Remove definition.
64910         Merge in some clean-up and optimization changes from glibc.
64911         [BLOCKSIZE]: Move definition to top of file.
64912         Ensure that it is a multiple of 64.
64913         Rearrange loop exit tests so as to avoid performing an
64914         additional fread after encountering an error or EOF.
64915         * lib/md5.h (md5_uintptr): Define.
64916         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64917         return to the initial working directory.  Preserve errno
64918         for caller.
64919         * lib/idcache.c: Include "xalloc.h".
64920         (xmalloc, xrealloc): Remove decls.
64921         (getuser): Remove casts no longer required in C89.
64922         * lib/human.c: Include stdio.h, for sprintf.
64923         * lib/group-member.c: Include "xalloc.h".
64924         (xmalloc, xrealloc): Remove decls.
64925         (get_group_info): Remove casts no longer required in C89.
64926         * lib/getusershell.c (readname): Remove casts no longer required in
64927         C89.
64928         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64929         * lib/getline.c: Whitespace fix, from coreutils.
64930
64931 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64932
64933         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64934         Check for isascii.
64935
64936         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64937         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64938         Undo previous (whitespace-only) change.
64939
64940 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64941
64942         * lib/exclude.c: Include <ctype.h>
64943         (IN_CTYPE_DOMAIN): New macro.
64944         (is_space): New fn.
64945         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64946         and empty lines.
64947
64948         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64949         Undo previous (whitespace-only) change.
64950
64951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64952
64953         * config/srclist-update: Change update back to the old behavior,
64954         leaving whitespace alone.  Use one 'sed' command rather than a
64955         pipeline.
64956         (fixlicense): Now a variable, not a function.
64957         (remove_trailing_blanks): Remove.
64958         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64959         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64960         Undo previous (whitespace-only) change.
64961
64962 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64963
64964         Merge from coreutils.
64965         * modules/euidaccess: Add lib_SOURCES, include for new
64966         file euidaccess.h
64967
64968 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64969
64970         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64971         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64972         Normalize leading white space and remove trailing white space.
64973
64974         Merge from coreutils
64975         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64976
64977         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64978         0.12.1.  These files are now being upgraded automatically by
64979         ../config/srclist-update.
64980
64981 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64982
64983         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64984         Normalize leading white space and remove trailing white space.
64985         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64986         notice, as per ../config/srclist-update.
64987
64988         Merge from coreutils.
64989         * lib/euidaccess.h: New file.
64990         * lib/euidaccess.c: Include it.
64991         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64992         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64993         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64994
64995 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64996
64997         * config/srclist-update: Add copyright notice.
64998         (remove_id_lines, remove_trailing_blanks): New constants.
64999         (fixfile): Use them to normalize spacing a bit in copied files.
65000         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65001         Normalize leading white space and remove trailing white space.
65002
65003         * config/texinfo.tex: Sync with texinfo.
65004
65005         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65006         strtoul.c from libc, to merge coreutils whitespace changes.
65007
65008         * config/srclist.txt: Get the following m4 files from gettext:
65009         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65010         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65011         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65012         wint_t.m4.
65013
65014 2003-08-12  Karl Berry  <karl@gnu.org>
65015
65016         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65017         been made.
65018
65019 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65020
65021         * modules/gnu-source, m4/gnu-source.m4:
65022         Remove; we're assuming Autoconf 2.54 or later now.
65023         Suggested by Bruno Haible.
65024         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65025
65026 2003-08-11  Bruno Haible  <bruno@clisp.org>
65027
65028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65029
65030 2003-08-11  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65033         (vasnprintf): Use it instead of wcslen.
65034
65035 2003-08-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65038         value to ensure that _Bool promotes to int. Use #define for _Bool when
65039         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65040
65041 2003-08-10  Karl Berry  <karl@gnu.org>
65042
65043         * lib/regex.h: update from libc (whitespace fix).
65044
65045 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65046
65047         Merge some files from coreutils.  These changes were
65048         originally made by Jim Meyering.
65049         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65050         many older Unixes require this.
65051         * lib/alloca.c (alloca): Remove cast to argument of free;
65052         no longer needed in C89.
65053         * lib/alloca_.h, regex.h: Fix white space to match
65054         what GNU indent does.
65055
65056 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65057
65058         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65059         apparently Emacs's Unicode mode got confused before my 2003-08-05
65060         checkin.
65061
65062 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65063
65064         * m4/extensions.m4: New file.
65065         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65066         Require gl_USE_SYSTEM_EXTENSIONS.
65067         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65068         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65069
65070 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65071
65072         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65073         * modules/extensions, modules/gnu-source: New files.
65074         * modules/timespec, modules/unlocked-io: Depend on extensions.
65075
65076 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65077
65078         * modules/restrict: New file.
65079         * MODULES.html.sh (func_all_modules): Add restrict.
65080         * modules/regex: Depend on restrict.
65081
65082 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65083
65084         * m4/restrict.m4: New file.
65085         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65086
65087 2003-08-07  Bruno Haible  <bruno@clisp.org>
65088
65089         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65090         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65091
65092 2003-08-07  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65095         makes the module 'getndelim2' compatible with the module 'getline'.
65096
65097 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65098
65099         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65100         byte with "\201" to avoid glitches when editing that source file
65101         with multi-gnome-terminal.
65102
65103 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65104
65105         * lib/bumpalloc.h: Remove.
65106
65107 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65108
65109         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65110         * modules/bumpalloc: Remove.
65111
65112 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65113
65114         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65115         GNU coding style.
65116
65117         Merge from coreutils.
65118         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65119         1. From glibc.
65120         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65121         from Karl Berry, implemented by Jim Meyering.
65122         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65123         from Dmitry V. Levin.
65124         Remove anachronistic cast of xrealloc.
65125         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65126         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65127         type. Otherwise, it wouldn't compile with at least /bin/cc on
65128         ymp-cray-unicos9.0.2.X.
65129         Combine two mostly-identical uses of alloca into one.
65130         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65131
65132 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65133
65134         [From Emacs.]
65135
65136         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65137         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65138         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65139         obsolete NLIST_NAME_UNION.
65140         [__GNU__]: Undef BSD and FSCALE.
65141         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65142
65143 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65144
65145         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65146         an enum type, so that it's guaranteed to promote to int.  See:
65147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65148
65149 2003-08-03  Karl Berry  <karl@gnu.org>
65150
65151         * config/depcomp: update from automake.
65152
65153 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65154
65155         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65156         (strerror): Don't assume that a printable int fits in 14 bytes.
65157
65158 2003-07-31  Bruno Haible  <bruno@clisp.org>
65159
65160         * modules/getpass-gnu: New file.
65161         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65162
65163 2003-07-31  Bruno Haible  <bruno@clisp.org>
65164
65165         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65166
65167 2003-07-24  Karl Berry  <karl@gnu.org>
65168
65169         * config/missing: update from automake.
65170
65171 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65172             Bruno Haible  <bruno@clisp.org>
65173
65174         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65175         * lib/getline.c (getline, getdelim): Likewise.
65176         Remove _GNU_SOURCE define; now it's defined in config.h through
65177         m4/getline.m4.
65178
65179 2003-07-23  Karl Berry  <karl@gnu.org>
65180
65181         * config/config.sub: update from prep.
65182
65183 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65184
65185         * modules/xalloc (Depends-on): Add exitfail.
65186         * modules/xmemcoll: Likewise.
65187
65188 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65189
65190         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65191         over-parenthesization in macros.
65192
65193         Sync with coreutils.
65194
65195         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65196         required by C99.
65197
65198         Use `exit_failure' for xalloc and xmemcoll instead of their own
65199         private exit-failure variables.
65200         * lib/xalloc.h (xalloc_exit_failure): Remove.
65201         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65202         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65203         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65204         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65205         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65206
65207 2003-07-20  Jim Meyering  <jim@meyering.net>
65208
65209         * modules/closeout (Depends-on): Add exitfail.
65210         Suggestion from Bruno Haible.
65211
65212 2003-07-19  Karl Berry  <karl@gnu.org>
65213
65214         * config/config.sub: update from prep.
65215
65216 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65217
65218         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65219         Remove.
65220         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65221         to test that it can stand by itself.  Include "exitfail.h".
65222         Clients should set exit_failure instead.
65223         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65224
65225 2003-07-18  Bruno Haible  <bruno@clisp.org>
65226
65227         * modules/getndelim2: New file.
65228         * modules/getline: Share files with module getndelim2.
65229         * modules/getnline: Depend on getndelim2 instead of sharing files with
65230         it. Add getnline.c to lib_SOURCES.
65231         * MODULES.html.sh (func_all_modules): Add getndelim2.
65232
65233 2003-07-18  Bruno Haible  <bruno@clisp.org>
65234
65235         * m4/getndelim2.m4: New file.
65236         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65237         invoke gl_PREREQ_GETNDELIM2.
65238         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65239         gl_PREREQ_GETNDELIM2.
65240         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65241         gl_GETNDELIM2.
65242
65243 2003-07-18  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/getndelim2.h: New file.
65246         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65247         getndelim2.h.
65248         (getndelim2): Make non-static. Change return type to ssize_t.
65249         * lib/getline.h: Change argument names.
65250         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65251         * lib/getnline.c: Include getndelim2.h.
65252
65253 2003-07-18  Andreas Schwab  <schwab@suse.de>
65254
65255         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65256
65257 2003-07-17  Karl Berry  <karl@gnu.org>
65258
65259         * config/config.sub: update from prep.
65260
65261 2003-07-17  Bruno Haible  <bruno@clisp.org>
65262
65263         * modules/getnline: New file.
65264         * modules/getline: Add lib/getndelim2.c to source file list.
65265         * MODULES.html.sh (func_all_modules): Add getnline.
65266
65267 2003-07-17  Bruno Haible  <bruno@clisp.org>
65268
65269         * m4/getnline.m4: New file.
65270
65271 2003-07-17  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/Makefile.am.in: Remove file.
65274         * m4/Makefile.am: Remove file.
65275         * m4/Makefile.in: Remove file.
65276
65277 2003-07-17  Bruno Haible  <bruno@clisp.org>
65278
65279         * lib/getnline.h: New file.
65280         * lib/getnline.c: New file.
65281         * lib/getndelim2.c: New file, extracted from getline.c.
65282         (getndelim2): Renamed from getdelim2, with added nmax argument.
65283         * lib/getline.c: Include getndelim2.c.
65284         (getdelim2): Moved out to getndelim2.c.
65285         (getline, getdelim): Update.
65286
65287 2003-07-17  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/Makefile.am: Remove file.
65290         * lib/Makefile.in: Remove file.
65291
65292 2003-07-17  Bruno Haible  <bruno@clisp.org>
65293
65294         * configure.in: Remove file.
65295         * Makefile.in: Remove file.
65296
65297 2003-07-17  Bruno Haible  <bruno@clisp.org>
65298
65299         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65300
65301 2003-07-16  Karl Berry  <karl@gnu.org>
65302
65303         * config/srclist-update: was running fixlicense twice, which caused
65304                 texinfo.tex to be nullified for some reason.  Simplify,
65305                 $gplsrc is no longer needed as far as I can see?
65306
65307 2003-07-16  Jim Meyering  <jim@meyering.net>
65308
65309         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65310
65311 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65312
65313         * config/srclist.txt: Get the following files from gettext-runtime/intl
65314         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65315         ref-del.sin.  From Bruno Haible.
65316         * config/srclist-update (fixfile): Change grep pattern again, since the
65317         previous fix didn't work (there was another trailing $).  Use
65318         '[$]' to escape the $s.
65319
65320 2003-07-15  Karl Berry  <karl@gnu.org>
65321
65322         * lib/vasnprintf.c: update from gettext.
65323
65324 2003-07-15  Karl Berry  <karl@gnu.org>
65325
65326         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65327         gets expanded when surrounded by '$'.
65328
65329 2003-07-15  Jim Meyering  <jim@meyering.net>
65330
65331         * modules/save-cwd: Don't depend on error.  From Derek Price.
65332
65333 2003-07-15  Jim Meyering  <jim@meyering.net>
65334
65335         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65336
65337 2003-07-14  Simon Josefsson  <jas@extundo.com>
65338
65339         * modules/mempcpy: New file.
65340         * MODULES.html.sh (func_all_modules): Add mempcpy.
65341
65342 2003-07-14  Simon Josefsson  <jas@extundo.com>
65343
65344         * m4/mempcpy.m4: New file.
65345
65346 2003-07-14  Simon Josefsson  <jas@extundo.com>
65347
65348         * lib/mempcpy.h: New file.
65349         * lib/mempcpy.c: New file.
65350
65351 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65352
65353         * modules/getdate, modules/posixtm: Depend on mktime.
65354
65355 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65356
65357         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65358         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65359         unicodeio.c, unicodeio.h, unlocked-io.h:
65360         Switch from LGPL to GPL.
65361
65362 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65363
65364         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65365         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65366         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65367         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65368         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65369         updated automatically by ../config/srclist-update.  This changes
65370         their license from LPGL to GPL.
65371
65372 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65373
65374         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65375         assumed to refer to the root of the most recent stable gettext version.
65376         * config/srclistvars.sh: Add defaults for eggert.
65377         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65378         Match "This program" as well as "The program".  This is needed
65379         for gettext.
65380
65381 2003-07-14  Jim Meyering  <jim@meyering.net>
65382
65383         Don't emit diagnostics.  Let callers do that.
65384         * lib/save-cwd.c: Don't include "error.h".
65385         (save_cwd): Don't call error.  Ensure that errno is valid
65386         when returning nonzero.
65387
65388         * lib/save-cwd.h (restore_cwd): Update prototype.
65389         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65390         Simplify.  Don't call error upon failure.  Let callers do that.
65391         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65392         when auditing is enabled.  But don't bother updating the #if.
65393
65394 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65395
65396         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65397         it breaks C++ compilation.
65398         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65399
65400 2003-07-10  Simon Josefsson  <jas@extundo.com>
65401
65402         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65403
65404 2003-07-10  Jim Meyering  <jim@meyering.net>
65405
65406         * m4/clock_time.m4: Remove trailing blank.
65407         * m4/intmax_t.m4: Likewise.
65408
65409 2003-07-10  Jim Meyering  <jim@meyering.net>
65410
65411         * lib/vasnprintf.c: Remove trailing blanks.
65412         Make cpp indentation consistent.
65413
65414 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65415
65416         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65417         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65418         Switch from LGPL to GPL.
65419
65420 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65421
65422         * config/srclist.txt: Sort sublists.  Add
65423         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65424         that differ from gnulib for one reason or another; we'd like this list
65425         to be smaller but for now let's document what we have.
65426
65427 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65428
65429         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65430         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65431         and sweeter "eval x=$x".
65432         * config/srclist.txt: Get lib/argp* from glibc.
65433
65434 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65435
65436         * lib/mktime.c: Fix some boundary cases and remove need for floating
65437         point.
65438
65439         Issue a compile-time diagnostic if time_t is floating point, or if
65440         two's complement arithmetic is not in effect, or if arithmetic
65441         right shift does not propagate the sign.  These assumptions were
65442         all in the original code but they weren't checked.
65443
65444         (TIME_T_MIDPOINT, verify): New macros.
65445         (__isleap): Remove; it has integer overflow problems.
65446         (leapyear): New function, without those problems.
65447         (ydhms_tm_diff): Remove; splitting into two parts.
65448         (ydhms_diff): New function, containing the arithmetic part of
65449         the old ydhms_tm_diff function.  Issue a compile-time
65450         diagnostic if we are not using C99 integer division.
65451         Avoid casts when possible.
65452         (guess_time_tm): New function, containing the checking part of
65453         the old ydhms_tm_diff function.  Return the new value, rather than
65454         the difference between it and the old.  Accept a new argument T
65455         so that *T specifies the old value.  Check for overflow in the result.
65456
65457         (__mktime_internal): Use a time_t offset, not a long int offset.
65458         This undoes the 2003-06-04 change, which is no longer needed now
65459         that we have better overflow checking.
65460         (localtime_offset): Likewise.
65461
65462         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65463         and long are 64-bit but int is only 32-bit.
65464         (ydhms_diff): Use long int to store year1 and yday1.
65465         Issue a compile-time diagnostic if long int is not wide enough.
65466
65467         (__mktime_internal): Use long int to store adjusted year and yday.
65468         Use plain C rather than preprocessor commands, if that doesn't
65469         affect efficiency.
65470         Check for overflow (and try to repair) after each probe
65471         rather than checking only at the very end.  This avoids some bugs
65472         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65473         does not equal GMT offset at maximum time).
65474         Use integer to check for overflow rather than floating point; this
65475         is more portable to non-IEEE hosts, and is a tad faster.
65476         When we detect that we are oscillating between two values,
65477         don't check whether tm_isdst has the requested value, since
65478         we already know the answer.  When tm_isdst has the wrong value,
65479         use a different heuristic to find the right one, based on the
65480         extreme values actually observed in practice in tz2003a,
65481         rather than the (overly optimistic) "previous 3 calendar quarters".
65482
65483         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65484         "T const" to accommodate glibc style.
65485         (check_result): Use less-confusing report format.  "long" -> "long int.
65486         (main): Likewise.
65487         Don't loop if the iteration overflows time_t.
65488         Allow a negative step in the iteration.
65489
65490 2003-07-06  Karl Berry  <karl@gnu.org>
65491
65492         * config/depcomp: update from automake.
65493         * config/config.sub: update from prep.
65494
65495 2003-07-03  Karl Berry  <karl@gnu.org>
65496
65497         * config/config.guess: update from prep.
65498
65499 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65500
65501         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65502         xreadlink.c now includes it unconditionally.
65503
65504 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65505
65506         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65507         having it depend on HAVE_SYS_TYPES_H.
65508
65509 2003-07-01  Bruno Haible  <bruno@clisp.org>
65510
65511         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65512         <sys/types.h> should be sufficient.
65513         Reported by Paul Eggert.
65514
65515 2003-06-26  Karl Berry  <karl@gnu.org>
65516
65517         * config/depcomp: update from automake.
65518
65519 2003-06-26  Bruno Haible  <bruno@clisp.org>
65520
65521         * modules/human: Depend on module stdbool.
65522
65523 2003-06-25  Bruno Haible  <bruno@clisp.org>
65524
65525         * modules/readlink: New file.
65526         * modules/xreadlink: Depend on it.
65527         * MODULES.html.sh (func_all_modules): Add readlink.
65528
65529 2003-06-25  Bruno Haible  <bruno@clisp.org>
65530
65531         * m4/readlink.m4: New file.
65532
65533 2003-06-25  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/readlink.c: New file.
65536
65537 2003-06-22  Karl Berry  <karl@gnu.org>
65538
65539         * config/srclist.txt: update mkinstalldirs from automake.
65540         * config/mkinstalldirs: update.
65541
65542 2003-06-22  Bruno Haible  <bruno@clisp.org>
65543
65544         Portability to mingw32.
65545         * m4/ssize_t.m4: New file, from GNU gettext.
65546         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65547         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65548
65549 2003-06-22  Bruno Haible  <bruno@clisp.org>
65550
65551         * modules/safe-read: Add m4/ssize_t.m4.
65552         * modules/xreadlink: Add m4/ssize_t.m4.
65553
65554 2003-06-20  Bruno Haible  <bruno@clisp.org>
65555
65556         Assume C89, so PARAMS isn't needed.
65557         * lib/unicodeio.h (PARAMS): Remove.
65558         * lib/unicodeio.c: Don't use PARAMS.
65559
65560 2003-06-18  Karl Berry  <karl@gnu.org>
65561
65562         * config/config.{guess,sub}: update from prep.
65563
65564 2003-06-18  Jim Meyering  <jim@meyering.net>
65565
65566         Merge changes from coreutils.
65567         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65568         Remove explicit declarations of xmalloc and realloc.
65569         Include xalloc.h.
65570         (read_utmp): Remove anachronistic cast of xmalloc.
65571
65572 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65573
65574         Assume C89, so PARAMS isn't needed.
65575         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65576         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65577         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65578         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65579         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65580         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65581         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65582         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65583         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65584         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65585         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65586         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65587         no longer needed. Anyway, config.h should always be included before any
65588         other file.
65589
65590 2003-06-11  Simon Josefsson  <jas@extundo.com>
65591
65592         * modules/sysexits: New file.
65593         * MODULES.html.sh (func_all_modules): Add sysexits.
65594
65595 2003-06-11  Simon Josefsson  <jas@extundo.com>
65596
65597         * lib/sysexit_.h: New file.
65598
65599 2003-06-11  Derek Price  <derek@ximbiot.com>
65600
65601         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65602         necessary.
65603
65604 2003-06-11  Bruno Haible  <bruno@clisp.org>
65605
65606         * m4/sysexits.m4: New file.
65607
65608 2003-06-10  Simon Josefsson  <jas@extundo.com>
65609
65610         * lib/argp.h: New file, from glibc.
65611         * lib/argp-ba.c: New file, from glibc.
65612         * lib/argp-eexst.c: New file, from glibc.
65613         * lib/argp-fmtstream.c: New file, from glibc.
65614         * lib/argp-fmtstream.h: New file, from glibc.
65615         * lib/argp-fs-xinl.c: New file, from glibc.
65616         * lib/argp-help.c: New file, from glibc.
65617         * lib/argp-namefrob.h: New file, from glibc.
65618         * lib/argp-parse.c: New file, from glibc.
65619         * lib/argp-pv.c: New file, from glibc.
65620         * lib/argp-pvh.c: New file, from glibc.
65621         * lib/argp-xinl.c: New file, from glibc.
65622
65623 2003-06-10  Simon Josefsson  <jas@extundo.com>
65624
65625         * modules/strchrnul: New file.
65626
65627 2003-06-10  Simon Josefsson  <jas@extundo.com>
65628
65629         * modules/argp: New file.
65630
65631 2003-06-10  Simon Josefsson  <jas@extundo.com>
65632
65633         * m4/strchrnul.m4: New file.
65634
65635 2003-06-10  Simon Josefsson  <jas@extundo.com>
65636
65637         * lib/strchrnul.h: New file.
65638         * lib/strchrnul.c: New file.
65639
65640 2003-06-10  Bruno Haible  <bruno@clisp.org>
65641
65642         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65643
65644 2003-06-07  Karl Berry  <karl@gnu.org>
65645
65646         * config/config.{guess,sub}: update from prep.
65647
65648 2003-06-07  Jim Meyering  <jim@meyering.net>
65649
65650         * modules/strtod: Use $(...) notation, not @...@ for
65651         AC_REPLACE'd variables.
65652         * modules/localcharset: Likewise.
65653
65654 2003-06-07  Jim Meyering  <jim@meyering.net>
65655
65656         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65657         in place of my name in the copyright comment.
65658         Remove definition and uses of __P.
65659
65660         From coreutils.
65661         * lib/stat.c: Don't declare xmalloc explicitly.
65662         Instead, include "xalloc.h".
65663         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65664         xrealloc, and xcalloc return values.
65665         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65666         Improve comment.
65667         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65668
65669 2003-06-07  Bruno Haible  <bruno@clisp.org>
65670
65671         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65672         avoid AC_CONFIG_LINKS.
65673         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65674         fnmatch.h, to avoid AC_CONFIG_LINKS.
65675         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65676
65677 2003-06-07  Bruno Haible  <bruno@clisp.org>
65678
65679         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65680         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65681         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65682         directory.
65683         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65684         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65685         directory.
65686
65687 2003-06-06  Jim Meyering  <jim@meyering.net>
65688
65689         Merge from coreutils.
65690         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65691         Consolidate declarations and initializations of *_base* locals.
65692
65693         Merge from coreutils.
65694         This avoids a core dump on systems without GNU putenv,
65695         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65696         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65697         (unsetenv): New static function, from GNU libc.
65698         (rpl_putenv): Use it.
65699
65700         * lib/modechange.c: Remove trailing blanks.
65701
65702         Merge from coreutils.
65703         * lib/fsusage.c: Remove declaration of statfs.
65704         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65705
65706         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65707
65708 2003-06-06  Jim Meyering  <jim@meyering.net>
65709
65710         * lib/stdbool_.h: Renamed from stdbool.h.in.
65711
65712 2003-06-06  Jim Meyering  <jim@meyering.net>
65713             Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65716         Adjust Makefile.am snippet not to redirect directly to target.
65717         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65718
65719 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65720
65721         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65722         mismatch, look in future quarters as well as past.  This fixes a
65723         bug when processing fall-backwards gaps immediately after a long
65724         period of daylight-saving time.
65725
65726         * lib/mktime.c: Assume freestanding C89 or better.
65727         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65728         (__P): Remove; not used.
65729         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65730         (mktime, not_equal_tm, print_tm, check_result,
65731         main): Use prototypes.  Use const * where appropriate.
65732         (main): Fix typo in testing code that uncovered by above changes.
65733         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65734
65735 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65736
65737         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65738         locale.h, localeconv.  This merges changes from coreutils.
65739
65740         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65741         It can be removed after the next Autoconf is released.
65742         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65743         needed.
65744
65745 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65746
65747         * lib/mktime.c: Fix Debian bug 177940
65748         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65749         (localtime_offset): Now long int, not time_t, because we want it
65750         to be guaranteed to be signed.  All uses changed.
65751         (__mktime_internal): If overflow would occur when adding offset,
65752         don't add it.
65753
65754         Merge 'human' changes from coreutils.  Rewrite to support
65755         locale-specific notations like thousands separators.
65756         * lib/human.c: Simplify authorship notice.
65757         Include human.h immediately after config.h.
65758         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65759         <limits.h>: Do not include, since human.h does.
65760         (SIZE_MAX, UINTMAX_MAX): New macros.
65761         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65762         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65763         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65764         (power_letter): Renamed from suffixes.
65765         (generate_suffix_backwards): Remove.
65766         (adjust_value): Now takes int style (because of human.h changes)
65767         and long double value (for greater precision on some platforms).
65768         (group_number): New function.
65769         (human_readable): Use it.  Use integer options, not enum.
65770         Put the options before the sizes in the arg list.
65771         Support all the new options.
65772         The old human_readable function has been removed;
65773         use inttostr.h instead.
65774         (human_readable, default_block_size, humblock):
65775         Use uintmax_t, not int, for block sizes.
65776         (human_readable_inexact, block_size_types): Remove.
65777         (block_size_opts): New constant.
65778         (human_options): Renamed from human_block_size, with new signature
65779         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65780         * lib/human.h: Add copyright and authorship notice.
65781         Include <limits.h> and <stdbool.h> unconditionally.
65782         (PARAMS): Remove.  All uses removed.
65783         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65784         (enum human_inexact_style): Remove tag; now a nameless enum.
65785         (human_floor, human_ceiling, human_round_to_even): Now have
65786         values 2, 0, 1 rather than -1, 1, 0.
65787         (human_group_digits, human_suppress_point_zero, human_autoscale,
65788         human_base_1024, human_SI, human_B): New constants.
65789         (human_readable_inexact, human_block_size): Remove.
65790         (human_readable): Size args are now uintmax_t, not int.
65791         (human_options): New decl.
65792
65793         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65794         unnecessary now that we assume C89 or better.  This change
65795         imported from coreutils.
65796
65797         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65798         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65799         in the 2003-05-30 sync from glibc.
65800
65801         .h files should stand alone, but we shouldn't include <sys/types.h>
65802         if we can get away with just <stddef.h>.
65803
65804         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65805         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65806         rather than <sys/types.h>, as we merely need size_t.
65807         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65808         to get size_t.
65809         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65810         Include <stdio.h>, to get FILE.
65811         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65812         memcasecmp.h has included <stddef.h> and all we need is size_t.
65813         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65814         our interface, instead of including <sys/types.h>
65815
65816 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65817
65818         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65819         now, as glibc mktime is buggy on non-glibc systems.
65820
65821 2003-06-03  Karl Berry  <karl@gnu.org>
65822
65823         * config/config.sub: update from prep.
65824
65825 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65826
65827         [from coreutils]
65828         Fix some minor time-related bugs with POSIX time arguments.
65829         Some valid time stamps were being rejected (notably -1, and
65830         time stamps before 1900 on 64-bit hosts).  And some invalid
65831         time stamps were being accepted, e.g. September 31.
65832
65833         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65834         that we can return (time_t) -1 successfully.
65835         * lib/posixtm.c: Likewise.
65836         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65837         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65838         (t): Remove static var.
65839         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65840         of static var.  All uses changed.
65841         (year): Do not reject years before 1900; they can occur with
65842         64-bit time_t.
65843         (posix_time_parse): Do not check for out-of-range components;
65844         that is now the caller's responsibility, since our checks were
65845         only approximations.
65846         (posixtime): Use mktime to check for out-of-range components,
65847         since it knows them exactly.
65848         If mktime returns (time_t) -1, check whether an error actually occurred
65849         by invoking localtime on -1.
65850         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65851         posixtime failures better.
65852         Improve the test data (in comments only).
65853
65854 2003-06-02  Karl Berry  <karl@gnu.org>
65855
65856         * config/mkinstalldirs (version): new variable.
65857         (--version): new option.
65858         (usage): improve message.
65859
65860 2003-05-30  Karl Berry  <karl@gnu.org>
65861
65862         * lib/mktime.c: update from libc.
65863
65864 2003-05-30  Bruno Haible  <bruno@clisp.org>
65865
65866         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65867         * config/config.rpath: Upgrade to gettext-0.12.1.
65868
65869 2003-05-30  Bruno Haible  <bruno@clisp.org>
65870
65871         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65872         * m4/nls.m4: New file, from gettext-0.12.1.
65873         * m4/po.m4: New file, from gettext-0.12.1.
65874         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65875
65876 2003-05-30  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65879         * lib/localcharset.h: Likewise.
65880         * lib/localcharset.c: Likewise.
65881
65882 2003-05-29  Karl Berry  <karl@gnu.org>
65883
65884         * config/config.rpath: update from gettext.
65885
65886 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65887
65888         Assume the headers required for C89 freestanding compilers.
65889         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65890         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65891         * m4/human.m4 (gl_HUMAN): Likewise.
65892         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65893         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65894         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65895         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65897         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65898
65899 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65900
65901         Assume the headers required for C89 freestanding compilers.
65902         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65903         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65904         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65905         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65906         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65907         define, since <limits.h> is guaranteed to do that.
65908         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65909         * lib/exclude.c: Include <stdbool.h> unconditionally.
65910         * lib/tempname.c: Include <stddef.h> unconditionally.
65911         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65912         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65913         <stddef.h> does that.
65914         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65915         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65916         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65917         needed.
65918         * lib/xstrtol.c: Likewise.
65919         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65920         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65921
65922         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65923         warnings on some platforms.
65924
65925         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65926         arbitrarily.
65927
65928 2003-05-26  Jim Meyering  <jim@meyering.net>
65929
65930         Merge in a change from coreutils:
65931         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65932         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65933         that condition, rather than `-1' which is slightly misleading.
65934         Change the name of the cache variable to have the gl_ prefix.
65935         Prompted by a patch from Richard Dawe for DJGPP.
65936
65937 2003-05-24  Karl Berry  <karl@gnu.org>
65938
65939         * config/config.guess: update from prep.
65940
65941 2003-05-22  Karl Berry  <karl@gnu.org>
65942
65943         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65944
65945 2003-05-20  Karl Berry  <karl@gnu.org>
65946
65947         * config/config.guess: update from prep.
65948
65949 2003-05-18  Karl Berry  <karl@gnu.org>
65950
65951         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65952         might actually be set by the user.
65953
65954         * config/depcomp, install-sh, mdate-sh: update from automake.
65955
65956 2003-05-17  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65959         invalid expansion for AC_EGREP_CPP.
65960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65961         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65962         Suggested by Akim Demaille <akim@epita.fr> in
65963         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65964
65965 2003-05-12  Jim Meyering  <jim@meyering.net>
65966
65967         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65968         the space-padded-by-default conversion specifiers, %e, %k, %l.
65969
65970 2003-05-12  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65973         the string is longer than 4 KB.
65974
65975 2003-05-11  Karl Berry  <karl@gnu.org>
65976
65977         * config/config.{guess,sub}: update from prep.
65978
65979 2003-05-09  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/error: Add m4/strerror_r.m4 to file list.
65982
65983 2003-05-03  Bruno Haible  <bruno@clisp.org>
65984
65985         Upgrade to Unicode-4.0.
65986         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65987         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65988         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65989         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65990         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65991         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65992         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65993         Change width of U+E0100..U+E01EF from 1 to 0.
65994
65995 2003-04-25  Jim Meyering  <jim@meyering.net>
65996
65997         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65998         of type size_t, not int.
65999
66000 2003-04-25  Bruno Haible  <bruno@clisp.org>
66001
66002         * lib/copy-file.c: Include <stddef.h>, for size_t.
66003
66004 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66005
66006         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66007         code which expansion is under static control.  Patch imported from
66008         Akim Demaille's patch to Bison; see
66009         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66010
66011 2003-04-14  Bruno Haible  <bruno@clisp.org>
66012
66013         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66014
66015 2003-04-11  Jim Meyering  <jim@meyering.net>
66016
66017         Merge changes from Coreutils.
66018
66019         2003-03-22  Jim Meyering  <jim@meyering.net>
66020
66021         * lib/strftime.c (widen): Cast alloca return value to proper type.
66022
66023         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66024
66025         From GNU libc.
66026         * lib/strftime.c (my_strftime): Handle very large width
66027         specifications for numeric values correctly.  Improve checks for
66028         overflow.
66029
66030         2003-01-19  Jim Meyering  <jim@meyering.net>
66031
66032         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66033         definitions.
66034         (nl_get_alt_digit) [! defined my_strftime]: Define.
66035         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66036         _nl_get_alt_digit and _nl_get_walt_digit.
66037
66038         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66039         libc. These changes have no effect outside of _LIBC.
66040
66041 2003-04-10  Bruno Haible  <bruno@clisp.org>
66042
66043         * modules/findprog: New file.
66044         * MODULES.html.sh (func_all_modules): Add it.
66045
66046 2003-04-10  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/findprog.m4: New file.
66049         * m4/eaccess.m4: New file.
66050
66051 2003-04-10  Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/findprog.h: New file, from GNU gettext.
66054         * lib/findprog.c: New file, from GNU gettext.
66055
66056 2003-04-05  Jim Meyering  <jim@meyering.net>
66057
66058         Merge changes from Coreutils.
66059
66060         * lib/exclude.h (PARAMS): Remove definition and uses.
66061         * lib/exclude.c: Remove uses of `PARAMS'.
66062
66063         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66064         Add test-cases for DOS filenames. Declare program_name.
66065         (main): Set up program_name.  Patch by Rich Dawe.
66066
66067         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66068         error from mntctl.
66069         Use mntctl's return value to drive the entry-processing loop, since
66070         we can't rely on the value of the vmt_length member in the last
66071         entry.  On some systems doing so could result in exhausting
66072         virtual memory.  Based in part on a patch from Mike Jetzer.
66073
66074 2003-04-04  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/linebreak: New file.
66077         * MODULES.html.sh (func_all_modules): Add it.
66078
66079 2003-04-04  Bruno Haible  <bruno@clisp.org>
66080
66081         * m4/linebreak.m4: New file.
66082
66083 2003-04-04  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/linebreak.h: New file, from GNU gettext.
66086         * lib/linebreak.c: New file, from GNU gettext with slight
66087         modifications.
66088         * lib/lbrkprop.h: New file, from GNU gettext.
66089
66090 2003-04-03  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/utf8-ucs4: New file.
66093         * modules/utf16-ucs4: New file.
66094         * modules/ucs4-utf8: New file.
66095         * modules/ucs4-utf16: New file.
66096         * MODULES.html.sh (func_all_modules): Add them.
66097
66098 2003-04-03  Bruno Haible  <bruno@clisp.org>
66099
66100         * m4/utf-ucs4.m4: New file.
66101         * m4/ucs4-utf.m4: New file.
66102
66103 2003-04-03  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/utf8-ucs4.h: New file, from GNU gettext.
66106         * lib/utf16-ucs4.h: New file, from GNU gettext.
66107         * lib/ucs4-utf8.h: New file, from GNU gettext.
66108         * lib/ucs4-utf16.h: New file, from GNU gettext.
66109
66110 2003-04-02  Bruno Haible  <bruno@clisp.org>
66111
66112         * modules/binary-io: New file.
66113         * MODULES.html.sh (func_all_modules): Add it.
66114
66115 2003-04-02  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/binary-io.h: New file, from GNU gettext.
66118
66119 2003-04-01  Bruno Haible  <bruno@clisp.org>
66120
66121         * modules/pathname: New file.
66122         * MODULES.html.sh (func_all_modules): Add it.
66123
66124 2003-04-01  Bruno Haible  <bruno@clisp.org>
66125
66126         * lib/pathname.h: New file, from GNU gettext.
66127         * lib/concatpath.c: New file, from GNU gettext.
66128
66129 2003-03-30  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66132
66133 2003-03-30  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66136         function chown() doesn't exist.
66137
66138 2003-03-28  Bruno Haible  <bruno@clisp.org>
66139
66140         * modules/copy-file: New file.
66141         * MODULES.html.sh (func_all_modules): Add it.
66142
66143 2003-03-28  Bruno Haible  <bruno@clisp.org>
66144
66145         * m4/copy-file.m4: New file.
66146
66147 2003-03-28  Bruno Haible  <bruno@clisp.org>
66148
66149         * lib/copy-file.h: New file, from GNU gettext.
66150         * lib/copy-file.c: New file, from GNU gettext.
66151
66152 2003-03-18  Jim Meyering  <jim@meyering.net>
66153
66154         * lib/quote.c (quote_n): Fix typo in comment.
66155
66156 2003-03-18  Bruno Haible  <bruno@clisp.org>
66157
66158         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66159         checking.
66160         * m4/onceonly_2_57.m4: Likewise.
66161
66162 2003-03-17  Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66165         (m4_quote): Remove macro.
66166         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66167
66168 2003-03-14  Jim Meyering  <jim@meyering.net>
66169
66170         Merge changes from Coreutils.
66171         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66172         to be const, in order to avoid warnings.
66173         (obstack_room): Likewise.
66174         (obstack_empty_p): Likewise.
66175
66176 2003-03-14  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66179         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66180
66181 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66182
66183         Merge changes from Bison.
66184         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66185         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66186         when compiling Bison 1.875's `bitset bset = obstack_alloc
66187         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66188         * lib/hash.c: Include <stdbool.h> unconditionally.
66189
66190 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66191
66192         * m4/onceonly.m4 (m4_quote): New macro.
66193         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66194         Quote AC_FOREACH variable-expansions properly.
66195
66196 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66197
66198         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66199
66200 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66201
66202         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66203         Reported by Bruce Becker; see:
66204         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66205
66206 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66207             Bruno Haible  <bruno@clisp.org>
66208
66209         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66210         Reported by John Hughes, see
66211         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66212
66213 2003-02-20  Bruno Haible  <bruno@clisp.org>
66214
66215         * MODULES.html.sh (func_all_modules): Add poll.
66216
66217 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66218
66219         * modules/poll: New file.
66220
66221 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66222
66223         * lib/poll_.h: New file.
66224         * lib/poll.c: New file.
66225
66226 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66227
66228         * m4/poll.m4: New file.
66229
66230 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66231
66232         * modules/mathl: New file.
66233
66234 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66235
66236         * lib/mathl.h: New file.
66237         * lib/acosl.c: New file.
66238         * lib/asinl.c: New file.
66239         * lib/atanl.c: New file.
66240         * lib/ceill.c: New file.
66241         * lib/cosl.c: New file.
66242         * lib/expl.c: New file.
66243         * lib/floorl.c: New file.
66244         * lib/frexpl.c: New file.
66245         * lib/ldexpl.c: New file.
66246         * lib/logl.c: New file.
66247         * lib/sincosl.c: New file.
66248         * lib/sinl.c: New file.
66249         * lib/sqrtl.c: New file.
66250         * lib/tanl.c: New file.
66251         * lib/trigl.c: New file.
66252         * lib/trigl.h: New file.
66253
66254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66255
66256         * m4/mathl.m4: New file.
66257
66258 2003-02-18  Bruno Haible  <bruno@clisp.org>
66259
66260         * MODULES.html.sh (func_all_modules): Add mathl.
66261
66262 2003-02-17  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/mkdtemp: New module.
66265         * MODULES.html.sh (func_all_modules): Add it.
66266
66267 2003-02-17  Bruno Haible  <bruno@clisp.org>
66268
66269         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66270
66271 2003-02-17  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/mkdtemp.h: New file, from GNU gettext.
66274         * lib/mkdtemp.c: New file, from GNU gettext.
66275
66276 2003-02-02  Jim Meyering  <jim@meyering.net>
66277
66278         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66279         e.g. glibc-2.2.93.
66280
66281 2003-01-31  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66284         'rpl_rename'.
66285         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66286         'rpl_strnlen'.
66287         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66288         'rpl_strtod'.
66289         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66290         'rpl_utime'.
66291
66292 2003-01-31  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/rename.c: #undef rename before defining rpl_rename.
66295         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66296
66297 2003-01-30  Bruno Haible  <bruno@clisp.org>
66298
66299         * modules/vasnprintf, modules/vasprintf: New modules.
66300         * MODULES.html.sh (func_all_modules): Add them.
66301
66302 2003-01-30  Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/signed.m4: New file, from GNU gettext.
66305         * m4/longdouble.m4: New file, from GNU gettext.
66306         * m4/wchar_t.m4: New file, from GNU gettext.
66307         * m4/wint_t.m4: New file, from GNU gettext.
66308         * m4/vasnprintf.m4: New file.
66309         * m4/vasprintf.m4: New file.
66310
66311 2003-01-30  Bruno Haible  <bruno@clisp.org>
66312
66313         * lib/printf-args.h: New file, from GNU gettext.
66314         * lib/printf-args.c: New file, from GNU gettext.
66315         * lib/printf-parse.h: New file, from GNU gettext.
66316         * lib/printf-parse.c: New file, from GNU gettext.
66317         * lib/vasnprintf.h: New file, from GNU gettext.
66318         * lib/vasnprintf.c: New file, from GNU gettext.
66319         * lib/asnprintf.c: New file, from GNU gettext.
66320         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66321         * lib/vasprintf.c: New file, from GNU gettext.
66322         * lib/asprintf.c: New file, from GNU gettext.
66323
66324 2003-01-29  Bruno Haible  <bruno@clisp.org>
66325
66326         * modules/stpncpy: New module.
66327         * MODULES.html.sh (func_all_modules): Add it.
66328
66329 2003-01-29  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/stpncpy.m4: New file.
66332
66333 2003-01-29  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66336         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66337
66338 2003-01-28  Bruno Haible  <bruno@clisp.org>
66339
66340         * modules/c-ctype: New module.
66341         * MODULES.html.sh (func_all_modules): Add it.
66342
66343 2003-01-28  Bruno Haible  <bruno@clisp.org>
66344
66345         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66346         Paul Eggert.
66347         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66348         Paul Eggert.
66349
66350 2003-01-27  Bruno Haible  <bruno@clisp.org>
66351
66352         * modules/xsetenv: New module.
66353         * MODULES.html.sh (func_all_modules): Add it.
66354
66355 2003-01-27  Bruno Haible  <bruno@clisp.org>
66356
66357         * lib/xsetenv.h: New file, from GNU gettext.
66358         * lib/xsetenv.c: New file, from GNU gettext.
66359
66360 2003-01-23  Jim Meyering  <jim@meyering.net>
66361
66362         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66363         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66364
66365 2003-01-23  Bruno Haible  <bruno@clisp.org>
66366
66367         * modules/minmax: New module.
66368         * MODULES.html.sh (func_all_modules): Add it.
66369
66370 2003-01-23  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66373         Eggert.
66374
66375 2003-01-22  Bruno Haible  <bruno@clisp.org>
66376
66377         * modules/exit: New module.
66378         * MODULES.html.sh (func_all_modules): Add it.
66379
66380 2003-01-22  Bruno Haible  <bruno@clisp.org>
66381
66382         * lib/exit.h: New file, from GNU gettext.
66383
66384 2003-01-19  Bruno Haible  <bruno@clisp.org>
66385
66386         * gnulib-tool: Recognize option --extract-maintainer.
66387         (func_get_maintainer): New function.
66388         * modules/*: Add Maintainer entry.
66389
66390 2003-01-16  Jim Meyering  <jim@meyering.net>
66391
66392         * m4/regex.m4: The `regex' struct is both input and output.
66393         Initialize it before each use.  Patch by Tim Waugh.
66394
66395 2003-01-16  Bruno Haible  <bruno@clisp.org>
66396
66397         * MODULES.html.sh: Add a table of contents. Add the module name as
66398         leftmost column. Add hyperlinks.
66399
66400 2003-01-15  Bruno Haible  <bruno@clisp.org>
66401
66402         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66403
66404 2003-01-15  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66407         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66408         suffix.
66409
66410 2003-01-15  Bruno Haible  <bruno@clisp.org>
66411
66412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66413
66414 2003-01-15  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66417         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66418
66419 2003-01-14  Jim Meyering  <jim@meyering.net>
66420
66421         * lib/same.c (same_name): Tweak a comment.
66422
66423 2003-01-14  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66426         when a string comparison is sufficient.
66427
66428 2003-01-14  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66431         'unsigned int'.
66432
66433 2003-01-14  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/hash-pjw.c: Add comment about low quality of this function.
66436
66437 2003-01-13  Bruno Haible  <bruno@clisp.org>
66438
66439         * modules/stpcpy: Distribute lib/stpcpy.h.
66440         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66441
66442 2003-01-13  Bruno Haible  <bruno@clisp.org>
66443
66444         * modules/*: Add a description.
66445         * modules/strpbrk: Fix Makefile.am snippet.
66446         * modules/strtoimax: Fix dependencies.
66447         * modules/strtoumax: Likewise.
66448
66449 2003-01-13  Bruno Haible  <bruno@clisp.org>
66450
66451         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66452         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66453         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66454
66455 2003-01-13  Bruno Haible  <bruno@clisp.org>
66456
66457         * gnulib-tool (func_create_testdir): Store config/* files in the main
66458         directory.
66459         * config.rpath: Move to ...
66460         * config/config.rpath: ... here.
66461         * modules/gettext: Contains config/config.rpath, not config.rpath.
66462         * modules/iconv: Likewise.
66463
66464 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66465
66466         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66467         to avoid collisions with libcurses and libreadline.
66468
66469         * m4/getstr.m4: Remove.
66470         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66471
66472 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66473
66474         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66475         to avoid collisions with libcurses and libreadline.
66476
66477         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66478         * lib/getstr.h, getstr.c: Remove.
66479         * lib/getline.c: Include "getline.h", to check interface.
66480         Move body of old getstr.c here: this defines MIN_CHUNK and
66481         declares getdelim2, which is renamed from getstr.
66482         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66483
66484         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66485         All uses changed.
66486         * lib/linebuffer.h: Likewise.
66487         (readline): Remove backward-compatibility macro.
66488
66489 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66490
66491         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66492         to avoid collisions with libcurses and libreadline.
66493         * getstr: Remove.
66494         * MODULES.html.sh: Remove getstr.
66495         * modules/getline: Depend on unlocked-io, not getstr.
66496
66497 2003-01-12  Jim Meyering  <jim@meyering.net>
66498
66499         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66500
66501 2003-01-10  Bruno Haible  <bruno@clisp.org>
66502
66503         * modules/alloca: Change Makefile.am requirements. Simplify Include
66504         requirements. Add lib/alloca_.h to file list.
66505
66506 2003-01-10  Bruno Haible  <bruno@clisp.org>
66507
66508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66509
66510 2003-01-10  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/alloca_.h: New file.
66513         * lib/getdate.y: Unconditionally include alloca.h.
66514         * lib/makepath.c: Likewise.
66515         * lib/setenv.c: Likewise.
66516         * lib/userspec.c: Likewise.
66517
66518 2003-01-09  Karl Berry  <karl@gnu.org>
66519
66520         * MODULES.html.sh: include `dirname $0` in PATH, to find
66521         gnulib-tool.
66522
66523 2003-01-09  Bruno Haible  <bruno@clisp.org>
66524
66525         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66526         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66527
66528 2003-01-09  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66531
66532 2003-01-09  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/stdbool.h.in: New file.
66535
66536 2003-01-09  Bruno Haible  <bruno@clisp.org>
66537
66538         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66539         * MODULES.html.sh: Likewise.
66540
66541 2003-01-08  Jim Meyering  <jim@meyering.net>
66542
66543         * lib/full-write.c: Undefine and define-away `const' after inclusion
66544         of errno.h, not before.  Suggestion from Bruno Haible.
66545
66546 2003-01-08  Bruno Haible  <bruno@clisp.org>
66547
66548         * modules/full-read: Depend on full-write.
66549
66550 2003-01-08  Bruno Haible  <bruno@clisp.org>
66551
66552         * lib/safe-read.c: Include specification header first, to ensure its
66553         selfcontainedness.
66554         * lib/full-write.c: Likewise.
66555
66556 2003-01-07  Jim Meyering  <jim@meyering.net>
66557
66558         * lib/full-write.c: Rework so that it may serve to define full_read,
66559         too.
66560         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66561
66562 2003-01-07  Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66565         <inttypes.h>.
66566         * lib/xstrtol.h: Likewise.
66567         * lib/xstrtoimax.c: Likewise.
66568         * lib/xstrtoumax.c: Likewise.
66569         * lib/human.h: Likewise.
66570
66571         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66572         on systems that have <inttypes.h> but not <stdint.h>.
66573
66574 2003-01-07  Bruno Haible  <bruno@clisp.org>
66575
66576         * MODULES.html.sh: Add copyright notice.
66577         (missed_files): Omit CVS directory entries.
66578         (func_module): Make it work with sed-3.02.
66579         * MODULES.txt: Remove file.
66580
66581 2003-01-06  Jim Meyering  <jim@meyering.net>
66582
66583         * lib/version-etc.c: Update year in translatable copyright string.
66584
66585 2003-01-03  Karl Berry  <karl@gnu.org>
66586
66587         * config/config.{guess,sub}: update from prep.
66588
66589 2003-01-02  Karl Berry  <karl@gnu.org>
66590
66591         * doc/COPYING.DOC: belatedly updated to 1.2.
66592
66593 2003-01-01  Karl Berry  <karl@gnu.org>
66594
66595         * gnulib-tool (func_verify_module): report module name $module in
66596         error message, not $1.
66597         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66598         be created, only if it doesn't exist.
66599         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66600
66601 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66602
66603         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66604
66605 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66606
66607         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66608         memcmp if strcoll doesn't work.
66609
66610 2002-12-31  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66613         nonempty.
66614
66615 2002-12-31  Bruno Haible  <bruno@clisp.org>
66616
66617         * lib/memcoll.c (STRCOLL): New macro.
66618         (memcoll): Use it.
66619
66620 2002-12-31  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/localcharset.h: New file.
66623         * lib/localcharset.c: Include it.
66624         * lib/unicodeio.c: Likewise.
66625
66626 2002-12-31  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66629         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66630
66631 2002-12-31  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/getline.h: Include <stddef.h>, for size_t.
66634
66635         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66636         * lib/unicodeio.c: Don't include <stddef.h>.
66637
66638 2002-12-31  Bruno Haible  <bruno@clisp.org>
66639
66640         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66641         HAVE_TM_ZONE.
66642
66643 2002-12-24  Karl Berry  <karl@gnu.org>
66644
66645         * config/config.guess: update from prep.
66646
66647 2002-12-24  Bruno Haible  <bruno@clisp.org>
66648
66649         General infrasructure.
66650         * m4/README: Rewritten.
66651         * m4/onceonly.m4: New file.
66652         * m4/onceonly_2_57.m4: New file.
66653
66654         Module atexit.
66655         * m4/atexit.m4: New file.
66656
66657         Module strtod.
66658         * m4/strtod.m4: New file.
66659
66660         Module strtol.
66661         * m4/strtol.m4: New file.
66662
66663         Module strtoul.
66664         * m4/strtoul.m4: New file.
66665
66666         Module memchr.
66667         * m4/memchr.m4: New file.
66668
66669         Module memcmp.
66670         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66671         (jm_FUNC_MEMCMP): Invoke it.
66672
66673         Module memcpy.
66674         * m4/memcpy.m4: New file.
66675
66676         Module memmove.
66677         * m4/memmove.m4: New file.
66678
66679         Module memset.
66680         * m4/memset.m4: New file.
66681
66682         Module strcspn.
66683         * m4/strcspn.m4: New file.
66684
66685         Module strpbrk.
66686         * m4/strpbrk.m4: New file.
66687
66688         Module strstr.
66689         * m4/strstr.m4: New file.
66690
66691         Module strerror.
66692         * m4/strerror.m4: New file.
66693
66694         Module mktime.
66695         * m4/mktime.m4: Renamed from jm-mktime.m4.
66696         (gl_PREREQ_MKTIME): New macro.
66697         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66698
66699         Module malloc.
66700         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66701         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66702         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66703
66704         Module realloc.
66705         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66706         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66707         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66708
66709         Module strftime.
66710         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66711         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66712         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66713         gl_TM_GMTOFF.
66714         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66715
66716         Module xalloc.
66717         * m4/xalloc.m4: New file.
66718
66719         Module alloca.
66720         * m4/alloca.m4: New file.
66721
66722         Module putenv.
66723         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66724         (jm_FUNC_PUTENV): Invoke it.
66725
66726         Module setenv.
66727         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66728         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66729         when invoked twice.
66730         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66731         gt_FUNC_SETENV.
66732
66733         Module memrchr.
66734         * m4/memrchr.m4: New file.
66735
66736         Module stpcpy.
66737         * m4/stpcpy.m4: New file.
66738
66739         Module strcase.
66740         * m4/strcase.m4: New file.
66741
66742         Module strdup.
66743         * m4/strdup.m4: New file.
66744
66745         Module strnlen.
66746         * m4/strnlen.m4: New file.
66747
66748         Module strndup.
66749         * m4/strndup.m4: New file.
66750
66751         Module xstrtod.
66752         * m4/xstrtod.m4: New file.
66753
66754         Module xstrtol.
66755         * m4/xstrtol.m4: New file.
66756
66757         Module getdate.
66758         * m4/getdate.m4: New file.
66759
66760         Module unlocked-io.
66761         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66762         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66763         * m4/jm-glibc-io.m4n: Remove file.
66764
66765         Module long-options.
66766         * m4/long-options.m4: New file.
66767
66768         Module md5.
66769         * m4/md5.m4: New file.
66770
66771         Module sha.
66772         * m4/sha.m4: New file.
66773
66774         Module getstr.
66775         * m4/getstr.m4: New file.
66776
66777         Module getline.
66778         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66779         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66780         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66781         simply getline. Infoke gl_PREREQ_GETLINE.
66782
66783         Module obstack.
66784         * m4/obstack.m4: New file.
66785
66786         Module hash.
66787         * m4/hash.m4: New file.
66788
66789         Module readtokens.
66790         * m4/readtokens.m4: New file.
66791
66792         Module strverscmp.
66793         * m4/strverscmp.m4: New file.
66794
66795         Module stdbool.
66796         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66797         OSF/1.
66798
66799         Module strtoll.
66800         * m4/strtoll.m4: New file.
66801
66802         Module strtoull.
66803         * m4/strtoull.m4: New file.
66804
66805         Module strtoimax.
66806         * m4/strtoimax.m4: New file.
66807
66808         Module strtoumax.
66809         * m4/strtoumax.m4: New file.
66810
66811         Module xstrtoimax.
66812         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66813         jm_AC_PREREQ_XSTRTOIMAX.
66814         Moved the strtol prerequisites to strtol.m4.
66815         Moved the strtoll prerequisites to strtoll.m4.
66816         Moved the strtoimax prerequisites to strtoimax.m4.
66817
66818         Module xstrtoumax.
66819         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66820         jm_AC_PREREQ_XSTRTOUMAX.
66821         Moved the strtoul prerequisites to strtoul.m4.
66822         Moved the strtoull prerequisites to strtoull.m4.
66823         Moved the strtoumax prerequisites to strtoumax.m4.
66824
66825         Module chown.
66826         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66827         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66828
66829         Module dup2.
66830         * m4/dup2.m4: New file.
66831
66832         Module ftruncate.
66833         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66834         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66835
66836         Module getgroups.
66837         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66838         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66839
66840         Module gettimeofday.
66841         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66842         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66843         gl_PREREQ_GETTIMEOFDAY.
66844
66845         Module mkdir.
66846         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66847         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66848
66849         Module mkstemp.
66850         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66851         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66852         jm_AC_TYPE_UINTMAX_T.
66853         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66854
66855         Module stat.
66856         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66857         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66858
66859         Module lstat.
66860         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66861         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66862
66863         Module timespec.
66864         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66865         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66866         * m4/st_mtim.m4: Indentation.
66867
66868         Module nanosleep.
66869         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66870         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66871         gl_PREREQ_NANOSLEEP.
66872
66873         Module regex.
66874         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66875         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66876         (gl_REGEX): New macro.
66877
66878         Module rename.
66879         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66880         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66881
66882         Module rmdir.
66883         * m4/rmdir.m4: New file.
66884
66885         Module utime.
66886         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66887         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66888         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66889
66890         Module dirname.
66891         * m4/dirname.m4: New file.
66892
66893         Module getopt.
66894         * m4/getopt.m4: New file.
66895
66896         Module unistd-safer.
66897         * m4/unistd-safer.m4: New file.
66898
66899         Module fnmatch.
66900         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66901         declaration.
66902         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66903         (gl_FUNC_FNMATCH_POSIX): New macro.
66904         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66905         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66906         simply fnmatch.
66907
66908         Module exclude.
66909         * m4/exclude.m4: New file.
66910
66911         Module human.
66912         * m4/human.m4: New file.
66913
66914         Module acl.
66915         * m4/acl.m4: Nop.
66916
66917         Module backupfile.
66918         * m4/backupfile.m4: New file.
66919         * m4/d-ino.m4: Indentation.
66920
66921         Module fsusage.
66922         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66923         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66924         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66925
66926         Module dirfd.
66927         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66928         requirements.
66929
66930         Module euidaccess.
66931         * m4/euidaccess.m4: New file.
66932
66933         Module file-type.
66934         * m4/file-type.m4: New file.
66935
66936         Module fileblocks.
66937         * m4/fileblocks.m4: New file.
66938
66939         Module filemode.
66940         * m4/filemode.m4: New file.
66941
66942         Module isdir.
66943         * m4/isdir.m4: New file.
66944
66945         Module lchown.
66946         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66947         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66948
66949         Module makepath.
66950         * m4/makepath.m4: New file.
66951
66952         Module modechange.
66953         * m4/modechange.m4: New file.
66954
66955         Module mountlist.
66956         * m4/mountlist.m4: New file.
66957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66958         Indentation.
66959
66960         Module path-concat.
66961         * m4/path-concat.m4: New file.
66962
66963         Module pathmax.
66964         * m4/pathmax.m4: New file.
66965
66966         Module same.
66967         * m4/same.m4: New file.
66968
66969         Module save-cwd.
66970         * m4/save-cwd.m4: New file.
66971
66972         Module savedir.
66973         * m4/savedir.m4: New file.
66974
66975         Module xgetcwd.
66976         * m4/xgetcwd.m4: New file.
66977         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66978
66979         Module xreadlink.
66980         * m4/xreadlink.m4: New file.
66981
66982         Module safe-read.
66983         * m4/safe-read.m4: New file.
66984
66985         Module safe-write.
66986         * m4/safe-write.m4: New file.
66987
66988         Module closeout.
66989         * m4/closeout.m4: New file.
66990
66991         Module stdio-safer.
66992         * m4/stdio-safer.m4: New file.
66993
66994         Module getpass.
66995         * m4/getpass.m4: New file.
66996
66997         Module getugroups.
66998         * m4/getugroups.m4: New file.
66999
67000         Module group-member.
67001         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67002         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67003
67004         Module idcache.
67005         * m4/idcache.m4: New file.
67006
67007         Module userspec.
67008         * m4/userspec.m4: New file.
67009
67010         Module gettime.
67011         * m4/clock_time.m4: New file.
67012         * m4/gettime.m4: New file.
67013
67014         Module settime.
67015         * m4/settime.m4: New file.
67016
67017         Module posixtm.
67018         * m4/posixtm.m4: New file.
67019
67020         Module gethostname.
67021         * m4/gethostname.m4: New file.
67022
67023         Module canon-host.
67024         * m4/canon-host.m4: New file.
67025
67026         Module gettext.
67027         * m4/codeset.m4: New file, from gettext-0.11.5.
67028         * m4/gettext.m4: New file, from gettext-0.11.5.
67029         * m4/glibc21.m4: New file, from gettext-0.11.5.
67030         * m4/iconv.m4: New file, from gettext-0.11.5.
67031         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67032         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67033         * m4/inttypes.m4: New file, from gettext-0.11.5.
67034         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67035         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67036         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67037         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67038         * m4/lib-link.m4: New file, from gettext-0.11.5.
67039         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67040         * m4/progtest.m4: New file, from gettext-0.11.5.
67041         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67042         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67043         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67044
67045         Module localcharset.
67046         * m4/localcharset.m4: New file.
67047
67048         Module hard-locale.
67049         * m4/hard-locale.m4: New file.
67050
67051         Module mbswidth.
67052         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67053         onceonly macros.
67054         * m4/mbrtowc.m4: Add comment.
67055
67056         Module memcasecmp.
67057         * m4/memcasecmp.m4: New file.
67058
67059         Module memcoll.
67060         * m4/memcoll.m4: New file.
67061
67062         Module unicodeio.
67063         * m4/unicodeio.m4: New file.
67064
67065         Module rpmatch.
67066         * m4/rpmatch.m4: New file.
67067
67068         Module yesno.
67069         * m4/yesno.m4: New file.
67070
67071         Module exitfail.
67072         * m4/exitfail.m4: New file.
67073
67074         Module c-stack.
67075         * m4/c-stack.m4 (gl_C_STACK): New macro.
67076         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67077
67078         Module error.
67079         * m4/error.m4 (gl_ERROR): New macro.
67080         (jm_PREREQ_ERROR): Use onceonly macros.
67081
67082         Module fatal.
67083         * m4/fatal.m4: New file.
67084
67085         Module getloadavg.
67086         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67087         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67088
67089         Module getpagesize.
67090         * m4/getpagesize.m4: New file.
67091
67092         Module getusershell.
67093         * m4/getusershell.m4: New file.
67094
67095         Module physmem.
67096         * m4/physmem.m4: New file.
67097
67098         Module posixver.
67099         * m4/posixver.m4: New file.
67100
67101         Module quotearg.
67102         * m4/quotearg.m4: New file.
67103
67104         Module quote.
67105         * m4/quote.m4: New file.
67106
67107         Module readutmp.
67108         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67109
67110         Module sig2str.
67111         * m4/sig2str.m4: New file.
67112
67113         Other.
67114         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67115         ulonglong.m4.
67116         * m4/intmax_t.m4: New file.
67117         * m4/d-type.m4: Indentation.
67118         * m4/jm-macros.m4: Update.
67119         * m4/prereq.m4 (jm_PREREQ): Update.
67120         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67121         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67122         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67123         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67124         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67125         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67126         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67127         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67128         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67129         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67130         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67131         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67132         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67133         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67134         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67135         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67136         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67137         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67138         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67139
67140 2002-12-24  Bruno Haible  <bruno@clisp.org>
67141
67142         * MODULES.txt: Update according to m4/ changes.
67143
67144         Module gettext.
67145         * config.rpath: New file, from gettext-0.11.5.
67146
67147         * modules/*: New module descriptions.
67148         * gnulib-tool: New file.
67149         * MODULES.html.sh: New file.
67150
67151 2002-12-21  Karl Berry  <karl@gnu.org>
67152
67153         * doc/fdl.texi: update to version 1.2.
67154
67155 2002-12-19  Karl Berry  <karl@gnu.org>
67156
67157         * config/config.guess: update from prep.
67158
67159 2002-12-18  Bruno Haible  <bruno@clisp.org>
67160
67161         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67162         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67163
67164 2002-12-17  Bruno Haible  <bruno@clisp.org>
67165
67166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67167         stdlib.h, string.h.
67168
67169 2002-12-17  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/canon-host.c (strdup): Remove unused declaration.
67172
67173         * lib/fsusage.c: Include full_read.h.
67174         (get_fs_usage): Use full_read instead of safe_read.
67175
67176         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67177
67178 2002-12-12  Karl Berry  <karl@gnu.org>
67179
67180         * config/config.guess: update from prep.
67181
67182 2002-12-11  Bruno Haible  <bruno@clisp.org>
67183
67184         * m4/setenv.m4: New file, from gettext-0.11.5.
67185
67186 2002-12-11  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67189         not unsetenv().
67190         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67191         modifications:
67192
67193         2002-12-11  Bruno Haible  <bruno@clisp.org>
67194
67195                 * setenv.c (alloca): Fall back to malloc.
67196                 (freea): New macro.
67197                 (setenv): Use freea() to free memory allocated with alloca().
67198
67199         2002-11-13  Bruno Haible  <bruno@clisp.org>
67200
67201                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67202                 function declarations.
67203                 * unsetenv.c (unsetenv): Likewise.
67204
67205         2002-03-04  Bruno Haible  <bruno@clisp.org>
67206
67207                 Portability to AIX 4.3.3.
67208                 * unsetenv.c: New file, extracted from setenv.c.
67209                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67210
67211         2001-12-20  Bruno Haible  <bruno@clisp.org>
67212
67213                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67214                 use malloc instead. For SunOS 4.
67215
67216         2001-12-11  Bruno Haible  <bruno@clisp.org>
67217
67218                 * setenv.c: Declare alloca.
67219                 (compar_fn_t): New typedef.
67220                 (KNOWN_VALUE, STORE_VALUE): Use it.
67221
67222         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67223         setenv.h.
67224
67225 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67226
67227         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67228         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67229         Choose values that are less likely to collide with system fnmatch
67230         options.
67231         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67232         defined (e.g., a pure POSIX system).
67233         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67234         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67235
67236 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67237
67238         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67239         a pain in practice to deal with generated m4 files.  This change
67240         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67241
67242         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67243         and jm-glibc-io.m4, as they are no longer a special case.
67244         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67245         kludge and the auto-generation stuff.  Check only whether the
67246         functions are declared, not whether they exist, since older hosts
67247         that don't declare the functions can't use the optimization anyway.
67248
67249 2002-12-06  Jim Meyering  <jim@meyering.net>
67250
67251         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67252
67253         Merge in changes from libc's misc/error.c, in preparation
67254         for the merge of gnulib's changes back into libc.
67255
67256         * lib/error.c (_): Define only if not already defined.
67257         Move definition to follow all #include directives.
67258         Include unlocked-io.h only if !_LIBC.
67259         [_LIBC]: Include <libio/libioP.h>.
67260         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67261         (fflush): Tweak definition to use INTUSE.
67262         (putc): Define.
67263
67264 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67265
67266         * lib/alloca.c [defined emacs]: Include "lisp.h".
67267         (xalloc_die) [defined emacs]: New macro.
67268         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67269         [! defined emacs]: Include <xalloc.h>.
67270         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67271         (pointer): Typedef to POINTER_TYPE *.
67272         (malloc): Remove decl; we now always use xmalloc.
67273         (alloca): Use old-style definition, since Emacs needs this.
67274         Check for arithmetic overflow when computing combined size.
67275
67276 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67277
67278         Do not generate unlocked-io.h automatically, since it's easier to
67279         maintain it by hand.
67280
67281         * lib/unlocked-io.h: New file, from GNU diffutils,
67282         but with proper copyright notice and attribution.
67283         * lib/gen-uio: Remove.
67284         * lib/Makefile.am: Add copyright notice.
67285         (libfetish_a_SOURCES): Add unlocked-io.h.
67286         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67287         (DISTCLEANFILES, io_functions): Remove macros.
67288         (EXTRA_DIST): Remove gen_uio.
67289         (unlocked-io.h): Remove rule.
67290
67291 2002-12-04  Jim Meyering  <jim@meyering.net>
67292
67293         Reflect the fact that stat.c and lstat.c are no longer generated.
67294         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67295         (DISTCLEANFILES): Likewise.
67296         (EXTRA_DIST): Likewise.
67297         (all_local): Don't depend on stat.c or lstat.c.
67298         (stat.c, lstat.c): Remove rules.
67299         (EXTRA_DIST): Remove xstat.in.
67300
67301         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67302         * lib/stat.c: New file.  Contents mostly from xstat.in.
67303         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67304         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67305
67306         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67307         too.
67308         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67309
67310 2002-12-03  Jim Meyering  <jim@meyering.net>
67311
67312         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67313         but not semantics, to minimize the differences between these two files.
67314         (safe_read): Change comment to mention SAFE_READ_ERROR.
67315
67316         * lib/safe-read.c (IS_EINTR): Define.
67317         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67318
67319 2002-12-02  Jim Meyering  <jim@meyering.net>
67320
67321         * lib/safe-read.c (EINTR): Define.
67322         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67323         (INT_MAX): Provide fallback.
67324         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67325
67326         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67327
67328 2002-12-02  Bruno Haible  <bruno@clisp.org>
67329
67330         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67331         Define, taken from safe-read.c.
67332         (INT_MAX): Provide fallback.
67333         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67334         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67335
67336         * lib/safe-read.c (EINTR): Remove definition.
67337         (safe_read): Don't use EINTR if it is absent.
67338
67339 2002-12-01  Jim Meyering  <jim@meyering.net>
67340
67341         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67342         zero.
67343         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67344
67345 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67346
67347         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67348         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67349         with `if (! (value < limit)) abort ();', for readability.
67350
67351 2002-11-26  Karl Berry  <karl@gnu.org>
67352
67353         * lib/strdup.c: copy from libc again, with jim's ok.
67354         * lib/.cppi-disable: re-add strdup.c
67355
67356 2002-11-25  Karl Berry  <karl@gnu.org>
67357
67358         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67359         instead of "strtol.c".
67360
67361 2002-11-25  Karl Berry  <karl@gnu.org>
67362
67363         * config/install-sh: update from automake for variable quoting, $0 in
67364         error msgs, etc.
67365
67366         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67367         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67368         entry.
67369
67370 2002-11-25  Jim Meyering  <jim@meyering.net>
67371
67372         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67373
67374 2002-11-24  Karl Berry  <karl@gnu.org>
67375
67376         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67377         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67378
67379 2002-11-24  Jim Meyering  <jim@meyering.net>
67380
67381         Update from coreutils:
67382
67383         * lib/mktime.c: Merge in changes from libc.
67384
67385         Avoid a link-time failure on some Linux systems.
67386         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67387         (otherwise).
67388         (__mon_yday): Declare with the STATIC attribute.
67389         (__mktime_internal): Likewise.
67390         Based on a report from Greg Schafer.
67391
67392 2002-11-23  Jim Meyering  <jim@meyering.net>
67393
67394         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67395         Use `unsigned', not `int', as type of index.
67396
67397         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67398
67399         * lib/fsusage.c: Remove unneeded parentheses around operands of
67400         `defined'.
67401
67402 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67403
67404         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67405         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67406         so that we can be included first.
67407         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67408         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67409         No need to include stddef.h or sys/types.h any more.
67410         Surround local include files with "", not "<>".
67411         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67412         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67413         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67414         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67415         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67416         (ISPRINT): Remove; no longer needed now that we assume C89.
67417
67418         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67419         Preserve errno.
67420
67421         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67422         quotearg_char): Use SIZE_MAX rather than
67423         (size_t) -1 when we are talking about "infinity".
67424
67425         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67426
67427 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67428
67429         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67430         hint that one should use `if (! x) abort ();' rather than `assert
67431         (x);', and anyway it's one less thing to worry about configuring.
67432         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67433         hash_rehash, hash_insert): Use abort rather than assert.
67434
67435 2002-11-22  Bruno Haible  <bruno@clisp.org>
67436
67437         * lib/safe-read.h: Assume C89. Add comments.
67438         (safe_read): Change return type to size_t.
67439         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67440         byte counts > SSIZE_MAX correctly.
67441         * lib/safe-write.h: New file.
67442         * lib/safe-write.c: New file.
67443         * lib/full-read.h: New file.
67444         * lib/full-read.c: New file.
67445         * lib/full-write.h: Assume C89. Add comments.
67446         * lib/full-write.c: Include safe-write.h.
67447         (full_write): Rewritten to use safe_write.
67448         Suggested by Jim Meyering and Paul Eggert.
67449
67450 2002-11-21  Jim Meyering  <jim@meyering.net>
67451
67452         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67453
67454         Merge in changes from the coreutils.
67455
67456         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67457         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67458         <stdint.h>.
67459         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67460         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67461         int.  Work more efficiently if X is the same width as uintmax_t.
67462         Do not compare X to -1, to avoid bogus compiler warning.
67463         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67464         Don't assume that f_frsize and f_bsize are the same type.
67465
67466         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67467         warning on FreeBSD.
67468
67469         * lib/makepath.c (make_path): Restore umask *before* creating the final
67470         component.
67471         (make_path): Minor reformatting.
67472
67473         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67474         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67475         HAVE_MALLOC/HAVE_REALLOC.
67476
67477         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67478         dummy ones.  At least on GNU/Linux systems, `auto' means something
67479         else.
67480         From Michael Stone.
67481
67482 2002-11-21  Bruno Haible  <bruno@clisp.org>
67483
67484         Remove case insensitive option matching.
67485         * lib/argmatch.h (argcasematch): Remove declaration.
67486         (ARGCASEMATCH): Remove macro.
67487         (__xargmatch_internal): Remove case_sensitive argument.
67488         (XARGMATCH): Update.
67489         (XARGCASEMATCH): Remove macro.
67490         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67491         case_sensitive argument.
67492         (argcasematch): Remove function.
67493         (__xargmatch_internal): Remove case_sensitive argument.
67494         (main): Use XARGMATCH instead of XARGCASEMATCH.
67495
67496         * lib/xmalloc.c: Change compile-time error message. Add comment about
67497         required autoconf version.
67498
67499 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67500
67501         Merge argmatch cleanups from Bison.  Assume C89.
67502
67503         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67504         Include stdlib.h, for EXIT_FAILURE.
67505         Always include <string.h>, since we assume C89.
67506         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67507         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67508         Include <stddef.h> instead, since it's all we need for size_t.
67509         (PARAMS): Remove.  All uses removed.
67510         (ARRAY_CARDINALITY): Do not bother to #undef.
67511         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67512         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67513         Remove unnecessary parentheses.
67514         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67515         Insert necessary parentheses.
67516         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67517         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67518
67519 2002-11-19  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67522         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67523
67524         * lib/mbswidth.h (PARAMS): Remove macro.
67525         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67526         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67527
67528         * lib/gcd.h (PARAMS): Remove macro.
67529         (gcd): Use ANSI C function declarations.
67530         * lib/gcd.c (gcd): Likewise.
67531
67532 2002-11-15  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/strcspn.c: Include <stddef.h>.
67535         (strcspn): Use ANSI C function declaration. Change return type to
67536         size_t. Use NULL.
67537         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67538         (strpbrk): Use NULL.
67539         * lib/strpbrk.h (PARAMS): Remove macro.
67540         (strpbrk): Use ANSI C function declaration.
67541         * lib/strstr.c: Don't include <sys/types.h>.
67542         * lib/strstr.h (PARAMS): Remove macro.
67543         (strstr): Use ANSI C function declarations.
67544
67545 2002-11-14  Karl Berry  <karl@gnu.org>
67546
67547         * config/mkinstalldirs: `do' on separate line, instead of
67548         `for var; do'.
67549
67550 2002-11-06  Bruno Haible  <bruno@clisp.org>
67551
67552         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67553         * lib/gcd.c (gcd): Likewise.
67554
67555 2002-11-05  Bruno Haible  <bruno@clisp.org>
67556
67557         * lib/gcd.h: New file, from gettext-0.11.5.
67558         * lib/gcd.c: New file, from gettext-0.11.5.
67559
67560 2002-11-05  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67563         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67564         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67565         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67566
67567         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67568         <libintl.h>.
67569         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67570         <libintl.h>.
67571
67572         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67573         * lib/human.c: Include gettext.h instead of <libintl.h>.
67574         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67575         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67576         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67577         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67578         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67579         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67580         (textdomain): Remove definition.
67581         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67582
67583         * lib/long-options.c: Remove include of <libintl.h> and definition of
67584         _.
67585         * lib/same.c: Remove include of <libintl.h> and definition of _.
67586
67587 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67588
67589         * lib/config.charset: A few additions for Solaris.
67590
67591 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67592
67593         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67594         * lib/localcharset.c (locale_charset): Declare as extern "C".
67595
67596 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67597
67598         * lib/config.charset: msdos in uk_UA uses CP1125.
67599
67600 2002-11-04  Bruno Haible  <bruno@clisp.org>
67601
67602         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67603         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67604         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67605         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67606         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67607
67608 2002-11-04  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/localcharset.c (locale_charset): Don't return an empty string.
67611
67612 2002-11-04  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67615         aliases.
67616
67617 2002-11-04  Bruno Haible  <bruno@clisp.org>
67618
67619         * lib/config.charset: Update for newest glibc. Add canonical names
67620         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67621
67622 2002-11-04  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/config.charset: Add support for NetBSD.
67625
67626 2002-11-04  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67629
67630 2002-11-01  Bruno Haible  <bruno@clisp.org>
67631
67632         * configure.in: Add AC_CONFIG_AUX_DIR call.
67633         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67634         test/Makefile.
67635         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67636
67637 2002-09-28  Karl Berry  <karl@gnu.org>
67638
67639         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67640         installed automake until the next release, since changes have been
67641         made.
67642
67643 2002-09-25  Karl Berry  <karl@gnu.org>
67644
67645         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67646         * lib/getopt*: copy from libc/posix.
67647         * lib/gettext.h: copy from gettext.
67648         * lib/.cppi-disable: add strdup.c, gettext.h.
67649
67650 2002-09-25  Karl Berry  <karl@gnu.org>
67651
67652         * config/srclist.txt: enable gettext.h check.
67653         * config/config.{guess,sub}: update from prep.
67654         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67655                 from automake 1.6.3.
67656         See srclist*.
67657
67658 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67659
67660         * regex.c (PATFETCH): Remove the translating fetch.
67661         (PATFETCH_RAW): Rename to PATFETCH.
67662         (set_image_of_range): New fun.
67663         (SET_RANGE_TABLE_WORK_AREA): Use it.
67664         (regex_compile): Don't translate the pattern chars so eagerly.
67665         Only do it when inserting an `exactn' bytecode or when handling
67666         a char-range.
67667         (mutually_exclusive_p): Avoid empty statement.
67668
67669 2002-07-06  Jim Meyering  <meyering@lucent.com>
67670
67671         * m4/README: Don't mention Makefile.am.in.
67672         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67673
67674 2002-07-01  Jim Meyering  <meyering@lucent.com>
67675
67676         * lib/c-stack.c: Include sys/time.h.
67677         From Volker Borchert.
67678
67679 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67680
67681         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67682
67683 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67684
67685         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67686         New macro.  Use it uniformly instead of
67687         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67688         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67689         reported by Vin Shelton.
67690
67691 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67692
67693         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67694         Do not assume SA_SIGINFO behavior.
67695         Bug reported by Jim Meyering on NetBSD 1.5.2.
67696
67697 2002-06-22  Jim Meyering  <meyering@lucent.com>
67698
67699         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67701
67702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67703         now that configure.ac uses AC_GNU_SOURCE.
67704         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67705         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67706
67707         Update to latest tools.  Suggestions from Paul Eggert.
67708         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67709         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67710         * m4/fnmatch.m4: Likewise.
67711         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67712         to AC_HEADER_STDBOOL
67713
67714 2002-06-22  Jim Meyering  <meyering@lucent.com>
67715
67716         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67717         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67718
67719 2002-06-22  Jim Meyering  <meyering@lucent.com>
67720
67721         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67722
67723         * lib/exitfail.c, exitfail.h: Likewise.
67724         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67725
67726         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67727         of fnmatch.h.
67728         (EXTRA_DIST): Add fnmatch_loop.c.
67729         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67730
67731         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67732         * lib/fnmatch.c: Update from diffutils-2.8.2.
67733         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67734         * lib/fnmatch.h: Remove file.
67735
67736 2002-06-21  Jim Meyering  <meyering@lucent.com>
67737
67738         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67739         * m4/mbrtowc.m4: Likewise.
67740
67741         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67742         * m4/mbswidth.m4: Reflect name change:
67743         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67744         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67745
67746         * m4/lib-link.m4: Update from gettext-0.11.2.
67747         * m4/gettext.m4: Likewise.
67748
67749         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67750         From Alfred M. Szmidt.
67751
67752 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67753
67754         * lib/file-type.h: Report an error if neither S_ISREG nor
67755         S_IFREG is defined, instead of using a test specific to glibc
67756         2.2.  This should be safe, since POSIX requires S_ISREG and
67757         Unix Version 7 had S_IFREG.  We don't need to check for
67758         <sys/types.h> since we don't use any symbols that it defines.
67759
67760 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67761
67762         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67763         $@-t, so that each temporary file name is unique and valid in the first
67764         8 characters, for operation under DOS.
67765
67766 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67767
67768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67769
67770 2002-06-15  Jim Meyering  <meyering@lucent.com>
67771
67772         Work even with DJGPP 2.03, which lacks support for symlinks.
67773         From Richard Dawe.
67774         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67775         is defined.
67776         * lib/lchown.c (S_ISLNK): Likewise.
67777
67778 2002-06-15  Jim Meyering  <meyering@lucent.com>
67779
67780         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67781         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67782         have been included before this file.
67783
67784 2002-06-14  Jim Meyering  <meyering@lucent.com>
67785
67786         * lib/file-type.h: Use the version from diffutils-2.8.2.
67787         * lib/file-type.c: Likewise.
67788
67789 2002-06-07  Jim Meyering  <meyering@lucent.com>
67790
67791         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67792         They're needed at least for NetBSD 1.5.2.
67793         ($statxfs_includes): Include those same headers.
67794         ($statxfs_includes): Include sys/vfs.h if available.
67795         ($statxfs_includes): Likewise for sys/statvfs.h.
67796         Check for the following members in both structs statfs and statvfs:
67797         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67798
67799 2002-06-01  Jim Meyering  <meyering@lucent.com>
67800
67801         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67802         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67803
67804 2002-05-28  Jim Meyering  <meyering@lucent.com>
67805
67806         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67807         Reported by Volker Borchert.
67808
67809 2002-05-27  Jim Meyering  <meyering@lucent.com>
67810
67811         Fix a problem seen only on nonconforming systems whereby ls.c's
67812         use of localtime, and then of gettimeofday would cause trouble:
67813         the localtime call used to initialize rpl_gettimeofday's save
67814         mechanism would clobber ls's current local time information so
67815         that in any long listing the first file would always be listed
67816         with date 1970-01-01.  Analysis by Volker Borchert.
67817
67818         * lib/gettimeofday.c (localtime): Undefine.
67819         (rpl_localtime): New function.
67820
67821 2002-05-27  Jim Meyering  <meyering@lucent.com>
67822
67823         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67824         localtime.
67825
67826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67827         use the replacement function; it wouldn't resolve at link time.
67828         Reported by Volker Borchert.
67829
67830 2002-05-22  Jim Meyering  <meyering@lucent.com>
67831
67832         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67833         file-type.h.
67834         * lib/file-type.h: New file.
67835         * lib/file-type.c (file_type): New file/function.  Extracted from
67836         diffutils.
67837
67838 2002-04-30  Jim Meyering  <meyering@lucent.com>
67839
67840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67841
67842 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67843
67844         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67845
67846 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67847
67848         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67849         Do not check for alloca.h (no longer used) or stdbool.h (was never
67850         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67851
67852 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67853
67854         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67855
67856 2002-04-29  Jim Meyering  <meyering@lucent.com>
67857
67858         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67859         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67860         Use AC_FUNC_STRNLEN here instead.
67861
67862         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67863         With autoconf-2.53a, it's part of AC_PROG_CC.
67864
67865 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67866
67867         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67868         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67869
67870 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67871
67872         * lib/sig2str.h, lib/sig2str.c: New files.
67873         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67874
67875 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67876
67877         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67878         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67879         of 127, since 64 is the largest conceivable number for ancient
67880         nonstandard hosts.
67881         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67882
67883 2002-04-28  Jim Meyering  <meyering@lucent.com>
67884
67885         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67886
67887 2002-04-24  Jim Meyering  <meyering@lucent.com>
67888
67889         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67890         (jm_PREREQ): Use it.
67891
67892         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67893         mach/mach.h fcntl.h.
67894         Check for this function: setlocale.
67895
67896 2002-04-24  Jim Meyering  <meyering@lucent.com>
67897
67898         * lib/gettext.h: New file, from Gettext.
67899         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67900         (libfetish_a_SOURCES): Add gettext.h.
67901
67902 2002-04-16  Jim Meyering  <meyering@lucent.com>
67903
67904         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67905         ut_pid, ut_id, ut_exit.
67906
67907 2002-04-16  Jim Meyering  <meyering@lucent.com>
67908
67909         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67910         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67911         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67912
67913 2002-04-12  Jim Meyering  <meyering@lucent.com>
67914
67915         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67916         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67917         existence of the getmntinfo function.  Needed for Darwin 5.3.
67918
67919         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67920         This is necessary at least on Darwin 5.3.
67921
67922         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67923         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67924         strnlen.o in the library, and that makes some versions of ranlib
67925         object.
67926
67927 2002-04-12  Jim Meyering  <meyering@lucent.com>
67928
67929         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67930
67931 2002-04-09  Jim Meyering  <meyering@lucent.com>
67932
67933         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67934         to be more precise.  Rather than saying we're checking whether the
67935         function `works', say what we're testing.
67936         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67937         Reported by Bruno Haible.
67938
67939 2002-03-10  Jim Meyering  <meyering@lucent.com>
67940
67941         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67942         Suggestion from Santiago Vila.
67943
67944 2002-03-08  Jim Meyering  <meyering@lucent.com>
67945
67946         * lib/rename.c: Mention that this wrapper is needed also on
67947         mips-dec-ultrix4.4 systems.
67948
67949 2002-03-02  Jim Meyering  <meyering@lucent.com>
67950
67951         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67952         not HAVE_CLOCK_SETTIME.
67953
67954 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67955
67956         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67957         Check for clock_settime.
67958
67959 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67960
67961         * lib/nanosleep.h: Rename to....
67962         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67963
67964         * lib/gettime.c: New file.
67965         * lib/settime.c: New file.
67966         * lib/stime.c: Remove.
67967
67968         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67969         timespec.h.  Remove nanosleep.h.
67970
67971 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67972
67973         * m4/acl.m4: New file.
67974         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67975         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67976
67977 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67978
67979         * lib/acl.c, lib/acl.h: New files.
67980         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67981
67982 2002-02-24  Jim Meyering  <meyering@lucent.com>
67983
67984         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67985         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67986         cause trouble.  Reported by Nelson Beebe.
67987
67988 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67989
67990         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67991         compilers that don't know that xalloc_die never returns.
67992
67993 2002-02-20  Jim Meyering  <meyering@lucent.com>
67994
67995         * lib/getdate.c: Regenerate using bison-1.33.
67996
67997 2002-02-17  Jim Meyering  <meyering@lucent.com>
67998
67999         * config/config.guess (main): Don't use `head -1'; it's no longer
68000         portable. Use `sed 1q' instead.
68001
68002 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68003
68004         * m4/codeset.m4: Upgrade to gettext-0.11.
68005         * m4/gettext.m4: Upgrade to gettext-0.11.
68006         * m4/glibc21.m4: Upgrade to gettext-0.11.
68007         * m4/iconv.m4: Upgrade to gettext-0.11.
68008         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68009         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68010         * m4/lib-ld.m4: New file, from gettext-0.11.
68011         * m4/lib-link.m4: New file, from gettext-0.11.
68012         * m4/lib-prefix.m4: New file, from gettext-0.11.
68013         * m4/progtest.m4: Upgrade to gettext-0.11.
68014
68015 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68016
68017         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68018         (jm_PREREQ): Use it.
68019
68020 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68021
68022         * lib/posixver.c, lib/posixver.h: New files.
68023         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68024
68025 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68026             Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68029         (fwrite_success_callback): New declaration.
68030         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68031         print_unicode_char. Call failure callback instead of error.
68032         (fwrite_success_callback): New function.
68033         (exit_failure_callback): New function.
68034         (fallback_failure_callback): New function.
68035         (print_unicode_char): Call unicode_to_mb.
68036
68037 2002-01-26  Jim Meyering  <meyering@lucent.com>
68038
68039         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68040         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68041
68042 2002-01-26  Jim Meyering  <meyering@lucent.com>
68043
68044         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68045
68046 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68047
68048         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68049
68050 2002-01-22  Jim Meyering  <meyering@lucent.com>
68051
68052         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68053         Otherwise, some versions of automake would omit the rule that makes
68054         Makefile from Makefile.in.
68055
68056 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68057
68058         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68059         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68060         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68061         (memcoll): Set errno to zero if there is no error.
68062
68063         * lib/quotearg.c (quotearg_buffer_restyled):
68064         Fix bug with quoting buffers containing NUL when backslashing escapes.
68065         This bug was exposed by the other changes in this patch.
68066         (quotearg_n_options): New arg ARGSIZE.
68067         All callers changed.
68068         (quoting_options_from_style): New function.
68069         (quotearg_n_style): Use it.
68070         (quotearg_n_style_mem): New function.
68071
68072         * lib/quotearg.h (quotearg_n_style_mem): New function.
68073
68074 2002-01-19  Jim Meyering  <meyering@lucent.com>
68075
68076         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68077         Remove useless quotes: DF_PROG="df".
68078         * m4/strnlen.m4: New file.
68079
68080 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68081
68082         * lib/backupfile.c (ISDIGIT): Comment fix.
68083         * lib/getdate.y (ISDIGIT): Likewise.
68084         * lib/posixtm.c (ISDIGIT, year): Likewise.
68085         * lib/strverscmp.c (ISDIGIT): Likewise.
68086         * lib/userspec.c (ISDIGIT): Likewise.
68087
68088 2002-01-16  Jim Meyering  <meyering@lucent.com>
68089
68090         * lib/getdate.y: Add three semicolons, each just before a closing
68091         brace. Bison (as of version 1.31) no longer papers over that mistake.
68092
68093 2002-01-05  Jim Meyering  <meyering@lucent.com>
68094
68095         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68096
68097 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68098
68099         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68100         not silently exit merely because the output buffer happens to
68101         have nothing pending.
68102
68103 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68104
68105         See the big note in ../ChangeLog.
68106         * lib/human.c (suffixes): Prefer K to k for 1024.
68107         (generate_suffix_backwards): New function.
68108         (human_readable_inexact): Use it.
68109         * lib/xstrtol.c (__xstrtol): If there is no number but there
68110         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68111         Accept 'K' as well as 'k'.
68112
68113 2001-12-15  Jim Meyering  <meyering@lucent.com>
68114
68115         * lib/regex.h (__restrict_arr): Update from libc.
68116
68117         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68118         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68119         (STREQ): Define.
68120
68121 2001-12-14  Jim Meyering  <meyering@lucent.com>
68122
68123         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68124         Suggestion from Bruno Haible.
68125
68126 2001-12-10  Jim Meyering  <meyering@lucent.com>
68127
68128         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68129         xrealloc, Instead, include "xalloc.h".
68130         (initbuffer): Don't cast xmalloc return value to char*.
68131         (readline): Reword comment.
68132         Don't cast xrealloc return value to char*
68133         Return NULL, not 0.
68134
68135 2001-12-09  Jim Meyering  <meyering@lucent.com>
68136
68137         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68138         about `signed and unsigned type in conditional expression'.
68139         * lib/posixtm.c (posix_time_parse): Likewise.
68140
68141         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68142
68143         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68144         to avoid a pedantic warning.
68145
68146         * lib/getstr.c: Don't include assert.h.
68147         (getstr): Remove warning-evoking assertions.
68148         Return -1 if offset parameter is out of bounds.
68149         Change the type of a local from int to size_t.
68150
68151         * lib/strftime.c (my_strftime_localtime_r): Include this function
68152         definition in the `#if ! HAVE_TM_GMTOFF' block.
68153
68154         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68155         Include xalloc.h instead.
68156
68157 2001-12-02  Jim Meyering  <meyering@lucent.com>
68158
68159         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68160         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68161         included.
68162
68163         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68164         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68165
68166 2001-11-30  Akim Demaille  <akim@epita.fr>
68167
68168         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68169         before being defined.
68170
68171 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68172
68173         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68174         First arg is int, not unsigned.
68175         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68176         (SIZE_MAX, UINT_MAX): New macros.
68177         (quotearg_n_options): Abort if N is negative.
68178         Avoid overflow check on hosts where size_t is 64 bits and int
68179         is 32 bits, as overflow is impossible there.
68180         Fix off-by-one typo that caused unnecessary reallocation.
68181
68182 2001-11-27  Jim Meyering  <meyering@lucent.com>
68183
68184         * lib/tempname.c: Merge with version from libc.
68185         * lib/regex.c: Likewise.
68186
68187         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68188         systems for which STDC_HEADERS is 0, it was not included, resulting in
68189         a warning about an integer-to-pointer conversion problem with getenv.
68190         Reported by Volker Borchert.
68191
68192 2001-11-26  Jim Meyering  <meyering@lucent.com>
68193
68194         * lib/gtod.h: Remove file.
68195         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68196         * lib/gettimeofday.c: Don't include gtod.h.
68197         (GTOD_init): Remove function.
68198         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68199         Suggestion from Volker Borchert.
68200
68201 2001-11-23  Jim Meyering  <meyering@lucent.com>
68202
68203         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68204         it.
68205         * lib/hash.c (struct hash_table): Define it here instead.
68206
68207 2001-11-22  Jim Meyering  <meyering@lucent.com>
68208
68209         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68210
68211 2001-11-20  Jim Meyering  <meyering@lucent.com>
68212
68213         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68214         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68215
68216 2001-11-19  Jim Meyering  <meyering@lucent.com>
68217
68218         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68219         directory.  Use "conftestXXXXXX" as the template.
68220         Suggestion from Paul Eggert.
68221
68222         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68223         immediately, so the test doesn't mistakenly hit the max-open-files
68224         limit.
68225
68226 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68227
68228         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68229         (TEMPORARIES): New macro.
68230         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68231         removes an artificial limitation (e.g. HP-UX 10.20, where
68232         TMP_MAX is 17576).
68233
68234 2001-11-18  Jim Meyering  <meyering@lucent.com>
68235
68236         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68237
68238 2001-11-18  Jim Meyering  <meyering@lucent.com>
68239
68240         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68241         on SunOS 4.
68242
68243         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68244         files will be created before anything else.
68245
68246 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68247
68248         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68249         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68250
68251 2001-11-17  Jim Meyering  <meyering@lucent.com>
68252
68253         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68254         Prompted by a report from Bob Proulx.
68255
68256         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68257         Instead, require UTILS_FUNC_MKSTEMP.
68258
68259 2001-11-17  Jim Meyering  <meyering@lucent.com>
68260
68261         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68262         Now, that's done as part of AC_FUNC_STRTOD.
68263
68264 2001-11-17  Jim Meyering  <meyering@lucent.com>
68265
68266         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68267         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68268         rather than group writable.  Patch by Juan F. Codagnone.
68269
68270         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68271         xrealloc, Instead, include "xalloc.h".
68272
68273         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68274         Remove explicit declarations of xmalloc, xrealloc,
68275         and xstrdup.  Instead, include "xalloc.h".
68276
68277         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68278         unlocked-io.h.
68279         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68280         Likewise.
68281         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68282
68283         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68284         Reported by Padraig Brady.
68285
68286         * lib/mkstemp.c: #undef mkstemp.
68287         Include config.h.
68288         (rpl_mkstemp): Rename from mkstemp.
68289         Protoize.
68290
68291 2001-11-16  Jim Meyering  <meyering@lucent.com>
68292
68293         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68294         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68295         determine the amount of total physical memory, use pstat_getstatic.
68296         HPUX-11 doesn't define _SC_PHYS_PAGES.
68297         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68298         If sysconf couldn't be used to determine the amount of available
68299         physical memory, use both pstat_getstatic and pstat_getdynamic.
68300         Based on a patch from Bob Proulx.
68301
68302 2001-11-10  Jim Meyering  <meyering@lucent.com>
68303
68304         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68305         (jm_PREREQ): Use it.
68306
68307 2001-11-09  Jim Meyering  <meyering@lucent.com>
68308
68309         * m4/jm-macros.m4: Require autoconf-2.52f.
68310         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68311         Use these AC_-prefixed names, not the AM_-prefixed ones.
68312
68313         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68314
68315 2001-11-05  Jim Meyering  <meyering@lucent.com>
68316
68317         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68318
68319 2001-11-04  Jim Meyering  <meyering@lucent.com>
68320
68321         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68322         $DEFS.
68323
68324 2001-11-03  Jim Meyering  <meyering@lucent.com>
68325
68326         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68327         of AC_DEFUN.
68328
68329         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68330         know the name of the variable in the macro definition.
68331
68332 2001-11-03  Jim Meyering  <meyering@lucent.com>
68333
68334         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68335         in argmatch_to_argument call.
68336
68337         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68338         argument.
68339
68340         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68341         e.g., a fault due to an attempt to free a NULL pointer.
68342
68343 2001-11-01  Jim Meyering  <meyering@lucent.com>
68344
68345         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68346         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68347
68348 2001-11-01  Jim Meyering  <meyering@lucent.com>
68349
68350         * lib/dirfd.c, lib/dirfd.h: New files.
68351         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68352
68353         * lib/hash.c (hash_print) [TESTING]: Clean up.
68354
68355 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68356
68357         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68358         to avoid a warning if -Wall.
68359
68360 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68361
68362         * README: New file
68363         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68364         (per RMS's instructions, this is now the canonical source)
68365         * lgpl/, gpl/: New directories.
68366
68367 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68368
68369         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68370
68371 2001-10-21  Jim Meyering  <meyering@lucent.com>
68372
68373         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68374         this code would end up calling gettext even in packages built
68375         with --disable-nls.
68376         * lib/getopt.c (_): Likewise.
68377         * lib/regex.c (_): Likewise.
68378
68379 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68380
68381         * m4/error.m4 (jm_PREREQ_ERROR):
68382         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68383         AC_FUNC_STRERROR_R does that.
68384         Check for strerror declaration.
68385
68386         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68387         are supposed to have them these days.
68388         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68389         Merge changes from latest Autoconf CVS.
68390         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68391         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68392         POSIX decided to standardize on the int flavor of strerror_r.
68393
68394 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68395
68396         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68397         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68398         Use strerror_r that is only a macro, even if it is not a function.
68399         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68400         (private_strerror): Use prototypes, not old-style function definition.
68401         (print_errno_message): New function.
68402         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68403         char*-flavored one.
68404         (error_tail, error, error_at_line): Use it.
68405
68406 2001-10-11  Jim Meyering  <meyering@lucent.com>
68407
68408         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68409         and quote_n (1, ... to avoid clobbering a buffer.
68410
68411 2001-10-05  Jim Meyering  <meyering@lucent.com>
68412
68413         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68414         hash-pjw.h.
68415         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68416         * lib/hash-pjw.h: New file.
68417
68418 2001-09-30  Jim Meyering  <meyering@lucent.com>
68419
68420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68421         `struct fsstat' has the `f_fstypename' member.
68422         Use that to define FS_TYPE, which is now used to make
68423         the getfsstat link test tighter.
68424
68425 2001-09-30  Jim Meyering  <meyering@lucent.com>
68426
68427         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68428         Include <sys/ucred.h>, for Apple Darwin.
68429         Include sys/mount.h and sys/fs_types.h only if available.
68430         (FS_TYPE): Define.
68431         (read_filesystem_list): Use FS_TYPE.
68432
68433 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68434
68435         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68436         a boolean context.
68437
68438 2001-09-29  Jim Meyering  <meyering@lucent.com>
68439
68440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68441         [one-argument getmntent function]): Include stdio.h before mntent.h.
68442         SunOS 4.1.x needs it for the declaration of `FILE'.
68443         Patch by Volker Borchert.
68444
68445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68446         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68447         sys/fs_types.h, and make the link-test for getfsstat guard #include
68448         directives with appropriate #if HAVE_*_H tests so that we can
68449         detect getfsstat on Apple Darwin1.3.7 systems.
68450         Reported by Nelson Beebe.
68451         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68452
68453 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68454
68455         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68456         #defines strtoimax.  Also treat the other strto* functions
68457         like strtoimax.
68458
68459         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68460         Check for strtoul and strtoumax,
68461         as those declarations are made even in the signed case.
68462         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68463         Likewise, for strtol and strtoimax.
68464
68465 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68466
68467         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68468         #defines strtoimax.  Also treat the other strto* functions
68469         like strtoimax.
68470
68471         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68472         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68473         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68474
68475 2001-09-26  Jim Meyering  <meyering@lucent.com>
68476
68477         Most macros in unlocked-io.h had the wrong number of arguments.
68478         * lib/gen-uio: New script.
68479         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68480         * lib/unlocked-io.hin: Remove file.
68481         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68482         rather than trying to embed it here.
68483         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68484         Reported by Padraig Brady.
68485
68486 2001-09-25  Volker Borchert  <bt@teknon.de>
68487
68488         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68489         `result'.
68490
68491 2001-09-24  Jim Meyering  <meyering@lucent.com>
68492
68493         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68494
68495 2001-09-23  Jim Meyering  <meyering@lucent.com>
68496
68497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68498         instead of the mere test for existence of mntent.h.  The latter
68499         would get a false-positive on AIX 3.4 systems.
68500         In the outer getmntent if-block, don't die if neither of the getmntent
68501         tests succeeds.  Instead, just fall through and continue with the
68502         remaining tests.
68503
68504 2001-09-23  Jim Meyering  <meyering@lucent.com>
68505
68506         * lib/mountlist.c: Remove useless parentheses in #if directives.
68507         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68508         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68509
68510 2001-09-22  Jim Meyering  <meyering@lucent.com>
68511
68512         * m4/gettext.m4: New file.  From gettext.
68513         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68514         * m4/progtest.m4: Likewise
68515         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68516         * m4/glibc21.m4: Likewise.
68517
68518         * m4/libintl.m4: Remove.  No longer used.
68519
68520 2001-09-22  Jim Meyering  <meyering@lucent.com>
68521
68522         * lib/localcharset.c: Update from latest gettext.
68523         * lib/config.charset: Likewise.
68524
68525 2001-09-20  Jim Meyering  <meyering@lucent.com>
68526
68527         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68528         strtoimax.
68529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68530         strtoumax.
68531
68532 2001-09-20  Jim Meyering  <meyering@lucent.com>
68533
68534         * lib/xstrtol.c (strtoimax): Guard declaration with
68535         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68536         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68537         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68538         (strtoumax): Likewise, for completeness (it wasn't necessary).
68539
68540 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68541
68542         * lib/strtoimax.c (HAVE_LONG_LONG):
68543         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68544         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68545         to work around bug in IBM C compiler.
68546
68547 2001-09-17  Jim Meyering  <meyering@lucent.com>
68548
68549         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68550         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68551         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68552         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68553         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68554         whenever the right hand side need not be expanded by the shell.
68555
68556 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68557
68558         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68559         library.  It's not correct, as some older glibcs are buggy.
68560         fnmatch wasn't fixed until glibc 2.2.
68561
68562         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68563         special shell magic here.
68564
68565 2001-09-16  Jim Meyering  <meyering@lucent.com>
68566
68567         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68568         * m4/jm-macros.m4: Require it.
68569
68570 2001-09-16  Jim Meyering  <meyering@lucent.com>
68571
68572         * lib/mkdir.c: New file.
68573
68574 2001-09-15  Jim Meyering  <meyering@lucent.com>
68575
68576         * m4/jm-macros.m4: Check for help2man.
68577
68578 2001-09-11  Jim Meyering  <meyering@lucent.com>
68579
68580         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68581         The body, by Paul Eggert, was moved here from configure.in.
68582         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68583
68584 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68585
68586         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68587         (jm_PREREQ): Use it.
68588
68589 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68590
68591         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68592         Use ssize_t, not int, to store result of readlink.
68593         Check for ssize_t overflow as well as size_t overflow,
68594         as POSIX says the result of readlink is implementation-defined
68595         when ssize_t overflows.
68596         Remove unnecessary cast to char*.
68597         Use free+malloc instead of realloc, as the storage doesn't need
68598         to be preserved and it's clearer and can be more efficient that way.
68599         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68600         * lib/xreadlink.h (xreadlink): Update prototype.
68601
68602 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68603
68604         * lib/xgetcwd.c: Revert some of the previous change; intead,
68605         fix the HAVE_GETCWD_NULL code to behave more like the
68606         !HAVE_GETCWD_NULL code used to.
68607
68608         Include "xalloc.h".
68609         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68610         invoke xalloc_die.
68611
68612 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68613
68614         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68615         sys/param.h, as pathmax.h includes them.
68616
68617 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68618
68619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68620         (jm_PREREQ_XGETCWD): New macro.
68621
68622         * m4/getcwd.m4: New file.
68623
68624 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68625
68626         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68627         like the HAVE_GETCWD_NULL code.
68628         Include pathmax.h if not HAVE_GETCWD.
68629         Do not include xalloc.h.
68630         (INITIAL_BUFFER_SIZE): New symbol.
68631         Do not use xmalloc / xrealloc, since the caller is responsible for
68632         handling errors.  Preserve errno around `free' during failure.
68633         Do not overrun buffer when using getwd.
68634
68635 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68636
68637         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68638         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68639         getcwd (NULL, 0).
68640
68641 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68642
68643         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68644         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68645         spotted by Jim Meyering.
68646
68647 2001-09-03  Jim Meyering  <meyering@lucent.com>
68648
68649         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68650         failure.
68651
68652 2001-09-02  Jim Meyering  <meyering@lucent.com>
68653
68654         * lib/error.c: Update from GNU libc.
68655
68656 2001-09-01  Jim Meyering  <meyering@lucent.com>
68657
68658         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68659         Used by df.
68660
68661 2001-09-01  Jim Meyering  <meyering@lucent.com>
68662
68663         * lib/xreadlink.c: New file.
68664         * lib/xreadlink.h: New file.
68665         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68666         xreadlink.h.
68667
68668         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68669         doesn't conflict with sparc Solaris 7's definition in
68670         /usr/include/sys/int_types.h.
68671
68672         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68673         files.
68674         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68675         and strncasecmp as r-values.  Unixware didn't have declarations.
68676
68677 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68678
68679         * lib/xstrtol.h: Add copyright notice.
68680         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68681         LONGINT_INVALID_SUFFIX_CHAR.
68682
68683 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68684
68685         * lib/xstrtol.c (strtoimax): New decl.
68686
68687 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68688
68689         * lib/xgetcwd.c: Don't include pathmax.h.
68690         Include stdlib.h and unistd.h if available.
68691         Include xalloc.h.
68692         (xmalloc, xstrdup, free): Remove decls.
68693         (xgetcwd): Don't assume sizes fit in unsigned.
68694         Check for overflow when computing sizes.
68695         Simplify reallocation code.
68696
68697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68698
68699         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68700         a directory's st_size can have an arbitrary value, so the old
68701         usage could waste an arbitrary amount of memory.  All uses
68702         changed.
68703         * lib/savedir.h: Update prototype.
68704
68705 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68706
68707         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68708
68709         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68710         old strtoimax.c.
68711
68712         Also, make the following further changes to make this file's
68713         configuration more similar to that of strtol.c:
68714         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68715         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68716         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68717         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68718         changed to signed values.
68719
68720         And make the following changes as well:
68721         Fix copyright notice, as 1999 was missing.
68722         (verify): New macro.
68723         (strtoimax): Check sizes at compile-time, not run-time.
68724         Prefer strtol to strtoll if both work.
68725         (main): Remove; it was not that useful and was a pain to maintain.
68726
68727         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68728
68729 2001-08-31  Jim Meyering  <meyering@lucent.com>
68730
68731         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68732         Use an initial, malloc'd, buffer of length 128 rather than
68733         a statically allocated one of length 1024.
68734
68735 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68736
68737         Simplify code, partly by assuming autoconf 2.52 semantics.
68738
68739         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68740
68741         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68742         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68743         All uses removed.
68744         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68745         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68746         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68747         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68748         jm_AC_HEADER_INTTYPES_H.
68749         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68750
68751         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68752
68753         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68754         Quote first arg of AC_DEFUN.
68755         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68756         since they are needed to parse the include file even if we need
68757         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68759         but with opposite signedness.
68760
68761 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68762
68763         Merge 'exclude' changes from tar 1.13.22.
68764         This fixes one or two unlikely storage allocation overflow bugs,
68765         but doesn't change user-visible behavior otherwise.
68766
68767 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68768
68769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68770         (jm_PREREQ_EXCLUDE): New macro.
68771
68772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68773
68774         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68775         tm to be declared.
68776
68777 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68778
68779         * lib/hash.c: Remove '2001' from copyright notice.
68780
68781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68782
68783         * lib/full-write.h: New file.
68784         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68785         * lib/full-write.c: Correct credits, as cccp.c no longer
68786         exists and anyway it was so heavily changed from the old cccp
68787         code as to be unrecognizable.  Include full-write.h.
68788         (full_write) Return size_t, with short writes meaning failure.
68789         All callers changed.  This fixes a bug with large buffers
68790         on 64-bit hosts.
68791         * lib/utime.c: Include full-write.h.
68792
68793 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68794
68795         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68796         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68797         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68798         Include if available.
68799         (<xalloc.h>): Include
68800         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68801         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68802         collide with FNM macros.
68803         (struct patopts): New struct.
68804         (struct exclude): Use it, as exclude patterns now come with options.
68805         (new_exclude): Support above changes.
68806         (new_exclude, add_exclude_file):
68807         Initial size must now be a power of two to simplify overflow checking.
68808         (free_exclude, fnmatch_no_wildcards): New function.
68809         (excluded_filename): No longer requires options arg, as the options
68810         are determined by add_exclude.  Now returns bool, not int.
68811         (excluded_filename, add_exclude):
68812         Add support for the fancy new exclusion options.
68813         (add_exclude, add_exclude_file): Now takes int options arg.
68814         Check for arithmetic overflow when computing sizes.
68815         (add_exclude_file): xrealloc might modify errno, so don't
68816         realloc until after errno might be used.
68817
68818         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68819         New macros.
68820         (free_exclude): New decl.
68821         (add_exclude, add_exclude_file): Now takes int options arg.
68822         (excluded_filename): No longer requires options arg, as the options
68823         are determined by add_exclude.  Now returns bool, not int.
68824
68825 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68826
68827         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68828
68829 2001-08-27  Jim Meyering  <meyering@lucent.com>
68830
68831         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68832
68833         * lib/version-etc.c (N_): Remove definition.
68834         Revert most of last change.
68835         Instead, simply don't mark the `Copyright...' string for translation.
68836         Based on advice from Paul Eggert.
68837
68838         * lib/strtoxmax.c: Tweak comment.
68839
68840 2001-08-26  Jim Meyering  <meyering@lucent.com>
68841
68842         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68843
68844         * m4/xstrtoimax.m4: New file.
68845         * m4/xstrtoumax.m4: Add comments explaining why we
68846         AC_REPLACE_FUNCS(strtol).
68847
68848 2001-08-26  Jim Meyering  <meyering@lucent.com>
68849
68850         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68851         of copyright with `%s' so translators don't get an untranslated
68852         message in 2002.
68853         (COPYRIGHT_YEAR): Define.
68854         (version_etc): Use fprintf rather than fputs.
68855         Suggestion from Ulrich Drepper.
68856
68857         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68858
68859         * lib/strtoll.c: New file, from GNU libc.
68860         * lib/xstrtoimax.c: New file.
68861
68862         * lib/xstrtol.h: Add xstrtoimax.
68863         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68864         * lib/strtoimax.c: New file.  Likewise, but first define
68865         STRTOUXMAX_SIGNED.
68866
68867         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68868         ...
68869         * lib/strtoxmax.c: ... then renamed to this.
68870
68871 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68872
68873         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68874         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68875         (jm_AC_TYPE_INTMAX_T): New macro.
68876         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68877
68878         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68879
68880         * m4/longlong.m4: Renamed from ulonglong.m4.
68881         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68882         * m4/uintmax_t.m4: Removed.
68883
68884 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68885
68886         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68887         Port to Solaris 8, where 'sed' requires a space after the 'r'
68888         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68889         Redirect output to $tmp just once.
68890
68891 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68892
68893         * lib/addext.c (<errno.h>): Include.
68894         (errno): Declare if not defined.
68895         (addext): Work correctly when pathconf returns -1 and leaves
68896         errno alone because there is no limit.  Also, work even if
68897         pathconf returns a value greater than SIZE_MAX.
68898
68899 2001-08-12  Jim Meyering  <meyering@lucent.com>
68900
68901         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68902         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68903         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68904         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68905         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68906         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68907         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68908         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68909         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68910         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68911         utime.m4, utimes.m4, xstrtoumax.m4:
68912         Quote the first argument in each use of AC_DEFUN.
68913
68914 2001-08-12  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68917         Simply `return getcwd (NULL, 0);'.
68918         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68919         Use 1300 as initial value for length, not PATH_MAX.
68920
68921         * lib/pathmax.h: Clean up cpp syntax.
68922
68923 2001-08-12  Jim Meyering  <meyering@lucent.com>
68924
68925         * lib/gettimeofday.c: New file.
68926         * lib/gtod.h: New file.
68927         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68928
68929 2001-08-05  Jim Meyering  <meyering@lucent.com>
68930
68931         * m4/jm-macros.m4: Require autoconf-2.52.
68932
68933 2001-08-04  Jim Meyering  <meyering@lucent.com>
68934
68935         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68936         stmt, to get in sync with glibc.
68937
68938 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68939
68940         The following changes are from gettext 0.10.39 as maintained by
68941         Bruno Haible.
68942
68943         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68944         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68945         with inverted sense.  All uses changed.
68946
68947         * lib/mbswidth.c: Don't include <limits.h>.
68948         Include <stdlib.h> and <string.h> unconditionally.
68949         (iswcntrl, mbsinit, ISCNTRL): New macros.
68950         (mbsnwidth): Use K&R style function declarations.
68951         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68952         can optimize it when MB_CUR_MAX == 1.
68953         The width of control characters is zero, not 1.
68954
68955 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68956
68957         The following changes are from gettext 0.10.39 as maintained by
68958         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68959
68960         * m4/codeset.m4: Upgrade to serial AM1.
68961         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68962         all uses changed.  Quote first arg of AC_DEFUN.
68963         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68964
68965         * m4/iconv.m4: Upgrade to serial AM2.
68966         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68967         Add --with-libconv-prefix.
68968         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68969         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68970         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68971         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68972         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68973
68974         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68975         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68976         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68977         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68978         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68979         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68980         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68981         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68982         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68983
68984         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68985         string.h any more.
68986
68987         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68988         not the default value.
68989
68990         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68991         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68992         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68993         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68994         Also check for iswcntrl, used for wcwidth fallback.
68995         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68996         to Autoconf 2.13.
68997
68998 2001-08-03  Jim Meyering  <meyering@lucent.com>
68999
69000         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69001         as it was in the original.  Reported by Paul Eggert.
69002
69003 2001-07-16  Jim Meyering  <meyering@lucent.com>
69004
69005         * m4/gettimeofday.m4: New file.
69006         Prompted by a report from Bernhard Baehr.
69007
69008 2001-07-15  Jim Meyering  <meyering@lucent.com>
69009
69010         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69011         stuff. Now it's in ../Makefile.cfg.
69012
69013 2001-07-15  Jim Meyering  <meyering@lucent.com>
69014
69015         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69016         (BUILT_SOURCES): Add unlocked-io.h.
69017         (io_functions): Define.
69018         (unlocked-io.h): New rule.
69019         (DISTCLEANFILES): Add unlocked-io.h.
69020         (all-local): Depend on unlocked-io.h, to ensure it is created.
69021
69022         * lib/unlocked-io.hin: New file
69023
69024         * lib/regex.c: Update from glibc.
69025
69026 2001-07-05  Jim Meyering  <meyering@lucent.com>
69027
69028         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69029         recommendation.
69030         (libfetish_a_SOURCES): Put all .h files here instead.
69031         Remove a thus-exposed (better checks in automake) duplicate and
69032         two unnecessary .h files.
69033
69034 2001-07-04  Jim Meyering  <meyering@lucent.com>
69035
69036         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69037         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69038         distcheck failure.
69039
69040 2001-07-02  Jim Meyering  <meyering@lucent.com>
69041
69042         The following changes were prompted by suggestions from Bruno Haible.
69043
69044         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69045         is now generated.
69046         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69047         definition of EXTRA_DIST.
69048         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69049         ensure that the generated file is created/updated whenever the list
69050         of $(unlocked_functions) is changed.
69051         (jm-glibc-io.m4): New rule.
69052         (unlocked-io.h): New rule -- currently unused.
69053
69054 2001-06-24  Jim Meyering  <meyering@lucent.com>
69055
69056         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69057         unmatched right bracket, rather than kludging it with an extra,
69058         falsely-matching quote in a comment.  Patch by Akim Demaille.
69059
69060 2001-06-11  Jim Meyering  <meyering@lucent.com>
69061
69062         * lib/regex.c: Update from GNU libc.
69063
69064 2001-05-27  Jim Meyering  <meyering@lucent.com>
69065
69066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69067         Check for ut_type in struct utmp.
69068
69069 2001-05-27  Jim Meyering  <meyering@lucent.com>
69070
69071         * lib/readutmp.h (UT_TYPE): Define.
69072
69073 2001-05-24  Jim Meyering  <meyering@lucent.com>
69074
69075         * lib/argmatch.c: Include "quote.h".
69076         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69077         quote function.  Reported by Göran Uddeborg.
69078
69079 2001-05-22  Jim Meyering  <meyering@lucent.com>
69080
69081         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69082         now that we use the package-supplied version unconditionally.
69083         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69084
69085 2001-05-21  Jim Meyering  <meyering@lucent.com>
69086
69087         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69088         shell syntax errors.
69089
69090 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69091
69092         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69093
69094 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69095
69096         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69097         Don't bother to check library strftime, since
69098         we'll be using our own my_strftime function anyway.
69099         Define my_strftime instead of strftime.
69100
69101 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69102
69103         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69104         which is not yet declared.
69105
69106 2001-05-15  Jim Meyering  <meyering@lucent.com>
69107
69108         * m4/regex.m4: Use proper quoting so brackets appear in the test
69109         program.
69110         Reported by, and with help from, Bruno Haible.
69111
69112 2001-05-13  Jim Meyering  <meyering@lucent.com>
69113
69114         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69115         undefined.
69116
69117 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69118
69119         dirname code cleanup.  base_name now behaves more compatibly
69120         with POSIX basename when given file names that have trailing
69121         slashes, and similarly for dir_name.  Add new primitives
69122         base_len and dir_len.  Put the directory-name-related decls
69123         into dirname.h.
69124
69125         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69126         * lib/backupfile.c (base_name): Likewise.
69127         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69128         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69129         * lib/makepath.c (strip_trailing_slashes): Likewise.
69130         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69131         ISSLASH): Likewise.
69132         * lib/rename.c (strip_trailing_slashes): Likewise.
69133         * lib/same.c (base_name): Likewise.
69134         * lib/stripslash.c (ISSLASH): Likewise.
69135
69136         * lib/addext.c: Include <dirname.h> after size_t is defined.
69137         * lib/backupfile.c: Likewise.
69138
69139         * lib/addext.c (addext): Use base_len to trim redundant
69140         trailing slashes instead of doing it ourselves.
69141         But do not trim the last slash if it is not redundant.
69142
69143         * lib/backupfile.c (find_backup_file_name,
69144         max_backup_version): Use base_len instead of rolling it ourselves.
69145         Handle the case of "" and (on DOS) "C:" correctly.
69146
69147         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69148         needed. Include <string.h>, <dirname.h>.
69149         (base_name): Allow file names ending in slashes, other than names
69150         that are all slashes.  In this case, return the basename followed
69151         by the slashes.  This is more general, and can be used in places
69152         where the original base_name purposely had an assertion failure.
69153         (base_len): New function.
69154
69155         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69156         Do not include <assert.h>; no longer needed.
69157         Include xalloc.h.
69158         (memrchr): Remove decl.
69159         (dir_name_r): Remove.
69160         (dir_len): Renamed from dirlen.  All callers changed.
69161         Rewrite in terms of base_name, for simplicity and consistency.
69162         (dir_name): Never return NULL.  All callers changed.
69163         Do not include <stdlib.h> in test program; no longer needed.
69164         return 0; is fine for test program.
69165
69166         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69167         New macros.
69168         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69169
69170         * lib/path-concat.c (path_concat): Use base_len to compute
69171         base length, not strlen; this means we cannot rely on memcpy
69172         to null-terminate.
69173
69174         * lib/same.c (STREQ): Remove.
69175         (same_name): Handle the case where the basename ends in trailing '/'.
69176
69177         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69178         a slash was stripped.  Do not strip the last slash after a
69179         file system prefix.
69180
69181 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69182
69183         * lib/Makefile.am (libfetish_a_SOURCES):
69184         Add strftime.c, since we now compile it on all hosts.
69185
69186         * lib/strftime.c (my_strftime):
69187         Define to nstrftime if emacs, but only if my_strftime is not defined.
69188         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69189         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69190         Add one more extra argument: a nanoseconds value.
69191         All uses changed.
69192         (ns): New macro.
69193         (my_strftime function): Add %N format.
69194         (emacs_strftimeu): Renamed from emacs_strftime,
69195         with extra ut argument.
69196
69197 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69198
69199         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69200
69201 2001-04-21  Jim Meyering  <meyering@lucent.com>
69202
69203         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69204         doesn't interfere.
69205
69206 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69207
69208         * m4/ftruncate.m4: Check for chsize.
69209         Link with ftruncate.o unconditionally if ftruncate is missing.
69210         This was required when cross-compiling to i586-mingw32msvc.
69211
69212 2001-04-08  Jim Meyering  <meyering@lucent.com>
69213
69214         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69215         recomputed; that's necessary when the offset spans a DST transition.
69216         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69217
69218 2001-04-02  Jim Meyering  <meyering@lucent.com>
69219
69220         * lib/regex.h, regex.c: Update from GNU libc.
69221
69222 2001-03-24  Jim Meyering  <meyering@lucent.com>
69223
69224         * m4/jm-macros.m4: Require autoconf-2.49d.
69225
69226 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69227
69228         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69229
69230 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69231
69232         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69233
69234 2001-03-17  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69237         now that the version in autoconf is equivalent.
69238         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69239
69240         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69241         Suggestion from Akim Demaille.
69242
69243         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69244         (jm_PREREQ_TEMPNAME): New function.
69245
69246 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69247
69248         * lib/tempname.c (uint64_t): Define to uintmax_t if
69249         not defined, and if UINT64_MAX is not defined.
69250         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69251         Reported by John David Anglin.
69252
69253 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69254
69255         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69256         resolve alias if codeset is empty.
69257         * lib/config.charset (BeOS): Use wildcard syntax.
69258
69259 2001-03-13  Jim Meyering  <meyering@lucent.com>
69260
69261         * lib/path-concat.c (path_concat)
69262         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69263         concatenating e.g., `C:' and `foo'.
69264         From Bruno Haible.
69265
69266 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69267
69268         * lib/localcharset.c (locale_charset): Don't use
69269         setlocale(LC_CTYPE,NULL). Don't return NULL.
69270         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69271
69272 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69273
69274         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69275         support for DOS/DJGPP.
69276
69277 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69278
69279         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69280         lacks mkstemp.  Compile our own tempname.c if we compile our own
69281         mkstemp.c, as mkstemp relies on tempname.
69282
69283 2001-03-01  Jim Meyering  <meyering@lucent.com>
69284
69285         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69286         AH_VERBATIM really does output its argument verbatim.
69287
69288 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69289
69290         * lib/Makefile.am (libfetish_a_SOURCES):
69291         Add dup-safer.c, fopen-safer.c.
69292         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69293
69294         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69295         * lib/unistd-safer.h: New files.
69296
69297 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69298
69299         The mkstemp replacement is taken from glibc 2.2.2, with some
69300         portability fixes for use outside glibc, as follows:
69301
69302         * lib/tempname.c (struct_stat64): New macro.
69303         (direxists, __gen_tempname): Use it.
69304         This avoids a portability problem with Solaris 8.
69305
69306         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69307         (<stddef.h>, <stdint.h>, <string.h>):
69308         Include only if STDC_HEADERS || _LIBC.
69309         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69310         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69311         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69312         (__set_errno): Define this macro if <errno.h> doesn't.
69313         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69314         Define these macros if <stdio.h> doesn't.
69315         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69316         Define these macros if <sys/stat.h>
69317         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69318         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69319         __xstat64): Define if not _LIBC.
69320         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69321         (__gen_tempname): Invoke gettimeofday only if
69322         HAVE_GETTIMEOFDAY || _LIBC;
69323         otherwise, fall back on plain "time".
69324         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69325
69326         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69327
69328         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69329
69330 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69331
69332         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69333
69334 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69335
69336         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69337         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69338         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69340
69341 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69342
69343         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69344         Remove workaround macros for hosts that have mbrtowc but not
69345         mbstate_t, as we now insist on proper declarations for both
69346         before using mbrtowc.
69347
69348 2001-02-17  Jim Meyering  <meyering@lucent.com>
69349
69350         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69351         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69352         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69353         UnixWare 7.1.1.
69354
69355         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69356         rather than AC_CACHE_VAL.
69357
69358 2001-02-17  Jim Meyering  <meyering@lucent.com>
69359
69360         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69361         around included file name.
69362
69363         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69364
69365         * lib/strftime.c: Update from GNU libc (the only changes were to
69366         comments).
69367
69368 2001-02-17  Jim Meyering  <meyering@lucent.com>
69369
69370         * lib/regex.c: Update from libc.
69371
69372 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69373
69374         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69375         clash.
69376
69377 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69378
69379         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69380         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69381         Reported by Mark Hounschell via Paul Eggert.
69382
69383 2001-02-07  Jim Meyering  <meyering@lucent.com>
69384
69385         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69386
69387 2001-02-05  Jim Meyering  <meyering@lucent.com>
69388
69389         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69390         it includes the patch required for `large file' support with at least
69391         HP-UX's 10.20 /bin/cc.
69392
69393 2001-02-03  Jim Meyering  <meyering@lucent.com>
69394
69395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69396         AS_IF, now that it works once again (mysteriously).
69397         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69398
69399 2001-01-30  Jim Meyering  <meyering@lucent.com>
69400
69401         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69402         * m4/chown.m4: Rename conftestchown to conftest.chown.
69403         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69404         s/conftestdir2/conftest.d2/.
69405         * m4/utimes.m4: s/conftestdata/conftest.data/
69406         Inspired by Pavel Roskin's change in autoconf.
69407
69408 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69409
69410         * lib/config.charset: Update for FreeBSD 4.2.
69411
69412 2001-01-27  Jim Meyering  <meyering@lucent.com>
69413
69414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69415         a use of AS_IF.
69416         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69417
69418 2001-01-26  Jim Meyering  <meyering@lucent.com>
69419
69420         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69421         quotearg.c includes it.
69422
69423 2001-01-26  Jim Meyering  <meyering@lucent.com>
69424
69425         * lib/quotearg.c: Include stddef.h.
69426         * lib/quote.c: Include stddef.h.
69427         Reported by Axel Kittenberger.
69428
69429         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69430         line in double quotes so that it evokes a better diagnostic.
69431         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69432         Reported by Axel Kittenberger.
69433
69434 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69435
69436         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69437         as if it was a `charset'.
69438
69439 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69440
69441         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69442         has const.
69443
69444 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69445
69446         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69447         to avoid a warning.  Add back 'const' to inptr.
69448
69449 2001-01-20  Jim Meyering  <meyering@lucent.com>
69450
69451         Be sure that headers are checked before used in code compiled
69452         for the type checks.
69453         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69454         In place of that, invoke jm_CHECK_ALL_TYPES.
69455         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69456         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69457         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69458         The check for ssize_t was mistakenly run before the test for unistd.h.
69459
69460         The configure-time check for stdbool.h was missing.
69461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69462         (jm_PREREQ_HASH): New function.
69463
69464 2001-01-17  Jim Meyering  <meyering@lucent.com>
69465
69466         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69467         for autoconf-2.49c.
69468         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69469
69470 2001-01-16  Jim Meyering  <meyering@lucent.com>
69471
69472         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69473         From Bruno Haible.
69474
69475 2001-01-14  Jim Meyering  <meyering@lucent.com>
69476
69477         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69478         foo and bar.  Create conftestdir/ in the script, not in the C code.
69479         Remove directories in the script, not in the C code.
69480         Remove conftestdir{,2} before trying to create the directory.
69481         Make the entire configure script fail if the mkdir fails.
69482
69483 2001-01-14  Jim Meyering  <meyering@lucent.com>
69484
69485         * lib/rename.c: New file.  From Volker Borchert.
69486         Include stdlib.h, string.h or strings.h, and xalloc.h.
69487         Use strip_trailing_slashes rather than open-coding it.
69488
69489 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69490
69491         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69492
69493 2001-01-03  Jim Meyering  <meyering@lucent.com>
69494
69495         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69496         of local `inptr' to avoid warning with some system declarations of
69497         iconv.
69498
69499 2001-01-02  Volker Borchert  <bt@teknon.de>
69500
69501         * m4/rename.m4: New file.
69502         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69503
69504 2001-01-01  Jim Meyering  <meyering@lucent.com>
69505
69506         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69507         even on systems with utmpx.h.  It's necessary for the declaration of
69508         utmp's ut_user member.  Reported by Andreas Jaeger.
69509
69510         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69511         available. They are required for the declarations of getgrgid and
69512         getpwuid resp.
69513         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69514         Reported by Andreas Jaeger.
69515
69516 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69517
69518         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69519         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69520         so `make install' also works in VPATH builds.
69521
69522 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69523
69524         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69525         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69526         can be used in subdirectories.
69527
69528 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69529
69530         * lib/modechange.c: Do not assume that mode_t uses the
69531         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69532         the other-execute bit of FOO even if S_IXOTH != 1.
69533
69534         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69535         WOTH, XOTH, ALLM): New macros.
69536         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69537          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69538         Use them.
69539         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69540         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69541         (mode_compile):
69542         No need to use uintmax_t; unsigned long is long enough.
69543         Don't bother to get suffix since we don't use it.
69544
69545 2000-12-26  Jim Meyering  <meyering@lucent.com>
69546
69547         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69548         better with autoheader.
69549
69550 2000-12-24  Jim Meyering  <meyering@lucent.com>
69551
69552         * lib/hash.c (is_prime): Return explicit boolean values.
69553         (hash_get_first): Return NULL to appease Irix5.6's 89.
69554         Reported by Nelson Beebe.
69555
69556 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69557
69558         * lib/localcharset.c (locale_charset): Add support for Win32.
69559
69560 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69561
69562         * lib/physmem.h, lib/physmem.c: New files.
69563
69564         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69565         (noinst_HEADERS): Add physmem.h.
69566
69567         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69568         't' for compatibility with Solaris 8 sort.
69569
69570 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69571
69572         * lib/config.charset: Add support for BeOS.
69573
69574 2000-12-17  Jim Meyering  <meyering@lucent.com>
69575
69576         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69577         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69578
69579 2000-12-16  Jim Meyering  <meyering@lucent.com>
69580
69581         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69582         N and M) would have treated it like `chown N:N FILE'.
69583
69584         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69585
69586 2000-12-16  Jim Meyering  <meyering@lucent.com>
69587
69588         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69589         SHELLS_FILE to a file name that's useful on djgpp systems.
69590         Include stdlib.h.
69591         (ADDITIONAL_DEFAULT_SHELLS): Define.
69592         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69593         Based mostly on a patch from Prashant TR.
69594
69595 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69596
69597         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69598         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69599         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69600
69601 2000-12-08  Andreas Schwab  <schwab@suse.de>
69602
69603         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69604         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69605
69606 2000-12-07  Jim Meyering  <meyering@lucent.com>
69607
69608         * lib/stripslash.c (ISSLASH): Define.
69609         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69610         `/'.
69611         From Prashant TR.
69612
69613         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69614         (dir_name_r): Declare this function as static.
69615         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69616         manifest itself on a name containing a mix of slashes and
69617         backslashes.
69618         Make this function work with names starting with a DOS-style
69619         drive letter and colon prefix.
69620         (dir_name): Append `.' if necessary.
69621         Based mostly on patches from Prashant TR and Eli Zaretskii.
69622
69623         * lib/dirname.h (dir_name_r): Remove prototype.
69624
69625 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69626
69627         * m4/off_t-format.m4: Remove this file.
69628         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69629
69630 2000-12-06  Jim Meyering  <meyering@lucent.com>
69631
69632         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69633         replacement strtoull, we may well need the replacement strtoul, too.
69634         Check for declarations of strtoul and strtoull.
69635         Check for strtol.  Mainly as a cue to cause automake to include
69636         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69637         Check for limits.h -- strtol.c needs it.
69638
69639 2000-12-05  Jim Meyering  <meyering@lucent.com>
69640
69641         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69642
69643 2000-12-04  Jim Meyering  <meyering@lucent.com>
69644
69645         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69646         Also include memory.h, stdlib.h, unistd.h if appropriate.
69647         Reported by Andreas Jaeger (conflicting declaration of malloc).
69648
69649 2000-12-02  Jim Meyering  <meyering@lucent.com>
69650
69651         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69652         * m4/jm-macros.m4 (jm_MACROS): require it.
69653
69654 2000-12-02  Jim Meyering  <meyering@lucent.com>
69655
69656         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69657
69658 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69659
69660         * lib/memrchr.c: Include <config.h> before any system include file.
69661
69662 2000-11-30  Jim Meyering  <meyering@lucent.com>
69663
69664         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69665
69666 2000-11-30  Jim Meyering  <meyering@lucent.com>
69667
69668         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69669
69670 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69671
69672         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69673
69674 2000-11-26  Jim Meyering  <meyering@lucent.com>
69675
69676         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69677
69678 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69679
69680         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69681         size of (size_t) -1; it's not portable.
69682
69683 2000-11-17  Jim Meyering  <meyering@lucent.com>
69684
69685         * lib/strstr.c: Update from GNU libc.
69686
69687 2000-11-17  Akim Demaille  <akim@epita.fr>
69688
69689         * lib/obstack.h: Formatting changes.
69690         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69691         prevent type checking.
69692         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69693         cast the value to (void *): assigning a `foo *' to a `void *'
69694         variable is valid.
69695         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69696
69697 2000-11-16  Jim Meyering  <meyering@lucent.com>
69698
69699         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69700
69701 2000-11-11  Jim Meyering  <meyering@lucent.com>
69702
69703         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69704
69705 2000-11-10  Jim Meyering  <meyering@lucent.com>
69706
69707         * lib/obstack.h: Update from GNU libc.
69708         * lib/obstack.c: Likewise.
69709
69710 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69711
69712         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69713
69714 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69715
69716         * lib/getusershell.c (setusershell): Use rewind rather than
69717         fseek/fseeko, to avoid configuration hassles with fseeko.
69718         Don't bother opening SHELLS_FILE if shellstream is NULL;
69719         it's not necessary.
69720
69721 2000-11-05  Jim Meyering  <meyering@lucent.com>
69722
69723         * lib/makepath.h (make_dir): Declare.
69724         * lib/makepath.c (make_dir): Remove `static' attribute.
69725         Tweak a comment.
69726
69727 2000-11-04  Jim Meyering  <meyering@lucent.com>
69728
69729         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69730
69731 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69732
69733         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69734         last one in a bucket, advance to the next bucket.
69735
69736 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69737
69738         * lib/fnmatch.c: Do not comment out all the code if we are using
69739         the GNU C library, because in some cases we are replacing buggy
69740         code in the GNU C library itself.
69741
69742 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69743
69744         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69745         (regex_compile): Catch bogus \(\1\).
69746
69747 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69748
69749         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69750         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69751         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69752
69753 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69754
69755         * lib/error.h, getline.h, modechange.h:
69756         Remove "2000" from Copyright line, as the file hasn't been
69757         changed this year other than in the copyright notice.
69758
69759         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69760         was changed this year.
69761
69762 2000-10-29  Jim Meyering  <meyering@lucent.com>
69763
69764         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69765         renaming.
69766         * m4/ls-mntd-fs.m4: Likewise
69767
69768 2000-10-29  Jim Meyering  <meyering@lucent.com>
69769
69770         * lib/xstat.in: Fix grammar in comment.
69771
69772 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69773
69774         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69775         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69776         doesn't define __restrict_arr.
69777
69778 2000-10-28  Jim Meyering  <meyering@lucent.com>
69779
69780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69781         (jm_PREREQ_MEMCHR): New function.
69782
69783 2000-10-28  Jim Meyering  <meyering@lucent.com>
69784
69785         * lib/memchr.c: Update from libc.
69786         Adjust for portability:
69787         [HAVE_STDLIB_H]: Include stdlib.h.
69788         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69789         Undef __memchr, too.
69790         [!weak_alias]: Define __memchr to memchr.
69791
69792         * lib/regex.c: Update from libc.
69793         * lib/regex.h: Likewise.
69794         * lib/getopt1.c: Likewise.
69795         * lib/memcmp.c: Likewise.
69796
69797         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69798         Avoid using fseek, when possible -- it's broken by design.
69799         Patch by Ulrich Drepper.
69800
69801 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69802
69803         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69804         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69805         Giving in to popular pressure to shut up the compiler with casts.
69806
69807 2000-10-26  Jim Meyering  <meyering@lucent.com>
69808
69809         * lib/strftime.c: Update from libc.
69810
69811 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69812
69813         * regex.c: More `unsigned char' -> `re_char' changes.
69814         Also change several `int' into `re_wchar_t'.
69815         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69816         (PUSH_FAILURE_POINTER): Don't cast any more.
69817         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69818         We want GCC to complain, since this piece of code makes
69819         re_match non-reentrant, which *should* be fixed.
69820         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69821         (EXTEND_BUFFER): Use RETALLOC.
69822         (SET_LIST_BIT): Don't cast.
69823         (re_wchar_t): New type.
69824         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69825         that those two functions will always properly return.
69826         (IMMEDIATE_QUIT_CHECK): Cast to void.
69827         (analyse_first): Use recursion rather than an explicit stack.
69828         (re_compile_fastmap): Can't fail anymore.
69829         (re_search_2): Don't check re_compile_fastmap for failure.
69830         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69831         Now also sets the new value (passed in a new argument).
69832         (re_match_2_internal): Use it.
69833         Also, use a new var `reg' of type size_t when looping through regs
69834         rather than reuse the inappropriate `mcnt'.
69835
69836 2000-10-25  Jim Meyering  <meyering@lucent.com>
69837
69838         * lib/obstack.c: Update from libc.
69839
69840 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69841
69842         * regex.c (regex_compile): Change the way of handling a range from
69843         a char less than 256 to a char not less than 256.
69844
69845 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69846
69847         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69848         NT-Emacs only.
69849         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69850         so that re_search functions only quit when callers expect them to.
69851
69852 2000-10-23  Jim Meyering  <meyering@lucent.com>
69853
69854         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69855         wrong.  That set_locale call must not have any side effects.
69856         From Paul Eggert.
69857
69858 2000-10-22  Jim Meyering  <meyering@lucent.com>
69859
69860         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69861         [CYCLIC]: Remove now-unused definition.
69862
69863         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69864         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69865         Suggestion from Ulrich Drepper.
69866
69867 2000-10-21  Jim Meyering  <meyering@lucent.com>
69868
69869         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69870         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69871         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69872
69873 2000-10-21  Jim Meyering  <meyering@lucent.com>
69874
69875         * lib/dirname.c (memrchr): Declare if necessary.
69876         (dir_name): Remove the restriction that there be no
69877         trailing slashes.  Now, this code skips past them, effectively
69878         ignoring them.
69879         [TEST_DIRNAME] (main): New unit tests.
69880
69881         * lib/memrchr.c: New file from GNU libc.
69882         Undef __memrchr, too.
69883         [!weak_alias]: Define __memrchr to memrchr.
69884         Guard weak_alias use with `#ifdef weak_alias'.
69885
69886 2000-10-21  Jim Meyering  <meyering@lucent.com>
69887
69888         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69889         (dir_name): Use dir_name_r.
69890         * lib/dirname.h (dir_name_r): Declare it.
69891
69892 2000-10-17  Jim Meyering  <meyering@lucent.com>
69893
69894         * lib/quote.h (PARAMS): Define and use.
69895         Reported by Akim Demaille.
69896
69897         * lib/getopt.c: Update from libc.
69898
69899 2000-10-16  Jim Meyering  <meyering@lucent.com>
69900
69901         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69902         setlocale.
69903         From Jan Fedak.
69904
69905 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69906
69907         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69908
69909 2000-09-25  Jim Meyering  <meyering@lucent.com>
69910
69911         * lib/md5.h (rol): Define (from GnuPG).
69912
69913         * lib/sha.c: Give credit (GnuPG) where due.
69914         (M): Use rol rather than open-coding it.
69915         Add a FIXME comment.
69916
69917 2000-09-21  Jim Meyering  <meyering@lucent.com>
69918
69919         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69920         Reported by Michael Stone.
69921
69922 2000-09-20  Jim Meyering  <meyering@lucent.com>
69923
69924         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69925         (noinst_HEADERS): Add sha.h.
69926         Based on code from Scott G. Miller and from GnuPG.
69927
69928 2000-09-18  Jim Meyering  <meyering@lucent.com>
69929
69930         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69931         LIBS. Otherwise, everyone ends up linking with -lelf for some
69932         configurations.
69933         Reported by Mike Stone.
69934
69935 2000-09-15  Jim Meyering  <meyering@lucent.com>
69936
69937         * lib/regex.c: Update from libc.
69938
69939 2000-09-10  Jim Meyering  <meyering@lucent.com>
69940
69941         * lib/getopt.c (_getopt_internal): Update from glibc.
69942
69943 2000-09-09  Jim Meyering  <meyering@lucent.com>
69944
69945         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69946         think it should be used as a general replacement for isascii.
69947         * lib/fnmatch.c: Likewise.
69948         * lib/mbswidth.c: Likewise
69949         * lib/regex.c: Likewise.
69950
69951         Don't use atoi.
69952         * lib/userspec.c: Include sys/param.h and limits.h.
69953         Include xstrtol.h.
69954         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69955         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69956         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69957         UID, GID.  Check range.
69958
69959 2000-09-06  Jim Meyering  <meyering@lucent.com>
69960
69961         * lib/getopt.c (_getopt_internal): Update from glibc.
69962
69963 2000-08-30  Jim Meyering  <meyering@lucent.com>
69964
69965         * lib/strftime.c: Merge in changes from GNU libc.
69966
69967 2000-08-26  Jim Meyering  <meyering@lucent.com>
69968
69969         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69970         * m4/fpending.m4: New file.
69971
69972 2000-08-26  Jim Meyering  <meyering@lucent.com>
69973
69974         * lib/closeout.c: Include "__fpending.h".
69975         (close_stdout_status): Return right away if there's nothing to flush.
69976
69977         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69978         * lib/__fpending.c: New file.
69979         * lib/__fpending.h: New file.
69980
69981 2000-08-20  Jim Meyering  <meyering@lucent.com>
69982
69983         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69984         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69985         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69986
69987 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69988
69989         Improve fileutils installation on systems where running
69990         programs (like install) can't be unlinked.
69991         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69992         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69993
69994 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69995
69996         Standardize on "memory exhausted" instead of "Memory exhausted"
69997         or "virtual memory exhausted".
69998         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69999         "virtual memory exhausted".
70000         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70001         our own message.
70002         * lib/userspec.c (parse_user_spec): Likewise.
70003         * lib/bumpalloc.h: comment fix
70004         * lib/same.c, userspec.c: Include xalloc.h.
70005
70006         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70007         not char *const and pointing to a constant array.
70008         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70009         (xrealloc): Comment fix.
70010
70011         * lib/userspec.c (parse_user_spec):
70012         Don't translate a message until just before returning,
70013         to avoid unnecessary translation.
70014
70015 2000-08-07  Jim Meyering  <meyering@lucent.com>
70016
70017         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70018         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70019         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70020         getgroups.c, gethostname.c, getopt.h, group-member.c,
70021         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70022         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70023         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70024         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70025         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70026         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70027         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70028         yesno.c: Back out Copyright date changes for each file with no change
70029         this year.  This eases coordination with other programs using the same
70030         source code modules.  From Paul Eggert.
70031
70032 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70033
70034         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70035         not char, for compatibility with glibc 2.1.3 strftime.c.
70036
70037 2000-08-03  Greg McGary  <greg@mcgary.org>
70038
70039         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70040         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70041         (EXTEND_BUFFER): Use them.
70042
70043 2000-08-01  Jim Meyering  <meyering@lucent.com>
70044
70045         * lib/dirname.c (ISSLASH): Define.
70046         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70047         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70048         both `\' and `/' may be use as path separators.
70049         Based on a patch from Prashant TR.
70050
70051 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70052
70053         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70054         slot vector a constant, since it might get modified.
70055
70056 2000-07-31  Jim Meyering  <meyering@lucent.com>
70057
70058         * lib/xmalloc.c: Use `virtual memory exhausted', not
70059         `Memory exhausted'.
70060         * lib/obstack.c (print_and_abort): Likewise.
70061
70062 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70063
70064         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70065         buffer, so that the caller can always quote one small
70066         component of a "memory exhausted" message in slot 0.
70067         From a suggestion by Jim Meyering.
70068
70069 2000-07-30  Jim Meyering  <meyering@lucent.com>
70070
70071         * lib/makepath.c (make_path): Quote the other instance, too.
70072
70073         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70074         (STATIC_BUF_SIZE): Define.
70075         (quotearg_n_options): Use only statically allocated storage when
70076         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70077         than STATIC_BUF_SIZE.
70078
70079 2000-07-29  Jim Meyering  <meyering@lucent.com>
70080
70081         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70082         * lib/dirname.c (dir_name): Likewise.
70083
70084         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70085         `/'.
70086
70087         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70088         (dir_name): Assert that there are no trailing slashes.
70089
70090 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70091
70092         * lib/mbswidth.h (mbswidth): Add a flags argument.
70093         (mbswidth): New declaration.
70094         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70095         * lib/mbswidth.c (mbswidth): Add a flags argument.
70096         (mbsnwidth): New function.
70097
70098 2000-07-24  Jim Meyering  <meyering@lucent.com>
70099
70100         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70101
70102 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70103
70104         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70105
70106 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70107
70108         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70109         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70110         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70111         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70112         invoke multibyte primitives.
70113
70114 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70115
70116         * lib/quotearg.c:
70117         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70118         so that mbstate_t is always defined.
70119
70120         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70121         be 1 in at least one GCC installation, and this configuration
70122         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70123         performance on hosts that have mbrtowc but have only unibyte
70124         locales, but I assume these hosts are rare.
70125
70126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70127
70128         * lib/mbswidth.c (_XOPEN_SOURCE):
70129         Don't define; this causes problems on Solaris 7.
70130         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70131
70132 2000-07-23  Jim Meyering  <meyering@lucent.com>
70133
70134         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70135         too: getgrgid, getpwuid, getuid.
70136
70137 2000-07-23  Jim Meyering  <meyering@lucent.com>
70138
70139         * lib/basename.c (base_name): Add an assertion.
70140
70141 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70142
70143         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70144         shadow its mbsinit function.
70145
70146 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70147
70148         * lib/mbswidth.h: New file.
70149         * lib/mbswidth.c: New file.
70150         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70151         (noinst_HEADERS): Add mbswidth.h.
70152
70153 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70154
70155         * lib/config.charset: Add support for FreeBSD. Improve support for
70156         HP-UX and IRIX 6.
70157
70158 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70159
70160         * m4/mbswidth.m4: New file.
70161         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70162
70163 2000-07-15  Jim Meyering  <meyering@lucent.com>
70164
70165         * lib/makepath.c: Include quote.h.
70166         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70167         corresponding argument in a `quote (...)' call.
70168         Give better diagnostics.
70169
70170         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70171         (noinst_HEADERS): Add quote.h.
70172
70173         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70174         from tar's src/misc.c.
70175         * lib/quote.h: New file.  Prototypes for same.
70176
70177 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70178
70179         From a suggestion by Bruno Haible.
70180         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70181         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70182         to decide whether to define the BeOS workaround macro;
70183         this adjusts to the change to AC_MBSTATE_T.
70184
70185 2000-07-14  Jim Meyering  <meyering@lucent.com>
70186
70187         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70188         jm_AC_TYPE_UINTMAX_T.
70189
70190 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70191
70192         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70193
70194         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70195         quotearg_buffer_restyled): Add support for
70196         clocale_quoting_style.  Undo previous change to
70197         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70198         and "{RIGHT QUOTATION MARK}" msgids.
70199
70200 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70201
70202         From a suggestion by Bruno Haible.
70203         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70204         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70205         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70206         and mbstate_t, to a single-part test that simply defines mbstate_t.
70207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70208         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70209
70210 2000-07-10  Jim Meyering  <meyering@lucent.com>
70211
70212         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70213
70214         * m4/gnu-source.m4: Output to confdefs.h directly.
70215         Suggestion from Akim Demaille.
70216
70217 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70218
70219         The old behavior of quoting `like this' doesn't look good with
70220         newer, ISO-style fonts.  See:
70221         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70222
70223         Instead, quote "like this" by default.  Let the translator
70224         tailor the locale-specific quoting behavior by providing
70225         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70226
70227         * lib/quotearg.c (N_): New macro.
70228         (gettext_default): New function.
70229         (quotearg_buffer_restyled): Use
70230         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70231         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70232
70233 2000-07-09  Jim Meyering  <meyering@lucent.com>
70234
70235         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70236         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70237
70238         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70240
70241 2000-07-09  Jim Meyering  <meyering@lucent.com>
70242
70243         * lib/Most files: Update copyright dates to include 2000.
70244
70245 2000-07-08  Jim Meyering  <meyering@lucent.com>
70246
70247         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70248         if not defined.
70249         (xgethostname): Remove now-unnecessary #ifdef.
70250         Move declaration of `err' into loop where it's used.
70251
70252 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70253         and Bruno Haible  <haible@clisp.cons.org>
70254
70255         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70256         only if the test for an object-type mbstate_t fails.  This
70257         prevents us from mistakenly reporting that mbstate_t is a
70258         system object type after we "#define mbstate_t int" to work
70259         around its lack.
70260
70261 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70262         and Bruno Haible  <haible@clisp.cons.org>
70263
70264         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70265
70266 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70267
70268         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70269         to strerror_r.
70270         Include <ctype.h> for use of isalpha.
70271
70272 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70273
70274         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70275         by allocating a larger buffer. Test the gethostname return value for
70276         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70277         returns an error and ENAMETOOLONG isn't defined.
70278
70279 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70280
70281         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70282         dimension.
70283
70284 2000-07-04  Jim Meyering  <meyering@lucent.com>
70285
70286         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70287         of the deprecated AC_CHECKING.
70288
70289 2000-07-04  Jim Meyering  <meyering@lucent.com>
70290
70291         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70292         Reported by Bruno Haible.
70293
70294 2000-07-04  Jim Meyering  <meyering@lucent.com>
70295
70296         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70297         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70298         lacks mbrtowc.
70299
70300 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70301
70302         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70303         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70304
70305 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70306         and Bruno Haible  <haible@clisp.cons.org>
70307
70308         * lib/quotearg.c (mbrtowc):
70309         Assign to *pwc, and return 1 only if result is nonzero.
70310         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70311
70312 2000-07-03  Jim Meyering  <meyering@lucent.com>
70313
70314         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70315
70316 2000-07-03  Jim Meyering  <meyering@lucent.com>
70317
70318         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70319         This is necessary to get a definition of e.g., UTMP_FILE on
70320         HP-UX 10.20.
70321         From Bob Proulx.
70322
70323 2000-07-02  Jim Meyering  <meyering@lucent.com>
70324
70325         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70326
70327         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70328         AC_LIBOBJ(function_name).
70329         * m4/chown.m4: Likewise.
70330         * m4/fnmatch.m4: Likewise.
70331         * m4/ftruncate.m4: Likewise.
70332         * m4/getgroups.m4: Likewise.
70333         * m4/getline.m4: Likewise.
70334         * m4/group-member.m4: Likewise.
70335         * m4/jm-macros.m4: Likewise.
70336         * m4/lstat.m4: Likewise.
70337         * m4/malloc.m4: Likewise.
70338         * m4/memcmp.m4: Likewise.
70339         * m4/nanosleep.m4: Likewise.
70340         * m4/putenv.m4: Likewise.
70341         * m4/realloc.m4: Likewise.
70342         * m4/regex.m4: Likewise.
70343         * m4/stat.m4: Likewise.
70344         * m4/strftime.m4: Likewise.
70345
70346 2000-07-02  Jim Meyering  <meyering@lucent.com>
70347
70348         * lib/quotearg.c (mbstate_t): Don't define here.
70349
70350 2000-07-02  Jim Meyering  <meyering@lucent.com>
70351
70352         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70353
70354 2000-07-01  Jim Meyering  <meyering@lucent.com>
70355
70356         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70357
70358 2000-07-01  Jim Meyering  <meyering@lucent.com>
70359
70360         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70361         problem.
70362
70363 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70364
70365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70366         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70367
70368 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70369
70370         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70371         per change in ../m4/ls-mntd-fs.m4.
70372         (read_filesystem_list): Ignore symbolic links.
70373
70374 2000-06-29  Jim Meyering  <meyering@lucent.com>
70375
70376         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70377         for declaration of strcmp.
70378
70379         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70380
70381         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70382         Avoid warning by casting result to `char *' to remove `const'.
70383
70384 2000-06-28  Jim Meyering  <meyering@lucent.com>
70385
70386         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70387         included by quotearg.c, for which we perform this test.  From
70388         Bruno Haible.
70389
70390 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70391
70392         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70393         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70394         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70395
70396 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70397
70398         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70399
70400 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70401
70402         savedir now sets errno on failure and invokes xmalloc to get memory.
70403         Fix a couple of other minor bugs while we're at it.
70404
70405         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70406         (NAMLEN): Remove macro.
70407         (malloc, realloc): Remove decls.
70408         (stpcpy): Likewise.
70409         ("xalloc.h"): Include.
70410         (NAME_SIZE_DEFAULT): New macro.
70411         (savedir): Use xmalloc / xrealloc to allocate memory.
70412         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70413         Skip "" directory entries.
70414         Use strlen to calculate directory entry length, since the old method
70415         is rarely used these days and isn't worth supporting.
70416         Don't use a pointer after freeing it.
70417         Check for integer overflow when calculating allocation size.
70418         Use memcpy to copy entries, instead of stpcpy.
70419         Set errno properly when returning NULL.
70420         Check for readdir error.
70421
70422 2000-06-26  Jim Meyering  <meyering@lucent.com>
70423
70424         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70425
70426 2000-06-25  Jim Meyering  <meyering@lucent.com>
70427
70428         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70429         Linux header bug when _XOPEN_SOURCE is defined to 500.
70430
70431 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70432
70433         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70434         deficiency.
70435
70436 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70437
70438         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70439         Include xalloc.h.
70440         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70441
70442 2000-06-24  Jim Meyering  <meyering@lucent.com>
70443
70444         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70445         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70446         for which strerror does return char*, but which lacks a conveniently
70447         accessible declaration of the function.  If the compile-test says
70448         strerror_r doesn't work, then resort to a `run'-test that works on
70449         BeOS and segfaults on DEC Unix.
70450
70451 2000-06-24  Jim Meyering  <meyering@lucent.com>
70452
70453         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70454
70455 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70456
70457         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70458         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70459
70460 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70461
70462         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70463         (mbrtowc, mbstate_t): Define substitutes if
70464         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70465         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70466         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70467
70468 2000-06-23  Jim Meyering  <meyering@lucent.com>
70469
70470         * m4/afs.m4: Add missing AC_MSG_RESULT.
70471         Reported by Bruno Haible.
70472
70473         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70474         Suggestion from Bruno Haible.
70475
70476 2000-06-23  Jim Meyering  <meyering@lucent.com>
70477
70478         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70479
70480 2000-06-21  Jim Meyering  <meyering@lucent.com>
70481
70482         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70483
70484 2000-06-21  Jim Meyering  <meyering@lucent.com>
70485
70486         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70487         (noinst_HEADERS): Add getstr.h.
70488
70489         * lib/getline.c (getstr): Move into a separate file.
70490         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70491         the following changes: new parameter, delim2; both delim[12]
70492         parameters have type `int', not `char'.  The latter would lose
70493         with 8-bit delimiters.
70494         * lib/getstr.h: New file.
70495
70496 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70497
70498         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70499         than 1024, return a memory chunk of least possible size, instead
70500         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70501         Use free/xmalloc instead of xrealloc to avoid copying for very long
70502         paths.
70503
70504 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70505
70506         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70507         the empty string.
70508
70509 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70510
70511         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70512         address, not strdup.  Include <stdlib.h> and don't declare free().
70513
70514 2000-06-19  Jim Meyering  <meyering@lucent.com>
70515
70516         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70517
70518 2000-06-18  Jim Meyering  <meyering@lucent.com>
70519
70520         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70521
70522         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70523         `checking whether...' message to be consistent with that of the
70524         lstat test.
70525
70526 2000-06-18  Jim Meyering  <meyering@lucent.com>
70527
70528         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70529         Besides, these days every porting target provides a mkdir function.
70530
70531         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70532         needed. (this snippet comes from src/system.h).
70533
70534 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70535
70536         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70537
70538 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70539
70540         * lib/human.c (adjust_value): New function.
70541         (human_readable_inexact): Apply rounding style even when
70542         printing approximate values.
70543
70544 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70545
70546         * lib/human.c (human_readable_inexact): Allow an input block
70547         size that is not a multiple of the output block size, and vice versa.
70548         Reported by Piergiorgio Sartor.
70549
70550 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70551
70552         * lib/getdate.y (get_date): Apply relative times after time
70553         zone indicator, not before.  Reported by Todd A. Jacobs.
70554
70555 2000-06-13  Jim Meyering  <meyering@lucent.com>
70556
70557         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70558
70559         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70560
70561 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70562
70563         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70564
70565 2000-06-12  Jim Meyering  <meyering@lucent.com>
70566
70567         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70568         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70569         optional argument.
70570         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70571         the optional argument, `lib'.
70572
70573 2000-06-08  Jim Meyering  <meyering@lucent.com>
70574
70575         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70576
70577 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70578
70579         Rewrite largefile configuration so that we don't need to run
70580         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70581         AC_CANONICAL_HOST in configure.in -- jmm]
70582
70583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70584         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70585         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70586         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70587         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70588         All uses changed.
70589         Instead of inspecting the output of getconf, try to compile the
70590         test program without and with the macro definition.
70591         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70592         for getconf.  Instead, check for the needed flags by compiling
70593         test programs.
70594
70595 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70596
70597         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70598
70599 2000-06-04  Jim Meyering  <meyering@lucent.com>
70600
70601         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70602         SunOS 4.1.4 for which gid_t is an unsigned type.
70603
70604 2000-06-03  Jim Meyering  <meyering@lucent.com>
70605
70606         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70607         now that autoconf requires that.
70608
70609         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70610         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70611         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70612
70613 2000-06-03  Jim Meyering  <meyering@lucent.com>
70614
70615         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70616
70617 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70618
70619         * m4/glibc21.m4: New file.
70620         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70621
70622 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70623
70624         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70625         newer, don't install charset.alias.
70626         * lib/config.charset: Change the Linux/glibc rules so they become empty
70627         on glibc-2.1 or newer.
70628
70629 2000-06-02  Jim Meyering  <meyering@lucent.com>
70630
70631         * lib/mountlist.c: Back out last change.  Instead, do this...
70632         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70633         me_dummy member using the same `ignore'-testing code.
70634         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70635         fs_type strings.
70636         From Mark D. Roth.
70637
70638 2000-05-29  Jim Meyering  <meyering@lucent.com>
70639
70640         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70641         mounts with the `ignore' attribute.  Based on a patch from
70642         Mark D. Roth.
70643
70644 2000-05-28  Jim Meyering  <meyering@lucent.com>
70645
70646         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70647         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70648         * m4/stat.m4: Likewise.
70649         * m4/lstat.m4: Likewise.
70650         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70651
70652         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70653         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70654
70655 2000-05-26  Jim Meyering  <meyering@lucent.com>
70656
70657         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70658
70659 2000-05-24  Jim Meyering  <meyering@lucent.com>
70660
70661         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70662         autoconf requires that.
70663         * m4/lib-check.m4: Likewise.
70664         * m4/jm-macros.m4: Likewise.
70665         * m4/strftime.m4: Likewise.
70666
70667         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70668         AC_CHECK_DECLS, now that autoconf requires that.
70669
70670 2000-05-22  Jim Meyering  <meyering@lucent.com>
70671
70672         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70673         * m4/lstat.m4: Likewise.
70674
70675 2000-05-22  Jim Meyering  <meyering@lucent.com>
70676
70677         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70678
70679 2000-05-20  Jim Meyering  <meyering@lucent.com>
70680
70681         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70682         (jm_PREREQ): Use it.
70683
70684 2000-05-18  Jim Meyering  <meyering@lucent.com>
70685
70686         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70687         back, too, since it may have been modified by allocate_entry.
70688         (hash_delete): Rewrite to use neither the assignment operator
70689         nor the comma operator in an if-expression.
70690
70691 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70692
70693         * lib/closeout.c:
70694         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70695         Remove; no longer needed.
70696         "quotearg.h": Add include.
70697         (file_name): Do not bother to explicitly initialize to NULL; it's less
70698         efficient on some hosts.
70699         (close_stdout_status): Remove test as to whether stdout was already
70700         closed; it breaks for the case "echo x | sort >&-".
70701         Quote file name colons.
70702         Do not assume that _("write error") lacks format strings.
70703
70704 2000-05-15  Jim Meyering  <meyering@lucent.com>
70705
70706         * lib/version-etc.c (version_etc_copyright): Update the copyright
70707         string used in all --version output.
70708
70709 2000-05-14  Jim Meyering  <meyering@lucent.com>
70710
70711         * lib/closeout.c (close_stdout_set_file_name): New function.
70712         (close_stdout_status): Use new file-scoped global.
70713         Return right away if fstat says the stdout file descriptor is invalid.
70714         * lib/closeout.h (close_stdout_set_file_name): Declare.
70715
70716 2000-05-10  Jim Meyering  <meyering@lucent.com>
70717
70718         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70719         (close_stdout_set_status): New function.
70720         * lib/closeout.h (close_stdout_set_status): Declare.
70721
70722 2000-05-09  Jim Meyering  <meyering@lucent.com>
70723
70724         * m4/gettext.m4: Rename this...
70725         * m4/libintl.m4: ...to this.
70726
70727 2000-05-08  Jim Meyering  <meyering@lucent.com>
70728
70729         * lib/long-options.c: Don't include closeout.h.
70730         (parse_long_options): Don't call close_stdout for --version.
70731
70732 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70733
70734         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70735         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70736         2.1.3 bug.  This avoids a clash when files like regex.c define
70737         _GNU_SOURCE.
70738
70739 2000-05-06  Jim Meyering  <meyering@lucent.com>
70740
70741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70742         (AC_REPLACE_FUNCS): Add strnlen.
70743
70744         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70745         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70746
70747         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70748         AC_SEARCH_LIBS call for nanosleep.
70749         (LIB_NANOSLEEP): Set and AC_SUBST.
70750
70751 2000-05-06  Jim Meyering  <meyering@lucent.com>
70752
70753         * lib/strnlen.c: Undefine __strnlen and strnlen.
70754         [!weak_alias]: Define __strnlen to strnlen.
70755
70756         * lib/atexit.c: New file, from libiberty.
70757
70758 2000-05-06  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/closeout.c (close_stdout_status): Also check for errors on the
70761         stderr stream.
70762
70763 2000-05-05  Jim Meyering  <meyering@lucent.com>
70764
70765         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70766         AC_SEARCH_LIBS call for clock_gettime.
70767         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70768
70769         * m4/search-libs.m4: Update from autoconf.
70770
70771         su doesn't work on Solaris 2.6.
70772         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70773         <shadow.h>.  Reported by Dragos Harabor.
70774
70775 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70776
70777         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70778         memcpy instead of xmalloc, xrealloc, path_concat.
70779         (locale_charset): Treat empty environment variables as absent.
70780         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70781
70782 2000-05-04  Jim Meyering  <meyering@lucent.com>
70783
70784         * lib/getopt.c: Update from glibc.
70785         * lib/obstack.c: Likewise.
70786         * lib/obstack.h: Likewise.
70787         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70788         file
70789
70790         * lib/regex.h: Likewise.
70791         * lib/strndup.c: Likewise.
70792         * lib/strnlen.c: New file, from glibc.
70793
70794 2000-05-03  Jim Meyering  <meyering@lucent.com>
70795
70796         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70797
70798 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70799
70800         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70801         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70802         compile-time test, rather than inspecting host and OS, to
70803         decide whether to define _LARGEFILE_SOURCE.
70804
70805 2000-05-01  Jim Meyering  <meyering@lucent.com>
70806
70807         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70808
70809         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70810         Based on a patch from Bruno Haible.
70811
70812 2000-05-01  Jim Meyering  <meyering@lucent.com>
70813
70814         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70815
70816 2000-04-29  Jim Meyering  <meyering@lucent.com>
70817
70818         * lib/path-concat.c: Declare strdup only if it's not defined.
70819         * lib/canon-host.c: Likewise.
70820
70821 2000-04-28  Jim Meyering  <meyering@lucent.com>
70822
70823         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70824         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70825         is included first, then limits.h is included by locale.h by libintl.h.
70826         From John David Anglin.
70827
70828 2000-04-25  Jim Meyering  <meyering@lucent.com>
70829
70830         * lib/makepath.c (S_IRWXUGO): Define.
70831         (make_path): Always perform explicit chmod if MODE specifies any
70832         of the `special' permission bits.  Prompted by a bug report against
70833         install from Mate Wierdl and Joost van Baal.
70834
70835 2000-04-18  Jim Meyering  <meyering@lucent.com>
70836
70837         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70838         (jm_PREREQ): Use it.
70839
70840 2000-04-18  Jim Meyering  <meyering@lucent.com>
70841
70842         * lib/README: New file.
70843
70844         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70845         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70846
70847 2000-04-17  Jim Meyering  <meyering@lucent.com>
70848
70849         Get it right :-)
70850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70851         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70852         Suggestion from Akim Demaille.
70853
70854 2000-04-17  Jim Meyering  <meyering@lucent.com>
70855
70856         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70857         the definition of it to rpl_strftime also defined-away the system's
70858         declaration.
70859
70860 2000-04-15  Jim Meyering  <meyering@lucent.com>
70861
70862         Use `C' to denote so-called `contiguous' files, the same way
70863         that tar does.
70864         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70865         (ftypelet): Use S_ISCTG.
70866         From Michael Deutschmann.
70867
70868 2000-04-14  Jim Meyering  <meyering@lucent.com>
70869
70870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70871         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70872         clobbered.
70873
70874 2000-04-14  Jim Meyering  <meyering@lucent.com>
70875
70876         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70877
70878 2000-04-13  Jim Meyering  <meyering@lucent.com>
70879
70880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70881         AH_VERBATIM to insert required #ifndef into config.h.in.
70882         Suggestion from Akim Demaille.
70883
70884 2000-04-12  Jim Meyering  <meyering@lucent.com>
70885
70886         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70887         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70888         Christian Krackowizer.
70889
70890         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70891         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70892         (AC_SYS_LARGEFILE): Require.
70893         (AM_C_PROTOTYPES): Require.
70894
70895 2000-04-08  Jim Meyering  <meyering@lucent.com>
70896
70897         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70898         names don't conflict.  Reported by Eli Zaretskii.
70899
70900 2000-04-07  Jim Meyering  <meyering@lucent.com>
70901
70902         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70903         sys/types.h, to work around system header problems on AIX 3.2.5.
70904         From Bruno Haible.
70905
70906 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70907
70908         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70909         bug.  Deal with the different error behavior of Irix iconv.
70910
70911 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70912
70913         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70914         IRIX if the installer said otherwise.
70915
70916 2000-04-05  Jim Meyering  <meyering@lucent.com>
70917
70918         Portability tweaks required for ultrix4.3.
70919         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70920         (jm_CHECK_DECLS): Add getutent to the list of functions.
70921         (_jm_DECL_HEADERS): Add utmpx.h.
70922         From John David Anglin.
70923
70924         * m4/strftime.m4: Back out the 2000-04-02 change.
70925         Instead of that change, simply undefine putenv in the test program.
70926
70927 2000-04-05  Jim Meyering  <meyering@lucent.com>
70928
70929         Portability tweaks required for ultrix4.3.
70930         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70931         getutent.
70932         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70933         * lib/canon-host.c: Declare strdup.
70934         * lib/path-concat.c: Likewise.
70935         From John David Anglin.
70936
70937 2000-04-04  Jim Meyering  <meyering@lucent.com>
70938
70939         Be more DOS 8.3-friendly.
70940         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70941         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70942         * lib/Makefile.am: Reflect renaming.
70943         Reported by Eli Zaretskii.
70944
70945         Use a temporary file name that won't clash with `charset.alias'
70946         in the DOS 8.3 name space.
70947         * lib/Makefile.am (charset_tmp): Define.
70948         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70949         (uninstall-local): Likewise.
70950         Reported by Eli Zaretskii.
70951
70952 2000-04-03  Jim Meyering  <meyering@lucent.com>
70953
70954         * m4/gettext.m4: Fix typo in comment.
70955
70956         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70957         textutils/configure.in).  Suggestion from Paul Eggert.
70958         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70959
70960 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70961
70962         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70963         variable in the shell rather than using putenv, which isn't
70964         portable.  This avoids the configure-time inter-test dependency
70965         on the potentially-renamed putenv function.
70966
70967 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70968
70969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70970         before checking struct stat.st_blksize, so that
70971         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70972
70973 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70974
70975         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70976         since strftime.c uses HAVE_STRFTIME to decide whether to use
70977         the underlying strftime.
70978
70979 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70980
70981         * lib/time/strftime.c (my_strftime): Make sure we call the system
70982         strftime, not ourselves, when invoking the underlying strftime.
70983
70984 2000-03-24  Jim Meyering  <meyering@lucent.com>
70985
70986         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70987         (charset_alias): Define.
70988         (install-exec-local): Factor out common code.
70989         (uninstall-local): Split lines longer than 80.
70990         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70991         (SUFFIXES): Define.
70992         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70993         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70994
70995 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70996
70997         * lib/config.charset: Output a line containing "Packages using this
70998         file".
70999         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71000         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71001         ref-del.sed): New rules.
71002
71003 2000-03-17  Jim Meyering  <meyering@lucent.com>
71004
71005         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71006         Otherwise, include <strings.h>
71007
71008 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71009
71010         * lib/unicodeio.c (utf8_wctomb): New function.
71011         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71012         format instead of in UCS-4 with platform dependent endianness.
71013
71014 2000-03-10  Jim Meyering  <meyering@lucent.com>
71015
71016         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71017         From Marco Franzen.
71018
71019 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71020
71021         * lib/savedir.c (savedir): Work even if directory size is
71022         negative; this can happen with some screwy NFS configurations.
71023
71024 2000-03-06  Jim Meyering  <meyering@lucent.com>
71025
71026         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71027         if it's NULL (because we ran out of memory).  From Bruno Haible.
71028
71029 2000-03-05  Jim Meyering  <meyering@lucent.com>
71030
71031         * lib/localcharset.c ("path-concat.h"): Include.
71032         (get_charset_aliases): Use path_concat instead of ANSI string
71033         concatenation.
71034
71035         * lib/unicodeio.h (PARAMS): Define.
71036         Use it to guard prototype.
71037
71038 2000-03-04  Jim Meyering  <meyering@lucent.com>
71039
71040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71041         for lib/localcharset.c.
71042
71043 2000-03-04  Jim Meyering  <meyering@lucent.com>
71044
71045         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71046         installing into it.
71047         (uninstall-local): Uncomment this rule so `make distcheck' works
71048         once again.
71049
71050         * lib/unicodeio.c (<errno.h>): Include it.
71051         (errno): Declare if not defined.
71052
71053         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71054
71055         * lib/config.charset: New version, incorporating remarks from a linux
71056         i18n mailing list.  From Bruno Haible.
71057
71058 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71059
71060         * m4/codeset.m4: New file.
71061         * m4/iconv.m4: New file.
71062         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71063
71064 2000-03-03  Jim Meyering  <meyering@lucent.com>
71065
71066         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71067
71068 2000-03-02  Jim Meyering  <meyering@lucent.com>
71069
71070         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71071         the messages come out on separate lines.
71072
71073         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71074         rather than jm_CHECK_DECLARATIONS.
71075         * m4/decl.m4: Remove now-unused file.
71076
71077         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71078         geteuid.
71079
71080 2000-03-02  Jim Meyering  <meyering@lucent.com>
71081
71082         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71083
71084 2000-03-01  Jim Meyering  <meyering@lucent.com>
71085
71086         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71087         * lib/unicodeio.c: Likewise.
71088
71089 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71090
71091         * lib/config.charset: New file.
71092         * lib/localcharset.c: New file.
71093         * lib/unicodeio.h, lib/unicodeio.c: New files.
71094         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71095         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71096         (noinst_HEADERS): Add unicodeio.h.
71097         (all-local, install-exec-local, charset.alias): New targets.
71098
71099 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71100
71101         * lib/quotearg.c (ALERT_CHAR): New macro.
71102         (quotearg_buffer_restyled): Use it.
71103
71104 2000-02-27  Jim Meyering  <meyering@lucent.com>
71105
71106         * m4/check-decl.m4: Add getenv to the list.
71107
71108 2000-02-27  Jim Meyering  <meyering@lucent.com>
71109
71110         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71111         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71112
71113         * lib/backupfile.c: Guard inclusion of stdlib.h with
71114         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71115         Declare malloc if needed.
71116
71117         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71118         `#ifndef HAVE_DECL..'
71119         now that autoconf always defines the HAVE_DECL_ symbols.
71120         * lib/human.c: Likewise.
71121         * lib/same.c: Likewise.
71122         * lib/strtoumax.c: Likewise.
71123
71124         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71125         declaration check was not run.
71126         * lib/hash.c: Likewise.
71127         * lib/human.c: Likewise.
71128         * lib/same.c: Likewise.
71129         * lib/strtoumax.c: Likewise.
71130
71131         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71132         `.', then first look up the entire `.'-containing string as a login
71133         name.
71134
71135 2000-02-23  Jim Meyering  <meyering@lucent.com>
71136
71137         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71138         in place of my hack.
71139
71140 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71141
71142         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71143         (textint): New typedef.
71144         (parser_control): Member year changed from int to textint.
71145         All uses changed.
71146         (YYSTYPE): Removed; replaced by %union with int and textint members.
71147         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71148         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71149         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71150         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71151         (date, number, to_year): Use width of number in digits, not its value,
71152         to determine whether it's a 2-digit year, or a 2-digit time.
71153         (yylex): Store number of digits of numeric tokens.
71154         Reported by John Kendall.
71155
71156         (parser_control): Changed from struct parser_control to typedef (for
71157         consistency).  All uses changed.
71158
71159         (tID): Removed; not used.
71160         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71161
71162 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71163
71164         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71165         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71166
71167 2000-02-12  Jim Meyering  <meyering@lucent.com>
71168
71169         * lib/userspec.c (ISDIGIT): Define it.
71170         (isdigit): Remove definition.
71171         (is_number): Use ISDIGIT, not isdigit.
71172         <libintl.h>: Include.
71173         (_ and N_): Define.
71174         (parse_user_spec): Mark translatable strings.
71175
71176 2000-02-10  Jim Meyering  <meyering@lucent.com>
71177
71178         With these changes, nanosleep.[ch] are finally enough like the other
71179         lib/* replacement files to compile on a few more losing systems.
71180
71181         * lib/nanosleep.h: Don't include config.h.
71182         Remove prototype from declaration of nanosleep.
71183         (PARAMS): Remove now-unneeded definition.
71184         * lib/nanosleep.c: #undef nanosleep.
71185         (rpl_nanosleep): Rename from nanosleep.
71186
71187 2000-02-10  Jim Meyering  <meyering@lucent.com>
71188
71189         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71190         gnu_nanosleep to rpl_nanosleep.
71191
71192 2000-02-09  Jim Meyering  <meyering@lucent.com>
71193
71194         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71195         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71196
71197 2000-02-08  Akim Demaille  <akim@epita.fr>
71198
71199         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71200         `[' and `]' and remove uses of `changequote'.
71201         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71202         (AC_SYS_LARGEFILE): Likewise.
71203         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71204         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71205         of changequote.
71206         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71207         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71208         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71209         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71210
71211 2000-02-05  Jim Meyering  <meyering@lucent.com>
71212
71213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71214         Remove explicit use of AC_HEADER_TIME.  It is required by
71215         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71216         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71217         in autoconf whereby the expansion of the latter ended up preceding
71218         the expansion of its prerequisite, AC_HEADER_TIME.
71219         Reported by Volker Borchert.
71220
71221 2000-02-03  Jim Meyering  <meyering@lucent.com>
71222
71223         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71224
71225 2000-02-03  Jim Meyering  <meyering@lucent.com>
71226
71227         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71228         rather than with `#if HAVE_UTMPNAME'.
71229
71230 2000-02-02  Jim Meyering  <meyering@lucent.com>
71231
71232         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71233         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71234         Reported by Eli Zaretskii.
71235
71236 2000-02-01  Jim Meyering  <meyering@lucent.com>
71237
71238         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71239
71240 2000-01-31  Jim Meyering  <meyering@lucent.com>
71241
71242         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71243         functions.  Add the time.h and sys/time.h headers along with the
71244         AC_REQUIRE'ment of AC_HEADER_TIME.
71245
71246 2000-01-31  Jim Meyering  <meyering@lucent.com>
71247
71248         * lib/nanosleep.h (nanosleep): Guard declaration with
71249         `#if ! HAVE_DECL_NANOSLEEP'.
71250         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71251         the declaration in that vendor's sys/timers.h.
71252         Reported by Christian Krackowizer.
71253
71254         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71255         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71256         (ISPRINT): Likewise.
71257         Reported by Tom Tromey.
71258
71259 2000-01-30  Jim Meyering  <meyering@lucent.com>
71260
71261         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71262
71263         * m4/prereq.m4 (utmp_includes): Define.
71264         Check for ut_user and ut_name members in both struct utmpx
71265         and struct utmp.
71266
71267 2000-01-30  Jim Meyering  <meyering@lucent.com>
71268
71269         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71270         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71271         header files where only utmpx.ut_user is declared.
71272
71273         * lib/readutmp.h (UT_USER): Define.
71274
71275 2000-01-29  Jim Meyering  <meyering@lucent.com>
71276
71277         * m4/lib-check.m4: New file containing library-related checks from
71278         fileutils and sh-utils (textutils had none).
71279
71280 2000-01-28  Jim Meyering  <meyering@lucent.com>
71281
71282         * m4/perl.m4: Change format of warning message to look more like that
71283         from the missing script.  Suggestion from François Pinard.
71284
71285 2000-01-25  Jim Meyering  <meyering@lucent.com>
71286
71287         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71288         well as time.h in the compile check.
71289         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71290         Fix typo in cross-compiling case: s/yes/no/.
71291
71292 2000-01-23  Jim Meyering  <meyering@lucent.com>
71293
71294         * m4/jm-macros.m4: Move df-related tests here from
71295         fileutils/configure.in
71296
71297         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71298         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71299
71300         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71301         s/space/ac_fsusage_space/.
71302         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71303
71304         * m4/ftruncate.m4: New file (derived from part of
71305         fileutils/configure.in).
71306         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71307         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71308
71309         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71310         AC_SUBST these here, rather than just in sh-util/configure.in, so
71311         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71312         all the same.
71313         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71314         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71315         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71316         (AC_SUBST(POW_LIBM)): Likewise.
71317         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71318
71319 2000-01-23  Jim Meyering  <meyering@lucent.com>
71320
71321         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71322         obstack.c.
71323
71324 2000-01-22  Jim Meyering  <meyering@lucent.com>
71325
71326         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71327
71328         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71329
71330         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71331         configure.in
71332         (AC_CHECK_HEADERS): Likewise for sh-utils.
71333         (AC_CHECK_HEADERS): Likewise for textutils.
71334         Merge the three lists of headers.
71335
71336         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71337         from fileutils' configure.in.
71338
71339         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71340         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71341         check-decl.m4.
71342
71343         * m4/check-decl.m4: Use #if rather than #ifdef.
71344         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71345         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71346         (_jm_DECL_HEADERS): Define new function.
71347         (jm_CHECK_DECLARATIONS): Require it.
71348
71349 2000-01-22  Jim Meyering  <meyering@lucent.com>
71350
71351         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71352         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71353         Required for some AIX systems.  Reported by Christian Krackowizer.
71354         [TESTING] (main): New function.
71355
71356         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71357         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71358         letters.
71359
71360         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71361         iswprint.
71362
71363         * lib/strverscmp.c (ISDIGIT): Define.
71364         (strverscmp): Use ISDIGIT, not isdigit.
71365
71366 2000-01-19  Jim Meyering  <meyering@lucent.com>
71367
71368         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71369         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71370         defines `struct timespec' in <sys/time.h>
71371
71372         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71373         Thanks to Akim for explaining.
71374
71375 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71376
71377         * lib/nanosleep.c (nanosleep):
71378         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71379         POSIX.1 doesn't require SA_INTERRUPT and some systems
71380         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71381         it's been part of POSIX.1 since day 1 (in 1988).
71382
71383 2000-01-17  Jim Meyering  <meyering@lucent.com>
71384
71385         * lib/interlock: Remove unused file.  Reported by François Pinard.
71386
71387 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71388
71389         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71390         alert, backslash, formfeed, and vertical tab unnecessarily in
71391         shell quoting style.
71392
71393 2000-01-16  Jim Meyering  <meyering@lucent.com>
71394
71395         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71396         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71397         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71398         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71399
71400 2000-01-16  Jim Meyering  <meyering@lucent.com>
71401
71402         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71403         because the latter didn't work.
71404
71405 2000-01-15  Jim Meyering  <meyering@lucent.com>
71406
71407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71408         (AC_REPLACE_FUNCS): Add memcpy and memset.
71409         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71410         Add strpbrk.
71411         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71412
71413 2000-01-12  Jim Meyering  <meyering@lucent.com>
71414
71415         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71416         (jm_PREREQ): Use it.
71417         (jm_PREREQ_READUTMP): New macro.
71418         (jm_PREREQ): Use it.
71419
71420 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71421
71422         Quote multibyte characters correctly.
71423         * m4/c-bs-a.m4: New file.
71424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71425         (jm_PREREQ): Use it.
71426
71427 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71428
71429         * m4/uintmax_t.m4: Port to autoconf 2.13.
71430
71431 2000-01-08  Jim Meyering  <meyering@ascend.com>
71432
71433         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71434         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71435
71436 2000-01-04  Jim Meyering  <meyering@ascend.com>
71437
71438         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71439         jm_STRUCT_DIRENT_D_TYPE.
71440         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71441         jm_STRUCT_DIRENT_D_INO.
71442         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71443         jm_STRUCT_UTIMBUF.
71444         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71445         renamings.
71446         * m4/utime.m4: Likewise.
71447
71448         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71449         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71450
71451 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71452
71453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71454         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71455
71456 2000-01-02  Jim Meyering  <meyering@ascend.com>
71457
71458         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71459         remember if this is necessary.
71460
71461 1999-12-26  Jim Meyering  <meyering@ascend.com>
71462
71463         * m4/jm-macros.m4: Use it here.
71464         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71465
71466 1999-12-23  Jim Meyering  <meyering@ascend.com>
71467
71468         * m4/jm-macros.m4: Check for clock_gettime (moved from
71469         fileutils/configure.in)
71470         Check for gettimeofday.
71471
71472 1999-12-20  Jim Meyering  <meyering@ascend.com>
71473
71474         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71475         autoconf-2.14a-1999-12-20.
71476
71477 1999-12-19  Jim Meyering  <meyering@ascend.com>
71478
71479         * m4/lstat-slash.m4: New file.
71480         * m4/jm-macros.m4: Use the new macro:
71481         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71482
71483 1999-12-07  Jim Meyering  <meyering@ascend.com>
71484
71485         * m4/perl.m4: Require that File::Compare be available, too.
71486         Too many systems seem to lack it.
71487
71488         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71489         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71490
71491 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71492
71493         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71494         problem with the QNX 4.25 shell, which doesn't propagate exit
71495         status of failed commands inside shell assignments.
71496
71497 1999-11-17  Jim Meyering  <meyering@ascend.com>
71498
71499         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71500
71501 1999-11-07  Jim Meyering  <meyering@ascend.com>
71502
71503         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71504
71505 1999-11-06  Jim Meyering  <meyering@ascend.com>
71506
71507         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71508         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71509
71510 1999-11-05  Jim Meyering  <meyering@ascend.com>
71511
71512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71513         configure.in of textutils, fileutils, and sh-utils into this one
71514         (shared between those packages) file.
71515         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71516         AC_STRUCT_ST_BLKSIZE.
71517
71518 1999-11-03  Jim Meyering  <meyering@ascend.com>
71519
71520         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71521         of AC_CHECK_TYPE checks includes unistd.h.
71522         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71523         Suggestion from Akim Demaille.
71524
71525 1999-10-30  Jim Meyering  <meyering@ascend.com>
71526
71527         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71528         m4-quoted string.
71529         * m4/ls-mntd-fs.m4: Likewise.
71530         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71531         * m4/jm-winsz1.m4: Likewise.
71532
71533         * m4/const.m4: Remove file, since the fix made it into the experimental
71534         version of autoconf.
71535         * m4/mktime.m4: Likewise.
71536
71537         * m4/check-type.m4: Remove file, now that the latest version of
71538         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71539
71540         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71541         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71542         AC_CHECK_TYPE.
71543
71544 1999-10-04  Jim Meyering  <meyering@ascend.com>
71545
71546         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71547
71548 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71549
71550         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71551         2.95.1 bug with HP-UX 10.20.
71552
71553 1999-09-17  Jim Meyering  <meyering@ascend.com>
71554
71555         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71556         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71557         due to missing strdup (against sh-utils-2.0).
71558
71559 1999-08-29  Jim Meyering  <meyering@ascend.com>
71560
71561         * m4/jm-macros.m4: Require jm_BISON.
71562         * m4/bison.m4: New file.
71563
71564 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71565
71566         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71567         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71568
71569 1999-08-05  Jim Meyering  <meyering@ascend.com>
71570
71571         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71572         to avoid conflicts with `conftest' on 8+3 filesystems.
71573         Suggestion from Eli Zaretskii.
71574
71575 1999-08-04  Jim Meyering  <meyering@ascend.com>
71576
71577         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71578         fileutils and sh-utils (textutils's getline test was inadequate).
71579         (AM_FUNC_GETLINE): Run this test.
71580         (AC_CHECK_FUNCS): Check for getdelim.
71581         Reported by Bob Proulx.
71582
71583 1999-08-02  Jim Meyering  <meyering@ascend.com>
71584
71585         * m4/jm-macros.m4: Add a comment.
71586
71587 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71588
71589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71590         <inttypes.h> defines strtoumax as a macro (and not as a
71591         function).
71592
71593 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71594
71595         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71596         that we can shift, multiply and divide unsigned long long
71597         values; Ultrix cc can't do it.
71598
71599 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71600
71601         * m4/mktime.m4: New file, which is a preview of what should appear
71602         in the next public autoconf release.
71603
71604 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71605
71606         * m4/lfs.m4: Remove this file.
71607         * m4/largefile.m4: New file.  It contains the old contents of
71608         lfs.m4, except that all names with prefix AC_LFS have been
71609         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71610         compatible with future autoconf versions.  Also, some minor m4
71611         quoting problems have been fixed.
71612
71613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71614
71615         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71616         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71617         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71618         and simplify the shell code.
71619
71620 1999-08-01  Jim Meyering  <meyering@ascend.com>
71621
71622         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71623         m4.
71624
71625 1999-07-20  Jim Meyering  <meyering@ascend.com>
71626
71627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71628
71629 1999-07-15  Jim Meyering  <meyering@ascend.com>
71630
71631         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71632
71633 1999-05-22  Jim Meyering  <meyering@ascend.com>
71634
71635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71636
71637 1999-05-20  Jim Meyering  <meyering@ascend.com>
71638
71639         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71640         Add a colon after each `then' in case $4 is empty.
71641
71642 1999-05-16  Jim Meyering  <meyering@ascend.com>
71643
71644         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71645
71646 1999-05-10  Jim Meyering  <meyering@ascend.com>
71647
71648         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71649
71650         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71651         AC_FUNC_MKTIME.
71652
71653 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71654
71655         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71656
71657 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71658
71659         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71660         not CPPFLAGS, so that linking works correctly in IRIX.
71661
71662 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71663
71664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71665
71666 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71667
71668         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71669         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71671         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71672         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71673
71674         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71675
71676 1999-04-20  Jim Meyering  <meyering@ascend.com>
71677
71678         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71679         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71680         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71681
71682 1999-04-18  Jim Meyering  <meyering@ascend.com>
71683
71684         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71685         * m4/jm-macros.m4: Use it.
71686
71687 1999-04-06  Jim Meyering  <meyering@ascend.com>
71688
71689         * m4/strftime.m4: Remove test for %f.
71690
71691 1999-03-29  Jim Meyering  <meyering@ascend.com>
71692
71693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71694         superset of the AC_TYPE_* checks in the textutils, fileutils,
71695         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71696         AC_TYPE_PID_T.
71697
71698 1999-03-28  Jim Meyering  <meyering@ascend.com>
71699
71700         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71701         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71702         replaced e.g., in the *.sh files of the sh-utils.
71703
71704 1999-03-20  Jim Meyering  <meyering@ascend.com>
71705
71706         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71707         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71708         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71709
71710 1999-03-19  Jim Meyering  <meyering@ascend.com>
71711
71712         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71713
71714 1999-03-12  Jim Meyering  <meyering@ascend.com>
71715
71716         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71717
71718 1999-03-07  Jim Meyering  <meyering@ascend.com>
71719
71720         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71721         declared.
71722
71723 1999-02-17  Jim Meyering  <meyering@ascend.com>
71724
71725         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71726         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71727
71728 1999-02-07  Jim Meyering  <meyering@ascend.com>
71729
71730         * m4/group-member.m4: New file -- extracted from sh-utils'
71731         configure.in.
71732
71733         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71734         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71735
71736 1999-02-06  Jim Meyering  <meyering@ascend.com>
71737
71738         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71739         * m4/fnmatch.m4: Likewise.
71740         * m4/getgroups.m4: Likewise.
71741         * m4/lstat.m4: Likewise.
71742         * m4/malloc.m4: Likewise.
71743         * m4/putenv.m4: Likewise.
71744         * m4/realloc.m4: Likewise.
71745         * m4/regex.m4: Likewise.
71746         * m4/stat.m4: Likewise.
71747         * m4/strftime.m4: Likewise.
71748         Suggestion from Alain Magloire.
71749
71750         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71751         * m4/fnmatch.m4: Likewise.
71752         * m4/getgroups.m4: Likewise.
71753         * m4/getline.m4: Likewise.
71754         * m4/lstat.m4: Likewise.
71755         * m4/malloc.m4: Likewise.
71756         * m4/memcmp.m4: Likewise.
71757         * m4/putenv.m4: Likewise.
71758         * m4/realloc.m4: Likewise.
71759         * m4/regex.m4: Likewise.
71760         * m4/stat.m4: Likewise.
71761         * m4/strftime.m4: Likewise.
71762         Suggestion from Alain Magloire.
71763
71764         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71765         an argument.
71766
71767         * m4/regex.m4: Add a run-time Test for proper operation of
71768         re_compile_pattern.
71769
71770 1999-01-31  Jim Meyering  <meyering@ascend.com>
71771
71772         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71773
71774 1999-01-30  Jim Meyering  <meyering@ascend.com>
71775
71776         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71777
71778         * m4/jm-mktime.m4: Make this a wrapper around the official
71779         AM_FUNC_MKTIME rather than my private copy, now that the official one
71780         is up to date.
71781         * m4/mktime.m4: Remove file.
71782
71783         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71784         * m4/uptime.m4: Likewise.
71785         * m4/uintmax_t.m4: Likewise.
71786
71787 1999-01-28  Jim Meyering  <meyering@ascend.com>
71788
71789         * m4/jm-macros.m4: Use jm_AFS.
71790         * m4/afs.m4: New file (from fileutils' configure.in).
71791
71792         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71793         * m4/chown.m4: Likewise.
71794         * m4/d-ino.m4: Likewise.
71795         * m4/d-type.m4: Likewise.
71796         * m4/fnmatch.m4: Likewise.
71797         * m4/getgroups.m4: Likewise.
71798         * m4/gettext.m4: Likewise.
71799         * m4/jm-mktime.m4: Likewise.
71800         * m4/jm-winsz2.m4: Likewise.
71801         * m4/lcmessage.m4: Likewise.
71802         * m4/ls-mntd-fs.m4: Likewise.
71803         * m4/malloc.m4: Likewise.
71804         * m4/memcmp.m4: Likewise.
71805         * m4/putenv.m4: Likewise.
71806         * m4/realloc.m4: Likewise.
71807         * m4/st_mtim.m4: Likewise.
71808         * m4/strftime.m4: Likewise.
71809
71810 1999-01-16  Jim Meyering  <meyering@ascend.com>
71811
71812         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71813         (ARGMATCH_DIE_DECL): Define.
71814
71815 1999-01-12  Jim Meyering  <meyering@ascend.com>
71816
71817         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71818         Reported by Lars Hecking.
71819
71820 1999-01-10  Jim Meyering  <meyering@ascend.com>
71821
71822         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71823         gross kludge.
71824         * m4/inttypes_h.m4: Likewise.
71825         * m4/lstat.m4: Likewise.
71826         * m4/malloc.m4: Likewise.
71827         * m4/readdir.m4: Likewise.
71828         * m4/realloc.m4: Likewise.
71829         * m4/st_dm_mode.m4: Likewise.
71830         * m4/stat.m4: Likewise.
71831         * m4/utimbuf.m4: Likewise.
71832         * m4/utimes.m4: Likewise.
71833
71834         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71835         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71836         comments in config.h.in are meaningful.
71837
71838         * m4/jm-macros.m4: Require autoconf-2.13 here.
71839
71840         * m4/regex.m4: By default, don't use the included regex.c on systems
71841         with glibc 2.  Suggestion from Uli Drepper.
71842
71843 1999-01-02  Jim Meyering  <meyering@ascend.com>
71844
71845         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71846
71847 1998-12-18  Jim Meyering  <meyering@ascend.com>
71848
71849         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71850         Based on a suggestion from Lars Hecking.
71851
71852 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71853
71854         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71855
71856 1998-11-16  Jim Meyering  <meyering@ascend.com>
71857
71858         * m4/lfs.m4: Double-quote the `uname...` expression.
71859
71860 1998-11-14  Jim Meyering  <meyering@ascend.com>
71861
71862         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71863         * m4/stat.m4: Likewise.
71864
71865 1998-11-03  Jim Meyering  <meyering@ascend.com>
71866
71867         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71868         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71869
71870 1998-10-18  Jim Meyering  <meyering@ascend.com>
71871
71872         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71873
71874 1998-10-17  Jim Meyering  <meyering@ascend.com>
71875
71876         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71877         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71878         calls for those previously hard-coded headers.  Instead, take a new
71879         parameter.
71880         (jm_CHECK_DECLARATIONS): Reflect interface change.
71881         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71882         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71883
71884         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71885
71886 1998-10-14  Jim Meyering  <meyering@ascend.com>
71887
71888         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71889         instead of "TZ=America/Vancouver".  From Paul Eggert.
71890
71891 1998-10-11  Jim Meyering  <meyering@ascend.com>
71892
71893         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71894         This adds a test for a recently added compatibility fix for mktime.c.
71895         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71896
71897 1998-09-27  Jim Meyering  <meyering@ascend.com>
71898
71899         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71900
71901         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71902         ../configure.in, including a change from Gordon Matzigkeit to allow
71903         cross-compiling for the Hurd.
71904
71905         * m4/glibc.m4: New file/macro to test for the GNU C Library
71906         versions 1 and 2.  From Gordon Matzigkeit.
71907         Indent.
71908
71909 1998-09-21  Jim Meyering  <meyering@ascend.com>
71910
71911         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71912
71913 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71914
71915         Port nanosecond-resolution times to UnixWare 2.1.2 and
71916         pedantic Solaris 2.6.
71917
71918         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71919         AC_STRUCT_ST_MTIM.
71920         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71921         Generate name of ns member, instead of just 1 or undef.
71922         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71923
71924 1998-08-15  Jim Meyering  <meyering@ascend.com>
71925
71926         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71927         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71928         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71929         instead of jm_TYPE_SSIZE_T.
71930
71931 1998-08-12  Jim Meyering  <meyering@ascend.com>
71932
71933         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71934
71935 1998-08-02  Jim Meyering  <meyering@ascend.com>
71936
71937         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71938         in acconfig.h manually.
71939
71940 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71941
71942         * m4/st_mtim.m4: New file.
71943
71944 1998-07-28  Jim Meyering  <meyering@ascend.com>
71945
71946         * m4/utimes.m4: Undef stat.
71947
71948 1998-07-25  Jim Meyering  <meyering@ascend.com>
71949
71950         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71951         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71952
71953 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71954
71955         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71956         uid and gid actually remain unchanged.
71957
71958 1998-07-07  Jim Meyering  <meyering@ascend.com>
71959
71960         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71961
71962 1998-07-04  Jim Meyering  <meyering@ascend.com>
71963
71964         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71965         to prove that this macro can be used in packages without regex.c.
71966
71967 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71968
71969         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71970         is to be used.
71971
71972 1998-07-03  Jim Meyering  <meyering@ascend.com>
71973
71974         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71975
71976         * m4/gettext.m4: New file -- from gettext-0.10.35.
71977         * m4/lcmessage.m4: Likewise.
71978         * m4/progtest.m4: Likewise.
71979
71980         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71981         * m4/jm-macros.m4: Require the new macro.
71982
71983 1998-06-29  Jim Meyering  <meyering@ascend.com>
71984
71985         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71986         for the definition of NGROUPS (used in a system header included
71987         by sys/mount.h).
71988
71989 1998-06-28  Jim Meyering  <meyering@ascend.com>
71990
71991         * m4/ls-mntd-fs.m4: New file.
71992         * m4/fstypename.m4: New file.
71993
71994         * m4/jm-macros.m4: Require the new macro.
71995         * m4/jm-glibc-io.m4: New file.
71996
71997 1998-05-19  Jim Meyering  <meyering@ascend.com>
71998
71999         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72000         * m4/lchown.m4: New file.
72001
72002         * m4/Makefile.am.in: New file.
72003         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72004
72005 1998-05-14  Jim Meyering  <meyering@ascend.com>
72006
72007         * m4/Makefile.am (EXTRA_DIST): Add them.
72008         * m4/jm-macros.m4: New file.
72009         * m4/utimbuf.m4: New file.
72010
72011 1998-05-12  Jim Meyering  <meyering@ascend.com>
72012
72013         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72014
72015 1998-05-11  Jim Meyering  <meyering@ascend.com>
72016
72017         * m4/isc-posix.m4: New file.
72018
72019 1998-05-10  Jim Meyering  <meyering@ascend.com>
72020
72021         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72022
72023 1998-05-09  Jim Meyering  <meyering@ascend.com>
72024
72025         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72026         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72027         with automake.
72028
72029         * m4/ssize_t.m4: New file.
72030         * m4/mktime.m4: Remove file -- the new automake has this now.
72031
72032 1998-04-26  Jim Meyering  <meyering@ascend.com>
72033
72034         * m4/assert.m4: New file.
72035         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72036
72037 1998-04-05  Jim Meyering  <meyering@ascend.com>
72038
72039         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72040         (jm_PREREQ): Use it here.
72041
72042 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72043
72044         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72045         in acconfig.h.
72046
72047 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72048
72049         * m4/prereq.m4: New file.
72050         * m4/error.m4: New file.
72051         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72052
72053 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72054
72055         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72056         cache-check for the same variable -- that defeated the purpose of
72057         the test; the test program was never run.  This was a problem only
72058         on systems with losing getline functions -- HP-UX 10.20 is one.
72059         Reported by Bjorn Helgaas.
72060
72061 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72062
72063         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72064
72065 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72066
72067         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72068
72069         * m4/const.m4: New file.  Use an initializer in this declaration
72070         typedef int charset[2]; const charset x;
72071         Reported by Bob Glickstein.
72072
72073 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72074
72075         * m4/chown.m4: Fix reversed types on -1 args to chown.
72076         From Kaveh Ghazi.
72077
72078 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72079
72080         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72081         Add lseek and memchr.
72082
72083         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72084         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72085         have a 20-character limit on names.
72086
72087 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72088
72089         * m4/inttypes_h.m4: New file.
72090         * m4/uintmax_t.m4: New file.
72091         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72092
72093
72094         -----
72095
72096         Local Variables:
72097         coding: utf-8
72098         End:
72099
72100         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72101
72102         Copying and distribution of this file, with or without
72103         modification, are permitted provided the copyright notice
72104         and this notice are preserved.