Add data about branch probabilities.
[pspp] / ChangeLog
1 2008-09-20  Bruno Haible  <bruno@clisp.org>
2
3         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
4         Wildenhues.
5
6 2008-09-20  Bruno Haible  <bruno@clisp.org>
7
8         Ensure that wint_t gets defined on IRIX 5.3.
9         * lib/wchar.in.h (wint_t): Define if not defined by the system.
10         * lib/wctype.in.h (wint_t): Likewise.
11         (__wctype_wint_t): Remove type.
12         (isw*): Use wint_t instead of __wctype_wint_t.
13         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
14         * modules/wchar (Files): Add m4/wint_t.m4.
15         (Makefile.am): Substitute HAVE_WINT_T.
16         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
17         * tests/test-wctype.c: Check that wint_t is defined.
18         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
19         * doc/posix-headers/wctype.texi: Likewise.
20         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21
22 2008-09-18  Bruno Haible  <bruno@clisp.org>
23
24         * gnulib-tool (func_exit): Update comment.
25
26 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27
28         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29         assumes strdup exists and does not depend on strdup to return
30         ENOMEM on out of memory conditions.
31
32 2008-09-18  Bruno Haible  <bruno@clisp.org>
33
34         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
35         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36         digits for the exponent.
37
38 2008-09-18  Jim Meyering  <meyering@redhat.com>
39             Bruno Haible  <bruno@clisp.org>
40
41         * lib/vasnprintf.c (decimal_point_char): Define also if
42         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43
44 2008-09-16  Bruno Haible  <bruno@clisp.org>
45         and Eric Blake  <ebb9@byu.net>
46
47         vasnprintf: support Irix 5.3
48         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49         that mishandle long double infinity.
50         Reported by Tom G. Christensen.
51
52 2008-09-16  Bruno Haible  <bruno@clisp.org>
53
54         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55         Solaris 9.
56         * doc/glibc-functions/alphasort.texi: Likewise.
57         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58
59 2008-09-16  Jim Meyering  <meyering@redhat.com>
60
61         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
62         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
63         a umask modification leak out of a subshell.  Otherwise, the
64         opensolaris /bin/sh would be accepted and thus cause unwarranted
65         failures in the coreutils test suite.
66
67 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
68
69         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
70         to succeed.
71
72 2008-09-16  Jim Meyering  <meyering@redhat.com>
73
74         avoid spurious test failure when library is built without ACL support
75         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
77         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
78         * tests/test-copy-acl.sh: Likewise.
79
80 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81
82         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
83         based on character occurrence counts.
84
85 2008-09-15  Eric Blake  <ebb9@byu.net>
86
87         tests: avoid some compiler warnings
88         * tests/test-memchr.c (main): Pass NULL indirectly.
89         * tests/test-closein.c (main): Avoid unused variable.
90
91 2008-09-15  Bruno Haible  <bruno@clisp.org>
92
93         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
94         are missing on OpenBSD 4.0 individually.
95         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96
97 2008-09-15  Bruno Haible  <bruno@clisp.org>
98
99         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
100         * doc/posix-functions/strerror.texi: Mention also Cygwin.
101         * doc/posix-functions/perror.texi: Likewise.
102         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
103         is missing.
104         Reported by Eric Blake.
105
106         * lib/errno.in.h: Use replacement values >= 2000.
107         Reported by Eric Blake.
108
109 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110
111         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
112         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
113         limit.
114         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
115         compareseq was aborted.
116
117 2008-09-14  Bruno Haible  <bruno@clisp.org>
118
119         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
120         yvec_edit_count.
121         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
122         (fstrcmp_bounded): Simplify result computation accordingly.
123
124 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
125
126         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
127         (fstrcmp): Define in terms of fstrcmp_bounded.
128         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
129         lower_bound argument.
130         Return quickly if the result is certainly < lower_bound.
131         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
132
133 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
134
135         * lib/diffseq.h (EARLY_ABORT): New macro.
136         (compareseq): Change return type to bool. Return true when EARLY_ABORT
137         evaluates to true.
138
139 2008-09-14  Bruno Haible  <bruno@clisp.org>
140
141         * modules/perror-tests: New file.
142         * tests/test-perror.sh: New file.
143         * tests/test-perror.c: New file.
144
145         New module 'perror'.
146         * lib/stdio.in.h (perror): New declaration.
147         * lib/perror.c: New file.
148         * m4/perror.m4: New file.
149         * modules/perror: New file.
150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
151         * doc/posix-functions/perror.texi: Mention the perror module.
152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
153         REPLACE_PERROR.
154         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
155         REPLACE_PERROR.
156
157 2008-09-14  Bruno Haible  <bruno@clisp.org>
158
159         * modules/stdio (Makefile.am): Reorder to match the order in
160         lib/stdio.in.h.
161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
162
163 2008-09-13  Bruno Haible  <bruno@clisp.org>
164
165         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
166
167 2008-09-13  Bruno Haible  <bruno@clisp.org>
168
169         Extend strerror to cover the added errno values.
170         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
171         (rpl_strerror): Provide error messages for the added errno values and
172         for the WSA* values.
173         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
174         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
175         strerror.
176         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
177         * modules/strerror (Depends-on): Add errno.
178         * doc/posix-functions/strerror.texi: Document the change.
179         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
180         and EOVERFLOW.
181
182 2008-09-13  Bruno Haible  <bruno@clisp.org>
183
184         * modules/EOVERFLOW: Remove file.
185         * m4/eoverflow.m4: Remove file.
186         * modules/EOVERFLOW-tests: Remove file.
187         * tests/test-EOVERFLOW.c: Remove file.
188         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
189         * modules/ftell (Depends-on): Likewise.
190         * modules/getdelim (Depends-on): Likewise.
191         * modules/getugroups (Depends-on): Likewise.
192         * modules/poll (Depends-on): Likewise.
193         * modules/snprintf (Depends-on): Likewise.
194         * modules/sprintf-posix (Depends-on): Likewise.
195         * modules/vasnprintf (Depends-on): Likewise.
196         * modules/vasprintf (Depends-on): Likewise.
197         * modules/vfprintf-posix (Depends-on): Likewise.
198         * modules/vsnprintf (Depends-on): Likewise.
199         * modules/vsprintf-posix (Depends-on): Likewise.
200         * modules/xvasprintf (Depends-on): Likewise.
201         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
202         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
203         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
204         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
205         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
206         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
207         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
208         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
209         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
210         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
211         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
212         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
213         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
214         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
215         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
216         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
217         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
218         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
219         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
220         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
222         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
223         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
224         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
225         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
226         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
227         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
228         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
229         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
230         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
231         * MODULES.html.sh: Remove EOVERFLOW.
232         * NEWS: Mention the change.
233
234 2008-09-13  Bruno Haible  <bruno@clisp.org>
235
236         * modules/errno-tests: New file.
237         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
238
239         * lib/errno.in.h: New file.
240         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
241         * modules/errno: New file.
242         * doc/posix-headers/errno.texi: Update documentation.
243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
244
245 2008-09-13  Bruno Haible  <bruno@clisp.org>
246
247         * tests/test-poll.c: Use #if for native Windows, rather than testing
248         __MSVCRT__.
249
250 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
251             Bruno Haible  <bruno@clisp.org>
252
253         * lib/glob.c: Don't include <pwd.h> on native Windows.
254         (WINDOWS32): New macro.
255         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
256
257 2008-09-13  Bruno Haible  <bruno@clisp.org>
258
259         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
260         (ETIMEDOUT): Remove macro.
261         (glthread_cond_timedwait_multithreaded): New declaration.
262         (glthread_cond_timedwait): Use it.
263         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
264         (glthread_cond_timedwait_multithreaded): New function.
265
266 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
267
268         * modules/poll-tests: Do not check for io.h.
269         * tests/test-poll.c: Check for __MSVCRT__ instead.
270
271 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
272
273         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
274         * modules/poll-tests: Add inet_pton, stdbool, sockets.
275         * tests/test-poll.c: Use them.  Use _pipe on Windows.
276
277 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
278
279         * modules/poll-tests: New.
280         * tests/test-poll.c: New.
281
282 2008-09-12  Eric Blake  <ebb9@byu.net>
283
284         frexp: test for NetBSD failure on -0.0
285         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
286         not all, bugs from NetBSD 3.0 have been fixed.
287         * doc/posix-functions/frexp.texi (frexp): Document bug.
288         Reported by Thomas Klausner.
289
290         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
291         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
292         literal -0.0.
293         Reported by Jonathan C. Patschke <jp@centtech.com>.
294
295 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
296
297         * lib/glthread/cond.h: Use dummy implementation also if
298         USE_WIN32_THREADS.
299
300 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
301
302         * modules/fnmatch-posix (License): Change to LGPLv2+.
303         * modules/fnmatch-gnu (License): Likewise.
304
305 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
306
307         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
308
309 2008-09-11  Jim Meyering  <meyering@redhat.com>
310
311         * users.txt: Add gtk-vnc.
312
313 2008-09-08  Simon Josefsson  <simon@josefsson.org>
314
315         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
316         rotate amounts.
317
318         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
319         required for 16-bit and 8-bit rotates.
320         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
321         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
322         UINT8_MAX instead of hard-coded constants.
323         Suggested by Paul Eggert.
324
325 2008-09-07  Bruno Haible  <bruno@clisp.org>
326
327         * tests/test-striconveh.c (main): Check behaviour when converting from
328         UTF-7.
329
330         Make striconveh work better with stateful encodings.
331         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
332         that iconv does not increment the inptr when returning -1/EINVAL.
333
334 2008-09-07  Bruno Haible  <bruno@clisp.org>
335
336         * build-aux/config.rpath: Update according to libtool-2.2.6.
337         * build-aux/config.libpath: Likewise.
338
339 2008-09-06  Bruno Haible  <bruno@clisp.org>
340
341         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
342         * lib/freadptr.c (freadptr): Likewise.
343         * lib/freadseek.c (freadptrinc): Likewise.
344         Reported by Simon Josefsson.
345
346 2008-09-06  Bruno Haible  <bruno@clisp.org>
347
348         * modules/freadptr (License): Change to LGPLv2+.
349         * modules/freadseek (License): Likewise.
350         Suggested by Eric Blake.
351
352         * modules/memchr2 (License): Change to LGPLv2+.
353         Approved by Eric Blake.
354
355 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
356             Bruno Haible  <bruno@clisp.org>
357
358         Make gnulib-tool work with native 'sed' on AIX.
359         * gnulib-tool (sed_noop): New variable.
360         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
361         func_add_or_update, func_create_testdir): Use it to initialize sed
362         script variables.
363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
364
365 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
366             Bruno Haible  <bruno@clisp.org>
367
368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
369         also works after #include directives.
370
371 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
372
373         getdate.y: reject an out-of-range timezone value
374         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
375         the range [-24...+24].  When specified with only one or two digits,
376         * tests/test-getdate.c: Tests for the fix.
377         * doc/getdate.texi: Document this change.
378
379 2008-09-03  Bruno Haible  <bruno@clisp.org>
380
381         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
382
383 2008-09-02  Simon Josefsson  <simon@josefsson.org>
384
385         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
386         <bruce.korb@gmail.com> with ideas from Ben Pfaff
387         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
388         Blake <ebb9@byu.net>.
389
390         * tests/test-bitrotate.c: Add more test vectors.
391
392 2008-09-02  Eric Blake  <ebb9@byu.net>
393
394         vasnprintf-posix: handle large precision via %.*d
395         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
396         when handling it ourselves.
397         * tests/test-vasnprintf-posix.c (test_function): Add test.
398         * tests/test-snprintf-posix.h (test_function): Likewise.
399         * tests/test-sprintf-posix.h (test_function): Likewise.
400         * tests/test-vasprintf-posix.c (test_function): Likewise.
401         Reported by Alain Guibert.
402
403 2008-09-01  Eric Blake  <ebb9@byu.net>
404
405         c-stack: make configure-time check more robust
406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
407         successful sigaction call.
408         Reported by Tom G. Christensen.
409
410 2008-09-01  Bruno Haible  <bruno@clisp.org>
411
412         New module 'findprog-lgpl'.
413         * modules/findprog-lgpl: New file.
414         * lib/findprog-lgpl.c: New file.
415         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
416         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
417         to decide whether to use strdup or xstrdup, concatenated_filename or
418         xconcatenated_filename.
419
420 2008-09-01  Bruno Haible  <bruno@clisp.org>
421
422         Split module 'concat-filename' into 'concat-filename' (LGPL) and
423         'xconcat-filename' (GPL).
424         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
425         (License): Change to LGPLv2+.
426         * modules/xconcat-filename: New file.
427         * lib/concat-filename.h (concatenated_filename): Change specification.
428         (xconcatenated_filename): New declaration.
429         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
430         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
431         memory situations.
432         * lib/xconcat-filename.c: New file.
433         * NEWS: Mention the change.
434         * lib/findprog.c: Include concat-filename.h, not filename.h.
435         (find_in_path): Use xconcatenated_filename instead of
436         concatenated_filename.
437         * lib/javacomp.c: Include concat-filename.h, not filename.h.
438         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
439         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
440         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
441         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
442         instead of concatenated_filename.
443         * lib/javaexec.c: Include concat-filename.h, not filename.h.
444         (execute_java_class): Use xconcatenated_filename instead of
445         concatenated_filename.
446         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
447         * modules/javacomp (Depends-on): Likewise.
448         * modules/javaexec (Depends-on): Likewise.
449
450 2008-09-01  Bruno Haible  <bruno@clisp.org>
451
452         Split module 'filename' into 'filename' and 'concat-filename'.
453         * modules/filename: Keep only lib/filename.h.
454         (License): Change to LGPLv2+.
455         * modules/concat-filename: New file, extracted from modules/filename.
456         * lib/filename.h (concatenated_filename): Remove declaration.
457         * lib/concat-filename.h: New file, extracted from lib/filename.h.
458         * lib/concat-filename.c: Include concat-filename.h.
459         * NEWS: Mention the change.
460
461 2008-09-01  Simon Josefsson  <simon@josefsson.org>
462
463         * lib/bitrotate.h (rotl8, rotr8): Add.
464
465         * modules/bitrotate (configure.ac): Need
466         AC_REQUIRE([AC_C_INLINE]).
467         (Description): Mention stdint.h.  Reported by Bruno Haible
468         <bruno@clisp.org>.
469
470         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
471         Paolo Bonzini <bonzini@gnu.org>.
472
473 2008-08-31  Bruno Haible  <bruno@clisp.org>
474
475         Assume Solaris specific bi-arch conventions on Solaris systems.
476         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
477         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
478         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
479         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
480         like acl_libdirstem.
481         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
482         acl_libdirstem.
483         * NEWS: Mention the change.
484         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
485
486 2008-08-31  Jim Meyering  <meyering@redhat.com>
487
488         * lib/strftime.h: Add comments describing the two added arguments.
489
490         remove duplicate #include directives
491         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
492         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
493
494 2008-08-31  Bruno Haible  <bruno@clisp.org>
495
496         New module 'sigpipe-die'.
497         * modules/sigpipe-die: New file.
498         * lib/sigpipe-die.h: New file.
499         * lib/sigpipe-die.c: New file.
500         * MODULES.html.sh (Signal handling): Add sigpipe-die.
501
502 2008-08-31  Bruno Haible  <bruno@clisp.org>
503
504         Don't override previously installed signal handlers.
505         * lib/fatal-signal.c (saved_sigactions): New variable.
506         (uninstall_handlers): Reset the signal to the saved handler, not
507         to SIG_DFL (except when ignored).
508         (install_handlers): Save the previous handlers.
509
510 2008-08-30  Bruno Haible  <bruno@clisp.org>
511
512         * gnulib-tool (func_reset_sigpipe): New function.
513         (func_get_automake_snippet, func_modules_transitive_closure,
514         func_import): Invoke it before a join command that reads from stdin,
515         to avoid "echo: write error: Broken pipe" error messages on stderr.
516         Reported by Sam Steingold <sds@gnu.org>.
517
518 2008-08-30  Bruno Haible  <bruno@clisp.org>
519
520         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
521         Code copied from m4/open.m4.
522         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
523         access and the filename ends in a slash. Code copied from lib/open.c.
524         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
525         * tests/test-fopen.c (main): Check against bug with trailing slash.
526
527 2008-08-29  Bruno Haible  <bruno@clisp.org>
528
529         Avoid some "gcc -pedantic" warnings.
530         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
531         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
532         * lib/dirent.in.h: Likewise.
533         * lib/fcntl.in.h: Likewise.
534         * lib/float.in.h: Likewise.
535         * lib/iconv.in.h: Likewise.
536         * lib/inttypes.in.h: Likewise.
537         * lib/locale.in.h: Likewise.
538         * lib/math.in.h: Likewise.
539         * lib/netinet_in.in.h: Likewise.
540         * lib/search.in.h: Likewise.
541         * lib/signal.in.h: Likewise.
542         * lib/stdarg.in.h: Likewise.
543         * lib/stdint.in.h: Likewise.
544         * lib/stdio.in.h: Likewise.
545         * lib/stdlib.in.h: Likewise.
546         * lib/string.in.h: Likewise.
547         * lib/strings.in.h: Likewise.
548         * lib/sys_select.in.h: Likewise.
549         * lib/sys_socket.in.h: Likewise.
550         * lib/sys_stat.in.h: Likewise.
551         * lib/sys_time.in.h: Likewise.
552         * lib/sysexits.in.h: Likewise.
553         * lib/time.in.h: Likewise.
554         * lib/unistd.in.h: Likewise.
555         * lib/wchar.in.h: Likewise.
556         * lib/wctype.in.h: Likewise.
557         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
558         * modules/fchdir (Makefile.am): Likewise.
559         * modules/fcntl (Makefile.am): Likewise.
560         * modules/float (Makefile.am): Likewise.
561         * modules/iconv_open (Makefile.am): Likewise.
562         * modules/inttypes (Makefile.am): Likewise.
563         * modules/locale (Makefile.am): Likewise.
564         * modules/math (Makefile.am): Likewise.
565         * modules/netinet_in (Makefile.am): Likewise.
566         * modules/search (Makefile.am): Likewise.
567         * modules/signal (Makefile.am): Likewise.
568         * modules/stdarg (Makefile.am): Likewise.
569         * modules/stdint (Makefile.am): Likewise.
570         * modules/stdio (Makefile.am): Likewise.
571         * modules/stdlib (Makefile.am): Likewise.
572         * modules/string (Makefile.am): Likewise.
573         * modules/strings (Makefile.am): Likewise.
574         * modules/sys_select (Makefile.am): Likewise.
575         * modules/sys_socket (Makefile.am): Likewise.
576         * modules/sys_stat (Makefile.am): Likewise.
577         * modules/sys_time (Makefile.am): Likewise.
578         * modules/sysexits (Makefile.am): Likewise.
579         * modules/time (Makefile.am): Likewise.
580         * modules/unistd (Makefile.am): Likewise.
581         * modules/wchar (Makefile.am): Likewise.
582         * modules/wctype (Makefile.am): Likewise.
583         Reported by Reuben Thomas <rrt@sc3d.org>.
584
585 2008-08-29  Bruno Haible  <bruno@clisp.org>
586
587         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
588         any more.
589
590 2008-08-29  Simon Josefsson  <simon@josefsson.org>
591
592         * MODULES.html.sh (Misc): Add bitrotate.
593
594         * modules/bitrotate: New file.
595
596         * lib/bitrotate.h: New file.
597
598         * modules/bitrotate-tests: New file.
599
600         * tests/test-bitrotate.c: New file.
601
602         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
603         on the bitrotate module.
604
605         * lib/arctwo.c: Use new bitrotate module.
606
607 2008-08-29  Jim Meyering  <meyering@redhat.com>
608
609         bootstrap: merge changes from coreutils
610         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
611         of copied files.  Remove a kludge, now that this is fixed.
612         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
613         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
614         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
615
616 2008-08-29  Bruno Haible  <bruno@clisp.org>
617
618         * MODULES.html.sh: Remove --cvs-urls option.
619
620 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
621
622         maint.mk: adjust to file name change
623         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
624
625 2008-08-28  Jim Meyering  <meyering@redhat.com>
626
627         * modules/getndelim2 (License): Relicense to LGPLv2+.
628         Approved by Richard Stallman for the version of 1995, and by
629         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
630
631 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
632
633         * lib/getdelim.c (flockfile, funlockfile): Make all of them
634         dummy if one is not available.  Do not touch them if
635         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
636         (getc_maybe_unlocked): New.
637         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
638
639 2008-08-26  Eric Blake  <ebb9@byu.net>
640
641         doc/INSTALL: resync from autoconf
642         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
643         (INSTALL_PRELUDE): Delete; this is done more efficiently by
644         moving...
645         * install.texi [!autoconf]: ...here.  Resync from autoconf.
646         * INSTALL: Regenerate.
647         * INSTALL.ISO: New file.
648         * INSTALL.UTF-8: Likewise.
649
650 2008-08-26  Jim Meyering  <meyering@redhat.com>
651
652         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
653         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
654         these definitions conditional, so that they may be overridden, too.
655
656 2008-08-26  Bruno Haible  <bruno@clisp.org>
657
658         Generate INSTALL file variants with prettier quotes.
659         * doc/Makefile (INSTALL_PRELUDE): New macro.
660         (INSTALL): Use it.
661         (INSTALL.ISO, INSTALL.UTF-8): New rules.
662
663 2008-08-26  Bruno Haible  <bruno@clisp.org>
664
665         Run makeinfo in an English locale.
666         * doc/Makefile (MAKEINFO): New variable.
667
668 2008-08-26  Bruno Haible  <bruno@clisp.org>
669
670         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
671         Suggested by Eric Blake.
672
673 2008-08-25  Bruno Haible  <bruno@clisp.org>
674
675         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
676
677 2008-08-25  Eric Blake  <ebb9@byu.net>
678
679         c-stack: test that stack overflow can be caught
680         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
681         that platform allows handling stack overflow; at least OS/2 EMX
682         has sigaltstack, but crashes before transferring control to
683         handler on stack overflow.
684         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
685         check for HAVE_STACK_OVERFLOW_HANDLING.
686         Reported by Elbert Pol.
687
688 2008-08-25  Bruno Haible  <bruno@clisp.org>
689
690         * doc/posix-functions/strftime.texi: Fix description of strftime
691         module.
692
693 2008-08-24  Bruno Haible  <bruno@clisp.org>
694
695         * tests/uniwidth/test-uc_width2.c: New file.
696         * tests/uniwidth/test-uc_width2.sh: New file.
697         * modules/uniwidth/width-tests (Files): Add the new files.
698         (TESTS): Add uniwidth/test-uc_width2.sh.
699         (TESTS_ENVIRONMENT): New variable.
700         (check_PROGRAMS): Add test-uc_width2.
701         (test_uc_width2_SOURCES): New variable.
702
703         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
704         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
705         not 0x00AB.
706         Reported by Alexander V. Lukyanov <lav@netis.ru>.
707
708 2008-08-22  Eric Blake  <ebb9@byu.net>
709
710         test-lock, test-tls: mention why a test is skipped
711         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
712         skipped.
713         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
714
715         count-one-bits: relax license
716         * modules/count-one-bits (License): Relicense to LGPLv2+.
717         Suggested by Ludovic Courtès, approved by Ben Pfaff.
718
719 2008-08-22  Andreas Schwab  <schwab@suse.de>
720
721         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
722         Remove spurious space in assignment.
723
724 2008-08-21  Simon Josefsson  <simon@josefsson.org>
725
726         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
727         Paul Eggert <eggert@CS.UCLA.EDU>.
728
729 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
730
731         * modules/gettext: Add m4/threadlib.m4.
732
733 2008-08-19  Eric Blake  <ebb9@byu.net>
734
735         test-c-stack: fix compilation failure on FreeBSD 5.0
736         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
737         headers before <sys/resource.h>.
738         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
739         the bug.
740         Reported by Nelson H. F. Beebe.
741
742         strverscmp: migrate from "strverscmp.h" to <string.h>
743         * modules/string (Makefile.am): Add new hooks.
744         * modules/strverscmp (Files): Remove strverscmp.h.
745         (Depends-on): Add string.
746         (configure.ac): Add indicator.
747         (Include): Mention new header.
748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
749         defaults.
750         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
751         results.
752         * lib/strverscmp.h: Delete.
753         * lib/string.in.h (strverscmp): Provide declaration, when needed.
754         * tests/test-strverscmp.c (includes): Adjust client.
755         * lib/check-version.c (includes): Likewise.
756         * NEWS: Document the change.
757
758         strverscmp: add unit test
759         * modules/strverscmp-tests: New file.
760         * tests/test-strverscmp.c: Likewise.
761
762 2008-08-19  Simon Josefsson  <simon@josefsson.org>
763
764         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
765         regarding Windows crypto stuff, from Mono.
766
767 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
768
769         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
770         if present, for intel RND.  Return error on failures.
771
772 2008-08-18  Ben Pfaff  <blp@gnu.org>
773
774         gitlog-to-changelog: give better diagnostic for failed pipe-open
775         * build-aux/gitlog-to-changelog: Improve error message: suggest
776         that the version of Git may be too old.
777
778 2008-08-18  Simon Josefsson  <simon@josefsson.org>
779
780         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
781         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
782
783 2008-08-18  Bruno Haible  <bruno@clisp.org>
784
785         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
786         pthread_in_use().
787
788 2008-08-18  Bruno Haible  <bruno@clisp.org>
789
790         * lib/glthread/threadlib.c: Include <pthread.h>.
791
792 2008-08-18  Bruno Haible  <bruno@clisp.org>
793
794         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
795         glthread_recursive_lock_* macros.
796         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
797         Fix syntax error.
798
799 2008-08-18  Bruno Haible  <bruno@clisp.org>
800
801         * lib/glthread/thread.c: Avoid forcing a context switch right after
802         thread creation.
803
804 2008-08-17  Bruno Haible  <bruno@clisp.org>
805
806         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
807         * lib/glthread/thread.h: Provide Win32 specific implementation.
808         * modules/thread (Files): Add lib/glthread/thread.c.
809         (Depends-on): Add lock.
810         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
811
812 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
813
814         New module 'yield'.
815         * modules/yield: New file.
816         * lib/glthread/yield.h: New file.
817         * m4/yield.m4: New file.
818         * MODULES.html.sh (Multithreading): Add yield.
819
820 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
821
822         New module 'thread'.
823         * modules/thread: New file.
824         * lib/glthread/thread.h: New file.
825         * m4/thread.m4: New file.
826         * MODULES.html.sh (Multithreading): Add thread.
827
828 2008-08-17  Bruno Haible  <bruno@clisp.org>
829
830         * lib/glthread/lock.h: Include <stdlib.h> always.
831         * lib/glthread/tls.h: Likewise.
832         * lib/glthread/cond.h: Likewise.
833
834 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
835
836         New module 'cond'.
837         * modules/cond: New file.
838         * lib/glthread/cond.h: New file.
839         * lib/glthread/cond.c: New file.
840         * m4/cond.m4: New file.
841         * MODULES.html.sh (Multithreading): Add cond.
842
843 2008-08-16  Eric Blake  <ebb9@byu.net>
844
845         c-stack: fix regression on Irix 5.3 from 2008-06-21
846         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
847         sa_sigaction...
848         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
849         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
850         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
851         * modules/signal (Makefile.am): Use the value.
852         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
853         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
854         * doc/posix-headers/signal.texi (signal.h): Document this
855         portability issue.
856         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
857         Reported by Tom G. Christensen.
858
859 2008-08-17  Bruno Haible  <bruno@clisp.org>
860
861         New module 'threadlib'.
862         * modules/threadlib: New file.
863         * lib/glthread/threadlib.c: New file, extracted from
864         lib/glthread/lock.c.
865         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
866         functions.
867         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
868         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
869         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
870         macros.
871         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
872         (gl_DISABLE_THREADS): Remove macro.
873         * modules/lock (Files): Remove build-aux/config.rpath.
874         (Depends-on): Remove havelib. Add threadlib.
875         (configure.ac-early): Remove section.
876         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
877         * modules/tls (Depends-on): Remove lock. Add threadlib.
878         (Link): New section, copied from threadlib.
879         * MODULES.html.sh (Multithreading): Add threadlib.
880
881 2008-08-14  Bruno Haible  <bruno@clisp.org>
882
883         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
884         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
885         glthread_rwlock_unlock, glthread_rwlock_destroy,
886         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
887         glthread_recursive_lock_destroy): Define as macros always.
888         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
889         glthread_lock_lock.
890         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
891         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
892         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
893         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
894         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
895         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
896         (glthread_recursive_lock_lock_func): Renamed from
897         glthread_recursive_lock_lock.
898         (glthread_recursive_lock_unlock_func): Renamed from
899         glthread_recursive_lock_unlock.
900         (glthread_recursive_lock_destroy_func): Renamed from
901         glthread_recursive_lock_destroy.
902
903 2008-08-14  Bruno Haible  <bruno@clisp.org>
904
905         * lib/glthread/lock.h: Renamed from lib/lock.h.
906         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
907         * lib/glthread/tls.h: Renamed from lib/tls.h.
908         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
909         * lib/fstrcmp.c: Update includes.
910         * lib/strsignal.c: Update includes.
911         * modules/lock (Files, Makefile.am): Update.
912         (Include): Change to "glthread/lock.h".
913         * modules/tls (Files, Makefile.am): Update.
914         (Include): Change to "glthread/tls.h".
915         * tests/test-lock.c: Update includes.
916         * tests/test-tls.c: Update includes.
917         * NEWS: Mention the renamed header files.
918
919 2008-08-11  Jim Meyering  <meyering@redhat.com>
920
921         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
922
923 2008-08-11  Eric Blake  <ebb9@byu.net>
924
925         test-c-stack: avoid C99-ism
926         * tests/test-c-stack.c (main): Fix whitespace, move declaration
927         before statement.
928         Reported by Alain Guibert.
929
930 2008-08-10  Jim Meyering  <meyering@redhat.com>
931
932         ensure that return value of uinttostr et al are not ignored
933         * lib/inttostr.h (__GNUC_PREREQ): Define.
934         (__attribute_warn_unused_result__): Define.
935         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
936
937 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
938
939         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
940         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
941
942 2008-08-07  Jim Meyering  <meyering@redhat.com>
943
944         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
945
946         * modules/mkstemp (License): Relicense under LGPLv2+.
947         * modules/tempname (License): Likewise.
948
949 2008-08-06  Bruno Haible  <bruno@clisp.org>
950
951         * lib/poll.c (poll): Further micro-optimization.
952
953 2008-08-06  Jim Meyering  <meyering@redhat.com>
954
955         inet_pton.c: use locale-independent tolower
956         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
957         (inet_pton6): Use c_tolower rather than tolower.
958         * modules/inet_pton (Depends-on): Add c-ctype.
959
960 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
961
962         * lib/poll.c (poll): Avoid division when timeout is 0, cache
963         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
964
965 2008-08-06  Jim Meyering  <meyering@redhat.com>
966
967         * modules/inet_pton (License): Relicense under LGPLv2+.
968
969 2008-08-03  Bruno Haible  <bruno@clisp.org>
970
971         Additional non-aborting API for lock and tls.
972         * lib/lock.h: Include <errno.h>.
973         (glthread_lock_init): New macro/function.
974         (gl_lock_init): Define as wrapper around glthread_lock_init.
975         (glthread_lock_lock): New macro/function.
976         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
977         (glthread_lock_unlock): New macro/function.
978         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
979         (glthread_lock_destroy): New macro/function.
980         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
981         (glthread_rwlock_init): New macro/function.
982         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
983         (glthread_rwlock_rdlock): New macro/function.
984         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
985         (glthread_rwlock_wrlock): New macro/function.
986         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
987         (glthread_rwlock_unlock): New macro/function.
988         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
989         (glthread_rwlock_destroy): New macro/function.
990         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
991         (glthread_recursive_lock_init): New macro/function.
992         (gl_recursive_lock_init): Define as wrapper around
993         glthread_recursive_lock_init.
994         (glthread_recursive_lock_lock): New macro/function.
995         (gl_recursive_lock_lock): Define as wrapper around
996         glthread_recursive_lock_lock.
997         (glthread_recursive_lock_unlock): New macro/function.
998         (gl_recursive_lock_unlock): Define as wrapper around
999         glthread_recursive_lock_unlock.
1000         (glthread_recursive_lock_destroy): New macro/function.
1001         (gl_recursive_lock_destroy): Define as wrapper around
1002         glthread_recursive_lock_destroy.
1003         (glthread_once): New macro/function.
1004         (gl_once): Define as wrapper around glthread_once.
1005         Update function declarations.
1006         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1007         glthread_rwlock_init. Return error code.
1008         (glthread_rwlock_rdlock_multithreaded): Renamed from
1009         glthread_rwlock_rdlock. Return error code.
1010         (glthread_rwlock_wrlock_multithreaded): Renamed from
1011         glthread_rwlock_wrlock. Return error code.
1012         (glthread_rwlock_unlock_multithreaded): Renamed from
1013         glthread_rwlock_unlock. Return error code.
1014         (glthread_rwlock_destroy_multithreaded): Renamed from
1015         glthread_rwlock_destroy. Return error code.
1016         (glthread_recursive_lock_init_multithreaded): Renamed from
1017         glthread_recursive_lock_init. Return error code.
1018         (glthread_recursive_lock_lock_multithreaded): Renamed from
1019         glthread_recursive_lock_lock. Return error code.
1020         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1021         glthread_recursive_lock_unlock. Return error code.
1022         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1023         glthread_recursive_lock_destroy. Return error code.
1024         (glthread_once_call): Make static.
1025         (glthread_once_multithreaded): Renamed from glthread_once.
1026         * lib/tls.h: Include <errno.h>.
1027         (glthread_tls_key_init): New macro/function.
1028         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1029         (glthread_tls_set): New macro/function.
1030         (gl_tls_set): Define as wrapper around glthread_tls_set.
1031         (glthread_tls_key_destroy): New macro/function.
1032         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1033         Update function declarations.
1034         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1035         glthread_tls_get.
1036         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1037
1038 2008-08-04  Eric Blake  <ebb9@byu.net>
1039
1040         gnumakefile: use space, not TAB, outside of targets
1041         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1042
1043 2008-08-02  Jim Meyering  <meyering@redhat.com>
1044
1045         getdate.y: avoid locale-dependent date parsing failure
1046         In Turkish locales, getdate would fail to recognize keywords
1047         containing a lowercase "i".  The solution is not to rely on
1048         locale-sensitive case-conversion.
1049         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1050         (lookup_word): Use c_toupper in place of toupper.
1051         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1052         Reported by Vefa Bicakci <bicave@superonline.com> in
1053         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1054         * modules/getdate (Depends-on): Add c-ctype.
1055
1056 2008-08-02  Bruno Haible  <bruno@clisp.org>
1057
1058         * gnulib-tool (func_import): When updating or creating a .gitignore
1059         file, prepend each added line with a slash, and ignore leading slashes
1060         from the existing lines.
1061         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1062
1063 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1064
1065         Portability fix for GNU make 3.79.1.
1066         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1067         versions do not understand.
1068
1069 2008-08-01  Bruno Haible  <bruno@clisp.org>
1070
1071         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1072         * tests/test-isnanf.h (zero): New variable.
1073         (main): Avoid literal -0.0f.
1074         * tests/test-isnand.h (zero): New variable.
1075         (main): Avoid literal -0.0.
1076         * tests/test-isnanl.h (zero): New variable.
1077         (main): Avoid literal -0.0L.
1078         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1079         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1080         -0.0, -0.0L.
1081         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1082         (test_signbitd): Avoid literal -0.0.
1083         (test_signbitl): Avoid literal -0.0L.
1084         * tests/test-ceilf1.c (zero): New variable.
1085         (main): Avoid literal -0.0f.
1086         * tests/test-ceill.c (zero): New variable.
1087         (main): Avoid literal -0.0L.
1088         * tests/test-floorf1.c (zero): New variable.
1089         (main): Avoid literal -0.0f.
1090         * tests/test-floorl.c (zero): New variable.
1091         (main): Avoid literal -0.0L.
1092         * tests/test-roundf1.c (zero): New variable.
1093         (main): Avoid literal -0.0f.
1094         * tests/test-round1.c (zero): New variable.
1095         (main): Avoid literal -0.0.
1096         * tests/test-roundl.c (zero): New variable.
1097         (main): Avoid literal -0.0L.
1098         * tests/test-truncf1.c (zero): New variable.
1099         (main): Avoid literal -0.0f.
1100         * tests/test-trunc1.c (zero): New variable.
1101         (main): Avoid literal -0.0.
1102         * tests/test-truncl.c (zero): New variable.
1103         (main): Avoid literal -0.0L.
1104         * tests/test-frexp.c (zero): New variable.
1105         (main): Avoid literal -0.0.
1106         * tests/test-frexpl.c (zero): New variable.
1107         (main): Avoid literal -0.0L.
1108         * tests/test-ldexpl.c (zero): New variable.
1109         (main): Avoid literal -0.0L.
1110         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1111         (zerod, zerol): New variables.
1112         (test_function): Avoid literals -0.0, -0.0L.
1113         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1114         (zerod, zerol): New variables.
1115         (test_function): Avoid literals -0.0, -0.0L.
1116         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1117         (zerod, zerol): New variables.
1118         (test_function): Avoid literals -0.0, -0.0L.
1119         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1120         (zerod, zerol): New variables.
1121         (test_function): Avoid literals -0.0, -0.0L.
1122         * tests/test-strtod.c (zero): New variable.
1123         (main): Avoid literal -0.0.
1124         Reported by Jonathan C. Patschke <jp@centtech.com>.
1125
1126 2008-07-31  Jim Meyering  <meyering@redhat.com>
1127
1128         sha256.h: correct definition of SHA224_DIGEST_SIZE
1129         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1130         Reported by Paulie Pena IV <paulie4@gmail.com>.
1131         Define as 224 / 8, rather than as a literal.
1132         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1133         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1134         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1135
1136 2008-07-31  Bruno Haible  <bruno@clisp.org>
1137
1138         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1139         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1140         Reported by Jonathan Patschke <jp@centtech.com>.
1141
1142 2008-07-31  Bruno Haible  <bruno@clisp.org>
1143
1144         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1145         Reported by Paolo Bonzini <bonzini@gnu.org>.
1146
1147 2008-07-30  Eric Blake  <ebb9@byu.net>
1148
1149         test-strtod: allow compilation without -lm
1150         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1151         Reported by Dennis Clarke <blastwave@gmail.com>.
1152
1153 2008-07-28  Jim Meyering  <meyering@redhat.com>
1154
1155         bootstrap: work also when there are no .po files in po/
1156         * build-aux/bootstrap (update_po_files): Complete the change
1157         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1158
1159 2008-07-27  Jim Meyering  <meyering@redhat.com>
1160
1161         * users.txt: Add zile.
1162
1163 2008-07-26  Ben Pfaff  <blp@gnu.org>
1164
1165         Add missing dependencies on new m4/exponent[fdl].m4 files.
1166         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1167         * modules/isnand-nolibm: Add m4/exponentd.m4.
1168         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1169         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1170         m4/isnan[fdl].m4, because the macros actually used moved.
1171         Reported by Jim Meyering.
1172
1173 2008-07-14  Ben Pfaff  <blp@gnu.org>
1174
1175         Add isinf module.
1176         * lib/isinf.c: New file.
1177         * lib/math.in.h: Define isinf macro if we have decided to replace
1178         it.
1179         * m4/isinf.m4: New file.
1180         * m4/math_h.m4: Initialize and substitute variables for isinf
1181         module.
1182         * modules/isinf: New file.
1183         * modules/isinf-tests: New file.
1184         * modules/math: Add substitutions for new module.
1185         * tests/test-isinf.c: New file.
1186         * doc/posix-functions/isinf.texi: Mention new module.
1187         * MODULES.html.sh: Mention new module.
1188
1189 2008-07-14  Ben Pfaff  <blp@gnu.org>
1190
1191         Factor out some macros for use by additional modules.
1192         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1193         exponentf.m4.
1194         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1195         exponentd.m4.
1196         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1197         file exponentl.m4.
1198         * m4/exponentf.m4: New file.
1199         * m4/exponentd.m4: New file.
1200         * m4/exponentl.m4: New file.
1201         * modules/isnanf: Use new file m4/exponentf.m4.
1202         * modules/isnand: Use new file m4/exponentd.m4.
1203         * modules/isnanl: Use new file m4/exponentl.m4.
1204
1205 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1206
1207         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1208         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1209         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1210         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1211
1212         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1213         readlink on platforms without PATH_MAX.
1214
1215 2008-07-21  Eric Blake  <ebb9@byu.net>
1216
1217         Warn, not fail, on stale version.
1218         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1219
1220         Don't allow installation with stale devel version number.
1221         * top/GNUmakefile (_is-install-target): New macro.
1222         (_curr-ver): Forbid installation with stale version number.
1223
1224 2008-07-20  Bruno Haible  <bruno@clisp.org>
1225
1226         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1227         TESTS_ENVIRONMENT.
1228         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1229
1230 2008-07-20  Bruno Haible  <bruno@clisp.org>
1231
1232         * lib/c-stack.h (c_stack_action): Add documentation.
1233         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1234
1235 2008-07-20  Bruno Haible  <bruno@clisp.org>
1236
1237         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1238         * modules/readlink (License): Likewise.
1239
1240 2008-07-17  Eric Blake  <ebb9@byu.net>
1241
1242         * modules/c-stack (Link): Fix typo.
1243
1244         Make c-stack use libsigsegv, when available.
1245         * modules/c-stack (Depends-on): Add libsigsegv.
1246         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1247         needed.
1248         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1249         (segv_handler, overflow_handler, c_stack_action)
1250         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1251         implementation when libsigsegv is available, but only when using
1252         the library is necessary.
1253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1254         comment, explaining why XSI check fails on Linux.
1255         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1256         * tests/test-c-stack2.sh: Tweak skip message.
1257         * NEWS: Document new link-time requirements.
1258
1259 2008-07-16  Eric Blake  <ebb9@byu.net>
1260
1261         c-stack: Expose false positives when not using libsigsegv.
1262         * modules/c-stack-tests (Files): Expand test.
1263         * tests/test-c-stack.c (main): Add means to conditionally trigger
1264         non-overflow SIGSEGV.
1265         * tests/test-c-stack2.sh: New file.
1266
1267 2008-07-14  Bruno Haible  <bruno@clisp.org>
1268
1269         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1270         Reported by Eric Blake.
1271
1272 2008-07-14  Sam Steingold  <sds@gnu.org>
1273             Bruno Haible  <bruno@clisp.org>
1274
1275         New module libsigsegv.
1276         * modules/libsigsegv: New file.
1277         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1278         modifications.
1279         * MODULES.html.sh (Signal handling): New section.
1280
1281 2008-07-14  Bruno Haible  <bruno@clisp.org>
1282
1283         * modules/unictype/ctype-* (Description): Add the word "function".
1284         Improves the resulting doc in MODULES.html.
1285
1286 2008-07-12  Ben Pfaff  <blp@gnu.org>
1287
1288         Add longlong module.
1289         * modules/longlong: New file.
1290
1291 2008-07-12  Bruno Haible  <bruno@clisp.org>
1292
1293         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1294         to empty.
1295
1296 2008-07-10  Ben Pfaff  <blp@gnu.org>
1297
1298         Add isnan module.
1299         * doc/posix-functions/isnan.texi: Mention new module.
1300         * lib/math.in.h: Define isnan macro if we have decided to replace
1301         it.
1302         * m4/isnan.m4: New file.
1303         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1304         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1305         also.
1306         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1307         redundancy.
1308         * m4/math_h.m4: Initialize and substitute variables for isnan
1309         module.
1310         * modules/isnan: New file.
1311         * modules/isnan-tests: New file.
1312         * modules/math: Add substitutions for new module.
1313         * tests/test-isnan.c: New file.
1314         * MODULES.html.sh: Mention new module.
1315
1316 2008-07-10  Ben Pfaff  <blp@gnu.org>
1317
1318         Add isnanf module.
1319         * lib/isnanf.m4: New file.
1320         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1321         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1322         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1323         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1324         * modules/isnanf: New file.
1325         * modules/isnanf-tests: New file.
1326         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1327         files.
1328         * tests/test-isnanf-nolibm.c: factored most of its contents into
1329         new file tests/test-isnanf.h.
1330         * tests/test-isnanf.h: New file.
1331         * tests/test-isnanf.c: New file.
1332         * MODULES.html.sh: Mention new module.
1333         * doc/glibc-functions/isnanf.texi: Mention new module.
1334
1335 2008-07-10  Ben Pfaff  <blp@gnu.org>
1336
1337         Add isnand module.
1338         * lib/isnand.h: New file.
1339         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1340         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1341         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1342         functionality also.
1343         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1344         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1345         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1346         * modules/isnand: New file.
1347         * modules/isnand-tests: New file.
1348         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1349         files.
1350         * tests/test-isnand-nolibm.c: factored most of its contents into
1351         new file tests/test-isnand.h.
1352         * tests/test-isnand.h: New file.
1353         * tests/test-isnand.c: New file.
1354         * MODULES.html.sh: Mention new module.
1355
1356 2008-07-10  Ben Pfaff  <blp@gnu.org>
1357
1358         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1359         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1360         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1361         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1362         * modules/isnanf-nolibm: Update references to renamed files.
1363         * modules/isnand-nolibm: Likewise.
1364         * modules/isnanf-nolibm-tests: Likewise.
1365         * modules/isnand-nolibm-tests: Likewise.
1366         * lib/frexp.c: Likewise.
1367         * lib/isfinite.c: Likewise.
1368         * lib/signbitd.c: Likewise.
1369         * lib/signbitf.c: Likewise.
1370         * lib/vasnprintf.c: Likewise.
1371         * tests/test-ceilf1.c: Likewise.
1372         * tests/test-ceilf2.c: Likewise.
1373         * tests/test-floorf1.c: Likewise.
1374         * tests/test-floorf2.c: Likewise.
1375         * tests/test-frexp.c: Likewise.
1376         * tests/test-round1.c: Likewise.
1377         * tests/test-round2.c: Likewise.
1378         * tests/test-roundf1.c: Likewise.
1379         * tests/test-strtod.c: Likewise.
1380         * tests/test-trunc1.c: Likewise.
1381         * tests/test-trunc2.c: Likewise.
1382         * tests/test-truncf1.c: Likewise.
1383         * tests/test-truncf2.c: Likewise.
1384         * NEWS: Mention the renamed header files.
1385
1386 2008-07-11  Jim Meyering  <meyering@redhat.com>
1387
1388         vc-list-files: make the last-resort awk code more portable
1389         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1390         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1391         does not support it.
1392
1393 2008-07-10  Eric Blake  <ebb9@byu.net>
1394
1395         Work with tar's bootstrap.
1396         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1397         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1398         an m4 comment.
1399
1400 2008-07-09  Jim Meyering  <meyering@redhat.com>
1401
1402         posix-shell.m4: fix typo that made this test malfunction
1403         * m4/posix-shell.m4: Remove capitalization in variable name.
1404
1405 2008-07-08  Bruno Haible  <bruno@clisp.org>
1406
1407         * m4/onceonly.m4: Update comments.
1408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1409
1410 2008-07-04  Jim Meyering  <meyering@redhat.com>
1411
1412         * users.txt: Add vc-dwim.
1413         (bison, coreutils): Use the gitweb URL.
1414
1415 2008-07-03  Jim Meyering  <meyering@redhat.com>
1416
1417         * users.txt: Add libffcall.  From Sam Steingold.
1418
1419 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
1420
1421         getdate.y: do not ignore TZ with relative day, month or year offset
1422         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1423         relative-date-handling, since otherwise, the latter would clobber the
1424         sole output (an updated Start value) of the tz-handling block.
1425         * tests/test-getdate.c: Tests for the fix
1426
1427 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1428
1429         Recognize 'foo_LIBRARIES += libgnu.a'.
1430         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1431         makefile snippet has already specified an installation location,
1432         also using '+='.
1433
1434 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
1435
1436         getdate.y: factor out common actions
1437         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1438         Use them in place of open-coded actions.
1439
1440 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1441
1442         Add self-test for getdate module.
1443         * modules/getdate-tests: New file.
1444         * tests/test-getdate.c: New file.
1445
1446 2008-06-29  Bruno Haible  <bruno@clisp.org>
1447
1448         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1449         .gitignore.
1450         Reported by Sylvain Beucler <beuc@beuc.net>.
1451
1452 2008-06-29  Bruno Haible  <bruno@clisp.org>
1453
1454         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1455         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1456
1457 2008-06-29  Bruno Haible  <bruno@clisp.org>
1458
1459         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1460         EXTRA_DIST.
1461         Reported by Sylvain Beucler <beuc@beuc.net>.
1462
1463 2008-06-26  Jim Meyering  <meyering@redhat.com>
1464
1465         make several modules depend on the "open" module
1466         This provides slightly increased consistency when opening-for-write
1467         the name of a non-directory spelled with a trailing slash.
1468         * modules/chdir-safer: Likewise.
1469         * modules/chown: Likewise.
1470         * modules/clean-temp: Likewise.
1471         * modules/copy-file: Likewise.
1472         * modules/fchdir: Likewise.
1473         * modules/fcntl-safer: Likewise.
1474         * modules/pipe: Likewise.
1475         * modules/utime: Likewise.
1476         Prompted by Eric Blake and Bruno Haible.
1477
1478 2008-06-24  Andreas Schwab  <schwab@suse.de>
1479
1480         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1481         literals can be used as initializers for global variables.
1482
1483 2008-06-23  Eric Blake  <ebb9@byu.net>
1484
1485         Make gnulib-cache.m4 easier to diff.
1486         * gnulib-tool (func_import): Allow newlines when reading cached
1487         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1488
1489 2008-06-23  Bruno Haible  <bruno@clisp.org>
1490
1491         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1492         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1493         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1494         m4/signalblocking.m4.
1495         (gl_PREREQ_SIGACTION): Don't invoke it.
1496         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1497         gl_PREREQ_SIG_HANDLER_H.
1498         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1499         Don't check for sigaction here.
1500
1501 2008-06-23  Bruno Haible  <bruno@clisp.org>
1502
1503         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1504         (install_handlers): Don't set the SA_RESETHAND flag.
1505
1506 2008-06-23  Bruno Haible  <bruno@clisp.org>
1507
1508         * m4/sigaction.m4: Comment fixes.
1509         * lib/signal.in.h: Likewise.
1510
1511 2008-06-23  Eric Blake  <ebb9@byu.net>
1512
1513         Fix typo.
1514         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1515
1516         Avoid SA_ namespace.
1517         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1518         Reported by Ralf Wildenhues.
1519
1520         Avoid test failure due to SA_RESTORER.
1521         * tests/test-sigaction.c (SA_MASK): New macro.
1522         (main): Avoid failing due to extension flags being set.
1523         Reported by Jim Meyering.
1524
1525         Revert use of sig-handler.h in sigprocmask.c.
1526         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1527         it requires the existence of struct sigaction.
1528         * lib/sigprocmask.c (handler_t): Restore typedef.
1529         (rpl_signal, old_handlers): Use local type.
1530
1531 2008-06-22  Bruno Haible  <bruno@clisp.org>
1532
1533         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1534         conditionally.
1535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1536
1537 2008-06-22  Bruno Haible  <bruno@clisp.org>
1538
1539         * doc/posix-functions/siginterrupt.texi: Move note.
1540
1541         * lib/signal.in.h (SA_RESTART): New macro.
1542         * lib/sigaction.c: Update comment.
1543
1544         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1545
1546         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1547         (gl_PREREQ_SIGPROCMASK): Invoke it.
1548         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1549
1550         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1551
1552         * lib/sigprocmask.c: Update a comment.
1553
1554 2008-06-21  Eric Blake  <ebb9@byu.net>
1555
1556         Use sigaction module rather than signal().
1557         * modules/c-stack (Depends-on): Add sigaction.
1558         * modules/fatal-signal (Depends-on): Likewise.
1559         * modules/nanosleep (Depends-on): Likewise.
1560         * modules/sigprocmask (Files): Add sig-handler.h.
1561         * modules/sigaction (Files): Likewise.
1562         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1563         Eggert.
1564         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1565         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1566         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1567         (init_fatal_signals): Likewise.
1568         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1569         (siginterrupt): Delete fallback.
1570         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1571         instead.
1572         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1573         siginterrupt.
1574
1575         New module sigaction, for mingw.
1576         * modules/sigaction: New module...
1577         * modules/sigaction-tests: ...and its test.
1578         * m4/sigaction.m4: New file.
1579         * lib/sigaction.c: Likewise.
1580         * tests/test-sigaction.c: Likewise.
1581         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1582         * modules/signal (Makefile.am): Likewise.
1583         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1584         needed.
1585         * doc/posix-headers/signal.texi (signal.h): Mention provided
1586         types.
1587         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1588         that sigaction is preferable.
1589         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1590         module.
1591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1592         sigaction.
1593
1594         Improve robustness of sigprocmask by overriding signal.
1595         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1596         is in use.
1597         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1598         (SIGKILL, SIGSTOP): Provide fallbacks.
1599         (rpl_signal): Implement.
1600         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1601         signal can be called inside handlers.
1602
1603         Fix nanosleep module on mingw.
1604         * modules/nanosleep (Depends-on): Add sys_select.
1605         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1606
1607         Fix licensing of sigprocmask.
1608         * modules/raise (License): Relicense as LGPL.
1609
1610 2008-06-21  Bruno Haible  <bruno@clisp.org>
1611
1612         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1613         result if it contains question marks.
1614         Reported by Michael Geng <linux@michaelgeng.de>.
1615
1616 2008-06-19  Bruno Haible  <bruno@clisp.org>
1617
1618         Fix CVS-ism.
1619         * doc/gnulib.texi: Include updated-stamp.texi.
1620         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1621         (updated-stamp.texi): New rule.
1622         (gnulib.info): Depend on it.
1623         * doc/.gitignore: Add updated-stamp.texi.
1624         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1625
1626 2008-06-19  Bruno Haible  <bruno@clisp.org>
1627
1628         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1629         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1630
1631 2008-06-19  Eric Blake  <ebb9@byu.net>
1632
1633         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1634         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1635         Reported by Stepan Kasal.
1636
1637 2008-06-18  Bruno Haible  <bruno@clisp.org>
1638
1639         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1640         Reported by Eric Blake.
1641
1642 2008-06-18  Eric Blake  <ebb9@byu.net>
1643
1644         Work around cygwin 1.5.25 strsignal bug.
1645         * tests/test-strsignal.c: Allow for const char *.
1646         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1647
1648 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1649
1650         * users.txt: Update URL to article and add author/date
1651         information.
1652
1653 2008-06-17  Bruno Haible  <bruno@clisp.org>
1654
1655         New macro gl_DISABLE_THREADS.
1656         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1657         if the user did not pass --enable-threads or --disable-threads option.
1658         (gl_DISABLE_THREADS): New macro.
1659         Reported by Eric Blake <ebb9@byu.net>.
1660
1661 2008-06-17  Bruno Haible  <bruno@clisp.org>
1662
1663         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1664         when the macro ignores it.
1665         Based on a patch by Eric Blake <ebb9@byu.net>.
1666
1667 2008-06-17  Bruno Haible  <bruno@clisp.org>
1668
1669         * modules/tls (License): Change to LGPLv2+.
1670         Reported by Eric Blake.
1671
1672 2008-06-17  Eric Blake  <ebb9@byu.net>
1673
1674         Simplify c-stack prerequisites.
1675         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1677         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1678         check.
1679         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1680         <sys/resource.h>.
1681
1682         Move c-stack test into testsuite.
1683         * modules/c-stack-tests: New file.
1684         * lib/c-stack.c [DEBUG]: Move test program...
1685         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1686         fail test if sigaltstack is lacking.
1687         * tests/test-c-stack.sh: New driver file.
1688
1689 2008-06-16  Eric Blake  <ebb9@byu.net>
1690
1691         Use raise module consistently.
1692         * modules/fatal-signal (Depends-on): Add raise.
1693         * modules/sigprocmask (Depends-on): Likewise.
1694         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1695         * lib/sigprocmask.c (sigprocmask): Likewise.
1696         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1697         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1698
1699         Fix compliance bug in sigpending.
1700         * lib/sigprocmask.c (sigpending): Return pending array via
1701         parameter, not return value.
1702
1703 2008-06-14  Eric Blake  <ebb9@byu.net>
1704
1705         Improve obstack-printf test code.
1706         * tests/test-obstack-printf.c (test_function): Fix comment, and
1707         simplify usage of obstack_* in macros.  Add a test for coverage.
1708         Reported by Bruno Haible.
1709
1710 2008-06-14  Bruno Haible  <bruno@clisp.org>
1711
1712         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1713         array size as a constant, not as a const variable.
1714         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1715         AC_USE_SYSTEM_EXTENSIONS.
1716         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1717         Test whether the obstack_printf function actually exists.
1718         * modules/obstack-printf (Depends-on): Add extensions.
1719         (Include): Remove obstack.h.
1720         * modules/obstack-printf-posix (Depends-on): Add extensions.
1721         (Include): Remove obstack.h.
1722
1723 2008-06-13  Eric Blake  <ebb9@byu.net>
1724
1725         Add obstack-printf and obstack-printf-posix modules.
1726         * modules/obstack-printf: New file.
1727         * modules/obstack-printf-posix: Likewise.
1728         * MODULES.html.sh (Misc): Mention them.
1729         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1730         Likewise.
1731         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1732         Likewise.
1733         * modules/stdio (Makefile.am): Accomodate new modules.
1734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1735         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1736         Declare.
1737         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1738         functions.
1739         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1740         (gl_REPLACE_OBSTACK_PRINTF): New macros
1741         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1742         * tests/test-obstack-printf.c: New file.
1743         * modules/obstack-printf-tests: Likewise.
1744         * modules/obstack-printf-posix-tests: Likewise.
1745
1746 2008-06-11  Bruno Haible  <bruno@clisp.org>
1747
1748         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1749         * lib/open.c: Include errno.h.
1750         (open): Fail when attempting to write to a file that has a trailing
1751         slash.
1752         * tests/test-open.c (main): Test against trailing slash bug.
1753         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1754
1755 2008-06-10  Bruno Haible  <bruno@clisp.org>
1756
1757         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1758         for $? to work inside the trap command, with various /bin/sh-s.
1759         * tests/test-vc-list-files-cvs.sh: Likewise.
1760
1761 2008-06-10  Bruno Haible  <bruno@clisp.org>
1762
1763         * lib/acl-internal.h: Don't include gettext.h here.
1764         * lib/set-mode-acl.c: Include gettext.h here.
1765         * lib/copy-acl.c: Likewise.
1766
1767 2008-06-10  Bruno Haible  <bruno@clisp.org>
1768
1769         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1770         * lib/wait-process.c (wait_subprocess): Likewise.
1771         * lib/execute.h (execute): Add termsigp argument.
1772         * lib/execute.c (execute): Likewise.
1773         * lib/csharpcomp.c (compile_csharp_using_pnet,
1774         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1775         * lib/csharpexec.c (execute_csharp_using_pnet,
1776         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1777         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1778         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1779         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1780         is_jikes_present): Update.
1781         * lib/javaexec.c (execute_java_class): Update.
1782         * lib/javaversion.c (execute_and_read_line): Update.
1783         * NEWS: Document the changes.
1784         Reported by Eric Blake.
1785
1786 2008-06-10  Eric Blake  <ebb9@byu.net>
1787
1788         Add missing include.
1789         * tests/test-strstr.c (includes): Add <signal.h>.
1790         * tests/test-strcasestr.c (includes): Likewise.
1791         * tests/test-memmem.c (includes): Likewise.
1792
1793 2008-06-10  Bruno Haible  <bruno@clisp.org>
1794
1795         * lib/wait-process.c (wait_subprocess): Add an assertion.
1796
1797 2008-06-10  Bruno Haible  <bruno@clisp.org>
1798
1799         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1800
1801 2008-06-10  Bruno Haible  <bruno@clisp.org>
1802
1803         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1804         using alarm().
1805         * tests/test-strcasestr.c (main): Likewise.
1806         * tests/test-strstr.c (main): Likewise.
1807
1808 2008-06-09  Bruno Haible  <bruno@clisp.org>
1809
1810         Work around the Solaris 10 ACE ACLs ABI change.
1811         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1812         declare if ACL_NO_TRIVIAL is present.
1813         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1814         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1815         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1816         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1817         define if ACL_NO_TRIVIAL is present.
1818         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1819         and use the current ABI.
1820         (file_has_acl): Use same #if condition as elsewhere.
1821         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1822         in use, and use the current ABI.
1823         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1824         Reported by Jim Meyering.
1825
1826 2008-06-09  Eric Blake  <ebb9@byu.net>
1827
1828         Work around environments that (stupidly) ignore SIGALRM.
1829         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1830         before using alarm().
1831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1833         Reported by Ian Beckwith <ianb@erislabs.net>.
1834
1835         Produce autobuild blurb earlier in log.
1836         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1837
1838 2008-06-09  Jim Meyering  <meyering@redhat.com>
1839         and Ondřej Vašík  <ovasik@redhat.com>
1840
1841         utimens.c: correct kernel bug work-around
1842         Ondřej Vašík found that the invalid return value of 280 indicates
1843         failure, not success, and the kernel bug we're trying to work
1844         around affects not just the utimensat call, but also the fallback
1845         futimens call.
1846         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1847         not success.
1848         [HAVE_FUTIMENS]: Use the same work-around, here.
1849
1850 2008-06-09  Jim Meyering  <meyering@redhat.com>
1851
1852         add more guards around definition of ACE_-related code
1853         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1854         ALLOW and ACE_OWNER are also defined.
1855
1856 2008-06-08  Bruno Haible  <bruno@clisp.org>
1857
1858         * lib/acl-internal.h: Add me as co-author.
1859         * lib/file-has-acl.c: Likewise.
1860         * lib/set-mode-acl.c: Likewise.
1861         * lib/copy-acl.c: Likewise.
1862
1863 2008-06-08  Bruno Haible  <bruno@clisp.org>
1864
1865         Add support for AIX ACLs.
1866         * lib/acl-internal.h (acl_nontrivial): New declaration.
1867         * lib/file-has-acl.c (acl_nontrivial): New function.
1868         (file_has_acl): Add implementation using AIX 4 ACL API.
1869         * lib/set-mode-acl.c (qset_acl): Likewise.
1870         * lib/copy-acl.c (qcopy_acl): Likewise.
1871
1872 2008-06-08  Bruno Haible  <bruno@clisp.org>
1873
1874         Add support for HP-UX ACLs.
1875         * lib/acl-internal.h (acl_nontrivial): New declaration.
1876         * lib/file-has-acl.c (acl_nontrivial): New function.
1877         (file_has_acl): Add implementation using HP-UX 11 ACL API.
1878         * lib/set-mode-acl.c (qset_acl): Likewise.
1879         * lib/copy-acl.c (qcopy_acl): Likewise.
1880
1881 2008-06-08  Bruno Haible  <bruno@clisp.org>
1882
1883         Add support for Cygwin ACLs.
1884         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1885         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1886         the chmod_or_fchmod call.
1887         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1888
1889 2008-06-08  Bruno Haible  <bruno@clisp.org>
1890
1891         Fix bug with setuid modes in Solaris 10+ code.
1892         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1893         succeeded, when the mode contains some special bits.
1894
1895 2008-06-08  Bruno Haible  <bruno@clisp.org>
1896
1897         Add support for Solaris 7..10 ACLs.
1898         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1899         declarations.
1900         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1901         functions.
1902         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1903         * lib/set-mode-acl.c (qset_acl): Likewise.
1904         * lib/copy-acl.c (qcopy_acl): Likewise.
1905
1906 2008-06-08  Bruno Haible  <bruno@clisp.org>
1907
1908         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1909         declaration.
1910         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1911         (acl_access_nontrivial): Remove MacOS X case.
1912         (file_has_acl): Use acl_extended_nontrivial.
1913         * lib/copy-acl.c (qcopy_acl): Likewise.
1914
1915 2008-06-08  Bruno Haible  <bruno@clisp.org>
1916
1917         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1918
1919 2008-06-08  Jim Meyering  <meyering@redhat.com>
1920
1921         * modules/acl (Maintainer): Add Bruno Haible.
1922
1923 2008-06-07  Bruno Haible  <bruno@clisp.org>
1924
1925         Improve support for Tru64 ACLs.
1926         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1927         ACL on OSF/1.
1928
1929 2008-06-07  Bruno Haible  <bruno@clisp.org>
1930
1931         Add support for MacOS X ACLs.
1932         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1933         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1934         * lib/set-mode-acl.c (qset_acl): Likewise.
1935         * lib/copy-acl.c (qcopy_acl): Likewise.
1936
1937 2008-06-07  Bruno Haible  <bruno@clisp.org>
1938
1939         Fix memory leak introduced on 2008-05-22.
1940         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1941         use.
1942
1943 2008-06-07  Bruno Haible  <bruno@clisp.org>
1944
1945         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1946         to construct an empty ACL.
1947
1948 2008-06-07  Bruno Haible  <bruno@clisp.org>
1949
1950         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1951         precisely.
1952         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1953
1954 2008-06-07  Bruno Haible  <bruno@clisp.org>
1955
1956         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1957         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1958
1959 2008-06-07  Bruno Haible  <bruno@clisp.org>
1960
1961         * doc/posix-functions/_setjmp.texi: Explain the use of this function
1962         regardless of POSIX.
1963         * doc/posix-functions/_longjmp.texi: Likewise.
1964         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1965         SystemV platform in this case.
1966
1967 2008-06-06  Eric Blake  <ebb9@byu.net>
1968
1969         Document abort() bugs.
1970         * doc/posix-functions/abort.texi (abort): Mention anomalies.
1971
1972         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1973         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1974         sigsetjmp.
1975         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1976         siglongjmp, but only as a macro.
1977         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1978         is obsolete.
1979         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1980
1981         Tweak documentation to cover cygwin argz bugs.
1982         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1983         argz bug fix; no code change needed since no cygwin releases
1984         occurred between the last fix and the bug being tested.
1985         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1986         module and recently fixed cygwin bugs.
1987         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1988         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1989         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1990         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1991         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1992         Likewise.
1993         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1994         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1995         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1996         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1997         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1998         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1999         Likewise.
2000
2001         Avoid gcc warning on cygwin.
2002         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2003         !ACL_NO_TRIVIAL]: Avoid unused variable.
2004
2005 2008-06-05  Eric Blake  <ebb9@byu.net>
2006
2007         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2008         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2009         git-version-gen fails to come up with a version.
2010         Reported by Simon Josefsson.
2011
2012 2008-06-05  Jim Meyering  <meyering@redhat.com>
2013             Paul Eggert  <eggert@cs.ucla.edu>
2014
2015         utimens.c: work around a probable Linux kernel bug
2016         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2017         appears to be a kernel bug that causes utimensat to return 280
2018         instead of 0, indicating success.
2019
2020 2008-06-04  Bruno Haible  <bruno@clisp.org>
2021
2022         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2023         2008-06-01 commit.
2024
2025 2008-06-04  Bruno Haible  <bruno@clisp.org>
2026
2027         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2028         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2029         (file_has_acl): Use it. Save errno afterwards.
2030         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2031
2032 2008-06-03  Bruno Haible  <bruno@clisp.org>
2033
2034         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2035         draft code. Simplify #ifs.
2036         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2037         Put Solaris code after POSIX-draft code. Fix comments regarding
2038         Solaris 10, HP-UX. Mention Cygwin.
2039         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2040
2041 2008-06-03  Eric Blake  <ebb9@byu.net>
2042
2043         Provide fallback for older kernels.
2044         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2045         Provide runtime fallback if kernel lacks support.
2046         Reported by Mike Frysinger.
2047
2048 2008-06-02  Bruno Haible  <bruno@clisp.org>
2049
2050         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2051         it exists.
2052
2053 2008-06-02  Bruno Haible  <bruno@clisp.org>
2054
2055         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2056         * lib/copy-acl.c (qcopy_acl): Update comment.
2057
2058 2008-06-02  Bruno Haible  <bruno@clisp.org>
2059
2060         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2061         like ACL APIs.
2062
2063 2008-06-02  Bruno Haible  <bruno@clisp.org>
2064
2065         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2066         * tests/test-set-mode-acl.sh: Likewise.
2067         * tests/test-copy-acl.sh: Likewise.
2068         * tests/test-copy-file.sh: Likewise.
2069
2070 2008-06-02  Bruno Haible  <bruno@clisp.org>
2071
2072         * tests/test-file-has-acl.sh: Remove unused code.
2073
2074 2008-06-01  Bruno Haible  <bruno@clisp.org>
2075
2076         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2077         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2078         messages.
2079         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2080
2081 2008-06-01  Bruno Haible  <bruno@clisp.org>
2082
2083         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2084         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2085         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2086         APIs.
2087         * modules/acl-tests (configure.ac): Remove tests now contained in
2088         m4/acl.m4.
2089
2090 2008-06-02  Jim Meyering  <meyering@redhat.com>
2091
2092         announce-gen: use a better key-server host name
2093         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2094         it may be more consistently reliable.  Suggested by Werner Koch
2095         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2096
2097 2008-06-01  Bruno Haible  <bruno@clisp.org>
2098
2099         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2100         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2101
2102 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2103
2104         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2105
2106 2008-06-01  Bruno Haible  <bruno@clisp.org>
2107
2108         New ACL tests.
2109         * tests/test-file-has-acl.sh: New file.
2110         * tests/test-file-has-acl.c: New file.
2111         * tests/test-set-mode-acl.sh: New file.
2112         * tests/test-set-mode-acl.c: New file.
2113         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2114         * tests/test-copy-acl.c: New file.
2115         * modules/acl-tests: New file, based on modules/copy-file-tests.
2116         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2117         (Depends-on): Add acl-tests.
2118         (configure.ac): Remove checks.
2119         (Makefile.am): Don't create test-sameacls program here any more.
2120
2121 2008-06-01  Bruno Haible  <bruno@clisp.org>
2122
2123         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2124         * tests/test-sameacls.c: Include progname.h.
2125         (main): Invoke set_program_name. Portability fixes for MacOS X,
2126         Solaris, HP-UX.
2127
2128 2008-06-01  Bruno Haible  <bruno@clisp.org>
2129
2130         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2131         function.
2132         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2133
2134 2008-06-01  Bruno Haible  <bruno@clisp.org>
2135
2136         * modules/rpmatch (Depends-on): Add strdup.
2137
2138 2008-06-01  Bruno Haible  <bruno@clisp.org>
2139
2140         * lib/pipe.c: Include unistd-safer.h.
2141         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2142         * modules/pipe (Depends-on): Add unistd-safer.
2143
2144 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2145
2146         * modules/autobuild (configure.ac): Call AB_INIT.
2147
2148 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2149
2150         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2151         Suggested by Bruno Haible <bruno@clisp.org>.
2152
2153 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2154
2155         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2156         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2157         <bruno@clisp.org>.
2158
2159 2008-05-29  Eric Blake  <ebb9@byu.net>
2160
2161         Prefer new POSIX 200x interfaces over futimesat.
2162         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2163         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2164         when available.
2165         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2166
2167 2008-05-28  Bruno Haible  <bruno@clisp.org>
2168
2169         * modules/stpcpy (License): Change to LGPLv2+.
2170         Requested by David Lutterkort <dlutter@redhat.com>.
2171
2172 2008-05-27  Bruno Haible  <bruno@clisp.org>
2173
2174         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2175         current mingw.
2176         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2177
2178 2008-05-27  Bruno Haible  <bruno@clisp.org>
2179
2180         * modules/iconv_open (Link): New section, from module 'iconv'.
2181         * modules/striconv (Link): Likewise.
2182         * modules/striconveh (Link): Likewise.
2183         * modules/xstriconv (Link): Likewise.
2184         * modules/unicodeio (Link): Likewise.
2185         * modules/propername (Link): Likewise.
2186         Reported by Jim Meyering.
2187
2188 2008-05-26  Jim Meyering  <meyering@redhat.com>
2189
2190         sha256: do not artificially restrict buffer length to be < 2^32
2191         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2192         uint32_t to size_t.
2193         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2194         to match.
2195
2196         avoid unaligned access errors, e.g., on sparc
2197         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2198         direct access through a possibly-unaligned uint64* pointer.
2199         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2200         direct access through a possibly-unaligned uint32* pointer.
2201         Prompted by this patch from Tom "spot" Callaway:
2202         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2203
2204         sha512.c: fix typo in comment
2205         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2206
2207 2008-05-25  Bruno Haible  <bruno@clisp.org>
2208
2209         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2210         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2211         (Makefile.am): Update lib_SOURCES.
2212
2213 2008-05-25  Bruno Haible  <bruno@clisp.org>
2214
2215         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2216
2217 2008-05-25  Jim Meyering  <meyering@redhat.com>
2218
2219         useless-if-before-free: freed expr may have white-space differences
2220         * build-aux/useless-if-before-free: Recognize cases in which the
2221         freed expression differs from the tested one in embedded white
2222         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2223         $1 was used, so we can't make any regexp shy.  Improved tests now
2224         detect this.
2225
2226         useless-if-before-free: accept white space in the expression.
2227         * build-aux/useless-if-before-free: For now, any white space
2228         in the expression must be identical in the free argument.
2229
2230         useless-if-before-free: efficiency tweak
2231         * build-aux/useless-if-before-free: Make the expression-matching
2232         regexp "shy".
2233         Make the *outer* regexp shy, not the expr-matching one.
2234
2235         update code-in-comment to accept cast of free arg
2236         * build-aux/useless-if-before-free: Update regexp.
2237
2238 2008-05-25  Bruno Haible  <bruno@clisp.org>
2239
2240         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2241         * modules/copy-file-tests (Files, Makefile.am): Update.
2242         * tests/test-copy-file.c (func_test_copy): Update.
2243
2244 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2245
2246         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2247
2248 2008-05-23  Bruno Haible  <bruno@clisp.org>
2249
2250         Improve support for ACLs on OSF/1.
2251         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2252         Remove fallback for unknown flavors of ACLs.
2253
2254 2008-05-22  Bruno Haible  <bruno@clisp.org>
2255
2256         Add support for ACLs on OSF/1.
2257         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2258         replacements.
2259         (acl_free_text): New macro fallback.
2260         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2261         acl_free.
2262         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2263         acl_free_text function. Require AC_C_INLINE.
2264
2265 2008-05-22  Bruno Haible  <bruno@clisp.org>
2266
2267         Make copy_acl work on MacOS X 10.5.
2268         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2269         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2270         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2271         If MODE_INSIDE_ACL, don't assume that every system has the same text
2272         representation for ACLs as FreeBSD.
2273         * lib/copy-acl.c (copy_acl): Add support for platforms with
2274         !MODE_INSIDE_ACL.
2275         * lib/file-has-acl.c (file_has_acl): Likewise.
2276         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2277         FreeBSD, MacOS X, or IRIX, respectively.
2278
2279 2008-05-22  Bruno Haible  <bruno@clisp.org>
2280
2281         * lib/acl.h: Don't include <sys/acl.h>.
2282         (GETACLCNT): Move fallback to lib/acl-internal.h.
2283         * lib/acl-internal.h: Include <sys/acl.h> here.
2284         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2285
2286 2008-05-22  Bruno Haible  <bruno@clisp.org>
2287
2288         Split off copy_acl function to separate file.
2289         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2290         * lib/acl.c (copy_acl): Moved function to separate file.
2291         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2292         * modules/acl (Files): Add lib/copy-acl.c.
2293         (Makefiles.am): Augment lib_SOURCES.
2294
2295 2008-05-22  Bruno Haible  <bruno@clisp.org>
2296
2297         * modules/copy-file-tests: New file.
2298         * tests/test-copy-file.sh: New file.
2299         * tests/test-copy-file.c: New file.
2300         * tests/test-copy-file-sameacls.c: New file.
2301
2302 2008-05-22  Eric Blake  <ebb9@byu.net>
2303
2304         Avoid gcc warning.
2305         * tests/test-memcmp.c (main): Pass NULL indirectly.
2306
2307 2008-05-21  Bruno Haible  <bruno@clisp.org>
2308
2309         Add reference doc about ACLs.
2310         * doc/acl-resources.txt: New file.
2311         * doc/acl-cygwin.txt: New file.
2312
2313 2008-05-21  Bruno Haible  <bruno@clisp.org>
2314
2315         Avoid one more warning from gcc.
2316         * lib/vasnprintf.c (IF_LINT): Update comments.
2317         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2318
2319 2008-05-21  Jim Meyering  <meyering@redhat.com>
2320
2321         avoid a warning from gcc
2322         * lib/vasnprintf.c (IF_LINT): Define.
2323         (scale10_round_decimal_long_double):
2324         Use it to avoid a "may be used uninitialized" warning.
2325         (scale10_round_decimal_double): Likewise.
2326
2327 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2328
2329         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2330         declared.
2331
2332 2008-05-20  Bruno Haible  <bruno@clisp.org>
2333
2334         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2335         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2336
2337 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2338
2339         * modules/memcmp-tests: New file.
2340         * tests/test-memcmp.c: New file.
2341
2342 2008-05-19  Bruno Haible  <bruno@clisp.org>
2343
2344         * modules/propername (Notice, configure.ac): Put quoted "..." into
2345         --keyword option.
2346         * lib/propername.h: Update comments accordingly.
2347         Reported by Eric Blake.
2348
2349 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2350
2351         * modules/getpass-gnu (Depends-on): Add fseeko.
2352
2353 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2354
2355         * modules/base64-tests: New file.
2356
2357 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2358
2359         * lib/base64.c (base64_decode_ctx): If a decode context structure
2360         was passed in use it to ignore newlines.  If a context structure
2361         was _not_ passed in, continue to treat newlines as garbage (this
2362         is the historical behavior).  Formerly base64_decode.
2363         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2364         takes a decode context structure.
2365         * lib/base64.h (base64_decode): Macro for four-argument calls.
2366         (base64_decode_alloc): Likewise.
2367         * lib/base64.c (base64_decode_ctx): If a decode context structure
2368         was passed in use it to ignore newlines.  If a context structure
2369         was _not_ passed in, continue to treat newlines as garbage (this
2370         is the historical behavior).  Formerly base64_decode.
2371         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2372         takes a decode context structure.
2373         * lib/base64.h (base64_decode): Macro for four-argument calls.
2374         (base64_decode_alloc): Likewise.
2375
2376 2008-05-19  Jim Meyering  <meyering@redhat.com>
2377
2378         avoid a warning from gcc
2379         * lib/trim.c (IF_LINT): Define.
2380         (trim2): Use it to avoid a "may be used uninitialized" warning.
2381
2382         Fix doc typo.
2383         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2384
2385 2008-05-19  Bruno Haible  <bruno@clisp.org>
2386
2387         * doc/glibc-functions/getpass.texi: Document limits of other
2388         implementations.
2389
2390 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2391             Bruno Haible <bruno@clisp.org>
2392
2393         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2394
2395 2008-05-18  Bruno Haible  <bruno@clisp.org>
2396
2397         * modules/propername: New file, from GNU gettext.
2398         * lib/propername.h: New file, from GNU gettext.
2399         * lib/propername.c: New file, from GNU gettext.
2400         * MODULES.html.sh (Internationalization functions): Add propername.
2401
2402 2008-05-16  Jim Meyering  <meyering@redhat.com>
2403             Bruno Haible  <bruno@clisp.org>
2404
2405         Avoid some warnings from "gcc -Wshadow".
2406         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2407
2408 2008-05-15  Eric Blake  <ebb9@byu.net>
2409
2410         Extend previous patch to cygwin 1.7.0.
2411         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2412         fast implementation in cygwin >= 1.7.0.
2413         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2415
2416 2008-05-15  Bruno Haible  <bruno@clisp.org>
2417
2418         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2419         implementation in glibc >= 2.9.
2420         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2422
2423 2008-05-15  Bruno Haible  <bruno@clisp.org>
2424
2425         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2426         (Unicode string functions): Add unilbrk/*.
2427         Reported by Karl Berry.
2428
2429 2008-05-15  Eric Blake  <ebb9@byu.net>
2430
2431         Fix violation of <stdbool.h> replacement in regex.
2432         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2433         * lib/regexec.c (re_search_internal): Likewise.
2434         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2435
2436 2008-05-15  Jim Meyering  <meyering@redhat.com>
2437
2438         avoid distracting test output when git or cvs is not found
2439         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2440         * tests/test-vc-list-files-git.sh: Likewise.
2441
2442 2008-05-15  Eric Blake  <ebb9@byu.net>
2443
2444         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2445         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2446         glibc version.
2447         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2448         * doc/posix-functions/strstr.texi (strstr): Likewise.
2449         * lib/str-two-way.h (MAX): Sychronize with glibc.
2450
2451 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2452
2453         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2454         opr.ctx_type.
2455         (calc_first): Initialize constraint field.
2456         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2457         Fix grammar.
2458         (duplicate_node): Merge constraint field for all node types.
2459         (calc_eclosure_iter): Look at constraint field for all node types.
2460         * lib/regex_internal.c (create_cd_newstate): Don't look at
2461         opr.ctx_type.
2462
2463 2008-05-14  Bruno Haible  <bruno@clisp.org>
2464
2465         Help GCC to do better code generation.
2466         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2467         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2468         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2469         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2470         Declare with attribute 'malloc' if supported.
2471
2472 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2473
2474         use "echo STR|wc -c" rather than unportable "expr length STR"
2475         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2476         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2477
2478 2008-05-14  Jim Meyering  <meyering@redhat.com>
2479
2480         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2481         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2482         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2483         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2484         via Collin Lasse.
2485
2486 2008-05-14  Eric Blake  <ebb9@byu.net>
2487
2488         Avoid quadratic growth in gl_LIBSOURCES.
2489         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2490         Suggested by Bruno Haible.
2491
2492         Test xmemdup0.
2493         * modules/xmemdup0-tests: New file.
2494         * tests/test-xmemdup0.c: Likewise.
2495
2496 2008-05-13  Eric Blake  <ebb9@byu.net>
2497
2498         Split xmemdup0 into its own module.
2499         * modules/xmemdup0: New file.
2500         * lib/xmemdup0.h: Likewise.
2501         * lib/xmemdup0.c: Likewise.
2502         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2503         * lib/xalloc.h (xmemdup0): Remove.
2504         * lib/xmalloc.c (xmemdup0): Likewise.
2505
2506 2008-05-13  Eric Blake  <ebb9@byu.net>
2507             Bruno Haible  <bruno@clisp.org>
2508
2509         Reduce number of forks required during autoconf.
2510         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2511         and gl_LIBSOURCES_DIR.
2512         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2513         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2514         m4_syscmd per file.
2515         <m4_foreach_w>: Move...
2516         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2517
2518 2008-05-13  Eric Blake  <ebb9@byu.net>
2519
2520         * gnulib-tool: Fix various comment typos.
2521
2522 2008-05-12  Bruno Haible  <bruno@clisp.org>
2523
2524         Tailor the linebreaking algorithm.
2525         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2526
2527 2008-05-12  Bruno Haible  <bruno@clisp.org>
2528
2529         Update to Unicode 5.0.0.
2530         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2531         LBP_JV, LBP_JT. Redistribute values.
2532         (unilbrk_table): Change size.
2533         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2534         Unicode TR#14 rev. 22.
2535         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2536         LBP_JV, LBP_JT. Redistribute values.
2537         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2538         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2539         Update.
2540         * lib/unilbrk/lbrkprop1.h: Regenerated.
2541         * lib/unilbrk/lbrkprop2.h: Regenerated.
2542         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2543         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2544         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2545         Likewise.
2546         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2547         Likewise.
2548         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2549         result.
2550         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2551         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2552         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2553         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2554         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2555         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2556
2557 2008-05-11  Bruno Haible  <bruno@clisp.org>
2558
2559         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2560
2561 2008-05-11  Bruno Haible  <bruno@clisp.org>
2562
2563         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2564         * modules/unilbrk/gen-lbrk: New file.
2565
2566 2008-05-11  Bruno Haible  <bruno@clisp.org>
2567
2568         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2569         * m4/sha512.m4 (gl_SHA512): Likewise.
2570
2571 2008-05-11  Jim Meyering  <meyering@redhat.com>
2572
2573         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2574         * modules/crypto/sha256: New file.
2575         * modules/crypto/sha512: Likewise.
2576         * lib/sha256.c: Likewise.
2577         * lib/sha256.h: Likewise.
2578         * lib/sha512.c: Likewise.
2579         * lib/sha512.h: Likewise.
2580         * lib/u64.h: Likewise.
2581         * m4/sha256.m4: Likewise.
2582         * m4/sha512.m4: Likewise.
2583         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2584
2585 2008-05-10  Bruno Haible  <bruno@clisp.org>
2586
2587         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2588         (Input/Output <stdio.h>): Add xprintf.
2589         (Signal handling <signal.h>): Add strsignal.
2590         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2591         (Core language properties): Add func.
2592         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2593         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2594         strings.
2595         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2596         (Input/output): New section.
2597         (File system functions): Add openat-die, stat-macros.
2598         (Networking functions): Add sockets.
2599         (Unicode string functions): Add unictype/*.
2600         (Support for building libraries and executables): Add gperf.
2601         (Support for building documentation): Add agpl-3.0.
2602         (Misc): Add nocrash.
2603
2604 2008-05-10  Bruno Haible  <bruno@clisp.org>
2605
2606         * modules/unictype/gen-ctype: New file.
2607
2608 2008-05-10  Jim Meyering  <meyering@redhat.com>
2609
2610         Make chdir-safer.c more efficient on a system with no symlinks.
2611         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2612         also if ELOOP is zero.  Suggested by Bruno Haible.
2613
2614         Make chdir-safer.c slightly safer.
2615         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2616         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2617
2618         Avoid compile failure on systems without ELOOP (like mingw).
2619         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2620         Reported by Bruno Haible.
2621
2622 2008-05-10  Bruno Haible  <bruno@clisp.org>
2623
2624         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2625         (is_utf8_encoding): Use a case-insensitive comparison.
2626         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2627         streq.
2628
2629 2008-05-10  Bruno Haible  <bruno@clisp.org>
2630
2631         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2632         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2633         * lib/unilbrk/ulc-common.h (iconv_string_length,
2634         iconv_string_keeping_offsets): Remove declarations.
2635         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2636         Don't include <iconv.h>, streq.h, xsize.h.
2637         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2638         conversion.
2639         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2640         <iconv.h>, streq.h, xsize.h.
2641         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2642         conversion.
2643         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2644         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2645         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2646         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2647
2648 2008-05-10  Bruno Haible  <bruno@clisp.org>
2649
2650         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2651         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2652
2653         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2654         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2655
2656         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2657         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2658
2659         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2660         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2661
2662         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2663         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2664
2665         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2666         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2667
2668         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2669         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2670
2671         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2672         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2673
2674 2008-05-10  Bruno Haible  <bruno@clisp.org>
2675
2676         Split up 'linebreak' module.
2677         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2678         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2679         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2680         modifications.
2681         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2682         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2683         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2684         lib/linebreak.c.
2685         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2686         lib/linebreak.c.
2687         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2688         lib/linebreak.c.
2689         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2690         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2691         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2692         lib/linebreak.c.
2693         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2694         lib/linebreak.c.
2695         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2696         lib/linebreak.c.
2697         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2698         lib/linebreak.c.
2699         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2700         lib/linebreak.c.
2701         * modules/unilbrk/base: New file.
2702         * modules/unilbrk/tables: New file.
2703         * modules/unilbrk/u8-possible-linebreaks: New file.
2704         * modules/unilbrk/u16-possible-linebreaks: New file.
2705         * modules/unilbrk/u32-possible-linebreaks: New file.
2706         * modules/unilbrk/ulc-common: New file.
2707         * modules/unilbrk/ulc-possible-linebreaks: New file.
2708         * modules/unilbrk/u8-width-linebreaks: New file.
2709         * modules/unilbrk/u16-width-linebreaks: New file.
2710         * modules/unilbrk/u32-width-linebreaks: New file.
2711         * modules/unilbrk/ulc-width-linebreaks: New file.
2712         * lib/linebreak.h: Remove file.
2713         * lib/linebreak.c: Remove file.
2714         * m4/linebreak.m4: Remove file.
2715         * modules/linebreak: Remove file.
2716         * NEWS: Mention the changes.
2717
2718 2008-05-09  Eric Blake  <ebb9@byu.net>
2719
2720         Add xmemdup0.
2721         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2722         implementation.
2723         * lib/xmalloc.c (xmemdup0): New C implementation.
2724
2725 2008-05-08  Bruno Haible  <bruno@clisp.org>
2726
2727         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2728
2729 2008-05-07  Eric Blake  <ebb9@byu.net>
2730
2731         Support cross-compilation of <wctype.h>.
2732         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2733         AC_CACHE_CHECK.
2734
2735 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2736
2737         * build-aux/vc-list-files: Add support for bzr.
2738
2739 2008-05-03  Jim Meyering  <meyering@redhat.com>
2740
2741         avoid failed assertion with tight malloc
2742         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2743
2744 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2745
2746         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2747         are needed from arpa/inet.h.
2748         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2749         Reported by Bruno Haible.
2750
2751 2008-05-02  Jim Meyering  <meyering@redhat.com>
2752
2753         avoid compilation error on FreeBSD 6
2754         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2755
2756 2008-05-01  Jim Meyering  <meyering@redhat.com>
2757
2758         useless-if-before-free: correct --help's exit status description
2759         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2760         for one or more matches, etc.  Reported by Bruno Haible.
2761
2762         vc-list-files: make the stand-alone gnulib test work
2763         * modules/vc-list-files-tests (configure.ac):
2764         Define and AC_SUBST abs_aux_dir.
2765         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2766         $(abs_top_srcdir) to each script and having each of them
2767         duplicate the work of setting PATH, set PATH here, using
2768         the new variable, abs_aux_dir instead.
2769         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2770         * tests/test-vc-list-files-git.sh: Likewise.
2771         Reported by Bruno Haible.
2772
2773 2008-05-01  Bruno Haible  <bruno@clisp.org>
2774
2775         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2776         reallocation. Rename 'done' to 'found_delimiter'.
2777
2778 2008-05-01  Jim Meyering  <meyering@redhat.com>
2779
2780         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2781         * build-aux/vc-list-files: Use `...`, not $(...).
2782
2783 2008-04-30  Jim Meyering  <meyering@redhat.com>
2784
2785         add tests for vc-list-files
2786         * modules/vc-list-files-tests: New module.
2787         * tests/test-vc-list-files-cvs.sh: New file.
2788         * tests/test-vc-list-files-git.sh: New file.
2789
2790         avoid a warning from gcc
2791         * lib/getndelim2.c (IF_LINT): Define.
2792         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2793
2794         vc-list-files: work properly with build-aux/cvsu, too
2795         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2796         to all cvs-based clauses.
2797
2798         vc-list-files: work properly in the CVS+awk case, too
2799         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2800
2801         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2802         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2803         take more than one file argument, so .  Add quotes, just in case $dir
2804         ever contains a shell meta-character.  Prompted by Soren Hansen in
2805         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2806
2807 2008-04-29  Eric Blake  <ebb9@byu.net>
2808
2809         Optimize getndelim2 to use block operations when possible.
2810         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2811         freadseek, and memchr2.
2812         * lib/getndelim2.c (getndelim2): Use them for block reads.
2813
2814 2008-04-29  Bruno Haible  <bruno@clisp.org>
2815
2816         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2818         * modules/inet_ntop (Depends-on): Add extensions.
2819         * modules/inet_pton (Depends-on): Likewise.
2820         Reported by Simon Josefsson.
2821
2822 2008-04-29  Jim Meyering  <meyering@redhat.com>
2823
2824         When the is more than one match in a block, match all of them.
2825         * build-aux/useless-if-before-free: Iterate through each block
2826         until there are no more matches.
2827
2828         Fix broken useless-if-before-free script.
2829         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2830         the expression to match cast of argument to free-like function.
2831
2832 2008-04-29  Eric Blake  <ebb9@byu.net>
2833
2834         Use new header.
2835         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2836
2837 2008-04-29  Jim Meyering  <meyering@redhat.com>
2838
2839         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2840         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2841         by gnulib to exist and to declare e.g., inet_ntop.
2842         Don't include "inet_ntop.h", now removed.
2843
2844         * m4/arpa_inet_h.m4: Remove trailing blanks.
2845
2846 2008-04-29  Eric Blake  <ebb9@byu.net>
2847
2848         Silence valgrind on safe reads beyond potential array bounds.
2849         * lib/rawmemchr.valgrind: New file.
2850         * lib/strchrnul.valgrind: Likewise.
2851         * modules/rawmemchr (Files): Distribute new file.
2852         * modules/strchrnul (Files): Likewise.
2853         Suggested by Bruno Haible.
2854
2855 2008-04-29  Bruno Haible  <bruno@clisp.org>
2856
2857         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2858         (inet_ntop, inet_pton): Change portability warning's wording.
2859         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2860         Invoke gl_CHECK_NEXT_HEADERS.
2861         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2862         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2863         set ARPA_INET_H.
2864         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2865         * modules/arpa_inet (Description): No longer only for systems that
2866         lack it.
2867         (Depends-on): Add include_next.
2868         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2869         HAVE_ARPA_INET_H.
2870
2871 2008-04-29  Jim Meyering  <meyering@redhat.com>
2872
2873         * modules/mkdir (License): Re-license as LGPLv2+.
2874
2875 2008-04-29  Bruno Haible  <bruno@clisp.org>
2876
2877         * modules/rawmemchr (Maintainer): Set to Eric.
2878         * modules/strchrnul (Maintainer): Likewise.
2879
2880 2008-04-29  Simon Josefsson  <simon@josefsson.org>
2881
2882         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2883         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2884
2885         * modules/arpa_inet (arpa/inet.h): Use them.
2886
2887 2008-04-28  Eric Blake  <ebb9@byu.net>
2888
2889         Test getndelim2.
2890         * modules/getndelim2-tests: New file.
2891         * tests/test-getndelim2.c: Likewise.
2892         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
2893         stream.
2894         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2895
2896         * MODULES.html.sh: Document new module.
2897
2898 2008-04-20  Bruno Haible  <bruno@clisp.org>
2899
2900         * lib/c-stack.c (die): Use raise.
2901         * modules/c-stack (Depends-on): Add raise.
2902
2903 2008-04-28  Bruno Haible  <bruno@clisp.org>
2904
2905         Expect rpmatch to be declared.
2906         * lib/yesno.c (rpmatch): Remove declaration.
2907
2908         Declare rpmatch.
2909         * lib/stdlib.in.h (rpmatch): New declaration.
2910         * lib/rpmatch.c: Include <stdlib.h> first.
2911         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2912         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2914         HAVE_RPMATCH.
2915         * modules/rpmatch (Depends-on): Add stdlib, extensions.
2916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2917         (Include): Set to <stdlib.h>.
2918         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2919         HAVE_RPMATCH.
2920         * NEWS: Document the change.
2921
2922 2008-04-28  Bruno Haible  <bruno@clisp.org>
2923
2924         Change rpmatch to use nl_langinfo when appropriate.
2925         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2926         (N_): New macro.
2927         (localized_pattern): New function/macro.
2928         (try): Remove match, nomatch arguments. Copy the pattern into safe
2929         memory before caching it.
2930         (rpmatch): Use localized_pattern. Add translator comments.
2931         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2932         Suggested by Eric Blake.
2933         * modules/rpmatch (Depends-on): Add stdbool.
2934
2935 2008-04-28  Eric Blake  <ebb9@byu.net>
2936
2937         Add rawmemchr module, matching glibc.
2938         * modules/string (Makefile.am): New indicator.
2939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2940         * lib/string.in.h (rawmemchr): Declare when appropriate.
2941         * modules/rawmemchr: New file.
2942         * m4/rawmemchr.m4: Likewise.
2943         * lib/rawmemchr.c: Likewise.
2944         * modules/rawmemchr-tests: Likewise.
2945         * tests/test-rawmemchr.c: Likewise.
2946         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2947         module.
2948         * modules/strchrnul (Depends-on): Add rawmemchr.
2949         * lib/strchrnul.c (strchrnul): Optimize a corner case.
2950
2951         Whitespace cleanup.
2952         * tests/test-strchrnul.c: Reindent.
2953         * lib/strchrnul.c: Likewise.
2954
2955         Optimize and test strchrnul.
2956         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2957         * modules/strchrnul-tests: New file.
2958         * tests/test-strchrnul.c: Likewise.
2959
2960         Remove intprops dependency.
2961         * modules/memchr (Depends-on): Remove intprops.
2962         * modules/memrchr (Depends-on): Likewise.
2963         * modules/memchr2 (Depends-on): Likewise.
2964         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2965         * lib/memrchr.c (__memrchr): Likewise.
2966         * lib/memrchr2.c (memchr2): Likewise.
2967         Reported by Simon Josefsson.
2968
2969 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2970
2971         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2972         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2973
2974 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2975
2976         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2977
2978         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2979
2980         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2981
2982         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2983         declarations.
2984         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2985
2986         * m4/inet_pton.m4: Don't check for header files.
2987
2988         * m4/inet_ntop.m4: Don't check for header files.
2989
2990 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2991
2992         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2993         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2994         trigger for cygwin).
2995         Reported by Bruno Haible  <bruno@clisp.org>.
2996
2997 2008-04-28  Bruno Haible  <bruno@clisp.org>
2998
2999         * doc/posix-functions/strdup.texi: Mention mingw problem.
3000
3001 2008-04-27  Bruno Haible  <bruno@clisp.org>
3002
3003         * modules/stat-time-tests (Depends-on): Add sleep.
3004         * tests/test-stat-time.c (force_unlink): New function.
3005         (cleanup): Use it.
3006         (test_mtime): Remove the ctime related tests.
3007         (test_ctime): New function, containing the ctime related tests.
3008         (main): Call test_ctime, except on native Windows platforms.
3009
3010 2008-04-27  Bruno Haible  <bruno@clisp.org>
3011
3012         * lib/rpmatch.c (rpmatch): Add some comments.
3013         Reported by James Youngman <jay@gnu.org>.
3014
3015 2008-04-27  Bruno Haible  <bruno@clisp.org>
3016
3017         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3018         quiet NaNs.
3019
3020 2008-04-27  Bruno Haible  <bruno@clisp.org>
3021
3022         Make test-yesno.sh work on mingw.
3023         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3024         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3025         (main): Set stdin to binary mode.
3026         * modules/yesno-tests (Depends-on): Add binary-io.
3027
3028 2008-04-27  Bruno Haible  <bruno@clisp.org>
3029
3030         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3031         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3032         argument that lie outside the IEEE 854 domain.
3033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3034         (gl_ISFINITE): Use it.
3035         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3036
3037 2008-04-27  Bruno Haible  <bruno@clisp.org>
3038
3039         Allow local renaming in config.h.
3040         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3041
3042 2008-04-27  Bruno Haible  <bruno@clisp.org>
3043
3044         * lib/memchr.c (__memchr): Change type of 'i'.
3045         * lib/memchr2.c (memchr2): Likewise.
3046
3047 2008-04-26  Eric Blake  <ebb9@byu.net>
3048         and Bruno Haible  <bruno@clisp.org>
3049
3050         Optimize and test memrchr.
3051         * modules/memrchr (Depends-on): Add intprops.
3052         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3053         * modules/memrchr-tests: New file.
3054         * tests/test-memrchr.c: New file.
3055
3056 2008-04-26  Bruno Haible  <bruno@clisp.org>
3057
3058         Add tentative support for DragonFly BSD.
3059         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3060         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3061         fp.
3062         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3063         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3064         * lib/fpurge.c (fpurge): Likewise.
3065         * lib/freadable.c (freaadable): Likewise.
3066         * lib/freadahead.c (freadahead): Likewise.
3067         * lib/freading.c (freading): Likewise.
3068         * lib/freadptr.c (freadptr): Likewise.
3069         * lib/freadseek.c (freadptrinc): Likewise.
3070         * lib/fseeko.c (fseeko): Likewise.
3071         * lib/fseterr.c (fseterr): Likewise.
3072         * lib/fwritable.c (fwritable): Likewise.
3073         * lib/fwriting.c (fwriting): Likewise.
3074
3075 2008-04-26  Bruno Haible  <bruno@clisp.org>
3076
3077         * lib/stdio-impl.h: New file.
3078         * lib/fbufmode.c: Include stdio-impl.h.
3079         (fbufmode): Use fp_, remove redundant #defines.
3080         * lib/fflush.c: Include stdio-impl.h.
3081         (clear_ungetc_buffer): Remove redundant #defines.
3082         * lib/fpurge.c: Include stdio-impl.h.
3083         (fpurge): Remove redundant #defines.
3084         * lib/freadable.c: Include stdio-impl.h.
3085         (freadable): Remove redundant #defines.
3086         * lib/freadahead.c: Include stdio-impl.h.
3087         (freadahead): Remove redundant #defines.
3088         * lib/freading.c: Include stdio-impl.h.
3089         (freading): Remove redundant #defines.
3090         * lib/freadptr.c: Include stdio-impl.h.
3091         (freadptr): Remove redundant #defines.
3092         * lib/freadseek.c: Include stdio-impl.h.
3093         (freadptrinc): Remove redundant #defines.
3094         * lib/fseeko.c: Include stdio-impl.h.
3095         (rpl_fseeko): Remove redundant #defines.
3096         * lib/fseterr.c: Include stdio-impl.h.
3097         (fseterr): Remove redundant #defines.
3098         * lib/fwritable.c: Include stdio-impl.h.
3099         (fwritable: Remove redundant #defines.
3100         * lib/fwriting.c: Include stdio-impl.h.
3101         (fwriting): Remove redundant #defines.
3102         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3103         * modules/fflush (Files): Likewise.
3104         * modules/fpurge (Files): Likewise.
3105         * modules/freadable (Files): Likewise.
3106         * modules/freadahead (Files): Likewise.
3107         * modules/freading (Files): Likewise.
3108         * modules/freadptr (Files): Likewise.
3109         * modules/freadseek (Files): Likewise.
3110         * modules/fseeko (Files): Likewise.
3111         * modules/fseterr (Files): Likewise.
3112         * modules/fwritable (Files): Likewise.
3113         * modules/fwriting (Files): Likewise.
3114
3115 2008-04-26  Bruno Haible  <bruno@clisp.org>
3116
3117         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3118         restore_seek_optimization, update_fpos_cache): New functions, extracted
3119         from rpl_fflush.
3120         (rpl_fflush): Use them.
3121         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3122         (gl_REPLACE_FFLUSH): Use it.
3123
3124 2008-04-26  Bruno Haible  <bruno@clisp.org>
3125
3126         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3127         on Solaris.
3128         * tests/test-xstrtoimax.sh: Likewise.
3129         * tests/test-xstrtoumax.sh: Likewise.
3130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3131
3132 2008-04-26  Bruno Haible  <bruno@clisp.org>
3133
3134         * modules/memchr-tests: New file.
3135         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3136
3137 2008-04-26  Eric Blake  <ebb9@byu.net>
3138             Bruno Haible  <bruno@clisp.org>
3139
3140         * lib/memchr.c: Include intprops.h.
3141         (__memchr): Optimize parallel detection of matching bytes. Rename local
3142         variables. Add explanatory comments.
3143
3144 2008-04-26  Bruno Haible  <bruno@clisp.org>
3145
3146         Fix module 'memchr', broken since 2000-10-28.
3147         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3148
3149 2008-04-26  Bruno Haible  <bruno@clisp.org>
3150
3151         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3152         comments.
3153
3154 2008-04-25  Eric Blake  <ebb9@byu.net>
3155
3156         Use native fstatat on cygwin 1.7.0.
3157         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3158         first.
3159
3160 2008-04-23  Eric Blake  <ebb9@byu.net>
3161
3162         Improve memchr2 performance.
3163         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3164         NUL bytes.
3165         * modules/memchr2 (Depends-on): Use intprops.h.
3166
3167 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3168
3169         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3170         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3171         <blp@cs.stanford.edu>.
3172
3173 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3174
3175         * lib/arpa_inet.in.h: New file.
3176
3177         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3178         (Makefile.am): Sed in substitute header file.
3179
3180         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3181         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3182
3183         * modules/inet_ntop (configure.ac): Use
3184         gl_ARPA_INET_MODULE_INDICATOR.
3185
3186         * modules/inet_pton (configure.ac): Use
3187         gl_ARPA_INET_MODULE_INDICATOR.
3188
3189 2008-04-22  Jim Meyering  <meyering@redhat.com>
3190
3191         * modules/verify (License): Re-license as LGPLv2+.
3192
3193 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3194
3195         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3196         parameter to void* as per POSIX standard (MinGW uses char*).
3197
3198 2008-04-21  Bruno Haible  <bruno@clisp.org>
3199
3200         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3201         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3202         Define to replacements if REPLACE_ISWCNTRL is 1.
3203         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3204         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3205         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3206         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3207         what it fixes.
3208         * doc/posix-functions/iswalpha.texi: Likewise.
3209         * doc/posix-functions/iswblank.texi: Likewise.
3210         * doc/posix-functions/iswcntrl.texi: Likewise.
3211         * doc/posix-functions/iswdigit.texi: Likewise.
3212         * doc/posix-functions/iswgraph.texi: Likewise.
3213         * doc/posix-functions/iswlower.texi: Likewise.
3214         * doc/posix-functions/iswprint.texi: Likewise.
3215         * doc/posix-functions/iswpunct.texi: Likewise.
3216         * doc/posix-functions/iswspace.texi: Likewise.
3217         * doc/posix-functions/iswupper.texi: Likewise.
3218         * doc/posix-functions/iswxdigit.texi: Likewise.
3219         Reported by Alain Guibert.
3220
3221 2008-04-21  Bruno Haible  <bruno@clisp.org>
3222
3223         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3224         Patch by Alain Guibert.
3225
3226 2008-04-21  Bruno Haible  <bruno@clisp.org>
3227
3228         Fix test failures on mingw.
3229         * tests/test-xstrtol.c (print_no_progname): New function.
3230         (main): Install it in error_print_progname hook.
3231         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3232         * tests/test-xstrtoimax.sh: Likewise.
3233         * tests/test-xstrtoumax.sh: Likewise.
3234
3235 2008-04-21  Bruno Haible  <bruno@clisp.org>
3236
3237         Fix test failure on mingw.
3238         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3239
3240 2008-04-21  Bruno Haible  <bruno@clisp.org>
3241
3242         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3243         Actually assign a value.
3244
3245 2008-04-20  Bruno Haible  <bruno@clisp.org>
3246
3247         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3248         take 2.
3249         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3250         'canonicalize-lgpl' module is also used.
3251         * lib/canonicalize-lgpl.c: Undo last change.
3252         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3253
3254 2008-04-20  Bruno Haible  <bruno@clisp.org>
3255
3256         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3257         config.h. Provide _mkdir based fallback for mingw.
3258         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3259         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3260         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3261         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3262         rather than defining mkdir in config.h.
3263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3264         (gl_SYS_STAT_H_DEFAULTS): New macro.
3265         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3266         HAVE_IO_H any more.
3267         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3268         HAVE_DECL_MKDIR and HAVE_IO_H.
3269
3270 2008-04-20  Bruno Haible  <bruno@clisp.org>
3271
3272         * lib/isapipe.c: Port to native Windows platforms.
3273
3274 2008-04-20  Bruno Haible  <bruno@clisp.org>
3275
3276         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3277
3278 2008-04-21  Eric Blake  <ebb9@byu.net>
3279
3280         Work around preprocessors that don't handle UINTMAX_MAX.
3281         * lib/memchr2.c (memchr2): Avoid embedded #if.
3282         Reported by Alain Guibert, fix suggested by Bruno Haible.
3283
3284 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3285
3286         * doc/posix-functions/strftime.texi (strftime): Explain better
3287         Windows incompatibility.  Suggested by Micah Cowan
3288         <micah@cowan.name>.
3289
3290 2008-04-20  Bruno Haible  <bruno@clisp.org>
3291
3292         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3293         unistr/u8-mblen.
3294
3295 2008-04-20  Bruno Haible  <bruno@clisp.org>
3296
3297         Fix test failure on platforms with non-GNU iconv.
3298         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3299         (U_TO_U8): Use it, rather than u16_to_u8.
3300         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3301         units at the end of the input string.
3302         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3303
3304 2008-04-20  Bruno Haible  <bruno@clisp.org>
3305
3306         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3307         when the resulting length is 0.
3308         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3309
3310 2008-04-20  Bruno Haible  <bruno@clisp.org>
3311
3312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3313         works.
3314         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3315
3316 2008-04-20  Bruno Haible  <bruno@clisp.org>
3317
3318         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3319         * modules/tsearch-tests (configure.ac): Test for initstate function.
3320
3321 2008-04-20  Bruno Haible  <bruno@clisp.org>
3322
3323         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3324         for nlink_t if missing.
3325         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3326
3327 2008-04-19  Bruno Haible  <bruno@clisp.org>
3328
3329         Work around snprintf bug on Linux libc5.
3330         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3332         gl_SNPRINTF_SIZE1.
3333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3334         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3335         that test failed.
3336         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3337         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3338         * modules/snprintf (Files): Add m4/printf.m4.
3339         * modules/vsnprintf (Files): Likewise.
3340         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3341         * doc/posix-functions/vsnprintf.texi: Likewise.
3342
3343 2008-04-19  Bruno Haible  <bruno@clisp.org>
3344
3345         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3346         from 0.0058 to less than 10^-7.
3347
3348 2008-04-19  Bruno Haible  <bruno@clisp.org>
3349
3350         Fix rounding when a precision is given.
3351         * lib/vasnprintf.c (is_borderline): New function.
3352         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3353         9...9x.
3354         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3355         %e, %g.
3356         * tests/test-vasprintf-posix.c (test_function): Likewise.
3357         * tests/test-snprintf-posix.h (test_function): Likewise.
3358         * tests/test-sprintf-posix.h (test_function): Likewise.
3359         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3360         * tests/test-printf-posix.h (test_function): Likewise.
3361         * tests/test-printf-posix.output: Update.
3362         Reported by John Darrington <john@darrington.wattle.id.au> via
3363         Ben Pfaff <blp@cs.stanford.edu>.
3364
3365 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3366
3367         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3368         Suggested by Bruno Haible <bruno@clisp.org>.
3369
3370 2008-04-17  Bruno Haible  <bruno@clisp.org>
3371
3372         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3373         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3374         implementation.
3375         Patch by Bruce Merry <bmerry@gmail.com>.
3376
3377 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3378
3379         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3380         doesn't work under Windows.
3381
3382 2008-04-16  Bruno Haible  <bruno@clisp.org>
3383
3384         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3385         New macros.
3386         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3387         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3388         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3389         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3390         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3391         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3392         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3393         macros.
3394         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3395         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3396         Northern Sotho, Uighur.
3397
3398 2008-04-16  Bruno Haible  <bruno@clisp.org>
3399
3400         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3401         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3402         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3403         Reported by Daniel Bergström <daniel@octocode.com>.
3404
3405 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3406             Bruno Haible  <bruno@clisp.org>
3407
3408         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3409         function.
3410         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3411         New functions, mostly extracted from gl_locale_name_default.
3412         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3413
3414 2008-04-16  Eric Blake  <ebb9@byu.net>
3415
3416         Adjust strtod detection to catch glibc 2.7 bug.
3417         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3418         Reported by John Gatewood Ham.
3419
3420 2008-04-16  Bruno Haible  <bruno@clisp.org>
3421
3422         Add tentative support for Linux libc5.
3423         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3424         * lib/fpurge.c (fpurge): Likewise.
3425         * lib/freadable.c (freadable): Likewise.
3426         * lib/freadahead.c (freadahead): Likewise.
3427         * lib/freading.c (freading): Likewise.
3428         * lib/freadptr.c (freadptr): Likewise.
3429         * lib/freadseek.c (freadptrinc): Likewise.
3430         * lib/fseeko.c (rpl_fseeko): Likewise.
3431         * lib/fseterr.c (fseterr): Likewise.
3432         * lib/fwritable.c (fwritable): Likewise.
3433         * lib/fwriting.c (fwriting): Likewise.
3434         Reported by Alain Guibert <alguibert+bts@free.fr>.
3435
3436 2008-04-15  Bruno Haible  <bruno@clisp.org>
3437
3438         * modules/mathl (configure.ac): Define module indicator.
3439
3440 2008-04-15  Bruno Haible  <bruno@clisp.org>
3441
3442         * lib/logl.c (logl): Remove unused variables.
3443
3444 2008-04-15  Bruno Haible  <bruno@clisp.org>
3445
3446         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3447         fails.
3448
3449 2008-04-15  Bruno Haible  <bruno@clisp.org>
3450
3451         * lib/trim.c (trim2): Fix argument of isspace() macro.
3452
3453 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3454
3455         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3456         to 0.
3457         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3458
3459 2008-04-14  Bruno Haible  <bruno@clisp.org>
3460
3461         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3462         AC_LANG_PROGRAM argument.
3463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3464         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3466         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3467         * m4/math_h.m4 (gl_MATH_H): Likewise.
3468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3469         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3470         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3471         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3472         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3473         * m4/regex.m4 (gl_REGEX): Likewise.
3474         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3475         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3477         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3478         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3480         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3482
3483 2008-04-14  Jim Meyering  <meyering@redhat.com>
3484
3485         test-strtod: fix typos: s/abs/fabs/
3486         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3487
3488 2008-04-13  Bruno Haible  <bruno@clisp.org>
3489
3490         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3491         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3492         module is also used and while not building the reloc-wrapper.
3493
3494 2008-04-13  Bruno Haible  <bruno@clisp.org>
3495
3496         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3497
3498 2008-04-13  Bruno Haible  <bruno@clisp.org>
3499
3500         Fix AIX compilation failure introduced on 2008-04-02.
3501         * tests/test-frexp.c (exp): Undefine before redefining.
3502         * tests/test-frexpl.c (exp): Likewise.
3503
3504 2008-04-13  Bruno Haible  <bruno@clisp.org>
3505
3506         Work around a HP-UX stdio bug.
3507         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3508         * tests/test-ftello.c (main): Likewise.
3509         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3510         * doc/posix-functions/ftello.texi: Likewise.
3511
3512 2008-04-13  Bruno Haible  <bruno@clisp.org>
3513
3514         Make test-signbit pass on HP-UX/hppa.
3515         * tests/test-signbit.c (minus_zerol): New variable.
3516         (test_signbitl): Use it.
3517
3518 2008-04-13  Bruno Haible  <bruno@clisp.org>
3519
3520         Make truncl work on OSF/1 4.0.
3521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3522         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3523         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3525         HAVE_DECL_TRUNCL.
3526         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3527         HAVE_DECL_TRUNCL.
3528         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3529
3530 2008-04-13  Bruno Haible  <bruno@clisp.org>
3531
3532         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3533
3534 2008-04-13  Bruno Haible  <bruno@clisp.org>
3535
3536         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3537         expression, so as to avoid HP-UX 11 cc compiler bug.
3538
3539 2008-04-13  Bruno Haible  <bruno@clisp.org>
3540
3541         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3542
3543 2008-04-13  Bruno Haible  <bruno@clisp.org>
3544
3545         * lib/git-merge-changelog.c: Remove empty declaration outside of
3546         functions.
3547
3548 2008-04-13  Bruno Haible  <bruno@clisp.org>
3549
3550         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3551
3552 2008-04-13  Bruno Haible  <bruno@clisp.org>
3553
3554         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3555         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3557         also if it exists but lacks definitions of the SHUT_* macros.
3558         * modules/sys_socket (Description): Update.
3559         Reported by Elbert Pol <e.pol@chello.nl>.
3560
3561 2008-04-13  Bruno Haible  <bruno@clisp.org>
3562
3563         * lib/localcharset.c (OS2): Don't redefine if already defined.
3564         Reported by Elbert Pol <e.pol@chello.nl>.
3565
3566 2008-04-13  Bruno Haible  <bruno@clisp.org>
3567
3568         * lib/binary-io.h [__EMX__]: Include <io.h>.
3569         Reported by Elbert Pol <e.pol@chello.nl>.
3570
3571 2008-04-12  Bruno Haible  <bruno@clisp.org>
3572
3573         * lib/fpucw.h: Enable the definitions also for x86_64.
3574         Needed for NetBSD/x86_64.
3575         Reported by Thomas Klausner <tk@giga.or.at>.
3576
3577 2008-04-12  Bruno Haible  <bruno@clisp.org>
3578
3579         * tests/test-strtod.c: Include isnand.h.
3580         (main): Use isnand instead of isnan.
3581         Reported by Jim Meyering.
3582
3583 2008-04-12  Bruno Haible  <bruno@clisp.org>
3584
3585         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3586         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3587
3588 2008-04-12  Jim Meyering  <meyering@redhat.com>
3589
3590         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3591
3592 2008-04-12  Bruno Haible  <bruno@clisp.org>
3593
3594         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3595         Reported by Elbert Pol <e.pol@chello.nl>.
3596
3597 2008-04-12  Eric Blake  <ebb9@byu.net>
3598
3599         Work around Solaris 10 math.h bug.
3600         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3601         (gl_MATH_H_DEFAULTS): Set up default.
3602         * modules/math (Makefile.am): Replace new indicators.
3603         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3604         * tests/test-math.c (main): Test this.
3605         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3606         * doc/posix-headers/math.texi (math.h): Mention bug.
3607         Reported by Nelson H. F. Beebe and Jim Meyering.
3608
3609 2008-04-11  Bruno Haible  <bruno@clisp.org>
3610
3611         Adapt to future versions of Apple GCC.
3612         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3613         Reported by Peter O'Gorman <peter@pogma.com>.
3614
3615 2008-04-11  Bruno Haible  <bruno@clisp.org>
3616
3617         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3618
3619 2008-04-11  Bruno Haible  <bruno@clisp.org>
3620
3621         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3622
3623         * modules/getaddrinfo-tests (Makefile.am): Define
3624         test_getaddrinfo_LDADD.
3625
3626 2008-04-11  Bruno Haible  <bruno@clisp.org>
3627
3628         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3629         (init): Fix syntax error.
3630         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3631         is declared.
3632
3633 2008-04-11  Bruno Haible  <bruno@clisp.org>
3634
3635         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3636         * modules/glob (Depends-on): Add stdbool.
3637
3638 2008-04-11  Bruno Haible  <bruno@clisp.org>
3639
3640         * lib/trim.c: Include <string.h>.
3641
3642 2008-04-11  Eric Blake  <ebb9@byu.net>
3643
3644         Avoid compile failure on OS/2.
3645         * lib/regex_internal.h (internal_function): Disable optimization
3646         on OS/2 (__EMX__), where it caused compiler error.
3647         Reported by Elbert Pol.
3648
3649 2008-04-11  Bruno Haible  <bruno@clisp.org>
3650
3651         Flush the standard error stream before aborting. Needed on mingw.
3652         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3653         * tests/test-array_list.c (ASSERT): Likewise.
3654         * tests/test-array_oset.c (ASSERT): Likewise.
3655         * tests/test-avltree_list.c (ASSERT): Likewise.
3656         * tests/test-avltree_oset.c (ASSERT): Likewise.
3657         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3658         * tests/test-binary-io.c (ASSERT): Likewise.
3659         * tests/test-byteswap.c (ASSERT): Likewise.
3660         * tests/test-c-ctype.c (ASSERT): Likewise.
3661         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3662         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3663         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3664         * tests/test-c-strstr.c (ASSERT): Likewise.
3665         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3666         * tests/test-canonicalize.c (ASSERT): Likewise.
3667         * tests/test-carray_list.c (ASSERT): Likewise.
3668         * tests/test-ceilf1.c (ASSERT): Likewise.
3669         * tests/test-ceilf2.c (ASSERT): Likewise.
3670         * tests/test-ceill.c (ASSERT): Likewise.
3671         * tests/test-count-one-bits.c (ASSERT): Likewise.
3672         * tests/test-fbufmode.c (ASSERT): Likewise.
3673         * tests/test-fflush2.c (ASSERT): Likewise.
3674         * tests/test-floorf1.c (ASSERT): Likewise.
3675         * tests/test-floorf2.c (ASSERT): Likewise.
3676         * tests/test-floorl.c (ASSERT): Likewise.
3677         * tests/test-fopen.c (ASSERT): Likewise.
3678         * tests/test-fpending.c (ASSERT): Likewise.
3679         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3680         * tests/test-fpurge.c (ASSERT): Likewise.
3681         * tests/test-freadable.c (ASSERT): Likewise.
3682         * tests/test-freadahead.c (ASSERT): Likewise.
3683         * tests/test-freading.c (ASSERT): Likewise.
3684         * tests/test-freadptr.c (ASSERT): Likewise.
3685         * tests/test-freadptr2.c (ASSERT): Likewise.
3686         * tests/test-freadseek.c (ASSERT): Likewise.
3687         * tests/test-freopen.c (ASSERT): Likewise.
3688         * tests/test-frexp.c (ASSERT): Likewise.
3689         * tests/test-frexpl.c (ASSERT): Likewise.
3690         * tests/test-fseek.c (ASSERT): Likewise.
3691         * tests/test-fseeko.c (ASSERT): Likewise.
3692         * tests/test-fstrcmp.c (ASSERT): Likewise.
3693         * tests/test-ftell.c (ASSERT): Likewise.
3694         * tests/test-ftello.c (ASSERT): Likewise.
3695         * tests/test-func.c (ASSERT): Likewise.
3696         * tests/test-fwritable.c (ASSERT): Likewise.
3697         * tests/test-fwriting.c (ASSERT): Likewise.
3698         * tests/test-getdelim.c (ASSERT): Likewise.
3699         * tests/test-getline.c (ASSERT): Likewise.
3700         * tests/test-i-ring.c (ASSERT): Likewise.
3701         * tests/test-iconv-utf.c (ASSERT): Likewise.
3702         * tests/test-iconv.c (ASSERT): Likewise.
3703         * tests/test-isfinite.c (ASSERT): Likewise.
3704         * tests/test-isnand.c (ASSERT): Likewise.
3705         * tests/test-isnanf.c (ASSERT): Likewise.
3706         * tests/test-isnanl.h (ASSERT): Likewise.
3707         * tests/test-ldexpl.c (ASSERT): Likewise.
3708         * tests/test-linked_list.c (ASSERT): Likewise.
3709         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3710         * tests/test-localename.c (ASSERT): Likewise.
3711         * tests/test-lseek.c (ASSERT): Likewise.
3712         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3713         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3714         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3715         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3716         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3717         * tests/test-mbschr.c (ASSERT): Likewise.
3718         * tests/test-mbscspn.c (ASSERT): Likewise.
3719         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3720         * tests/test-mbspbrk.c (ASSERT): Likewise.
3721         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3722         * tests/test-mbsrchr.c (ASSERT): Likewise.
3723         * tests/test-mbsspn.c (ASSERT): Likewise.
3724         * tests/test-mbsstr1.c (ASSERT): Likewise.
3725         * tests/test-mbsstr2.c (ASSERT): Likewise.
3726         * tests/test-mbsstr3.c (ASSERT): Likewise.
3727         * tests/test-memchr2.c (ASSERT): Likewise.
3728         * tests/test-memmem.c (ASSERT): Likewise.
3729         * tests/test-open.c (ASSERT): Likewise.
3730         * tests/test-printf-frexp.c (ASSERT): Likewise.
3731         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3732         * tests/test-printf-posix.c (ASSERT): Likewise.
3733         * tests/test-quotearg.c (ASSERT): Likewise.
3734         * tests/test-rbtree_list.c (ASSERT): Likewise.
3735         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3736         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3737         * tests/test-round1.c (ASSERT): Likewise.
3738         * tests/test-roundf1.c (ASSERT): Likewise.
3739         * tests/test-roundl.c (ASSERT): Likewise.
3740         * tests/test-signbit.c (ASSERT): Likewise.
3741         * tests/test-sleep.c (ASSERT): Likewise.
3742         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3743         * tests/test-snprintf.c (ASSERT): Likewise.
3744         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3745         * tests/test-stat-time.c (ASSERT): Likewise.
3746         * tests/test-strcasestr.c (ASSERT): Likewise.
3747         * tests/test-strerror.c (ASSERT): Likewise.
3748         * tests/test-striconv.c (ASSERT): Likewise.
3749         * tests/test-striconveh.c (ASSERT): Likewise.
3750         * tests/test-striconveha.c (ASSERT): Likewise.
3751         * tests/test-strsignal.c (ASSERT): Likewise.
3752         * tests/test-strstr.c (ASSERT): Likewise.
3753         * tests/test-strtod.c (ASSERT): Likewise.
3754         * tests/test-trunc1.c (ASSERT): Likewise.
3755         * tests/test-trunc2.c (ASSERT): Likewise.
3756         * tests/test-truncf1.c (ASSERT): Likewise.
3757         * tests/test-truncf2.c (ASSERT): Likewise.
3758         * tests/test-truncl.c (ASSERT): Likewise.
3759         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3760         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3761         * tests/test-vasnprintf.c (ASSERT): Likewise.
3762         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3763         * tests/test-vasprintf.c (ASSERT): Likewise.
3764         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3765         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3766         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3767         * tests/test-vsnprintf.c (ASSERT): Likewise.
3768         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3769         * tests/test-wcwidth.c (ASSERT): Likewise.
3770         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3771         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3772         * tests/test-xvasprintf.c (ASSERT): Likewise.
3773         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3774         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3775         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3776         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3777         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3778         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3779         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3780         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3781         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3782         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3783         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3784         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3785         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3786         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3787         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3788         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3789         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3790         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3791         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3792         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3793         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3794         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3795         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3796         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3797         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3798         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3799         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3800         * tests/unictype/test-combining.c (ASSERT): Likewise.
3801         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3802         * tests/unictype/test-digit.c (ASSERT): Likewise.
3803         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3804         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3805         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3806         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3807         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3808         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3809         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3810         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3811         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3812         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3813         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3814         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3815         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3816         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3817         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3818         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3819         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3820         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3821         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3822         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3823         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3824         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3825         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3826         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3827         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3828         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3829         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3830         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3831         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3832         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3833         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3834         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3835         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3836         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3837         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3838         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3839         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3840         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3841         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3842         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3843         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3844         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3845         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3846         Reported by Eric Blake.
3847
3848 2008-04-11  Bruno Haible  <bruno@clisp.org>
3849
3850         * lib/wchar.in.h: Tweak comment.
3851
3852 2008-04-11  Bruno Haible  <bruno@clisp.org>
3853
3854         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3855         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3856         gl_COMMON.
3857         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3858
3859 2008-04-11  Bruno Haible  <bruno@clisp.org>
3860
3861         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3862
3863 2008-04-11  Simon Josefsson  <simon@josefsson.org>
3864
3865         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3866         of attempting to use non-existing /dev/*random.  Based on patch
3867         from Adam Strzelecki <ono@java.pl> in
3868         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3869
3870 2008-04-08  Bruno Haible  <bruno@clisp.org>
3871
3872         Add tentative support for emx+gcc.
3873         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3874         * lib/fpurge.c (fpurge): Likewise.
3875         * lib/freadable.c (freadable): Likewise.
3876         * lib/freadahead.c (freadahead): Likewise.
3877         * lib/freading.c (freading): Likewise.
3878         * lib/freadptr.c (freadptr): Likewise.
3879         * lib/freadseek.c (freadptrinc): Likewise.
3880         * lib/fseeko.c (rpl_fseeko): Likewise.
3881         * lib/fseterr.c (fseterr): Likewise.
3882         * lib/fwritable.c (fwritable): Likewise.
3883         * lib/fwriting.c (fwriting): Likewise.
3884         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3885
3886 2008-04-09  Eric Blake  <ebb9@byu.net>
3887
3888         Avoid some autoconf warnings.
3889         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3890         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3891         * m4/afs.m4 (gl_AFS): Likewise.
3892         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3893         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3894         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3895         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3896         (gl_INTEGER_TYPE_SUFFIX): Likewise.
3897         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3898         (AC_CHECK_DECLS_ONCE): Likewise.
3899         Rename file...
3900         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3901         gnulib-tool requires autoconf 2.59 or better.
3902         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3903
3904 2008-04-08  Eric Blake  <ebb9@byu.net>
3905
3906         Use 'git describe --match' if present (added in git 1.5.5).
3907         * build-aux/git-version-gen: Limit result to tags that match 'v*'
3908         if possible.
3909
3910 2008-04-08  Bruno Haible  <bruno@clisp.org>
3911
3912         Add tentative support for OpenServer.
3913         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3914         _ptr, _cnt.
3915         * lib/fpurge.c (fpurge): Likewise.
3916         * lib/freadable.c (freadable): Likewise.
3917         * lib/freadahead.c (freadahead): Likewise.
3918         * lib/freading.c (freading): Likewise.
3919         * lib/freadptr.c (freadptr): Likewise.
3920         * lib/freadseek.c (freadptrinc): Likewise.
3921         * lib/fseeko.c (rpl_fseeko): Likewise.
3922         * lib/fseterr.c (fseterr): Likewise.
3923         * lib/fwritable.c (fwritable): Likewise.
3924         * lib/fwriting.c (fwriting): Likewise.
3925         Reported by Roger Cornelius <rac@tenzing.org> and
3926         Brian K. White <brian@aljex.com>.
3927
3928 2008-04-06  Jim Meyering  <meyering@redhat.com>
3929
3930         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3931
3932 2008-04-06  Bruno Haible  <bruno@clisp.org>
3933
3934         Avoid possible error with non-ASCII bytes in UTF-8 locales.
3935         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3936         * tests/test-printf-posix.sh: Likewise.
3937         * tests/test-vfprintf-posix.sh: Likewise.
3938         * tests/test-vprintf-posix.sh: Likewise.
3939         * tests/test-xprintf-posix.sh: Likewise.
3940
3941 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3942
3943         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3944         hide error from 'ls', needed on OS/2.
3945         Report by Elbert Pol <elbert.pol@gmail.com>.
3946
3947 2008-04-04  Eric Blake  <ebb9@byu.net>
3948
3949         Make test-fseeko.c failures meaningful.
3950         * tests/test-fseeko.c: Print line number on failure.
3951         * tests/test-fseek.c: Likewise.
3952         Reported by Nelson H. F. Beebe.
3953
3954         Improve strtod bug detection check.
3955         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3956         required for Solaris 10.
3957         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3958
3959 2008-04-04  Bruno Haible  <bruno@clisp.org>
3960
3961         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3962         by m4/setenv.m4.
3963
3964 2008-04-03  Eric Blake  <ebb9@byu.net>
3965
3966         Ensure sane .version contents.
3967         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3968         version string.
3969         * build-aux/git-version-gen: Improve documentation.
3970
3971         Make GNU make output nicer.
3972         * top/GNUmakefile [!_have-Makefile]: Add dependency on
3973         MAKECMDGOALS to enforce message for all command line targets.  Set
3974         srcdir for use in maint.mk.
3975
3976         Another maintainer tweak.
3977         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3978         a target that regenerates version.
3979
3980 2008-04-03  Jim Meyering  <meyering@redhat.com>
3981
3982         vc-list-files: don't cause coreutils "make po-check" failure
3983         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3984
3985 2008-04-03  Eric Blake  <ebb9@byu.net>
3986
3987         Allow VPATH usage of vc-list-files.
3988         * build-aux/vc-list-files (scriptversion): Add timestamp.
3989         (options): Add --help, --version, -C.
3990         (CVS): Support installed cvsu.
3991
3992 2008-04-02  Bruno Haible  <bruno@clisp.org>
3993
3994         Avoid some "statement with no effect" warnings from gcc.
3995         * tests/test-wctype.c (main): Explicitly ignore unused values.
3996         Reported by Jim Meyering.
3997
3998 2008-04-02  Jim Meyering  <meyering@redhat.com>
3999
4000         Avoid some warnings from "gcc -Wshadow".
4001         * tests/test-frexp.c (exp): Define to a different identifier.
4002         * tests/test-frexpl.c (exp): Likewise.
4003
4004 2008-04-03  Jim Meyering  <meyering@redhat.com>
4005
4006         bootstrap: remove dangling *.[ch] symlinks from lib
4007         * build-aux/bootstrap [dangling symlink removal]: Move find's
4008         -depth option to precede all others, to avoid a warning.
4009         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4010
4011 2008-04-02  Bruno Haible  <bruno@clisp.org>
4012
4013         Avoid some warnings from "gcc -Wshadow".
4014         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4015         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4016         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4017         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4018         Reported by Jim Meyering.
4019
4020 2008-04-01  Bruno Haible  <bruno@clisp.org>
4021
4022         Fix test to work on IRIX 6.5 with cc.
4023         * tests/test-math.c (numeric_equal): New function.
4024         (main): Use it.
4025
4026 2008-04-01  Bruno Haible  <bruno@clisp.org>
4027
4028         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4029
4030 2008-04-01  Bruno Haible  <bruno@clisp.org>
4031
4032         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4033         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4034         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4035         (Depends-on): Remove math.
4036
4037         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4038         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4039         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4040         (Depends-on): Remove math.
4041
4042         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4043         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4044         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4045         (Depends-on): Remove math.
4046         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4047         (Depends-on): Remove math.
4048
4049         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4050         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4051         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4052         (Depends-on): Remove math.
4053         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4054         (Depends-on): Remove math.
4055
4056         * tests/test-round1.c: Include nan.h.
4057         (main): Use NaNd instead of NAN.
4058         * modules/round-tests (Files): Add tests/nan.h.
4059
4060         * tests/test-trunc1.c: Include nan.h.
4061         (main): Use NaNd instead of NAN.
4062         * modules/trunc-tests (Files): Add tests/nan.h.
4063
4064         * tests/test-roundf1.c: Include nan.h.
4065         (main): Use NaNf instead of NAN.
4066         * modules/roundf-tests (Files): Add tests/nan.h.
4067
4068         * tests/test-truncf1.c: Include nan.h.
4069         (main): Use NaNf instead of NAN.
4070         * modules/truncf-tests (Files): Add tests/nan.h.
4071
4072         * tests/test-ceilf1.c: Include nan.h.
4073         (main): Use NaNf instead of NAN.
4074         * modules/ceilf-tests (Files): Add tests/nan.h.
4075
4076         * tests/test-floorf1.c: Include nan.h.
4077         (main): Use NaNf instead of NAN.
4078         * modules/floorf-tests (Files): Add tests/nan.h.
4079
4080         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4081         (main): Use NaNf instead of NAN.
4082         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4083
4084         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4085         (main): Use NaNd instead of NAN.
4086         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4087
4088         * tests/test-frexp.c: Include nan.h.
4089         (main): Use NaNd instead of NAN.
4090         * modules/frexp-tests (Files): Add tests/nan.h.
4091
4092         * lib/isnan.c: Don't include <math.h>.
4093         (FUNC): Don't use NAN macro.
4094         * modules/isnand-nolibm (Depends-on): Remove math.
4095         * modules/isnanf-nolibm (Depends-on): Remove math.
4096         * modules/isnanl (Depends-on): Remove math.
4097         * modules/isnanl-nolibm (Depends-on): Remove math.
4098
4099         * tests/nan.h: New file.
4100
4101 2008-04-01  Eric Blake  <ebb9@byu.net>
4102
4103         Fix typos.
4104         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4105         values to be the right type.
4106
4107         For now, cater to gnulib strtod inaccuracies.
4108         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4109         fractional results.  While not as nice from a QoI perspective, it
4110         is a quicker patch than correctly implementing decimal to binary
4111         rounding.
4112
4113 2008-03-31  Eric Blake  <ebb9@byu.net>
4114
4115         Guarantee a definition of NAN.
4116         * lib/math.in.h (NAN): Define if missing.
4117         * tests/test-math.c (main): Test it.
4118         * doc/posix-headers/math.texi (math.h): Document this.
4119         * lib/isnan.c (rpl_isnand): Use it.
4120         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4121         * tests/test-floorf1.c (NaN): Likewise.
4122         * tests/test-frexp.c (NaN): Likewise.
4123         * tests/test-isnand.c (NaN): Likewise.
4124         * tests/test-isnanf.c (NaN): Likewise.
4125         * tests/test-round1.c (NaN): Likewise.
4126         * tests/test-roundf1.c (NaN): Likewise.
4127         * tests/test-snprintf-posix.h (NaN): Likewise.
4128         * tests/test-sprintf-posix.h (NaN): Likewise.
4129         * tests/test-trunc1.c (NaN): Likewise.
4130         * tests/test-truncf1.c (NaN): Likewise.
4131         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4132         * tests/test-vasprintf-posix.c (NaN): Likewise.
4133         * modules/isnand-nolibm (Depends-on): Add math.
4134         * modules/isnanf-nolibm (Depends-on): Likewise.
4135         * modules/isnanl (Depends-on): Likewise.
4136         * modules/isnanl-nolibm (Depends-on): Likewise.
4137         * modules/snprintf-posix-tests (Depends-on): Likewise.
4138         * modules/sprintf-posix-tests (Depends-on): Likewise.
4139         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4140         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4141         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4142         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4143
4144 2008-03-31  Bruno Haible  <bruno@clisp.org>
4145
4146         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4147         * doc/posix-functions/strtod.texi: Likewise.
4148
4149 2008-03-31  Bruno Haible  <bruno@clisp.org>
4150
4151         * tests/test-strtod.c (main): Don't use C99 syntax.
4152
4153 2008-03-31  Bruno Haible  <bruno@clisp.org>
4154
4155         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4156         Reported by Eric Blake.
4157
4158 2008-03-31  Jim Meyering  <meyering@redhat.com>
4159
4160         Don't compare actual signbit return values.
4161         * tests/test-strtod.c (main): Rather, compare only their
4162         zero/non-zero nature.
4163
4164 2008-03-31  Eric Blake  <ebb9@byu.net>
4165
4166         More strtod documentation.
4167         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4168         failures as distinct bugs.
4169
4170 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4173         Problem reported by Erik Benada in
4174         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4175
4176 2008-03-30  Bruno Haible  <bruno@clisp.org>
4177
4178         * tests/test-strtod.c: Add comments about which assertion fails on which
4179         platform.
4180         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4181
4182 2008-03-30  Eric Blake  <ebb9@byu.net>
4183
4184         Test signbit behavior on zeros.
4185         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4186         (test_signbitd, test_signbitl): Likewise.
4187
4188         More strtod touchups.
4189         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4190         sign of negative underflow, for now.  Use .5, not .1.
4191         * doc/posix-functions/strtod.texi (strtod): Mention these
4192         limitations.
4193         Reported by Jim Meyering.
4194
4195 2008-03-30  Bruno Haible  <bruno@clisp.org>
4196
4197         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4198         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4199
4200 2008-03-30  Bruno Haible  <bruno@clisp.org>
4201
4202         Avoid failure when attempting to return empty iconv results on some
4203         platforms.
4204         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4205         allocation, don't report ENOMEM when the resulting string is empty.
4206
4207 2008-03-30  Bruno Haible  <bruno@clisp.org>
4208
4209         Fix buffer overrun.
4210         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4211         Don't consider the width for tmp_length. Check count against tmp_length
4212         before doing the padding. Ensure enough allocation during padding.
4213
4214 2008-03-30  Eric Blake  <ebb9@byu.net>
4215
4216         strtod touchups.
4217         * lib/strtod.c (strtod): Avoid compiler warnings.
4218         Reported by Jim Meyering.
4219
4220 2008-03-30  Bruno Haible  <bruno@clisp.org>
4221
4222         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4223         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4224         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4225         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4226         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4227         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4228         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4229         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4230
4231         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4232         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4233         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4234         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4235         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4236         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4237         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4238         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4239
4240         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4241         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4242         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4243         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4244         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4245         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4246         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4247         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4248
4249         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4250         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4251
4252         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4253         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4254
4255         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4256         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4257
4258         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4260         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4261
4262         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4264         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4265
4266         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4268         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4269
4270         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4272         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4273
4274         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4275         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4277         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4278         (Depends-on): Add EOVERFLOW.
4279         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4280         (Depends-on): Add EOVERFLOW.
4281         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4282         (Depends-on): Add EOVERFLOW.
4283         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4284         (Depends-on): Add EOVERFLOW.
4285         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4286         (Depends-on): Add EOVERFLOW.
4287         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4288         (Depends-on): Add EOVERFLOW.
4289         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4290         (Depends-on): Add EOVERFLOW.
4291         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4292         (Depends-on): Add EOVERFLOW.
4293
4294         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4296         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4297
4298         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4300         * modules/snprintf (Depends-on): Add EOVERFLOW.
4301
4302         * lib/poll.c (EOVERFLOW): Remove fallback.
4303         * modules/poll (Depends-on): Add EOVERFLOW.
4304
4305         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4306         * modules/getugroups (Depends-on): Add EOVERFLOW.
4307
4308         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4309         * modules/getdelim (Depends-on): Add EOVERFLOW.
4310
4311         * lib/ftell.c (EOVERFLOW): Remove fallback.
4312         * modules/ftell (Depends-on): Add EOVERFLOW.
4313
4314         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4316         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4317
4318         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4319
4320         * modules/EOVERFLOW-tests: New file.
4321         * tests/test-EOVERFLOW.c: New file.
4322
4323         * modules/EOVERFLOW: New file.
4324         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4325
4326 2008-03-30  Bruno Haible  <bruno@clisp.org>
4327
4328         Fix bug introduced on 2007-06-10.
4329         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4330         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4331
4332 2008-03-30  Bruno Haible  <bruno@clisp.org>
4333
4334         Improve freadseek's efficiency after ungetc.
4335         * lib/freadseek.c: Include freadahead.h.
4336         (freadptrinc): New function, extracted from freadseek.
4337         (freadseek): Use it in a loop. Use freadahead to determine the number
4338         of loop iterations.
4339         * modules/freadseek (Depends-on): Add freadahead.
4340         (configure.ac): Require AC_C_INLINE.
4341
4342 2008-03-30  Bruno Haible  <bruno@clisp.org>
4343
4344         * lib/freadseek.c (freadseek): Don't ignore the return value of
4345         freadptr.
4346
4347 2008-03-29  Eric Blake  <ebb9@byu.net>
4348
4349         Add hex float support.
4350         * modules/strtod (Depends-on): Add c-ctype.
4351         (Link): Mention POW_LIB.
4352         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4353         whitespace between 'e' and exponent.
4354         * tests/test-strtod.c (main): Enable hex float tests.
4355         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4356         now provides.
4357
4358         Document various strtod bugs, with some fixes.
4359         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4360         "-0x", "inf", "nan", and hex constants.
4361         * doc/posix-functions/atof.texi (atof): Likewise.
4362         * modules/stdlib (Makefile.am): Support strtod.
4363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4364         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4365         detect additional strtod bugs.
4366         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4367         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4368         bool where appropriate.  Parse 'inf' and 'nan'.
4369         * tests/test-strtod.c: New file.
4370         * modules/strtod (Depends-on): Add stdbool, stdlib.
4371         (configure.ac): Turn on module indicator.
4372         * modules/strtod-tests: New module.
4373
4374 2008-03-29  Eric Blake  <ebb9@byu.net>
4375
4376         Fix ftell on mingw.
4377         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4378         * modules/ftell-tests (Depends-on): Add binary-io.
4379         * modules/ftello-tests (Depends-on): Likewise.
4380         * tests/test-ftell.c (main): Enhance test to cover behavior after
4381         ungetc.  Enforce binary mode.
4382         * tests/test-ftello.c (main): Likewise.
4383
4384         Pass test-freadseek on cygwin.
4385         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4386         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4387         ungetc buffer.
4388
4389         * tests/test-fflush2.c (main): Fix typo.
4390
4391 2008-03-29  Bruno Haible  <bruno@clisp.org>
4392
4393         * tests/test-fflush2.c (main): Temporarily disable the contents of
4394         this test.
4395         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4396         Reported by Eric Blake.
4397
4398 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4399
4400         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4401         (GC_SHA224_DIGEST_SIZE): Add.
4402
4403         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4404         (gc_hash_digest_length): Likewise.
4405         (gc_hash_buffer): Likewise.
4406
4407 2008-03-25  Bruno Haible  <bruno@clisp.org>
4408
4409         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4410         detail which gettext release to use.
4411         Reported by Simon Josefsson.
4412
4413 2008-03-26  Jim Meyering  <meyering@redhat.com>
4414
4415         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4416         * modules/gnumakefile (clean-GNUmakefile): Also, use
4417         test ... && ... || : syntax rather than if-then ... fi.
4418
4419         gnumakefile: Don't double-quote-expand $(VPATH) value.
4420         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4421
4422 2008-03-24  Eric Blake  <ebb9@byu.net>
4423
4424         Alter GNUmakefile to install into top directory.
4425         * modules/maintainer-makefile: Split, and add dependency...
4426         * modules/gnumakefile: to this new module.
4427         * build-aux/GNUmakefile: Move...
4428         * top/GNUmakefile: ...here.
4429         * build-aux/maint.mk: Move...
4430         * top/maint.mk: ...here.
4431         * MODULES.html.sh (Support for maintaining...): Document new
4432         module.
4433
4434 2008-03-23  Bruno Haible  <bruno@clisp.org>
4435
4436         * gnulib-tool: New options --vc-files, --no-vc-files.
4437         (func_usage): Document them.
4438         (vc_files): New variable.
4439         (func_import): Consider vc_files.
4440         (func_create_testdir): Set vc_files to empty.
4441         Suggested by Jim Meyering and Karl Berry.
4442
4443 2008-03-23  Bruno Haible  <bruno@clisp.org>
4444
4445         Fix regex compilation error on HP-UX 11.
4446         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4447         * modules/regex (Files): Add m4/mbstate_t.m4.
4448         Reported by Ton Voon <ton.voon@altinity.com>.
4449
4450 2008-03-23  Bruno Haible  <bruno@clisp.org>
4451
4452         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4453
4454 2008-03-23  Eric Blake  <ebb9@byu.net>
4455             Bruno Haible  <bruno@clisp.org>
4456
4457         Install files from top/ in the destination directory.
4458         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4459         augmentation also for the files from top/.
4460         (func_import, func_create_testdir): Rewrite file names:
4461         top/filename -> filename.
4462
4463 2008-03-23  Bruno Haible  <bruno@clisp.org>
4464
4465         Tweak "gnulib --version" output.
4466         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4467
4468 2008-03-23  Bruno Haible  <bruno@clisp.org>
4469
4470         Tweak "gnulib --version" output.
4471         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4472         rather than contents of ChangeLog, when possible.
4473
4474 2008-03-21  Eric Blake  <ebb9@byu.net>
4475
4476         More --version tweaks.
4477         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4478         date of last ChangeLog entry.
4479
4480 2008-03-21  Jim Meyering  <meyering@redhat.com>
4481
4482         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4483
4484 2008-03-20  Eric Blake  <ebb9@byu.net>
4485
4486         VPATH fix.
4487         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4488
4489 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4490
4491         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4492         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4493
4494 2008-03-20  Eric Blake  <ebb9@byu.net>
4495
4496         Sync GNUmakefile with coreutils.
4497         * build-aux/GNUmakefile (have-Makefile): Rename...
4498         (_have-Makefile): ...to this, for namespace consideration.
4499         (GNUmakefile.cfg): Include, if present.
4500         (_autoreconf): Define a default.
4501         (_is-dist-target): New rule for rebuilds to pick up intra-release
4502         version.
4503         (maint-cfg.mk): Rename...
4504         (cfg.mk): ...to this.
4505
4506 2008-03-18  Jim Meyering  <meyering@redhat.com>
4507
4508         New script and module: mktempd
4509         * MODULES.html.sh (maint+release support): Add mktempd.
4510         * build-aux/mktempd: New file.
4511         * modules/mktempd: New file.
4512
4513 2008-03-15  Jim Meyering  <meyering@redhat.com>
4514
4515         Undo last change.
4516         * lib/sha1.c, lib/md5.c: 63 != ~63.
4517         Reported by Andreas Schwab.
4518
4519         sha1.c, md5.c: Hoist a redundant expression.
4520         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4521         "ctx->buflen" only once, before calling *_process_block.
4522         * lib/md5.c (md5_process_bytes): Likewise.
4523
4524 2008-03-14  Eric Blake  <ebb9@byu.net>
4525
4526         Bump copyright year in files generated by gnulib-tool.
4527         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4528         gnulib-tool, rather than hard-coding it.
4529
4530         Fix 'gnulib-tool --version' output to work with git.
4531         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4532         (startup): ...here.
4533         (func_version): Use it to invoke git-version-gen, rather than
4534         relying on CVS keyword expansion.  Modernize wording.
4535         (cvsdatestamp, last_checkin_date, version): Kill unused
4536         variables.
4537
4538 2008-03-12  Jim Meyering  <meyering@redhat.com>
4539
4540         Recognize optional cast of the argument to free.
4541         * build-aux/useless-if-before-free: Update regexps.
4542
4543         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4544
4545 2008-03-11  Bruno Haible  <bruno@clisp.org>
4546
4547         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4548         by a single package.
4549         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4550         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4551         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4552         Reported by Sam Steingold <sds@gnu.org>.
4553
4554 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4555
4556         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4557         repositories.
4558
4559 2008-03-11  Bruno Haible  <bruno@clisp.org>
4560
4561         Avoid conflicts between local macro definitions.
4562         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4563         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4564
4565 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4566             Bruno Haible  <bruno@clisp.org>
4567
4568         Make va_copy work with some version of xlc on AIX 5.1.
4569         * lib/stdarg.in.h: New file.
4570         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4571         On AIX, use a <stdarg.h> file substitute.
4572         * modules/stdarg (Files): Add lib/stdarg.in.h.
4573         (Depends-on): Add include_next.
4574         (Makefile.am): Build a stdarg.h substitute if requested.
4575         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4576
4577 2008-03-10  Bruno Haible  <bruno@clisp.org>
4578
4579         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4580         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4581         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4582
4583 2008-03-10  Bruno Haible  <bruno@clisp.org>
4584
4585         * modules/stdlib (Depends-on): Add include_next, remove
4586         absolute-header.
4587
4588 2008-03-09  Bruno Haible  <bruno@clisp.org>
4589
4590         * lib/freadahead.h (freadahead): Document more precisely.
4591         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4592         the sum of both buffer sizes.
4593         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4594         * NEWS: Document the change.
4595
4596 2008-03-09  Bruno Haible  <bruno@clisp.org>
4597
4598         Extend freadptr to return also the buffer size.
4599         * lib/freadptr.h (freadptr): Add sizep argument.
4600         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4601         (freadptr): Add sizep argument. Determine buffer size like freadahead
4602         does.
4603         * tests/test-freadptr.c: Don't include freadahead.h.
4604         (main): Adapt for new calling convention of freadptr.
4605         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4606         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4607         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4608         tests/test-freadptr2.sh.
4609         (Depends): Remove freadahead.
4610         (TESTS): Add test-freadptr2.sh.
4611         (check_PROGRAMS): Add test-freadptr2.
4612
4613 2008-03-09  Bruno Haible  <bruno@clisp.org>
4614
4615         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4616         Report and solution by Simon Josefsson.
4617
4618 2008-03-06  Bruno Haible  <bruno@clisp.org>
4619
4620         Make fflush after ungetc work on BSD platforms.
4621         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4622         * tests/test-fflush2.c: New file.
4623         * tests/test-fflush2.sh: New file.
4624         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4625         tests/test-fflush2.c.
4626         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4627         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4628
4629 2008-03-06  Eric Blake  <ebb9@byu.net>
4630
4631         Likewise for ftello.
4632         * modules/ftello (Dependencies): Add extensions.
4633         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4634
4635 2008-03-06  Bruno Haible  <bruno@clisp.org>
4636
4637         * modules/fseeko (Dependencies): Add extensions.
4638         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4639         Needed on glibc systems.
4640
4641 2008-03-06  Bruno Haible  <bruno@clisp.org>
4642
4643         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4644         email address.
4645         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4646
4647 2008-03-06  Bruno Haible  <bruno@clisp.org>
4648
4649         * users.txt: Add libgnupdf.
4650
4651 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4652
4653         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4654         (Header File Substitutes, Function Substitutes,
4655         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4656         (Build robot for gnulib): Fix typo.
4657
4658 2008-03-06  Bruno Haible  <bruno@clisp.org>
4659
4660         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4661         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4662
4663 2008-03-06  Bruno Haible  <bruno@clisp.org>
4664
4665         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4666         * doc/gnulib.texi: Include it.
4667
4668 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4669
4670         * modules/func (License): Change license to unlimited; there was
4671         no LGPL parts in the module anyway.
4672
4673 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4674
4675         * modules/__func__: Renamed to modules/func.
4676         * modules/__func__-tests: Renamed to modules/func-tests.
4677         * tests/test-__func__.c: Renamed to tests/test-func.c.
4678         * m4/__func__.m4: Renamed to m4/func.m4.
4679         * doc/gnulib.texi (__func__): Section renamed to func.
4680         Suggested by Eric Blake <ebb9@byu.net>.
4681
4682 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4683
4684         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4685         about __func__.  Make example self-contained.  Suggested by Eric
4686         Blake <ebb9@byu.net>.
4687
4688         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4689         Suggested by Eric Blake <ebb9@byu.net>.
4690
4691 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4692
4693         * modules/__func__: New file.
4694         * modules/__func__-tests: New file.
4695         * tests/test-__func__.c: New file.
4696         * m4/__func__.m4: New file.
4697         * doc/gnulib.texi (__func__): Document __func__ module.
4698
4699 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4700
4701         * modules/byteswap (License): Re-license as LGPLv2+.
4702
4703 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4704
4705         * doc/Makefile: Add pdf target.
4706
4707 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4708
4709         * modules/inline (License): Use 'unlimited', since there are only
4710         *.m4 files in this module.
4711
4712 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4713             Bruno Haible  <bruno@clisp.org>
4714
4715         Add support for HP C 7.1 on OpenVMS 8.3.
4716         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4717
4718 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4719
4720         Update VMS specifics.
4721         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4722
4723 2008-03-02  Jim Meyering  <meyering@redhat.com>
4724
4725         Remove the last dependency on the "free" module.
4726         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4727         Reported by Bob Proulx.
4728
4729         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4730
4731         Remove useless "if" tests before free.  Deprecate "free" module.
4732         * doc/posix-functions/free.texi: Mention that this
4733         module is no longer useful.
4734         * modules/free (Notice): Say this module is obsolete.
4735         * modules/readutmp (Depends-on): Remove free.
4736         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4737         * lib/putenv.c (putenv): Likewise.
4738         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4739         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4740         * tests/test-c-strcasestr.c (main): Likewise.
4741         * tests/test-c-strstr.c (main): Likewise.
4742         * tests/test-mbscasestr1.c (main): Likewise.
4743         * tests/test-mbscasestr2.c (main): Likewise.
4744         * tests/test-mbsstr1.c (main): Likewise.
4745         * tests/test-mbsstr2.c (main): Likewise.
4746         * tests/test-memmem.c (main): Likewise.
4747         * tests/test-strcasestr.c (main): Likewise.
4748         * tests/test-striconv.c (main): Likewise.
4749         * tests/test-striconveh.c (main): Likewise.
4750         * tests/test-striconveha.c (main): Likewise.
4751         * tests/test-strstr.c (main): Likewise.
4752
4753         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4754
4755         bootstrap: sync from coreutils again
4756         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4757
4758 2008-03-01  Jim Meyering  <meyering@redhat.com>
4759
4760         bootstrap: sync from coreutils
4761         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4762         also when the target doesn't exist.
4763
4764 2008-03-01  Eric Blake  <ebb9@byu.net>
4765
4766         Fix bugs in last patch.
4767         * lib/memchr2.c (memchr2): Fix typo.
4768         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4769         extension.
4770         Reported by Bruce Korb.
4771
4772         New module 'memchr2'.
4773         * modules/memchr2: New file.
4774         * modules/memchr2-tests: Likewise.
4775         * lib/memchr2.h: Likewise.
4776         * lib/memchr2.c: Likewise, based on memchr.c.
4777         * tests/test-memchr2.c: New test.
4778         * MODULES.html.sh (String handling): Add memchr2.
4779
4780 2008-02-29  Bruno Haible  <bruno@clisp.org>
4781
4782         * modules/freadseek-tests: New file.
4783         * tests/test-freadseek.sh: New file.
4784         * tests/test-freadseek.c: New file.
4785
4786         New module 'freadseek'.
4787         * modules/freadseek: New file.
4788         * lib/freadseek.h: New file.
4789         * lib/freadseek.c: New file.
4790         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4791
4792 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4793
4794         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4795         wydawca.
4796
4797         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4798         program_invocation_name and program_invocation_short_name are
4799         present.
4800
4801 2008-02-28  Bruno Haible  <bruno@clisp.org>
4802
4803         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4804         * tests/test-freadptr.sh: Also test non-seekable stdin.
4805
4806 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4807
4808         * build-aux/bootstrap (source_base, m4_base)
4809         (doc_base, tests_base): New variables.
4810         (gnulib_tool_options): Do not hardcode base directories, use
4811         the above variables instead.
4812
4813 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4814
4815         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4816
4817 2008-02-28  Bruno Haible  <bruno@clisp.org>
4818
4819         * modules/freadptr-tests: New file.
4820         * tests/test-freadptr.sh: New file.
4821         * tests/test-freadptr.c: New file.
4822
4823         New module 'freadptr'.
4824         * modules/freadptr: New file.
4825         * lib/freadptr.h: New file.
4826         * lib/freadptr.c: New file.
4827         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4828
4829 2008-02-26  Karl Berry  <karl@freefriends.org>
4830
4831         Sync from Libtool:
4832         * libltdl/argz.c (argz_add, argz_count): New functions.
4833         * libltdl/argz.in.h: Declare them.
4834         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4835
4836 2008-02-22  Bruno Haible  <bruno@clisp.org>
4837
4838         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4839         is a pointer type.  Needed for HP-UX 10.
4840         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4841         * doc/posix-functions/gmtime_r.texi: Likewise.
4842         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4843
4844 2008-02-24  Bruno Haible  <bruno@clisp.org>
4845
4846         * modules/environ-tests: New file.
4847         * tests/test-environ.c: New file.
4848
4849         New module 'environ'.
4850         * modules/environ: New file.
4851         * lib/unistd.in.h (environ): New declaration.
4852         * m4/environ.m4: New file.
4853         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4854         after use.
4855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4856         HAVE_DECL_ENVIRON.
4857         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4858         HAVE_DECL_ENVIRON.
4859         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4860         wrong claim that 'environ' is missing on some systems.
4861         * modules/execute (Depends-on): Add environ.
4862         * lib/execute.c (environ): Remove fallback declaration.
4863         * modules/pipe (Depends-on): Add environ.
4864         * lib/pipe.c (environ): Remove fallback declaration.
4865         * modules/setenv (Depends-on): Add environ.
4866         * lib/setenv.c (environ): Remove fallback declaration.
4867         * modules/unsetenv (Depends-on): Add environ.
4868         * lib/unsetenv.c (environ): Remove fallback declaration.
4869         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4870         m4/environ.m4.
4871         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4872         (gl_PREREQ_UNSETENV): Likewise.
4873
4874 2008-02-24  Bruno Haible  <bruno@clisp.org>
4875
4876         * doc/posix-functions/environ.texi: Document the MacOS X problem.
4877
4878 2008-02-20  Bob Proulx  <bob@proulx.com>
4879
4880         Enable use of older two part flavor 'git describe'.
4881         * build-aux/git-version-gen: If using the older two part flavor of
4882         git version then recreate the third part now present in the
4883         newer three part flavor of git describe.
4884
4885 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
4886
4887         * lib/fts.c (fts_build): Typo correction to comment.
4888
4889 2008-02-17  Bruno Haible  <bruno@clisp.org>
4890
4891         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4892         generating no-op conflicts.
4893
4894 2008-02-17  Bruno Haible  <bruno@clisp.org>
4895
4896         Speed up by 10%.
4897         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4898         result_entries, rather than an index-based loop.
4899
4900 2008-02-17  Bruno Haible  <bruno@clisp.org>
4901
4902         Speed up by 25%.
4903         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4904         'hashcode_cached'.
4905         (entry_create): New function.
4906         (entry_hashcode): Use the cached hashcode if possible.
4907         (read_changelog_file, try_split_merged_entry): Use entry_create.
4908
4909 2008-02-17  Bruno Haible  <bruno@clisp.org>
4910
4911         Speed up from O(n^2) to O(n) for long ChangeLog files.
4912         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4913         (read_changelog_file): Change implementation of entries_reversed list
4914         to rbtreehash.
4915         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4916
4917 2008-02-17  Bruno Haible  <bruno@clisp.org>
4918
4919         New option --split-merged-entry.
4920         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4921         (find_paragraph_end, try_split_merged_entry): New functions.
4922         (long_options): Add option --split-merged-entry.
4923         (usage): Document option --split-merged-entry.
4924         (main): Implement option --split-merged-entry.
4925         Reported by Eric Blake.
4926
4927 2008-02-17  Bruno Haible  <bruno@clisp.org>
4928
4929         * lib/git-merge-changelog.c: Include c-strstr.h.
4930         (main): Support the "git pull --rebase" situation.
4931         * modules/git-merge-changelog (Depends-on): Add c-strstr.
4932         Reported by Eric Blake.
4933
4934 2008-02-16  Eric Blake  <ebb9@byu.net>
4935
4936         Avoid doubling \ in common case of "c-maybe" quoting style.
4937         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4938         eliding outer quotes.
4939         * lib/quotearg.h: Document this.
4940         * tests/test-quotearg.c (result_strings, inputs, results_g)
4941         (flag_results, locale_results): Test it by adding a new string to
4942         each test group.
4943         (compare_strings): Test new string.
4944
4945 2008-02-13  Eric Blake  <ebb9@byu.net>
4946
4947         Avoid trigraph quoting in default output.
4948         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4949         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4950         unless explicitly requested.
4951         * tests/test-quotearg.c (flag_results, main): Add additional tests.
4952
4953 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
4954
4955         Don't rely on signed integer overflowing to negative value.
4956         * lib/getugroups.c (getugroups): Include <limits.h>.
4957         Instead, compare against INT_MAX, and increment only if the test passes.
4958
4959 2008-02-13  Jim Meyering  <meyering@redhat.com>
4960         and Eric Blake  <ebb9@byu.net>
4961
4962         Avoid shadowing warning and compile errors on Linux.
4963         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4964         forwarding macros on Linux.
4965         (dcgettext): Define a stub, for Linux.
4966         (results_g, main): Avoid warnings.
4967
4968 2008-02-12  Eric Blake  <ebb9@byu.net>
4969
4970         Silence warning in last patch.
4971         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4972
4973         Quotearg part 4: add tests, fix c-maybe colon quoting.
4974         * lib/quotearg.h: Improve documentation.
4975         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4976         escapes when adding outer quotes.  When quoting trigraphs, use
4977         valid C notation.  When quoting NUL, omit extra characters if next
4978         character is not digit.  Alter prototype.
4979         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4980         callers.
4981         * modules/quotearg-tests: New module.
4982         * tests/test-quotearg.c: New test.
4983
4984 2008-02-07  Eric Blake  <ebb9@byu.net>
4985
4986         Quotearg part 3: add flag to control outer quote elision.
4987         * lib/quotearg.h (c_maybe_quoting_style): New style.
4988         (enum quoting_flags): Better documentation of flags.
4989         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4990         c-maybe style.
4991         (quotearg_buffer_restyled): Handle new flag to elide outer
4992         quotes.
4993
4994         Quotearg part 2: add flag that can control NUL elision.
4995         * lib/quotearg.h (set_quoting_flags): New prototype.
4996         * lib/quotearg.c (struct quoting_options): Add flag field.
4997         (set_quoting_flags): New function.
4998         (quotearg_buffer_restyled): Add flags parameter.
4999         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5000         (quotearg_n_options): Set the flag, since length cannot be
5001         returned.
5002         (quoting_options_from_style): Default flags correctly.
5003
5004         Quotearg part 1: more wrappers, restore quotearg_char state.
5005         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5006         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5007         (quotearg_colon_mem): New wrappers.
5008         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5009         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5010         functions.
5011         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5012         (quotearg_colon_mem): New functions.
5013
5014 2008-02-11  Bruno Haible  <bruno@clisp.org>
5015
5016         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5017         library in the current directory: it does not work with parallel make.
5018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5019
5020 2008-02-11  Bruno Haible  <bruno@clisp.org>
5021
5022         * .gitattributes: New file.
5023
5024 2008-02-11  Jim Meyering  <meyering@redhat.com>
5025
5026         useless-if-before-free: Fix reversed exit values.
5027         * build-aux/useless-if-before-free: Use correct values
5028         for EXIT_MATCH and EXIT_NO_MATCH.
5029
5030         * build-aux/useless-if-before-free: Close stdout carefully.
5031
5032 2008-02-10  Bruno Haible  <bruno@clisp.org>
5033
5034         New module 'git-merge-changelog'.
5035         * modules/git-merge-changelog: New file.
5036         * lib/git-merge-changelog.c: New file.
5037
5038 2008-02-10  Jim Meyering  <meyering@redhat.com>
5039
5040         useless-if-before-free: New option: --list (-l).
5041
5042         useless-if-before-free: Don't exit immediately upon open failure.
5043         * build-aux/useless-if-before-free: Exit 2 for errors.
5044         Upon failure to open a file, don't exit immediately.
5045         Rather, just warn and continue with any remaining files.
5046
5047 2008-02-10  Bruno Haible  <bruno@clisp.org>
5048
5049         New abstract list operation 'node_set_value'.
5050         * lib/gl_list.h (gl_list_node_set_value): New function.
5051         (struct gl_list_implementation): New field node_set_value.
5052         * lib/gl_list.c (gl_list_node_set_value): New function.
5053         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5054         (gl_array_list_implementation): Update.
5055         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5056         (gl_carray_list_implementation): Update.
5057         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5058         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5059         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5060         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5061         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5062         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5063         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5064         Update.
5065         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5066         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5067         (gl_sublist_list_implementation): Update.
5068
5069 2008-02-10  Bruno Haible  <bruno@clisp.org>
5070
5071         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5072         Needed when ELEMENT is #defined to 'some_type *'.
5073
5074 2008-02-10  Jim Meyering  <meyering@redhat.com>
5075
5076         New script and module: useless-if-before-free
5077         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5078         * build-aux/useless-if-before-free: New file.
5079         * modules/useless-if-before-free: New file.
5080
5081         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5082
5083         xstrtol_error: Fix typo.
5084         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5085         s/exit_failure/exit_status/.
5086
5087 2008-02-09  Jim Meyering  <meyering@redhat.com>
5088
5089         New script and module: gitlog-to-changelog
5090         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5091         * modules/gitlog-to-changelog: New file.
5092         * build-aux/gitlog-to-changelog: New file.
5093
5094 2008-02-08  Jim Meyering  <meyering@redhat.com>
5095
5096         Avoid two "parameter unused" warnings.
5097         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5098         Mark "st" as used.
5099
5100         Use "git COMMAND", not "git-COMMAND".
5101         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5102         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5103         * build-aux/git-version-gen: Use "git status", not "git-status".
5104
5105 2008-02-07  Bruno Haible  <bruno@clisp.org>
5106
5107         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5108         Avoids a crash on Windows Vista.
5109         Reported by Adam Strzelecki <ono@java.pl> via
5110         Simon Josefsson <simon@josefsson.org>.
5111
5112 2008-02-06  Bruno Haible  <bruno@clisp.org>
5113
5114         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5115         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5116         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5118         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5120         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5121         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5126         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5128         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5129         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5130         left-adjust flag.
5131         * tests/test-snprintf-posix.h (test_function): Likewise.
5132         * tests/test-sprintf-posix.h (test_function): Likewise.
5133         * tests/test-vasprintf-posix.c (test_function): Likewise.
5134         * doc/posix-functions/fprintf.texi: Update.
5135         * doc/posix-functions/printf.texi: Update.
5136         * doc/posix-functions/snprintf.texi: Update.
5137         * doc/posix-functions/sprintf.texi: Update.
5138         * doc/posix-functions/vfprintf.texi: Update.
5139         * doc/posix-functions/vprintf.texi: Update.
5140         * doc/posix-functions/vsnprintf.texi: Update.
5141         * doc/posix-functions/vsprintf.texi: Update.
5142         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5143
5144 2008-02-06  Bruno Haible  <bruno@clisp.org>
5145
5146         Fix bug introduced on 2008-01-26.
5147         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5148
5149 2008-02-06  Bruno Haible  <bruno@clisp.org>
5150
5151         Fix bug introduced on 2007-06-10.
5152         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5153         !NEED_PRINTF_FLAG_ZERO.
5154
5155 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5156
5157         getloadavg: use libperfstat on AIX5
5158         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5159
5160 2008-02-03  Bruno Haible  <bruno@clisp.org>
5161
5162         * lib/diffseq.h: Add comments about required #includes.
5163         Reported by Michael Biggs <gnulib@doubleplum.net>.
5164
5165 2008-02-01  Bruno Haible  <bruno@clisp.org>
5166
5167         * users.txt: Add gnuit.
5168
5169 2008-01-31  Bruno Haible  <bruno@clisp.org>
5170
5171         * lib/md4.c (set_uint32): Mark as inline.
5172         * lib/md5.c (set_uint32): Likewise.
5173         * lib/sha1.c (set_uint32): Likewise.
5174         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5175         * m4/md5.m4 (gl_MD5): Likewise.
5176         * m4/sha1.m4 (gl_SHA1): Likewise.
5177
5178 2008-01-31  Jim Meyering  <meyering@redhat.com>
5179
5180         Use "sizeof VAR", rather than a literal "4".
5181         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5182         * lib/md4.c (md4_read_ctx): Likewise.
5183         * lib/sha1.c (sha1_read_ctx): Likewise.
5184
5185 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5186
5187         * tests/test-sha1.c: New file, based on test-md5.c.
5188
5189         * modules/crypto/sha1-tests: New file.
5190
5191 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5192
5193         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5194
5195 2008-01-31  Jim Meyering  <meyering@redhat.com>
5196
5197         Prefer "sizeof v" over the equivalent "4".
5198         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5199         * lib/md5.c (set_uint32): Likewise.
5200         * lib/sha1.c (set_uint32): Likewise.
5201
5202 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5203
5204         * lib/sha1.c (set_uint32): Mark function as static.
5205
5206 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5207
5208         md2: clarify comments to say that alignment is not required.
5209         * lib/md2.h: Remove warning about alignment in comment.
5210         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5211         never been required.
5212
5213 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5214
5215         md4: adapt alignment constraint fix from sha1.
5216         * lib/md4.c (set_uint32): New function, from sha1.c
5217         (md4_read_ctx): Use it.
5218         (md4_finish_ctx): Doc fix.
5219         * lib/md4.h: Doc fix.
5220
5221 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5222
5223         md5: adapt alignment constraint fix from sha1.
5224         * lib/md5.c (set_uint32): New function, from sha1.c
5225         (md5_read_ctx): Use it.
5226         (md5_finish_ctx): Doc fix.
5227         * lib/md5.h: Doc fix.
5228
5229 2008-01-30  Peter Palfrader  <weasel@debian.org>
5230
5231         sha1: remove the result buffer alignment constraint
5232         * lib/sha1.c (set_uint32): New function.
5233         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5234         constraint.
5235         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5236         * lib/sha1.h: Likewise.
5237
5238 2008-01-30  Andreas Schwab  <schwab@suse.de>
5239             Bruno Haible  <bruno@clisp.org>
5240
5241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5242         correct definition of LDBL_MIN_EXP.
5243
5244 2008-01-30  Karl Berry  <karl@gnu.org>
5245
5246         * config/srclist-update: try to preserve x bit on updates.
5247         * config/srclistvars.sh: update for karl.
5248
5249 2008-01-29  Jim Meyering  <meyering@redhat.com>
5250
5251         vasnprintf.c: Avoid warning about unused label
5252         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5253         "overflow" label definition and associated code with the
5254         same cpp condition that guards the sole use of that label.
5255
5256 2008-01-26  Bruno Haible  <bruno@clisp.org>
5257
5258         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5259         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5260         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5261         * lib/isnanl-nolibm.h (isnanl): Likewise.
5262         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5263
5264 2008-01-26  Bruno Haible  <bruno@clisp.org>
5265
5266         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5267         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5268
5269 2008-01-26  Bruno Haible  <bruno@clisp.org>
5270
5271         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5272         GCC >= 4.0 built-in.
5273         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5274
5275 2008-01-26  Bruno Haible  <bruno@clisp.org>
5276
5277         Rename isnan, applicable to 'double' only, to isnand.
5278         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5279         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5280         (configure.ac): Update.
5281         (Include): Replace "isnan.h" with "isnand.h".
5282         * m4/isnand.m4: Renamed from m4/isnan.m4.
5283         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5284         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5285         instead of isnan.c.
5286         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5287         instead of HAVE_ISNAN_IN_LIBC.
5288         (isnand): Renamed from isnan.
5289         * lib/isnand.c: New file.
5290         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5291         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5292         (Makefile.am): Update.
5293         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5294         Include isnand.h instead of isnan.h.
5295         (main): Test isnand instead of isnan.
5296         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5297         isnan-nolibm.
5298         * modules/frexp (Depends-on): Likewise.
5299         * modules/frexp-tests (Depends-on): Likewise.
5300         * modules/frexp-nolibm (Depends-on): Likewise.
5301         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5302         * modules/isfinite (Depends-on): Likewise.
5303         * modules/round-tests (Depends-on): Likewise.
5304         * modules/signbit (Depends-on): Likewise.
5305         * modules/signbit-tests (Depends-on): Likewise.
5306         * modules/snprintf-posix (Depends-on): Likewise.
5307         * modules/sprintf-posix (Depends-on): Likewise.
5308         * modules/trunc-tests (Depends-on): Likewise.
5309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5311         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5312         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5315         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5316         * modules/vasnprintf-posix (Depends-on): Likewise.
5317         * modules/vasprintf-posix (Depends-on): Likewise.
5318         * modules/vfprintf-posix (Depends-on): Likewise.
5319         * modules/vsnprintf-posix (Depends-on): Likewise.
5320         * modules/vsprintf-posix (Depends-on): Likewise.
5321         * lib/frexp.c: Include isnand.h instead of isnan.h.
5322         (ISNAN): Set to isnand instead of isnan.
5323         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5324         (gl_isfinited): Use isnand instead of isnan.
5325         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5326         (gl_signbitd): Use isnand instead of isnan.
5327         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5328         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5329         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5330         (main): Use isnand instead of isnan.
5331         * tests/test-round1.c: Include isnand.h.
5332         (main): Use isnand instead of isnan.
5333         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5334         (ISNAN): Set to isnand instead of isnan.
5335         * tests/test-trunc1.c: Include isnand.h.
5336         (main): Use isnand instead of isnan.
5337         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5338         (equal): Use isnand instead of isnan.
5339         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5340         isnand-nolibm.
5341         * NEWS: Mention the change.
5342
5343 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5344             Bruno Haible  <bruno@clisp.org>
5345
5346         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5347         the GCC builtins for signbits are present and set
5348         REPLACE_SIGNBIT_USING_GCC if so.
5349         * lib/math.in.h (signbit): Define using GCC builtins if
5350         REPLACE_SIGNBIT_USING_GCC is set.
5351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5352         REPLACE_SIGNBIT_USING_GCC.
5353         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5354
5355 2008-01-25  Jim Meyering  <meyering@redhat.com>
5356
5357         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5358         * lib/poll.c: Include <config.h>, not "config.h".
5359         * tests/test-getaddrinfo.c: Likewise.
5360
5361 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5362
5363         * modules/sockets-tests: New file.
5364
5365 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5366
5367         * modules/sockets: New module, can be used to call WSA_Startup and
5368         WSA_Cleanup when needed.
5369
5370         * lib/sockets.h, lib/sockets.c: New files.
5371
5372         * m4/sockets.m4: New file.
5373
5374         * tests/test-sockets.c: New file.
5375
5376 2008-01-19  Bruno Haible  <bruno@clisp.org>
5377
5378         * doc/posix-headers: Renamed from doc/headers.
5379         * doc/posix-functions: Renamed from doc/functions.
5380         * doc/gnulib.texi: Update.
5381
5382 2008-01-19  Bruno Haible  <bruno@clisp.org>
5383
5384         * doc/glibc-functions/strcasestr.texi: Include contents of
5385         doc/functions/strcasestr.texi, fixing the list of platforms.
5386         * doc/functions/strcasestr.texi: Remove file.
5387
5388 2008-01-19  Bruno Haible  <bruno@clisp.org>
5389
5390         * doc/glibc-functions/memmem.texi: Include contents of
5391         doc/functions/memmem.texi.
5392         * doc/functions/memmem.texi: Remove file.
5393
5394 2008-01-18  Bruno Haible  <bruno@clisp.org>
5395
5396         * doc/glibc-functions/*.texi: New files.
5397         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5398         to use the new files.
5399
5400 2008-01-17  Bruno Haible  <bruno@clisp.org>
5401
5402         * tests/test-gethostname.c (main): Fix printf statement.
5403
5404 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5405
5406         * modules/gethostname-tests: New file.
5407
5408         * tests/test-gethostname.c: New file.
5409
5410 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5411
5412         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5413         used by the UNAME case.  Reported by Bruno Haible
5414         <bruno@clisp.org>.
5415
5416 2008-01-17  Eric Blake  <ebb9@byu.net>
5417
5418         Convert c-strcasestr to be more efficient.
5419         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5420         (Depends-on): Add c-strcase, remove malloca, strnlen.
5421         * tests/test-c-strcasestr.c (main): Enhance test.
5422         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5423
5424 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5425
5426         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5427         Use it in creating po/Makevars.
5428
5429 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5430
5431         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5432         Applications that requires it should initialize libgcrypt
5433         manually.
5434
5435 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5436
5437         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5438
5439 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5440
5441         Fix problem with getdate on mingw32 reported by Simon Josefsson
5442         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5443         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5444         tzname", when deciding whether to declare tzname.
5445         * lib/strftime.c (tzname): Likewise.
5446
5447 2008-01-15  Bruno Haible  <bruno@clisp.org>
5448
5449         Work around a MacOS X 10.5 bug in frexpl().
5450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5451         * doc/functions/frexpl.texi: Document the bug.
5452         Reported by Elias Pipping <pipping@gentoo.org>.
5453
5454 2008-01-14  Eric Blake  <ebb9@byu.net>
5455
5456         Touch up previous patch.
5457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5458         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5459
5460         Convert strcasestr module to use Two-Way algorithm.
5461         * modules/strcasestr-simple: New module, based on the old
5462         strcasestr, but with Two-Way rather than KMP.
5463         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5464         * lib/string.in.h (rpl_strcasestr): Declare.
5465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5466         performance.
5467         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5468         * modules/string (Makefile.am): Support strcasestr.
5469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5470         * modules/strcasestr-tests (Depends-on): Check for alarm.
5471         * tests/test-strcasestr.c: Augment test.
5472         * lib/str-two-way.h: Clean up stray macro.
5473         * NEWS: Document new module.
5474         * MODULES.html.sh (string handling): Likewise.
5475         * doc/functions/strcasestr.texi: New file.
5476         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5477         here, since it is not a POSIX function.
5478
5479 2008-01-14  Colin Watson  <cjwatson@debian.org>
5480             Bruno Haible  <bruno@clisp.org>
5481
5482         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5483         works fine; if not, set REPLACE_STRSIGNAL.
5484         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5486         REPLACE_STRSIGNAL.
5487         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5488         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5489         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5490
5491 2008-01-14  Bruno Haible  <bruno@clisp.org>
5492
5493         * modules/strsignal (Include): Change to <string.h>.
5494
5495 2008-01-14  Colin Watson  <cjwatson@debian.org>
5496
5497         * modules/argp (Notice): Add a notice recommending to change
5498         XGETTEXT_OPTIONS.
5499         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5500
5501 2008-01-13  Colin Watson  <cjwatson@debian.org>
5502
5503         * modules/strsignal-tests: New file.
5504         * tests/test-strsignal.c: New file.
5505
5506         * lib/strsignal.c: New file, from glibc with modifications.
5507         * lib/siglist.h: New file, from glibc with modifications.
5508         * lib/string.in.h (strsignal): New declaration.
5509         * m4/strsignal.m4: New file.
5510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5511         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5512         * modules/strsignal: New file.
5513         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5514         HAVE_DECL_STRSIGNAL.
5515
5516 2008-01-13  Bruno Haible  <bruno@clisp.org>
5517
5518         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5519         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5520         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5521         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5522
5523 2008-01-13  Bruno Haible  <bruno@clisp.org>
5524
5525         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5526         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5527         * lib/argp.h (__attribute__): Likewise.
5528         * lib/c-stack.c (__attribute__): Likewise.
5529         * lib/error.h (__attribute__): Likewise.
5530         * lib/fts.c (__attribute__): Likewise.
5531         * lib/openat.h (__attribute__): Likewise.
5532         * lib/stdio.in.h (__attribute__): Likewise.
5533         * lib/string.in.h (__attribute__): Likewise.
5534         * lib/utimens.c (__attribute__): Likewise.
5535         * lib/vasnprintf.h (__attribute__): Likewise.
5536         * lib/xalloc.h (__attribute__): Likewise.
5537         * lib/xprintf.h (__attribute__): Likewise.
5538         * lib/xstrtol.h (__attribute__): Likewise.
5539         * lib/xvasprintf.h (__attribute__): Likewise.
5540
5541 2008-01-12  Bruno Haible  <bruno@clisp.org>
5542
5543         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5544         * doc/glibc-headers/a.out.texi: New file.
5545         * doc/glibc-headers/aliases.texi: New file.
5546         * doc/glibc-headers/alloca.texi: New file.
5547         * doc/glibc-headers/ar.texi: New file.
5548         * doc/glibc-headers/argp.texi: New file.
5549         * doc/glibc-headers/argz.texi: New file.
5550         * doc/glibc-headers/byteswap.texi: New file.
5551         * doc/glibc-headers/crypt.texi: New file.
5552         * doc/glibc-headers/endian.texi: New file.
5553         * doc/glibc-headers/envz.texi: New file.
5554         * doc/glibc-headers/err.texi: New file.
5555         * doc/glibc-headers/error.texi: New file.
5556         * doc/glibc-headers/execinfo.texi: New file.
5557         * doc/glibc-headers/fpu_control.texi: New file.
5558         * doc/glibc-headers/fstab.texi: New file.
5559         * doc/glibc-headers/fts.texi: New file.
5560         * doc/glibc-headers/getopt.texi: New file.
5561         * doc/glibc-headers/ieee754.texi: New file.
5562         * doc/glibc-headers/ifaddrs.texi: New file.
5563         * doc/glibc-headers/libintl.texi: New file.
5564         * doc/glibc-headers/mcheck.texi: New file.
5565         * doc/glibc-headers/mntent.texi: New file.
5566         * doc/glibc-headers/obstack.texi: New file.
5567         * doc/glibc-headers/paths.texi: New file.
5568         * doc/glibc-headers/printf.texi: New file.
5569         * doc/glibc-headers/pty.texi: New file.
5570         * doc/glibc-headers/resolv.texi: New file.
5571         * doc/glibc-headers/shadow.texi: New file.
5572         * doc/glibc-headers/sysexits.texi: New file.
5573         * doc/glibc-headers/ttyent.texi: New file.
5574
5575 2008-01-12  Jim Meyering  <meyering@redhat.com>
5576
5577         announce-gen: emit Gnulib's git-based version string.
5578         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5579         New option --gnulib-version=V, where V is expected to be
5580         the output of running git describe in the gnulib directory.
5581         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5582         not useful, and plan to stop publishing an xdelta file with each
5583         coreutils release.
5584
5585         * build-aux/announce-gen: Also check for lzma-compressed files.
5586
5587 2008-01-11  Bruno Haible  <bruno@clisp.org>
5588
5589         * tests/test-memmem.c (main): Increase maximum allowed time.
5590         * tests/test-strstr.c (main): Likewise.
5591
5592 2008-01-11  Bruno Haible  <bruno@clisp.org>
5593
5594         * doc/functions/memmem.texi: Add more precisions about platforms.
5595         * doc/functions/strstr.texi: Likewise.
5596
5597 2008-01-10  Eric Blake  <ebb9@byu.net>
5598
5599         * m4/strstr.m4: Delete cruft from copy-n-paste.
5600         Reported by Bruno Haible.
5601
5602 2008-01-10  Bruno Haible  <bruno@clisp.org>
5603
5604         Make c-strstr rely on strstr.
5605         * lib/c-strstr.c: Don't include str-kmp.h.
5606         (c_strstr): Define in terms of strstr.
5607         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5608         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5609
5610 2008-01-10  Bruno Haible  <bruno@clisp.org>
5611
5612         * doc/gnulib.texi (String Functions in C Locale): New section.
5613         * doc/c-ctype.texi: New file.
5614         * doc/c-strcase.texi: New file.
5615         * doc/c-strcaseeq.texi: New file.
5616         * doc/c-strcasestr.texi: New file.
5617         * doc/c-strstr.texi: New file.
5618         * doc/c-strtod.texi: New file.
5619         * doc/c-strtold.texi: New file.
5620
5621 2008-01-10  Eric Blake  <ebb9@byu.net>
5622
5623         * lib/relocatable.h: Fix a comment.
5624
5625 2008-01-10  Eric Blake  <ebb9@byu.net>
5626
5627         Share two-way algorithm.
5628         * lib/str-two-way.h: New file, merged from...
5629         * lib/memmem.c: ...here...
5630         * lib/strstr.c: ...and here.
5631         * modules/memmem (Files): Use it.
5632         * modules/strstr (Files): Likewise.
5633
5634         Avoid quadratic strstr implementations.
5635         * lib/strstr.c: New file.
5636         * m4/strstr.m4: Likewise.
5637         * modules/strstr: Likewise.
5638         * modules/strstr-tests: Likewise.
5639         * tests/test-strstr.c: Likewise.
5640         * lib/string.in.h (rpl_strstr): Declare.
5641         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5643         * modules/string (Makefile.am): Likewise.
5644         * MODULES.html.sh (string handling): Mention new module.
5645         * doc/functions/strstr.texi (strstr): Document the bug.
5646
5647 2008-01-10  Bruno Haible  <bruno@clisp.org>
5648
5649         * lib/relocatable.h (relocate): State whether result is freshly
5650         allocated or not.
5651         * lib/relocatable.c (relocate): Return a freshly allocated string
5652         instead of a pointer to a privately held string.
5653         Reported by Sylvain Beucler <beuc@gnu.org>.
5654
5655 2008-01-10  Colin Watson  <cjwatson@debian.org>
5656
5657         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5658         s/S_ISNLK/S_ISLNK/.
5659
5660 2008-01-09  Bruno Haible  <bruno@clisp.org>
5661
5662         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5663         and other files.
5664         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5665         if it's only a guess.
5666         * modules/memmem: Simplify by depending on memmem-simple.
5667
5668 2008-01-09  Bruno Haible  <bruno@clisp.org>
5669
5670         Work around OpenBSD 4.0 tdelete() bug.
5671         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5672         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5673         macros and don't redefine the enum values.
5674         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5675         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5676         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5677
5678 2008-01-09  Bruno Haible  <bruno@clisp.org>
5679
5680         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5681         (main): Don't perform the tests if setlocale did not install a UTF-8
5682         locale. Needed on OpenBSD 4.0.
5683         * modules/wcwidth-tests (Depends-on): Add localcharset.
5684
5685 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5686
5687         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5688         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5689         * NEWS: announce this.
5690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5691
5692 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5693         and Eric Blake  <ebb9@byu.net>
5694
5695         Add memmem-simple module.
5696         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5697         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5698         * modules/memmem-simple: New file.
5699         * modules/memmem (Description): Tweak.
5700         * MODULES.html.sh (string handling): Mention new module.
5701         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5702         addressed by memmem-simple.
5703         * NEWS: Document the difference.
5704
5705 2008-01-09  Eric Blake  <ebb9@byu.net>
5706
5707         Give gcc some memmem optimization hints.
5708         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5709         (strcasestr): Declare as pure.
5710         * modules/memmem (Maintainer): Claim my implementation.
5711
5712 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5713
5714         Support AIX 6.1 and higher.
5715         * build-aux/config.libpath: Likewise.
5716         * build-aux/config.rpath: Likewise.
5717
5718 2008-01-08  Jim Meyering  <meyering@redhat.com>
5719             Bruno Haible  <bruno@clisp.org>
5720
5721         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5722         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5723         Reported by Peter Fales in
5724         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5725
5726 2008-01-08  Bruno Haible  <bruno@clisp.org>
5727
5728         * modules/unictype/category-of (Depends-on): Add
5729         unictype/category-none.
5730         * modules/unictype/category-and-tests (Depends-on): Add
5731         unictype/category-{L,N,Lu,Nd}.
5732         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5733         * modules/unictype/category-or-tests (Depends-on): Add
5734         unictype/category-{L,N}.
5735         * modules/unictype/category-name-tests (Depends-on): Add
5736         unictype/category-{Z,Nl}.
5737         Reported by Simon Josefsson.
5738
5739 2008-01-08  Bruno Haible  <bruno@clisp.org>
5740
5741         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5742         convention better.
5743         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5744         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5745         Reported by Peter Miller <millerp@canb.auug.org.au>.
5746
5747 2008-01-08  Eric Blake  <ebb9@byu.net>
5748
5749         Rewrite memmem to guarantee linear complexity without malloc.
5750         * lib/memmem.c (memmem): Use Two-Way rather than
5751         Knuth-Morris-Pratt, to allow O(1) space usage.
5752         (critical_factorization, two_way_short_needle)
5753         (two_way_long_needle): New functions.
5754         (knuth_morris_pratt): Delete.
5755         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5756         Add stdint.
5757         * tests/test-memmem.c (main): Add tests for periodic needle and
5758         sublinear performance.
5759         * doc/functions/memmem.texi (memmem): Document other deficiencies
5760         in cygwin and older glibc.
5761
5762 2008-01-08  Bruno Haible  <bruno@clisp.org>
5763
5764         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5765         augmentation.
5766
5767 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5768
5769         Add a configure time option: --disable-acl.
5770         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5771         AC_ARG_ENABLE(acl).
5772
5773 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5774
5775         * tests/test-localename.c: Don't include obsolete "setenv.h".
5776
5777         * modules/localename-tests (Depends-on): Need unsetenv.
5778
5779 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5780
5781         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5782
5783 2008-01-06  Colin Watson  <cjwatson@debian.org>
5784
5785         * users.txt: Add man-db.
5786
5787 2008-01-07  Bruno Haible  <bruno@clisp.org>
5788
5789         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5790         previous section name.
5791
5792 2008-01-07  Bruno Haible  <bruno@clisp.org>
5793
5794         * lib/progname.c (set_program_name): Don't strip off a leading
5795         "lt-" prefix outside a .libs directory.
5796         Suggested by Paul Eggert.
5797
5798 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5799             Bruno Haible  <bruno@clisp.org>
5800
5801         Improve memory cleanup in 'relocatable' module.
5802         * lib/relocatable.h (compute_curr_prefix): Change return type to
5803         'char *'.
5804         * lib/relocatable.c (compute_curr_prefix): Change return type to
5805         'char *'. Free curr_installdir after use.
5806         (relocate): Free curr_prefix_better after use.
5807         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5808
5809 2008-01-01  Bruno Haible  <bruno@clisp.org>
5810
5811         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5812         failure on older glibc systems.
5813         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5814
5815 2008-01-05  Eric Blake  <ebb9@byu.net>
5816
5817         Avoid quadratic system memmem.
5818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5819         Reported by Ralf Wildenhues.
5820
5821         Fix memmem test for mingw.
5822         * modules/memmem-tests (configure.ac): Check for alarm.
5823         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5824         it.
5825         * doc/functions/memmem.texi: New file.
5826         * doc/gnulib.texi (Function Substitutes): Add memmem.
5827         Reported by Bruno Haible.
5828
5829 2008-01-04  Bruno Haible  <bruno@clisp.org>
5830
5831         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5832         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5833         gl_HEADER_STRING_H_DEFAULTS.
5834
5835 2008-01-04  Eric Blake  <ebb9@byu.net>
5836
5837         Shorten duration of memmem test.
5838         * tests/test-memmem.c (main): Use alarm to declare failure if test
5839         is taking too long.
5840         Reported by Ralf Wildenhues.
5841
5842 2007-12-21  Simon Josefsson  <simon@josefsson.org>
5843
5844         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5845         string, needed by strerror.
5846
5847 2008-01-03  Colin Watson  <cjwatson@debian.org>
5848             Bruno Haible  <bruno@clisp.org>
5849
5850         * doc/gnulib-tool.texi (Localization): New section.
5851
5852 2008-01-02  Bruno Haible  <bruno@clisp.org>
5853
5854         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5855         variables to 'unsigned char *' type.
5856         Reported by Paul Eggert.
5857
5858 2008-01-02  Jim Meyering  <jim@meyering.net>
5859
5860         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5861
5862 2007-12-31  Jim Meyering  <jim@meyering.net>
5863
5864         Avoid use of private FTS type name.
5865         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5866
5867 2007-12-30  Karl Berry  <karl@gnu.org>
5868
5869         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5870         work around defect in Texinfo and/or the standalone Info browser.
5871
5872 2007-12-30  Bruno Haible  <bruno@clisp.org>
5873
5874         Unify 5 copies of the KMP code.
5875         * lib/str-kmp.h: New file.
5876         * lib/c-strcasestr.c: Include str-kmp.h.
5877         (knuth_morris_pratt): Remove function.
5878         (c_strcasestr): Update.
5879         * lib/c-strstr.c: Include str-kmp.h.
5880         (knuth_morris_pratt): Remove function.
5881         (c_strcasestr): Update.
5882         * lib/mbscasestr.c: Include str-kmp.h.
5883         (knuth_morris_pratt_unibyte): Remove function.
5884         * lib/mbsstr.c: Include str-kmp.h.
5885         (knuth_morris_pratt_unibyte): Remove function.
5886         * lib/strcasestr.c: Include str-kmp.h.
5887         (knuth_morris_pratt): Remove function.
5888         (strcasestr): Update.
5889         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5890         * modules/c-strstr (Files): Likewise.
5891         * modules/mbscasestr (Files): Likewise.
5892         * modules/mbsstr (Files): Likewise.
5893         * modules/strcasestr (Files): Likewise.
5894         Suggested by Paul Eggert.
5895
5896 2007-12-30  Bruno Haible  <bruno@clisp.org>
5897
5898         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5899         defined.
5900
5901 2007-12-30  Bruno Haible  <bruno@clisp.org>
5902
5903         * lib/xmalloca.h: Include xalloc.h.
5904         (xnmalloca): New macro.
5905
5906 2007-12-30  Bruno Haible  <bruno@clisp.org>
5907
5908         * lib/malloca.h (nmalloca): New macro.
5909         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5910         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5911         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5912         knuth_morris_pratt_multibyte): Likewise.
5913         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5914         knuth_morris_pratt_multibyte): Likewise.
5915         * lib/memmem.c (knuth_morris_pratt): Likewise.
5916         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5917
5918 2007-12-25  Bruno Haible  <bruno@clisp.org>
5919
5920         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5921         * lib/glob.c: Don't include openat.h.
5922         (link_exists2_p): Add back the code that deals with the
5923         !GLOB_ALTDIRFUNC case.
5924         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5925         let it do the filename concatenation.
5926         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5927         * modules/glob (Depends-on): Remove openat.
5928
5929 2007-12-31  Bruno Haible  <bruno@clisp.org>
5930
5931         * modules/dirfd (License): Change to LGPLv2+.
5932         Approved by Jim Meyering.
5933
5934 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5935
5936         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5937         when multiplying M by sizeof (size_t).
5938
5939 2007-12-10  Martin Lambers  <marlam@marlam.de>
5940
5941         Override getpagesize on mingw.
5942         * lib/getpagesize.c: New file.
5943         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5944         * modules/getpagesize (Files): Add lib/getpagesize.c.
5945         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5947         REPLACE_GETPAGESIZE.
5948         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5949
5950 2007-12-25  Bruno Haible  <bruno@clisp.org>
5951
5952         * modules/localcharset (Notice): New field.
5953         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5954         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5955
5956 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5957             Bruno Haible  <bruno@clisp.org>
5958
5959         Avoid using the syntax symbol() in formatted documentation.
5960         * MODULES.html.sh (func_module): When replacing symbol() with a
5961         hyperlink, remove the parentheses. Show an error if some remain.
5962         Recognize and render the '...' syntax.
5963         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5964         Rework. Add paragraph about GCC's inlining.
5965         * doc/alloca.texi: Likewise.
5966         * doc/error.texi: Remove parentheses from symbol reference.
5967         * doc/gnulib-intro.texi: Likewise.
5968         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5969         * modules/fnmatch (Description): Reword to say "the ... function".
5970         * modules/full-read (Description): Likewise.
5971         * modules/full-write (Description): Likewise.
5972         * modules/safe-read (Description): Likewise.
5973         * modules/safe-write (Description): Likewise.
5974         * modules/strchrnul (Description): Likewise.
5975         * modules/trim (Description): Likewise.
5976         * modules/error (Description): Remove parentheses from symbol
5977         references.
5978         * modules/verror (Description): Likewise.
5979         Reported by Karl Berry.
5980
5981 2007-12-25  Bruno Haible  <bruno@clisp.org>
5982
5983         Fixup after 2007-10-16 commit.
5984         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5985
5986 2007-12-24  Bruno Haible  <bruno@clisp.org>
5987
5988         Make --enable-relocatable work with DESTDIR.
5989         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5990         to compute installdir from destprog.
5991         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5992         also set the RELOC_DESTDIR variable.
5993         Reported by Левашев Иван <octagram@bluebottle.com>.
5994
5995 2007-12-24  Bruno Haible  <bruno@clisp.org>
5996
5997         Fix link error due to xalloc_die().
5998         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5999         of xreadlink.
6000         * lib/relocwrapper.c: Update comments.
6001         * build-aux/install-reloc: Remove xreadlink.c from file list.
6002         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6003         xreadlink.c.
6004         Reported by Левашев Иван <octagram@bluebottle.com>.
6005
6006 2007-12-24  Bruno Haible  <bruno@clisp.org>
6007
6008         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6009         * lib/setenv.h: Remove file.
6010         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6011         lib/setenv.h.
6012         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6013         (Depends-on): Add stdlib.
6014         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6015         gl_FUNC_UNSETENV.
6016         (Include): Replace setenv.h with <stdlib.h>.
6017         * modules/unsetenv: New file.
6018         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6019         * lib/unsetenv.c: Include <stdlib.h> first.
6020         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6021         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6022         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6023         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6024         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6025         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6027         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6028         * doc/functions/unsetenv.texi: Update.
6029         * modules/xsetenv (Depends-on): Add unsetenv.
6030         * modules/getdate (Depends-on): Likewise.
6031         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6032         * lib/xsetenv.c: Don't include setenv.h.
6033         * lib/getdate.y: Likewise.
6034         * lib/relocwrapper.c: Likewise.
6035         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6036         (Depends-on): Add stdlib.
6037         * NEWS: Mention the changes.
6038         Reported by Левашев Иван <octagram@bluebottle.com>.
6039
6040 2007-12-23  Bruno Haible  <bruno@clisp.org>
6041
6042         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6043         indentation.
6044
6045 2007-12-23  Bruno Haible  <bruno@clisp.org>
6046
6047         * lib/c-strcasestr.c: Add more comments.
6048         * lib/c-strstr.c: Likewise.
6049         * lib/mbscasestr.c: Likewise.
6050         * lib/mbsstr.c: Likewise.
6051         * lib/strcasestr.c: Likewise.
6052         * lib/memmem.c: Likewise.
6053
6054 2007-12-23  Bruno Haible  <bruno@clisp.org>
6055
6056         * tests/test-memmem.c: Include <string.h> first.
6057
6058 2007-12-22  Bruno Haible  <bruno@clisp.org>
6059
6060         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6061         the contents of $testsbase.
6062         Reported by Ralf Wildenhues.
6063
6064 2007-12-22  Bruno Haible  <bruno@clisp.org>
6065
6066         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6067         two variables local_ldadd_before, local_ldadd_last.
6068
6069 2007-12-20  Eric Blake  <ebb9@byu.net>
6070
6071         Work around circular library issue when cross-compiling.
6072         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6073         that progname.o does not need to pull in rpl_memcmp.
6074
6075 2007-12-19  Eric Blake  <ebb9@byu.net>
6076
6077         Fix memmem to avoid O(n^2) worst-case complexity.
6078         * lib/memmem.c (knuth_morris_pratt): New function.
6079         (memmem): Use it if first few naive iterations fail.
6080         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6081         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6082         * modules/memchr (License): Likewise.
6083         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6084         malloca.
6085         * tests/test-memmem.c: Rewrite, borrowing ideas from
6086         test-mbsstr1.c; the old version wouldn't even compile!
6087         * modules/memmem-tests: New file.
6088         * lib/string.in.h (rpl_memmem): Add declaration.
6089         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6091         REPLACE_MEMMEM.
6092
6093 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6094
6095         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6096         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6097         before any system include files, and undef after them all.  This
6098         should fix a problem on VMS reported by John E. Malmberg in
6099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6100
6101 2007-12-17  Eric Blake  <ebb9@byu.net>
6102
6103         Revert addition of verify, for BSD/OS.
6104         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6105         can't handle large files, for the sake of obsolete platforms.
6106         * modules/fseeko (Depends-on): Remove verify.
6107         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6108         * doc/functions/ftello.texi (ftello): Likewise.
6109         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6110         Reported by Larry Jones.
6111
6112 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6113
6114         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6115         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6116
6117 2007-12-17  Jim Meyering  <meyering@redhat.com>
6118
6119         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6120         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6121         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6122         * modules/getcwd (Depends-on): Add openat.
6123         Reported by Petr Salinger.
6124
6125 2007-12-17  Bruno Haible  <bruno@clisp.org>
6126
6127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6128         avoid a segmentation fault of the configure test on x86_64 systems.
6129
6130 2007-12-15  Jim Meyering  <meyering@redhat.com>
6131
6132         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6133
6134 2007-12-13  Eric Blake  <ebb9@byu.net>
6135
6136         Another fseek test.
6137         * tests/test-fseek.c (main): Also test ungetc handling.
6138         * tests/test-fseeko.c (main): Likewise.
6139         * modules/fseeko (Depends-on): Add verify.
6140         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6141         large.
6142         Reported by Larry Jones.
6143
6144         Fix fseeko on mingw.
6145         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6146         seek.
6147
6148         Beef up fseek tests.
6149         * tests/test-fseek.c (main): Also test eof handling.
6150         * tests/test-fseeko.c (main): Likewise.
6151         Reported by Larry Jones.
6152
6153 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6154
6155         Fix fseeko on BSD-based platforms.
6156         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6157         successful seek.
6158
6159 2007-12-12  Eric Blake  <ebb9@byu.net>
6160
6161         Allow circular dependency of separate libtests.a
6162         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6163         when use_libtests.
6164
6165 2007-12-11  Eric Blake  <ebb9@byu.net>
6166
6167         Fix bug with -0.0L in previous patch.
6168         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6169         * tests/test-isnan.c (main): Also test on zeroes.
6170         * tests/test-isnanf.c (main): Likewise.
6171         * tests/test-isnanl.h (main): Likewise.
6172
6173         Detect pseudo-denormals on x86 even when cross-compiling.
6174         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6175         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6176         invalid bit patterns that happen to satisfy ==.
6177
6178         Avoid link failures with separate libtests.a.
6179         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6180         last, to satisfy circular dependencies.
6181
6182 2007-12-11  Eric Blake  <ebb9@byu.net>
6183         and Bruno Haible  <bruno@clisp.org>
6184
6185         Fix OpenBSD 4.0 <float.h> handling of long double.
6186         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6187         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6188         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6189
6190 2007-12-11  Jim Meyering  <meyering@redhat.com>
6191
6192         * users.txt: Add libvirt.
6193
6194         Support versions of autoconf prior to 2.59c.
6195         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6196         if it is not already defined.
6197
6198 2007-12-09  Bruno Haible  <bruno@clisp.org>
6199
6200         Let 'gnulib-tool --import' collect sources needed for the tests in
6201         tests/ rather than in lib/.
6202         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6203         argument. If true, add rules to generate libtests.a, and put libtests.a
6204         into $(LDADD). Consider source files in subdirectories and set
6205         uses_subdirs.
6206         (func_emit_initmacro_start, func_emit_initmacro_end,
6207         func_emit_initmacro_done): Pass all arguments explicitly.
6208         (func_import): Determine two module lists main_modules,
6209         testsrelated_modules. Determine use_libtests. Determine two variables
6210         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6211         instead of just sed_transform_lib_file. Determine two variables
6212         main_files and testsrelated_files. Compute 'files' as the union of
6213         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6214         func_add_or_update. In the generated gnulib-comp.m4, collect the
6215         object files for tests/ in different variables than those for lib/.
6216         Substitute LIBTESTS_LIBDEPS.
6217         (func_create_testdir): Combine the uses_subdirs results from
6218         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6219
6220 2007-12-09  Bruno Haible  <bruno@clisp.org>
6221
6222         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6223         the build-aux directory.
6224
6225 2007-12-09  Bruno Haible  <bruno@clisp.org>
6226
6227         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6228         introduced on 2006-09-09.
6229
6230 2007-12-07  Jim Meyering  <meyering@redhat.com>
6231
6232         Let these macros work also with autoconf-2.59.
6233         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6234         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6236
6237 2007-12-06  Jim Meyering  <meyering@redhat.com>
6238
6239         Avoid a configure-time syntax error in gl_FUNC_ACL.
6240         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6241         function in each branch, before testing the cache variable.
6242
6243 2007-12-04  Eric Blake  <ebb9@byu.net>
6244
6245         Make scripts executable.
6246         * build-aux/config.guess: Add execute permissions.
6247         * build-aux/config.sub: Likewise.
6248         * build-aux/gendocs.sh: Likewise.
6249
6250         Fix frexp on mingw.
6251         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6252         cross-compiling.
6253         * doc/functions/frexp.texi (frexp): Document the bug.
6254
6255         Make cygwin fseeko check more reliable.
6256         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6257         version numbers, rather than unrelated feature check.
6258         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6259         * doc/functions/ftello.texi (ftello): Likewise.
6260         Reported by Bruno Haible.
6261
6262         * m4/strerror.m4: Bump version number.
6263
6264 2007-12-03  Bruno Haible  <bruno@clisp.org>
6265
6266         * doc/functions/mprotect.texi: Mention the mingw problem.
6267
6268 2007-12-03  Eric Blake  <ebb9@byu.net>
6269
6270         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6271         REPLACE_STRERROR is initialized before this macro.
6272
6273 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6276         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6277         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6278         put -lsec in even for programs other than 'ls'.  This fixes a problem
6279         for gettext reported by Bruno Haible in
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6281         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6282         Add support for Solaris 10.  This isn't efficient, but should get the
6283         job done for now.
6284
6285 2007-12-03  James Youngman  <jay@gnu.org>
6286
6287         * doc/regexprops-generic.texi: change "an close-group" to "a
6288         close-group" and "illegal" to "not allowed".
6289
6290 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6291
6292         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6293         pr_byname.h. Needed for the rare case when the maintainer has done
6294         "make maintainer-clean" in the source directory and then attempts a
6295         build outside the source directory.
6296         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6297         scripts_byname.h.
6298
6299 2007-12-02  Martin Lambers <marlam@marlam.de>
6300             Bruno Haible  <bruno@clisp.org>
6301
6302         * lib/getpagesize.h: Remove file.
6303         * lib/unistd.in.h: Include declaration of getpagesize here.
6304         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6305         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6306         HAVE_SYS_PARAM_H.
6307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6308         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6309         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6310         (Depends-on): Add unistd.
6311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6312         (Include): Use <unistd.h> instead of getpagesize.h.
6313         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6314         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6315         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6316         gl_GETPAGESIZE invocation, already handled by module dependency.
6317         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6318
6319 2007-12-02  Bruno Haible  <bruno@clisp.org>
6320
6321         * modules/strings-tests: New file.
6322         * tests/test-strings.c: New file.
6323
6324         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6325         * lib/strings.in.h: New file.
6326         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6327         * m4/strings_h.m4: New file.
6328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6329         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6330         * modules/strings: New file.
6331         * modules/string (Makefile.am): Update.
6332         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6333         Reported by Karl Berry.
6334
6335 2007-12-01  Eric Blake  <ebb9@byu.net>
6336
6337         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6338         accomodate fix in cygwin 1.5.25.
6339
6340 2007-12-01  Jim Meyering  <meyering@redhat.com>
6341
6342         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6343         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6344         that would inhibit utf8-optimization of a regexp containing line-
6345         or buffer-anchors, e.g., `^', `$'.
6346
6347 2007-11-30  Bruno Haible  <bruno@clisp.org>
6348
6349         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6350         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6351         glthread_recursive_lock_init.
6352         * lib/lock.c (glthread_recursive_lock_init)
6353         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6354         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6355
6356 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6357
6358         New function qset_acl, like set_acl but with syscall semantics.
6359         * lib/acl.h (qset_acl): New decl.
6360         * lib/acl.c (qset_acl): New function.
6361         (set_acl): Use new function.  Use more-consistent diagnostics.
6362
6363 2007-11-28  Jim Meyering  <meyering@redhat.com>
6364
6365         * modules/physmem (License): Change from GPL to LGPLv2+.
6366
6367 2007-11-26  Bruno Haible  <bruno@clisp.org>
6368
6369         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6370         'long double' type has excess precision.
6371         Reported by Jim Meyering in
6372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6373
6374 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6375
6376         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6377         Sync from <http://gnu.org/licenses>.
6378         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6379         with license text from same location.
6380         * doc/maintain.texi, doc/standards.texi:  Sync from
6381         <http://savannah.gnu.org/projects/gnustandards>.
6382
6383 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
6384         and Jim Meyering  <meyering@redhat.com>
6385
6386         Adjust getdate' grammar to accept a slightly more regular language.
6387         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6388         Before, the former was rejected.
6389         * lib/getdate.y (digits_to_date_time): New function, factored
6390         out of ...
6391         (number): ...here.  Just call digits_to_date_time.
6392         (hybrid): New non-terminal to handle an <unsigned number,
6393         signed relative offset> sequence consistently.
6394
6395 2007-11-18  Jim Meyering  <meyering@redhat.com>
6396
6397         Pull my changes from coreutils:
6398         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6399         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6400         use of $gnulib_tool_option_extras, so that it's separated from the
6401         preceding argument.
6402
6403         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6404         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6405         parent destination directories before copying a file into place.
6406
6407 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6408
6409         bootstrap: work also with 4-argument variant of AC_INIT
6410         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6411
6412 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6413
6414         Port test-getaddrinfo to Solaris.
6415         Problem reported by Bruno Haible in
6416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6417         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6418         explanation of setting 'hints'.
6419         Don't reject an implementation merely because it returns EAI_SERVICE.
6420         (EAI_SERVICE): Define to 0 if not defined.
6421
6422 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         The license of gnu-make and posix-shell is now "GPLed build tool".
6425         * modules/gnu-make (License): Likewise.
6426         * modules/posix-shell (License): Likewise.
6427
6428         New module posix-shell, for determining a POSIX shell
6429         or perhaps something that is close enough to a POSIX shell.
6430         * m4/posix-shell.m4: New file.
6431         * modules/posix-shell: New file.
6432
6433         * MODULES.html.sh: Mention new module.
6434
6435         New module gnu-make, for determining whether we're using GNU Make.
6436         * m4/gnu-make.m4: New file.
6437         * modules/gnu-make: New file.
6438         * MODULES.html.sh: Mention new module.
6439
6440 2007-11-14  Jim Meyering  <meyering@redhat.com>
6441
6442         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6443         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6444         use this macro to create a function _definition_.
6445         Remove useless "#undef ARGMATCH_DIE".
6446
6447 2007-11-14  Bruno Haible  <bruno@clisp.org>
6448
6449         * lib/config.charset: Update for OpenBSD 4.1.
6450         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6451
6452 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         Document 64-bit #if problems in stdint.texi.
6455         * doc/headers/stdint.texi (stdint.h): Mention problems with
6456         64-bit-#if, and how to work around them.
6457
6458         Don't insist on 'long long int' support in the preprocessor.  It
6459         breaks too many things.  For example, PRIdMAX still uses a 'long
6460         long int' format with the latest Sun compiler, even though
6461         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6462         preprocessor problem.  This causes the latest coreutils to dump
6463         core on Solaris 10 sparc with the Sun C compiler.
6464         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6465         the troublesome expressions at configure-time, not at #if-time.
6466         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6467         preprocessor.
6468         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6469         compile-time C checks, done at 'configure'-time.
6470         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6471         * modules/inttypes (Makefile): Substitute the new symbols that
6472         gl_INTTYPES_H now generates.
6473         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6474
6475 2007-11-12  Bruno Haible  <bruno@clisp.org>
6476
6477         Tests for Unicode character classification functions.
6478
6479         * modules/unictype/bidicategory-byname-tests: New file.
6480         * modules/unictype/bidicategory-name-tests: New file.
6481         * modules/unictype/bidicategory-of-tests: New file.
6482         * modules/unictype/bidicategory-test-tests: New file.
6483         * modules/unictype/block-list-tests: New file.
6484         * modules/unictype/block-of-tests: New file.
6485         * modules/unictype/block-test-tests: New file.
6486         * modules/unictype/category-C-tests: New file.
6487         * modules/unictype/category-Cc-tests: New file.
6488         * modules/unictype/category-Cf-tests: New file.
6489         * modules/unictype/category-Cn-tests: New file.
6490         * modules/unictype/category-Co-tests: New file.
6491         * modules/unictype/category-Cs-tests: New file.
6492         * modules/unictype/category-L-tests: New file.
6493         * modules/unictype/category-Ll-tests: New file.
6494         * modules/unictype/category-Lm-tests: New file.
6495         * modules/unictype/category-Lo-tests: New file.
6496         * modules/unictype/category-Lt-tests: New file.
6497         * modules/unictype/category-Lu-tests: New file.
6498         * modules/unictype/category-M-tests: New file.
6499         * modules/unictype/category-Mc-tests: New file.
6500         * modules/unictype/category-Me-tests: New file.
6501         * modules/unictype/category-Mn-tests: New file.
6502         * modules/unictype/category-N-tests: New file.
6503         * modules/unictype/category-Nd-tests: New file.
6504         * modules/unictype/category-Nl-tests: New file.
6505         * modules/unictype/category-No-tests: New file.
6506         * modules/unictype/category-P-tests: New file.
6507         * modules/unictype/category-Pc-tests: New file.
6508         * modules/unictype/category-Pd-tests: New file.
6509         * modules/unictype/category-Pe-tests: New file.
6510         * modules/unictype/category-Pf-tests: New file.
6511         * modules/unictype/category-Pi-tests: New file.
6512         * modules/unictype/category-Po-tests: New file.
6513         * modules/unictype/category-Ps-tests: New file.
6514         * modules/unictype/category-S-tests: New file.
6515         * modules/unictype/category-Sc-tests: New file.
6516         * modules/unictype/category-Sk-tests: New file.
6517         * modules/unictype/category-Sm-tests: New file.
6518         * modules/unictype/category-So-tests: New file.
6519         * modules/unictype/category-Z-tests: New file.
6520         * modules/unictype/category-Zl-tests: New file.
6521         * modules/unictype/category-Zp-tests: New file.
6522         * modules/unictype/category-Zs-tests: New file.
6523         * modules/unictype/category-and-not-tests: New file.
6524         * modules/unictype/category-and-tests: New file.
6525         * modules/unictype/category-byname-tests: New file.
6526         * modules/unictype/category-name-tests: New file.
6527         * modules/unictype/category-none-tests: New file.
6528         * modules/unictype/category-of-tests: New file.
6529         * modules/unictype/category-or-tests: New file.
6530         * modules/unictype/category-test-withtable-tests: New file.
6531         * modules/unictype/combining-class-tests: New file.
6532         * modules/unictype/ctype-alnum-tests: New file.
6533         * modules/unictype/ctype-alpha-tests: New file.
6534         * modules/unictype/ctype-blank-tests: New file.
6535         * modules/unictype/ctype-cntrl-tests: New file.
6536         * modules/unictype/ctype-digit-tests: New file.
6537         * modules/unictype/ctype-graph-tests: New file.
6538         * modules/unictype/ctype-lower-tests: New file.
6539         * modules/unictype/ctype-print-tests: New file.
6540         * modules/unictype/ctype-punct-tests: New file.
6541         * modules/unictype/ctype-space-tests: New file.
6542         * modules/unictype/ctype-upper-tests: New file.
6543         * modules/unictype/ctype-xdigit-tests: New file.
6544         * modules/unictype/decimal-digit-tests: New file.
6545         * modules/unictype/digit-tests: New file.
6546         * modules/unictype/mirror-tests: New file.
6547         * modules/unictype/numeric-tests: New file.
6548         * modules/unictype/property-alphabetic-tests: New file.
6549         * modules/unictype/property-ascii-hex-digit-tests: New file.
6550         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6551         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6552         * modules/unictype/property-bidi-block-separator-tests: New file.
6553         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6554         * modules/unictype/property-bidi-common-separator-tests: New file.
6555         * modules/unictype/property-bidi-control-tests: New file.
6556         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6557         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6558         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6559         * modules/unictype/property-bidi-european-digit-tests: New file.
6560         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6561         * modules/unictype/property-bidi-left-to-right-tests: New file.
6562         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6563         * modules/unictype/property-bidi-other-neutral-tests: New file.
6564         * modules/unictype/property-bidi-pdf-tests: New file.
6565         * modules/unictype/property-bidi-segment-separator-tests: New file.
6566         * modules/unictype/property-bidi-whitespace-tests: New file.
6567         * modules/unictype/property-byname-tests: New file.
6568         * modules/unictype/property-combining-tests: New file.
6569         * modules/unictype/property-composite-tests: New file.
6570         * modules/unictype/property-currency-symbol-tests: New file.
6571         * modules/unictype/property-dash-tests: New file.
6572         * modules/unictype/property-decimal-digit-tests: New file.
6573         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6574         * modules/unictype/property-deprecated-tests: New file.
6575         * modules/unictype/property-diacritic-tests: New file.
6576         * modules/unictype/property-extender-tests: New file.
6577         * modules/unictype/property-format-control-tests: New file.
6578         * modules/unictype/property-grapheme-base-tests: New file.
6579         * modules/unictype/property-grapheme-extend-tests: New file.
6580         * modules/unictype/property-grapheme-link-tests: New file.
6581         * modules/unictype/property-hex-digit-tests: New file.
6582         * modules/unictype/property-hyphen-tests: New file.
6583         * modules/unictype/property-id-continue-tests: New file.
6584         * modules/unictype/property-id-start-tests: New file.
6585         * modules/unictype/property-ideographic-tests: New file.
6586         * modules/unictype/property-ids-binary-operator-tests: New file.
6587         * modules/unictype/property-ids-trinary-operator-tests: New file.
6588         * modules/unictype/property-ignorable-control-tests: New file.
6589         * modules/unictype/property-iso-control-tests: New file.
6590         * modules/unictype/property-join-control-tests: New file.
6591         * modules/unictype/property-left-of-pair-tests: New file.
6592         * modules/unictype/property-line-separator-tests: New file.
6593         * modules/unictype/property-logical-order-exception-tests: New file.
6594         * modules/unictype/property-lowercase-tests: New file.
6595         * modules/unictype/property-math-tests: New file.
6596         * modules/unictype/property-non-break-tests: New file.
6597         * modules/unictype/property-not-a-character-tests: New file.
6598         * modules/unictype/property-numeric-tests: New file.
6599         * modules/unictype/property-other-alphabetic-tests: New file.
6600         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6601         * modules/unictype/property-other-grapheme-extend-tests: New file.
6602         * modules/unictype/property-other-id-continue-tests: New file.
6603         * modules/unictype/property-other-id-start-tests: New file.
6604         * modules/unictype/property-other-lowercase-tests: New file.
6605         * modules/unictype/property-other-math-tests: New file.
6606         * modules/unictype/property-other-uppercase-tests: New file.
6607         * modules/unictype/property-paired-punctuation-tests: New file.
6608         * modules/unictype/property-paragraph-separator-tests: New file.
6609         * modules/unictype/property-pattern-syntax-tests: New file.
6610         * modules/unictype/property-pattern-white-space-tests: New file.
6611         * modules/unictype/property-private-use-tests: New file.
6612         * modules/unictype/property-punctuation-tests: New file.
6613         * modules/unictype/property-quotation-mark-tests: New file.
6614         * modules/unictype/property-radical-tests: New file.
6615         * modules/unictype/property-sentence-terminal-tests: New file.
6616         * modules/unictype/property-soft-dotted-tests: New file.
6617         * modules/unictype/property-space-tests: New file.
6618         * modules/unictype/property-terminal-punctuation-tests: New file.
6619         * modules/unictype/property-test-tests: New file.
6620         * modules/unictype/property-titlecase-tests: New file.
6621         * modules/unictype/property-unassigned-code-value-tests: New file.
6622         * modules/unictype/property-unified-ideograph-tests: New file.
6623         * modules/unictype/property-uppercase-tests: New file.
6624         * modules/unictype/property-variation-selector-tests: New file.
6625         * modules/unictype/property-white-space-tests: New file.
6626         * modules/unictype/property-xid-continue-tests: New file.
6627         * modules/unictype/property-xid-start-tests: New file.
6628         * modules/unictype/property-zero-width-tests: New file.
6629         * modules/unictype/scripts-tests: New file.
6630         * modules/unictype/syntax-c-ident-tests: New file.
6631         * modules/unictype/syntax-c-whitespace-tests: New file.
6632         * modules/unictype/syntax-java-ident-tests: New file.
6633         * modules/unictype/syntax-java-whitespace-tests: New file.
6634         * tests/unictype/test-bidi_byname.c: New file.
6635         * tests/unictype/test-bidi_name.c: New file.
6636         * tests/unictype/test-bidi_of.c: New file.
6637         * tests/unictype/test-bidi_test.c: New file.
6638         * tests/unictype/test-block_list.c: New file.
6639         * tests/unictype/test-block_of.c: New file.
6640         * tests/unictype/test-block_test.c: New file.
6641         * tests/unictype/test-categ_and.c: New file.
6642         * tests/unictype/test-categ_and_not.c: New file.
6643         * tests/unictype/test-categ_byname.c: New file.
6644         * tests/unictype/test-categ_name.c: New file.
6645         * tests/unictype/test-categ_none.c: New file.
6646         * tests/unictype/test-categ_of.c: New file.
6647         * tests/unictype/test-categ_or.c: New file.
6648         * tests/unictype/test-categ_test_withtable.c: New file.
6649         * tests/unictype/test-combining.c: New file.
6650         * tests/unictype/test-decdigit.c: New file.
6651         * tests/unictype/test-digit.c: New file.
6652         * tests/unictype/test-mirror.c: New file.
6653         * tests/unictype/test-numeric.c: New file.
6654         * tests/unictype/test-pr_byname.c: New file.
6655         * tests/unictype/test-pr_test.c: New file.
6656         * tests/unictype/test-predicate-part1.h: New file.
6657         * tests/unictype/test-predicate-part2.h: New file.
6658         * tests/unictype/test-scripts.c: New file.
6659         * tests/unictype/test-sy_c_ident.c: New file.
6660         * tests/unictype/test-sy_java_ident.c: New file.
6661
6662         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6663         for Unicode 5.0.0.
6664         * tests/unictype/test-categ_Cc.c: Likewise.
6665         * tests/unictype/test-categ_Cf.c: Likewise.
6666         * tests/unictype/test-categ_Cn.c: Likewise.
6667         * tests/unictype/test-categ_Co.c: Likewise.
6668         * tests/unictype/test-categ_Cs.c: Likewise.
6669         * tests/unictype/test-categ_L.c: Likewise.
6670         * tests/unictype/test-categ_Ll.c: Likewise.
6671         * tests/unictype/test-categ_Lm.c: Likewise.
6672         * tests/unictype/test-categ_Lo.c: Likewise.
6673         * tests/unictype/test-categ_Lt.c: Likewise.
6674         * tests/unictype/test-categ_Lu.c: Likewise.
6675         * tests/unictype/test-categ_M.c: Likewise.
6676         * tests/unictype/test-categ_Mc.c: Likewise.
6677         * tests/unictype/test-categ_Me.c: Likewise.
6678         * tests/unictype/test-categ_Mn.c: Likewise.
6679         * tests/unictype/test-categ_N.c: Likewise.
6680         * tests/unictype/test-categ_Nd.c: Likewise.
6681         * tests/unictype/test-categ_Nl.c: Likewise.
6682         * tests/unictype/test-categ_No.c: Likewise.
6683         * tests/unictype/test-categ_P.c: Likewise.
6684         * tests/unictype/test-categ_Pc.c: Likewise.
6685         * tests/unictype/test-categ_Pd.c: Likewise.
6686         * tests/unictype/test-categ_Pe.c: Likewise.
6687         * tests/unictype/test-categ_Pf.c: Likewise.
6688         * tests/unictype/test-categ_Pi.c: Likewise.
6689         * tests/unictype/test-categ_Po.c: Likewise.
6690         * tests/unictype/test-categ_Ps.c: Likewise.
6691         * tests/unictype/test-categ_S.c: Likewise.
6692         * tests/unictype/test-categ_Sc.c: Likewise.
6693         * tests/unictype/test-categ_Sk.c: Likewise.
6694         * tests/unictype/test-categ_Sm.c: Likewise.
6695         * tests/unictype/test-categ_So.c: Likewise.
6696         * tests/unictype/test-categ_Z.c: Likewise.
6697         * tests/unictype/test-categ_Zl.c: Likewise.
6698         * tests/unictype/test-categ_Zp.c: Likewise.
6699         * tests/unictype/test-categ_Zs.c: Likewise.
6700         * tests/unictype/test-ctype_alnum.c: Likewise.
6701         * tests/unictype/test-ctype_alpha.c: Likewise.
6702         * tests/unictype/test-ctype_blank.c: Likewise.
6703         * tests/unictype/test-ctype_cntrl.c: Likewise.
6704         * tests/unictype/test-ctype_digit.c: Likewise.
6705         * tests/unictype/test-ctype_graph.c: Likewise.
6706         * tests/unictype/test-ctype_lower.c: Likewise.
6707         * tests/unictype/test-ctype_print.c: Likewise.
6708         * tests/unictype/test-ctype_punct.c: Likewise.
6709         * tests/unictype/test-ctype_space.c: Likewise.
6710         * tests/unictype/test-ctype_upper.c: Likewise.
6711         * tests/unictype/test-ctype_xdigit.c: Likewise.
6712         * tests/unictype/test-decdigit.h: Likewise.
6713         * tests/unictype/test-digit.h: Likewise.
6714         * tests/unictype/test-numeric.h: Likewise.
6715         * tests/unictype/test-pr_alphabetic.c: Likewise.
6716         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6717         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6718         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6719         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6720         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6721         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6722         * tests/unictype/test-pr_bidi_control.c: Likewise.
6723         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6724         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6725         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6726         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6727         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6728         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6729         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6730         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6731         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6732         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6733         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6734         * tests/unictype/test-pr_combining.c: Likewise.
6735         * tests/unictype/test-pr_composite.c: Likewise.
6736         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6737         * tests/unictype/test-pr_dash.c: Likewise.
6738         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6739         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6740         * tests/unictype/test-pr_deprecated.c: Likewise.
6741         * tests/unictype/test-pr_diacritic.c: Likewise.
6742         * tests/unictype/test-pr_extender.c: Likewise.
6743         * tests/unictype/test-pr_format_control.c: Likewise.
6744         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6745         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6746         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6747         * tests/unictype/test-pr_hex_digit.c: Likewise.
6748         * tests/unictype/test-pr_hyphen.c: Likewise.
6749         * tests/unictype/test-pr_id_continue.c: Likewise.
6750         * tests/unictype/test-pr_id_start.c: Likewise.
6751         * tests/unictype/test-pr_ideographic.c: Likewise.
6752         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6753         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6754         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6755         * tests/unictype/test-pr_iso_control.c: Likewise.
6756         * tests/unictype/test-pr_join_control.c: Likewise.
6757         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6758         * tests/unictype/test-pr_line_separator.c: Likewise.
6759         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6760         * tests/unictype/test-pr_lowercase.c: Likewise.
6761         * tests/unictype/test-pr_math.c: Likewise.
6762         * tests/unictype/test-pr_non_break.c: Likewise.
6763         * tests/unictype/test-pr_not_a_character.c: Likewise.
6764         * tests/unictype/test-pr_numeric.c: Likewise.
6765         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6766         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6767         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6768         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6769         * tests/unictype/test-pr_other_id_start.c: Likewise.
6770         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6771         * tests/unictype/test-pr_other_math.c: Likewise.
6772         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6773         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6774         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6775         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6776         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6777         * tests/unictype/test-pr_private_use.c: Likewise.
6778         * tests/unictype/test-pr_punctuation.c: Likewise.
6779         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6780         * tests/unictype/test-pr_radical.c: Likewise.
6781         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6782         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6783         * tests/unictype/test-pr_space.c: Likewise.
6784         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6785         * tests/unictype/test-pr_titlecase.c: Likewise.
6786         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6787         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6788         * tests/unictype/test-pr_uppercase.c: Likewise.
6789         * tests/unictype/test-pr_variation_selector.c: Likewise.
6790         * tests/unictype/test-pr_white_space.c: Likewise.
6791         * tests/unictype/test-pr_xid_continue.c: Likewise.
6792         * tests/unictype/test-pr_xid_start.c: Likewise.
6793         * tests/unictype/test-pr_zero_width.c: Likewise.
6794         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6795         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6796
6797 2007-11-12  Bruno Haible  <bruno@clisp.org>
6798
6799         Unicode character classification functions.
6800         * lib/unictype.h: New file.
6801         * modules/unictype/base: New file.
6802         * modules/unictype/category-L: New file.
6803         * modules/unictype/category-Lu: New file.
6804         * modules/unictype/category-Ll: New file.
6805         * modules/unictype/category-Lt: New file.
6806         * modules/unictype/category-Lm: New file.
6807         * modules/unictype/category-Lo: New file.
6808         * modules/unictype/category-M: New file.
6809         * modules/unictype/category-Mn: New file.
6810         * modules/unictype/category-Mc: New file.
6811         * modules/unictype/category-Me: New file.
6812         * modules/unictype/category-N: New file.
6813         * modules/unictype/category-Nd: New file.
6814         * modules/unictype/category-Nl: New file.
6815         * modules/unictype/category-No: New file.
6816         * modules/unictype/category-P: New file.
6817         * modules/unictype/category-Pc: New file.
6818         * modules/unictype/category-Pd: New file.
6819         * modules/unictype/category-Ps: New file.
6820         * modules/unictype/category-Pe: New file.
6821         * modules/unictype/category-Pi: New file.
6822         * modules/unictype/category-Pf: New file.
6823         * modules/unictype/category-Po: New file.
6824         * modules/unictype/category-S: New file.
6825         * modules/unictype/category-Sm: New file.
6826         * modules/unictype/category-Sc: New file.
6827         * modules/unictype/category-Sk: New file.
6828         * modules/unictype/category-So: New file.
6829         * modules/unictype/category-Z: New file.
6830         * modules/unictype/category-Zs: New file.
6831         * modules/unictype/category-Zl: New file.
6832         * modules/unictype/category-Zp: New file.
6833         * modules/unictype/category-C: New file.
6834         * modules/unictype/category-Cc: New file.
6835         * modules/unictype/category-Cf: New file.
6836         * modules/unictype/category-Cs: New file.
6837         * modules/unictype/category-Co: New file.
6838         * modules/unictype/category-Cn: New file.
6839         * modules/unictype/category-or: New file.
6840         * modules/unictype/category-of: New file.
6841         * modules/unictype/category-test: New file.
6842         * modules/unictype/category-test-withtable: New file.
6843         * modules/unictype/category-byname: New file.
6844         * modules/unictype/category-none: New file.
6845         * modules/unictype/category-and: New file.
6846         * modules/unictype/category-and-not: New file.
6847         * modules/unictype/category-name: New file.
6848         * modules/unictype/combining-class: New file.
6849         * modules/unictype/category-all: New file.
6850         * modules/unictype/bidicategory-all: New file.
6851         * modules/unictype/bidicategory-byname: New file.
6852         * modules/unictype/bidicategory-name: New file.
6853         * modules/unictype/bidicategory-of: New file.
6854         * modules/unictype/bidicategory-test: New file.
6855         * modules/unictype/decimal-digit: New file.
6856         * modules/unictype/digit: New file.
6857         * modules/unictype/numeric: New file.
6858         * modules/unictype/mirror: New file.
6859         * modules/unictype/property-white-space: New file.
6860         * modules/unictype/property-alphabetic: New file.
6861         * modules/unictype/property-other-alphabetic: New file.
6862         * modules/unictype/property-not-a-character: New file.
6863         * modules/unictype/property-default-ignorable-code-point: New file.
6864         * modules/unictype/property-other-default-ignorable-code-point: New
6865         file.
6866         * modules/unictype/property-deprecated: New file.
6867         * modules/unictype/property-logical-order-exception: New file.
6868         * modules/unictype/property-variation-selector: New file.
6869         * modules/unictype/property-private-use: New file.
6870         * modules/unictype/property-unassigned-code-value: New file.
6871         * modules/unictype/property-uppercase: New file.
6872         * modules/unictype/property-other-uppercase: New file.
6873         * modules/unictype/property-lowercase: New file.
6874         * modules/unictype/property-other-lowercase: New file.
6875         * modules/unictype/property-titlecase: New file.
6876         * modules/unictype/property-soft-dotted: New file.
6877         * modules/unictype/property-id-start: New file.
6878         * modules/unictype/property-other-id-start: New file.
6879         * modules/unictype/property-id-continue: New file.
6880         * modules/unictype/property-other-id-continue: New file.
6881         * modules/unictype/property-xid-start: New file.
6882         * modules/unictype/property-xid-continue: New file.
6883         * modules/unictype/property-pattern-white-space: New file.
6884         * modules/unictype/property-pattern-syntax: New file.
6885         * modules/unictype/property-join-control: New file.
6886         * modules/unictype/property-grapheme-base: New file.
6887         * modules/unictype/property-grapheme-extend: New file.
6888         * modules/unictype/property-other-grapheme-extend: New file.
6889         * modules/unictype/property-grapheme-link: New file.
6890         * modules/unictype/property-bidi-control: New file.
6891         * modules/unictype/property-bidi-left-to-right: New file.
6892         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6893         * modules/unictype/property-bidi-arabic-right-to-left: New file.
6894         * modules/unictype/property-bidi-european-digit: New file.
6895         * modules/unictype/property-bidi-eur-num-separator: New file.
6896         * modules/unictype/property-bidi-eur-num-terminator: New file.
6897         * modules/unictype/property-bidi-arabic-digit: New file.
6898         * modules/unictype/property-bidi-common-separator: New file.
6899         * modules/unictype/property-bidi-block-separator: New file.
6900         * modules/unictype/property-bidi-segment-separator: New file.
6901         * modules/unictype/property-bidi-whitespace: New file.
6902         * modules/unictype/property-bidi-non-spacing-mark: New file.
6903         * modules/unictype/property-bidi-boundary-neutral: New file.
6904         * modules/unictype/property-bidi-pdf: New file.
6905         * modules/unictype/property-bidi-embedding-or-override: New file.
6906         * modules/unictype/property-bidi-other-neutral: New file.
6907         * modules/unictype/property-hex-digit: New file.
6908         * modules/unictype/property-ascii-hex-digit: New file.
6909         * modules/unictype/property-ideographic: New file.
6910         * modules/unictype/property-unified-ideograph: New file.
6911         * modules/unictype/property-radical: New file.
6912         * modules/unictype/property-ids-binary-operator: New file.
6913         * modules/unictype/property-ids-trinary-operator: New file.
6914         * modules/unictype/property-zero-width: New file.
6915         * modules/unictype/property-space: New file.
6916         * modules/unictype/property-non-break: New file.
6917         * modules/unictype/property-iso-control: New file.
6918         * modules/unictype/property-format-control: New file.
6919         * modules/unictype/property-dash: New file.
6920         * modules/unictype/property-hyphen: New file.
6921         * modules/unictype/property-punctuation: New file.
6922         * modules/unictype/property-line-separator: New file.
6923         * modules/unictype/property-paragraph-separator: New file.
6924         * modules/unictype/property-quotation-mark: New file.
6925         * modules/unictype/property-sentence-terminal: New file.
6926         * modules/unictype/property-terminal-punctuation: New file.
6927         * modules/unictype/property-currency-symbol: New file.
6928         * modules/unictype/property-math: New file.
6929         * modules/unictype/property-other-math: New file.
6930         * modules/unictype/property-paired-punctuation: New file.
6931         * modules/unictype/property-left-of-pair: New file.
6932         * modules/unictype/property-combining: New file.
6933         * modules/unictype/property-composite: New file.
6934         * modules/unictype/property-decimal-digit: New file.
6935         * modules/unictype/property-numeric: New file.
6936         * modules/unictype/property-diacritic: New file.
6937         * modules/unictype/property-extender: New file.
6938         * modules/unictype/property-ignorable-control: New file.
6939         * modules/unictype/property-test: New file.
6940         * modules/unictype/property-byname: New file.
6941         * modules/unictype/property-all: New file.
6942         * modules/unictype/scripts: New file.
6943         * modules/unictype/scripts-all: New file.
6944         * modules/unictype/block-of: New file.
6945         * modules/unictype/block-test: New file.
6946         * modules/unictype/block-list: New file.
6947         * modules/unictype/block-all: New file.
6948         * modules/unictype/syntax-c-whitespace: New file.
6949         * modules/unictype/syntax-java-whitespace: New file.
6950         * modules/unictype/syntax-c-ident: New file.
6951         * modules/unictype/syntax-java-ident: New file.
6952         * modules/unictype/ctype-alnum: New file.
6953         * modules/unictype/ctype-alpha: New file.
6954         * modules/unictype/ctype-cntrl: New file.
6955         * modules/unictype/ctype-digit: New file.
6956         * modules/unictype/ctype-graph: New file.
6957         * modules/unictype/ctype-lower: New file.
6958         * modules/unictype/ctype-print: New file.
6959         * modules/unictype/ctype-punct: New file.
6960         * modules/unictype/ctype-space: New file.
6961         * modules/unictype/ctype-upper: New file.
6962         * modules/unictype/ctype-xdigit: New file.
6963         * modules/unictype/ctype-blank: New file.
6964         * lib/unictype/bidi_byname.c: New file.
6965         * lib/unictype/bidi_name.c: New file.
6966         * lib/unictype/bidi_of.c: New file.
6967         * lib/unictype/bidi_test.c: New file.
6968         * lib/unictype/bitmap.h: New file.
6969         * lib/unictype/block_test.c: New file.
6970         * lib/unictype/blocks.c: New file.
6971         * lib/unictype/categ_C.c: New file.
6972         * lib/unictype/categ_Cc.c: New file.
6973         * lib/unictype/categ_Cf.c: New file.
6974         * lib/unictype/categ_Cn.c: New file.
6975         * lib/unictype/categ_Co.c: New file.
6976         * lib/unictype/categ_Cs.c: New file.
6977         * lib/unictype/categ_L.c: New file.
6978         * lib/unictype/categ_Ll.c: New file.
6979         * lib/unictype/categ_Lm.c: New file.
6980         * lib/unictype/categ_Lo.c: New file.
6981         * lib/unictype/categ_Lt.c: New file.
6982         * lib/unictype/categ_Lu.c: New file.
6983         * lib/unictype/categ_M.c: New file.
6984         * lib/unictype/categ_Mc.c: New file.
6985         * lib/unictype/categ_Me.c: New file.
6986         * lib/unictype/categ_Mn.c: New file.
6987         * lib/unictype/categ_N.c: New file.
6988         * lib/unictype/categ_Nd.c: New file.
6989         * lib/unictype/categ_Nl.c: New file.
6990         * lib/unictype/categ_No.c: New file.
6991         * lib/unictype/categ_P.c: New file.
6992         * lib/unictype/categ_Pc.c: New file.
6993         * lib/unictype/categ_Pd.c: New file.
6994         * lib/unictype/categ_Pe.c: New file.
6995         * lib/unictype/categ_Pf.c: New file.
6996         * lib/unictype/categ_Pi.c: New file.
6997         * lib/unictype/categ_Po.c: New file.
6998         * lib/unictype/categ_Ps.c: New file.
6999         * lib/unictype/categ_S.c: New file.
7000         * lib/unictype/categ_Sc.c: New file.
7001         * lib/unictype/categ_Sk.c: New file.
7002         * lib/unictype/categ_Sm.c: New file.
7003         * lib/unictype/categ_So.c: New file.
7004         * lib/unictype/categ_Z.c: New file.
7005         * lib/unictype/categ_Zl.c: New file.
7006         * lib/unictype/categ_Zp.c: New file.
7007         * lib/unictype/categ_Zs.c: New file.
7008         * lib/unictype/categ_and.c: New file.
7009         * lib/unictype/categ_and_not.c: New file.
7010         * lib/unictype/categ_byname.c: New file.
7011         * lib/unictype/categ_name.c: New file.
7012         * lib/unictype/categ_none.c: New file.
7013         * lib/unictype/categ_of.c: New file.
7014         * lib/unictype/categ_or.c: New file.
7015         * lib/unictype/categ_test.c: New file.
7016         * lib/unictype/combining.c: New file.
7017         * lib/unictype/ctype_alnum.c: New file.
7018         * lib/unictype/ctype_alpha.c: New file.
7019         * lib/unictype/ctype_blank.c: New file.
7020         * lib/unictype/ctype_cntrl.c: New file.
7021         * lib/unictype/ctype_digit.c: New file.
7022         * lib/unictype/ctype_graph.c: New file.
7023         * lib/unictype/ctype_lower.c: New file.
7024         * lib/unictype/ctype_print.c: New file.
7025         * lib/unictype/ctype_punct.c: New file.
7026         * lib/unictype/ctype_space.c: New file.
7027         * lib/unictype/ctype_upper.c: New file.
7028         * lib/unictype/ctype_xdigit.c: New file.
7029         * lib/unictype/decdigit.c: New file.
7030         * lib/unictype/digit.c: New file.
7031         * lib/unictype/identsyntaxmap.h: New file.
7032         * lib/unictype/mirror.c: New file.
7033         * lib/unictype/numeric.c: New file.
7034         * lib/unictype/pr_alphabetic.c: New file.
7035         * lib/unictype/pr_ascii_hex_digit.c: New file.
7036         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7037         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7038         * lib/unictype/pr_bidi_block_separator.c: New file.
7039         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7040         * lib/unictype/pr_bidi_common_separator.c: New file.
7041         * lib/unictype/pr_bidi_control.c: New file.
7042         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7043         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7044         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7045         * lib/unictype/pr_bidi_european_digit.c: New file.
7046         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7047         * lib/unictype/pr_bidi_left_to_right.c: New file.
7048         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7049         * lib/unictype/pr_bidi_other_neutral.c: New file.
7050         * lib/unictype/pr_bidi_pdf.c: New file.
7051         * lib/unictype/pr_bidi_segment_separator.c: New file.
7052         * lib/unictype/pr_bidi_whitespace.c: New file.
7053         * lib/unictype/pr_byname.c: New file.
7054         * lib/unictype/pr_byname.gperf: New file.
7055         * lib/unictype/pr_combining.c: New file.
7056         * lib/unictype/pr_composite.c: New file.
7057         * lib/unictype/pr_currency_symbol.c: New file.
7058         * lib/unictype/pr_dash.c: New file.
7059         * lib/unictype/pr_decimal_digit.c: New file.
7060         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7061         * lib/unictype/pr_deprecated.c: New file.
7062         * lib/unictype/pr_diacritic.c: New file.
7063         * lib/unictype/pr_extender.c: New file.
7064         * lib/unictype/pr_format_control.c: New file.
7065         * lib/unictype/pr_grapheme_base.c: New file.
7066         * lib/unictype/pr_grapheme_extend.c: New file.
7067         * lib/unictype/pr_grapheme_link.c: New file.
7068         * lib/unictype/pr_hex_digit.c: New file.
7069         * lib/unictype/pr_hyphen.c: New file.
7070         * lib/unictype/pr_id_continue.c: New file.
7071         * lib/unictype/pr_id_start.c: New file.
7072         * lib/unictype/pr_ideographic.c: New file.
7073         * lib/unictype/pr_ids_binary_operator.c: New file.
7074         * lib/unictype/pr_ids_trinary_operator.c: New file.
7075         * lib/unictype/pr_ignorable_control.c: New file.
7076         * lib/unictype/pr_iso_control.c: New file.
7077         * lib/unictype/pr_join_control.c: New file.
7078         * lib/unictype/pr_left_of_pair.c: New file.
7079         * lib/unictype/pr_line_separator.c: New file.
7080         * lib/unictype/pr_logical_order_exception.c: New file.
7081         * lib/unictype/pr_lowercase.c: New file.
7082         * lib/unictype/pr_math.c: New file.
7083         * lib/unictype/pr_non_break.c: New file.
7084         * lib/unictype/pr_not_a_character.c: New file.
7085         * lib/unictype/pr_numeric.c: New file.
7086         * lib/unictype/pr_other_alphabetic.c: New file.
7087         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7088         * lib/unictype/pr_other_grapheme_extend.c: New file.
7089         * lib/unictype/pr_other_id_continue.c: New file.
7090         * lib/unictype/pr_other_id_start.c: New file.
7091         * lib/unictype/pr_other_lowercase.c: New file.
7092         * lib/unictype/pr_other_math.c: New file.
7093         * lib/unictype/pr_other_uppercase.c: New file.
7094         * lib/unictype/pr_paired_punctuation.c: New file.
7095         * lib/unictype/pr_paragraph_separator.c: New file.
7096         * lib/unictype/pr_pattern_syntax.c: New file.
7097         * lib/unictype/pr_pattern_white_space.c: New file.
7098         * lib/unictype/pr_private_use.c: New file.
7099         * lib/unictype/pr_punctuation.c: New file.
7100         * lib/unictype/pr_quotation_mark.c: New file.
7101         * lib/unictype/pr_radical.c: New file.
7102         * lib/unictype/pr_sentence_terminal.c: New file.
7103         * lib/unictype/pr_soft_dotted.c: New file.
7104         * lib/unictype/pr_space.c: New file.
7105         * lib/unictype/pr_terminal_punctuation.c: New file.
7106         * lib/unictype/pr_test.c: New file.
7107         * lib/unictype/pr_titlecase.c: New file.
7108         * lib/unictype/pr_unassigned_code_value.c: New file.
7109         * lib/unictype/pr_unified_ideograph.c: New file.
7110         * lib/unictype/pr_uppercase.c: New file.
7111         * lib/unictype/pr_variation_selector.c: New file.
7112         * lib/unictype/pr_white_space.c: New file.
7113         * lib/unictype/pr_xid_continue.c: New file.
7114         * lib/unictype/pr_xid_start.c: New file.
7115         * lib/unictype/pr_zero_width.c: New file.
7116         * lib/unictype/scripts.c: New file.
7117         * lib/unictype/sy_c_ident.c: New file.
7118         * lib/unictype/sy_c_whitespace.c: New file.
7119         * lib/unictype/sy_java_ident.c: New file.
7120         * lib/unictype/sy_java_whitespace.c: New file.
7121
7122         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7123         Unicode 5.0.0.
7124         * lib/unictype/blocks.h: Likewise.
7125         * lib/unictype/categ_C.h: Likewise.
7126         * lib/unictype/categ_Cc.h: Likewise.
7127         * lib/unictype/categ_Cf.h: Likewise.
7128         * lib/unictype/categ_Cn.h: Likewise.
7129         * lib/unictype/categ_Co.h: Likewise.
7130         * lib/unictype/categ_Cs.h: Likewise.
7131         * lib/unictype/categ_L.h: Likewise.
7132         * lib/unictype/categ_Ll.h: Likewise.
7133         * lib/unictype/categ_Lm.h: Likewise.
7134         * lib/unictype/categ_Lo.h: Likewise.
7135         * lib/unictype/categ_Lt.h: Likewise.
7136         * lib/unictype/categ_Lu.h: Likewise.
7137         * lib/unictype/categ_M.h: Likewise.
7138         * lib/unictype/categ_Mc.h: Likewise.
7139         * lib/unictype/categ_Me.h: Likewise.
7140         * lib/unictype/categ_Mn.h: Likewise.
7141         * lib/unictype/categ_N.h: Likewise.
7142         * lib/unictype/categ_Nd.h: Likewise.
7143         * lib/unictype/categ_Nl.h: Likewise.
7144         * lib/unictype/categ_No.h: Likewise.
7145         * lib/unictype/categ_P.h: Likewise.
7146         * lib/unictype/categ_Pc.h: Likewise.
7147         * lib/unictype/categ_Pd.h: Likewise.
7148         * lib/unictype/categ_Pe.h: Likewise.
7149         * lib/unictype/categ_Pf.h: Likewise.
7150         * lib/unictype/categ_Pi.h: Likewise.
7151         * lib/unictype/categ_Po.h: Likewise.
7152         * lib/unictype/categ_Ps.h: Likewise.
7153         * lib/unictype/categ_S.h: Likewise.
7154         * lib/unictype/categ_Sc.h: Likewise.
7155         * lib/unictype/categ_Sk.h: Likewise.
7156         * lib/unictype/categ_Sm.h: Likewise.
7157         * lib/unictype/categ_So.h: Likewise.
7158         * lib/unictype/categ_Z.h: Likewise.
7159         * lib/unictype/categ_Zl.h: Likewise.
7160         * lib/unictype/categ_Zp.h: Likewise.
7161         * lib/unictype/categ_Zs.h: Likewise.
7162         * lib/unictype/categ_of.h: Likewise.
7163         * lib/unictype/combining.h: Likewise.
7164         * lib/unictype/ctype_alnum.h: Likewise.
7165         * lib/unictype/ctype_alpha.h: Likewise.
7166         * lib/unictype/ctype_blank.h: Likewise.
7167         * lib/unictype/ctype_cntrl.h: Likewise.
7168         * lib/unictype/ctype_digit.h: Likewise.
7169         * lib/unictype/ctype_graph.h: Likewise.
7170         * lib/unictype/ctype_lower.h: Likewise.
7171         * lib/unictype/ctype_print.h: Likewise.
7172         * lib/unictype/ctype_punct.h: Likewise.
7173         * lib/unictype/ctype_space.h: Likewise.
7174         * lib/unictype/ctype_upper.h: Likewise.
7175         * lib/unictype/ctype_xdigit.h: Likewise.
7176         * lib/unictype/decdigit.h: Likewise.
7177         * lib/unictype/digit.h: Likewise.
7178         * lib/unictype/mirror.h: Likewise.
7179         * lib/unictype/numeric.h: Likewise.
7180         * lib/unictype/pr_alphabetic.h: Likewise.
7181         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7182         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7183         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7184         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7185         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7186         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7187         * lib/unictype/pr_bidi_control.h: Likewise.
7188         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7189         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7190         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7191         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7192         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7193         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7194         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7195         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7196         * lib/unictype/pr_bidi_pdf.h: Likewise.
7197         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7198         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7199         * lib/unictype/pr_combining.h: Likewise.
7200         * lib/unictype/pr_composite.h: Likewise.
7201         * lib/unictype/pr_currency_symbol.h: Likewise.
7202         * lib/unictype/pr_dash.h: Likewise.
7203         * lib/unictype/pr_decimal_digit.h: Likewise.
7204         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7205         * lib/unictype/pr_deprecated.h: Likewise.
7206         * lib/unictype/pr_diacritic.h: Likewise.
7207         * lib/unictype/pr_extender.h: Likewise.
7208         * lib/unictype/pr_format_control.h: Likewise.
7209         * lib/unictype/pr_grapheme_base.h: Likewise.
7210         * lib/unictype/pr_grapheme_extend.h: Likewise.
7211         * lib/unictype/pr_grapheme_link.h: Likewise.
7212         * lib/unictype/pr_hex_digit.h: Likewise.
7213         * lib/unictype/pr_hyphen.h: Likewise.
7214         * lib/unictype/pr_id_continue.h: Likewise.
7215         * lib/unictype/pr_id_start.h: Likewise.
7216         * lib/unictype/pr_ideographic.h: Likewise.
7217         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7218         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7219         * lib/unictype/pr_ignorable_control.h: Likewise.
7220         * lib/unictype/pr_iso_control.h: Likewise.
7221         * lib/unictype/pr_join_control.h: Likewise.
7222         * lib/unictype/pr_left_of_pair.h: Likewise.
7223         * lib/unictype/pr_line_separator.h: Likewise.
7224         * lib/unictype/pr_logical_order_exception.h: Likewise.
7225         * lib/unictype/pr_lowercase.h: Likewise.
7226         * lib/unictype/pr_math.h: Likewise.
7227         * lib/unictype/pr_non_break.h: Likewise.
7228         * lib/unictype/pr_not_a_character.h: Likewise.
7229         * lib/unictype/pr_numeric.h: Likewise.
7230         * lib/unictype/pr_other_alphabetic.h: Likewise.
7231         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7232         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7233         * lib/unictype/pr_other_id_continue.h: Likewise.
7234         * lib/unictype/pr_other_id_start.h: Likewise.
7235         * lib/unictype/pr_other_lowercase.h: Likewise.
7236         * lib/unictype/pr_other_math.h: Likewise.
7237         * lib/unictype/pr_other_uppercase.h: Likewise.
7238         * lib/unictype/pr_paired_punctuation.h: Likewise.
7239         * lib/unictype/pr_paragraph_separator.h: Likewise.
7240         * lib/unictype/pr_pattern_syntax.h: Likewise.
7241         * lib/unictype/pr_pattern_white_space.h: Likewise.
7242         * lib/unictype/pr_private_use.h: Likewise.
7243         * lib/unictype/pr_punctuation.h: Likewise.
7244         * lib/unictype/pr_quotation_mark.h: Likewise.
7245         * lib/unictype/pr_radical.h: Likewise.
7246         * lib/unictype/pr_sentence_terminal.h: Likewise.
7247         * lib/unictype/pr_soft_dotted.h: Likewise.
7248         * lib/unictype/pr_space.h: Likewise.
7249         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7250         * lib/unictype/pr_titlecase.h: Likewise.
7251         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7252         * lib/unictype/pr_unified_ideograph.h: Likewise.
7253         * lib/unictype/pr_uppercase.h: Likewise.
7254         * lib/unictype/pr_variation_selector.h: Likewise.
7255         * lib/unictype/pr_white_space.h: Likewise.
7256         * lib/unictype/pr_xid_continue.h: Likewise.
7257         * lib/unictype/pr_xid_start.h: Likewise.
7258         * lib/unictype/pr_zero_width.h: Likewise.
7259         * lib/unictype/scripts.h: Likewise.
7260         * lib/unictype/scripts_byname.gperf: Likewise.
7261         * lib/unictype/sy_c_ident.h: Likewise.
7262         * lib/unictype/sy_c_whitespace.h: Likewise.
7263         * lib/unictype/sy_java_ident.h: Likewise.
7264         * lib/unictype/sy_java_whitespace.h: Likewise.
7265
7266         * lib/unictype/Makefile: New file.
7267         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7268         glibc.
7269         * lib/unictype/3level.h: New file, copied from glibc.
7270         * lib/unictype/3levelbit.h: New file.
7271
7272 2007-11-11  Bruno Haible  <bruno@clisp.org>
7273
7274         * modules/gperf: New file.
7275         * modules/iconv_open (Depends-on): Add it.
7276         (Makefile.am): Remove the GPERF definition.
7277
7278 2007-11-11  Bruno Haible  <bruno@clisp.org>
7279
7280         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7281         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7282
7283 2007-11-11  Bruno Haible  <bruno@clisp.org>
7284
7285         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7286         (usage): Remove function.
7287
7288 2007-11-11  Bruno Haible  <bruno@clisp.org>
7289
7290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7291         gl_FUNC_CEILF_LIBS.
7292         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7293         gl_FUNC_CEIL_LIBS.
7294         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7295         gl_FUNC_CEILL_LIBS.
7296         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7297         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7298         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7299
7300 2007-11-11  Bruno Haible  <bruno@clisp.org>
7301
7302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7303         roundf were declared but do not exist on functions.
7304         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7305         roundl were declared but do not exist on functions.
7306         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7307         HAVE_FLOORL_AND_CEILL, respectively.
7308         Needed for Sun C on Solaris 10.
7309
7310 2007-11-11  Bruno Haible  <bruno@clisp.org>
7311
7312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7313         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7314         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7315         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7316         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7317         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7318         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7319         HAVE_DECL_ROUNDF.
7320         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7321         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7323         of HAVE_DECL_ROUND*.
7324         * modules/math (Makefile.am): Update.
7325
7326 2007-11-10  Bruno Haible  <bruno@clisp.org>
7327
7328         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7329         ptrdiff_t as m4/intl.m4.
7330
7331 2007-11-10  Jim Meyering  <meyering@redhat.com>
7332
7333         Avoid link failure for the argmatch test.
7334         * tests/test-argmatch.c (usage): Define function to avoid a link
7335         failure: argmatch_die requires a usage function.
7336
7337 2007-11-09  Bruno Haible  <bruno@clisp.org>
7338
7339         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7340         * doc/functions/vsnprintf.texi: Likewise.
7341         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7342         with a size argument < 2.
7343
7344 2007-11-09  Bruno Haible  <bruno@clisp.org>
7345
7346         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7347         buffer. Fixes an inefficiency introduced on 2007-11-03.
7348
7349 2007-11-09  Bruno Haible  <bruno@clisp.org>
7350
7351         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7352         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7353
7354 2007-11-08  Jim Meyering  <meyering@redhat.com>
7355
7356         Change cache variable name prefix "jm_" to "gl_" everywhere.
7357         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7358         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7359         * m4/uptime.m4: s/gl_/jm_/
7360
7361 2007-11-07  Bruno Haible  <bruno@clisp.org>
7362
7363         Update to GNU gettext 0.17.
7364         * m4/intl.m4: Update to GNU gettext 0.17.
7365         * m4/po.m4: Likewise.
7366         * modules/gettext (Files): Remove m4/ulonglong.m4.
7367         (configure.ac): Require gettext infrastructure from version 0.17.
7368
7369 2007-11-06  Bruno Haible  <bruno@clisp.org>
7370
7371         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7372         symbolic values are not defined in a public header.
7373         * lib/freadable.c (freadable) [QNX]: Likewise.
7374         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7375         * lib/freading.c (freading) [QNX]: Likewise.
7376         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7377         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7378         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7379         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7380         Reported by Alain Magloire.
7381
7382         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7383
7384 2007-11-05  Bruno Haible  <bruno@clisp.org>
7385
7386         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7387         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7388         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7389         Reported by Eric Blake.
7390
7391 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7392             Bruno Haible  <bruno@clisp.org>
7393
7394         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7395         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7396         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7397         (malloc): Undefine also before including <stdlib.h>.
7398         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7399         Needed on OSF/1 4.0.
7400
7401 2007-11-05  Jim Meyering  <meyering@redhat.com>
7402
7403         git-version-gen: sync from coreutils.
7404         * build-aux/git-version-gen: Add comments.
7405         Change the first '-' to '.' in the snapshot version string,
7406         e.g., 6.9-377-08144 -> 6.9.377-08144
7407         Remove first parameter.
7408         Don't declare a version "-dirty" merely because a time
7409         stamp has changed.
7410
7411 2007-11-04  Bruno Haible  <bruno@clisp.org>
7412
7413         * lib/lock.h: Protect all macro definitions containing an 'if'
7414         statement through a "do { ... } while (0)".
7415         * lib/tls.h: Likewise.
7416
7417 2007-11-04  Bruno Haible  <bruno@clisp.org>
7418
7419         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7420
7421 2007-11-04  Bruno Haible  <bruno@clisp.org>
7422
7423         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7424         * modules/fprintf-posix (Depends-on): Add nocrash.
7425         * modules/snprintf-posix (Depends-on): Likewise.
7426         * modules/sprintf-posix (Depends-on): Likewise.
7427         * modules/vasnprintf-posix (Depends-on): Likewise.
7428         * modules/vasprintf-posix (Depends-on): Likewise.
7429         * modules/vfprintf-posix (Depends-on): Likewise.
7430         * modules/vsnprintf-posix (Depends-on): Likewise.
7431         * modules/vsprintf-posix (Depends-on): Likewise.
7432         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7433         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7434         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7435         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7436         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7437         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7438         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7439
7440 2007-11-04  Bruno Haible  <bruno@clisp.org>
7441
7442         * modules/nocrash: New file.
7443         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7444         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7445
7446 2007-11-04  Bruno Haible  <bruno@clisp.org>
7447
7448         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7449         precision handling.
7450         * tests/test-vasprintf-posix.c (test_function): Likewise.
7451         * tests/test-snprintf-posix.h (test_function): Likewise.
7452         * tests/test-sprintf-posix.h (test_function): Likewise.
7453
7454         Fix *printf behaviour for large precisions on mingw and BeOS.
7455         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7456         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7458         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7460         gl_PRINTF_PRECISION and test its result. Invoke
7461         gl_PREREQ_VASNPRINTF_PRECISION.
7462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7469         * doc/functions/fprintf.texi: Update.
7470         * doc/functions/printf.texi: Update.
7471         * doc/functions/snprintf.texi: Update.
7472         * doc/functions/sprintf.texi: Update.
7473         * doc/functions/vfprintf.texi: Update.
7474         * doc/functions/vprintf.texi: Update.
7475         * doc/functions/vsnprintf.texi: Update.
7476         * doc/functions/vsprintf.texi: Update.
7477
7478 2007-11-04  Bruno Haible  <bruno@clisp.org>
7479
7480         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7481
7482 2007-11-04  Bruno Haible  <bruno@clisp.org>
7483
7484         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7485         Reported by Sylvain Beucler <beuc@gnu.org>.
7486
7487 2007-11-03  Bruno Haible  <bruno@clisp.org>
7488
7489         * tests/test-fprintf-posix2.sh: New file.
7490         * tests/test-fprintf-posix2.c: New file.
7491         * modules/fprintf-posix-tests (Files): Add them.
7492         (TESTS): Add test-fprintf-posix2.sh.
7493         (configure.ac): Check for getrlimit and setrlimit.
7494         (check_PROGRAMS): Add test-fprintf-posix2.
7495
7496         * tests/test-printf-posix2.sh: New file.
7497         * tests/test-printf-posix2.c: New file.
7498         * modules/printf-posix-tests (Files): Add them.
7499         (TESTS): Add test-printf-posix2.sh.
7500         (configure.ac): Check for getrlimit and setrlimit.
7501         (check_PROGRAMS): Add test-printf-posix2.
7502
7503         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7504         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7505         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7506         (decode_double): New function, copied from decode_long_double.
7507         (scale10_round_decimal_decoded): New function, extracted from
7508         scale10_round_decimal_long_double.
7509         (scale10_round_decimal_long_double): Use it.
7510         (scale10_round_decimal_double): New function.
7511         (floorlog10): New function.
7512         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7514         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7516         gl_PRINTF_ENOMEM and test its result. Invoke
7517         gl_PREREQ_VASNPRINTF_ENOMEM.
7518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7525         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7526         * modules/snprintf-posix (Depends-on): Likewise.
7527         * modules/sprintf-posix (Depends-on): Likewise.
7528         * modules/vasnprintf-posix (Depends-on): Likewise.
7529         * modules/vasprintf-posix (Depends-on): Likewise.
7530         * modules/vfprintf-posix (Depends-on): Likewise.
7531         * modules/vsnprintf-posix (Depends-on): Likewise.
7532         * modules/vsprintf-posix (Depends-on): Likewise.
7533         * doc/functions/fprintf.texi: Update.
7534         * doc/functions/printf.texi: Update.
7535         * doc/functions/snprintf.texi: Update.
7536         * doc/functions/sprintf.texi: Update.
7537         * doc/functions/vfprintf.texi: Update.
7538         * doc/functions/vprintf.texi: Update.
7539         * doc/functions/vsnprintf.texi: Update.
7540         * doc/functions/vsprintf.texi: Update.
7541
7542 2007-11-03  Bruno Haible  <bruno@clisp.org>
7543
7544         * modules/frexp-nolibm-tests: New file.
7545
7546         * modules/frexp-nolibm: New file.
7547         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7548
7549 2007-11-03  Bruno Haible  <bruno@clisp.org>
7550
7551         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7552         value is C99 compliant.
7553         Needed for OSF/1 5.1.
7554
7555 2007-11-03  Bruno Haible  <bruno@clisp.org>
7556
7557         Fix out-of-memory handling of vasnprintf.
7558         * lib/printf-parse.c: Include <errno.h>.
7559         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7560         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7561         is already set.
7562
7563 2007-11-02  Eric Blake  <ebb9@byu.net>
7564
7565         Fix tests on cygwin.
7566         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7567
7568 2007-11-01  Bruno Haible  <bruno@clisp.org>
7569
7570         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7571         warning.
7572         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7573         needed for POSIX compatibility.
7574
7575 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7576
7577         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7578         for compatibility with GNU.
7579
7580 2007-11-01  Bruno Haible  <bruno@clisp.org>
7581
7582         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7583         (putenv): Renamed from rpl_putenv. Change argument type from
7584         'const char *' to 'char *'.
7585         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7586         of defining putenv in config.h, just set REPLACE_PUTENV.
7587         * modules/putenv (Depends-on): Add stdlib.
7588         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7589         (Include): Use <stdlib.h>.
7590         * lib/stdlib.in.h (putenv): New declaration.
7591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7592         REPLACE_PUTENV.
7593         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7594         REPLACE_PUTENV.
7595         Needed for MacOS X 10.5.0.
7596         Reported by Peter O'Gorman <peter@pogma.com>.
7597
7598 2007-11-01  Jim Meyering  <meyering@redhat.com>
7599
7600         Treat an empty date string exactly like "0".
7601         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7602         if the remaining date string (to be parsed) is empty, use "0".
7603         Reported by Mischa Molhoek and discussed in this thread:
7604         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7605
7606 2007-10-31  Bruno Haible  <bruno@clisp.org>
7607
7608         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7609         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7610         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7611         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7612         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7613         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7614
7615 2007-10-31  Bruno Haible  <bruno@clisp.org>
7616
7617         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7618         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7619         (AC_TYPE_LONG_LONG_INT): Use it.
7620         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7621         it as well.
7622         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7623         to m4/longlong.m4.
7624         * modules/stdint (Files): Remove m4/ulonglong.m4.
7625         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7626         m4/ulonglong.m4.
7627         * modules/strtoumax (Files): Likewise.
7628
7629 2007-10-30  Bruno Haible  <bruno@clisp.org>
7630
7631         * modules/xvasprintf-posix: New file.
7632         Suggested by Eric Blake.
7633
7634 2007-10-30  Bruno Haible  <bruno@clisp.org>
7635
7636         * modules/xprintf-posix-tests: New file.
7637         * tests/test-xprintf-posix.sh: New file.
7638         * tests/test-xprintf-posix.c: New file.
7639         * tests/test-xfprintf-posix.c: New file.
7640
7641         * modules/xprintf-posix: New file.
7642
7643 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7644
7645         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7646         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7647         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7648
7649 2007-10-29  Bruno Haible  <bruno@clisp.org>
7650
7651         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7652         contain the special marker '_cv_'.
7653         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7654         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7655         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7656         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7657         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7658         Reported by Ralf Wildenhues.
7659
7660 2007-10-29  Bruno Haible  <bruno@clisp.org>
7661
7662         * gnulib-tool (func_import): When --lgpl is not specified, set
7663         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7664         GPLv3.
7665         Reported by Simon Josefsson.
7666
7667 2007-10-28  Bruno Haible  <bruno@clisp.org>
7668
7669         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7670         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7671         HAVE_DECL_ISFINITE.
7672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7673         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7674         HAVE_DECL_ISFINITE.
7675
7676 2007-10-28  Bruno Haible  <bruno@clisp.org>
7677
7678         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7679         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7680
7681 2007-10-28  Bruno Haible  <bruno@clisp.org>
7682
7683         Fix link errors with Sun C 5.0 on Solaris 10.
7684         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7685         function is declared but not present in the compiler's libm.
7686         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7687         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7688         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7689         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7690         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7691         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7692         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7694         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7695         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7696         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7697         HAVE_DECL_FLOORL.
7698
7699 2007-10-28  Bruno Haible  <bruno@clisp.org>
7700
7701         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7702         gl_FUNC_FLOORL. Cache the result.
7703         (gl_FUNC_FLOORL): Use it.
7704         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7705         gl_FUNC_CEILL. Cache the result.
7706         (gl_FUNC_CEILL): Use it.
7707
7708         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7709         gl_FUNC_FLOOR. Cache the result.
7710         (gl_FUNC_FLOOR): Use it.
7711         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7712         gl_FUNC_CEIL. Cache the result.
7713         (gl_FUNC_CEIL): Use it.
7714
7715         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7716         gl_FUNC_FLOORF. Cache the result.
7717         (gl_FUNC_FLOORF): Use it.
7718         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7719         gl_FUNC_CEILF. Cache the result.
7720         (gl_FUNC_CEILF): Use it.
7721
7722 2007-10-28  Bruno Haible  <bruno@clisp.org>
7723
7724         * gnulib-tool: Allow specifying the LGPL version number through
7725         --lgpl=2 or --lgpl=3.
7726         (func_usage): Document --lgpl with argument.
7727         Handle --lgpl=... arguments.
7728         (func_import): Recognize also gl_LGPL calls with an argument. When
7729         --lgpl=2 is used and the module's license is just LGPL, report an
7730         error. Set sed_transform_lib_file according to the lgpl variable. In
7731         the generated files, use --lgpl or gl_LGPL invocations with argument,
7732         if necessary.
7733         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7734         an LGPv2+ license.
7735         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7736         gl_LGPL macro.
7737
7738 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7739             Bruno Haible  <bruno@clisp.org>
7740
7741         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7742         (u16_uctomb_aux): Likewise.
7743         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7744         !HAVE_INLINE.
7745         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7746
7747 2007-10-28  Bruno Haible  <bruno@clisp.org>
7748
7749         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7750         Invoke AM_GETTEXT_OPTION if it exists.
7751         * modules/vasprintf: Likewise.
7752         * modules/verror: Likewise.
7753         * modules/xprintf: Likewise.
7754         * modules/xvasprintf: Likewise.
7755
7756 2007-10-27  Ben Pfaff  <blp@gnu.org>
7757
7758         * lib/math.in.h: Define isfinite macro and prototypes for
7759         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7760         implementations.
7761         * m4/math_h.m4: New substitutions for isfinite module.
7762         * lib/isfinite.c: New file.
7763         * m4/isfinite.m4: New file.
7764         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7765         * modules/isfinite: New file.
7766         * modules/isfinite-tests: New file.
7767         * tests/tests-isfinite.c: New file.
7768         * doc/functions/isfinite.texi: Mention isfinite module.
7769         * MODULES.html.sh: Mention new module.
7770
7771 2007-10-27  Ben Pfaff  <blp@gnu.org>
7772
7773         Ralf Wildenhues reported that Tru64 4.0D declares the round
7774         functions but does not have definitions.
7775         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7776         cannot be found in any library, set the output variable to
7777         "missing" instead of "".
7778         * m4/round.m4: Also use our substitute if we cannot find round in
7779         any library, even if it is declared.
7780         * m4/roundf.m4: Likewise for roundf.
7781         * m4/roundl.m4: Likewise for roundl.
7782         * lib/math.in.h: Undefine roundf, round, roundl before defining
7783         their replacements, to allow for hypothetical systems where these
7784         may be defined as macros but not available in libraries.
7785
7786 2007-10-27  Bruno Haible  <bruno@clisp.org>
7787
7788         * doc/gnulib.texi: Invoke @firstparagraphindent.
7789         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7790         changes in gnulib.
7791         (Source changes): New section.
7792
7793 2007-10-26  Bruno Haible  <bruno@clisp.org>
7794
7795         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7796         borrowed from autoconf.
7797
7798 2007-10-26  Bruno Haible  <bruno@clisp.org>
7799
7800         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7801         strerror returned the empty string. Needed on HP-UX 11.00.
7802
7803 2007-10-24  Micah Cowan  <micah@cowan.name>
7804
7805         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7806         * build-aux/bootstrap: Remove support for now-unnecessary option,
7807         --cvs-user, and envvars CVS_USER, CVS_RSH.
7808
7809 2007-10-24  Jim Meyering  <meyering@redhat.com>
7810
7811         Avoid diagnostics from sha1sum when there is no cached checksum.
7812         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7813         if the po.s1 file hasn't been created yet.
7814
7815         * build-aux/bootstrap: Sync from coreutils:
7816         2007-10-24  Jim Meyering  <meyering@redhat.com>
7817         Get gnulib from the git repository, not from an obsolete cvs one.
7818         * build-aux/bootstrap: Suggestion from Micah Cowan.
7819         2007-10-04  Jim Meyering  <jim@meyering.net>
7820         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7821         (update_po_files): Work also when there are no .po files in po/.
7822
7823 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7824
7825         * README: Append ".git" to git and cg examples.
7826         Problem reported by Benoit Sigoure.
7827
7828 2007-10-23  Micah Cowan  <micah@cowan.name>
7829
7830         * users.txt: Add wget.
7831
7832 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7833
7834         Fix linking of some unistdio tests on FreeBSD.
7835         * modules/unistdio/u16-vsnprintf-tests
7836         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7837         * modules/unistdio/u16-vsprintf-tests
7838         (test_u16_vsnprintf1_LDADD): Likewise.
7839         * modules/unistdio/u32-vsnprintf-tests
7840         (test_u32_vsnprintf1_LDADD): Likewise.
7841         * modules/unistdio/u32-vsprintf-tests
7842         (test_u32_vsprintf1_LDADD): Likewise.
7843         * modules/unistdio/u8-vsnprintf-tests
7844         (test_u8_vsnprintf1_LDADD): Likewise.
7845         * modules/unistdio/u8-vsprintf-tests
7846         (test_u8_vsprintf1_LDADD): Likewise.
7847         * modules/unistdio/ulc-vsnprintf-tests
7848         (test_ulc_vsnprintf1_LDADD): Likewise.
7849         * modules/unistdio/ulc-vsprintf-tests
7850         (test_ulc_vsprintf1_LDADD): Likewise.
7851
7852         Fix linking of some uniconv tests on FreeBSD.
7853         * modules/uniconv/u16-conv-from-enc-tests
7854         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7855         * modules/uniconv/u16-conv-to-enc-tests
7856         (test_u16_conv_to_enc_LDADD): Likewise.
7857         * modules/uniconv/u16-strconv-from-enc-tests
7858         (test_u16_strconv_from_enc_LDADD): Likewise.
7859         * modules/uniconv/u16-strconv-to-enc-tests
7860         (test_u16_strconv_to_enc_LDADD): Likewise.
7861         * modules/uniconv/u32-conv-from-enc-tests
7862         (test_u32_conv_from_enc_LDADD): Likewise.
7863         * modules/uniconv/u32-conv-to-enc-tests
7864         (test_u32_conv_to_enc_LDADD): Likewise.
7865         * modules/uniconv/u32-strconv-from-enc-tests
7866         (test_u32_strconv_from_enc_LDADD): Likewise.
7867         * modules/uniconv/u32-strconv-to-enc-tests
7868         (test_u32_strconv_to_enc_LDADD): Likewise.
7869         * modules/uniconv/u8-conv-from-enc-tests
7870         (test_u8_conv_from_enc_LDADD): Likewise.
7871         * modules/uniconv/u8-conv-to-enc-tests
7872         (test_u8_conv_to_enc_LDADD): Likewise.
7873         * modules/uniconv/u8-strconv-from-enc-tests
7874         (test_u8_strconv_from_enc_LDADD): Likewise.
7875         * modules/uniconv/u8-strconv-to-enc-tests
7876         (test_u8_strconv_to_enc_LDADD): Likewise.
7877
7878 2007-10-22  Bruno Haible  <bruno@clisp.org>
7879
7880         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7881         size.
7882
7883 2007-10-22  Eric Blake  <ebb9@byu.net>
7884
7885         Tweak x*printf documentation.
7886         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7887         variable name and comments.
7888         Suggested by Bruno Haible.
7889
7890 2007-10-22  Bruno Haible  <bruno@clisp.org>
7891
7892         * lib/acl.c (copy_acl): Fix file name in comment.
7893
7894 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7895
7896         Fix Tru64 problem with stdbool.h.
7897         * lib/stdbool.in.h (false, true):
7898         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7899         Don't declare as an enum in this situation; it runs afoul of Tru64.
7900         Problem reported by Steven M. Schweda in
7901         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7902
7903 2007-10-22  Eric Blake  <ebb9@byu.net>
7904
7905         Also wrap vf?printf.
7906         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7907         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7908         (xvprintf, xvfprintf): New functions.
7909
7910 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7911
7912         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7913         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7914
7915         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7916         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7917
7918 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
7921         by Bruno Haible.
7922
7923 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7924
7925         * lib/getloadavg.c
7926         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7927         Undef `sys' after including sys/table.h, for Tru64 4.0D.
7928
7929         * tests/test-i-ring.c: Work for C89.
7930
7931 2007-10-22  Bruno Haible  <bruno@clisp.org>
7932
7933         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7934         -1u, in preprocessor expression, so that we don't test for the bug
7935         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
7936         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7937
7938 2007-10-22  Eric Blake  <ebb9@byu.net>
7939
7940         * tests/test-yesno.sh: Silence stderr during test.
7941
7942 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7943
7944         * modules/crypto/gc-camellia: New file.
7945
7946         * m4/gc-camellia.m4: New file.
7947
7948         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7949
7950         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7951
7952 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7953
7954         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7955         --help to stdout.  Reported by sms@antinode.org (Steven
7956         M. Schweda).
7957
7958 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7959
7960         * users.txt: Fix link to libksba.
7961
7962 2007-10-21  Ben Pfaff  <blp@gnu.org>
7963
7964         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7965         round.c roundf implementation that depends on floorf and ceilf to
7966         be tested unconditionally.
7967
7968 2007-10-21  Ben Pfaff  <blp@gnu.org>
7969
7970         * m4/check-libm-func.m4: Removed.
7971         * m4/check-math-lib.m4: New file.
7972         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7973         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7974         definition and lack of AC_LIBOBJ([roundf]).
7975         * m4/roundl.m4: Ditto, and similarly for roundl.
7976         * modules/round: Reference new m4 file.
7977         * modules/roundf: Ditto.
7978         * modules/roundl: Ditto.
7979         * tests/test-round2.c (main): Use ROUND instead of round.
7980         Bug report from Bruno Haible.
7981
7982 2007-10-21  Bruno Haible  <bruno@clisp.org>
7983
7984         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7985         context.
7986
7987 2007-10-21  Bruno Haible  <bruno@clisp.org>
7988
7989         * tests/test-wcwidth.c (main): Allow negative result for some control
7990         characters.
7991
7992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7993         Needed on OSF/1 5.1.
7994
7995 2007-10-21  Bruno Haible  <bruno@clisp.org>
7996
7997         * tests/test-floorf1.c: Include isnanf.h.
7998         (main): Use isnanf() instead of isnan().
7999         * tests/test-ceilf1.c: Include isnanf.h.
8000         (main): Use isnanf() instead of isnan().
8001         * tests/test-truncf1.c: Include isnanf.h.
8002         (main): Use isnanf() instead of isnan().
8003         * tests/test-roundf1.c: Include isnanf.h.
8004         (main): Use isnanf() instead of isnan().
8005
8006 2007-10-21  Eric Blake  <ebb9@byu.net>
8007
8008         * users.txt: Update URL for m4.
8009
8010 2007-10-21  Bruno Haible  <bruno@clisp.org>
8011
8012         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8013
8014 2007-10-21  Bruno Haible  <bruno@clisp.org>
8015
8016         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8017         Git's management files if the CVS files are not present.
8018
8019 2007-10-20  Bruno Haible  <bruno@clisp.org>
8020
8021         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8022         gcc-3.4.x.
8023
8024 2007-10-20  Ben Pfaff  <blp@gnu.org>
8025
8026         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8027         implementations.
8028         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8029         * lib/round.c: New file.
8030         * lib/roundf.c: New file.
8031         * lib/roundl.c: New file.
8032         * m4/round.m4: New file.
8033         * m4/roundf.m4: New file.
8034         * m4/roundl.m4: New file.
8035         * m4/check-libm-func-m4: New file.
8036         * modules/math: Replace round, roundf, roundl related @VARS@ in
8037         math.in.h.
8038         * modules/round: New file.
8039         * modules/round-tests: New file.
8040         * modules/roundf: New file.
8041         * modules/roundf-tests: New file.
8042         * modules/roundl: New file.
8043         * modules/roundl-tests: New file.
8044         * tests/test-round1.c: New file.
8045         * tests/test-round2.c: New file.
8046         * tests/test-roundf1.c: New file.
8047         * tests/test-roundf2.c: New file.
8048         * tests/test-roundl.c: New file.
8049         * doc/functions/round.texi: Mention round module.
8050         * doc/functions/roundf.texi: Mention roundf module.
8051         * doc/functions/roundl.texi: Mention roundl module.
8052         * MODULES.html.sh: Mention new modules.
8053         Thanks to Bruno Haible for suggestions.
8054
8055 2007-10-20  Jim Meyering  <meyering@redhat.com>
8056
8057         * lib/xprintf.c: Include <config.h> unconditionally.
8058
8059         Change xprintf's license to GPL.
8060         * modules/xprintf (License): s/LGPL/GPL/, since this module
8061         depends on modules (exit and exitfail) which are GPL.
8062         Suggestion from Bruno Haible.
8063
8064         xprintf fixes.
8065         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8066         Use a clearer diagnostic.
8067         Patch from Bruno Haible.
8068
8069 2007-10-20  Bruno Haible  <bruno@clisp.org>
8070
8071         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8072         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8074
8075 2007-10-20  Bruno Haible  <bruno@clisp.org>
8076
8077         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8078         precision in the comparison result > x - 1 or similar.
8079         * tests/test-ceilf2.c (correct_result_p): Likewise.
8080         * tests/test-truncf2.c (correct_result_p): Likewise.
8081         * tests/test-trunc2.c (correct_result_p): Likewise.
8082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8083
8084 2007-10-20  Bruno Haible  <bruno@clisp.org>
8085
8086         * modules/ceil: New file.
8087         * m4/ceil.m4: New file.
8088         * doc/functions/ceil.texi: Mention the 'ceil' module.
8089
8090 2007-10-20  Bruno Haible  <bruno@clisp.org>
8091
8092         * modules/floor: New file.
8093         * m4/floor.m4: New file.
8094         * doc/functions/floor.texi: Mention the 'floor' module.
8095
8096 2007-10-20  Bruno Haible  <bruno@clisp.org>
8097
8098         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8099         of %a.
8100         * modules/floorf-tests (Depends-on): Likewise.
8101         * modules/truncf-tests (Depends-on): Likewise.
8102         * modules/trunc-tests (Depends-on): Likewise.
8103         Reported by Ben Pfaff.
8104
8105 2007-10-19  Jim Meyering  <meyering@redhat.com>
8106
8107         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8108         Don't bother testing specific errno values.  Just test ferror.
8109
8110         New module: xprintf
8111         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8112
8113 2007-10-19  Bruno Haible  <bruno@clisp.org>
8114
8115         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8116         syntax.
8117         * modules/javaexec (Makefile.am): Likewise.
8118         * modules/relocatable-prog (Makefile.am): Likewise.
8119         Suggested by Jim Meyering.
8120
8121 2007-10-18  Bruno Haible  <bruno@clisp.org>
8122
8123         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8124         Reported by Jim Meyering.
8125
8126 2007-10-18  Eric Blake  <ebb9@byu.net>
8127
8128         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8129
8130 2007-10-18  Bruno Haible  <bruno@clisp.org>
8131
8132         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8133         the format string into writable memory. Needed in Fortify conditions.
8134
8135 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8136             Bruno Haible  <bruno@clisp.org>
8137
8138         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8139         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8140         * modules/trim (Depends-on): Add mbchar.
8141         (configure.ac): Add gl_FUNC_MBRTOWC.
8142         (Makefile.am): Augment lib_SOURCES.
8143
8144 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8145
8146         Modify glob.c to use fstatat and dirfd, to simplify it.
8147         Suggested by Eric Blake.
8148         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8149         Don't include <stdbool.h>; not used.
8150         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8151         (link_exists_p): Simplify implementation, since we can now assume
8152         dirfd and fstatat.
8153         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8154
8155 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8156
8157         * gnulib-tool (func_get_dependencies): Fix sed script to
8158         match only tests.
8159
8160 2007-10-17  Bruno Haible  <bruno@clisp.org>
8161
8162         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8163         allow locale names without encoding suffix.
8164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8166
8167 2007-10-16  Bruno Haible  <bruno@clisp.org>
8168
8169         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8170         * lib/getgroups.c (getgroups): Likewise.
8171         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8172
8173 2007-10-16  Bruno Haible  <bruno@clisp.org>
8174
8175         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8176         * modules/malloc-posix (License): Likewise.
8177         * modules/realloc-posix (License): Likewise.
8178         * modules/calloc-posix (License): Likewise.
8179         * modules/intprops (License): Change from GPL to LGPL, with
8180         Paul Eggert's approval.
8181
8182 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         Merge glibc changes into lib/glob.c.
8185
8186         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8187         2007-10-15 04:59:03 UTC.  Here are the changes:
8188
8189         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8190
8191         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8192
8193         * lib/glob.c: Add some branch prediction throughout.
8194
8195         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8196
8197         [BZ #5103]
8198         * lib/glob.c (glob): Recognize patterns starting \/.
8199
8200         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8201
8202         [BZ #3996]
8203         * lib/glob.c (attribute_hidden): Define if not defined.
8204         (glob): Unescape dirname, filename or username when needed and not
8205         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8206         is NULL.  Handle unescaped [ in pattern without closing ].
8207         Don't pass GLOB_CHECK down to recursive glob for directories.
8208         (__glob_pattern_type): New function.
8209         (__glob_pattern_p): Implement using __glob_pattern_type.
8210         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8211         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8212         Remove unreachable code.
8213
8214         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8215
8216         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8217         explain why there are no leaks.
8218
8219         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8220
8221         [BZ #3253]
8222         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8223         time, rather allocate increasingly bigger arrays of pointers, if
8224         possible with alloca, if too large with malloc.
8225
8226 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8229         Problem reported by H.Merijn Brand in
8230         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8232         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8233
8234 2007-10-15  Bruno Haible  <bruno@clisp.org>
8235
8236         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8237         with explicit rpl_ prefix.
8238         * lib/fopen.c (fopen): Likewise.
8239         * lib/freopen.c (freopen): Likewise.
8240         * lib/iconv.c (iconv): Likewise.
8241         * lib/iconv_close.c (iconv_close): Likewise.
8242
8243 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8244
8245         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8246
8247 2007-10-15  Bruno Haible  <bruno@clisp.org>
8248
8249         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8250         <stddef.h> instead of <stdlib.h> since we only need NULL.
8251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8252
8253 2007-10-15  Bruno Haible  <bruno@clisp.org>
8254
8255         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8256         Replace paragraph talking about LIBOBJS.
8257         Reported by Colin Watson <cjwatson@debian.org>.
8258
8259 2007-10-15  Bruno Haible  <bruno@clisp.org>
8260
8261         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8262         <stdlib.h> before using NULL.
8263
8264 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8265
8266         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8267         Reported by Albert Chin <china@thewrittenword.com>.
8268
8269 2007-10-14  Bruno Haible  <bruno@clisp.org>
8270
8271         * modules/iconv_open-utf-tests: New file.
8272         * tests/test-iconv-utf.c: New file.
8273
8274         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8275         * modules/iconv_open-utf: New file.
8276         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8277         (iconv, iconv_close): New declarations.
8278         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8279         be defined.
8280         (iconv_open): Add special handling of conversion between UTF-8 and
8281         UTF-{16,32}{BE,LE}.
8282         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8283         * lib/iconv_close.c: New file.
8284         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8285         gl_FUNC_ICONV_OPEN.
8286         (gl_FUNC_ICONV_OPEN): Use it.
8287         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8288         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8289         and REPLACE_ICONV_UTF.
8290         * modules/iconv_open (Depends-on): Add c-strcase.
8291         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8292         ICONV_CONST.
8293         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8294
8295 2007-10-13  Albert Chin  <china@thewrittenword.com>
8296             Bruno Haible  <bruno@clisp.org>
8297
8298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8299         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8300
8301 2007-10-13  Bruno Haible  <bruno@clisp.org>
8302
8303         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8304         defined, use the ISO C99 inline semantics.
8305         * lib/argp.h (ARGP_EI): Likewise.
8306
8307 2007-10-13  Bruno Haible  <bruno@clisp.org>
8308
8309         Handle 'inline' change in gcc 4.3.0.
8310         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8311         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8312         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8313         argp_fmtstream_point): Disable 'extern' declaration if the function
8314         definition is going to be provided inline.
8315         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8316         semantics, not the ISO C99 inline semantics.
8317         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8318         'extern' declaration if the function definition is going to be provided
8319         inline.
8320         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8321         the GNU C inline semantics, not the ISO C99 inline semantics. With
8322         GCC 4.2, avoid a warning.
8323
8324 2007-10-13  Bruno Haible  <bruno@clisp.org>
8325
8326         * lib/freading.h (freading): Enable the use of __freading for
8327         glibc >= 2.7.
8328         * lib/freading.c (freading): Likewise.
8329
8330 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8333         "warning: C99 inline functions are not supported; using GNU89".
8334
8335 2007-10-12  Bruno Haible  <bruno@clisp.org>
8336
8337         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8338         of 2.
8339         * tests/test-ceilf2.c: New file.
8340         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8341
8342         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8343         * modules/ceilf-tests: Update.
8344
8345 2007-10-12  Bruno Haible  <bruno@clisp.org>
8346
8347         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8348         of 2.
8349         * tests/test-floorf2.c: New file.
8350         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8351
8352         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8353         * modules/floorf-tests: Update.
8354
8355 2007-10-12  Bruno Haible  <bruno@clisp.org>
8356
8357         * tests/test-trunc2.c: New file.
8358         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8359
8360         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8361         * modules/trunc-tests: Update.
8362
8363 2007-10-12  Bruno Haible  <bruno@clisp.org>
8364
8365         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8366         of 2.
8367         * tests/test-truncf2.c: New file.
8368         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8369
8370         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8371         * modules/truncf-tests: Update.
8372
8373 2007-10-11  Eric Blake  <ebb9@byu.net>
8374
8375         Don't claim strerror is broken on Interix.
8376         * doc/functions/strerror.texi (strerror): Known broken systems are
8377         now Solaris 8, and not Interix.
8378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8379         Interix on cross-compile.
8380         Reported by Martin Koeppe in
8381         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8382
8383 2007-10-11  Bruno Haible  <bruno@clisp.org>
8384
8385         * modules/i-ring-tests: New file.
8386         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8387         instead of assert.
8388
8389 2007-10-11  Bruno Haible  <bruno@clisp.org>
8390
8391         * modules/filenamecat-tests: New file.
8392         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8393         * lib/filenamecat.c: Remove test code.
8394
8395 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8396
8397         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8398
8399         * lib/strerror.c: Include <string.h> always, to test interface,
8400         and to remove the need for the dummy.
8401         Include intprops.h to compute width instead of doing it ourselves
8402         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8403         (strerror): Define it to return NULL if there's no system strerror.
8404         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8405         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8406         ancient pre-strerror Unix systems well any more.  Saying "unknown
8407         system error" is enough.
8408         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8409         simpler strerror.c implementation.
8410         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8411         Simplify the tests to reflect the simpler strerror implementation.
8412         * modules/strerror (Depends-on): Add intprops.
8413
8414 2007-10-09  Eric Blake  <ebb9@byu.net>
8415
8416         Silence test-fpending.
8417         * modules/fpending-tests (Files): Add wrapper script.
8418         * tests/test-fpending.sh: New file.
8419
8420 2007-10-09  Bruno Haible  <bruno@clisp.org>
8421
8422         * MODULES.html.sh (func_module): Don't create a hyperlink for
8423         function names like 'printf_frexp'.
8424         (Misc): Add crc, memxor.
8425         (Characteristics of floating types): New section.
8426         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8427         isnanf-nolibm, signbit, trunc, truncf, truncl.
8428         (Enhancements for ISO C 99 functions): New subsection Input/output.
8429         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8430         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8431         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8432         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8433         (Enhancements for POSIX:2001 functions): Add chdir-long.
8434         (File system functions): Add areadlink, chdir-safer, read-file.
8435         Remove cycle-check.
8436         (File system as inode set): New section.
8437         (Date and time): Add gethrxtime.
8438         (Multithreading): Add openmp.
8439         (Internationalization functions): Add localename.
8440         (Unicode string functions): Add unistr/u*-mbsnlen.
8441         (Support for maintaining and releasing projects): Add git-version-gen.
8442         (Lone files): Remove directories.
8443
8444 2007-10-08  Ben Pfaff  <blp@gnu.org>
8445
8446         * lib/xmalloca.h: Fix typo in comment.
8447
8448 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8449
8450         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8451         when avoiding problems with integer overflow.  Use a portable test
8452         instead.
8453
8454 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8455
8456         * modules/dummy (License): Change to LGPLv2+.
8457         * modules/float (License): Likewise
8458         * modules/realloc (License): Likewise
8459         * modules/stdlib (License): Likewise
8460
8461 2007-10-07  Bruno Haible  <bruno@clisp.org>
8462
8463         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8464         * floor.c (TWO_MANT_DIG): Likewise.
8465         * ceil.c (TWO_MANT_DIG): Likewise.
8466         Reported by Ben Pfaff.
8467
8468 2007-10-07  Bruno Haible  <bruno@clisp.org>
8469
8470         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8471         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8472         * lib/frexp.c (FUNC): Likewise.
8473         * lib/printf-frexp.h (printf_frexp): Likewise.
8474         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8475         * lib/printf-frexp.c (FUNC): Likewise.
8476         Suggested by Jim Meyering.
8477
8478 2007-10-07  Jim Meyering  <meyering@redhat.com>
8479
8480         Make xnanosleep's integer overflow test more robust.
8481         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8482         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8483
8484 2007-10-07  Bruno Haible  <bruno@clisp.org>
8485
8486         * NEWS: Mention the license change.
8487
8488         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8489         abbreviations in the modules files.
8490
8491         Change copyright notice from GPLv2+ to GPLv3+.
8492         * README: Change copyright notice.
8493         * MODULES.html.sh: Likewise.
8494         * build-aux/bootstrap.conf: Likewise.
8495         * build-aux/config.libpath: Likewise.
8496         * build-aux/csharpcomp.sh.in: Likewise.
8497         * build-aux/csharpexec.sh.in: Likewise.
8498         * build-aux/install-reloc: Likewise.
8499         * build-aux/javacomp.sh.in: Likewise.
8500         * build-aux/javaexec.sh.in: Likewise.
8501         * build-aux/ldd.sh.in: Likewise.
8502         * build-aux/reloc-ldflags: Likewise.
8503         * build-aux/relocatable.sh.in: Likewise.
8504         * build-aux/x-to-1.in: Likewise.
8505         * check-module: Likewise.
8506         * config/srclistvars.sh: Likewise.
8507         * gnulib-tool: Likewise.
8508         * lib/acl-internal.h: Likewise.
8509         * lib/acl.c: Likewise.
8510         * lib/acl.h: Likewise.
8511         * lib/acl_entries.c: Likewise.
8512         * lib/areadlink-with-size.c: Likewise.
8513         * lib/areadlink.c: Likewise.
8514         * lib/areadlink.h: Likewise.
8515         * lib/argmatch.c: Likewise.
8516         * lib/argmatch.h: Likewise.
8517         * lib/argp-ba.c: Likewise.
8518         * lib/argp-eexst.c: Likewise.
8519         * lib/argp-fmtstream.c: Likewise.
8520         * lib/argp-fmtstream.h: Likewise.
8521         * lib/argp-fs-xinl.c: Likewise.
8522         * lib/argp-help.c: Likewise.
8523         * lib/argp-namefrob.h: Likewise.
8524         * lib/argp-parse.c: Likewise.
8525         * lib/argp-pin.c: Likewise.
8526         * lib/argp-pv.c: Likewise.
8527         * lib/argp-pvh.c: Likewise.
8528         * lib/argp-xinl.c: Likewise.
8529         * lib/argp.h: Likewise.
8530         * lib/at-func.c: Likewise.
8531         * lib/atanl.c: Likewise.
8532         * lib/backupfile.c: Likewise.
8533         * lib/backupfile.h: Likewise.
8534         * lib/basename.c: Likewise.
8535         * lib/binary-io.h: Likewise.
8536         * lib/byteswap.in.h: Likewise.
8537         * lib/c-stack.c: Likewise.
8538         * lib/c-stack.h: Likewise.
8539         * lib/c-strcasestr.c: Likewise.
8540         * lib/c-strcasestr.h: Likewise.
8541         * lib/c-strstr.c: Likewise.
8542         * lib/c-strstr.h: Likewise.
8543         * lib/c-strtod.c: Likewise.
8544         * lib/calloc.c: Likewise.
8545         * lib/canon-host.c: Likewise.
8546         * lib/canon-host.h: Likewise.
8547         * lib/canonicalize-lgpl.c: Likewise.
8548         * lib/canonicalize.c: Likewise.
8549         * lib/canonicalize.h: Likewise.
8550         * lib/ceil.c: Likewise.
8551         * lib/ceilf.c: Likewise.
8552         * lib/ceill.c: Likewise.
8553         * lib/chdir-long.c: Likewise.
8554         * lib/chdir-long.h: Likewise.
8555         * lib/chdir-safer.c: Likewise.
8556         * lib/chdir-safer.h: Likewise.
8557         * lib/chown.c: Likewise.
8558         * lib/classpath.c: Likewise.
8559         * lib/classpath.h: Likewise.
8560         * lib/clean-temp.c: Likewise.
8561         * lib/clean-temp.h: Likewise.
8562         * lib/cloexec.c: Likewise.
8563         * lib/close-stream.c: Likewise.
8564         * lib/closein.c: Likewise.
8565         * lib/closein.h: Likewise.
8566         * lib/closeout.c: Likewise.
8567         * lib/closeout.h: Likewise.
8568         * lib/concat-filename.c: Likewise.
8569         * lib/copy-file.c: Likewise.
8570         * lib/copy-file.h: Likewise.
8571         * lib/count-one-bits.h: Likewise.
8572         * lib/crc.c: Likewise.
8573         * lib/crc.h: Likewise.
8574         * lib/creat-safer.c: Likewise.
8575         * lib/csharpcomp.c: Likewise.
8576         * lib/csharpcomp.h: Likewise.
8577         * lib/csharpexec.c: Likewise.
8578         * lib/csharpexec.h: Likewise.
8579         * lib/cycle-check.c: Likewise.
8580         * lib/cycle-check.h: Likewise.
8581         * lib/diacrit.c: Likewise.
8582         * lib/diacrit.h: Likewise.
8583         * lib/diffseq.h: Likewise.
8584         * lib/dirchownmod.c: Likewise.
8585         * lib/dirent.in.h: Likewise.
8586         * lib/dirfd.c: Likewise.
8587         * lib/dirfd.h: Likewise.
8588         * lib/dirname.c: Likewise.
8589         * lib/dirname.h: Likewise.
8590         * lib/dummy.c: Likewise.
8591         * lib/dup-safer.c: Likewise.
8592         * lib/dup2.c: Likewise.
8593         * lib/eealloc.h: Likewise.
8594         * lib/error.c: Likewise.
8595         * lib/error.h: Likewise.
8596         * lib/euidaccess.c: Likewise.
8597         * lib/exclude.c: Likewise.
8598         * lib/exclude.h: Likewise.
8599         * lib/execute.c: Likewise.
8600         * lib/execute.h: Likewise.
8601         * lib/exitfail.c: Likewise.
8602         * lib/exitfail.h: Likewise.
8603         * lib/expl.c: Likewise.
8604         * lib/fatal-signal.c: Likewise.
8605         * lib/fatal-signal.h: Likewise.
8606         * lib/fbufmode.c: Likewise.
8607         * lib/fbufmode.h: Likewise.
8608         * lib/fchdir.c: Likewise.
8609         * lib/fchmodat.c: Likewise.
8610         * lib/fchownat.c: Likewise.
8611         * lib/fcntl--.h: Likewise.
8612         * lib/fcntl-safer.h: Likewise.
8613         * lib/fcntl.in.h: Likewise.
8614         * lib/fd-safer.c: Likewise.
8615         * lib/fflush.c: Likewise.
8616         * lib/file-has-acl.c: Likewise.
8617         * lib/file-set.c: Likewise.
8618         * lib/file-type.c: Likewise.
8619         * lib/file-type.h: Likewise.
8620         * lib/fileblocks.c: Likewise.
8621         * lib/filemode.c: Likewise.
8622         * lib/filemode.h: Likewise.
8623         * lib/filename.h: Likewise.
8624         * lib/filenamecat.c: Likewise.
8625         * lib/filenamecat.h: Likewise.
8626         * lib/findprog.c: Likewise.
8627         * lib/findprog.h: Likewise.
8628         * lib/float.in.h: Likewise.
8629         * lib/floor.c: Likewise.
8630         * lib/floorf.c: Likewise.
8631         * lib/floorl.c: Likewise.
8632         * lib/fopen-safer.c: Likewise.
8633         * lib/fopen.c: Likewise.
8634         * lib/fpending.c: Likewise.
8635         * lib/fpending.h: Likewise.
8636         * lib/fprintf.c: Likewise.
8637         * lib/fprintftime.h: Likewise.
8638         * lib/fpucw.h: Likewise.
8639         * lib/fpurge.c: Likewise.
8640         * lib/fpurge.h: Likewise.
8641         * lib/freadable.c: Likewise.
8642         * lib/freadable.h: Likewise.
8643         * lib/freadahead.c: Likewise.
8644         * lib/freadahead.h: Likewise.
8645         * lib/freading.c: Likewise.
8646         * lib/freading.h: Likewise.
8647         * lib/free.c: Likewise.
8648         * lib/freopen.c: Likewise.
8649         * lib/frexp.c: Likewise.
8650         * lib/frexpl.c: Likewise.
8651         * lib/fseek.c: Likewise.
8652         * lib/fseterr.c: Likewise.
8653         * lib/fseterr.h: Likewise.
8654         * lib/fstatat.c: Likewise.
8655         * lib/fstrcmp.c: Likewise.
8656         * lib/fstrcmp.h: Likewise.
8657         * lib/fsusage.c: Likewise.
8658         * lib/fsusage.h: Likewise.
8659         * lib/ftell.c: Likewise.
8660         * lib/ftello.c: Likewise.
8661         * lib/fts-cycle.c: Likewise.
8662         * lib/fts.c: Likewise.
8663         * lib/fts_.h: Likewise.
8664         * lib/full-read.c: Likewise.
8665         * lib/full-read.h: Likewise.
8666         * lib/full-write.c: Likewise.
8667         * lib/full-write.h: Likewise.
8668         * lib/fwritable.c: Likewise.
8669         * lib/fwritable.h: Likewise.
8670         * lib/fwriteerror.c: Likewise.
8671         * lib/fwriteerror.h: Likewise.
8672         * lib/fwriting.c: Likewise.
8673         * lib/fwriting.h: Likewise.
8674         * lib/gcd.c: Likewise.
8675         * lib/gcd.h: Likewise.
8676         * lib/getcwd.c: Likewise.
8677         * lib/getdate.h: Likewise.
8678         * lib/getdate.y: Likewise.
8679         * lib/getdomainname.c: Likewise.
8680         * lib/getdomainname.h: Likewise.
8681         * lib/getgroups.c: Likewise.
8682         * lib/gethostname.c: Likewise.
8683         * lib/gethrxtime.c: Likewise.
8684         * lib/gethrxtime.h: Likewise.
8685         * lib/getloadavg.c: Likewise.
8686         * lib/getndelim2.c: Likewise.
8687         * lib/getndelim2.h: Likewise.
8688         * lib/getnline.c: Likewise.
8689         * lib/getnline.h: Likewise.
8690         * lib/getopt.c: Likewise.
8691         * lib/getopt.in.h: Likewise.
8692         * lib/getopt1.c: Likewise.
8693         * lib/getopt_int.h: Likewise.
8694         * lib/getpagesize.h: Likewise.
8695         * lib/getsubopt.c: Likewise.
8696         * lib/gettime.c: Likewise.
8697         * lib/getugroups.c: Likewise.
8698         * lib/getugroups.h: Likewise.
8699         * lib/getusershell.c: Likewise.
8700         * lib/gl_anyavltree_list1.h: Likewise.
8701         * lib/gl_anyavltree_list2.h: Likewise.
8702         * lib/gl_anyhash_list1.h: Likewise.
8703         * lib/gl_anyhash_list2.h: Likewise.
8704         * lib/gl_anylinked_list1.h: Likewise.
8705         * lib/gl_anylinked_list2.h: Likewise.
8706         * lib/gl_anyrbtree_list1.h: Likewise.
8707         * lib/gl_anyrbtree_list2.h: Likewise.
8708         * lib/gl_anytree_list1.h: Likewise.
8709         * lib/gl_anytree_list2.h: Likewise.
8710         * lib/gl_anytree_oset.h: Likewise.
8711         * lib/gl_anytreehash_list1.h: Likewise.
8712         * lib/gl_anytreehash_list2.h: Likewise.
8713         * lib/gl_array_list.c: Likewise.
8714         * lib/gl_array_list.h: Likewise.
8715         * lib/gl_array_oset.c: Likewise.
8716         * lib/gl_array_oset.h: Likewise.
8717         * lib/gl_avltree_list.c: Likewise.
8718         * lib/gl_avltree_list.h: Likewise.
8719         * lib/gl_avltree_oset.c: Likewise.
8720         * lib/gl_avltree_oset.h: Likewise.
8721         * lib/gl_avltreehash_list.c: Likewise.
8722         * lib/gl_avltreehash_list.h: Likewise.
8723         * lib/gl_carray_list.c: Likewise.
8724         * lib/gl_carray_list.h: Likewise.
8725         * lib/gl_linked_list.c: Likewise.
8726         * lib/gl_linked_list.h: Likewise.
8727         * lib/gl_linkedhash_list.c: Likewise.
8728         * lib/gl_linkedhash_list.h: Likewise.
8729         * lib/gl_list.c: Likewise.
8730         * lib/gl_list.h: Likewise.
8731         * lib/gl_oset.c: Likewise.
8732         * lib/gl_oset.h: Likewise.
8733         * lib/gl_rbtree_list.c: Likewise.
8734         * lib/gl_rbtree_list.h: Likewise.
8735         * lib/gl_rbtree_oset.c: Likewise.
8736         * lib/gl_rbtree_oset.h: Likewise.
8737         * lib/gl_rbtreehash_list.c: Likewise.
8738         * lib/gl_rbtreehash_list.h: Likewise.
8739         * lib/gl_sublist.c: Likewise.
8740         * lib/gl_sublist.h: Likewise.
8741         * lib/group-member.c: Likewise.
8742         * lib/group-member.h: Likewise.
8743         * lib/hard-locale.c: Likewise.
8744         * lib/hard-locale.h: Likewise.
8745         * lib/hash-pjw.c: Likewise.
8746         * lib/hash-pjw.h: Likewise.
8747         * lib/hash-triple.c: Likewise.
8748         * lib/hash.c: Likewise.
8749         * lib/hash.h: Likewise.
8750         * lib/human.c: Likewise.
8751         * lib/human.h: Likewise.
8752         * lib/i-ring.c: Likewise.
8753         * lib/i-ring.h: Likewise.
8754         * lib/idcache.c: Likewise.
8755         * lib/imaxabs.c: Likewise.
8756         * lib/imaxdiv.c: Likewise.
8757         * lib/inet_pton.c: Likewise.
8758         * lib/inet_pton.h: Likewise.
8759         * lib/intprops.h: Likewise.
8760         * lib/inttostr.c: Likewise.
8761         * lib/inttostr.h: Likewise.
8762         * lib/inttypes.in.h: Likewise.
8763         * lib/isapipe.c: Likewise.
8764         * lib/isdir.c: Likewise.
8765         * lib/isnan.c: Likewise.
8766         * lib/isnan.h: Likewise.
8767         * lib/isnanf.c: Likewise.
8768         * lib/isnanf.h: Likewise.
8769         * lib/isnanl-nolibm.h: Likewise.
8770         * lib/isnanl.c: Likewise.
8771         * lib/isnanl.h: Likewise.
8772         * lib/javacomp.c: Likewise.
8773         * lib/javacomp.h: Likewise.
8774         * lib/javaexec.c: Likewise.
8775         * lib/javaexec.h: Likewise.
8776         * lib/javaversion.c: Likewise.
8777         * lib/javaversion.h: Likewise.
8778         * lib/javaversion.java: Likewise.
8779         * lib/lbrkprop.h: Likewise.
8780         * lib/lchmod.h: Likewise.
8781         * lib/lchown.c: Likewise.
8782         * lib/ldexpl.c: Likewise.
8783         * lib/linebreak.c: Likewise.
8784         * lib/linebreak.h: Likewise.
8785         * lib/linebuffer.c: Likewise.
8786         * lib/linebuffer.h: Likewise.
8787         * lib/locale.in.h: Likewise.
8788         * lib/logl.c: Likewise.
8789         * lib/long-options.c: Likewise.
8790         * lib/long-options.h: Likewise.
8791         * lib/lstat.c: Likewise.
8792         * lib/lstat.h: Likewise.
8793         * lib/math.in.h: Likewise.
8794         * lib/mbchar.c: Likewise.
8795         * lib/mbchar.h: Likewise.
8796         * lib/mbfile.h: Likewise.
8797         * lib/mbiter.h: Likewise.
8798         * lib/mbscasecmp.c: Likewise.
8799         * lib/mbscasestr.c: Likewise.
8800         * lib/mbschr.c: Likewise.
8801         * lib/mbscspn.c: Likewise.
8802         * lib/mbslen.c: Likewise.
8803         * lib/mbsncasecmp.c: Likewise.
8804         * lib/mbsnlen.c: Likewise.
8805         * lib/mbspbrk.c: Likewise.
8806         * lib/mbspcasecmp.c: Likewise.
8807         * lib/mbsrchr.c: Likewise.
8808         * lib/mbssep.c: Likewise.
8809         * lib/mbsspn.c: Likewise.
8810         * lib/mbsstr.c: Likewise.
8811         * lib/mbstok_r.c: Likewise.
8812         * lib/mbswidth.c: Likewise.
8813         * lib/mbswidth.h: Likewise.
8814         * lib/mbuiter.h: Likewise.
8815         * lib/memcasecmp.c: Likewise.
8816         * lib/memcasecmp.h: Likewise.
8817         * lib/memchr.c: Likewise.
8818         * lib/memcmp.c: Likewise.
8819         * lib/memcoll.c: Likewise.
8820         * lib/memcoll.h: Likewise.
8821         * lib/memcpy.c: Likewise.
8822         * lib/memrchr.c: Likewise.
8823         * lib/mkancesdirs.c: Likewise.
8824         * lib/mkdir-p.c: Likewise.
8825         * lib/mkdir-p.h: Likewise.
8826         * lib/mkdir.c: Likewise.
8827         * lib/mkdirat.c: Likewise.
8828         * lib/mkdtemp.c: Likewise.
8829         * lib/mkstemp-safer.c: Likewise.
8830         * lib/mkstemp.c: Likewise.
8831         * lib/modechange.c: Likewise.
8832         * lib/modechange.h: Likewise.
8833         * lib/mountlist.c: Likewise.
8834         * lib/mountlist.h: Likewise.
8835         * lib/mpsort.c: Likewise.
8836         * lib/nanosleep.c: Likewise.
8837         * lib/obstack.c: Likewise.
8838         * lib/obstack.h: Likewise.
8839         * lib/open-safer.c: Likewise.
8840         * lib/open.c: Likewise.
8841         * lib/openat-die.c: Likewise.
8842         * lib/openat-priv.h: Likewise.
8843         * lib/openat-proc.c: Likewise.
8844         * lib/openat.c: Likewise.
8845         * lib/openat.h: Likewise.
8846         * lib/pagealign_alloc.c: Likewise.
8847         * lib/pagealign_alloc.h: Likewise.
8848         * lib/physmem.c: Likewise.
8849         * lib/physmem.h: Likewise.
8850         * lib/pipe-safer.c: Likewise.
8851         * lib/pipe.c: Likewise.
8852         * lib/pipe.h: Likewise.
8853         * lib/posixtm.c: Likewise.
8854         * lib/posixtm.h: Likewise.
8855         * lib/posixver.c: Likewise.
8856         * lib/printf-frexp.c: Likewise.
8857         * lib/printf-frexp.h: Likewise.
8858         * lib/printf-frexpl.c: Likewise.
8859         * lib/printf-frexpl.h: Likewise.
8860         * lib/printf.c: Likewise.
8861         * lib/progname.c: Likewise.
8862         * lib/progname.h: Likewise.
8863         * lib/progreloc.c: Likewise.
8864         * lib/putenv.c: Likewise.
8865         * lib/quote.c: Likewise.
8866         * lib/quote.h: Likewise.
8867         * lib/quotearg.c: Likewise.
8868         * lib/quotearg.h: Likewise.
8869         * lib/raise.c: Likewise.
8870         * lib/readline.c: Likewise.
8871         * lib/readline.h: Likewise.
8872         * lib/readlink.c: Likewise.
8873         * lib/readtokens.c: Likewise.
8874         * lib/readtokens.h: Likewise.
8875         * lib/readtokens0.c: Likewise.
8876         * lib/readtokens0.h: Likewise.
8877         * lib/readutmp.c: Likewise.
8878         * lib/readutmp.h: Likewise.
8879         * lib/realloc.c: Likewise.
8880         * lib/relocwrapper.c: Likewise.
8881         * lib/rename-dest-slash.c: Likewise.
8882         * lib/rename.c: Likewise.
8883         * lib/rmdir.c: Likewise.
8884         * lib/rpmatch.c: Likewise.
8885         * lib/safe-read.c: Likewise.
8886         * lib/safe-read.h: Likewise.
8887         * lib/safe-write.c: Likewise.
8888         * lib/safe-write.h: Likewise.
8889         * lib/same-inode.h: Likewise.
8890         * lib/same.c: Likewise.
8891         * lib/same.h: Likewise.
8892         * lib/save-cwd.c: Likewise.
8893         * lib/save-cwd.h: Likewise.
8894         * lib/savedir.c: Likewise.
8895         * lib/savedir.h: Likewise.
8896         * lib/savewd.c: Likewise.
8897         * lib/savewd.h: Likewise.
8898         * lib/search.in.h: Likewise.
8899         * lib/setenv.c: Likewise.
8900         * lib/setenv.h: Likewise.
8901         * lib/settime.c: Likewise.
8902         * lib/sh-quote.c: Likewise.
8903         * lib/sh-quote.h: Likewise.
8904         * lib/sig2str.c: Likewise.
8905         * lib/sig2str.h: Likewise.
8906         * lib/signal.in.h: Likewise.
8907         * lib/signbitd.c: Likewise.
8908         * lib/signbitf.c: Likewise.
8909         * lib/signbitl.c: Likewise.
8910         * lib/sigprocmask.c: Likewise.
8911         * lib/sincosl.c: Likewise.
8912         * lib/sleep.c: Likewise.
8913         * lib/sprintf.c: Likewise.
8914         * lib/sqrtl.c: Likewise.
8915         * lib/stat-time.h: Likewise.
8916         * lib/stdio--.h: Likewise.
8917         * lib/stdio-safer.h: Likewise.
8918         * lib/stdlib--.h: Likewise.
8919         * lib/stdlib-safer.h: Likewise.
8920         * lib/stdlib.in.h: Likewise.
8921         * lib/stpcpy.c: Likewise.
8922         * lib/stpncpy.c: Likewise.
8923         * lib/strchrnul.c: Likewise.
8924         * lib/strcspn.c: Likewise.
8925         * lib/strerror.c: Likewise.
8926         * lib/strftime.c: Likewise.
8927         * lib/strftime.h: Likewise.
8928         * lib/striconveh.c: Likewise.
8929         * lib/striconveh.h: Likewise.
8930         * lib/striconveha.c: Likewise.
8931         * lib/striconveha.h: Likewise.
8932         * lib/stripslash.c: Likewise.
8933         * lib/strnlen1.c: Likewise.
8934         * lib/strnlen1.h: Likewise.
8935         * lib/strtod.c: Likewise.
8936         * lib/strtoimax.c: Likewise.
8937         * lib/strtok_r.c: Likewise.
8938         * lib/strtol.c: Likewise.
8939         * lib/strtoll.c: Likewise.
8940         * lib/strtoul.c: Likewise.
8941         * lib/strtoull.c: Likewise.
8942         * lib/sysexits.in.h: Likewise.
8943         * lib/tempname.c: Likewise.
8944         * lib/tempname.h: Likewise.
8945         * lib/timespec.h: Likewise.
8946         * lib/tls.c: Likewise.
8947         * lib/tls.h: Likewise.
8948         * lib/tmpdir.c: Likewise.
8949         * lib/tmpdir.h: Likewise.
8950         * lib/tmpfile-safer.c: Likewise.
8951         * lib/tmpfile.c: Likewise.
8952         * lib/trigl.c: Likewise.
8953         * lib/trigl.h: Likewise.
8954         * lib/trim.c: Likewise.
8955         * lib/trim.h: Likewise.
8956         * lib/trunc.c: Likewise.
8957         * lib/truncf.c: Likewise.
8958         * lib/truncl.c: Likewise.
8959         * lib/tsearch.c: Likewise.
8960         * lib/unicodeio.c: Likewise.
8961         * lib/unicodeio.h: Likewise.
8962         * lib/unistd--.h: Likewise.
8963         * lib/unistd-safer.h: Likewise.
8964         * lib/unistdio/ulc-fprintf.c: Likewise.
8965         * lib/unistdio/ulc-vfprintf.c: Likewise.
8966         * lib/unlinkdir.c: Likewise.
8967         * lib/unlinkdir.h: Likewise.
8968         * lib/unlocked-io.h: Likewise.
8969         * lib/unsetenv.c: Likewise.
8970         * lib/userspec.c: Likewise.
8971         * lib/utime.c: Likewise.
8972         * lib/utimecmp.c: Likewise.
8973         * lib/utimecmp.h: Likewise.
8974         * lib/utimens.c: Likewise.
8975         * lib/verify.h: Likewise.
8976         * lib/verror.c: Likewise.
8977         * lib/verror.h: Likewise.
8978         * lib/version-etc-fsf.c: Likewise.
8979         * lib/version-etc.c: Likewise.
8980         * lib/version-etc.h: Likewise.
8981         * lib/vfprintf.c: Likewise.
8982         * lib/vprintf.c: Likewise.
8983         * lib/vsprintf.c: Likewise.
8984         * lib/w32spawn.h: Likewise.
8985         * lib/wait-process.c: Likewise.
8986         * lib/wait-process.h: Likewise.
8987         * lib/wcwidth.c: Likewise.
8988         * lib/write-any-file.c: Likewise.
8989         * lib/xalloc-die.c: Likewise.
8990         * lib/xalloc.h: Likewise.
8991         * lib/xasprintf.c: Likewise.
8992         * lib/xgetcwd.c: Likewise.
8993         * lib/xgetcwd.h: Likewise.
8994         * lib/xgetdomainname.c: Likewise.
8995         * lib/xgetdomainname.h: Likewise.
8996         * lib/xgethostname.c: Likewise.
8997         * lib/xmalloc.c: Likewise.
8998         * lib/xmalloca.c: Likewise.
8999         * lib/xmalloca.h: Likewise.
9000         * lib/xmemcoll.c: Likewise.
9001         * lib/xnanosleep.c: Likewise.
9002         * lib/xreadlink.c: Likewise.
9003         * lib/xreadlink.h: Likewise.
9004         * lib/xsetenv.c: Likewise.
9005         * lib/xsetenv.h: Likewise.
9006         * lib/xstriconv.c: Likewise.
9007         * lib/xstriconv.h: Likewise.
9008         * lib/xstrndup.c: Likewise.
9009         * lib/xstrndup.h: Likewise.
9010         * lib/xstrtod.c: Likewise.
9011         * lib/xstrtod.h: Likewise.
9012         * lib/xstrtol-error.c: Likewise.
9013         * lib/xstrtol.c: Likewise.
9014         * lib/xstrtol.h: Likewise.
9015         * lib/xtime.h: Likewise.
9016         * lib/xvasprintf.c: Likewise.
9017         * lib/xvasprintf.h: Likewise.
9018         * lib/yesno.c: Likewise.
9019         * lib/yesno.h: Likewise.
9020         * posix-modules: Likewise.
9021         * tests/test-alloca-opt.c: Likewise.
9022         * tests/test-arcfour.c: Likewise.
9023         * tests/test-arctwo.c: Likewise.
9024         * tests/test-argmatch.c: Likewise.
9025         * tests/test-argp-2.sh: Likewise.
9026         * tests/test-argp.c: Likewise.
9027         * tests/test-arpa_inet.c: Likewise.
9028         * tests/test-array_list.c: Likewise.
9029         * tests/test-array_oset.c: Likewise.
9030         * tests/test-atexit.c: Likewise.
9031         * tests/test-avltree_list.c: Likewise.
9032         * tests/test-avltree_oset.c: Likewise.
9033         * tests/test-avltreehash_list.c: Likewise.
9034         * tests/test-base64.c: Likewise.
9035         * tests/test-binary-io.c: Likewise.
9036         * tests/test-byteswap.c: Likewise.
9037         * tests/test-c-ctype.c: Likewise.
9038         * tests/test-c-strcasecmp.c: Likewise.
9039         * tests/test-c-strcasestr.c: Likewise.
9040         * tests/test-c-strncasecmp.c: Likewise.
9041         * tests/test-c-strstr.c: Likewise.
9042         * tests/test-canonicalize-lgpl.c: Likewise.
9043         * tests/test-canonicalize.c: Likewise.
9044         * tests/test-carray_list.c: Likewise.
9045         * tests/test-ceilf.c: Likewise.
9046         * tests/test-ceill.c: Likewise.
9047         * tests/test-count-one-bits.c: Likewise.
9048         * tests/test-crc.c: Likewise.
9049         * tests/test-dirname.c: Likewise.
9050         * tests/test-fbufmode.c: Likewise.
9051         * tests/test-fcntl.c: Likewise.
9052         * tests/test-fflush.c: Likewise.
9053         * tests/test-floorf.c: Likewise.
9054         * tests/test-floorl.c: Likewise.
9055         * tests/test-fopen.c: Likewise.
9056         * tests/test-fprintf-posix.c: Likewise.
9057         * tests/test-fprintf-posix.h: Likewise.
9058         * tests/test-fpurge.c: Likewise.
9059         * tests/test-freadable.c: Likewise.
9060         * tests/test-freadahead.c: Likewise.
9061         * tests/test-freading.c: Likewise.
9062         * tests/test-freopen.c: Likewise.
9063         * tests/test-frexp.c: Likewise.
9064         * tests/test-frexpl.c: Likewise.
9065         * tests/test-fseek.c: Likewise.
9066         * tests/test-fseeko.c: Likewise.
9067         * tests/test-fseterr.c: Likewise.
9068         * tests/test-fstrcmp.c: Likewise.
9069         * tests/test-ftell.c: Likewise.
9070         * tests/test-ftello.c: Likewise.
9071         * tests/test-fwritable.c: Likewise.
9072         * tests/test-fwriting.c: Likewise.
9073         * tests/test-getaddrinfo.c: Likewise.
9074         * tests/test-getpass.c: Likewise.
9075         * tests/test-gettimeofday.c: Likewise.
9076         * tests/test-hmac-md5.c: Likewise.
9077         * tests/test-hmac-sha1.c: Likewise.
9078         * tests/test-iconv.c: Likewise.
9079         * tests/test-iconvme.c: Likewise.
9080         * tests/test-inttypes.c: Likewise.
9081         * tests/test-isnan.c: Likewise.
9082         * tests/test-isnanf.c: Likewise.
9083         * tests/test-isnanl-nolibm.c: Likewise.
9084         * tests/test-isnanl.c: Likewise.
9085         * tests/test-isnanl.h: Likewise.
9086         * tests/test-ldexpl.c: Likewise.
9087         * tests/test-linked_list.c: Likewise.
9088         * tests/test-linkedhash_list.c: Likewise.
9089         * tests/test-locale.c: Likewise.
9090         * tests/test-localename.c: Likewise.
9091         * tests/test-lock.c: Likewise.
9092         * tests/test-lseek.c: Likewise.
9093         * tests/test-malloca.c: Likewise.
9094         * tests/test-math.c: Likewise.
9095         * tests/test-mbscasecmp.c: Likewise.
9096         * tests/test-mbscasestr1.c: Likewise.
9097         * tests/test-mbscasestr2.c: Likewise.
9098         * tests/test-mbscasestr3.c: Likewise.
9099         * tests/test-mbscasestr4.c: Likewise.
9100         * tests/test-mbschr.c: Likewise.
9101         * tests/test-mbscspn.c: Likewise.
9102         * tests/test-mbsncasecmp.c: Likewise.
9103         * tests/test-mbspbrk.c: Likewise.
9104         * tests/test-mbspcasecmp.c: Likewise.
9105         * tests/test-mbsrchr.c: Likewise.
9106         * tests/test-mbsspn.c: Likewise.
9107         * tests/test-mbsstr1.c: Likewise.
9108         * tests/test-mbsstr2.c: Likewise.
9109         * tests/test-mbsstr3.c: Likewise.
9110         * tests/test-md5.c: Likewise.
9111         * tests/test-memmem.c: Likewise.
9112         * tests/test-netinet_in.c: Likewise.
9113         * tests/test-open.c: Likewise.
9114         * tests/test-printf-frexp.c: Likewise.
9115         * tests/test-printf-frexpl.c: Likewise.
9116         * tests/test-printf-posix.c: Likewise.
9117         * tests/test-printf-posix.h: Likewise.
9118         * tests/test-rbtree_list.c: Likewise.
9119         * tests/test-rbtree_oset.c: Likewise.
9120         * tests/test-rbtreehash_list.c: Likewise.
9121         * tests/test-read-file.c: Likewise.
9122         * tests/test-rijndael.c: Likewise.
9123         * tests/test-search.c: Likewise.
9124         * tests/test-signbit.c: Likewise.
9125         * tests/test-sleep.c: Likewise.
9126         * tests/test-snprintf-posix.c: Likewise.
9127         * tests/test-snprintf-posix.h: Likewise.
9128         * tests/test-snprintf.c: Likewise.
9129         * tests/test-sprintf-posix.c: Likewise.
9130         * tests/test-sprintf-posix.h: Likewise.
9131         * tests/test-stat-time.c: Likewise.
9132         * tests/test-stdbool.c: Likewise.
9133         * tests/test-stdint.c: Likewise.
9134         * tests/test-stdio.c: Likewise.
9135         * tests/test-stdlib.c: Likewise.
9136         * tests/test-stpncpy.c: Likewise.
9137         * tests/test-strcasestr.c: Likewise.
9138         * tests/test-striconv.c: Likewise.
9139         * tests/test-striconveh.c: Likewise.
9140         * tests/test-striconveha.c: Likewise.
9141         * tests/test-string.c: Likewise.
9142         * tests/test-sys_select.c: Likewise.
9143         * tests/test-sys_socket.c: Likewise.
9144         * tests/test-sys_stat.c: Likewise.
9145         * tests/test-sys_time.c: Likewise.
9146         * tests/test-sysexits.c: Likewise.
9147         * tests/test-time.c: Likewise.
9148         * tests/test-tls.c: Likewise.
9149         * tests/test-trunc.c: Likewise.
9150         * tests/test-truncf.c: Likewise.
9151         * tests/test-truncl.c: Likewise.
9152         * tests/test-unistd.c: Likewise.
9153         * tests/test-vasnprintf-posix.c: Likewise.
9154         * tests/test-vasnprintf-posix2.c: Likewise.
9155         * tests/test-vasnprintf.c: Likewise.
9156         * tests/test-vasprintf-posix.c: Likewise.
9157         * tests/test-vasprintf.c: Likewise.
9158         * tests/test-verify.c: Likewise.
9159         * tests/test-vfprintf-posix.c: Likewise.
9160         * tests/test-vprintf-posix.c: Likewise.
9161         * tests/test-vsnprintf-posix.c: Likewise.
9162         * tests/test-vsnprintf.c: Likewise.
9163         * tests/test-vsprintf-posix.c: Likewise.
9164         * tests/test-wchar.c: Likewise.
9165         * tests/test-wctype.c: Likewise.
9166         * tests/test-wcwidth.c: Likewise.
9167         * tests/test-xstrtol.c: Likewise.
9168         * tests/test-xvasprintf.c: Likewise.
9169         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9170         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9171         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9172         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9173         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9174         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9175         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9176         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9177         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9178         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9179         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9180         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9181         * tests/uniname/test-uninames.c: Likewise.
9182         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9183         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9184         * tests/unistdio/test-u16-printf1.h: Likewise.
9185         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9186         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9187         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9188         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9189         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9190         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9191         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9192         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9193         * tests/unistdio/test-u32-printf1.h: Likewise.
9194         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9195         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9196         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9197         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9198         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9199         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9200         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9201         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9202         * tests/unistdio/test-u8-printf1.h: Likewise.
9203         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9204         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9205         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9206         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9207         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9208         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9209         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9210         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9211         * tests/unistdio/test-ulc-printf1.h: Likewise.
9212         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9213         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9214         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9215         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9216         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9217         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9218         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9219         * tests/uniwidth/test-u16-width.c: Likewise.
9220         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9221         * tests/uniwidth/test-u32-width.c: Likewise.
9222         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9223         * tests/uniwidth/test-u8-width.c: Likewise.
9224         * tests/uniwidth/test-uc_width.c: Likewise.
9225         * config/srclist-update: Likewise.
9226         (fixlicense): Update to GPLv3+.
9227
9228         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9229         * tests/test-tsearch.c: Change copyright notice.
9230
9231         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9232         * lib/c-strcaseeq.h: Change copyright notice.
9233         * lib/streq.h: Likewise.
9234         * lib/uniconv.h: Likewise.
9235         * lib/uniconv/u-conv-from-enc.h: Likewise.
9236         * lib/uniconv/u-conv-to-enc.h: Likewise.
9237         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9238         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9239         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9240         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9241         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9242         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9243         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9244         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9245         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9246         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9247         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9248         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9249         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9250         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9251         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9252         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9253         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9254         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9255         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9256         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9257         * lib/uniname.h: Likewise.
9258         * lib/uniname/uniname.c: Likewise.
9259         * lib/unistdio.h: Likewise.
9260         * lib/unistdio/u-asnprintf.h: Likewise.
9261         * lib/unistdio/u-asprintf.h: Likewise.
9262         * lib/unistdio/u-printf-args.c: Likewise.
9263         * lib/unistdio/u-printf-args.h: Likewise.
9264         * lib/unistdio/u-printf-parse.h: Likewise.
9265         * lib/unistdio/u-snprintf.h: Likewise.
9266         * lib/unistdio/u-sprintf.h: Likewise.
9267         * lib/unistdio/u-vasprintf.h: Likewise.
9268         * lib/unistdio/u-vsnprintf.h: Likewise.
9269         * lib/unistdio/u-vsprintf.h: Likewise.
9270         * lib/unistdio/u16-asnprintf.c: Likewise.
9271         * lib/unistdio/u16-asprintf.c: Likewise.
9272         * lib/unistdio/u16-printf-parse.c: Likewise.
9273         * lib/unistdio/u16-snprintf.c: Likewise.
9274         * lib/unistdio/u16-sprintf.c: Likewise.
9275         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9276         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9277         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9278         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9279         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9280         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9281         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9282         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9283         * lib/unistdio/u16-vasnprintf.c: Likewise.
9284         * lib/unistdio/u16-vasprintf.c: Likewise.
9285         * lib/unistdio/u16-vsnprintf.c: Likewise.
9286         * lib/unistdio/u16-vsprintf.c: Likewise.
9287         * lib/unistdio/u32-asnprintf.c: Likewise.
9288         * lib/unistdio/u32-asprintf.c: Likewise.
9289         * lib/unistdio/u32-printf-parse.c: Likewise.
9290         * lib/unistdio/u32-snprintf.c: Likewise.
9291         * lib/unistdio/u32-sprintf.c: Likewise.
9292         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9293         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9294         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9295         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9296         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9297         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9298         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9299         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9300         * lib/unistdio/u32-vasnprintf.c: Likewise.
9301         * lib/unistdio/u32-vasprintf.c: Likewise.
9302         * lib/unistdio/u32-vsnprintf.c: Likewise.
9303         * lib/unistdio/u32-vsprintf.c: Likewise.
9304         * lib/unistdio/u8-asnprintf.c: Likewise.
9305         * lib/unistdio/u8-asprintf.c: Likewise.
9306         * lib/unistdio/u8-printf-parse.c: Likewise.
9307         * lib/unistdio/u8-snprintf.c: Likewise.
9308         * lib/unistdio/u8-sprintf.c: Likewise.
9309         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9310         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9311         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9312         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9313         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9314         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9315         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9316         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9317         * lib/unistdio/u8-vasnprintf.c: Likewise.
9318         * lib/unistdio/u8-vasprintf.c: Likewise.
9319         * lib/unistdio/u8-vsnprintf.c: Likewise.
9320         * lib/unistdio/u8-vsprintf.c: Likewise.
9321         * lib/unistdio/ulc-asnprintf.c: Likewise.
9322         * lib/unistdio/ulc-asprintf.c: Likewise.
9323         * lib/unistdio/ulc-printf-parse.c: Likewise.
9324         * lib/unistdio/ulc-snprintf.c: Likewise.
9325         * lib/unistdio/ulc-sprintf.c: Likewise.
9326         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9327         * lib/unistdio/ulc-vasprintf.c: Likewise.
9328         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9329         * lib/unistdio/ulc-vsprintf.c: Likewise.
9330         * lib/unistr.h: Likewise.
9331         * lib/unistr/u-cpy-alloc.h: Likewise.
9332         * lib/unistr/u-cpy.h: Likewise.
9333         * lib/unistr/u-endswith.h: Likewise.
9334         * lib/unistr/u-move.h: Likewise.
9335         * lib/unistr/u-set.h: Likewise.
9336         * lib/unistr/u-startswith.h: Likewise.
9337         * lib/unistr/u-stpcpy.h: Likewise.
9338         * lib/unistr/u-stpncpy.h: Likewise.
9339         * lib/unistr/u-strcat.h: Likewise.
9340         * lib/unistr/u-strcpy.h: Likewise.
9341         * lib/unistr/u-strcspn.h: Likewise.
9342         * lib/unistr/u-strdup.h: Likewise.
9343         * lib/unistr/u-strlen.h: Likewise.
9344         * lib/unistr/u-strncat.h: Likewise.
9345         * lib/unistr/u-strncpy.h: Likewise.
9346         * lib/unistr/u-strnlen.h: Likewise.
9347         * lib/unistr/u-strpbrk.h: Likewise.
9348         * lib/unistr/u-strspn.h: Likewise.
9349         * lib/unistr/u-strstr.h: Likewise.
9350         * lib/unistr/u-strtok.h: Likewise.
9351         * lib/unistr/u16-check.c: Likewise.
9352         * lib/unistr/u16-chr.c: Likewise.
9353         * lib/unistr/u16-cmp.c: Likewise.
9354         * lib/unistr/u16-cpy-alloc.c: Likewise.
9355         * lib/unistr/u16-cpy.c: Likewise.
9356         * lib/unistr/u16-endswith.c: Likewise.
9357         * lib/unistr/u16-mblen.c: Likewise.
9358         * lib/unistr/u16-mbsnlen.c: Likewise.
9359         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9360         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9361         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9362         * lib/unistr/u16-mbtouc.c: Likewise.
9363         * lib/unistr/u16-mbtoucr.c: Likewise.
9364         * lib/unistr/u16-move.c: Likewise.
9365         * lib/unistr/u16-next.c: Likewise.
9366         * lib/unistr/u16-prev.c: Likewise.
9367         * lib/unistr/u16-set.c: Likewise.
9368         * lib/unistr/u16-startswith.c: Likewise.
9369         * lib/unistr/u16-stpcpy.c: Likewise.
9370         * lib/unistr/u16-stpncpy.c: Likewise.
9371         * lib/unistr/u16-strcat.c: Likewise.
9372         * lib/unistr/u16-strchr.c: Likewise.
9373         * lib/unistr/u16-strcmp.c: Likewise.
9374         * lib/unistr/u16-strcpy.c: Likewise.
9375         * lib/unistr/u16-strcspn.c: Likewise.
9376         * lib/unistr/u16-strdup.c: Likewise.
9377         * lib/unistr/u16-strlen.c: Likewise.
9378         * lib/unistr/u16-strmblen.c: Likewise.
9379         * lib/unistr/u16-strmbtouc.c: Likewise.
9380         * lib/unistr/u16-strncat.c: Likewise.
9381         * lib/unistr/u16-strncmp.c: Likewise.
9382         * lib/unistr/u16-strncpy.c: Likewise.
9383         * lib/unistr/u16-strnlen.c: Likewise.
9384         * lib/unistr/u16-strpbrk.c: Likewise.
9385         * lib/unistr/u16-strrchr.c: Likewise.
9386         * lib/unistr/u16-strspn.c: Likewise.
9387         * lib/unistr/u16-strstr.c: Likewise.
9388         * lib/unistr/u16-strtok.c: Likewise.
9389         * lib/unistr/u16-to-u32.c: Likewise.
9390         * lib/unistr/u16-to-u8.c: Likewise.
9391         * lib/unistr/u16-uctomb-aux.c: Likewise.
9392         * lib/unistr/u16-uctomb.c: Likewise.
9393         * lib/unistr/u32-check.c: Likewise.
9394         * lib/unistr/u32-chr.c: Likewise.
9395         * lib/unistr/u32-cmp.c: Likewise.
9396         * lib/unistr/u32-cpy-alloc.c: Likewise.
9397         * lib/unistr/u32-cpy.c: Likewise.
9398         * lib/unistr/u32-endswith.c: Likewise.
9399         * lib/unistr/u32-mblen.c: Likewise.
9400         * lib/unistr/u32-mbsnlen.c: Likewise.
9401         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9402         * lib/unistr/u32-mbtouc.c: Likewise.
9403         * lib/unistr/u32-mbtoucr.c: Likewise.
9404         * lib/unistr/u32-move.c: Likewise.
9405         * lib/unistr/u32-next.c: Likewise.
9406         * lib/unistr/u32-prev.c: Likewise.
9407         * lib/unistr/u32-set.c: Likewise.
9408         * lib/unistr/u32-startswith.c: Likewise.
9409         * lib/unistr/u32-stpcpy.c: Likewise.
9410         * lib/unistr/u32-stpncpy.c: Likewise.
9411         * lib/unistr/u32-strcat.c: Likewise.
9412         * lib/unistr/u32-strchr.c: Likewise.
9413         * lib/unistr/u32-strcmp.c: Likewise.
9414         * lib/unistr/u32-strcpy.c: Likewise.
9415         * lib/unistr/u32-strcspn.c: Likewise.
9416         * lib/unistr/u32-strdup.c: Likewise.
9417         * lib/unistr/u32-strlen.c: Likewise.
9418         * lib/unistr/u32-strmblen.c: Likewise.
9419         * lib/unistr/u32-strmbtouc.c: Likewise.
9420         * lib/unistr/u32-strncat.c: Likewise.
9421         * lib/unistr/u32-strncmp.c: Likewise.
9422         * lib/unistr/u32-strncpy.c: Likewise.
9423         * lib/unistr/u32-strnlen.c: Likewise.
9424         * lib/unistr/u32-strpbrk.c: Likewise.
9425         * lib/unistr/u32-strrchr.c: Likewise.
9426         * lib/unistr/u32-strspn.c: Likewise.
9427         * lib/unistr/u32-strstr.c: Likewise.
9428         * lib/unistr/u32-strtok.c: Likewise.
9429         * lib/unistr/u32-to-u16.c: Likewise.
9430         * lib/unistr/u32-to-u8.c: Likewise.
9431         * lib/unistr/u32-uctomb.c: Likewise.
9432         * lib/unistr/u8-check.c: Likewise.
9433         * lib/unistr/u8-chr.c: Likewise.
9434         * lib/unistr/u8-cmp.c: Likewise.
9435         * lib/unistr/u8-cpy-alloc.c: Likewise.
9436         * lib/unistr/u8-cpy.c: Likewise.
9437         * lib/unistr/u8-endswith.c: Likewise.
9438         * lib/unistr/u8-mblen.c: Likewise.
9439         * lib/unistr/u8-mbsnlen.c: Likewise.
9440         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9441         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9442         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9443         * lib/unistr/u8-mbtouc.c: Likewise.
9444         * lib/unistr/u8-mbtoucr.c: Likewise.
9445         * lib/unistr/u8-move.c: Likewise.
9446         * lib/unistr/u8-next.c: Likewise.
9447         * lib/unistr/u8-prev.c: Likewise.
9448         * lib/unistr/u8-set.c: Likewise.
9449         * lib/unistr/u8-startswith.c: Likewise.
9450         * lib/unistr/u8-stpcpy.c: Likewise.
9451         * lib/unistr/u8-stpncpy.c: Likewise.
9452         * lib/unistr/u8-strcat.c: Likewise.
9453         * lib/unistr/u8-strchr.c: Likewise.
9454         * lib/unistr/u8-strcmp.c: Likewise.
9455         * lib/unistr/u8-strcpy.c: Likewise.
9456         * lib/unistr/u8-strcspn.c: Likewise.
9457         * lib/unistr/u8-strdup.c: Likewise.
9458         * lib/unistr/u8-strlen.c: Likewise.
9459         * lib/unistr/u8-strmblen.c: Likewise.
9460         * lib/unistr/u8-strmbtouc.c: Likewise.
9461         * lib/unistr/u8-strncat.c: Likewise.
9462         * lib/unistr/u8-strncmp.c: Likewise.
9463         * lib/unistr/u8-strncpy.c: Likewise.
9464         * lib/unistr/u8-strnlen.c: Likewise.
9465         * lib/unistr/u8-strpbrk.c: Likewise.
9466         * lib/unistr/u8-strrchr.c: Likewise.
9467         * lib/unistr/u8-strspn.c: Likewise.
9468         * lib/unistr/u8-strstr.c: Likewise.
9469         * lib/unistr/u8-strtok.c: Likewise.
9470         * lib/unistr/u8-to-u16.c: Likewise.
9471         * lib/unistr/u8-to-u32.c: Likewise.
9472         * lib/unistr/u8-uctomb-aux.c: Likewise.
9473         * lib/unistr/u8-uctomb.c: Likewise.
9474         * lib/unitypes.h: Likewise.
9475         * lib/uniwidth.h: Likewise.
9476         * lib/uniwidth/cjk.h: Likewise.
9477         * lib/uniwidth/u16-strwidth.c: Likewise.
9478         * lib/uniwidth/u16-width.c: Likewise.
9479         * lib/uniwidth/u32-strwidth.c: Likewise.
9480         * lib/uniwidth/u32-width.c: Likewise.
9481         * lib/uniwidth/u8-strwidth.c: Likewise.
9482         * lib/uniwidth/u8-width.c: Likewise.
9483         * lib/uniwidth/width.c: Likewise.
9484
9485 2007-10-07  Bruno Haible  <bruno@clisp.org>
9486
9487         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9488         The file is still under LGPL (see modules/inttypes).
9489
9490 2007-10-06  Bruno Haible  <bruno@clisp.org>
9491
9492         * modules/trunc (Dependencies): Add 'extensions'.
9493         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9494         Reported by Ben Pfaff <blp@gnu.org>.
9495
9496 2007-10-06  Bruno Haible  <bruno@clisp.org>
9497
9498         * modules/freopen-tests: New file.
9499         * tests/test-freopen.c: New file.
9500
9501         * modules/fopen-tests: New file.
9502         * tests/test-fopen.c: New file.
9503
9504         * modules/fopen: New file.
9505         * lib/fopen.c: New file.
9506         * m4/fopen.m4: New file.
9507         * modules/freopen: New file.
9508         * lib/freopen.c: New file.
9509         * m4/freopen.m4: New file.
9510         * lib/stdio.in.h (fopen, freopen): New declarations.
9511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9512         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9513         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9514         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9515         * doc/functions/fopen.texi: Mention the 'fopen' module.
9516         * doc/functions/freopen.texi: Mention the 'freopen' module.
9517
9518 2007-10-06  Bruno Haible  <bruno@clisp.org>
9519
9520         * modules/open-tests: New file.
9521         * tests/test-open.c: New file.
9522
9523         * modules/open: New file.
9524         * lib/open.c: New file.
9525         * m4/open.m4: New file.
9526         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9527         lib/open.c does.
9528         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9529         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9530         macros.
9531         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9532         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9533         REPLACE_OPEN.
9534         * doc/functions/open.texi: Mention the 'open' module.
9535
9536 2007-10-04  Bruno Haible  <bruno@clisp.org>
9537
9538         * modules/ceill-tests: New file.
9539         * tests/test-ceill.c: New file.
9540
9541         * modules/ceill: New file.
9542         * lib/ceill.c: Replace entire file.
9543         * m4/ceill.m4: New file.
9544         * lib/math.in.h (ceill): Replace declaration.
9545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9546         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9547         * doc/functions/ceill.texi: Mention the 'ceill' module.
9548         * modules/mathl (Files): Remove lib/ceill.c.
9549         (Depends-on): Add ceill.
9550
9551 2007-10-04  Bruno Haible  <bruno@clisp.org>
9552
9553         * modules/ceilf-tests: New file.
9554         * tests/test-ceilf.c: New file.
9555
9556         * modules/ceilf: New file.
9557         * lib/ceil.c: New file.
9558         * lib/ceilf.c: New file.
9559         * m4/ceilf.m4: New file.
9560         * lib/math.in.h (ceilf): New declaration.
9561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9562         HAVE_DECL_CEILF.
9563         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9564         HAVE_DECL_CEILF.
9565         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9566
9567 2007-10-04  Bruno Haible  <bruno@clisp.org>
9568
9569         * modules/floorl-tests: New file.
9570         * tests/test-floorl.c: New file.
9571
9572         * modules/floorl: New file.
9573         * lib/floorl.c: Replace entire file.
9574         * m4/floorl.m4: New file.
9575         * lib/math.in.h (floorl): Replace declaration.
9576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9577         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9578         * doc/functions/floorl.texi: Mention the 'floorl' module.
9579         * modules/mathl (Files): Remove lib/floorl.c.
9580         (Depends-on): Add floorl.
9581
9582 2007-10-04  Bruno Haible  <bruno@clisp.org>
9583
9584         * modules/floorf-tests: New file.
9585         * tests/test-floorf.c: New file.
9586
9587         * modules/floorf: New file.
9588         * lib/floor.c: New file.
9589         * lib/floorf.c: New file.
9590         * m4/floorf.m4: New file.
9591         * lib/math.in.h (floorf): New declaration.
9592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9593         HAVE_DECL_FLOORF.
9594         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9595         HAVE_DECL_FLOORF.
9596         * doc/functions/floorf.texi: Mention the 'floorf' module.
9597
9598 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9599             Bruno Haible  <bruno@clisp.org>
9600
9601         Advertise for the Git server instead of the CVS server.
9602         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9603         repository instead of the CVS one.
9604         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9605         about all VCS systems generically.
9606         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9607
9608 2007-10-04  Bruno Haible  <bruno@clisp.org>
9609
9610         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9611         means.
9612         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9613
9614 2007-10-04  Bruno Haible  <bruno@clisp.org>
9615
9616         * modules/truncl-tests: New file.
9617         * tests/test-truncl.c: New file.
9618
9619         * modules/truncl: New file.
9620         * lib/truncl.c: New file.
9621         * m4/truncl.m4: New file.
9622         * lib/math.in.h (truncl): New declaration.
9623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9624         HAVE_DECL_TRUNCL.
9625         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9626         HAVE_DECL_TRUNCL.
9627         * doc/functions/truncl.texi: Mention the 'truncl' module.
9628
9629 2007-10-04  Bruno Haible  <bruno@clisp.org>
9630
9631         * modules/truncf-tests: New file.
9632         * tests/test-truncf.c: New file.
9633
9634         * modules/truncf: New file.
9635         * lib/trunc.c: Make paramerizable through USE_* macros.
9636         * lib/truncf.c: New file.
9637         * m4/truncf.m4: New file.
9638         * lib/math.in.h (truncf): New declaration.
9639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9640         HAVE_DECL_TRUNCF.
9641         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9642         HAVE_DECL_TRUNCF.
9643         * doc/functions/truncf.texi: Mention the 'truncf' module.
9644
9645 2007-10-03  Bruno Haible  <bruno@clisp.org>
9646
9647         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9648         augmentation also for tests modules.
9649         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9650         * modules/atexit-tests (Makefile.am): Likewise.
9651         * modules/binary-io-tests (Makefile.am): Likewise.
9652         * modules/c-strcase-tests (Makefile.am): Likewise.
9653         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9654         * modules/canonicalize-tests (Makefile.am): Likewise.
9655         * modules/closein-tests (Makefile.am): Likewise.
9656         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9657         * modules/freadahead-tests (Makefile.am): Likewise.
9658         * modules/fseek-tests (Makefile.am): Likewise.
9659         * modules/fseeko-tests (Makefile.am): Likewise.
9660         * modules/ftell-tests (Makefile.am): Likewise.
9661         * modules/ftello-tests (Makefile.am): Likewise.
9662         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9663         * modules/isnanl-tests (Makefile.am): Likewise.
9664         * modules/lseek-tests (Makefile.am): Likewise.
9665         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9666         * modules/mbscasestr-tests (Makefile.am): Likewise.
9667         * modules/mbschr-tests (Makefile.am): Likewise.
9668         * modules/mbscspn-tests (Makefile.am): Likewise.
9669         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9670         * modules/mbspbrk-tests (Makefile.am): Likewise.
9671         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9672         * modules/mbsrchr-tests (Makefile.am): Likewise.
9673         * modules/mbsspn-tests (Makefile.am): Likewise.
9674         * modules/mbsstr-tests (Makefile.am): Likewise.
9675         * modules/printf-posix-tests (Makefile.am): Likewise.
9676         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9677         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9678         * modules/tsearch-tests (Makefile.am): Likewise.
9679         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9680         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9681         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9682         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9683         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9684         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9685         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9686         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9687         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9688         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9689         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9690         * modules/xstrtol-tests (Makefile.am): Likewise.
9691         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9692         * modules/yesno-tests (Makefile.am): Likewise.
9693
9694 2007-10-03  Bruno Haible  <bruno@clisp.org>
9695
9696         * modules/trunc-tests: New file.
9697         * tests/test-trunc.c: New file.
9698
9699         * modules/trunc: New file.
9700         * lib/trunc.c: New file.
9701         * m4/trunc.m4: New file.
9702         * lib/math.in.h (trunc): New declaration.
9703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9704         HAVE_DECL_TRUNC.
9705         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9706         HAVE_DECL_TRUNC.
9707         * doc/functions/trunc.texi: Mention the 'trunc' module.
9708
9709 2007-10-03  Bruno Haible  <bruno@clisp.org>
9710
9711         * tests/test-fpending.c: New file, mostly copied
9712         from coreutils/lib/t-fpending.c.
9713         * modules/fpending-tests: New file.
9714
9715 2007-10-03  Bruno Haible  <bruno@clisp.org>
9716
9717         Port the stdio extensions to QNX (untested).
9718         * lib/fseterr.c (fseterr): Add support for QNX.
9719         * lib/fbufmode.c (fbufmode): Likewise.
9720         * lib/freadable.c (freadable): Likewise.
9721         * lib/fwritable.c (fwritable): Likewise.
9722         * lib/freading.c (freading): Likewise.
9723         * lib/fwriting.c (fwriting): Likewise.
9724         * lib/freadahead.c (freadahed): Likewise.
9725         * lib/fpurge.c (fpurge): Likewise.
9726         * lib/fseeko.c (rpl_fseeko): Likewise.
9727
9728 2007-10-03  Bruno Haible  <bruno@clisp.org>
9729             Jim Meyering  <jim@meyering.net>
9730             Eric Blake  <ebb9@byu.net>
9731
9732         * doc/relocatable.texi: Use @command instead of @program.
9733
9734 2007-10-02  Jim Meyering  <jim@meyering.net>
9735
9736         Perform one more "_.h" -> ".in.h" substitution.
9737         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9738         instead of unistd_.h here, too.
9739
9740 2007-10-01  Bruno Haible  <bruno@clisp.org>
9741
9742         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9743         Needed for the alloca-opt module.
9744
9745 2007-09-30  Bruno Haible  <bruno@clisp.org>
9746
9747         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9748         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9749         alloca_.h.
9750         * lib/argz.in.h: Renamed from lib/argz_.h.
9751         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9752         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9753         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9754         byteswap_.h.
9755         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9756         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9757         dirent_.h.
9758         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9759         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9760         fcntl_.h.
9761         * lib/float.in.h: Renamed from lib/float_.h.
9762         * modules/float (Files, Makefile.am): Use float.in.h instead of
9763         float_.h.
9764         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9765         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9766         fnmatch_.h.
9767         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9768         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9769         getopt_.h.
9770         * lib/glob.in.h: Renamed from lib/glob_.h.
9771         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9772         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9773         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9774         iconv_.h.
9775         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9776         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9777         inttypes_.h.
9778         * lib/locale.in.h: Renamed from lib/locale_.h.
9779         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9780         locale_.h.
9781         * lib/math.in.h: Renamed from lib/math_.h.
9782         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9783         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9784         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9785         of netinet_in_.h. Add dependency.
9786         * lib/poll.in.h: Renamed from lib/poll_.h.
9787         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9788         * lib/search.in.h: Renamed from lib/search_.h.
9789         * modules/search (Files, Makefile.am): Use search.in.h instead of
9790         search_.h.
9791         * lib/signal.in.h: Renamed from lib/signal_.h.
9792         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9793         _signal.h.
9794         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9795         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9796         stdbool_.h.
9797         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9798         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9799         stdint_.h.
9800         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9801         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9802         stdio_.h.
9803         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9804         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9805         stdlib_.h.
9806         * lib/string.in.h: Renamed from lib/string_.h.
9807         * modules/string (Files, Makefile.am): Use string.in.h instead of
9808         string_.h.
9809         * doc/gnulib-tool.texi (Initial import): Update.
9810         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9811         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9812         of sys_select_.h. Add dependency.
9813         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9814         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9815         of sys_socket_.h.
9816         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9817         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9818         sys_stat_.h.
9819         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9820         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9821         sys_time_.h.
9822         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9823         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9824         sysexits_.h.
9825         * lib/time.in.h: Renamed from lib/time_.h.
9826         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9827         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9828         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9829         unistd_.h.
9830         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9831         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9832         wchar_.h.
9833         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9834         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9835         wctype_.h.
9836         * build-aux/bootstrap (slurp): Update.
9837         * lib/.cppi-disable: Update.
9838
9839 2007-09-30  Bruno Haible  <bruno@clisp.org>
9840
9841         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9842         Needed on BeOS.
9843
9844 2007-09-30  Bruno Haible  <bruno@clisp.org>
9845
9846         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9847
9848 2007-09-29  Bruno Haible  <bruno@clisp.org>
9849
9850         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9851
9852 2007-09-29  Bruno Haible  <bruno@clisp.org>
9853
9854         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9855         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9856         * build-aux/install-reloc: Compile also areadlink.c.
9857         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9858
9859 2007-09-29  Bruno Haible  <bruno@clisp.org>
9860
9861         * gnulib-tool (func_emit_initmacro_done): Indentation.
9862
9863 2007-09-29  Bruno Haible  <bruno@clisp.org>
9864
9865         * README: Add CVS checkout update instructions.
9866         Info from Bob Proulx <bob@proulx.com>.
9867
9868 2007-09-28  Eric Blake  <ebb9@byu.net>
9869
9870         Provide move-if-change.
9871         * build-aux/move-if-change: New file, based on best practice
9872         rather than any canonical upstream location.
9873
9874 2007-09-28  Jim Meyering  <jim@meyering.net>
9875
9876         Fix canonicalize loop-detection corner case.
9877         Do not attempt to stat the symlink values stored via seen_triple.
9878         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9879         on linux-2.6.18, (but not 2.6.22).
9880         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9881         triple_compare.  The former compares dev,ino,filename, while the latter
9882         would actually stat dirname(filename) when dev and ino were equal.
9883         * lib/hash-triple.c: Install <string.h>.
9884         (STREQ): Define.
9885         (triple_compare_ino_str): New function.
9886         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9887
9888 2007-09-28  Eric Blake  <ebb9@byu.net>
9889
9890         Enforce that AC_REPLACE_FUNCS files exist.
9891         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9892         override check for typos.
9893
9894         Fix test-closein on Solaris 10.
9895         * tests/test-closein.c (main): Don't assume stdin can be inherited
9896         closed on all systems.
9897         * tests/test-closein.sh: Likewise.
9898         Reported by Piotr Tarnowski.
9899
9900 2007-09-28  Jim Meyering  <jim@meyering.net>
9901
9902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9903
9904 2007-09-27  Jim Meyering  <jim@meyering.net>
9905
9906         canonicalize: Avoid a false-positive cycle failure.
9907         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9908         Sort.  Remove cycle-check.
9909         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9910         not cycle-check.h.
9911         (seen_triple): New function.
9912         (canonicalize_filename_mode): Use it instead of cycle-check.
9913         * tests/test-canonicalize.c: Add a test for this bug.
9914         * tests/test-canonicalize.sh: Set up and run the test.
9915
9916         New module, file-set, from coreutils.
9917         * modules/file-set: Define it.
9918         * lib/file-set.c, lib/file-set.h: Implement.
9919
9920         New module, hash-triple, from coreutils.
9921         * modules/hash-triple: Define it.
9922         * lib/hash-triple.c, lib/hash-triple.h: Implement.
9923
9924 2007-09-25  Eric Blake  <ebb9@byu.net>
9925
9926         Fix strerror on Interix.
9927         * lib/string_.h (strerror): Declare replacement.
9928         * doc/functions/strerror.texi (strerror): Document the Interix
9929         shortcoming.
9930         * modules/string (Makefile.am): Support new hooks.
9931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9932         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9933         gl_FUNC_STRERROR_SEPARATE.
9934         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9935         * lib/strerror.c (rpl_strerror): Provide replacement.
9936         * modules/strerror (Depends-on): Add string.
9937         (configure.ac): Detect use of module.
9938         * tests/test-strerror.c: New file.
9939         * modules/strerror-tests: New test module.
9940         * modules/argp (Depends-on): Add strerror.
9941         * modules/error (Depends-on): Likewise.
9942         Reported by Martin Koeppe.
9943
9944 2007-09-24  Bruno Haible  <bruno@clisp.org>
9945
9946         * README: Update git instructions.
9947
9948 2007-09-24  Eric Blake  <ebb9@byu.net>
9949
9950         Revert fpending breakage from 2007-09-08.
9951         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9952         __fpending.c.
9953
9954 2007-09-24  Jim Meyering  <jim@meyering.net>
9955
9956         filenamecat.c: Add a test.
9957         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9958         showing how the function works when DIR is the empty string.
9959
9960 2007-09-21  Simon Josefsson  <simon@josefsson.org>
9961
9962         * tests/test-canonicalize.sh: Turn on executable bit.
9963
9964 2007-09-19  Eric Blake  <ebb9@byu.net>
9965
9966         * README: Update CVS instructions.
9967
9968 2007-09-18  Bruno Haible  <bruno@clisp.org>
9969
9970         * modules/areadlink: New file.
9971         * lib/areadlink.h (areadlink): New declaration.
9972         * lib/areadlink.c: New file, based on lib/xreadlink.c.
9973
9974 2007-09-17  Jim Meyering  <jim@meyering.net>
9975
9976         * lib/savewd.c (ESTALE) [!defined]: Define.
9977         Reported to be required on Interix by Martin Koeppe.
9978
9979 2007-09-17  Bruno Haible  <bruno@clisp.org>
9980
9981         * gnulib-tool (func_version): Use $version.
9982
9983 2007-09-16  Bruno Haible  <bruno@clisp.org>
9984
9985         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9986         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9987         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9988         Reported by Greg Schafer <gschafer@zip.com.au>.
9989
9990 2007-09-15  Bruno Haible  <bruno@clisp.org>
9991
9992         * gnulib-tool (sed): Try a little harder to make bash understand the
9993         alias.
9994         Reported by Bruce Korb <bruce.korb@gmail.com>.
9995
9996 2007-09-13  Eric Blake  <ebb9@byu.net>
9997
9998         * ChangeLog: Remove conflict markers.
9999
10000 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10001
10002         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10003         Reported by Bruno Haible <bruno@clisp.org>.
10004
10005 2007-09-12  Bruno Haible  <bruno@clisp.org>
10006
10007         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10008         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10009         is not defined.
10010
10011 2007-09-12  Eric Blake  <ebb9@byu.net>
10012
10013         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10015         Autoconf definition.
10016         * modules/euidaccess (Depends-on): Add extensions, for
10017         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10018         * modules/fnmatch (Depends-on): Likewise.
10019         * modules/getaddrinfo (Depends-on): Likewise.
10020         * modules/getdelim (Depends-on): Likewise.
10021         * modules/getline (Depends-on): Likewise.
10022         * modules/getsubopt (Depends-on): Likewise.
10023         * modules/gettext (Depends-on): Likewise.
10024         * modules/group-member (Depends-on): Likewise.
10025         * modules/mbchar (Depends-on): Likewise.
10026         * modules/memmem (Depends-on): Likewise.
10027         * modules/mempcpy (Depends-on): Likewise.
10028         * modules/memrchr (Depends-on): Likewise.
10029         * modules/pagealign_alloc (Depends-on): Likewise.
10030         * modules/readutmp (Depends-on): Likewise.
10031         * modules/stpcpy (Depends-on): Likewise.
10032         * modules/stpncpy (Depends-on): Likewise.
10033         * modules/strchrnul (Depends-on): Likewise.
10034         * modules/strndup (Depends-on): Likewise.
10035         * modules/strsep (Depends-on): Likewise.
10036         * modules/strverscmp (Depends-on): Likewise.
10037         * modules/vasprintf (Depends-on): Likewise.
10038         * modules/wcwidth (Depends-on): Likewise.
10039         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10040         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10041         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10042         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10043         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10044         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10045         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10046         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10047         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10048         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10049         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10050         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10051         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10053         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10054         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10055         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10056         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10058         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10059         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10060         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10061         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10062         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10063         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10065         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10066         so that lock.m4 can be used in gettext without extensions module.
10067
10068 2007-09-11  Bruno Haible  <bruno@clisp.org>
10069
10070         * m4/isc-posix.m4: Remove file.
10071         Suggested by Eric Blake.
10072
10073 2007-09-11  Eric Blake  <ebb9@byu.net>
10074
10075         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10076
10077 2007-09-10  Bruno Haible  <bruno@clisp.org>
10078
10079         * posix-modules: Fix typo in error message.
10080         Reported by Matt <mkraai@beckman.com>.
10081
10082 2007-09-09  Bruno Haible  <bruno@clisp.org>
10083
10084         * doc/functions/getdelim.texi: Update list of platforms lacking the
10085         function.
10086         * doc/functions/getline.texi: Likewise.
10087
10088 2007-09-09  Jim Meyering  <jim@meyering.net>
10089
10090         * lib/hash.c (hash_initialize): Detect calloc failure.
10091         Reported by Bruno Haible.
10092
10093 2007-09-09  Bruno Haible  <bruno@clisp.org>
10094
10095         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10096         malloc or realloc fails.
10097
10098 2007-09-09  Bruno Haible  <bruno@clisp.org>
10099
10100         * modules/getcwd (Depends-on): Add malloc-posix.
10101         * modules/glob (Depends-on): Likewise.
10102         * modules/putenv (Depends-on): Likewise.
10103         * modules/strdup (Depends-on): Likewise.
10104         * modules/getdelim (Depends-on): Add realloc-posix.
10105         * modules/read-file (Depends-on): Likewise.
10106
10107 2007-09-09  Bruno Haible  <bruno@clisp.org>
10108
10109         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10110         (gl_FUNC_MALLOC_POSIX): Require it.
10111         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10112         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10113         * modules/realloc (Files): Add m4/malloc.m4.
10114         * modules/calloc (Files): Likewise.
10115
10116 2007-09-09  Bruno Haible  <bruno@clisp.org>
10117
10118         * modules/malloc-posix: New file.
10119         * modules/malloc (Depends-on): Add malloc-posix.
10120         * lib/malloc.c: Include errno.h.
10121         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10122         and a POSIX-compatible malloc into a single function. Set ENOMEM
10123         when returning NULL.
10124         * m4/malloc.m4: New file.
10125         * doc/functions/malloc.texi: Mention the malloc-posix module.
10126         * lib/stdlib_.h (malloc): New declaration.
10127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10128         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10129         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10130         and HAVE_MALLOC_POSIX.
10131
10132 2007-09-09  Bruno Haible  <bruno@clisp.org>
10133
10134         * modules/realloc-posix: New file.
10135         * modules/realloc (Depends-on): Add realloc-posix.
10136         * lib/realloc.c: Include errno.h.
10137         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10138         and a POSIX-compatible realloc into a single function. Set ENOMEM
10139         when returning NULL.
10140         * m4/realloc.m4: New file.
10141         * doc/functions/realloc.texi: Mention the realloc-posix module.
10142         * lib/stdlib_.h (realloc): New declaration.
10143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10144         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10145         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10146         and HAVE_REALLOC_POSIX.
10147
10148 2007-09-09  Bruno Haible  <bruno@clisp.org>
10149
10150         * modules/calloc-posix: New file.
10151         * modules/calloc (Depends-on): Add calloc-posix.
10152         * lib/calloc.c: Include errno.h.
10153         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10154         and a POSIX-compatible calloc into a single function. Set ENOMEM
10155         when returning NULL.
10156         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10157         * doc/functions/calloc.texi: Mention the calloc-posix module.
10158         * lib/stdlib_.h (calloc): New declaration.
10159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10160         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10161         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10162         and HAVE_CALLOC_POSIX.
10163
10164 2007-09-09  Bruno Haible  <bruno@clisp.org>
10165
10166         Allow for modules to show an arbitrary notice.
10167         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10168         * gnulib-tool: New option --extract-notice.
10169         (func_usage): Document it.
10170         (sed_extract_prog): Update.
10171         (func_get_notice): New function.
10172         (func_modules_notice): New function.
10173         (func_import, func_create_testdir): Invoke it.
10174         Suggested by Jim Meyering.
10175
10176 2007-09-09  Bruno Haible  <bruno@clisp.org>
10177
10178         * gnulib-tool: New options --verbose, --quiet.
10179         (func_usage): Document them.
10180         (verbose): New variable.
10181         (func_execute_command): New function.
10182         (func_import): Don't show the module list and the file list if
10183         $verbose < 0.
10184         (func_create_testdir): Likewise. Use func_execute_command.
10185         (func_create_megatestdir): Use func_execute_command.
10186
10187 2007-09-08  Bruno Haible  <bruno@clisp.org>
10188
10189         * gnulib-tool (func_import): Prefer rsync over wget when available,
10190         for fetching the PO files.
10191
10192 2007-09-08  Bruno Haible  <bruno@clisp.org>
10193
10194         * posix-modules: New file. Portions copied from gnulib-tool.
10195         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10196
10197 2007-09-08  Jim Meyering  <jim@meyering.net>
10198
10199         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10200         * lib/fpending.h: Rename from __fpending.h.
10201         * lib/fpending.c: Rename from __fpending.c.
10202         Include "fpending.h", not "__fpending.h".
10203         * lib/__fpending.h, lib/__fpending.c: Remove files.
10204         * modules/fpending (Files): Reflect new file names.
10205         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10206
10207 2007-09-08  Bruno Haible  <bruno@clisp.org>
10208
10209         * m4/inttypes-h.m4: Remove stub file.
10210
10211 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10212
10213         * doc/headers/stdint.texi: Discuss #include_next issue.
10214
10215 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10216
10217         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10218
10219 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10220
10221         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10222         in variable name.
10223
10224 2007-09-03  Jim Meyering  <jim@meyering.net>
10225
10226         New module: git-version-gen.
10227         * modules/git-version-gen: New file.
10228
10229         Import changes from coreutils for bootstrap script.
10230
10231         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10232
10233         bootstrap: uses rsync to download the .po files
10234         * build-aux/bootstrap (po_download_command_format): New global.
10235         (download_po_files): Use rsync.
10236         (update_po_files): Don't remove .po files after download,
10237         so future rsync runs can take advantage of the copies.
10238
10239         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10240
10241         Solve the unnecessary-.po-file-regeneration problem once and for all.
10242         * build-aux/bootstrap (download_po_files): New function, renamed from
10243         get_translations.  Now, downloads, but doesn't update LINGUAS.
10244         (update_po_files): New function.
10245
10246         bootstrap: Ignore more.
10247         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10248         uniwidth to e.g., lib/.gitignore.
10249         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10250
10251         * build-aux/bootstrap: New setting: vc_ignore.
10252         (insert_sorted_if_absent): Create $file if absent.
10253         Adapt to new, possibly empty, list: $vc_ignore.
10254
10255         bootstrap: generate more ignorable names
10256         * build-aux/bootstrap (slurp): When generating ignorable names,
10257         also map .sin to .sed, .gperf to .c, and .y to .c.
10258
10259 2007-09-03  Jim Meyering  <jim@meyering.net>
10260
10261         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10262         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10263
10264 2007-09-02  Bruno Haible  <bruno@clisp.org>
10265
10266         Fix mis-recognition of 'mcs' on QNX 6.
10267         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10268         output contains the string "Mono".
10269         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10270         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10271
10272 2007-09-01  Bruno Haible  <bruno@clisp.org>
10273
10274         Fix collision between uniwidth/* and linebreak modules.
10275         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10276         u32_width): Remove declarations.
10277         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10278         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10279         streq3, streq2, streq1, streq0): Remove functions.
10280         (STREQ): Remove macro.
10281         (is_cjk_encoding): Remove function.
10282         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10283         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10284         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10285         * NEWS: Document the change.
10286
10287 2007-09-01  Bruno Haible  <bruno@clisp.org>
10288
10289         * lib/streq.h: Add double-inclusion guard.
10290
10291 2007-09-01  Karl Berry  <karl@gnu.org>
10292
10293         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10294
10295 2007-08-28  Jim Meyering  <jim@meyering.net>
10296
10297         Rename mreadlink_with_size to areadlink_with_size.
10298         * NEWS: Document the change.
10299         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10300         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10301         * lib/mreadlink.h: Rename this to...
10302         * lib/areadlink.h: ...this.
10303         * modules/mreadlink-with-size: Rename this to...
10304         * modules/areadlink-with-size: ...this.
10305         * lib/canonicalize.c: Reflect the renaming.
10306         * modules/canonicalize: Likewise.
10307
10308 2007-08-26  Bruno Haible  <bruno@clisp.org>
10309
10310         * gnulib-tool (func_import): When deciding which files to remove,
10311         consider also dangling symbolic links.
10312         Reported by Eric Blake.
10313
10314 2007-08-26  Bruno Haible  <bruno@clisp.org>
10315
10316         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10317
10318 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10319
10320         * lib/readline.c: Don't include getline.h, the prototype is now
10321         found in stdio.h.
10322
10323 2007-08-23  Jim Meyering  <jim@meyering.net>
10324
10325         Getdelim touchup.
10326         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10327         around the funlockfile call, since funlockfile never sets errno.
10328         Don't set errno upon failed realloc.
10329
10330 2007-08-22  Eric Blake  <ebb9@byu.net>
10331
10332         Getline touchups.
10333         * lib/getdelim.c (getdelim): Revert regression that required *n to
10334         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10335         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10336         getdelim, rather than whether implementation is missing.
10337         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10338         * lib/stdio_.h (getline): Also declare if replacement is
10339         required.
10340         * doc/functions/getdelim.texi: New file.
10341         * doc/functions/getline.texi: Likewise.
10342         * doc/gnulib.texi (Function Substitutes): Add new files.
10343         Reported by Bruno Haible.
10344
10345 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10346
10347         * users.txt: Add Guile.
10348
10349 2007-08-22  Eric Blake  <ebb9@byu.net>
10350
10351         * tests/test-getdelim.c (main): Use remove, not unlink.
10352         * tests/test-getline.c (main): Likewise.
10353
10354         Move getline and getdelim into stdio.h, per POSIX 200x.
10355         * modules/getline (Files): Remove getline.h.
10356         (Depends-on): Add stdio.
10357         (configure.ac): Add module indicator.
10358         * modules/getdelim (Files): Remove getdelim.h.
10359         (Depends-on): Add stdio.
10360         (configure.ac): Add module indicator.
10361         * modules/stdio (Makefile.am): Work with new indicators.
10362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10365         * lib/getdelim.h: Delete.
10366         * lib/getline.h: Delete.
10367         * lib/stdio_.h (getdelim, getline): Declare.
10368         * modules/getdelim-tests: New module.
10369         * modules/getline-tests: Likewise.
10370         * tests/test-getdelim.c: New file.
10371         * tests/test-getline.c: Likewise.
10372         * NEWS: Document the change.
10373         * lib/getline.c: Update choice of header.
10374         * lib/csharpcomp.c: Likewise.
10375         * lib/getpass.c: Likewise.
10376         * lib/javacomp.c: Likewise.
10377         * lib/javaversion.c: Likewise.
10378         * lib/yesno.c: Likewise.
10379         * lib/getdelim.c: Likewise.
10380         (getdelim): Set errno on failure, and avoid memory leak.
10381
10382 2007-08-19  Bruno Haible  <bruno@clisp.org>
10383
10384         * modules/closein (Depends-on): Add freadahead.
10385         * lib/closein.c: Include freadahead.h.
10386         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10387         is zero.
10388
10389 2007-08-19  Bruno Haible  <bruno@clisp.org>
10390
10391         * modules/freadahead-tests: New file.
10392         * tests/test-freadahead.sh: New file.
10393         * tests/test-freadahead.c: New file.
10394
10395         * modules/freadahead: New file.
10396         * lib/freadahead.h: New file.
10397         * lib/freadahead.c: New file.
10398         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10399         fbufmode, fpurge, freadable, fwritable.
10400
10401 2007-08-19  Eric Blake  <ebb9@byu.net>
10402
10403         Test yesno in combination with closein.
10404         * lib/yesno.c (yesno): Document use of stdin.
10405         * modules/yesno-tests (Files): New module.
10406         * tests/test-yesno.c (main): New file.
10407         * tests/test-yesno.sh: Likewise.
10408
10409 2007-08-19  Bruno Haible  <bruno@clisp.org>
10410
10411         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10412         * lib/fseeko.c (rpl_fseeko): Likewise.
10413         * lib/fseterr.c (fseterr): Likewise.
10414
10415 2007-08-19  Bruno Haible  <bruno@clisp.org>
10416
10417         * tests/test-lseek.c (main): Disable a test for BeOS.
10418         * doc/functions/lseek.texi: Document the BeOS bug.
10419
10420 2007-08-19  Bruno Haible  <bruno@clisp.org>
10421             Eric Blake  <ebb9@byu.net>
10422
10423         * lib/lseek.c: Include <sys/stat.h>.
10424         (rpl_lseek): Add workaround code also for Unix platforms.
10425         Needed for BeOS.
10426         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10427         * doc/functions/lseek.texi: Document BeOS definiency.
10428
10429 2007-08-18  Bruno Haible  <bruno@clisp.org>
10430
10431         * modules/fstrcmp-tests: New file.
10432         * tests/test-fstrcmp.c: New file.
10433
10434 2007-08-18  Bruno Haible  <bruno@clisp.org>
10435
10436         * modules/fstrcmp: New file, from GNU gettext with modifications.
10437         * lib/fstrcmp.h: New file, from GNU gettext.
10438         * lib/fstrcmp.c: New file, from GNU gettext.
10439         * MODULES.html.sh (String handling): Add fstrcmp.
10440
10441 2007-08-18  Bruno Haible  <bruno@clisp.org>
10442
10443         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10444         'bool'.
10445         (diag, compareseq): Remove const from the ctxt argument.
10446         (USE_HEURISTIC): Undefine at the end.
10447
10448 2007-08-18  Jim Meyering  <jim@meyering.net>
10449
10450         New file: lib/idcache.h
10451         * NEWS: Mention the addition.
10452         * modules/idcache (Files): Add lib/idcache.h
10453         * lib/idcache.c: Include "idcache.h".
10454         Don't include <sys/types.h>.
10455         Add a FIXME comment.
10456         Move file-scoped "static" declarations to the top.
10457         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10458
10459 2007-08-17  Bruno Haible  <bruno@clisp.org>
10460         and Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         * MODULES.html.sh: Add diffseq.
10463         * modules/diffseq: New file.
10464         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10465         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10466
10467 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10468
10469         Import changes from coreutils for bootstrap script.
10470
10471         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         * build-aux/bootstrap (slurp): Work even in environments where
10474         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10475         current code does not slurp files whose names start with ".", and
10476         this looks like it might be a troublesome area.
10477
10478         2007-07-11  Jim Meyering  <jim@meyering.net>
10479
10480         If there's a GPL vN copyright comment, require that N == 3.
10481
10482         2007-07-08  Jim Meyering  <jim@meyering.net>
10483
10484         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10485         * build-aux/bootstrap (mam_template): Move definition out of loop.
10486
10487         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10488
10489         * build-aux/bootstrap (symlink_to_dir): Rename function from
10490         symlink_to_gnulib.  Add a directory parameter.  Update all
10491         callers.
10492         (cp_mark_as_generated): Also check for -- and link to -- files in
10493         gl/.
10494
10495         2007-07-08  Jim Meyering  <jim@meyering.net>
10496
10497         Adapt to deeper hierarchy in gnulib.
10498         * build-aux/bootstrap (symlink_to_dir): If the destination
10499         directory doesn't exist, create it. This is required at least for
10500         "lib/uniwidth/cjk.h".
10501
10502         2007-05-15  Jim Meyering  <jim@meyering.net>
10503
10504         * build-aux/bootstrap: Now that generated Makefile.am files
10505         are no longer under version control, they must be created at
10506         bootstrap time.
10507
10508 2007-08-14  Ben Pfaff  <blp@gnu.org>
10509
10510         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10511
10512 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10513
10514         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10515         given the changes below.
10516         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10517         even on hosts that have padding bits beyond the supported 64.
10518
10519 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10520
10521         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10522         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10523         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10524         depends on it.
10525         (xstrtol_error): Remove.
10526         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10527         but with a different signature.
10528         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10529         * lib/xstrtol-error.c: Include exitfail.h.
10530         (xstrtol_fatal): New function, with a different signature from the
10531         old xstrtol_error, so that the caller need not worry about passing
10532         in an exit status, or about storage management of the option argument.
10533         (xstrtol_error): Now a static function.  Redo signature to
10534         implement xstrtol_fatal.  Output the correct number of hyphens in
10535         front of the option so that the caller need not worry about
10536         storage management.
10537         (N_): New macro.
10538         (_): Remove; not used now.
10539         * modules/xstrtol: Depend on getopt.
10540         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10541         of old STRTOL_FATAL_ERROR macro.
10542         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10543         of test program.
10544         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10545         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10546
10547 2007-08-08  Eric Blake  <ebb9@byu.net>
10548
10549         * lib/xstrtol-error.c: Add missing include.
10550
10551         Move xstrtol messages into gnulib domain, when --pobase is used.
10552         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10553         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10554         * modules/xstrtol (Files): Distribute new file.
10555         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10556         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10557         * tests/test-xstrtol.c: ...into new file.
10558         * tests/test-xstrtoul.c: Also test xstrtoul.
10559         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10560         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10561         * tests/test-xstrtol.sh: Drive the tests.
10562         * tests/test-xstrtoimax.sh: Likewise.
10563         * tests/test-xstrtoumax.sh: Likewise.
10564         * modules/xstrtol-tests: New module.
10565         * modules/xstrtoimax-tests: Likewise.
10566         * modules/xstrtoumax-tests: Likewise.
10567
10568 2007-08-08  Jim Meyering  <jim@meyering.net>
10569
10570         New function: mfile_name_concat.
10571         * lib/filenamecat.c (mfile_name_concat): New function, just like
10572         file_name_concat, but return NULL upon failure rather than exiting
10573         with a diagnostic.
10574         * lib/filenamecat.h: Declare it.
10575
10576 2007-08-07  Bruno Haible  <bruno@clisp.org>
10577
10578         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10579         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10580         warning from gcc.
10581         Reported by Eric Blake.
10582
10583 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10584
10585         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10586         * modules/crypto/arcfour (License): Likewise.
10587         * modules/crypto/des-tests (License): Likewise.
10588         * modules/crypto/gc-arctwo-tests (License): Likewise.
10589         * modules/crypto/gc-des-tests (License): Likewise.
10590         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10591         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10592         * modules/crypto/gc-md2-tests (License): Likewise.
10593         * modules/crypto/gc-md4-tests (License): Likewise.
10594         * modules/crypto/gc-md5-tests (License): Likewise.
10595         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10596         * modules/crypto/gc-rijndael-tests (License): Likewise.
10597         * modules/crypto/gc-sha1-tests (License): Likewise.
10598         * modules/crypto/gc-tests (License): Likewise.
10599         * modules/crypto/hmac-md5 (License): Likewise.
10600         * modules/crypto/hmac-sha1 (License): Likewise.
10601         * modules/crypto/md2-tests (License): Likewise.
10602         * modules/crypto/md4-tests (License): Likewise.
10603         * modules/crypto/md5 (License): Likewise.
10604         * modules/crypto/rijndael (License): Likewise.
10605         * modules/crypto/sha1 (License): Likewise.
10606         * modules/memxor (License): Likewise.
10607
10608 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10609         and Bruno Haible  <bruno@clisp.org>
10610
10611         * NEWS: Describe interface changes to human, xstrtol.
10612         * lib/human.h: Include <xstrtol.h>.
10613         (human_options): Return enum strtol_error, not int.  Remove
10614         bool arg; take int * instead.
10615         * lib/human.c: Don't include "gettext.h".
10616         (_): Remove; no longer used.
10617         Don't include <xstrtol.h>, since human.h does it.
10618         (human_options): Adjust to abovementioned interface changes.
10619         Do not report error to stderr; that's now the caller's
10620         responsibility.
10621         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10622         interface change.
10623         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10624         Str, Argument_type_string.  All uses changed.  Put " argument"
10625         in diagnostics to make them clearer.  Change wording of suffix
10626         message for clarity.
10627         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10628         Argument_type_string.
10629         (STRTOL_FATAL_WARN): Remove; no longer used.
10630         * modules/human (Depends-on): Remove gettext-h.
10631
10632 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10633
10634         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10635
10636 2007-07-31  Bruno Haible  <bruno@clisp.org>
10637
10638         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10639         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10640         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10641
10642 2007-07-31  Bruno Haible  <bruno@clisp.org>
10643
10644         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10645         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10646
10647 2007-07-30  Bruno Haible  <bruno@clisp.org>
10648
10649         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10650         * modules/c-ctype (License): Likewise.
10651         * modules/c-strcase (License): Likewise.
10652         * modules/check-version (License): Likewise.
10653         * modules/iconv (License): Likewise.
10654         * modules/iconv_open (License): Likewise.
10655         * modules/read-file (License): Likewise.
10656         * modules/striconv (License): Likewise.
10657         * modules/strverscmp (License): Likewise.
10658         * modules/vasprintf (License): Likewise.
10659         * modules/crypto/des (License): Likewise.
10660         * modules/crypto/gc (License): Likewise.
10661         * modules/crypto/gc-arcfour (License): Likewise.
10662         * modules/crypto/gc-arctwo (License): Likewise.
10663         * modules/crypto/gc-des (License): Likewise.
10664         * modules/crypto/gc-hmac-md5 (License): Likewise.
10665         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10666         * modules/crypto/gc-md2 (License): Likewise.
10667         * modules/crypto/gc-md4 (License): Likewise.
10668         * modules/crypto/gc-md5 (License): Likewise.
10669         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10670         * modules/crypto/gc-random (License): Likewise.
10671         * modules/crypto/gc-rijndael (License): Likewise.
10672         * modules/crypto/gc-sha1 (License): Likewise.
10673         * modules/crypto/md2 (License): Likewise.
10674         * modules/crypto/md4 (License): Likewise.
10675
10676 2007-07-30  Jim Meyering  <jim@meyering.net>
10677
10678         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10679         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10680         it has valid stat data.  This bug would cause du not to count the
10681         sizes of inaccessible directories.
10682         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10683         in <http://bugzilla.redhat.com/250077>.
10684
10685 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10686             Bruno Haible  <bruno@clisp.org>
10687
10688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10689         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10690         #include_next, gives a diagnostic about it, but reports no error in
10691         the exit code.
10692         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10693
10694 2007-07-24  Ben Pfaff  <blp@gnu.org>
10695
10696         Improve name: "count-one-bits" is better than "popcount".
10697         * MODULES.html.sh: Update name.
10698         * lib/popcount.h: Renamed lib/count-one-bits.h.
10699         (popcount): Renamed count_one_bits.
10700         (popcountl): Renamed count_one_bits_l.
10701         (popcountll): Renamed count_one_bits_ll.
10702         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10703         * modules/popcount: Renamed module/count-one-bits.
10704         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10705         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10706
10707 2007-07-23  Ben Pfaff  <blp@gnu.org>
10708
10709         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10710         better code generation, and add U to large constants to avoid
10711         warnings, in non-GCC case.
10712         Suggested by Bruno Haible.
10713
10714 2007-07-23  Ben Pfaff  <blp@gnu.org>
10715
10716         * lib/popcount.h: Use verify_true instead of if...abort.
10717         * modules/popcount: Depend on verify module.
10718         Suggested by Jim Meyering.
10719
10720 2007-07-23  Bruno Haible  <bruno@clisp.org>
10721
10722         * gnulib-tool (func_import): Create a .cvsignore file also when the
10723         directory is not yet in CVS but the toplevel directory is. When
10724         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10725         Reported by Karl Berry.
10726
10727 2007-07-22  Ben Pfaff  <blp@gnu.org>
10728
10729         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10730         case.
10731         Suggested by Eric Blake.
10732
10733 2007-07-22  Ben Pfaff  <blp@gnu.org>
10734
10735         New module: popcount.
10736         * MODULES.html.sh: Add popcount.
10737         * modules/popcount: New file.
10738         * modules/popcount-tests: New file.
10739         * tests/test-popcount.c: New file.
10740         * lib/popcount.h: New file.
10741         * m4/popcount.m4: New file.
10742
10743 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10744
10745         * build-aux/announce-gen: Update to GPLv3.
10746
10747         * build-aux/config.guess: Update from config.
10748
10749 2007-07-21  Bruno Haible  <bruno@clisp.org>
10750
10751         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10752         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10753
10754 2007-07-20  Jim Meyering  <jim@meyering.net>
10755
10756         * check-module: Diagnose a self-dependency.
10757
10758 2007-07-19  Bruno Haible  <bruno@clisp.org>
10759
10760         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10761         empty.
10762         Reported by Eric Blake.
10763
10764 2007-07-18  Bruno Haible  <bruno@clisp.org>
10765
10766         * gnulib-tool: New options --po-base, --po-domain.
10767         (func_usage): Document them.
10768         (pobase, po_domain): New variables.
10769         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10770         DEFAULT_TEXT_DOMAIN.
10771         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10772         (func_import): Consider pobase and po_domain. Create a po/ directory.
10773         (func_create_testdir): Set pobase and po_domain to empty.
10774         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10775         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10776
10777 2007-07-18  Bruno Haible  <bruno@clisp.org>
10778
10779         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10780         EXTRA_DIST augmentation for files in build-aux/.
10781
10782 2007-07-16  Bruno Haible  <bruno@clisp.org>
10783
10784         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10785         * modules/getdelim (License): Likewise.
10786
10787 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10788
10789         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10790         * modules/d-type (License): Likewise.
10791         * modules/extensions (License): Likewise.
10792         * modules/fnmatch (License): Likewise.
10793         * modules/fseeko (License): Likewise.
10794         * modules/getaddrinfo (License): Likewise.
10795         * modules/getline (License): Likewise.
10796         * modules/getlogin_r (License): Likewise.
10797         * modules/getpass (License): Likewise.
10798         * modules/gettimeofday (License): Likewise.
10799         * modules/glob (License): Likewise.
10800         * modules/inet_ntop (License): Likewise.
10801         * modules/malloc (License): Likewise.
10802         * modules/malloca (License): Likewise.
10803         * modules/memmem (License): Likewise.
10804         * modules/mempcpy (License): Likewise.
10805         * modules/memset (License): Likewise.
10806         * modules/minmax (License): Likewise.
10807         * modules/mktime (License): Likewise.
10808         * modules/netinet_in (License): Likewise.
10809         * modules/pathmax (License): Likewise.
10810         * modules/poll (License): Likewise.
10811         * modules/regex (License): Likewise.
10812         * modules/snprintf (License): Likewise.
10813         * modules/stdbool (License): Likewise.
10814         * modules/stdint (License): Likewise.
10815         * modules/stdio (License): Likewise.
10816         * modules/strcase (License): Likewise.
10817         * modules/strcasestr (License): Likewise.
10818         * modules/strdup (License): Likewise.
10819         * modules/string (License): Likewise.
10820         * modules/strndup (License): Likewise.
10821         * modules/strnlen (License): Likewise.
10822         * modules/strpbrk (License): Likewise.
10823         * modules/strptime (License): Likewise.
10824         * modules/strsep (License): Likewise.
10825         * modules/sys_select (License): Likewise.
10826         * modules/sys_socket (License): Likewise.
10827         * modules/sys_stat (License): Likewise.
10828         * modules/sys_time (License): Likewise.
10829         * modules/time (License): Likewise.
10830         * modules/time_r (License): Likewise.
10831         * modules/timegm (License): Likewise.
10832         * modules/unistd (License): Likewise.
10833         * modules/vsnprintf (License): Likewise.
10834         * modules/wctype (License): Likewise.
10835
10836 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10837
10838         * modules/argz (License): LGPLv2+.
10839
10840 2007-07-15  Karl Berry  <karl@gnu.org>
10841
10842         * doc/gnulib.texi: revise node structure per new fdl.texi.
10843
10844 2007-07-14  Bruno Haible  <bruno@clisp.org>
10845
10846         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10847         the output file.
10848         * lib/uniname/uninames.h: Regenerated.
10849
10850 2007-07-14  Karl Berry  <karl@gnu.org>
10851
10852         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10853         omitting sectioning and index commands.
10854
10855 2007-07-13  Bruno Haible  <bruno@clisp.org>
10856
10857         New gnulib-tool option --more-symlinks.
10858         * gnulib-tool (func_usage): Document --more-symlinks.
10859         (do_copyrights): New variable.
10860         Recognize option --more-symlinks.
10861         (func_import): Don't add a copyright notice transform to
10862         sed_transform_lib_file if do_copyrights is empty.
10863
10864 2007-07-13  Bruno Haible  <bruno@clisp.org>
10865
10866         * lib/vasnprintf.c (decimal_point_char): Define also if
10867         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10868         && !NEED_PRINTF_DIRECTIVE_A.
10869         Reported by Clemens Koller <clemens.koller@anagramm.de> via
10870         Gary V. Vaughan <gary@gnu.org>.
10871
10872 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10873
10874         * lib/inttypes_.h: Undo previous change, since it was fixed
10875         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10876
10877 2007-07-13  Bruno Haible  <bruno@clisp.org>
10878
10879         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10880         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10881
10882 2007-07-13  Jim Meyering  <jim@meyering.net>
10883
10884         df: Don't fail for Tru64's "file-on-file mount".
10885         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10886         so we fall through and use statfs instead.  Details here:
10887         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10888         Reported by Albert Chin.
10889
10890 2007-07-13  Bruno Haible  <bruno@clisp.org>
10891
10892         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10893         * modules/configmake (License): Likewise.
10894         * modules/gettext (License): Likewise.
10895         * modules/gettext-h (License): Likewise.
10896         * modules/include_next (License): Likewise.
10897         * modules/link-warning (License): Likewise.
10898         * modules/localcharset (License): Likewise.
10899         * modules/localename (License): Likewise.
10900         * modules/lock (License): Likewise.
10901         * modules/relocatable-lib-lgpl (License): Likewise.
10902         * modules/size_max (License): Likewise.
10903         * modules/vasnprintf (License): Likewise.
10904         * modules/wchar (License): Likewise.
10905         * modules/xsize (License): Likewise.
10906
10907 2007-07-13  Bruno Haible  <bruno@clisp.org>
10908
10909         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10910         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10911
10912 2007-07-12  Bruno Haible  <bruno@clisp.org>
10913
10914         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10915         in the modules files.
10916
10917 2007-07-11  Karl Berry  <karl@gnu.org>
10918
10919         * MODULES.html.sh (func_module): use
10920          sed -e '\|^'"${includefile}"'$|d'
10921          instead of /.../d, to avoid errors on $includefile's containing /.
10922
10923 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10924
10925         * gnulib-tool (func_import): Avoid duplication of --avoid
10926         statements
10927         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10928         names to `_' in variable names.
10929
10930 2007-07-10  Eric Blake  <ebb9@byu.net>
10931
10932         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10933         * NEWS: Document this change.
10934
10935 2007-07-08  Bruno Haible  <bruno@clisp.org>
10936
10937         Update to Unicode 5.0.
10938         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10939         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10940         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10941         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10942         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10943         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10944         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10945         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10946         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10947         U+10A3F, U+1D242..U+1D244.
10948         (nonspacing_table_ind): Update.
10949         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10950         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10951
10952 2007-07-08  Bruno Haible  <bruno@clisp.org>
10953
10954         Update to Unicode 5.0.
10955         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10956         code transform. Extend the name index field of unicode_name_to_code and
10957         unicode_code_to_name from 16 to 24 bits.
10958         * lib/uniname/uniname.c (unicode_character_name,
10959         unicode_name_character): Add the range 0x12xxx to the code transform.
10960         * lib/uniname/uninames.h: Regenerated.
10961         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10962
10963 2007-07-07  Bruno Haible  <bruno@clisp.org>
10964
10965         * modules/wcwidth-tests: New file.
10966         * tests/test-wcwidth.c: New file.
10967
10968         Work around MacOS X wcwidth() bug.
10969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10970         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10971         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10972         original wcwidth in non-UTF-8 locales.
10973         * modules/wcwidth (Depends-on): Add localcharset, streq,
10974         uniwidth/width.
10975         * doc/functions/wcwidth.texi: Update.
10976
10977 2007-07-07  Bruno Haible  <bruno@clisp.org>
10978
10979         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10980         (wcwidth): New declaration.
10981         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10982         macros.
10983         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10984         here. Prepare for creating <wchar.h> unconditionally.
10985         * modules/wchar (Depends-on): Add link-warning.
10986         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10987         REPLACE_WCWIDTH, and GL_LINK_WARNING.
10988         * lib/wcwidth.h: Remove file.
10989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10990         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10991         * modules/wcwidth (Files): Remove lib/wcwidth.h.
10992         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10993         (Include): Replace wcwidth.h with <wchar.h>.
10994         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10995         * lib/mbchar.h: Don't include wcwidth.h.
10996         * lib/mbswidth.c: Likewise.
10997         * NEWS: Mention the change.
10998
10999 2007-07-07  Bruno Haible  <bruno@clisp.org>
11000
11001         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11002         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11003         definition with an external declaration.
11004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11005         defined as a function. Remove AC_C_INLINE requirement.
11006         * modules/wcwidth (Files): Add lib/wcwidth.c.
11007         (Makefile.am): Remove redundant statement.
11008
11009 2007-07-07  Bruno Haible  <bruno@clisp.org>
11010
11011         * MODULES.html.sh (Unicode string functions): Add the new modules.
11012
11013         * tests/uniwidth/test-u32-strwidth.c: New file.
11014         * modules/uniwidth/u32-strwidth-tests: New file.
11015
11016         * lib/uniwidth/u32-strwidth.c: New file.
11017         * modules/uniwidth/u32-strwidth: New file.
11018
11019         * tests/uniwidth/test-u16-strwidth.c: New file.
11020         * modules/uniwidth/u16-strwidth-tests: New file.
11021
11022         * lib/uniwidth/u16-strwidth.c: New file.
11023         * modules/uniwidth/u16-strwidth: New file.
11024
11025         * tests/uniwidth/test-u8-strwidth.c: New file.
11026         * modules/uniwidth/u8-strwidth-tests: New file.
11027
11028         * lib/uniwidth/u8-strwidth.c: New file.
11029         * modules/uniwidth/u8-strwidth: New file.
11030
11031         * tests/uniwidth/test-u32-width.c: New file.
11032         * modules/uniwidth/u32-width-tests: New file.
11033
11034         * lib/uniwidth/u32-width.c: New file.
11035         * modules/uniwidth/u32-width: New file.
11036
11037         * tests/uniwidth/test-u16-width.c: New file.
11038         * modules/uniwidth/u16-width-tests: New file.
11039
11040         * lib/uniwidth/u16-width.c: New file.
11041         * modules/uniwidth/u16-width: New file.
11042
11043         * tests/uniwidth/test-u8-width.c: New file.
11044         * modules/uniwidth/u8-width-tests: New file.
11045
11046         * lib/uniwidth/u8-width.c: New file.
11047         * modules/uniwidth/u8-width: New file.
11048
11049         * tests/uniwidth/test-uc_width.c: New file.
11050         * modules/uniwidth/width-tests: New file.
11051
11052         * lib/uniwidth/width.c: New file, from GNU libiconv.
11053         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11054         * modules/uniwidth/width: New file.
11055
11056         * lib/uniwidth.h: New file, from GNU libiconv.
11057         * modules/uniwidth/base: New file.
11058
11059 2007-07-07  Bruno Haible  <bruno@clisp.org>
11060
11061         * lib/uniname.h: New file, from GNU gettext.
11062         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11063         * lib/uniname/uninames.h: New file, from GNU gettext.
11064         * lib/uniname/uniname.c: New file, from GNU gettext.
11065         * tests/uniname/test-uninames.sh: New file.
11066         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11067         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11068         * modules/uniname/base: New file.
11069         * modules/uniname/uniname: New file.
11070         * modules/uniname/uniname-tests: New file.
11071         * MODULES.html.sh (Unicode string functions): Add the new modules.
11072
11073 2007-07-06  Bruno Haible  <bruno@clisp.org>
11074
11075         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11076
11077 2007-07-06  Bruno Haible  <bruno@clisp.org>
11078
11079         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11080         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11081         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11082         include <sys/time.h>.
11083         Reported by Eric Blake.
11084
11085 2007-07-06  Eric Blake  <ebb9@byu.net>
11086
11087         Fix testing canonicalize on cygwin.
11088         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11089         Revert patch from 2007-06-19.
11090         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11091         canonicalize module is also in use.
11092         * tests/test-canonicalize.c: New file.
11093         * tests/test-canonicalize.sh: Likewise.
11094         * modules/canonicalize-tests: Likewise.
11095
11096 2007-07-06  Jim Meyering  <jim@meyering.net>
11097
11098         * lib/getugroups.c (getugroups): Detect getgrent failure.
11099         Adjust comment to reflect reality: this function may return -1.
11100
11101 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11102
11103         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11104         the new TP address.
11105         (usage): Fix typo
11106         (gnulib_mk): New variable.
11107
11108 2007-07-05  Jim Meyering  <jim@meyering.net>
11109
11110         Don't let endgrent clobber errno, no matter how improbable.
11111         * lib/getugroups.c (getugroups): Save and restore errno around
11112         endgrent call.
11113
11114         Close the group DB even when failing with 2^31 or more members.
11115         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11116
11117 2007-07-04  Jim Meyering  <jim@meyering.net>
11118
11119         * lib/getugroups.h: New file.
11120         * lib/getugroups.c: Include "getugroups.h".
11121         Remove uses of "register" keyword.
11122         Move local variable, "cp", down into scope where used.
11123         Give "username" parameter the "const" attribute.
11124         * modules/getugroups (Files): Add lib/getugroups.h
11125
11126 2007-07-04  Karl Berry  <karl@gnu.org>
11127
11128         * MODULES.html.sh (func_all_modules): Complete rename of
11129         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11130
11131 2007-07-02  Bruno Haible  <bruno@clisp.org>
11132
11133         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11134         mode, when inttypes.h comes from gnulib.
11135         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11136
11137 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11138
11139         * NEWS: Mention lgpl module name change.
11140
11141         * modules/lgpl-2.1: Renamed from lgpl.
11142
11143         * NEWS: Mention gpl module name change.
11144
11145         * modules/gpl-3.0: New file, based on gpl-2.0.
11146
11147         * modules/gpl-2.0: Renamed from gpl.
11148
11149         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11150         doc/gpl-2.0.texi.
11151
11152 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11153
11154         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11155         #define __STDC_LIMIT_MACROS temporarily while including
11156         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11157         Problem reported by Joel E. Denny in
11158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11159
11160 2007-07-01  Bruno Haible  <bruno@clisp.org>
11161
11162         * lib/unistdio.h: New file.
11163         * lib/unistdio/u-asnprintf.h: New file.
11164         * lib/unistdio/u-asprintf.h: New file.
11165         * lib/unistdio/u-printf-args.c: New file.
11166         * lib/unistdio/u-printf-args.h: New file.
11167         * lib/unistdio/u-printf-parse.h: New file.
11168         * lib/unistdio/u-snprintf.h: New file.
11169         * lib/unistdio/u-sprintf.h: New file.
11170         * lib/unistdio/u-vasprintf.h: New file.
11171         * lib/unistdio/u-vsnprintf.h: New file.
11172         * lib/unistdio/u-vsprintf.h: New file.
11173         * lib/unistdio/ulc-asnprintf.c: New file.
11174         * lib/unistdio/ulc-asprintf.c: New file.
11175         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11176         * lib/unistdio/ulc-printf-parse.c: New file.
11177         * lib/unistdio/ulc-snprintf.c: New file.
11178         * lib/unistdio/ulc-sprintf.c: New file.
11179         * lib/unistdio/ulc-vasnprintf.c: New file.
11180         * lib/unistdio/ulc-vasprintf.c: New file.
11181         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11182         * lib/unistdio/ulc-vsnprintf.c: New file.
11183         * lib/unistdio/ulc-vsprintf.c: New file.
11184         * lib/unistdio/u8-asnprintf.c: New file.
11185         * lib/unistdio/u8-asprintf.c: New file.
11186         * lib/unistdio/u8-printf-parse.c: New file.
11187         * lib/unistdio/u8-snprintf.c: New file.
11188         * lib/unistdio/u8-sprintf.c: New file.
11189         * lib/unistdio/u8-vasnprintf.c: New file.
11190         * lib/unistdio/u8-vasprintf.c: New file.
11191         * lib/unistdio/u8-vsnprintf.c: New file.
11192         * lib/unistdio/u8-vsprintf.c: New file.
11193         * lib/unistdio/u8-u8-asnprintf.c: New file.
11194         * lib/unistdio/u8-u8-asprintf.c: New file.
11195         * lib/unistdio/u8-u8-snprintf.c: New file.
11196         * lib/unistdio/u8-u8-sprintf.c: New file.
11197         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11198         * lib/unistdio/u8-u8-vasprintf.c: New file.
11199         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11200         * lib/unistdio/u8-u8-vsprintf.c: New file.
11201         * lib/unistdio/u16-asnprintf.c: New file.
11202         * lib/unistdio/u16-asprintf.c: New file.
11203         * lib/unistdio/u16-printf-parse.c: New file.
11204         * lib/unistdio/u16-snprintf.c: New file.
11205         * lib/unistdio/u16-sprintf.c: New file.
11206         * lib/unistdio/u16-vasnprintf.c: New file.
11207         * lib/unistdio/u16-vasprintf.c: New file.
11208         * lib/unistdio/u16-vsnprintf.c: New file.
11209         * lib/unistdio/u16-vsprintf.c: New file.
11210         * lib/unistdio/u16-u16-asnprintf.c: New file.
11211         * lib/unistdio/u16-u16-asprintf.c: New file.
11212         * lib/unistdio/u16-u16-snprintf.c: New file.
11213         * lib/unistdio/u16-u16-sprintf.c: New file.
11214         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11215         * lib/unistdio/u16-u16-vasprintf.c: New file.
11216         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11217         * lib/unistdio/u16-u16-vsprintf.c: New file.
11218         * lib/unistdio/u32-asnprintf.c: New file.
11219         * lib/unistdio/u32-asprintf.c: New file.
11220         * lib/unistdio/u32-printf-parse.c: New file.
11221         * lib/unistdio/u32-snprintf.c: New file.
11222         * lib/unistdio/u32-sprintf.c: New file.
11223         * lib/unistdio/u32-vasnprintf.c: New file.
11224         * lib/unistdio/u32-vasprintf.c: New file.
11225         * lib/unistdio/u32-vsnprintf.c: New file.
11226         * lib/unistdio/u32-vsprintf.c: New file.
11227         * lib/unistdio/u32-u32-asnprintf.c: New file.
11228         * lib/unistdio/u32-u32-asprintf.c: New file.
11229         * lib/unistdio/u32-u32-snprintf.c: New file.
11230         * lib/unistdio/u32-u32-sprintf.c: New file.
11231         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11232         * lib/unistdio/u32-u32-vasprintf.c: New file.
11233         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11234         * lib/unistdio/u32-u32-vsprintf.c: New file.
11235         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11236         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11237         * tests/unistdio/test-ulc-printf1.h: New file.
11238         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11239         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11240         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11241         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11242         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11243         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11244         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11245         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11246         * tests/unistdio/test-u8-asnprintf1.c: New file.
11247         * tests/unistdio/test-u8-asnprintf1.h: New file.
11248         * tests/unistdio/test-u8-printf1.h: New file.
11249         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11250         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11251         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11252         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11253         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11254         * tests/unistdio/test-u8-vasprintf1.c: New file.
11255         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11256         * tests/unistdio/test-u8-vsprintf1.c: New file.
11257         * tests/unistdio/test-u16-asnprintf1.c: New file.
11258         * tests/unistdio/test-u16-asnprintf1.h: New file.
11259         * tests/unistdio/test-u16-printf1.h: New file.
11260         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11261         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11262         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11263         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11264         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11265         * tests/unistdio/test-u16-vasprintf1.c: New file.
11266         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11267         * tests/unistdio/test-u16-vsprintf1.c: New file.
11268         * tests/unistdio/test-u32-asnprintf1.c: New file.
11269         * tests/unistdio/test-u32-asnprintf1.h: New file.
11270         * tests/unistdio/test-u32-printf1.h: New file.
11271         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11272         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11273         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11274         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11275         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11276         * tests/unistdio/test-u32-vasprintf1.c: New file.
11277         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11278         * tests/unistdio/test-u32-vsprintf1.c: New file.
11279         * modules/unistdio/base: New file.
11280         * modules/unistdio/u-printf-args: New file.
11281         * modules/unistdio/ulc-asnprintf: New file.
11282         * modules/unistdio/ulc-asprintf: New file.
11283         * modules/unistdio/ulc-fprintf: New file.
11284         * modules/unistdio/ulc-printf-parse: New file.
11285         * modules/unistdio/ulc-snprintf: New file.
11286         * modules/unistdio/ulc-sprintf: New file.
11287         * modules/unistdio/ulc-vasnprintf: New file.
11288         * modules/unistdio/ulc-vasprintf: New file.
11289         * modules/unistdio/ulc-vfprintf: New file.
11290         * modules/unistdio/ulc-vsnprintf: New file.
11291         * modules/unistdio/ulc-vsprintf: New file.
11292         * modules/unistdio/u8-asnprintf: New file.
11293         * modules/unistdio/u8-asprintf: New file.
11294         * modules/unistdio/u8-printf-parse: New file.
11295         * modules/unistdio/u8-snprintf: New file.
11296         * modules/unistdio/u8-sprintf: New file.
11297         * modules/unistdio/u8-vasnprintf: New file.
11298         * modules/unistdio/u8-vasprintf: New file.
11299         * modules/unistdio/u8-vsnprintf: New file.
11300         * modules/unistdio/u8-vsprintf: New file.
11301         * modules/unistdio/u8-u8-asnprintf: New file.
11302         * modules/unistdio/u8-u8-asprintf: New file.
11303         * modules/unistdio/u8-u8-snprintf: New file.
11304         * modules/unistdio/u8-u8-sprintf: New file.
11305         * modules/unistdio/u8-u8-vasnprintf: New file.
11306         * modules/unistdio/u8-u8-vasprintf: New file.
11307         * modules/unistdio/u8-u8-vsnprintf: New file.
11308         * modules/unistdio/u8-u8-vsprintf: New file.
11309         * modules/unistdio/u16-asnprintf: New file.
11310         * modules/unistdio/u16-asprintf: New file.
11311         * modules/unistdio/u16-printf-parse: New file.
11312         * modules/unistdio/u16-snprintf: New file.
11313         * modules/unistdio/u16-sprintf: New file.
11314         * modules/unistdio/u16-vasnprintf: New file.
11315         * modules/unistdio/u16-vasprintf: New file.
11316         * modules/unistdio/u16-vsnprintf: New file.
11317         * modules/unistdio/u16-vsprintf: New file.
11318         * modules/unistdio/u16-u16-asnprintf: New file.
11319         * modules/unistdio/u16-u16-asprintf: New file.
11320         * modules/unistdio/u16-u16-snprintf: New file.
11321         * modules/unistdio/u16-u16-sprintf: New file.
11322         * modules/unistdio/u16-u16-vasnprintf: New file.
11323         * modules/unistdio/u16-u16-vasprintf: New file.
11324         * modules/unistdio/u16-u16-vsnprintf: New file.
11325         * modules/unistdio/u16-u16-vsprintf: New file.
11326         * modules/unistdio/u32-asnprintf: New file.
11327         * modules/unistdio/u32-asprintf: New file.
11328         * modules/unistdio/u32-printf-parse: New file.
11329         * modules/unistdio/u32-snprintf: New file.
11330         * modules/unistdio/u32-sprintf: New file.
11331         * modules/unistdio/u32-vasnprintf: New file.
11332         * modules/unistdio/u32-vasprintf: New file.
11333         * modules/unistdio/u32-vsnprintf: New file.
11334         * modules/unistdio/u32-vsprintf: New file.
11335         * modules/unistdio/u32-u32-asnprintf: New file.
11336         * modules/unistdio/u32-u32-asprintf: New file.
11337         * modules/unistdio/u32-u32-snprintf: New file.
11338         * modules/unistdio/u32-u32-sprintf: New file.
11339         * modules/unistdio/u32-u32-vasnprintf: New file.
11340         * modules/unistdio/u32-u32-vasprintf: New file.
11341         * modules/unistdio/u32-u32-vsnprintf: New file.
11342         * modules/unistdio/u32-u32-vsprintf: New file.
11343         * modules/unistdio/ulc-asnprintf-tests: New file.
11344         * modules/unistdio/ulc-vasnprintf-tests: New file.
11345         * modules/unistdio/ulc-vasprintf-tests: New file.
11346         * modules/unistdio/ulc-vsnprintf-tests: New file.
11347         * modules/unistdio/ulc-vsprintf-tests: New file.
11348         * modules/unistdio/u8-asnprintf-tests: New file.
11349         * modules/unistdio/u8-vasnprintf-tests: New file.
11350         * modules/unistdio/u8-vasprintf-tests: New file.
11351         * modules/unistdio/u8-vsnprintf-tests: New file.
11352         * modules/unistdio/u8-vsprintf-tests: New file.
11353         * modules/unistdio/u16-asnprintf-tests: New file.
11354         * modules/unistdio/u16-vasnprintf-tests: New file.
11355         * modules/unistdio/u16-vasprintf-tests: New file.
11356         * modules/unistdio/u16-vsnprintf-tests: New file.
11357         * modules/unistdio/u16-vsprintf-tests: New file.
11358         * modules/unistdio/u32-asnprintf-tests: New file.
11359         * modules/unistdio/u32-vasnprintf-tests: New file.
11360         * modules/unistdio/u32-vasprintf-tests: New file.
11361         * modules/unistdio/u32-vsnprintf-tests: New file.
11362         * modules/unistdio/u32-vsprintf-tests: New file.
11363         * MODULES.html.sh (Unicode string functions): Add the new modules.
11364
11365 2007-07-01  Bruno Haible  <bruno@clisp.org>
11366
11367         * lib/sprintf.c (sprintf): Limit the available length estimation,
11368         to avoid address wraparound.
11369         * lib/vsprintf.c (vsprintf): Likewise.
11370         * modules/sprintf-posix (Dependencies): Add stdint.
11371         * modules/vsprintf-posix (Dependencies): Likewise.
11372
11373 2007-07-01  Bruno Haible  <bruno@clisp.org>
11374
11375         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11376         Windows PATH as well. Conservative double-quoting. Comments.
11377
11378 2007-07-01  Bruno Haible  <bruno@clisp.org>
11379             Eric Blake  <ebb9@byu.net>
11380             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11381
11382         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11383         empty components in $PATH, denoting '.'.
11384
11385 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11386
11387         * gnulib-tool: Fix indentation.
11388         (func_create_megatestdir): Likewise.
11389         Report by Bruno Haible.
11390
11391 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11392
11393         Sync from Automake.
11394         * build-aux/gnupload: Fix shell portability issues with for loops.
11395         Report by Karl Berry.
11396
11397 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11398
11399         * build-aux/maint.mk (POURL): Use translationproject.org.
11400
11401 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11402             Bruno Haible  <bruno@clisp.org>
11403
11404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11405         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11406         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11407         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11408         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11409
11410 2007-06-27  Bruno Haible  <bruno@clisp.org>
11411
11412         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11413         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11414
11415 2007-06-26  Karl Berry  <karl@gnu.org>
11416
11417         * MODULES.html.sh: remove xreadlink-with-size.
11418
11419 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11422         method that I hope also handles the double-include problem noted
11423         by Bruno Haible in
11424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11425
11426 2007-06-23  Bruno Haible  <bruno@clisp.org>
11427
11428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11429         Don't let the 'mostlyclean' target fail if the last subdirectory could
11430         not be removed.
11431         Reported by Karl Berry.
11432
11433 2007-06-23  Bruno Haible  <bruno@clisp.org>
11434
11435         * gnulib-tool (echo): Add a speedier workaround for ksh.
11436         * tests/test-echo.sh: Likewise.
11437
11438 2007-06-23  Bruno Haible  <bruno@clisp.org>
11439
11440         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11441         * tests/test-echo.sh: Likewise.
11442
11443 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11444
11445         * gnulib-tool (IFS): Initialize early, so we don't set it to
11446         empty later.
11447         (self_abspathname): Rewrite algorithm to set it, reindent.
11448         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11449         (func_create_megatestdir): Merge some sed scripts.
11450
11451 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11452
11453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11454         exposed by Sun Studio 11 cc on Solaris 8.
11455
11456 2007-06-22  Bruno Haible  <bruno@clisp.org>
11457
11458         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11459         backslashes.
11460         * tests/test-echo.sh: New file.
11461
11462 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11463
11464         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11465         simplify `sed_replace_build_aux' scripts, they are portable but
11466         echoing them with `echo' is not.
11467         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11468
11469 2007-06-21  Karl Berry  <karl@gnu.org>
11470
11471         * config/srclist.txt: guess we can't handle the licenses via
11472         srclist at the moment.
11473
11474 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11475
11476         * MODULES.html.sh: Add include_next.
11477         * modules/include_next: New file.
11478
11479 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11480
11481         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11482         INCLUDE_NEXT.
11483         (gl_CHECK_NEXT_HEADERS): New macro.
11484         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11485         the obsolescent gl_ABSOLUTE_HEADER.
11486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11487         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11488         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11489         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11490         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11491         * m4/math_h.m4 (gl_MATH_H): Likewise.
11492         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11493         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11494         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11495         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11496         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11497         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11498         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11503         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11504         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11505         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11506         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11507         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11508         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11509         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11510         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11511         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11512         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11513         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11514         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11515         * lib/float_.h: Likewise.
11516         * lib/inttypes_.h: Likewise.
11517         * lib/math_.h: Likewise.
11518         * lib/search_.h: Likewise.
11519         * lib/signal_.h: Likewise.
11520         * lib/stdint_.h: Likewise.
11521         * lib/stdio_.h: Likewise.
11522         * lib/stdlib_.h: Likewise.
11523         * lib/string_.h: Likewise.
11524         * lib/sys_stat_.h: Likewise.
11525         * lib/sys_time_.h: Likewise.
11526         * lib/time_.h: Likewise.
11527         * lib/unistd_.h: Likewise.
11528         * lib/wchar_.h: Likewise.
11529         * lib/wctype_.h: Likewise.
11530         * lib/dirent_.h: Likewise.
11531         * lib/iconv_.h: Likewise.
11532         * lib/locale_.h: Likewise.
11533         * lib/netinet_in_.h: Likewise.
11534         * lib/sys_select_.h: Likewise.
11535         * lib/sys_socket_.h: Likewise.
11536         * lib/sysexits_.h: Likewise.
11537         * modules/fcntl (Depends-on): Depend on include_next, not
11538         absolute_header.
11539         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11540         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11541         * modules/fchdir: Likewise.
11542         * modules/float: Likewise.
11543         * modules/iconv_open: Likewise.
11544         * modules/inttypes: Likewise.
11545         * modules/locale: Likewise.
11546         * modules/math: Likewise.
11547         * modules/netinet_in: Likewise.
11548         * modules/search: Likewise.
11549         * modules/signal: Likewise.
11550         * modules/stdint: Likewise.
11551         * modules/stdio: Likewise.
11552         * modules/stdlib: Likewise.
11553         * modules/string: Likewise.
11554         * modules/sys_select: Likewise.
11555         * modules/sys_socket: Likewise.
11556         * modules/sys_stat: Likewise.
11557         * modules/sys_time: Likewise.
11558         * modules/sysexits: Likewise.
11559         * modules/time: Likewise.
11560         * modules/unistd: Likewise.
11561         * modules/wchar: Likewise.
11562         * modules/wctype: Likewise.
11563         * modules/sys_stat: Change maintainer to "all".
11564         * modules/unistd: Likewise.
11565
11566 2007-06-20  Karl Berry  <karl@gnu.org>
11567
11568         * config/srclist.txt: track www changes in license files.
11569
11570 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11571
11572         * build-aux/bootstrap: Remove stray dot.
11573         Make sure build_aux settings are honored when linking
11574         gnulib_extra_files.
11575
11576 2007-06-19  Eric Blake  <ebb9@byu.net>
11577
11578         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11579         Allow compilation on cygwin.
11580
11581 2007-06-19  Jim Meyering  <jim@meyering.net>
11582
11583         xreadlink-with-size: Remove module.  No longer used.
11584         Ex-callers now use xreadlink or mreadlink-with-size.
11585         * modules/xreadlink-with-size: Remove module.
11586         * lib/xreadlink-with-size.c: Remove file.
11587         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11588         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11589         just before the function definition *is* accurate.
11590
11591         Eliminate one way canonicalize_filename_mode could exit.
11592         * lib/canonicalize.c (canonicalize_filename_mode):
11593         Use mreadlink_with_size, not xreadlink_with_size.
11594
11595 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11596
11597         Detect porting problems to FreeBSD/arm, which has time_t wider than
11598         long int.  Original problem reported for GNU diff by Xin Li in
11599         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11600         * modules/getdate (Depends-on): Add intprops, verify.
11601         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11602         is an integer type no wider than long int.
11603
11604 2007-06-18  Jim Meyering  <jim@meyering.net>
11605
11606         New module: mreadlink-with-size.
11607         * MODULES.html.sh: Add mreadlink-with-size.
11608         * modules/mreadlink-with-size: New module
11609         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11610         not xreadlink-with-size.
11611         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11612
11613 2007-06-16  Bruno Haible  <bruno@clisp.org>
11614
11615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11616         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11617         Reported by Gary V. Vaughan <gary@gnu.org>.
11618
11619 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11620
11621         Revamp lchown so that it lives in unistd.h where it belongs.
11622         * lib/lchown.h: Remove.
11623         * lib/dirchownmod.c: Don't include lib/lchown.h.
11624         * lib/fchownat.c: Likewise.
11625         * lib/openat.c: Likewise.
11626         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11627         does not follow symlinks.
11628         (EOPNOTSUPP): Define if not defined.
11629         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11630         is defined to 0.
11631         (lchown): New decl.
11632         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11633         Do not check for lchown decl.
11634         Set REPLACE_LCHOWN.
11635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11636         REPLACE_LCHOWN.
11637         * modules/chown: Make it clear it follows symlinks.
11638         * modules/lchown: Make it clear it doesn't follow symlinks.
11639         (Files): Remove lib/lchown.h
11640         (Depends-on): Add unistd.
11641         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11642         (Include): Include <unistd.h>, not "lchown.h".
11643         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11644         REPLACE_LCHOWN.
11645
11646 2007-06-15  Jim Meyering  <jim@meyering.net>
11647
11648         Change license (GPL to LGPL) of fsusage and dependents.
11649         * modules/fsusage (License): Change to LGPL.
11650         * modules/full-read (License): Likewise.
11651         * modules/full-write (License): Likewise.
11652         * modules/safe-read (License): Likewise.
11653         * modules/safe-write (License): Likewise.
11654
11655 2007-06-14  Ben Pfaff  <blp@gnu.org>
11656
11657         Missing part of allocsa -> malloca transition.
11658         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11659         gl_MALLOCA.
11660
11661 2007-06-12  Bruno Haible  <bruno@clisp.org>
11662
11663         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11664         to ia64, x86_64, i386.
11665         Reported by Eric Blake.
11666
11667 2007-06-12  Bruno Haible  <bruno@clisp.org>
11668
11669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11670         cross-compiling to x86_64.
11671
11672 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11673
11674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11675         glitch reported by Ralf Wildenhues in
11676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11677
11678         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11679         Vin Shelton.
11680
11681 2007-06-11  Bruno Haible  <bruno@clisp.org>
11682
11683         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11684         replacement string.
11685         Reported by Eric Blake.
11686
11687 2007-06-10  Bruno Haible  <bruno@clisp.org>
11688
11689         Prepare vasnprintf code for use with Unicode strings.
11690         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11691         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11692         TYPE_U32_STRING.
11693         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11694         a_u32_string variants.
11695         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11696         * lib/printf-args.c: Don't include config.h and the specification
11697         header if PRINTF_FETCHARGS is already defined.
11698         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11699         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11700         TYPE_U16_STRING, TYPE_U32_STRING.
11701         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11702         u16_directive, u16_directives, u32_directive, u32_directives): New
11703         types.
11704         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11705         New declarations.
11706         * lib/printf-parse.c: Don't include config.h and the specification
11707         header if PRINTF_PARSE is already defined. Eliminate the set of
11708         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11709         them now. Include c-ctype.h.
11710         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11711         directive and CHAR_T_ONLY_ASCII.
11712         * lib/vasnprintf.c: Don't include config.h and the specification header
11713         if VASNPRINTF is already defined.
11714         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11715         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11716         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11717         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11718         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11719         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11720         code accordingly.
11721         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11722         pad_ourselves also in this case, with the 'c' and 's' directives, and
11723         with a different notion of "width".
11724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11725
11726 2007-06-10  Bruno Haible  <bruno@clisp.org>
11727
11728         * modules/unistr/u32-mbsnlen: New file.
11729         * lib/unistr/u32-mbsnlen.c: New file.
11730
11731         * modules/unistr/u16-mbsnlen: New file.
11732         * lib/unistr/u16-mbsnlen.c: New file.
11733
11734         * modules/unistr/u8-mbsnlen: New file.
11735         * lib/unistr/u8-mbsnlen.c: New file.
11736
11737         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11738         declarations.
11739
11740 2007-06-10  Bruno Haible  <bruno@clisp.org>
11741
11742         * lib/string_.h (mbsnlen): New declaration.
11743         * lib/mbsnlen.c: New file.
11744         * m4/mbsnlen.m4: New file.
11745         * modules/mbsnlen: New file.
11746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11747         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11748         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11749
11750 2007-06-10  Bruno Haible  <bruno@clisp.org>
11751
11752         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11753
11754 2007-06-10  Bruno Haible  <bruno@clisp.org>
11755
11756         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11757         * lib/mbuiter.h: Likewise.
11758
11759 2007-06-10  Bruno Haible  <bruno@clisp.org>
11760
11761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11762         declaration.
11763
11764 2007-06-10  Karl Berry  <karl@gnu.org>
11765
11766         * config/srclist.txt: remove gettext entries, Bruno prefers
11767         to update individually.
11768
11769 2007-06-10  Bruno Haible  <bruno@clisp.org>
11770
11771         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11772         'maxlen'. Ensure only length + width bytes are allocated, not
11773         length + 1 + width.
11774
11775 2007-06-09  Bruno Haible  <bruno@clisp.org>
11776
11777         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11778         (CHAR_T): Remove macro.
11779         (VASNPRINTF): Update.
11780
11781 2007-06-09  Bruno Haible  <bruno@clisp.org>
11782
11783         * MODULES.html.sh (Unicode string functions): Add the new modules.
11784
11785         * modules/uniconv/u32-conv-to-enc: New file.
11786         * lib/uniconv/u32-conv-to-enc.c: New file.
11787         * modules/uniconv/u32-conv-to-enc-tests: New file.
11788         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11789
11790         * modules/uniconv/u16-conv-to-enc: New file.
11791         * lib/uniconv/u16-conv-to-enc.c: New file.
11792         * lib/uniconv/u-conv-to-enc.h: New file.
11793         * modules/uniconv/u16-conv-to-enc-tests: New file.
11794         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11795
11796         * modules/uniconv/u8-conv-to-enc: New file.
11797         * lib/uniconv/u8-conv-to-enc.c: New file.
11798         * modules/uniconv/u8-conv-to-enc-tests: New file.
11799         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11800
11801         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11802         u32_conv_to_encoding): New declarations.
11803
11804 2007-06-09  Bruno Haible  <bruno@clisp.org>
11805
11806         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11807
11808 2007-06-09  Bruno Haible  <bruno@clisp.org>
11809
11810         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11811         * modules/malloca: Renamed from modules/allocsa, updated.
11812         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11813         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11814         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11815         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11816         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11817         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11818         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11819         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11820         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11821         * modules/c-strcasestr (Depends-on): Update.
11822         * lib/c-strcasestr.c: Update.
11823         * modules/c-strstr (Depends-on): Update.
11824         * lib/c-strstr.c: Update.
11825         * modules/canonicalize-lgpl (Depends-on): Update.
11826         * lib/canonicalize-lgpl.c: Update.
11827         * modules/clean-temp (Depends-on): Update.
11828         * lib/clean-temp.c: Update.
11829         * modules/csharpcomp (Depends-on): Update.
11830         * lib/csharpcomp.c: Update.
11831         * modules/csharpexec (Depends-on): Update.
11832         * lib/csharpexec.c: Update.
11833         * modules/javacomp (Depends-on): Update.
11834         * lib/javacomp.c: Update.
11835         * modules/javaexec (Depends-on): Update.
11836         * lib/javaexec.c: Update.
11837         * modules/mbscasestr (Depends-on): Update.
11838         * lib/mbscasestr.c: Update.
11839         * modules/mbsstr (Depends-on): Update.
11840         * lib/mbsstr.c: Update.
11841         * modules/setenv (Depends-on): Update.
11842         * lib/setenv.c: Update.
11843         * modules/strcasestr (Depends-on): Update.
11844         * lib/strcasestr.c: Update.
11845         * modules/striconveha (Depends-on): Update.
11846         * lib/striconveha.c: Update.
11847         * modules/relocatable-prog-wrapper (Files): Update.
11848         * lib/relocwrapper.c: Update.
11849         * build-aux/install-reloc: Update.
11850         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11851
11852 2007-06-08  Bruno Haible  <bruno@clisp.org>
11853
11854         Port to uClibc.
11855         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11856         * lib/fpurge.c (fpurge): Likewise.
11857         * lib/freading.c (freading): Likewise.
11858         * lib/fseeko.c (rpl_fseeko): Likewise.
11859         * lib/fseterr.c (fseterr): Likewise.
11860         * lib/fwriting.c (fwriting): Likewise.
11861         * tests/test-fflush.c (main): Avoid a failure on uClibc.
11862
11863 2007-06-08  Bruno Haible  <bruno@clisp.org>
11864
11865         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11866         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11867         * modules/gettext (Files): Add m4/intlmacosx.m4.
11868
11869 2007-06-07  Bruno Haible  <bruno@clisp.org>
11870
11871         * modules/localename-tests: New file.
11872         * tests/test-localename.c: New file.
11873
11874         New module 'localename'.
11875         * lib/localename.h: New file.
11876         * lib/localename.c: New file, from GNU gettext.
11877         * m4/localename.m4: New file.
11878         * modules/localename: New file.
11879
11880 2007-06-07  Bruno Haible  <bruno@clisp.org>
11881
11882         Work around the lack of <wchar.h> on some builds of uClibc.
11883         * doc/headers/wchar.texi: Update.
11884         * lib/wchar_.h: Include <wchar.h> only if it exists.
11885         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11886         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11887         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11888         doesn't exist.
11889         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11890         * modules/mbfile (Depends-on): Add wchar.
11891         * modules/mbiter (Depends-on): Likewise.
11892         * modules/mbuiter (Depends-on): Likewise.
11893         Reported by Simon Josefsson.
11894
11895 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         Work around problem reported by Steven M. Schweda in
11898         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11899         Tru64 5.1B with the Compaq compiler environment installed declares
11900         an 'isblank' function but does not define it in the C library.
11901         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11902         * lib/regex_internal.h (isblank): Likewise.
11903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11905
11906 2007-06-05  Bruno Haible  <bruno@clisp.org>
11907
11908         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11909         ia64.
11910         * modules/printf-safe: New file.
11911         * modules/fprintf-posix (Depends-on): Add printf-safe.
11912         * modules/printf-posix (Depends-on): Likewise.
11913         * modules/snprintf-posix (Depends-on): Likewise.
11914         * modules/sprintf-posix (Depends-on): Likewise.
11915         * modules/vasnprintf-posix (Depends-on): Likewise.
11916         * modules/vasprintf-posix (Depends-on): Likewise.
11917         * modules/vfprintf-posix (Depends-on): Likewise.
11918         * modules/vprintf-posix (Depends-on): Likewise.
11919         * modules/vsnprintf-posix (Depends-on): Likewise.
11920         * modules/vsprintf-posix (Depends-on): Likewise.
11921         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11922         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11923         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11924         "no" on i386, x86_64, ia64.
11925         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11926         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11927         on i386, x86_64, ia64.
11928         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11929         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11930         on i386, x86_64, ia64.
11931         * tests/test-vasnprintf-posix.c: Include float.h.
11932         (LDBL80_WORDS): New macro.
11933         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11934         on i386, x86_64, ia64.
11935         * tests/test-vasprintf-posix.c: Include float.h.
11936         (LDBL80_WORDS): New macro.
11937         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11938         on i386, x86_64, ia64.
11939         * tests/test-snprintf-posix.c: Include float.h.
11940         * tests/test-sprintf-posix.c: Likewise.
11941         * tests/test-vsnprintf-posix.c: Likewise.
11942         * tests/test-vsprintf-posix.c: Likewise.
11943
11944 2007-06-05  Bruno Haible  <bruno@clisp.org>
11945
11946         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11948         non-IEEE numbers on i386, x86_64, ia64.
11949         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11950         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11951         * tests/test-isnanl.h: Include float.h.
11952         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11953
11954 2007-06-05  Bruno Haible  <bruno@clisp.org>
11955
11956         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11957         also the %a / %A. Handle the %a / %A code before this extra handling.
11958
11959 2007-06-05  Bruno Haible  <bruno@clisp.org>
11960
11961         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11962         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11963
11964 2007-06-05  Bruno Haible  <bruno@clisp.org>
11965
11966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11967         typo in variable name.
11968
11969 2007-06-05  Eric Blake  <ebb9@byu.net>
11970
11971         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11972         Reported by Simon Josefsson.
11973
11974 2007-06-04  Bruno Haible  <bruno@clisp.org>
11975
11976         Avoid test failures on some PowerPC platforms.
11977         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11978         Define differently for PowerPC.
11979         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11980         Reported by Gary V. Vaughan <gary@gnu.org>.
11981
11982 2007-06-02  Bruno Haible  <bruno@clisp.org>
11983
11984         Fix test-stdint failure on FreeBSD/ia64.
11985         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11986         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11987         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11988         * doc/headers/stdint.texi: Update.
11989
11990 2007-06-01  Bruno Haible  <bruno@clisp.org>
11991
11992         * tests/test-binary-io.c (main): Pass a third argument to open().
11993         Reported by Gary V. Vaughan <gary@gnu.org>.
11994
11995 2007-06-01  Bruno Haible  <bruno@clisp.org>
11996
11997         * doc/functions/frexpl.texi: Update for mingw.
11998
11999 2007-06-01  Bruno Haible  <bruno@clisp.org>
12000
12001         * tests/test-lseek.c (main): Disable test of errno for invalid third
12002         argument.
12003         * doc/functions/lseek.texi: Update.
12004         Reported by Gary V. Vaughan <gary@gnu.org>.
12005
12006 2007-05-28  Bruno Haible  <bruno@clisp.org>
12007
12008         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12009
12010 2007-05-31  Eric Blake  <ebb9@byu.net>
12011
12012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12013         cross compiling.
12014
12015 2007-05-30  Eric Blake  <ebb9@byu.net>
12016         and Bruno Haible  <bruno@clisp.org>
12017
12018         Work around mingw test failures exposed by m4-1.4.9b.
12019         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12020         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12021         moment.
12022
12023 2007-05-30  Bruno Haible  <bruno@clisp.org>
12024
12025         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12026         assuming that they are closed. Needed on HP-UX 11.
12027
12028 2007-05-29  Bruno Haible  <bruno@clisp.org>
12029
12030         Fix a problem with #include_next.
12031         * lib/dirent_.h: Split the double-inclusion guard.
12032         * lib/fcntl_.h: Likewise.
12033         * lib/float_.h: Likewise.
12034         * lib/iconv_.h: Likewise.
12035         * lib/inttypes_.h: Likewise.
12036         * lib/locale_.h: Likewise.
12037         * lib/math_.h: Likewise.
12038         * lib/netinet_in_.h: Likewise.
12039         * lib/search_.h: Likewise.
12040         * lib/signal_.h: Likewise.
12041         * lib/stdint_.h: Likewise.
12042         * lib/stdio_.h: Likewise.
12043         * lib/stdlib_.h: Likewise.
12044         * lib/string_.h: Likewise.
12045         * lib/sys_select_.h: Likewise.
12046         * lib/sys_socket_.h: Likewise.
12047         * lib/sys_stat_.h: Likewise.
12048         * lib/sys_time_.h: Likewise.
12049         * lib/sysexits_.h: Likewise.
12050         * lib/time_.h: Likewise.
12051         * lib/unistd_.h: Likewise.
12052         * lib/wchar_.h: Likewise.
12053         * lib/wctype_.h: Likewise.
12054
12055 2007-05-29  Bruno Haible  <bruno@clisp.org>
12056
12057         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12058         for the moment.
12059
12060 2007-05-29  Bruno Haible  <bruno@clisp.org>
12061
12062         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12063         invocation.
12064         Reported by Eric Blake.
12065
12066 2007-05-29  Bruno Haible  <bruno@clisp.org>
12067
12068         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12069         compiling case.
12070
12071 2007-05-29  Eric Blake  <ebb9@byu.net>
12072             Bruno Haible  <bruno@clisp.org>
12073
12074         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12075         cross compiles.
12076
12077 2007-05-28  Eric Blake  <ebb9@byu.net>
12078
12079         * modules/closein-tests (test_closein_LDADD): Support test on
12080         cygwin with libtool.
12081
12082 2007-05-28  Bruno Haible  <bruno@clisp.org>
12083
12084         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12085         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12086         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12087         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12088         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12089         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12090         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12091         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12092         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12093
12094 2007-05-28  Eric Blake  <ebb9@byu.net>
12095
12096         Unconditionally include <config.h> in unit tests.
12097         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12098         * tests/test-allocsa.c, tests/test-arcfour.c,
12099         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12100         tests/test-array_list.c, tests/test-array_oset.c,
12101         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12102         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12103         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12104         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12105         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12106         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12107         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12108         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12109         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12110         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12111         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12112         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12113         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12114         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12115         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12116         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12117         test-md5.c, test-memmem.c, test-printf-posix.c,
12118         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12119         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12120         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12121         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12122         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12123         test-vasnprintf-posix2.c, test-vasnprintf.c,
12124         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12125         test-vfprintf-posix.c, test-vprintf-posix.c,
12126         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12127         test-xvasprintf.c: Likewise.
12128
12129 2007-05-28  Bruno Haible  <bruno@clisp.org>
12130
12131         * gnulib-tool (func_import): Remember the --with-tests command-line
12132         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12133         Reported by Eric Blake.
12134
12135 2007-05-28  Bruno Haible  <bruno@clisp.org>
12136
12137         * modules/ftell-tests: New file.
12138         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12139         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12140
12141         * lib/ftell.c: New file.
12142         * modules/ftell: New file.
12143         * m4/ftell.m4: New file.
12144         * doc/functions/ftell.texi: Update.
12145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12146         REPLACE_FTELL.
12147         * lib/stdio_.h (rpl_ftell): New declaration.
12148         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12149         REPLACE_FTELL.
12150
12151 2007-05-28  Eric Blake  <ebb9@byu.net>
12152
12153         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12154
12155 2007-05-28  Bruno Haible  <bruno@clisp.org>
12156
12157         * modules/fseek-tests: New file.
12158         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12159         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12160
12161         * lib/fseek.c: New file.
12162         * modules/fseek: New file.
12163         * m4/fseek.m4: New file.
12164         * doc/functions/fseek.texi: Update.
12165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12166         REPLACE_FSEEK.
12167         * lib/stdio_.h (rpl_fseek): New declaration.
12168         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12169         REPLACE_FSEEK.
12170
12171 2007-05-28  Bruno Haible  <bruno@clisp.org>
12172
12173         * lib/stdio_.h (fflush): More comments.
12174
12175 2007-05-28  Bruno Haible  <bruno@clisp.org>
12176
12177         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12178         runtime test.
12179
12180 2007-05-28  Eric Blake  <ebb9@byu.net>
12181
12182         Improve lseek module.
12183         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12184         * lib/unistd_.h (lseek): Scale back link warning message.
12185         * tests/test-lseek.c: Beef up test.
12186         * tests/test-lseek.sh: Exercise more facets of lseek.
12187         Reported by Bruno Haible.
12188
12189 2007-05-28  Bruno Haible  <bruno@clisp.org>
12190
12191         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12192         to define.
12193
12194 2007-05-27  Bruno Haible  <bruno@clisp.org>
12195
12196         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12197
12198 2007-05-27  Bruno Haible  <bruno@clisp.org>
12199
12200         * modules/openmp: New file.
12201         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12202         Noah Misch.
12203
12204 2007-05-26  Bruno Haible  <bruno@clisp.org>
12205
12206         * modules/chdir-long (Depends-on): Add fchdir.
12207         * modules/chdir-safer (Depends-on): Likewise.
12208         * modules/fts (Depends-on): Likewise.
12209         * modules/fts-lgpl (Depends-on): Likewise.
12210         * modules/openat (Depends-on): Likewise.
12211         * modules/savewd (Depends-on): Likewise.
12212
12213 2007-05-24  Eric Blake  <ebb9@byu.net>
12214
12215         Fix lseek on mingw.
12216         * modules/lseek: New module.
12217         * m4/lseek.m4: New file.
12218         * lib/lseek.c: New file.
12219         * modules/lseek-tests: New file.
12220         * tests/test-lseek.c: New file.
12221         * tests/test-lseek.sh: New file.
12222         * MODULES.html.sh: Document lseek module.
12223         * modules/fflush (Depends-on): Add lseek, fseeko.
12224         * modules/fseeko (Depends-on): Likewise.
12225         * modules/ftello (Depends-on): Likewise.
12226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12227         broken.
12228         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12229         broken.
12230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12231         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12232         * lib/ftello.c (rpl_ftello): Likewise.
12233         * tests/test-fseeko.c (main): Test this.
12234         * tests/test-fseeko.sh: Likewise.
12235         * tests/test-ftello.c (main): Likewise.
12236         * tests/test-ftello.sh: Likewise.
12237         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12238         implies replacing fseek.
12239         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12240         HAVE_FTELLO.
12241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12242         * modules/unistd (Makefile.am): Likewise.
12243         * lib/unistd_.h (lseek): Declare a replacement.
12244         * doc/functions/lseek.texi (lseek): Document this fix.
12245         * doc/functions/fseek.texi (fseek): Likewise.
12246         * doc/functions/ftell.texi (ftell): Likewise.
12247
12248 2007-05-24  Bruno Haible  <bruno@clisp.org>
12249
12250         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12251         in the printed representation of a NaN.
12252         * tests/test-vasprintf-posix.c (test_function): Likewise.
12253         * tests/test-snprintf-posix.h (test_function): Likewise.
12254         * tests/test-sprintf-posix.h (test_function): Likewise.
12255         Reported by Eric Blake.
12256
12257 2007-05-23  Eric Blake  <ebb9@byu.net>
12258
12259         Fix fseeko/ftello on cygwin 1.5.24.
12260         * doc/functions/fseeko.texi (fseeko): Document the fix.
12261         * doc/functions/ftello.texi (ftello): Document the fix.
12262         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12263         * doc/functions/stdout.text (stdout): New file.
12264         * doc/functions/stderr.text (stderr): New file.
12265         * doc/gnulib.texi (Function Substitutes): Use new files.
12266         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12267         prior to 1.7.0.
12268         * tests/test-ftello.c (main): Likewise for ftello.
12269         * tests/test-fseeko.sh: New file.
12270         * tests/test-ftello.sh: New file.
12271         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12272         with seekable stdin.
12273         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12275         (gl_REPLACE_FSEEKO): New macro.
12276         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12277         * modules/fseeko (Files): Distribute fseeko.c.
12278         * modules/ftello (Files): Distribute ftello.c.
12279         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12280         mode.
12281         * lib/ftello.c (rpl_ftello): New file.
12282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12283         fseeko, ftello.
12284         (gl_STDIN_LARGE_OFFSET): New macro.
12285         * modules/stdio (Makefile.am): Perform the replacement.
12286         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12287
12288 2007-05-23  Bruno Haible  <bruno@clisp.org>
12289
12290         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12291         GNULIB_POSIXCHECK is defined.
12292
12293 2007-05-21  Bruno Haible  <bruno@clisp.org>
12294
12295         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12296         Check also the output for NaN arguments. When cross-compiling, guess
12297         no on IRIX.
12298         * lib/vasnprintf.c: Update comments.
12299         * tests/test-vasnprintf-posix.c (strisnan): New function.
12300         (test_function): Use it.
12301         * tests/test-vasprintf-posix.c (strisnan): New function.
12302         (test_function): Use it.
12303         * tests/test-snprintf-posix.h (strisnan): New function.
12304         (test_function): Use it.
12305         * tests/test-sprintf-posix.h (strisnan): New function.
12306         (test_function): Use it.
12307         Reported by Eric Blake.
12308
12309 2007-05-20  Bruno Haible  <bruno@clisp.org>
12310
12311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12312         numbers that fails on BeOS.
12313         * doc/functions/frexpl.texi: Update.
12314
12315 2007-05-20  Jim Meyering  <jim@meyering.net>
12316
12317         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12318         forced upon us by glibc-2.6.
12319
12320 2007-05-20  Bruno Haible  <bruno@clisp.org>
12321
12322         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12323         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12324         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12325         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12326         NEED_PRINTF_INFINITE.
12327         (is_infinitel): New function.
12328         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12330         gl_PREREQ_VASNPRINTF_INFINITE.
12331         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12333         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12334         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12335         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12336         gl_PREREQ_VASNPRINTF_INFINITE.
12337         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12338         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12344         * doc/functions/fprintf.texi: Update.
12345         * doc/functions/printf.texi: Update.
12346         * doc/functions/snprintf.texi: Update.
12347         * doc/functions/sprintf.texi: Update.
12348         * doc/functions/vfprintf.texi: Update.
12349         * doc/functions/vprintf.texi: Update.
12350         * doc/functions/vsnprintf.texi: Update.
12351         * doc/functions/vsprintf.texi: Update.
12352
12353 2007-05-20  Bruno Haible  <bruno@clisp.org>
12354
12355         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12356         was not found in libc.
12357         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12358
12359 2007-05-20  Bruno Haible  <bruno@clisp.org>
12360
12361         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12362         printed as "-nan" instead of "nan".
12363         * tests/test-vasprintf-posix.c (test_function): Likewise.
12364         * tests/test-snprintf-posix.h (test_function): Likewise.
12365         * tests/test-sprintf-posix.h (test_function): Likewise.
12366         Needed for HP-UX 11.
12367
12368 2007-05-20  Jim Meyering  <jim@meyering.net>
12369
12370         Fix buggy test for the fchownat-deref bug.
12371         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12372         symlink required for the run-test.  Without it, this test would
12373         always declare that fchownat doesn't work, and client code would
12374         unnecessarily use the replacement function with fixed libc.
12375         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12376         Reported by Greg Schafer.
12377
12378 2007-05-19  Bruno Haible  <bruno@clisp.org>
12379
12380         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12381         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12382         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12383         Needed for IRIX 6.5 and Solaris 2.5.1.
12384
12385 2007-05-19  Bruno Haible  <bruno@clisp.org>
12386
12387         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12388         (test_function): Skip tests involving -0.0 on platforms where
12389         -0.0 = 0.0.
12390         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12391         (test_function): Skip tests involving -0.0 on platforms where
12392         -0.0 = 0.0.
12393         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12394         (test_function): Skip tests involving -0.0 on platforms where
12395         -0.0 = 0.0.
12396         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12397         (test_function): Skip tests involving -0.0 on platforms where
12398         -0.0 = 0.0.
12399         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12400         tests.
12401         * tests/test-printf-posix.h (test_function): Likewise.
12402         * tests/test-printf-posix.output: Remove all -0.0 related results.
12403         Needed for IRIX 6.5.
12404
12405 2007-05-19  Bruno Haible  <bruno@clisp.org>
12406
12407         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12408         printed as "nan0x7fffffff" instead of "nan".
12409         * tests/test-vasprintf-posix.c (test_function): Likewise.
12410         * tests/test-snprintf-posix.h (test_function): Likewise.
12411         * tests/test-sprintf-posix.h (test_function): Likewise.
12412         * tests/test-fprintf-posix.h (NaN): Remove macro.
12413         (test_function): Remove all NaN related tests.
12414         * tests/test-printf-posix.h (NaN): Remove macro.
12415         (test_function): Remove all NaN related tests.
12416         * tests/test-printf-posix.output: Remove all NaN related results.
12417         Needed for IRIX 6.5.
12418
12419 2007-05-19  Bruno Haible  <bruno@clisp.org>
12420
12421         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12423
12424 2007-05-19  Bruno Haible  <bruno@clisp.org>
12425
12426         * lib/float_.h: New file.
12427         * m4/float_h.m4: New file.
12428         * modules/float: New file.
12429         * modules/isnanl (Dependencies): Add float.
12430         * modules/isnanl-nolibm (Dependencies): Likewise.
12431         * modules/mathl (Dependencies): Likewise.
12432         * modules/printf-frexpl (Dependencies): Likewise.
12433         * modules/signbit (Dependencies): Likewise.
12434         * modules/vasnprintf (Dependencies): Likewise.
12435         * doc/headers/float.texi: Update.
12436
12437 2007-05-19  Jim Meyering  <jim@meyering.net>
12438
12439         * lib/utimens.c (gl_futimens): Rename from futimens,
12440         now that glibc-2.6 declares futimens.
12441         * lib/utimens.h: Likewise.
12442
12443 2007-05-19  Bruno Haible  <bruno@clisp.org>
12444
12445         Avoid test failures on mingw.
12446         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12447         * tests/test-printf-posix.sh: Likewise.
12448         * tests/test-vfprintf-posix.sh: Likewise.
12449         * tests/test-vprintf-posix.sh: Likewise.
12450
12451 2007-05-19  Bruno Haible  <bruno@clisp.org>
12452
12453         Fix *printf result for NaN, Inf, -0.0 on mingw.
12454         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12455         * lib/vasnprintf.c: Include math.h and isnan.h.
12456         (is_infinite_or_zero): New function.
12457         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12458         values in the %f, %F, %e, %E, %g, %G directives.
12459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12461         gl_PRINTF_INFINITE and test its result. Invoke
12462         gl_PREREQ_VASNPRINTF_INFINITE.
12463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12470         * doc/functions/fprintf.texi: Update.
12471         * doc/functions/printf.texi: Update.
12472         * doc/functions/snprintf.texi: Update.
12473         * doc/functions/sprintf.texi: Update.
12474         * doc/functions/vfprintf.texi: Update.
12475         * doc/functions/vprintf.texi: Update.
12476         * doc/functions/vsnprintf.texi: Update.
12477         * doc/functions/vsprintf.texi: Update.
12478
12479 2007-05-19  Bruno Haible  <bruno@clisp.org>
12480
12481         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12482         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12483         Instead of multiplying with 10^k, set extra_zeroes to k.
12484         (scale10_round_long_double): Remove function.
12485
12486 2007-05-18  Bruno Haible  <bruno@clisp.org>
12487
12488         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12489         introduced on 2007-05-06.
12490
12491 2007-05-18  Bruno Haible  <bruno@clisp.org>
12492
12493         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12494         %g directives.
12495         * tests/test-vasprintf-posix.c (test_function): Likewise.
12496         * tests/test-snprintf-posix.h (test_function): Likewise.
12497         * tests/test-sprintf-posix.h (test_function): Likewise.
12498
12499 2007-05-18  Bruno Haible  <bruno@clisp.org>
12500
12501         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12502         (strmatch): New function.
12503         (test_function): Test the %f directive on numbers of various exponents.
12504         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12505         (strmatch): New function.
12506         (test_function): Test the %f directive on numbers of various exponents.
12507         * tests/test-snprintf-posix.h (strmatch): New function.
12508         (test_function): Test the %f directive on numbers of various exponents.
12509         * tests/test-sprintf-posix.h (strmatch): New function.
12510         (test_function): Test the %f directive on numbers of various exponents.
12511         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12512         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12513         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12514         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12515
12516 2007-05-18  Bruno Haible  <bruno@clisp.org>
12517
12518         Add support for 'long double' number output.
12519         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12520         * lib/vasnprintf.c: Include math.h and float+.h.
12521         (mp_limb_t): New type.
12522         (GMP_LIMB_BITS): New macro.
12523         (mp_twolimb_t): New type.
12524         (GMP_TWOLIMB_BITS): New macro.
12525         (mpn_t): New type.
12526         (multiply, divide, convert_to_decimal, decode_long_double,
12527         scale10_round_long_double, scale10_round_decimal_long_double,
12528         floorlog10l): New functions.
12529         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12530         for the %f, %F, %e, %E, %g, %G directives.
12531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12532         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12533         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12534         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12542         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12543         * modules/snprintf-posix (Depends-on): Likewise.
12544         * modules/sprintf-posix (Depends-on): Likewise.
12545         * modules/vasnprintf-posix (Depends-on): Likewise.
12546         * modules/vasprintf-posix (Depends-on): Likewise.
12547         * modules/vfprintf-posix (Depends-on): Likewise.
12548         * modules/vsnprintf-posix (Depends-on): Likewise.
12549         * modules/vsprintf-posix (Depends-on): Likewise.
12550         * modules/vasnprintf (Files): Add lib/float+.h.
12551         * doc/functions/fprintf.texi: Update.
12552         * doc/functions/printf.texi: Update.
12553         * doc/functions/snprintf.texi: Update.
12554         * doc/functions/sprintf.texi: Update.
12555         * doc/functions/vfprintf.texi: Update.
12556         * doc/functions/vprintf.texi: Update.
12557         * doc/functions/vsnprintf.texi: Update.
12558         * doc/functions/vsprintf.texi: Update.
12559
12560 2007-05-18  Bruno Haible  <bruno@clisp.org>
12561
12562         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12563
12564 2007-05-18  Bruno Haible  <bruno@clisp.org>
12565
12566         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12567         for printing 64-bit integers. Needed for mingw.
12568
12569 2007-05-18  Bruno Haible  <bruno@clisp.org>
12570
12571         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12572         gl_FUNC_FREXPL_WORKS.
12573         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12574
12575 2007-05-18  Bruno Haible  <bruno@clisp.org>
12576
12577         * modules/frexpl-nolibm-tests: New file.
12578
12579         * modules/frexpl-nolibm: New file.
12580         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12581
12582 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12583
12584         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12585         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12586         GCC 4.2, which otherwise issues a lot of warnings.
12587         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12588         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12589         Likewise.
12590         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12591         * modules/iconv_open (iconv.h): Likewise.
12592         * modules/locale (locale.h): Likewise.
12593         * modules/netinet_in (netinet/in.h): Likewise.
12594         * modules/sys_select (sys_select.h): Likewise.
12595         * modules/sys_socket (sys/socket.h): Likewise.
12596         * modules/sys_stat (sys/stat.h): Likewise.
12597         * modules/sysexits (sysexits.h): Likewise.
12598         * modules/unistd (unistd.h): Likewise.
12599
12600 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12601
12602         * modules/closein-tests (Makefile.am): Distribute
12603         `test-closein.sh'.
12604
12605 2007-05-17  Bruno Haible  <bruno@clisp.org>
12606
12607         * tests/test-printf-posix.output: Renamed from
12608         tests/test-fprintf-posix.out.
12609         * modules/fprintf-posix-tests: Update.
12610         * modules/printf-posix-tests: Update.
12611         * modules/vfprintf-posix-tests: Update.
12612         * modules/vprintf-posix-tests: Update.
12613         * tests/test-fprintf-posix.sh: Update.
12614         * tests/test-printf-posix.sh: Update.
12615         * tests/test-vfprintf-posix.sh: Update.
12616         * tests/test-vprintf-posix.sh: Update.
12617         Reported by Ralf Wildenhues.
12618
12619 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12620
12621         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12622         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12623         GCC 4.2, which otherwise issues a lot of warnings.
12624         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12625         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12626         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12627         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12628         it should no longer be needed.
12629         * lib/string_.h: Likewise.
12630         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12631         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12632         * modules/inttypes (inttypes.h): Likewise.
12633         * modules/math (math.h): Likewise.
12634         * modules/search (search.h): Likewise.
12635         * modules/signal (signal.h): Likewise.
12636         * modules/stdint (stdint.h): Likewise.
12637         * modules/stdio (stdio.h): Likewise.
12638         * modules/stdlib (stdlib.h): Likewise.
12639         * modules/string (string.h): Likewise.
12640         * modules/sys_time (sys/time.h): Likewise.
12641         * modules/time (time.h): Likewise.
12642         * modules/wchar (wchar.h): Likewise.
12643         * modules/wctype (wtype.h): Likewise.
12644
12645 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12646
12647         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12648
12649 2007-05-13  Bruno Haible  <bruno@clisp.org>
12650
12651         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12652         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12653         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12654         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12655         (gl_PREREQ_STRTOK_R): Don't require it here.
12656
12657 2007-05-13  Bruno Haible  <bruno@clisp.org>
12658
12659         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12660         when used in C++ mode.
12661
12662 2007-05-12  Bruno Haible  <bruno@clisp.org>
12663
12664         * lib/linebuffer.h: Tweak doc.
12665         * lib/linebuffer.c: Likewise.
12666
12667 2007-05-12  James Youngman  <jay@gnu.org>
12668
12669         * lib/linebuffer.c (readlinebuffer_delim): New function,
12670         like readlinebuffer, but use a caller-specified delimiter.
12671         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12672         as the delimiter.
12673         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12674
12675 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12676
12677         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12678         * modules/openat (Files): Remove openat-die.c.
12679         (Depends-on): Add openat-die.
12680         * modules/openat-die: New module.
12681
12682 2007-05-06  Bruno Haible  <bruno@clisp.org>
12683
12684         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12685         Update with info about Cygwin.
12686         * doc/functions/fprintf.texi: Update.
12687         * doc/functions/printf.texi: Update.
12688         * doc/functions/snprintf.texi: Update.
12689         * doc/functions/sprintf.texi: Update.
12690         * doc/functions/vfprintf.texi: Update.
12691         * doc/functions/vprintf.texi: Update.
12692         * doc/functions/vsnprintf.texi: Update.
12693         * doc/functions/vsprintf.texi: Update.
12694         Reported by Eric Blake.
12695
12696 2007-05-06  Bruno Haible  <bruno@clisp.org>
12697
12698         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12699         padding ourselves for the floating-point directives.
12700         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12703         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12704         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12712         * tests/test-snprintf-posix.h (test_function): Also check the width
12713         and some flags in the %f directive.
12714         * tests/test-sprintf-posix.h (test_function): Likewise.
12715         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12716         * tests/test-vasprintf-posix.c (test_function): Likewise.
12717         * doc/functions/fprintf.texi: Update.
12718         * doc/functions/printf.texi: Update.
12719         * doc/functions/snprintf.texi: Update.
12720         * doc/functions/sprintf.texi: Update.
12721         * doc/functions/vfprintf.texi: Update.
12722         * doc/functions/vprintf.texi: Update.
12723         * doc/functions/vsnprintf.texi: Update.
12724         * doc/functions/vsprintf.texi: Update.
12725
12726 2007-05-06  Bruno Haible  <bruno@clisp.org>
12727
12728         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12729         pass the ' flag character to sprintf or snprintf.
12730         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12733         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12734         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12742         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12743         flag.
12744         * tests/test-sprintf-posix.h (test_function): Likewise.
12745         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12746         * tests/test-vasprintf-posix.c (test_function): Likewise.
12747         * doc/functions/fprintf.texi: Update.
12748         * doc/functions/printf.texi: Update.
12749         * doc/functions/snprintf.texi: Update.
12750         * doc/functions/sprintf.texi: Update.
12751         * doc/functions/vfprintf.texi: Update.
12752         * doc/functions/vprintf.texi: Update.
12753         * doc/functions/vsnprintf.texi: Update.
12754         * doc/functions/vsprintf.texi: Update.
12755
12756 2007-05-01  Bruno Haible  <bruno@clisp.org>
12757
12758         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12759
12760 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12761
12762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12763         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12764
12765 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12766
12767         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12768         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12770
12771 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12772
12773         * lib/argp-help.c (struct hol_entry): New member `ord'.
12774         (HOL_ENTRY_PTRCMP): Use ord for comparison
12775         (hol_sort): Initialize ord.
12776
12777 2007-05-01  Bruno Haible  <bruno@clisp.org>
12778
12779         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12780         Reported by Eric Blake.
12781         * doc/gnulib.texi (Function Substitutes): Update.
12782
12783 2007-05-01  Bruno Haible  <bruno@clisp.org>
12784
12785         * doc/functions.texi: Remove file, now redundant through
12786         doc/functions/*.texi.
12787
12788 2007-05-01  Bruno Haible  <bruno@clisp.org>
12789
12790         * modules/argp (Depends-on): Add sleep.
12791
12792 2007-05-01  Bruno Haible  <bruno@clisp.org>
12793
12794         * modules/sleep-tests: New file.
12795         * tests/test-sleep.c: New file.
12796
12797         * modules/sleep: New file.
12798         * lib/sleep.c: New file.
12799         * m4/sleep.m4: New file.
12800         * lib/unistd_.h (sleep): New declaration.
12801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12802         HAVE_SLEEP.
12803         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12804         * doc/functions/sleep.texi: Document the sleep module.
12805
12806 2007-05-01  Bruno Haible  <bruno@clisp.org>
12807
12808         * lib/sigprocmask.h: Remove file.
12809         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12810         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12811         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12812         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12813         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12814         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12815         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12816         HAVE_SIGSET_T as a shell variable.
12817         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12818         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12819         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12820         (Depends-on): Add signal. Remove verify.
12821         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12822         (Include): Mention <signal.h> instead of sigprocmask.h.
12823         * NEWS: Mention the change.
12824         * lib/fatal-signal.c: Don't include sigprocmask.h.
12825
12826 2007-05-01  Bruno Haible  <bruno@clisp.org>
12827
12828         * modules/signal: New file.
12829         * lib/signal_.h: New file.
12830         * m4/signal_h.m4: New file.
12831
12832 2007-05-01  Bruno Haible  <bruno@clisp.org>
12833
12834         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12835         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12836         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12837         HAVE_WCTYPE_CTMP_BUG into wctype.h.
12838
12839 2007-05-01  Bruno Haible  <bruno@clisp.org>
12840
12841         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12842         configure time.
12843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12844         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12845         * modules/sys_stat (Makefile.am): Substitute their values into
12846         sys/stat.h.
12847
12848 2007-05-01  Bruno Haible  <bruno@clisp.org>
12849
12850         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12851         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12852         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12853
12854 2007-05-01  Bruno Haible  <bruno@clisp.org>
12855
12856         * doc/header/assert.texi: Undo last change: don't mention the gnulib
12857         'assert' module here.
12858
12859 2007-05-01  Bruno Haible  <bruno@clisp.org>
12860
12861         * doc/functions/*.texi: New files.
12862         * doc/functions/google-ranking.txt: New file.
12863         * doc/gnulib.texi (Function Substitutes): New chapter.
12864         (ctime, inet_ntoa): Remove sections.
12865         * doc/ctime.texi: Remove file.
12866         * doc/inet_ntoa.texi: Remove file.
12867         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12868         dependencies.
12869         (%.info): New rule, specifying a --reference-limit.
12870
12871 2007-05-01  Bruno Haible  <bruno@clisp.org>
12872
12873         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12874
12875 2007-05-01  Bruno Haible  <bruno@clisp.org>
12876
12877         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12878         the portability of 'mkdir' to mingw systems.
12879
12880 2007-05-01  Bruno Haible  <bruno@clisp.org>
12881
12882         * doc/headers/google-ranking.txt: New file.
12883
12884 2007-04-30  Eric Blake  <ebb9@byu.net>
12885
12886         Prefer fseeko to fseek.
12887         * modules/getpass (Depends-on): Add fseeko.
12888         * lib/getpass.c (getpass): Use fseeko, not fseek.
12889
12890 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
12891
12892         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12893         assumes the sorting is stable, while most qsort implementations
12894         are not.  Use argument addresses to ensure they never compare as
12895         equal.
12896
12897         * tests/test-argp-2.sh (usage-indent test): Fix output
12898         (func_compare): Restore diff options
12899         * tests/test-argp.c: Restore #include "progname.h"
12900
12901 2007-04-29  Bruno Haible  <bruno@clisp.org>
12902
12903         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12905         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12907         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12908         (configure.ac): Define CHECK_SNPRINTF_POSIX.
12909         (TESTS, check_PROGRAMS): Add test-snprintf.
12910         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12911         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12912         (TESTS, check_PROGRAMS): Add test-vsnprintf.
12913         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12914         assertions that fail on HP-UX, OSF/1, or IRIX.
12915         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12916
12917 2007-04-29  Bruno Haible  <bruno@clisp.org>
12918
12919         * MODULES.html.sh (posix_functions): Remove 'contents'.
12920
12921 2007-04-29  Karl Berry  <karl@gnu.org>
12922
12923         * config/srclist.txt (gendocs_template_min): new entry.
12924
12925 2007-04-29  Bruno Haible  <bruno@clisp.org>
12926
12927         Work around fpurge bug on BSD systems.
12928         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12929         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12930         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12931         fpurge to rpl_fpurge if the system already has this function.
12932         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12933         the case where the system already has this function. Correct invariants
12934         on BSD systems.
12935         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12936         BSD systems.
12937
12938 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12939
12940         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
12941         proposed by Sven Verdoolaege.
12942
12943         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
12944         options.
12945         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12946         (usage and help tests): Update
12947
12948 2007-04-29  Bruno Haible  <bruno@clisp.org>
12949
12950         * tests/test-fflush.c (main): Use a file of size 17, not 10.
12951         Print more information in case of failure. Disable a test on BeOS.
12952
12953 2007-04-29  Bruno Haible  <bruno@clisp.org>
12954
12955         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12956         This helps debugging on systems on which no gdb is available.
12957
12958 2007-04-29  Bruno Haible  <bruno@clisp.org>
12959
12960         * lib/freading.h: Improve comments.
12961         * lib/fwriting.h: Likewise.
12962         * tests/test-freading.c (main): Don't check freading immediately after
12963         repositioning. Needed for glibc.
12964
12965 2007-04-29  Bruno Haible  <bruno@clisp.org>
12966
12967         * lib/freading.c (freading): Trivial simplification.
12968
12969 2007-04-28  Bruno Haible  <bruno@clisp.org>
12970
12971         * tests/test-fwriting.c (main): Also test the interaction between
12972         fflush and fwriting.
12973         * modules/fwriting-tests (Depends-on): Add fflush.
12974
12975         * tests/test-freading.c (main): Also test the interaction between
12976         fflush and freading.
12977         * modules/freading-tests (Depends-on): Add fflush.
12978
12979 2007-04-28  Bruno Haible  <bruno@clisp.org>
12980
12981         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12982         fseeko and ftello.
12983         Suggested by Eric Blake.
12984
12985 2007-04-28  Jim Meyering  <jim@meyering.net>
12986
12987         Avoid false-negative in gl_STDINT_H's C99 conformance test.
12988         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12989         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12990
12991 2007-04-27  Eric Blake  <ebb9@byu.net>
12992
12993         * doc/headers/assert.texi (assert.h): Document assert module use.
12994
12995 2007-04-27  Bruno Haible  <bruno@clisp.org>
12996
12997         * doc/headers/*.texi: New files.
12998         * doc/gnulib.texi (Header File Substitutes): New chapter.
12999         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13000         dependencies.
13001         (standards.info ,standards.html, standards.dvi): Update dependencies.
13002         (mostlyclean, clean): New targets.
13003
13004 2007-04-27  Bruno Haible  <bruno@clisp.org>
13005
13006         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13007         * modules/sysexits (Files, Makefile.am): Update.
13008
13009         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13010         * modules/sys_socket (Files, Makefile.am): Update.
13011
13012         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13013         * modules/sys_stat (Files, Makefile.am): Update.
13014
13015 2007-04-27  Eric Blake  <ebb9@byu.net>
13016
13017         * lib/freading.h: Improve comments.
13018         * lib/fwriting.h: Likewise.
13019         * lib/fflush.c: Likewise.
13020
13021         Fix closein for mingw.
13022         * modules/closein-tests: Add tests for closein.
13023         * tests/test-closein.c: New file.
13024         * tests/test-closein.sh: Likewise.
13025         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13026         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13027
13028 2007-04-27  Bruno Haible  <bruno@clisp.org>
13029
13030         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13031         version is < 6.
13032         * lib/math_.h [__DECC]: Likewise.
13033         * lib/stdio_.h [__DECC]: Likewise.
13034         * lib/stdlib_.h [__DECC]: Likewise.
13035         * lib/string_.h [__DECC]: Likewise.
13036         * lib/time_.h [__DECC]: Likewise.
13037         * lib/wchar_.h [__DECC]: Likewise.
13038         * lib/wctype_.h [__DECC]: Likewise.
13039
13040 2007-04-27  Bruno Haible  <bruno@clisp.org>
13041
13042         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13043
13044 2007-04-27  Bruno Haible  <bruno@clisp.org>
13045
13046         * lib/fflush.c: Add comments.
13047         * modules/fpurge-tests (Depends-on): Add fflush.
13048         * modules/freadable-tests (Depends-on): Likewise.
13049         * modules/fwritable-tests (Depends-on): Likewise.
13050
13051 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13052
13053         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13054         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13055         Report by Bruno Haible <bruno@clisp.org>.
13056
13057 2007-04-26  Eric Blake  <ebb9@byu.net>
13058
13059         Fix fflush on mingw.
13060         * modules/fflush (Depends-on): Add freading.
13061         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13062         but unread data.
13063
13064 2007-04-26  Eric Blake  <ebb9@byu.net>
13065         and Bruno Haible  <bruno@clisp.org>
13066
13067         Implement freading and fwriting.
13068         * lib/freading.c: New file.
13069         * lib/freading.h: Likewise.
13070         * m4/freading.m4: Likewise.
13071         * modules/freading: Likewise.
13072         * modules/freading-tests: Likewise.
13073         * tests/test-freading.c: Likewise.
13074         * lib/fwriting.c: New file.
13075         * lib/fwriting.h: Likewise.
13076         * m4/fwriting.m4: Likewise.
13077         * modules/fwriting: Likewise.
13078         * modules/fwriting-tests: Likewise.
13079         * tests/test-fwriting.c: Likewise.
13080         * MODULES.html.sh (File stream based Input/Output): Mention them.
13081
13082 2007-04-26  Bruno Haible  <bruno@clisp.org>
13083
13084         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13085         'long' when we assume it.
13086         Suggested by Eric Blake.
13087
13088 2007-04-26  Bruno Haible  <bruno@clisp.org>
13089
13090         Ensure fseeko, ftello are declared on glibc systems.
13091         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13092         * modules/fseeko (configure.ac-early): Likewise.
13093         * modules/ftello (configure.ac-early): Likewise.
13094         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13095         AC_FUNC_FSEEKO for this.
13096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13097         (gl_CHECK_FSEEKO): Remove macro.
13098
13099 2007-04-26  Bruno Haible  <bruno@clisp.org>
13100
13101         * tests/test-fflush.c (main): Also check the ftell result after
13102         fflush and fseek/fseeko.
13103         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13104         file descriptor position cache in the stream.
13105         * lib/fseeko.c (rpl_fseeko): Likewise.
13106
13107 2007-04-26  Bruno Haible  <bruno@clisp.org>
13108
13109         * modules/fflush-tests (Depends-on): Add fseeko.
13110
13111 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13112             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13113
13114         * lib/argz_.h: ensure error_t definition is obtained in same
13115         mechanism system argz.h would have.
13116         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13117         argz facilities are known bad.  Err on the side of caution if
13118         cross-compiling.
13119
13120 2007-04-25  Eric Blake  <ebb9@byu.net>
13121
13122         * lib/fpurge.c (includes): Use stdlib.h for free.
13123         * tests/test-fflush.c (main): Also test fflush-fseeko.
13124
13125 2007-04-25  Bruno Haible  <bruno@clisp.org>
13126
13127         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13128         * lib/fseeko.c: New file.
13129         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13130         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13131         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13132         gl_FUNC_FSEEKO.
13133         (gl_FUNC_FSEEKO): Invoke it.
13134         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13135         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13136         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13137
13138 2007-04-25  Bruno Haible  <bruno@clisp.org>
13139
13140         * modules/fflush (Depends-on): Add ftello.
13141
13142 2007-04-25  Bruno Haible  <bruno@clisp.org>
13143
13144         * modules/ftello-tests: New file.
13145         * tests/test-ftello.c: New file.
13146
13147         * modules/ftello: New file.
13148         * m4/ftello.m4: New file.
13149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13150         HAVE_FTELLO.
13151         * lib/stdio_.h (ftello): New declaration.
13152         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13153         HAVE_FTELLO.
13154
13155 2007-04-25  Bruno Haible  <bruno@clisp.org>
13156
13157         * modules/fseeko-tests: New file.
13158         * tests/test-fseeko.c: New file.
13159
13160         * modules/fseeko: New file.
13161         * m4/fseeko.m4: New file.
13162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13163         HAVE_FSEEKO.
13164         * lib/stdio_.h (fseeko): New declaration.
13165         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13166         HAVE_FSEEKO.
13167
13168 2007-04-25  Bruno Haible  <bruno@clisp.org>
13169
13170         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13171
13172 2007-04-25  Bruno Haible  <bruno@clisp.org>
13173
13174         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13175         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13176         * tests/test-unistd.c: Likewise.
13177         * tests/test-fcntl.c: Likewise.
13178
13179 2007-04-23  Eric Blake  <ebb9@byu.net>
13180
13181         * lib/fflush.c: Fix missing include.
13182         Reported by Bruno Haible.
13183
13184 2007-04-23  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13187         Reported by Eric Blake.
13188
13189 2007-04-23  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13192
13193 2007-04-23  Bruno Haible  <bruno@clisp.org>
13194
13195         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13196
13197 2007-04-23  Bruno Haible  <bruno@clisp.org>
13198
13199         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13200         Needed on HP-UX 11.
13201
13202 2007-04-16  Eric Blake  <ebb9@byu.net>
13203
13204         Make fflush rely on fpurge.
13205         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13206         open coding all variants.
13207         * modules/fflush (Depends-on): Add fpurge and unistd.
13208         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13209         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13210
13211         Fix --with-tests compilation on cygwin.
13212         * modules/argmatch-tests (Makefile.am): List gnulib library first
13213         in LDADD.
13214         * modules/argp-tests (Makefile.am): Likewise.
13215         * modules/array-list-tests (Makefile.am): Likewise.
13216         * modules/array-oset-tests (Makefile.am): Likewise.
13217         * modules/avltree-list-tests (Makefile.am): Likewise.
13218         * modules/avltree-oset-tests (Makefile.am): Likewise.
13219         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13220         * modules/carray-list-tests (Makefile.am): Likewise.
13221         * modules/dirname-tests (Makefile.am): Likewise.
13222         * modules/frexp-tests (Makefile.am): Likewise.
13223         * modules/isnanl-tests (Makefile.am): Likewise.
13224         * modules/linked-list-tests (Makefile.am): Likewise.
13225         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13226         * modules/lock-tests (Makefile.am): Likewise.
13227         * modules/rbtree-list-tests (Makefile.am): Likewise.
13228         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13229         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13230         * modules/tls-tests (Makefile.am): Likewise.
13231         * modules/tsearch-tests (Makefile.am): Likewise.
13232         * modules/xvasprintf-tests (Makefile.am): Likewise.
13233
13234         Fix fpurge for cygwin.
13235         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13236         value.
13237         * modules/fpurge-tests (Depends-on): Clean up trash.
13238
13239 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13240
13241         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13242
13243         * m4/autobuild.m4: Re-indent.
13244
13245 2007-04-13  Bruno Haible  <bruno@clisp.org>
13246
13247         * modules/fpurge-tests: New file.
13248         * tests/test-fpurge.c: New file.
13249
13250         * modules/fpurge: New file.
13251         * lib/fpurge.h: New file.
13252         * lib/fpurge.c: New file.
13253         * m4/fpurge.m4: New file.
13254
13255 2007-04-13  Bruno Haible  <bruno@clisp.org>
13256
13257         * modules/fbufmode-tests: New file.
13258         * tests/test-fbufmode.c: New file.
13259
13260         * modules/fbufmode: New file.
13261         * lib/fbufmode.h: New file.
13262         * lib/fbufmode.c: New file.
13263         * m4/fbufmode.m4: New file.
13264
13265 2007-04-13  Bruno Haible  <bruno@clisp.org>
13266
13267         * modules/fwritable-tests: New file.
13268         * tests/test-fwritable.c: New file.
13269
13270         * modules/fwritable: New file.
13271         * lib/fwritable.h: New file.
13272         * lib/fwritable.c: New file.
13273         * m4/fwritable.m4: New file.
13274
13275 2007-04-13  Bruno Haible  <bruno@clisp.org>
13276
13277         * modules/freadable-tests: New file.
13278         * tests/test-freadable.c: New file.
13279
13280         * modules/freadable: New file.
13281         * lib/freadable.h: New file.
13282         * lib/freadable.c: New file.
13283         * m4/freadable.m4: New file.
13284
13285 2007-04-13  Bruno Haible  <bruno@clisp.org>
13286
13287         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13288         MOSTLYCLEANFILES.
13289
13290 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13291
13292         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13293         gzip bootstrap.conf to avoid dragging in i18n machinery.
13294         (gnulib_tool_option): Use it.
13295
13296 2007-04-13  Bruno Haible  <bruno@clisp.org>
13297
13298         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13299         %F directives.
13300         * tests/test-vasprintf-posix.c (test_function): Likewise.
13301         * tests/test-snprintf-posix.h (test_function): Likewise.
13302         * tests/test-sprintf-posix.h (test_function): Likewise.
13303         * tests/test-fprintf-posix.h (test_function): Likewise.
13304         * tests/test-printf-posix.h (test_function): Likewise.
13305         * tests/test-fprintf-posix.out: Likewise.
13306
13307 2007-04-13  Bruno Haible  <bruno@clisp.org>
13308
13309         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13310         * modules/tls-tests (configure.ac): Likewise.
13311         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13312
13313 2007-04-13  Bruno Haible  <bruno@clisp.org>
13314
13315         * lib/tls.c (glthread_tls_get): Fix return type.
13316         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13317
13318 2007-04-12  Eric Blake  <ebb9@byu.net>
13319
13320         * modules/gettime (Depends-on): Remove gettime.
13321         Reported by Dmitry V. Levin.
13322
13323 2007-04-12  Bruno Haible  <bruno@clisp.org>
13324
13325         * modules/fflush (Include): Mention <stdio.h>.
13326         * modules/strtoimax (Include): Mention <inttypes.h>.
13327         * modules/strtoumax (Include): Likewise.
13328
13329 2007-04-12  Eric Blake  <ebb9@byu.net>
13330
13331         * .cvsignore: New file.
13332         * .gitignore: Likewise.
13333
13334 2007-04-12  Bruno Haible  <bruno@clisp.org>
13335
13336         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13337         not before, since $(LDADD) often contains libgnu.a.
13338         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13339         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13340         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13341         Needed on Cygwin.
13342
13343 2007-04-12  Eric Blake  <ebb9@byu.net>
13344
13345         Work around glibc's failure to flush stdin on fclose.
13346         * lib/closein.c (close_stdin): Flush stdin before closing.
13347
13348         Work around glibc's failure to reset seekable stdin on exit.
13349         * modules/closein: New module.
13350         * lib/closein.c: New file.
13351         * lib/closein.h: Likewise.
13352         * m4/closein.m4: Likewise.
13353         * MODULES.html.sh (File stream based Input/Output): Document it.
13354
13355 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13356
13357         * gnulib-tool: Rename generated 'autobuild' script to
13358         'do-autobuild' in --create-megatestdir output.
13359
13360         * doc/gnulib.texi (Build robot for gnulib): Fix.
13361
13362 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13363
13364         * modules/sysexits (Depends-on): Add absolute-header.
13365
13366 2007-04-12  Eric Blake  <ebb9@byu.net>
13367
13368         No need to preserve errno on success.
13369         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13370         Reported by Bruno Haible.
13371
13372 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13373
13374         * MODULES.html.sh (Support for maintaining and releasing
13375         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13376
13377 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13378
13379         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13380
13381 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13382
13383         * modules/autobuild: New module.
13384
13385         * m4/autobuild.m4: New file.
13386
13387 2007-04-11  Bruno Haible  <bruno@clisp.org>
13388
13389         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13390         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13391         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13393         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13397         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13398         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13400         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13401         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13403         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13404         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13406         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13407         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13408         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13409         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13410         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13412         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13413         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13414         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13415         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13416         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13417         Reported by Eric Blake.
13418
13419 2007-04-11  Bruno Haible  <bruno@clisp.org>
13420
13421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13422
13423 2007-04-10  Bruno Haible  <bruno@clisp.org>
13424
13425         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13426         for NaN and Infinity. Needed on FreeBSD 6.1.
13427         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13428         regarding results for "%010a" of Infinity and NaN.
13429         * tests/test-vasprintf-posix.c (test_function): Likewise.
13430         * tests/test-snprintf-posix.h (test_function): Likewise.
13431         * tests/test-sprintf-posix.h (test_function): Likewise.
13432         * tests/test-fprintf-posix.h (test_function): Likewise.
13433         * tests/test-printf-posix.h (test_function): Likewise.
13434         * tests/test-fprintf-posix.out: Likewise.
13435
13436 2007-04-10  Bruno Haible  <bruno@clisp.org>
13437
13438         * modules/locale-tests: New file.
13439         * tests/test-locale.c: New file.
13440
13441         * modules/locale: New file.
13442         * lib/locale_.h: New file.
13443         * m4/locale_h.m4: New file.
13444
13445 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13446             Bruno Haible  <bruno@clisp.org>
13447
13448         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13449         be determined, test for availability of the copysignf, copysign,
13450         copysignl functions.
13451         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13452         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13453         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13454
13455 2007-04-09  Eric Blake  <ebb9@byu.net>
13456
13457         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13458         * modules/stdio (Makefile.am): Support fflush.
13459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13460         * modules/fflush: New file.
13461         * lib/fflush.c: Likewise.
13462         * m4/fflush.m4: Likewise.
13463         * modules/fflush-tests: New test.
13464         * tests/test-fflush.c: Likewise.
13465         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13466
13467 2007-04-06  Bruno Haible  <bruno@clisp.org>
13468
13469         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13470         (VASNPRINTF): Use signbit for faster determination whether to print a
13471         minus sign.
13472         * modules/vasnprintf (Files): Remove lib/float+.h.
13473         * modules/fprintf-posix (Depends-on): Add signbit.
13474         * modules/snprintf-posix (Depends-on): Likewise.
13475         * modules/sprintf-posix (Depends-on): Likewise.
13476         * modules/vasnprintf-posix (Depends-on): Likewise.
13477         * modules/vasprintf-posix (Depends-on): Likewise.
13478         * modules/vfprintf-posix (Depends-on): Likewise.
13479         * modules/vsnprintf-posix (Depends-on): Likewise.
13480         * modules/vsprintf-posix (Depends-on): Likewise.
13481
13482 2007-04-06  Bruno Haible  <bruno@clisp.org>
13483
13484         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13485         * tests/test-frexpl.c (main): Likewise.
13486         * tests/test-ldexpl.c (main): Likewise.
13487         * modules/frexp-tests (Depends-on): Add signbit.
13488         * modules/frexpl-tests (Depdends-on): Likewise.
13489         * modules/ldexpl-tests (Depdends-on): Likewise.
13490
13491 2007-04-06  Bruno Haible  <bruno@clisp.org>
13492
13493         * modules/signbit-tests: New file.
13494         * tests/test-signbit.c: New file.
13495
13496         * modules/signbit: New file.
13497         * lib/signbitf.c: New file.
13498         * lib/signbitd.c: New file.
13499         * lib/signbitl.c: New file.
13500         * m4/signbit.m4: New file.
13501         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13502         (signbit): New macro.
13503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13504         REPLACE_SIGNBIT.
13505         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13506         REPLACE_FREXPL into math.h.
13507
13508 2007-04-06  Bruno Haible  <bruno@clisp.org>
13509
13510         * modules/isnanf-nolibm-tests: New file.
13511         * tests/test-isnanf.c: New file.
13512
13513         * modules/isnanf-nolibm: New file.
13514         * lib/isnanf.h: New file.
13515         * lib/isnanf.c: New file.
13516         * lib/isnan.c: Consider the USE_FLOAT macro.
13517         * m4/isnanf.m4: New file.
13518
13519 2007-04-06  Bruno Haible  <bruno@clisp.org>
13520
13521         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13522         (Link): New section.
13523
13524         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13525
13526 2007-04-06  Bruno Haible  <bruno@clisp.org>
13527
13528         Assume the 'long double' type.
13529         * m4/longdouble.m4: Remove file.
13530         * config/srclist.txt: Don't mention longdouble.m4.
13531         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13532         * lib/float+.h: Likewise.
13533         * lib/frexp.c: Likewise.
13534         * lib/printf-args.h: Likewise.
13535         * lib/printf-args.c: Likewise.
13536         * lib/printf-frexp.c: Likewise.
13537         * lib/printf-parse.c: Likewise.
13538         * lib/vasnprintf.c: Likewise.
13539         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13540         * m4/intl.m4: Likewise.
13541         * m4/isnanl.m4: Likewise.
13542         * m4/printf.m4: Likewise.
13543         * m4/printf-frexpl.m4: Likewise.
13544         * m4/vasnprintf.m4: Likewise.
13545         * modules/allocsa (Files): Remove m4/longdouble.m4.
13546         * modules/gettext (Files): Likewise.
13547         * modules/relocatable-prog-wrapper (Files): Likewise.
13548         * modules/vasnprintf (Files): Likewise.
13549         * modules/isnanl (Files): Likewise.
13550         (Include): Simplify.
13551         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13552         (Include): Simplify.
13553         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13554         (Include): Simplify.
13555         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13556         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13557         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13558         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13559         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13560         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13561         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13562         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13563         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13564         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13565         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13566         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13567         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13568         * tests/test-isnanl.c: Likewise.
13569         * tests/test-snprintf-posix.h: Likewise.
13570         * tests/test-sprintf-posix.h: Likewise.
13571         * tests/test-vasnprintf-posix.c: Likewise.
13572         * tests/test-vasnprintf-posix2.c: Likewise.
13573         * tests/test-vasprintf-posix.c: Likewise.
13574
13575 2007-04-06  Bruno Haible  <bruno@clisp.org>
13576
13577         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13578         * lib/math_.h [__DECC]: Include the overridden include file through
13579         #include_next, outside the double-inclusion guard.
13580         * lib/stdio_.h [__DECC]: Likewise.
13581         * lib/stdlib_.h [__DECC]: Likewise.
13582         * lib/string_.h [__DECC]: Likewise.
13583         * lib/time_.h [__DECC]: Likewise.
13584         * lib/wchar_.h [__DECC]: Likewise.
13585         * lib/wctype_.h [__DECC]: Likewise.
13586         * lib/inttypes_.h [__DECC]: Likewise.
13587         Reported by Albert Chin <china@thewrittenword.com> in
13588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13589
13590 2007-04-04  Eric Blake  <ebb9@byu.net>
13591
13592         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13593         1.5.x.
13594
13595 2007-04-04  Bruno Haible  <bruno@clisp.org>
13596
13597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13598         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13599
13600 2007-04-04  Bruno Haible  <bruno@clisp.org>
13601
13602         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13603         results for "%010a" of Infinity and NaN.
13604         * tests/test-vasprintf-posix.c (test_function): Likewise.
13605         * tests/test-snprintf-posix.h (test_function): Likewise.
13606         * tests/test-sprintf-posix.h (test_function): Likewise.
13607         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13608         * tests/test-printf-posix.h (test_function): Likewise.
13609         * tests/test-fprintf-posix.out: Update.
13610         Needed for FreeBSD 6.1.
13611
13612 2007-04-04  Bruno Haible  <bruno@clisp.org>
13613
13614         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13615         directly used by the gnulib modules nor by gnulib-tool.
13616
13617 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13618
13619         * DEPENDENCIES: Give overall description of version dependency
13620         desirability.  Use more-typical names for apps.
13621         Add shell, coreutils, diffutils, grep, tar, gzip.
13622
13623 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13624
13625         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13626
13627 2007-04-04  Karl Berry  <karl@gnu.org>
13628
13629         * MODULES.html.sh (func_module): missing '.
13630
13631 2007-04-03  Bruno Haible  <bruno@clisp.org>
13632
13633         * modules/argmatch-tests (Makefile.am): New variable
13634         test_argmatch_LDADD.
13635         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13636         * modules/array-list-tests (Makefile.am): New variable
13637         test_array_list_LDADD.
13638         * modules/array-oset-tests (Makefile.am): New variable
13639         test_array_oset_LDADD.
13640         * modules/avltree-list-tests (Makefile.am): New variable
13641         test_avltree_list_LDADD.
13642         * modules/avltree-oset-tests (Makefile.am): New variable
13643         test_avltree_oset_LDADD.
13644         * modules/avltreehash-list-tests (Makefile.am): New variable
13645         test_avltreehash_list_LDADD.
13646         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13647         test_canonicalize_lgpl_LDADD.
13648         * modules/carray-list-tests (Makefile.am): New variable
13649         test_carray_list_LDADD.
13650         * modules/dirname-tests (Makefile.am): New variable
13651         test_dirname_LDADD.
13652         * modules/linked-list-tests (Makefile.am): New variable
13653         test_linked_list_LDADD.
13654         * modules/linkedhash-list-tests (Makefile.am): New variable
13655         test_linkedhash_list_LDADD.
13656         * modules/rbtree-list-tests (Makefile.am): New variable
13657         test_rbtree_list_LDADD.
13658         * modules/rbtree-oset-tests (Makefile.am): New variable
13659         test_rbtree_oset_LDADD.
13660         * modules/rbtreehash-list-tests (Makefile.am): New variable
13661         test_rbtreehash_list_LDADD.
13662         * modules/xvasprintf-tests (Makefile.am): New variable
13663         test_xvasprintf_LDADD.
13664         Reported by Eric Blake.
13665
13666 2007-04-03  Eric Blake  <ebb9@byu.net>
13667
13668         * DEPENDENCIES: Weaken m4 requirements.
13669
13670 2007-04-03  Bruno Haible  <bruno@clisp.org>
13671
13672         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13673         * modules/isnanl-tests (configure.ac): Likewise.
13674
13675 2007-04-03  Ben Pfaff  <blp@gnu.org>
13676
13677         * modules/iconv_open: Add $(srcdir)/ to source directory
13678         references in Makefile fragments that call gperf, to fix VPATH
13679         builds.
13680
13681 2007-04-03  Bruno Haible  <bruno@clisp.org>
13682
13683         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13684         * lib/ldexpl.c: Undo last change.
13685
13686 2007-04-03  Bruno Haible  <bruno@clisp.org>
13687
13688         * modules/printf-frexpl (Depends-on): Undo last change.
13689         (Files): Add m4/ldexpl.m4.
13690
13691 2007-04-03  Bruno Haible  <bruno@clisp.org>
13692
13693         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13694         * modules/isnanl (Link): New section.
13695
13696         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13697         * modules/frexp (Link): New section.
13698
13699         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13700         * modules/frexpl (Link): New section.
13701
13702         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13703         * modules/ldexpl (Link): New section.
13704
13705 2007-04-03  Bruno Haible  <bruno@clisp.org>
13706
13707         * modules/TEMPLATE-EXTENDED: New file.
13708         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13709
13710 2007-04-03  Bruno Haible  <bruno@clisp.org>
13711
13712         * DEPENDENCIES: New file.
13713         Suggested by Simon Josefsson.
13714
13715 2007-04-03  Bruno Haible  <bruno@clisp.org>
13716
13717         * doc/gnulib.texi: Escape @.
13718
13719 2007-04-03  James Youngman  <jay@gnu.org>
13720         and Paul Eggert  <eggert@cs.ucla.edu>
13721
13722         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13723         birthtime on all systems that have birthtime, not just those which
13724         use st_birthtimensec rather than st_birthtim.  Putting zero in
13725         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13726         that the birth time is not available for files on an NFS mount.
13727
13728 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13729
13730         * modules/memxor: Move back from crypto/, suggested by Bruno.
13731         * modules/crypto/hmac-sha1: Fix memxor dependency.
13732
13733         * modules/crypto/gc: Moved from ../.
13734
13735 2007-04-02  Eric Blake  <ebb9@byu.net>
13736
13737         * lib/ldexpl.c (includes): Avoid libm.
13738
13739         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13740
13741 2007-04-02  Bruno Haible  <bruno@clisp.org>
13742
13743         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13744         on IRIX.
13745
13746 2007-04-02  Bruno Haible  <bruno@clisp.org>
13747
13748         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13749         x86 or x86_64 platforms running MacOS X.
13750         Reported by Ryan Schmidt <@ryandesign.com>.
13751
13752 2007-04-02  Bruno Haible  <bruno@clisp.org>
13753
13754         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13755         i386.
13756
13757 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13758
13759         * modules/crypto/arcfour: Moved from ../.
13760         * modules/crypto/arcfour-tests: Moved from ../.
13761         * modules/crypto/arctwo: Moved from ../.
13762         * modules/crypto/arctwo-tests: Moved from ../.
13763         * modules/crypto/des: Moved from ../.
13764         * modules/crypto/des-tests: Moved from ../.
13765         * modules/crypto/gc-arcfour: Moved from ../.
13766         * modules/crypto/gc-arcfour-tests: Moved from ../.
13767         * modules/crypto/gc-arctwo: Moved from ../.
13768         * modules/crypto/gc-arctwo-tests: Moved from ../.
13769         * modules/crypto/gc-des: Moved from ../.
13770         * modules/crypto/gc-des-tests: Moved from ../.
13771         * modules/crypto/gc-hmac-md5: Moved from ../.
13772         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13773         * modules/crypto/gc-hmac-sha1: Moved from ../.
13774         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13775         * modules/crypto/gc-md2: Moved from ../.
13776         * modules/crypto/gc-md2-tests: Moved from ../.
13777         * modules/crypto/gc-md4: Moved from ../.
13778         * modules/crypto/gc-md4-tests: Moved from ../.
13779         * modules/crypto/gc-md5: Moved from ../.
13780         * modules/crypto/gc-md5-tests: Moved from ../.
13781         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13782         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13783         * modules/crypto/gc-random: Moved from ../.
13784         * modules/crypto/gc-rijndael: Moved from ../.
13785         * modules/crypto/gc-rijndael-tests: Moved from ../.
13786         * modules/crypto/gc-sha1: Moved from ../.
13787         * modules/crypto/gc-sha1-tests: Moved from ../.
13788         * modules/crypto/gc-tests: Moved from ../.
13789         * modules/crypto/hmac-md5: Moved from ../.
13790         * modules/crypto/hmac-md5-tests: Moved from ../.
13791         * modules/crypto/hmac-sha1: Moved from ../.
13792         * modules/crypto/hmac-sha1-tests: Moved from ../.
13793         * modules/crypto/md2: Moved from ../.
13794         * modules/crypto/md2-tests: Moved from ../.
13795         * modules/crypto/md4: Moved from ../.
13796         * modules/crypto/md4-tests: Moved from ../.
13797         * modules/crypto/md5: Moved from ../.
13798         * modules/crypto/md5-tests: Moved from ../.
13799         * modules/crypto/memxor: Moved from ../.
13800         * modules/crypto/rijndael: Moved from ../.
13801         * modules/crypto/rijndael-tests: Moved from ../.
13802         * modules/crypto/sha1: Moved from ../.
13803
13804 2007-03-30  James Youngman  <jay@gnu.org>
13805
13806         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13807         rename() to change the ctime of a file (because ctime is unaffected
13808         by rename on jfs2 on AIX 5.1).
13809         (main): Start by doing cleanup, in case a previous run failed leaving
13810         test files behind.
13811
13812 2007-03-31  Bruno Haible  <bruno@clisp.org>
13813
13814         Support old proprietary implementations of iconv.
13815         * modules/iconv_open: New file.
13816         * lib/iconv_.h: New file.
13817         * m4/iconv_h.m4: New file.
13818         * lib/iconv_open.c: New file.
13819         * lib/iconv_open-aix.gperf: New file.
13820         * lib/iconv_open-hpux.gperf: New file.
13821         * lib/iconv_open-irix.gperf: New file.
13822         * lib/iconv_open-osf.gperf: New file.
13823         * m4/iconv_open.m4: New file.
13824         * modules/linebreak (Depends-on): Add iconv_open.
13825         * modules/striconv (Depends-on): Likewise.
13826         * modules/striconveh (Depends-on): Likewise.
13827         * modules/unicodeio (Depends-on): Likewise.
13828         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13829         (iconv_t)(-1).
13830         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13831         conversion if cd is (iconv_t)(-1).
13832         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13833         is not possible.
13834
13835 2007-03-31  Bruno Haible  <bruno@clisp.org>
13836
13837         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13838         work on Solaris either. Protect also second use of "autodetect_jp".
13839
13840 2007-03-31  Bruno Haible  <bruno@clisp.org>
13841
13842         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13843         the function is not present.
13844
13845 2007-03-31  Bruno Haible  <bruno@clisp.org>
13846
13847         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13848         the function is not present.
13849
13850 2007-03-31  Bruno Haible  <bruno@clisp.org>
13851
13852         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13853         a bug in HP-UX iconv_open().
13854
13855 2007-03-31  Bruno Haible  <bruno@clisp.org>
13856
13857         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13858         (Mathematics <math.h>): New section, add fpieee.
13859         (Input/output <stdio.h>): Add fseterr.
13860         (Mathematics <math.h>): New section, add printf-frexp.
13861         (Container data structures): Add sublist.
13862         (Core language properties): Add fpucw, inline.
13863         (Functions for greatest-width integer types <inttypes.h>): Add
13864         imaxabs, imaxdiv, inttypes.
13865         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13866         isnanl-nolibm, ldexp.
13867         (Mathematics <math.h>): New section, add printf-frexpl.
13868         (Support for systems lacking POSIX:2001): Add fprintf-posix,
13869         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13870         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13871         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13872         (Unicode string functions): Add unistr/u*-mbtoucr.
13873         (Java): Add javacomp-script, javaexec-script.
13874         (C#): Add csharpcomp-script, csharpexec-script.
13875         (Support for building libraries and executables): Add havelib,
13876         relocatable-*.
13877         (Support for maintaining and releasing projects): Renamed from
13878         'Support for maintaining and release projects'. Add announce-gen.
13879
13880 2007-03-31  Bruno Haible  <bruno@clisp.org>
13881
13882         * README: Talk primarily about git.
13883         (git and CVS): Renamed from CVS.
13884         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13885         gnulib is available through git.
13886         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13887
13888 2007-03-30  Bruno Haible  <bruno@clisp.org>
13889
13890         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13891         * lib/poll_.h: Likewise.
13892         * lib/stat_.h: Likewise.
13893         * lib/sys_time_.h: Likewise.
13894         * lib/sysexit_.h: Likewise.
13895         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13896         * lib/stdbool_.h: Likewise.
13897         * lib/byteswap_.h: Add double-inclusion guard.
13898
13899 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
13900
13901         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13902
13903 2007-03-30  Karl Berry  <karl@gnu.org>
13904
13905         * config/srclist-update: double space after USA in the license
13906         substitution, since that's how it's usually (?) written.
13907
13908 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13909
13910         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13911         reported by Bruno Haible.
13912
13913 2007-03-29  Bruno Haible  <bruno@clisp.org>
13914
13915         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13916         a bug in AIX iconv().
13917
13918 2007-03-29  Bruno Haible  <bruno@clisp.org>
13919
13920         * modules/ldexpl-tests: New file.
13921         * tests/test-ldexpl.c: New file.
13922
13923 2007-03-29  Bruno Haible  <bruno@clisp.org>
13924
13925         * lib/ldexpl.c: Include fpucw.h.
13926         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13927         multiplication.
13928         * modules/ldexpl (Depends-on): Add fpucw.
13929
13930 2007-03-29  Bruno Haible  <bruno@clisp.org>
13931
13932         * modules/ldexpl: New file.
13933         * m4/ldexpl.m4: New file.
13934         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13935         set.
13936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13937         REPLACE_LDEXPL.
13938         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13939         REPLACE_LDEXPL.
13940         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13941         gl_FUNC_LDEXPL_WORKS.
13942         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13943         * modules/mathl (Files): Remove lib/ldexpl.c.
13944         (Depends-on): Add ldexpl.
13945
13946 2007-03-29  Bruno Haible  <bruno@clisp.org>
13947
13948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13949
13950 2007-03-29  Bruno Haible  <bruno@clisp.org>
13951
13952         * tests/test-striconveh.c (main): Don't assume that a direct conversion
13953         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13954         and possibly also HP-UX.
13955         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13956         work on AIX, IRIX, HP-UX, OSF/1.
13957         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13958         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13959         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13960         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13961         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13962         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13963
13964 2007-03-29  Bruno Haible  <bruno@clisp.org>
13965
13966         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13967
13968 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13971         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13972
13973 2007-03-29  Eric Blake  <ebb9@byu.net>
13974
13975         * lib/acl-internal.h: Remove redundant include.
13976         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13977         Cygwin when a file is locked.
13978
13979 2007-03-29  Bruno Haible  <bruno@clisp.org>
13980
13981         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13982         file.
13983         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13984
13985 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13986
13987         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13988         try to remove a parent directory if the child couldn't be removed
13989         (except for the first rmdir, which could fail because the child
13990         doesn't exist).  Problem reported by Jeff Blaine in
13991         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13992
13993 2007-03-28  Bruno Haible  <bruno@clisp.org>
13994
13995         * lib/striconveh.c (utf8conv_carefully): New function.
13996         (mem_cd_iconveh_internal): Invoke it.
13997
13998 2007-03-28  Bruno Haible  <bruno@clisp.org>
13999
14000         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14001         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14002         input.
14003         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14004         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14005         unistr/u8-uctomb.
14006
14007 2007-03-28  Bruno Haible  <bruno@clisp.org>
14008
14009         * modules/unistr/u8-mbtoucr: New file.
14010         * lib/unistr/u8-mbtoucr.c: New file.
14011         * modules/unistr/u16-mbtoucr: New file.
14012         * lib/unistr/u16-mbtoucr.c: New file.
14013         * modules/unistr/u16-mbtoucr: New file.
14014         * lib/unistr/u16-mbtoucr.c: New file.
14015         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14016
14017 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14018             Bruno Haible  <bruno@clisp.org>
14019
14020         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14021         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14022         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14023
14024         * m4/stdio_h.m4: Add stubs for vasprintf too.
14025
14026         * modules/stdio: Support vasprintf in sed command.
14027
14028         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14029         vasprintf.h.  Add stdio module indicator.
14030
14031         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14032         vasprintf.h.
14033
14034         * lib/vasprintf.h: File removed.
14035
14036         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14037         * lib/vasprintf.c: Ditto.
14038         * lib/xvasprintf.c: Ditto.
14039         * tests/test-vasprintf-posix.c: Ditto.
14040         * tests/test-vasprintf.c: Ditto.
14041
14042 2007-03-27  Bruno Haible  <bruno@clisp.org>
14043
14044         Make vasnprintf multithread-safe.
14045         * lib/vasnprintf.c (decimal_point_char): New function.
14046         (VASNPRINTF): Use it.
14047         Suggested by Simon Josefsson.
14048
14049 2007-03-27  Eric Blake  <ebb9@byu.net>
14050
14051         Support sub-second birthtime on cygwin.
14052         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14053         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14054         (get_stat_birthtime): Also work with st_birthtim.
14055
14056 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14059         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14060         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14061         (get_stat_birthtime_ns): Simplify compile-time tests.
14062         (get_stat_birthtime): Change the API to look like
14063         get_stat_mtime etc., except return a negative tv_nsec on error.
14064         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14065         Don't check for "spare" fields.
14066         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14067         or for struct stat.st_birthtime, as these tests aren't used.
14068         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14069
14070 2007-03-27  Bruno Haible  <bruno@clisp.org>
14071
14072         * lib/stat-time.h: Include <sys/stat.h>.
14073
14074 2007-03-27  James Youngman  <jay@gnu.org>
14075
14076         * lib/stat-time.h (get_stat_birthtime): New function for
14077           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14078         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14079           and its variants.
14080         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14081         * modules/stat-time-test: New file.
14082         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14083
14084 2007-03-26  Bruno Haible  <bruno@clisp.org>
14085
14086         Better support of signalling NaNs.
14087         * lib/atanl.c: Include isnanl.h.
14088         (atanl): Perform test for NaN at the beginning of the function and
14089         through a call to isnanl.
14090         * lib/cosl.c: Include isnanl.h.
14091         (cosl): Perform test for NaN at the beginning of the function and
14092         through a call to isnanl.
14093         * lib/ldexpl.c: Include isnanl.h.
14094         (ldexpl): Perform test for NaN through a call to isnanl.
14095         * lib/logl.c: Include isnanl.h.
14096         (logl): Perform test for NaN at the beginning of the function and
14097         through a call to isnanl.
14098         * lib/sinl.c: Include isnanl.h.
14099         (sinl): Perform test for NaN at the beginning of the function and
14100         through a call to isnanl.
14101         * lib/sqrtl.c: Include isnanl.h.
14102         (sqrtl): Perform test for NaN at the beginning of the function and
14103         through a call to isnanl.
14104         * lib/tanl.c: Include isnanl.h.
14105         (tanl): Perform test for NaN at the beginning of the function and
14106         through a call to isnanl.
14107         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14108         * modules/mathl (Depends-on): Add isnanl.
14109
14110 2007-03-26  Eric Blake  <ebb9@byu.net>
14111
14112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14113         regression in logic sense of previous patch.
14114
14115 2007-03-26  Bruno Haible  <bruno@clisp.org>
14116
14117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14118         unportable shell command "if ! ...".
14119         Reported by Ralf Wildenhues.
14120
14121 2007-03-25  Bruno Haible  <bruno@clisp.org>
14122
14123         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14124         <sysexits.h> file, and only add EX_CONFIG.
14125         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14126         absolute file name and whether it is sufficient. Substitute also
14127         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14128         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14129         ABSOLUTE_SYSEXITS_H into sysexits.h.
14130
14131 2007-03-25  Bruno Haible  <bruno@clisp.org>
14132
14133         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14134         hints is NULL.
14135
14136 2007-03-25  Bruno Haible  <bruno@clisp.org>
14137
14138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14139         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14140
14141 2007-03-25  Bruno Haible  <bruno@clisp.org>
14142
14143         * lib/vasnprintf.c: Include langinfo.h.
14144         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14145         multithread-safe.
14146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14155         Reported by Simon Josefsson.
14156
14157 2007-03-25  Bruno Haible  <bruno@clisp.org>
14158
14159         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14160         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14161         * modules/vasnprintf (Depends-on): Add stdint.
14162
14163 2007-03-25  Bruno Haible  <bruno@clisp.org>
14164
14165         * modules/fpieee: New file.
14166         * m4/fpieee.m4: New file.
14167         * modules/isnan-nolibm (Depends-on): Add fpieee.
14168         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14169         * modules/isnanl (Depends-on): Add fpieee.
14170
14171 2007-03-25  Bruno Haible  <bruno@clisp.org>
14172
14173         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14174
14175 2007-03-25  Bruno Haible  <bruno@clisp.org>
14176
14177         Avoid test failures on IRIX 6.5.
14178         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14179         (main): Use it.
14180         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14181         macros.
14182         (main): Use them.
14183
14184 2007-03-25  Bruno Haible  <bruno@clisp.org>
14185
14186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14187         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14188         exists but doesn't work.
14189         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14190         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14192         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14193
14194 2007-03-25  Bruno Haible  <bruno@clisp.org>
14195
14196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14197         returns inf. Needed on IRIX 6.5.
14198
14199 2007-03-25  Bruno Haible  <bruno@clisp.org>
14200
14201         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14202         (main): Use isnanl instead of x != x idiom.
14203         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14204
14205         * tests/test-frexp.c: Include isnan.h.
14206         (main): Use isnan instead of x != x idiom.
14207         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14208
14209 2007-03-25  Bruno Haible  <bruno@clisp.org>
14210
14211         * tests/test-frexp.c (NaN): New function/macro.
14212         (main): Use it instead of 0.0 / 0.0.
14213         * tests/test-isnan.c (NaN): New function/macro.
14214         (main): Use it instead of 0.0 / 0.0.
14215         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14216         (test_function): Use it instead of 0.0 / 0.0.
14217         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14218         (test_function): Use it instead of 0.0 / 0.0.
14219         * tests/test-snprintf-posix.h (NaN): New function/macro.
14220         (test_function): Use it instead of 0.0 / 0.0.
14221         * tests/test-sprintf-posix.h (NaN): New function/macro.
14222         (test_function): Use it instead of 0.0 / 0.0.
14223         * tests/test-fprintf-posix.h (NaN): New function/macro.
14224         (test_function): Use it instead of 0.0 / 0.0.
14225         * tests/test-printf-posix.h (NaN): New function/macro.
14226         (test_function): Use it instead of 0.0 / 0.0.
14227
14228         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14229
14230 2007-03-25  Bruno Haible  <bruno@clisp.org>
14231
14232         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14233
14234 2007-03-25  Bruno Haible  <bruno@clisp.org>
14235
14236         * lib/regexec.c (merge_state_with_log): Make static.
14237
14238 2007-03-25  Bruno Haible  <bruno@clisp.org>
14239
14240         * lib/trigl.c (kernel_rem_pio2): Make static.
14241
14242 2007-03-25  Bruno Haible  <bruno@clisp.org>
14243
14244         * lib/sincosl.c (sincosl_table): Make static.
14245
14246 2007-03-25  Bruno Haible  <bruno@clisp.org>
14247
14248         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14249         if the compiler does not support C99.
14250
14251 2007-03-25  Bruno Haible  <bruno@clisp.org>
14252
14253         * modules/time (Makefile.am): Ensure all rule action lines start with a
14254         tab.
14255
14256 2007-03-24  Bruno Haible  <bruno@clisp.org>
14257
14258         * modules/tsearch-tests: New file.
14259         * tests/test-tsearch.sh: New file.
14260         * tests/test-tsearch.c: New file, mostly copied from glibc.
14261
14262         * modules/search-tests: New file.
14263         * tests/test-search.c: New file.
14264
14265         * modules/search: New file.
14266         * lib/search_.h: New file, incorporating lib/tsearch.h.
14267         * m4/search_h.m4: New file.
14268         * lib/tsearch.h: Remove file.
14269         * lib/tsearch.c: Include search.h instead of tsearch.h.
14270         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14271         HAVE_TSEARCH.
14272         * modules/tsearch (Files): Remove lib/tsearch.h.
14273         (Depends-on): Add search.
14274         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14275         (Include): Change tsearch.h into search.h.
14276
14277 2007-03-24  Bruno Haible  <bruno@clisp.org>
14278
14279         * modules/fpucw: New file.
14280         * lib/fpucw.h: New file.
14281         * lib/frexp.c: Include fpucw.h.
14282         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14283         (FUNC): Use them.
14284         * lib/printf-frexp.c: Include fpucw.h.
14285         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14286         (FUNC): Use them.
14287         * lib/vasnprintf.c: Include fpucw.h.
14288         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14289         'long double' calculations.
14290         * tests/test-frexpl.c: Include fpucw.h.
14291         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14292         * tests/test-printf-frexpl.c: Include fpucw.h.
14293         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14294         * modules/frexpl (Depends-on): Add fpucw.
14295         * modules/printf-frexpl (Depends-on): Likewise.
14296         * modules/fprintf-posix (Depends-on): Likewise.
14297         * modules/snprintf-posix (Depends-on): Likewise.
14298         * modules/sprintf-posix (Depends-on): Likewise.
14299         * modules/vasnprintf-posix (Depends-on): Likewise.
14300         * modules/vasprintf-posix (Depends-on): Likewise.
14301         * modules/vfprintf-posix (Depends-on): Likewise.
14302         * modules/vsnprintf-posix (Depends-on): Likewise.
14303         * modules/vsprintf-posix (Depends-on): Likewise.
14304         * modules/frexpl-tests (Depends-on): Likewise.
14305         * modules/printf-frexpl-tests (Depends-on): Likewise.
14306
14307 2007-03-24  Bruno Haible  <bruno@clisp.org>
14308
14309         * lib/float+.h: New file.
14310         * lib/isnan.c: Include float+.h.
14311         (SIZE): New macro.
14312         (FUNC): Compare only SIZE bytes of the value.
14313         * lib/vasnprintf.c: Include float+.h.
14314         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14315         SIZEOF_LDBL or SIZEOF_DBL bytes.
14316         * modules/isnan-nolibm (Files): Add lib/float+.h.
14317         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14318         * modules/isnanl (Files): Add lib/float+.h.
14319         * modules/vasnprintf (Files): Add lib/float+.h.
14320
14321 2007-03-24  Bruno Haible  <bruno@clisp.org>
14322
14323         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14324         include isnanl-nolibm.h.
14325
14326 2007-03-24  Bruno Haible  <bruno@clisp.org>
14327
14328         * tests/test-read-file.c (main): Don't produce spurious output for
14329         expected situations. Make the test fail if it encountered unexpected
14330         results.
14331
14332 2007-03-24  Bruno Haible  <bruno@clisp.org>
14333
14334         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14335         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14336
14337 2007-03-24  Bruno Haible  <bruno@clisp.org>
14338
14339         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14340
14341 2007-03-24  Bruno Haible  <bruno@clisp.org>
14342
14343         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14344         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14345
14346         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14347         * modules/utf8-ucs4: Turn into a symbolic link to module
14348         unistr/u8-mbtouc.
14349
14350         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14351         utf8-ucs4-unsafe.
14352         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14353         unistr/u8-mbtouc-unsafe.
14354
14355         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14356         * modules/utf16-ucs4: Turn into a symbolic link to module
14357         unistr/u16-mbtouc.
14358
14359         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14360         utf16-ucs4-unsafe.
14361         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14362         unistr/u16-mbtouc-unsafe.
14363
14364         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14365         * modules/ucs4-utf8: Turn into a symbolic link to module
14366         unistr/u8-ubtomb.
14367
14368         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14369         * modules/ucs4-utf16: Turn into a symbolic link to module
14370         unistr/u16-ubtomb.
14371
14372 2007-03-24  Bruno Haible  <bruno@clisp.org>
14373
14374         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14375         Enable the function only if HAVE_INLINE.
14376         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14377         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14378         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14379         Enable the function only if HAVE_INLINE.
14380         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14381         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14382         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14383         Enable the function only if HAVE_INLINE.
14384         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14385         Enable the function only if HAVE_INLINE.
14386         * modules/utf8-ucs4: Update.
14387         * modules/utf8-ucs4-unsafe: Update.
14388         * modules/utf16-ucs4: Update.
14389         * modules/utf16-ucs4-unsafe: Update.
14390         * modules/ucs4-utf8: Update.
14391         * modules/ucs4-utf16: Update.
14392
14393 2007-03-24  Bruno Haible  <bruno@clisp.org>
14394
14395         * lib/utf8-ucs4.h: Remove file.
14396         * lib/utf8-ucs4-unsafe.h: Remove file.
14397         * lib/utf16-ucs4.h: Remove file.
14398         * lib/utf16-ucs4-unsafe.h: Remove file.
14399         * lib/ucs4-utf8.h: Remove file.
14400         * lib/ucs4-utf16.h: Remove file.
14401         * lib/unistr.h: Include their previous contents.
14402         * m4/utf-ucs4.m4: Remove file.
14403         * m4/ucs4-utf.m4: Remove file.
14404         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14405         (Depends-on): Add unistr/base.
14406         (configure.ac): Remove gl_UTF_UCS4.
14407         (Makefile.am): Update.
14408         (Include): Change to unistr.h.
14409         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14410         (Depends-on): Add unistr/base.
14411         (configure.ac): Remove gl_UTF_UCS4.
14412         (Makefile.am): Update.
14413         (Include): Change to unistr.h.
14414         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14415         (Depends-on): Add unistr/base.
14416         (configure.ac): Remove gl_UTF_UCS4.
14417         (Makefile.am): Update.
14418         (Include): Change to unistr.h.
14419         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14420         (Depends-on): Add unistr/base.
14421         (configure.ac): Remove gl_UTF_UCS4.
14422         (Makefile.am): Update.
14423         (Include): Change to unistr.h.
14424         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14425         (Depends-on): Add unistr/base.
14426         (configure.ac): Remove gl_UCS4_UTF.
14427         (Makefile.am): Update.
14428         (Include): Change to unistr.h.
14429         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14430         (Depends-on): Add unistr/base.
14431         (configure.ac): Remove gl_UCS4_UTF.
14432         (Makefile.am): Update.
14433         (Include): Change to unistr.h.
14434         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14435         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14436         utf8-ucs4-unsafe.h.
14437         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14438         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14439         utf16-ucs4-unsafe.h.
14440         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14441         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14442         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14443         * lib/unistr/u8-strchr.c: Likewise.
14444         * lib/unistr/u8-strrchr.c: Likewise.
14445         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14446         * lib/unistr/u16-strchr.c: Likewise.
14447         * lib/unistr/u16-strrchr.c: Likewise.
14448         * lib/striconveh.c: Update.
14449         * lib/linebreak.c: Update.
14450
14451 2007-03-24  Bruno Haible  <bruno@clisp.org>
14452
14453         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14454         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14455
14456 2007-03-22  Bruno Haible  <bruno@clisp.org>
14457
14458         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14459
14460 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         * MODULES.html.sh (File system functions): New module write-any-file.
14463         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14464         * m4/write-any-file.m4: New files.
14465
14466 2007-03-23  Eric Blake  <ebb9@byu.net>
14467
14468         * gnulib-tool: Rearrange space-tab sequences, since some editors
14469         like to eat them.
14470
14471 2007-03-23  Eric Blake  <ebb9@byu.net>
14472
14473         * lib/version-etc.c (version_etc_va): Update license wording to
14474         be more concise.  Recommended by Richard Stallman.
14475
14476 2007-03-22  Bruno Haible  <bruno@clisp.org>
14477
14478         * lib/poll.c (MSG_PEEK): New fallback definition.
14479
14480 2007-03-22  Bruno Haible  <bruno@clisp.org>
14481
14482         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14483         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14484         (main): Update.
14485         Fixes a compilation error on BeOS.
14486
14487 2007-03-22  Bruno Haible  <bruno@clisp.org>
14488
14489         * modules/frexpl-tests: New file.
14490         * tests/test-frexpl.c: New file.
14491
14492         * modules/frexpl: New file.
14493         * m4/frexpl.m4: New file.
14494         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14495         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14497         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14498         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14499         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14500
14501 2007-03-22  Bruno Haible  <bruno@clisp.org>
14502
14503         * lib/frexpl.c: Share code with lib/frexp.c.
14504         * modules/mathl (Files): Add lib/frexp.c.
14505         (Depends-on): Add isnanl-nolibm.
14506
14507 2007-03-22  Bruno Haible  <bruno@clisp.org>
14508
14509         * modules/printf-frexp (Files): Add m4/frexp.m4.
14510         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14511         only if the found frexp function actually works.
14512
14513 2007-03-22  Bruno Haible  <bruno@clisp.org>
14514
14515         * lib/frexp.c: Remove older implementation that uses divisions.
14516
14517 2007-03-21  Bruno Haible  <bruno@clisp.org>
14518
14519         * modules/frexp-tests: New file.
14520         * tests/test-frexp.c: New file.
14521
14522         * modules/frexp: New file.
14523         * lib/frexp.c: New file.
14524         * m4/frexp.m4: New file.
14525         * lib/math_.h (frexp): New declaration.
14526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14527         REPLACE_FREXP.
14528         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14529
14530 2007-03-21  Bruno Haible  <bruno@clisp.org>
14531
14532         * modules/isnanl-tests: New file.
14533         * tests/test-isnanl.c: New file.
14534
14535         * modules/isnanl: New file.
14536         * lib/isnanl.h: New file.
14537         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14538         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14539         gl_FUNC_ISNANL_WORKS.
14540         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14541         New macros.
14542
14543 2007-03-21  Bruno Haible  <bruno@clisp.org>
14544
14545         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14546         lib/isnanl.h.
14547         (Include): Update.
14548         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14549         * lib/vasnprintf.c: Update.
14550         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14551         tests/test-isnanl.h, remove tests/test-isnanl.c.
14552         (Makefile.am): Update.
14553         * tests/test-isnanl-nolibm.c: New file.
14554         * tests/test-isnanl.h: New file.
14555         * tests/test-isnanl.c: Remove file.
14556
14557 2007-03-21  Jim Meyering  <jim@meyering.net>
14558
14559         When trying to open ".", treat ESTALE like EACCES.
14560         * lib/savewd.c (savewd_save): Resort to forking not just upon
14561         failure with EACCES, but also when errno is ESTALE.
14562
14563 2007-03-20  Bruno Haible  <bruno@clisp.org>
14564
14565         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14566         Needed on AIX 5.1. Reported by Matthew Woehlke.
14567
14568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14569
14570         Suggestions by Bruno Haible:
14571         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14572         our own.
14573         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14574         * modules/acl (Depends-on): Add gettext.
14575
14576 2007-03-19  Bruno Haible  <bruno@clisp.org>
14577
14578         * modules/iconvme: Remove file.
14579         * lib/iconvme.h: Remove file.
14580         * lib/iconvme.c: Remove file.
14581         * m4/iconvme.m4: Remove file.
14582
14583 2007-03-19  Bruno Haible  <bruno@clisp.org>
14584
14585         * doc/relocatable-maint.texi: Break long shell script line.
14586         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14587
14588 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14589
14590         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14591         handle file_has_acl.
14592         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14593         * lib/acl.c: Move header inclusions and related macro defns into
14594         lib/acl-internal.h.
14595         (S_ISLNK): Remove defn, since that's now done for us.
14596         (file_has_acl): Move to lib/file-has-acl.c.
14597         Call acl_trivial if available.  This is the crucial part of the fix.
14598         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14599         shared within the library.  Rewrite a bit, partly to make it compatible
14600         with the GNU coding style.
14601         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14602         Remove unnecessary double-quotes.
14603         Don't test for acl_to_text; the build will catch that.
14604         Replace acl_entries if it doesn't exist and it is needed.
14605         Check for -lsec and acl_trivial (as used on Solaris 10).
14606         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14607         lib/file-has-acl.c.
14608         (Depends-on): Add sys_stat, for S_ISLNK.
14609
14610 2007-03-19  Ben Pfaff  <blp@gnu.org>
14611
14612         * doc/gnulib.texi: Fix typos.
14613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14614
14615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14618         If size is zero here, buf must be zero.
14619
14620 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14621
14622         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14623         <bruno@clisp.org>.
14624
14625 2007-03-18  Bruno Haible  <bruno@clisp.org>
14626
14627         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14628         Suggested by Eric Blake.
14629
14630 2007-03-18  Ben Pfaff  <blp@gnu.org>
14631
14632         * doc/relocatable.texi: Recommend using as prefix a directory
14633         that does not exist and will never be created.  Based on
14634         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14635         and others.
14636
14637 2007-03-17  Bruno Haible  <bruno@clisp.org>
14638
14639         * lib/fchownat.c: Include lchown.h.
14640
14641 2007-03-17  Bruno Haible  <bruno@clisp.org>
14642
14643         Fix endless loop when the given allocated size was > INT_MAX.
14644         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14645         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14646         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14647         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14648         * lib/sprintf.c (sprintf): Likewise.
14649
14650 2007-03-17  Bruno Haible  <bruno@clisp.org>
14651
14652         * tests/test-argp-2.sh (func_compare): Output a context diff.
14653
14654 2007-03-17  Bruno Haible  <bruno@clisp.org>
14655
14656         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14657         locale's decimal-point character.
14658
14659 2007-03-17  Bruno Haible  <bruno@clisp.org>
14660
14661         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14662         before comparing it. Needed because on some platforms (e.g. x86) a
14663         'long double' occupies less bytes than sizeof (long double).
14664
14665 2007-03-17  Bruno Haible  <bruno@clisp.org>
14666
14667         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14668         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14669         * tests/test-getaddrinfo.c (simple): Likewise.
14670         * tests/test-read-file.c (main): Likewise.
14671
14672 2007-03-17  Bruno Haible  <bruno@clisp.org>
14673
14674         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14675
14676 2007-03-17  Bruno Haible  <bruno@clisp.org>
14677
14678         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14679         unused variable.
14680
14681 2007-03-17  Bruno Haible  <bruno@clisp.org>
14682
14683         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14684         * tests/test-c-strncasecmp.c: Likewise.
14685
14686 2007-03-17  Bruno Haible  <bruno@clisp.org>
14687
14688         * modules/stdlib (Depends-on): Add unistd.
14689         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14690         Needed for MacOS X 10.3.
14691
14692 2007-03-17  Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14695
14696 2007-03-17  Bruno Haible  <bruno@clisp.org>
14697
14698         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14699
14700 2007-03-17  Bruno Haible  <bruno@clisp.org>
14701
14702         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14703         to reflect files copied from gnulib (with or without modifications).
14704         Suggested by Jim Meyering.
14705
14706 2007-03-17  Eric Blake  <ebb9@byu.net>
14707
14708         * NEWS: Document stdlib change from 2007-02-18.
14709
14710 2007-03-17  Jim Meyering  <jim@meyering.net>
14711
14712         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14713         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14714         someone uses a name containing shell meta-characters.
14715         Reported by Alfred M. Szmidt.
14716
14717         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14718
14719 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14720
14721         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14722         and copy gettext configuration files only if configure.ac contains
14723         a use of AM_GNU_GETTEXT_VERSION.
14724
14725 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14726
14727         * build-aux/bootstrap (gnulib_name): New variable.
14728         (gnulib_tool_options): Use it.
14729
14730 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14731
14732         * tests/test-des.c: Use new namespace.
14733
14734 2007-03-15  Bruno Haible  <bruno@clisp.org>
14735
14736         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14737         Reported by James Youngman <jay@gnu.org>.
14738
14739 2007-03-15  Bruno Haible  <bruno@clisp.org>
14740
14741         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14742         declared prototype. Needed with cc on OSF/1 5.1.
14743
14744 2007-03-15  Bruno Haible  <bruno@clisp.org>
14745
14746         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14747         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14748         (struct gl_list_implementation): Add dispose_fn argument to the
14749         'create_empty', 'create' methods.
14750         (struct gl_list_impl_base): Add field 'dispose_fn'.
14751         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14752         argument.
14753         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14754         dispose_fn argument.
14755         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14756         dispose_fn on the dropped values.
14757         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14758         dispose_fn argument.
14759         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14760         dropped values.
14761         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14762         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14763         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14764         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14765         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14766         argument.
14767         (gl_tree_list_free): Call dispose_fn on the dropped values.
14768         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14769         the dropped values.
14770         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14771         Add dispose_fn argument.
14772         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14773         Call dispose_fn on the dropped values.
14774         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14775         Add dispose_fn argument.
14776         (gl_sublist_create): Initialize the 'dispose_fn' field.
14777         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14778         * tests/test-array_list.c (main): Update.
14779         * tests/test-carray_list.c (main): Update.
14780         * tests/test-avltree_list.c (main): Update.
14781         * tests/test-rbtree_list.c (main): Update.
14782         * tests/test-avltreehash_list.c (main): Update.
14783         * tests/test-rbtreehash_list.c (main): Update.
14784         * tests/test-linked_list.c (main): Update.
14785         * tests/test-linkedhash_list.c (main): Update.
14786         * tests/test-array_oset.c (main): Update.
14787
14788 2007-03-15  Bruno Haible  <bruno@clisp.org>
14789
14790         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14791         (gl_oset_create_empty): Add dispose_fn argument.
14792         (struct gl_oset_implementation): Add dispose_fn argument to
14793         'create_empty' method.
14794         (struct gl_oset_impl_base): Add dispose_fn field.
14795         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14796         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14797         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14798         values.
14799         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14800         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14801         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14802         dropped value.
14803         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14804         dropped value.
14805         * tests/test-array_oset.c (main): Update.
14806         * tests/test-avltree_oset.c (main): Update.
14807         * tests/test-rbtree_oset.c (main): Update.
14808         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14809
14810 2007-03-13  Bruno Haible  <bruno@clisp.org>
14811
14812         * tests/test-stdbool.c (i): Update after last patch.
14813
14814 2007-03-12  Bruno Haible  <bruno@clisp.org>
14815
14816         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14817         the iswprint macro. Needed on Solaris 2.5.1.
14818
14819 2007-03-12  Bruno Haible  <bruno@clisp.org>
14820
14821         * tests/test-printf-frexp.c (main): Declare x as volatile.
14822
14823 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14824
14825         * doc/gnulib.texi (Build robot for gnulib): New section.
14826
14827 2007-03-12  Jim Meyering  <jim@meyering.net>
14828
14829         * build-aux/bootstrap: New file.
14830         * build-aux/bootstrap.conf: New file, from coreutils.
14831
14832 2007-03-11  Bruno Haible  <bruno@clisp.org>
14833
14834         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14835
14836 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14837
14838         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14839         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
14840         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
14841
14842 2007-03-11  Bruno Haible  <bruno@clisp.org>
14843
14844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14845         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14846
14847 2007-03-11  Bruno Haible  <bruno@clisp.org>
14848
14849         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14850         formula. Needed for SunPRO C 5.0.
14851
14852 2007-03-11  Bruno Haible  <bruno@clisp.org>
14853
14854         * modules/long-options (Depends-on): Add getopt.
14855
14856 2007-03-11  Bruno Haible  <bruno@clisp.org>
14857
14858         * modules/modechange (Depends-on): Add stdbool.
14859
14860 2007-03-11  Bruno Haible  <bruno@clisp.org>
14861
14862         * modules/i-ring (Depends-on): Add stdbool.
14863
14864 2007-03-11  Bruno Haible  <bruno@clisp.org>
14865
14866         * modules/gc-des (Depends-on): Add stdbool.
14867
14868 2007-03-11  Bruno Haible  <bruno@clisp.org>
14869
14870         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14871
14872 2007-03-11  Bruno Haible  <bruno@clisp.org>
14873
14874         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14875
14876 2007-03-11  Bruno Haible  <bruno@clisp.org>
14877
14878         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14879
14880 2007-03-11  Bruno Haible  <bruno@clisp.org>
14881
14882         * lib/vasnprintf.c (sprintf): Undefine.
14883
14884 2007-03-11  Bruno Haible  <bruno@clisp.org>
14885
14886         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14887         initializers in SunPRO C and Compaq C compilers.
14888
14889 2007-03-11  Bruno Haible  <bruno@clisp.org>
14890
14891         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14892         decrementing code ANSI C compliant.
14893
14894 2007-03-11  Bruno Haible  <bruno@clisp.org>
14895
14896         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14897         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14898
14899 2007-03-11  Bruno Haible  <bruno@clisp.org>
14900
14901         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14902         <stdbool.h> substitute doesn't pass.
14903
14904 2007-03-11  Bruno Haible  <bruno@clisp.org>
14905
14906         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14907
14908 2007-03-11  Bruno Haible  <bruno@clisp.org>
14909
14910         * gnulib-tool (func_create_megatestdir): Create also an autobuild
14911         script, for submission to autobuild.josefsson.org.
14912
14913 2007-03-10  Bruno Haible  <bruno@clisp.org>
14914
14915         * modules/canonicalize-lgpl-tests: New file.
14916         * tests/test-canonicalize-lgpl.sh: New file.
14917         * tests/test-canonicalize-lgpl.c: New file.
14918
14919         * modules/c-strcase-tests: New file.
14920         * tests/test-c-strcase.sh: New file.
14921         * tests/test-c-strcasecmp.c: New file.
14922         * tests/test-c-strncasecmp.c: New file.
14923
14924         * modules/atexit-tests: New file.
14925         * tests/test-atexit.sh: New file.
14926         * tests/test-atexit.c: New file.
14927
14928 2007-03-10  Bruno Haible  <bruno@clisp.org>
14929
14930         * tests/test-binary-io.sh: Use temporary filenames that are not so
14931         likely to clash with those of other tests (in a parallel make).
14932         * tests/test-binary-io.c: Likewise.
14933
14934 2007-03-10  Bruno Haible  <bruno@clisp.org>
14935
14936         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14937         fallback; use #error instead.
14938         Suggested by Simon Josefsson.
14939
14940 2007-03-10  Bruno Haible  <bruno@clisp.org>
14941
14942         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14943         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14944         first and the last.
14945
14946 2007-03-10  Bruno Haible  <bruno@clisp.org>
14947
14948         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14949
14950 2007-03-10  Bruno Haible  <bruno@clisp.org>
14951
14952         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14953         "make distcheck".
14954         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14955         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14956         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14957
14958 2007-03-10  Bruno Haible  <bruno@clisp.org>
14959
14960         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14961         variable.
14962         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14963         variable.
14964
14965 2007-03-09  Eric Blake  <ebb9@byu.net>
14966         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
14967
14968         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14969         types are not being provided by gnulib.
14970         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14971         types are supported.
14972
14973 2007-03-10  Bruno Haible  <bruno@clisp.org>
14974
14975         * lib/stdio_.h (__attribute__): New macro.
14976         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14977         vsprintf): Specify __attribute__ __format__ for GCC.
14978         Suggested by Eric Blake.
14979
14980 2007-03-09  Bruno Haible  <bruno@clisp.org>
14981
14982         * modules/printf-posix-tests: New file.
14983         * tests/test-printf-posix.sh: New file.
14984         * tests/test-printf-posix.c: New file.
14985
14986         * modules/printf-posix: New file.
14987         * lib/printf.c: New file.
14988         * m4/printf-posix-rpl.m4: New file.
14989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14990         REPLACE_PRINTF.
14991         * lib/stdio_.h (printf): New declaration.
14992         (format, __format__, ____printf____, ____scanf____, ____strftime____,
14993         ____strfmon____): New macros.
14994         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14995         REPLACE_PRINTF.
14996
14997 2007-03-09  Bruno Haible  <bruno@clisp.org>
14998
14999         * tests/test-vasnprintf-posix2.sh: New file.
15000         * tests/test-vasnprintf-posix2.c: New file.
15001         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15002         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15003         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15004
15005         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15006         a locale dependent decimal point, rather than always '.'.
15007
15008 2007-03-09  Eric Blake  <ebb9@byu.net>
15009
15010         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15011         spite of platforms like Tandem/NSK that define it to -1.
15012
15013 2007-03-08  Bruno Haible  <bruno@clisp.org>
15014
15015         * modules/vprintf-posix-tests: New file.
15016         * tests/test-vprintf-posix.sh: New file.
15017         * tests/test-vprintf-posix.c: New file.
15018         * tests/test-printf-posix.h: New file.
15019
15020         * modules/vprintf-posix: New file.
15021         * lib/vprintf.c: New file.
15022         * m4/vprintf-posix.m4: New file.
15023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15024         REPLACE_VPRINTF.
15025         * lib/stdio_.h (vprintf): New declaration.
15026         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15027         REPLACE_VPRINTF.
15028
15029 2007-03-08  Bruno Haible  <bruno@clisp.org>
15030
15031         * modules/fprintf-posix-tests: New file.
15032         * tests/test-fprintf-posix.sh: New file.
15033         * tests/test-fprintf-posix.c: New file.
15034
15035         * modules/fprintf-posix: New file.
15036         * lib/fprintf.c: New file.
15037         * m4/fprintf-posix.m4: New file.
15038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15039         REPLACE_FPRINTF.
15040         * lib/stdio_.h (fprintf): New declaration.
15041         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15042         REPLACE_FPRINTF.
15043
15044 2007-03-08  Bruno Haible  <bruno@clisp.org>
15045
15046         * modules/vfprintf-posix-tests: New file.
15047         * tests/test-vfprintf-posix.sh: New file.
15048         * tests/test-vfprintf-posix.c: New file.
15049         * tests/test-fprintf-posix.h: New file.
15050         * tests/test-fprintf-posix.out: New file.
15051
15052         * modules/vfprintf-posix: New file.
15053         * lib/vfprintf.c: New file.
15054         * m4/vfprintf-posix.m4: New file.
15055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15056         REPLACE_VFPRINTF.
15057         * lib/stdio_.h (vfprintf): New declaration.
15058         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15059         REPLACE_VFPRINTF.
15060
15061 2007-03-08  Bruno Haible  <bruno@clisp.org>
15062
15063         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15064
15065 2007-03-08  Bruno Haible  <bruno@clisp.org>
15066
15067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15068         instead of 'expr' invocations.
15069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15073         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15074         Suggested by Paul Eggert.
15075
15076 2007-03-08  Bruno Haible  <bruno@clisp.org>
15077
15078         * modules/fseterr-tests: New file.
15079         * tests/test-fseterr.c: New file.
15080
15081         * modules/fseterr: New file.
15082         * lib/fseterr.h: New file.
15083         * lib/fseterr.c: New file.
15084
15085 2007-03-08  Bruno Haible  <bruno@clisp.org>
15086
15087         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15088         * lib/getopt_.h: Likewise.
15089         * lib/mbswidth.h: Likewise.
15090         * lib/setenv.h: Likewise.
15091         * lib/vasnprintf.h: Likewise.
15092         * lib/vasprintf.h: Likewise.
15093         * lib/verror.h: Likewise.
15094         * lib/xsetenv.h: Likewise.
15095         * lib/xvasprintf.h: Likewise.
15096
15097 2007-03-08  Jim Meyering  <jim@meyering.net>
15098
15099         * users.txt: Add parted.
15100
15101         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15102
15103 2007-03-07  Bruno Haible  <bruno@clisp.org>
15104
15105         * m4/printf.m4: Make the shell script snippets copy&pastable.
15106
15107 2007-03-02  Bruno Haible  <bruno@clisp.org>
15108
15109         * lib/netinet_in_.h: New file.
15110         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15111         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15112         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15113         (Depends-on): Add absolute-header.
15114         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15115         into netinet/in.h.
15116
15117 2007-03-03  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/sys_select_.h: New file.
15120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15121         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15122         * modules/sys_select (Files): Add lib/sys_select_.h.
15123         (Depends-on): Add absolute-header.
15124         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15125         into sys/select.h.
15126
15127 2007-03-02  Bruno Haible  <bruno@clisp.org>
15128
15129         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15130         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15131         values.
15132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15133         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15134         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15135         * modules/sys_socket (Depends-on): Add absolute-header.
15136         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15137         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15138         (Include): Remove requirement of inclusion of <sys/types.h>.
15139
15140 2007-03-02  Bruno Haible  <bruno@clisp.org>
15141
15142         * lib/byteswap_.h (bswap_32): Fix formula.
15143
15144 2007-03-06  Bruno Haible  <bruno@clisp.org>
15145
15146         * modules/sprintf-posix-tests: New file.
15147         * tests/test-sprintf-posix.c: New file.
15148
15149         * modules/sprintf-posix: New file.
15150         * lib/sprintf.c: New file.
15151         * m4/sprintf-posix.m4: New file.
15152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15153         REPLACE_SPRINTF.
15154         * lib/stdio_.h (sprintf): New declaration.
15155         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15156         REPLACE_SPRINTF.
15157
15158 2007-03-06  Bruno Haible  <bruno@clisp.org>
15159
15160         * modules/vsprintf-posix-tests: New file.
15161         * tests/test-vsprintf-posix.c: New file.
15162         * tests/test-sprintf-posix.h: New file.
15163
15164         * modules/vsprintf-posix: New file.
15165         * lib/vsprintf.c: New file.
15166         * m4/vsprintf-posix.m4: New file.
15167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15168         REPLACE_VSPRINTF.
15169         * lib/stdio_.h (vsprintf): New declaration.
15170         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15171         REPLACE_VSPRINTF.
15172
15173 2007-03-06  Bruno Haible  <bruno@clisp.org>
15174
15175         * modules/vsnprintf (Depend-on): Remove minmax.
15176
15177 2007-03-06  Bruno Haible  <bruno@clisp.org>
15178
15179         * modules/snprintf-posix-tests: New file.
15180         * tests/test-snprintf-posix.c: New file.
15181
15182         * modules/snprintf-posix: New file.
15183         * m4/snprintf-posix.m4: New file.
15184         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15185         gl_FUNC_SNPRINTF.
15186         (gl_FUNC_SNPRINTF): Invoke it.
15187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15188         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15189         is set.
15190         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15191
15192 2007-03-06  Bruno Haible  <bruno@clisp.org>
15193
15194         * modules/vsnprintf-posix-tests: New file.
15195         * tests/test-vsnprintf-posix.c: New file.
15196         * tests/test-snprintf-posix.h: New file.
15197
15198         * modules/vsnprintf-posix: New file.
15199         * m4/vsnprintf-posix.m4: New file.
15200         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15201         gl_FUNC_VSNPRINTF.
15202         (gl_FUNC_VSNPRINTF): Invoke it.
15203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15204         * lib/stdio_.h (vsnprintf): Define as a replacement if
15205         REPLACE_VSNPRINTF is set.
15206         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15207
15208 2007-03-06  Bruno Haible  <bruno@clisp.org>
15209
15210         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15212
15213 2007-03-06  Bruno Haible  <bruno@clisp.org>
15214
15215         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15216         (asinl): Declare also if HAVE_DECL_ASINL is set.
15217         (atanl): Declare also if HAVE_DECL_ATANL is set.
15218         (ceill): Declare also if HAVE_DECL_CEILL is set.
15219         (cosl): Declare also if HAVE_DECL_COSL is set.
15220         (expl): Declare also if HAVE_DECL_EXPL is set.
15221         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15222         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15223         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15224         (logl): Declare also if HAVE_DECL_LOGL is set.
15225         (sinl): Declare also if HAVE_DECL_SINL is set.
15226         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15227         (tanl): Declare also if HAVE_DECL_TANL is set.
15228         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15230         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15231         declaration of frexpl, ldexpl.
15232         * modules/printf-frexpl (Depends-on): Add math.
15233         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15234
15235 2007-03-05  Bruno Haible  <bruno@clisp.org>
15236
15237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15238         frexpl and ldexpl are declared.
15239         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15240
15241 2007-03-05  Bruno Haible  <bruno@clisp.org>
15242
15243         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15244         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15245
15246 2007-03-05  Bruno Haible  <bruno@clisp.org>
15247
15248         * lib/stdio_.h: Include <stddef.h>.
15249
15250 2007-03-05  Bruno Haible  <bruno@clisp.org>
15251
15252         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15253
15254 2007-03-05  Bruno Haible  <bruno@clisp.org>
15255
15256         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15257         NetBSD 4, from Ralf Wildenhues.
15258
15259 2007-03-04  Bruno Haible  <bruno@clisp.org>
15260
15261         * lib/vasprintf.h: Update #if logic for the case when the functions
15262         exist but are overridden.
15263
15264 2007-03-04  Bruno Haible  <bruno@clisp.org>
15265
15266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15267         implementations: glibc-2.4 and MacOS X 10.3.
15268         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15269         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15270         * tests/test-vasprintf-posix.c (test_function): Likewise.
15271
15272 2007-03-04  Bruno Haible  <bruno@clisp.org>
15273
15274         * modules/vasprintf-posix-tests: New file.
15275         * tests/test-vasprintf-posix.c: New file.
15276
15277         * modules/vasprintf-posix: New file.
15278         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15279         defined.
15280         * m4/vasprintf-posix.m4: New file.
15281         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15282         gl_FUNC_VASPRINTF.
15283         (gl_FUNC_VASPRINTF): Invoke it.
15284         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15285         here.
15286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15287
15288 2007-03-04  Bruno Haible  <bruno@clisp.org>
15289
15290         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15291         REPLACE_GETTIMEOFDAY.
15292         * modules/sys_time (Makefile.am): Likewise.
15293         * m4/sys_time_h.m4: Likewise.
15294         * m4/gettimeofday.m4: Likewise.
15295
15296 2007-03-04  Bruno Haible  <bruno@clisp.org>
15297
15298         * modules/vasnprintf-posix-tests: New file.
15299         * tests/test-vasnprintf-posix.c: New file.
15300
15301         * modules/vasnprintf-posix: New file.
15302         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15303         printf-frexpl.h.
15304         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15305         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15306         REPLACE_VASNPRINTF is defined.
15307         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15308         gl_FUNC_VASNPRINTF.
15309         (gl_FUNC_VASNPRINTF): Invoke it.
15310         * m4/vasnprintf-posix.m4: New file.
15311         * m4/printf.m4: New file.
15312
15313 2007-03-04  Bruno Haible  <bruno@clisp.org>
15314
15315         Compile progreloc.c only if --enable-relocatable is specified.
15316         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15317         if --enable-relocatable was specified.
15318         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15319         lib_SOURCES.
15320
15321 2007-03-04  Jim Meyering  <jim@meyering.net>
15322
15323         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15324         Use it consistently, rather than enumerating errno constants.
15325
15326 2007-03-04  Bruno Haible  <bruno@clisp.org>
15327
15328         * modules/xvasprintf-tests: New file.
15329         * tests/test-xvasprintf.c: New file.
15330
15331         * modules/vasprintf-tests: New file.
15332         * tests/test-vasprintf.c: New file.
15333
15334         * modules/vasnprintf-tests: New file.
15335         * tests/test-vasnprintf.c: New file.
15336
15337         * modules/vsnprintf-tests: New file.
15338         * tests/test-vsnprintf.c: New file.
15339
15340         * modules/snprintf-tests: New file.
15341         * tests/test-snprintf.c: New file.
15342
15343 2007-03-04  Bruno Haible  <bruno@clisp.org>
15344
15345         Compile relocatable.c only if --enable-relocatable is specified.
15346         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15347         gl_RELOCATABLE_LIBRARY.
15348         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15349         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15350         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15351         gl_RELOCATABLE_LIBRARY.
15352         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15353         (Makefile.am): Remove lib_SOURCES.
15354         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15355         gl_RELOCATABLE_LIBRARY.
15356         (Makefile.am): Remove lib_SOURCES.
15357         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15358         always.
15359         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15360         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15361
15362 2007-03-04  Bruno Haible  <bruno@clisp.org>
15363
15364         * modules/argmatch-tests: New file.
15365         * tests/test-argmatch.c: New file.
15366
15367         * tests/test-allocsa.c (main): Halve the number of loop runs.
15368
15369         * modules/alloca-opt-tests: New file.
15370         * tests/test-alloca-opt.c: New file.
15371
15372 2007-03-04  Jim Meyering  <jim@meyering.net>
15373
15374         Work around difference between Linux ACLs and Solaris 10 ZFS.
15375         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15376         for EINVAL.
15377
15378 2007-03-03  Bruno Haible  <bruno@clisp.org>
15379
15380         * modules/relocatable-prog (Depends-on): Add back progreloc's
15381         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15382
15383 2007-03-03  Bruno Haible  <bruno@clisp.org>
15384
15385         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15386         * modules/relocatable-lib: New file.
15387
15388 2007-03-03  Bruno Haible  <bruno@clisp.org>
15389
15390         * modules/relocatable-prog: Renamed from modules/relocatable.
15391         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15392
15393 2007-03-03  Bruno Haible  <bruno@clisp.org>
15394
15395         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15396         m4/relocatable-lib.m4.
15397         (Depends-on): Remove 'relocatable'.
15398         (configure.ac): Add gl_RELOCATABLE_NOP.
15399
15400 2007-03-03  Bruno Haible  <bruno@clisp.org>
15401
15402         * modules/relocatable-prog-wrapper: New file.
15403         * modules/relocatable (Depends-on): Add it. Remove all other
15404         dependencies except progname.
15405         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15406
15407         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15408         (gl_FUNC_STRERROR): Nop.
15409         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15410
15411         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15412         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15413
15414         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15415         (gl_FUNC_READLINK): Update.
15416
15417         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15418
15419 2007-03-03  Bruno Haible  <bruno@clisp.org>
15420
15421         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15422         * modules/xreadlink (Depends-on): Add unistd.
15423         * modules/xreadlink-with-size (Depends-on): Likewise.
15424
15425 2007-03-03  Bruno Haible  <bruno@clisp.org>
15426
15427         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15428         extracted from gt_FUNC_SETENV.
15429         (gt_FUNC_SETENV): Remove macro.
15430         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15431         remove gt_FUNC_SETENV.
15432
15433 2007-03-03  Bruno Haible  <bruno@clisp.org>
15434
15435         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15436         ENABLE_RELOCATABLE here.
15437         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15438
15439 2007-03-03  Bruno Haible  <bruno@clisp.org>
15440
15441         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15442         * tests/test-rbtreehash_list.c: Include progname.h.
15443         (main): Call set_program_name.
15444
15445         * modules/rbtree-oset-tests (Depends-on): Add progname.
15446         * tests/test-rbtree_oset.c: Include progname.h.
15447         (main): Call set_program_name.
15448
15449         * modules/rbtree-list-tests (Depends-on): Add progname.
15450         * tests/test-rbtree_list.c: Include progname.h.
15451         (main): Call set_program_name.
15452
15453         * modules/linked-list-tests (Depends-on): Add progname.
15454         * tests/test-linked_list.c: Include progname.h.
15455         (main): Call set_program_name.
15456
15457 2007-03-03  Bruno Haible  <bruno@clisp.org>
15458
15459         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15460         All uses of __restrict changed to _Restrict_.
15461         * lib/glob_.h (__restrict): Remove macro.
15462
15463 2007-03-02  Bruno Haible  <bruno@clisp.org>
15464
15465         * modules/gettext (configure.ac): Require gettext infrastructure
15466         from version 0.16.1.
15467
15468 2007-03-02  Bruno Haible  <bruno@clisp.org>
15469
15470         * modules/linkedhash-list-tests (Depends-on): Add progname.
15471         * tests/test-linkedhash_list.c: Include progname.h.
15472         (main): Call set_program_name.
15473
15474         * modules/carray-list-tests (Depends-on): Add progname.
15475         * tests/test-carray_list.c: Include progname.h.
15476         (main): Call set_program_name.
15477
15478         * modules/avltreehash-list-tests (Depends-on): Add progname.
15479         * tests/test-avltreehash_list.c: Include progname.h.
15480         (main): Call set_program_name.
15481
15482         * modules/avltree-oset-tests (Depends-on): Add progname.
15483         * tests/test-avltree_oset.c: Include progname.h.
15484         (main): Call set_program_name.
15485
15486         * modules/avltree-list-tests (Depends-on): Add progname.
15487         * tests/test-avltree_list.c: Include progname.h.
15488         (main): Call set_program_name.
15489
15490         * modules/array-oset-tests (Depends-on): Add progname.
15491         * tests/test-array_oset.c: Include progname.h.
15492         (main): Call set_program_name.
15493
15494         * modules/array-list-tests (Depends-on): Add progname.
15495         * tests/test-array_list.c: Include progname.h.
15496         (main): Call set_program_name.
15497
15498         * modules/argp-tests (Depends-on): Add progname.
15499         * tests/test-argp.c: Include argp.h first. Include progname.h.
15500         (main): Call set_program_name.
15501
15502 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15503
15504         * doc/gnulib-tool.texi (Initial import): Reword description of
15505         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15506         limited effect even if defined after the first system include.
15507
15508 2007-03-01  Bruno Haible  <bruno@clisp.org>
15509
15510         * build-aux/config.libpath: Update to libtool-1.5.22.
15511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15512
15513 2007-03-01  Bruno Haible  <bruno@clisp.org>
15514
15515         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15516         foo_CFLAGS.
15517         Reported by Ralf Wildenhues.
15518
15519 2007-03-01  Bruno Haible  <bruno@clisp.org>
15520
15521         * build-aux/install-reloc: Remove object files left over by some
15522         compilers.
15523         Reported by Ralf Wildenhues.
15524
15525 2007-03-01  Bruno Haible  <bruno@clisp.org>
15526
15527         * build-aux/install-reloc: Break long lines.
15528
15529 2007-03-01  Bruno Haible  <bruno@clisp.org>
15530
15531         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15532         Reported by Ralf Wildenhues.
15533
15534 2007-03-01  Bruno Haible  <bruno@clisp.org>
15535
15536         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15537         include ordering constraints.
15538
15539 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15540
15541         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15543         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15544         as another example.
15545         * lib/time_.h: Fix misspelling.
15546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15547         Require gl_HEADER_TIME_H_DEFAULTS.
15548         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15549         * m4/time_r.m4 (gl_TIME_R): Likewise.
15550         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15551
15552 2007-03-01  Bruno Haible  <bruno@clisp.org>
15553
15554         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15555         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15556
15557 2007-03-01  Jim Meyering  <jim@meyering.net>
15558
15559         * modules/xreadlink (Maintainer): Add my name.
15560         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15561
15562 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15563             Bruno Haible  <bruno@clisp.org>
15564
15565         * build-aux/install-reloc: Compile also c-ctype.c.
15566         * build-aux/relocatable.sh.in: New file.
15567         * doc/relocatable.texi: New file.
15568         * doc/relocatable-maint.texi: New file.
15569         * doc/gnulib.texi: Include relocatable-maint.texi.
15570         * lib/progreloc.c: Include unistd.h unconditionally.
15571         * lib/relocwrapper.c: Include unistd.h unconditionally.
15572         Include c-ctype.h.
15573         (add_dotbin): Use c_tolower.
15574         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15575         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15576         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15577         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15578         to m4/relocatable-lib.m4.
15579         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15580         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15581         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15582         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15583         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15584         * modules/relocatable: New file.
15585         * modules/relocatable-lib: New file.
15586         * modules/relocatable-script: New file.
15587
15588 2007-02-28  Bruno Haible  <bruno@clisp.org>
15589
15590         Import --enable-relocatable infrastructure.
15591         * build-aux/config.libpath: New file, from GNU gettext.
15592         * build-aux/install-reloc: New file, from GNU gettext.
15593         * build-aux/reloc-ldflags: New file, from GNU gettext.
15594         * lib/relocatable.h: New file, from GNU gettext.
15595         * lib/relocatable.c: New file, from GNU gettext.
15596         * lib/relocwrapper.c: New file, from GNU gettext.
15597         * m4/relocatable.m4: New file, from GNU gettext.
15598
15599 2007-02-28  Bruno Haible  <bruno@clisp.org>
15600
15601         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15602
15603         * modules/xreadlink: New file, from GNU gettext with modifications.
15604         * lib/xreadlink.c: New file, from GNU gettext.
15605         * lib/xreadlink.h: Add comments.
15606         (xreadlink): New declaration.
15607
15608         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15609         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15610         lib/xreadlink-with-size.c.
15611         (configure.ac): Remove gl_XREADLINK invocation.
15612         (Makefile.am): Augment lib_SOURCES.
15613         * m4/xreadlink.m4: Remove file.
15614         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15615         (xreadlink_with_size): Renamed from xreadink.
15616         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15617         * modules/canonicalize (Depends-on): Replace xreadlink with
15618         xreadlink-with-size.
15619         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15620
15621 2007-02-25  Jim Meyering  <jim@meyering.net>
15622
15623         * build-aux/announce-gen: When complaining about excess arguments,
15624         list them.
15625
15626 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15627
15628         * README: Document signed integer overflow situation more
15629         accurately.
15630
15631 2007-02-25  Bruno Haible  <bruno@clisp.org>
15632
15633         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15634         'a' or 'A' conversion.
15635
15636 2007-02-25  Bruno Haible  <bruno@clisp.org>
15637
15638         * modules/filename: Renamed from modules/pathname.
15639         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15640         lib/concatpath.c with lib/concat-filename.c.
15641         (Makefile.am): Update.
15642         (Include): Replace pathname.h with filename.h.
15643         * lib/filename.h: Renamed from lib/pathname.h.
15644         (concatenated_filename): Renamed from concatenated_pathname.
15645         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15646         (concatenated_filename): Renamed from concatenated_pathname.
15647         * lib/findprog.c: Include filename.h instead of pathname.h.
15648         (find_in_path): Update.
15649         * lib/javacomp.c: Include filename.h instead of pathname.h.
15650         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15651         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15652         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15653         is_oldgcj_14_13_usable, is_javac_usable): Update.
15654         * lib/javaexec.c: Include filename.h instead of pathname.h.
15655         (execute_java_class): Update.
15656         * modules/findprog: Update.
15657         * modules/javacomp: Update.
15658         * modules/javaexec: Update.
15659         * MODULES.html.sh (File system functions): Add 'filename', remove
15660         'pathname'.
15661
15662 2007-02-25  Bruno Haible  <bruno@clisp.org>
15663
15664         * modules/printf-frexpl-tests: New file.
15665         * tests/test-printf-frexpl.c: New file.
15666
15667         * modules/printf-frexpl: New file.
15668         * lib/printf-frexpl.h: New file.
15669         * lib/printf-frexpl.c: New file.
15670         * m4/printf-frexpl.m4: New file.
15671
15672 2007-02-25  Bruno Haible  <bruno@clisp.org>
15673
15674         * modules/printf-frexp-tests: New file.
15675         * tests/test-printf-frexp.c: New file.
15676
15677         * modules/printf-frexp: New file.
15678         * lib/printf-frexp.h: New file.
15679         * lib/printf-frexp.c: New file.
15680         * m4/printf-frexp.m4: New file.
15681
15682 2007-02-25  Bruno Haible  <bruno@clisp.org>
15683
15684         Assume automake >= 1.10 for the tests.
15685         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15686         * modules/arctwo-tests: Likewise.
15687         * modules/argp-tests: Likewise.
15688         * modules/avltree-list-tests: Likewise.
15689         * modules/avltree-oset-tests: Likewise.
15690         * modules/avltreehash-list-tests: Likewise.
15691         * modules/carray-list-tests: Likewise.
15692         * modules/crc-tests: Likewise.
15693         * modules/des-tests: Likewise.
15694         * modules/gc-arcfour-tests: Likewise.
15695         * modules/gc-arctwo-tests: Likewise.
15696         * modules/gc-des-tests: Likewise.
15697         * modules/gc-hmac-md5-tests: Likewise.
15698         * modules/gc-hmac-sha1-tests: Likewise.
15699         * modules/gc-md2-tests: Likewise.
15700         * modules/gc-md4-tests: Likewise.
15701         * modules/gc-md5-tests: Likewise.
15702         * modules/gc-pbkdf2-sha1-tests: Likewise.
15703         * modules/gc-rijndael-tests: Likewise.
15704         * modules/gc-sha1-tests: Likewise.
15705         * modules/gc-tests: Likewise.
15706         * modules/getaddrinfo-tests: Likewise.
15707         * modules/hmac-md5-tests: Likewise.
15708         * modules/hmac-sha1-tests: Likewise.
15709         * modules/linked-list-tests: Likewise.
15710         * modules/linkedhash-list-tests: Likewise.
15711         * modules/lock-tests: Likewise.
15712         * modules/md2-tests: Likewise.
15713         * modules/md4-tests: Likewise.
15714         * modules/md5-tests: Likewise.
15715         * modules/rbtree-list-tests: Likewise.
15716         * modules/rbtree-oset-tests: Likewise.
15717         * modules/rbtreehash-list-tests: Likewise.
15718         * modules/read-file-tests: Likewise.
15719         * modules/rijndael-tests: Likewise.
15720         * modules/stdint-tests: Likewise.
15721         * modules/tls-tests: Likewise.
15722
15723 2007-02-24  Bruno Haible  <bruno@clisp.org>
15724
15725         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15726         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15727         function; instead check whether isnan with a double argument links.
15728         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15729         function; instead check whether isnan with a 'long double' argument
15730         links.
15731         Reported by Eric Blake <ebb9@byu.net>.
15732
15733 2007-02-24  Bruno Haible  <bruno@clisp.org>
15734
15735         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15736         defined.
15737         * lib/isnanl.c: Remove all code. Just include isnan.c.
15738         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15739
15740 2007-02-25  Jim Meyering  <jim@meyering.net>
15741
15742         Avoid conflicting types for 'unsetenv' on FreeBSD.
15743         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15744         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15745         in stdlib.h.
15746
15747 2007-02-24  Bruno Haible  <bruno@clisp.org>
15748
15749         * modules/isnanl-nolibm-tests: New file.
15750         * tests/test-isnanl.c: New file.
15751
15752         * modules/isnanl-nolibm: New file.
15753         * lib/isnanl.h: New file.
15754         * lib/isnanl.c: New file.
15755         * m4/isnanl.m4: New file.
15756
15757 2007-02-24  Bruno Haible  <bruno@clisp.org>
15758
15759         * modules/isnan-nolibm-tests: New file.
15760         * tests/test-isnan.c: New file.
15761
15762         * modules/isnan-nolibm: New file.
15763         * lib/isnan.h: New file.
15764         * lib/isnan.c: New file.
15765         * m4/isnan.m4: New file.
15766
15767 2007-02-24  Bruno Haible  <bruno@clisp.org>
15768
15769         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15770         assume that an exponent fits in 20 bits.
15771
15772 2007-02-24  Jim Meyering  <jim@meyering.net>
15773
15774         * m4/regex.m4: Update the description of the configure-time option,
15775         --without-included-regex, to state accurately what the defaults are,
15776         and perhaps to give people an idea why using this option is risky.
15777
15778 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15781         loops on small arguments.  This attempts to avoid the problem
15782         Bruno Haible reported for AIX 4.3.2 in
15783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15784
15785 2007-02-23  Bruno Haible  <bruno@clisp.org>
15786
15787         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15788         Needed for help2man.
15789
15790 2007-02-23  Karl Berry  <karl@gnu.org>
15791
15792         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15793         exists, foo.h should be cvs-ignored, not committed.
15794
15795 2007-02-23  Eric Blake  <ebb9@byu.net>
15796
15797         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15798         * lib/stat-time.h (includes): Likewise.
15799         * lib/utimecmp.c (includes): Likewise.
15800         * lib/utimens.h (includes): Likewise.
15801         * lib/getdate.y (includes): Also include "timespec.h" for use
15802         internal to the module.
15803         * modules/utimens (Depends-on): Revert yesterday's patch.
15804         * modules/nanosleep (Depends-on): Add missing dependency.
15805
15806 2007-02-22  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/glob.c: Don't include getlogin_r.h.
15809
15810 2007-02-22  Jim Meyering  <jim@meyering.net>
15811
15812         * modules/utimens (Depends-on): Add timespec, required for
15813         utimens.h's inclusion of timespec.h.
15814
15815 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15816
15817         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15818         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15819         Schwab in
15820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15821         I'll try to think of a better way to fix the Solaris problem.
15822
15823         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15824         like glibc; on Solaris 10, it fails with errno == EINVAL.
15825         POSIX says the behavior is unspecified if the first argument is NULL,
15826         so play it safe and never pass NULL to the system getcwd.
15827
15828 2007-02-21  Jim Meyering  <jim@meyering.net>
15829
15830         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15831         of gettimeofday.  It would conflict with the one now always
15832         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15833         an IRIX 6.5 build failure.
15834
15835 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         Minor fixups to port to Solaris 10 with Sun C 5.8.
15838         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15839         * modules/getcwd (Depends-on): Add dirfd.
15840         * lib/putenv.c (putenv): #undef it.
15841         (rpl_putenv): New decl.
15842         (malloc, free): Include <stdlib.h> rather than prototyping separately.
15843
15844 2007-02-20  Bruno Haible  <bruno@clisp.org>
15845
15846         * modules/stdio-tests: New file.
15847         * tests/test-stdio.c: New file.
15848
15849         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15850         (Depends-on): Add stdio.
15851         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15852         (Include): Use <stdio.h> instead of vsnprintf.h.
15853         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15854         HAVE_DECL_VSNPRINTF.
15855         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15856
15857         * modules/snprintf (Files): Remove lib/snprintf.h.
15858         (Depends-on): Add stdio.
15859         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15860         (Include): Use <stdio.h> instead of snprintf.h.
15861         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15862         HAVE_DECL_SNPRINTF.
15863         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15864         * lib/getaddrinfo.c: Likewise.
15865
15866         * modules/stdio: New file.
15867         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15868         * lib/snprintf.h: Remove file.
15869         * lib/vsnprintf.h: Remove file.
15870         * lib/.cppi-disable: Remove snprintf.h.
15871         * m4/stdio_h.m4: New file.
15872         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15873
15874 2007-02-20  Jim Meyering  <jim@meyering.net>
15875
15876         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15877         used by e.g., mingw.  From Bruno Haible.
15878
15879 2007-02-19  Bruno Haible  <bruno@clisp.org>
15880
15881         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15882         warnings.
15883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15884
15885 2007-02-19  Bruno Haible  <bruno@clisp.org>
15886
15887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15888         from mingw users.
15889
15890 2007-02-19  Bruno Haible  <bruno@clisp.org>
15891
15892         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15893         warnings.
15894         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15895
15896 2007-02-19  Jim Meyering  <jim@meyering.net>
15897
15898         Don't use FD after a successful "fdopendir (fd)".
15899         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15900         Reset it by calling dirfd on the just-obtained DIR*.
15901
15902         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15903         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15904
15905 2007-02-18  Bruno Haible  <bruno@clisp.org>
15906
15907         * lib/readlink.c: Include <unistd.h>.
15908         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15909         HAVE_READLINK.
15910         * modules/readlink (Depends-on): Add unistd.
15911         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15912         (Include): Add <unistd.h>.
15913
15914         * lib/getlogin_r.h: Remove file.
15915         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15916         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15917         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15918         HAVE_DECL_GETLOGIN_R.
15919         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15920         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15921         (Include): Use <unistd.h> instead of getlogin_r.h.
15922
15923         * lib/getcwd.h: Remove file.
15924         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15925         * lib/xgetcwd.c: Likewise.
15926         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15927         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15928         * modules/getcwd (Files): Remove lib/getcwd.h.
15929         (Depends-on): Add unistd.
15930         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15931         (Include): Use <unistd.h> instad of getcwd.h.
15932
15933         * lib/ftruncate.c: Include <unistd.h> first.
15934         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15935         Set HAVE_FTRUNCATE.
15936         * modules/ftruncate (Depends-on): Add unistd.
15937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15938
15939         * lib/fchdir.c: Include <unistd.h> first.
15940         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15942         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15943         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15944         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15945
15946         * lib/dup2.c: Include <unistd.h> first.
15947         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15948         HAVE_DUP2.
15949         * modules/dup2 (Depends-on): Add unistd.
15950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15951
15952         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15953         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15954         REPLACE_CHOWN. Don't define chown as a macro here.
15955         * modules/chown (Depends-on): Add unistd.
15956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15957
15958         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15959         Add definition for GL_LINK_WARNING.
15960         (chown, dup2): New declarations.
15961         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15962         link warning.
15963         (ftruncate): New declaration.
15964         (getcwd): New declaration, taken from old getcwd.h.
15965         (getlogin_r): New declaration, taken from old getlogin_r.h.
15966         (readlink): New declaration.
15967         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15968         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15969         (gl_PREREQ_UNISTD): Remove macro.
15970         (gl_UNISTD_MODULE_INDICATOR): New macro.
15971         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15972         many new variables. Don't set UNISTD_H.
15973         * modules/unistd (Description): Change.
15974         (Depends-on): Add link-warning.
15975         (configure.ac): Update.
15976         (Makefile.am): Create unistd.h always. Substitute many new variables
15977         into it.
15978
15979 2007-02-18  Bruno Haible  <bruno@clisp.org>
15980
15981         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15982         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15983         HAVE_GETSUBOPT.
15984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15985         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15986         * lib/getsubopt.h: Remove file.
15987         * modules/getsubopt (Files): Remove lib/getsubopt.h.
15988         (Depends-on): Add stdlib.
15989         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15990         (Includes): Use <stdlib.h> instead of getsubopt.h.
15991         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15992         Set HAVE_GETSUBOPT.
15993         * lib/getsubopt.c: Don't include getsubopt.h.
15994
15995 2007-02-18  Bruno Haible  <bruno@clisp.org>
15996
15997         * modules/fchdir (Depends-on): Add dup2.
15998
15999 2007-02-18  Bruno Haible  <bruno@clisp.org>
16000
16001         * lib/stdlib_.h: Handle glibc's special invocation convention
16002         specially.
16003
16004 2007-02-18  Bruno Haible  <bruno@clisp.org>
16005
16006         * modules/stdlib-tests: New file.
16007         * tests/test-stdlib.c: New file.
16008
16009         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16010         (Depends-on): Add stdlib.
16011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16012         (Includes): Use <stdlib.h> instead of mkstemp.h.
16013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16014         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16015         * lib/mkstemp.c: Don't include mkstemp.h.
16016         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16017         * lib/stdlib--.h: Don't include mkstemp.h.
16018
16019         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16020         (Depends-on): Add stdlib.
16021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16022         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16023         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16024         HAVE_MKDTEMP.
16025         * lib/mkdtemp.c: Don't include mkdtemp.h.
16026         * lib/clean-temp.c: Don't include mkdtemp.h.
16027
16028         * modules/exit (Files): Remove lib/exit.h.
16029         (Depends-on): Add stdlib.
16030         (Makefile.am): Remove lib_SOURCES.
16031         (Include): Use <stdlib.h> instead of exit.h.
16032         * lib/argmatch.c: Don't include exit.h.
16033         * lib/execute.c: Likewise.
16034         * lib/pagealign_alloc.c: Likewise.
16035         * lib/pipe.c: Likewise.
16036         * lib/wait-process.c: Likewise.
16037         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16038         * lib/exitfail.c: Likewise.
16039         * lib/savewd.c: Likewise.
16040         * lib/xsetenv.c: Likewise.
16041
16042         * modules/stdlib: New file.
16043         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16044         and extra comments about mkstemp().
16045         * lib/exit.h: Remove file.
16046         * lib/mkdtemp.h: Remove file.
16047         * lib/mkstemp.h: Remove file.
16048         * m4/stdlib_h.m4: New file.
16049         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16050
16051 2007-02-18  Bruno Haible  <bruno@clisp.org>
16052
16053         * modules/math-tests: New file.
16054         * tests/test-math.c: New file.
16055
16056         * modules/math: New file.
16057         * modules/mathl (Files): Remove lib/mathl.h.
16058         (Depends-on): Add math.
16059         (Makefile.am): Don't mention mathl.h.
16060         (Include): Use <math.h> instead of mathl.h.
16061         * lib/math_.h: New file.
16062         * lib/mathl.h: Remove file.
16063         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16064         mathl.h.
16065         * lib/asinl.c: Likewise.
16066         * lib/atanl.c: Likewise.
16067         * lib/ceill.c: Likewise.
16068         * lib/cosl.c: Likewise.
16069         * lib/expl.c: Likewise.
16070         * lib/floorl.c: Likewise.
16071         * lib/frexpl.c: Likewise.
16072         * lib/ldexpl.c: Likewise.
16073         * lib/logl.c: Likewise.
16074         * lib/sincosl.c: Likewise.
16075         * lib/sinl.c: Likewise.
16076         * lib/sqrtl.c: Likewise.
16077         * lib/tanl.c: Likewise.
16078         * lib/trigl.c: Likewise.
16079         * m4/math_h.m4: New file.
16080         * MODULES.html.sh (Mathematics): Add math.
16081
16082 2007-02-17  Bruno Haible  <bruno@clisp.org>
16083
16084         * modules/wctype-tests: New file.
16085         * tests/test-wctype.c: New file.
16086
16087         * modules/wchar-tests: New file.
16088         * tests/test-wchar.c: New file.
16089
16090         * modules/unistd-tests: New file.
16091         * tests/test-unistd.c: New file.
16092
16093         * modules/time-tests: New file.
16094         * tests/test-time.c: New file.
16095
16096         * modules/sysexits-tests: New file.
16097         * tests/test-sysexits.c: New file.
16098
16099         * modules/sys_time-tests: New file.
16100         * tests/test-sys_time.c: New file.
16101
16102         * modules/sys_stat-tests: New file.
16103         * tests/test-sys_stat.c: New file.
16104
16105         * modules/sys_socket-tests: New file.
16106         * tests/test-sys_socket.c: New file.
16107
16108         * modules/sys_select-tests: New file.
16109         * tests/test-sys_select.c: New file.
16110
16111         * modules/string-tests: New file.
16112         * tests/test-string.c: New file.
16113
16114         * modules/stdbool-tests: New file.
16115         * tests/test-stdbool.c: New file.
16116
16117         * modules/netinet_in-tests: New file.
16118         * tests/test-netinet_in.c: New file.
16119
16120         * modules/inttypes-tests: New file.
16121         * tests/test-inttypes.c: New file.
16122
16123         * modules/fcntl-tests: New file.
16124         * tests/test-fcntl.c: New file.
16125
16126         * modules/byteswap-tests: New file.
16127         * tests/test-byteswap.c: New file.
16128
16129         * modules/arpa_inet-tests: New file.
16130         * tests/test-arpa_inet.c: New file.
16131
16132 2007-02-17  Bruno Haible  <bruno@clisp.org>
16133
16134         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16135         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16136         if the corresponding module is not enabled. Emit link warnings if
16137         the function is used nevertheless.
16138         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16139         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16140         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16141         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16142         * modules/inttypes (Depends-on): Add link-warning.
16143         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16144         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16145         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16146         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16147         * modules/imaxdiv (configure.ac): Likewise.
16148         * modules/strtoimax (configure.ac): Likewise.
16149         * modules/strtoumax (configure.ac): Likewise.
16150
16151 2007-02-17  Bruno Haible  <bruno@clisp.org>
16152
16153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16154         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16155         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16156         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16157
16158 2007-02-17  Bruno Haible  <bruno@clisp.org>
16159
16160         * modules/link-warning: New file.
16161         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16162         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16163         * modules/string (Depends-on): Add link-warning.
16164         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16165         string.h.
16166         * MODULES.html.sh (Support for building libraries and executables): Add
16167         link-warning.
16168
16169 2007-02-17  Bruno Haible  <bruno@clisp.org>
16170
16171         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16172         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16173         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16174         long lines.
16175
16176 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16177             Bruno Haible  <bruno@clisp.org>
16178
16179         * modules/tmpfile: New file.
16180         * lib/tmpfile.c: New file.
16181         * m4/tmpfile.m4: New file.
16182         * MODULES.html.sh (func_all_modules): New section "Input/output".
16183
16184 2007-02-15  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16187         (supports_delete_on_close): New function.
16188         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16189
16190 2007-02-14  Bruno Haible  <bruno@clisp.org>
16191
16192         * modules/mbspcasecmp-tests: New file.
16193         * tests/test-mbspcasecmp.sh: New file.
16194         * tests/test-mbspcasecmp.c: New file.
16195
16196         New module mbspcasecmp.
16197         * modules/mbspcasecmp: New file.
16198         * lib/mbspcasecmp.c: New file.
16199         * lib/string_.h (strncasecmp): Change warning message.
16200         (mbspcasecmp): New declaration.
16201         * m4/mbspcasecmp.m4: New file.
16202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16203         GNULIB_MBSPCASECMP.
16204         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16205         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16206
16207 2007-02-14  Bruno Haible  <bruno@clisp.org>
16208
16209         * modules/mbsncasecmp-tests: New file.
16210         * tests/test-mbsncasecmp.sh: New file.
16211         * tests/test-mbsncasecmp.c: New file.
16212
16213         New module mbsncasecmp.
16214         * modules/mbsncasecmp: New file.
16215         * lib/mbsncasecmp.c: New file.
16216         * lib/string_.h (mbsncasecmp): New declaration.
16217         * m4/mbsncasecmp.m4: New file.
16218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16219         GNULIB_MBSNCASECMP.
16220         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16221         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16222
16223 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16224
16225         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16226         Verify that it doesn't overlap with our flags.
16227         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16228         do not have the desired effect in multibyte locales; instead, use
16229         mbscasecmp.
16230         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16231         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16232         we don't require GNU fnmatch ourselves (if our users require it, they
16233         should do so explicitly).
16234
16235         Fix regex code so it doesn't rely on strcasecmp.
16236         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16237         Otherwise, include gnulib's langinfo.h.
16238         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16239         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16240         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16241         * modules/regex (FILES): Remove m4/codeset.m4.
16242         (Depends-on): Add localcharset.  Remove strcase.
16243
16244 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16245
16246         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16247         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16248
16249 2007-02-13  Bruno Haible  <bruno@clisp.org>
16250
16251         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16253
16254 2007-02-12  Bruno Haible  <bruno@clisp.org>
16255
16256         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16257         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16258         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16259         time warning rather than a link error.
16260
16261 2007-02-12  Bruno Haible  <bruno@clisp.org>
16262
16263         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16264         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16266
16267 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16270         args, not 2.
16271
16272 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16273
16274         New module 'time', so that apps can include <time.h> as per
16275         POSIX and GNU instead of separate include files like time_r.h
16276         and timegm.h.  This implementation tries out a simpler approach
16277         for replacing decls in standard include files (as compared to
16278         the string module), somewhat as an experiment.
16279
16280         * config/srclist.txt: Comment out mktime.c for now.
16281         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16282         since it doesn't apply any more.  Use generic wording instead.
16283         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16284         'time'.
16285         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16286         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16287         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16288         Don't include <sys/types.h>; no longer needed since we assume C89.
16289         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16290         * lib/strftime.c: Likewise.
16291         * lib/time_r.c: Likewise.
16292         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16293         * lib/nanosleep.c: Include <time.h> first, to check interface.
16294         * lib/strptime.c: Likewise.
16295         * lib/time_r.c: Likewise.
16296         * lib/timegm.c: Likewise.
16297         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16298         needed.
16299         * lib/timegm.c: Don't include timegm.h; no longer needed.
16300         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16301         time.h now handles any problems in that area.
16302         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16303         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16304         that time.h defines struct timespec.
16305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16306         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16307         handles that.
16308         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16309         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16310         needed.  Set REPLACE_LOCALTIME.
16311         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16312         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16313         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16314         nanosleep; time_h.m4 now does that.  Don't require
16315         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16316         module handles this now.
16317         * modules/getdate (Depends-on): Remove timespec.  Add time.
16318         * modules/nanosleep (Depends-on): Likewise.
16319         * modules/stat-time (Depends-on): Likewise.
16320         * modules/nanosleep (Include): Include time.h, not timespec.h.
16321         * modules/strptime (Files): Remove lib/strptime.h.
16322         (Depends-on): Add extensions, time.
16323         (Include): Include time.h, not strptime.h.
16324         * modules/time_r (Files): Remove lib/time_r.h.
16325         (Depends-on): Add time.
16326         (Include): Include time.h, not time_r.h.
16327         * modules/timegm: Likewise.
16328         * modules/timespec (Description): Now does timespec-related decls
16329         of our own, instead of struct timespec itself.
16330         (Depends-on): Add time; remove extensions.
16331         (Maintainer): Add self.
16332         * modules/utimecmp (Depends-on): Add time; remove timespec.
16333         * modules/utimens (Depends-on): Likewise.
16334         * modules/xnanosleep (Depends-on): Likewise.
16335
16336 2007-02-11  Bruno Haible  <bruno@clisp.org>
16337
16338         * lib/c-strstr.c: Include allocsa.h.
16339         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16340         * lib/c-strcasestr.c: Include allocsa.h.
16341         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16342         * lib/strcasestr.c: Include allocsa.h.
16343         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16344         * lib/mbsstr.c: Include allocsa.h.
16345         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16346         allocsa/freesa instead of malloc/free.
16347         * lib/mbscasestr.c: Include allocsa.h.
16348         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16349         allocsa/freesa instead of malloc/free.
16350         * modules/c-strstr (Depends-on): Add allocsa.
16351         * modules/c-strcasestr (Depends-on): Likewise.
16352         * modules/strcasestr (Depends-on): Likewise.
16353         * modules/mbsstr (Depends-on): Likewise.
16354         * modules/mbscasestr (Depends-on): Likewise.
16355
16356 2007-02-11  Bruno Haible  <bruno@clisp.org>
16357
16358         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16359
16360         * modules/mbsspn-tests: New file.
16361         * tests/test-mbsspn.sh: New file.
16362         * tests/test-mbsspn.c: New file.
16363
16364 2007-02-11  Bruno Haible  <bruno@clisp.org>
16365
16366         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16367
16368         * modules/mbspbrk-tests: New file.
16369         * tests/test-mbspbrk.sh: New file.
16370         * tests/test-mbspbrk.c: New file.
16371
16372 2007-02-11  Bruno Haible  <bruno@clisp.org>
16373
16374         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16375         unneeded cast.
16376
16377         * modules/mbscspn-tests: New file.
16378         * tests/test-mbscspn.sh: New file.
16379         * tests/test-mbscspn.c: New file.
16380
16381 2007-02-11  Bruno Haible  <bruno@clisp.org>
16382
16383         * modules/mbscasecmp-tests: New file.
16384         * tests/test-mbscasecmp.sh: New file.
16385         * tests/test-mbscasecmp.c: New file.
16386
16387 2007-02-11  Bruno Haible  <bruno@clisp.org>
16388
16389         Ensure O(n) worst-case complexity of mbscasestr.
16390         * lib/mbscasestr.c: Include stdbool.h.
16391         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16392         functions.
16393         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16394         the bookkeeping indicates that it's worth it.
16395         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16396
16397         * modules/mbscasestr-tests: New file.
16398         * tests/test-mbscasestr1.c: New file.
16399         * tests/test-mbscasestr2.sh: New file.
16400         * tests/test-mbscasestr2.c: New file.
16401         * tests/test-mbscasestr3.sh: New file.
16402         * tests/test-mbscasestr3.c: New file.
16403         * tests/test-mbscasestr4.sh: New file.
16404         * tests/test-mbscasestr4.c: New file.
16405         * m4/locale-tr.m4: New file.
16406
16407 2007-02-11  Bruno Haible  <bruno@clisp.org>
16408
16409         Ensure O(n) worst-case complexity of mbsstr.
16410         * lib/mbsstr.c: Include stdbool.h.
16411         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16412         functions.
16413         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16414         bookkeeping indicates that it's worth it.
16415         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16416
16417         * modules/mbsstr-tests: New file.
16418         * tests/test-mbsstr1.c: New file.
16419         * tests/test-mbsstr2.sh: New file.
16420         * tests/test-mbsstr2.c: New file.
16421         * tests/test-mbsstr3.sh: New file.
16422         * tests/test-mbsstr3.c: New file.
16423         * m4/locale-fr.m4: New file.
16424
16425 2007-02-11  Bruno Haible  <bruno@clisp.org>
16426
16427         * lib/mbsrchr.c (mbsrchr): Fix bug.
16428
16429         * modules/mbsrchr-tests: New file.
16430         * tests/test-mbsrchr.sh: New file.
16431         * tests/test-mbsrchr.c: New file.
16432
16433 2007-02-11  Bruno Haible  <bruno@clisp.org>
16434
16435         * lib/mbschr.c (mbschr): Fix bug.
16436
16437         * modules/mbschr-tests: New file.
16438         * tests/test-mbschr.sh: New file.
16439         * tests/test-mbschr.c: New file.
16440         * m4/locale-zh.m4: New file.
16441
16442 2007-02-11  Bruno Haible  <bruno@clisp.org>
16443
16444         Support for copying multibyte string iterators.
16445         * lib/mbiter.h: Include <string.h>.
16446         (mbiter_multi_copy): New function.
16447         (mbi_copy): New macro.
16448         * lib/mbuiter.h: Include <string.h>.
16449         (mbuiter_multi_copy): New function.
16450         (mbui_copy): New macro.
16451
16452 2007-02-11  Bruno Haible  <bruno@clisp.org>
16453
16454         New module mbslen.
16455         * modules/mbslen: New file.
16456         * lib/mbslen.c: New file.
16457         * lib/string_.h (mbslen): New declaration.
16458         * m4/mbslen.m4: New file.
16459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16460         GNULIB_MBSLEN.
16461         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16462         * MODULES.html.sh (Internationalization functions): Add mbslen.
16463
16464 2007-02-11  Bruno Haible  <bruno@clisp.org>
16465
16466         Ensure O(n) worst-case complexity of strcasestr substitute.
16467         * lib/strcasestr.c: Include stdbool.h.
16468         (knuth_morris_pratt): New function.
16469         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16470         bookkeeping indicates that it's worth it.
16471         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16472
16473         * modules/strcasestr-tests: New file.
16474         * tests/test-strcasestr.c: New file.
16475
16476 2007-02-11  Bruno Haible  <bruno@clisp.org>
16477
16478         Ensure O(n) worst-case complexity of c_strcasestr.
16479         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16480         (knuth_morris_pratt): New function.
16481         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16482         the bookkeeping indicates that it's worth it.
16483         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16484
16485         * modules/c-strcasestr-tests: New file.
16486         * tests/test-c-strcasestr.c: New file.
16487
16488 2007-02-11  Bruno Haible  <bruno@clisp.org>
16489
16490         Ensure O(n) worst-case complexity of c_strstr.
16491         * lib/c-strstr.c: Include stdbool.h, string.h.
16492         (knuth_morris_pratt): New function.
16493         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16494         bookkeeping indicates that it's worth it.
16495         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16496
16497         * lib/c-strstr.c: Complete rewrite for maintainability.
16498
16499         * modules/c-strstr-tests: New file.
16500         * tests/test-c-strstr.c: New file.
16501
16502 2007-02-11  Bruno Haible  <bruno@clisp.org>
16503
16504         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16505         5.2.1 and earlier, whereby \055 was treated just like the range
16506         delimiter '-'.
16507         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16508
16509 2007-02-08  Bruno Haible  <bruno@clisp.org>
16510
16511         * modules/regex (Depends-on): Add stdbool.
16512         Reported by Dalibor Topic <robilad@kaffe.org>.
16513
16514 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16515
16516         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16517         Prefer returning from main to exiting from it.
16518         Remove unnecessary parens after sizeof.
16519
16520 2007-02-05  Bruno Haible  <bruno@clisp.org>
16521
16522         New module mbssep.
16523         * modules/mbssep: New file.
16524         * lib/mbssep.c: New file.
16525         * lib/string_.h (strsep): Add a conditional link warning.
16526         (mbssep): New declaration.
16527         * m4/mbssep.m4: New file.
16528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16529         GNULIB_MBSSEP.
16530         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16531         * MODULES.html.sh (Internationalization functions): Add mbssep.
16532
16533 2007-02-05  Bruno Haible  <bruno@clisp.org>
16534
16535         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16536         Optimize search in case of 1 delimiter.
16537
16538 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16539
16540         * lib/acl.h: Include sys/types.h before sys/acl.h.
16541
16542 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16543
16544         Merge upstream fix for glibc bugzilla #3957:
16545
16546         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16547
16548         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16549         bit for RE_HAT_LISTS_NOT_NEWLINE.
16550         (build_charclass_op): Remove bogus comment.
16551
16552 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16553
16554         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16555
16556 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16557
16558         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16559         * lib/memmem.c [!defined _LIBC]: Include config.h.
16560
16561 2007-02-04  Bruno Haible  <bruno@clisp.org>
16562
16563         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16564         warning message.
16565
16566 2007-02-04  Bruno Haible  <bruno@clisp.org>
16567
16568         New module mbstok_r.
16569         * modules/mbstok_r: New file.
16570         * lib/mbstok_r.c: New file.
16571         * lib/string_.h (strtok_r): Change argument names to match the
16572         comments. Add a conditional link warning.
16573         (mbstok_r): New declaration.
16574         * m4/mbstok_r.m4: New file.
16575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16576         GNULIB_MBSTOK_R.
16577         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16578         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16579
16580 2007-02-04  Bruno Haible  <bruno@clisp.org>
16581
16582         New module mbsspn.
16583         * modules/mbsspn: New file.
16584         * lib/mbsspn.c: New file.
16585         * lib/string_.h (strspn): Add a conditional link warning.
16586         (mbsspn): New declaration.
16587         * m4/mbsspn.m4: New file.
16588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16589         GNULIB_MBSSPN.
16590         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16591         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16592
16593 2007-02-04  Bruno Haible  <bruno@clisp.org>
16594
16595         New module mbspbrk.
16596         * modules/mbspbrk: New file.
16597         * lib/mbspbrk.c: New file.
16598         * lib/string_.h (strpbrk): Add a conditional link warning.
16599         (mbspbrk): New declaration.
16600         * m4/mbspbrk.m4: New file.
16601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16602         GNULIB_MBSPBRK.
16603         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16604         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16605
16606 2007-02-04  Bruno Haible  <bruno@clisp.org>
16607
16608         New module mbscspn.
16609         * modules/mbscspn: New file.
16610         * lib/mbscspn.c: New file.
16611         * lib/string_.h (strcspn): Add a conditional link warning.
16612         (mbscspn): New declaration.
16613         * m4/mbscspn.m4: New file.
16614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16615         GNULIB_MBSCSPN.
16616         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16617         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16618
16619 2007-02-04  Bruno Haible  <bruno@clisp.org>
16620
16621         New module mbscasestr, reduced goal of strcasestr.
16622         * modules/mbscasestr: New file.
16623         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16624         (mbscasestr): Renamed from strcasestr.
16625         * lib/strcasestr.c: Don't include mbuiter.h.
16626         (strcasestr): Remove support for multibyte locales.
16627         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16628         Change the conditional link warning.
16629         (mbscasestr): New declaration.
16630         * m4/mbscasestr.m4: New file.
16631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16632         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16633         REPLACE_STRCASESTR.
16634         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16636         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16637         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16638         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16639         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16640         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16641         (Depends-on): Remove mbuiter.
16642         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16643
16644 2007-02-04  Bruno Haible  <bruno@clisp.org>
16645
16646         Simplify handling of strncasecmp.
16647         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16648         the conditional link warning.
16649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16650         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16651         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16652         * modules/strcase (configure.ac): Don't invoke
16653         gl_STRING_MODULE_INDICATOR.
16654         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16655
16656 2007-02-04  Bruno Haible  <bruno@clisp.org>
16657
16658         New module mbscasecmp, reduced goal of strcasecmp.
16659         * modules/mbscasecmp: New file.
16660         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16661         (mbscasecmp): Renamed from strcasecmp.
16662         * lib/strcasecmp.c: Don't include mbuiter.h.
16663         (strcasecmp): Remove support for multibyte locales.
16664         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16665         Change the conditional link warning.
16666         (mbscasecmp): New declaration.
16667         * m4/mbscasecmp.m4: New file.
16668         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16669         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16670         REPLACE_STRCASECMP.
16671         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16673         GNULIB_MBSCASECMP.
16674         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16675         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16676         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16677         (Depends-on): Remove mbuiter.
16678         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16679
16680 2007-02-04  Bruno Haible  <bruno@clisp.org>
16681
16682         New module mbsstr. Remove module strstr.
16683         * modules/mbsstr: New file.
16684         * modules/strstr: Remove file.
16685         * lib/mbsstr.c: Renamed from lib/strstr.c.
16686         (mbsstr): Renamed from strstr.
16687         * lib/string_.h (strstr): Remove declaration. Change the conditional
16688         link warning.
16689         (mbsstr): New declaration.
16690         * m4/mbsstr.m4: New file.
16691         * m4/strstr.m4: Remove file.
16692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16693         REPLACE_STRSTR.
16694         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16695         Don't initialize GNULIB_STRSTR.
16696         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16697         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16698         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16699         (Support for systems lacking ANSI C 89): Remove strstr.
16700
16701 2007-02-04  Bruno Haible  <bruno@clisp.org>
16702
16703         New module mbsrchr.
16704         * modules/mbsrchr: New file.
16705         * lib/mbsrchr.c: New file.
16706         * lib/string_.h (strrchr): Add a conditional link warning.
16707         (mbsrchr): New declaration.
16708         * m4/mbsrchr.m4: New file.
16709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16710         GNULIB_MBSRCHR.
16711         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16712         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16713
16714 2007-02-04  Bruno Haible  <bruno@clisp.org>
16715
16716         New module mbschr.
16717         * modules/mbschr: New file.
16718         * lib/mbschr.c: New file.
16719         * lib/string_.h (strchr): Add a conditional link warning.
16720         (mbschr): New declaration.
16721         * m4/mbschr.m4: New file.
16722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16723         GNULIB_MBSCHR.
16724         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16725         * MODULES.html.sh (Internationalization functions): Add mbschr.
16726
16727 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16728
16729         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16730
16731         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16732
16733 2007-02-04  Bruno Haible  <bruno@clisp.org>
16734
16735         New module description section 'configure.ac-early'.
16736         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16737         (func_get_autoconf_early_snippet): New function.
16738         (func_import, func_create_testdir): Use it. Remove special cases for
16739         modules 'extensions' and 'lock'.
16740         * modules/extensions (configure.ac-early): Require
16741         gl_USE_SYSTEM_EXTENSIONS.
16742         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16743
16744 2007-02-04  Bruno Haible  <bruno@clisp.org>
16745
16746         Make use of gcj-4.3's -fsource and -ftarget option.
16747         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16748         and if so try the options -fsource and -ftarget.
16749         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16750         source_version, ftarget_option, target_version arguments.
16751         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16752         (is_envjavac_oldgcj_14_14_usable): Renamed from
16753         is_envjavac_gcj_14_14_usable.
16754         (is_envjavac_oldgcj_14_13_usable): Renamed from
16755         is_envjavac_gcj_14_13_usable.
16756         (is_gcj_present): Update.
16757         (is_gcj_43, is_gcj43_usable): New functions.
16758         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16759         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16760         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16761         try the options -fsource and -ftarget.
16762
16763 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16764
16765         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16766         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16767         larger value.
16768
16769 2007-02-03  Jim Meyering  <jim@meyering.net>
16770
16771         Give tools a better chance to allocate space for very large buffers.
16772         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16773
16774         Make pwd and readlink work also when run with an unreadable parent dir
16775         on systems with openat support.
16776         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16777         provided getcwd function, even when we have openat support.
16778         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16779
16780 2007-02-02  Bruno Haible  <bruno@clisp.org>
16781
16782         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16783         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16784         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16785         portability problems if one of these functions is only used on specific
16786         platforms.
16787         Reported by Paul Eggert.
16788
16789 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16790
16791         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16792         is causing more trouble than it's curing.
16793         * lib/regex_internal.h (__mempcpy): Remove.
16794         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16795         (and make the code a tad smaller to boot).
16796         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16797
16798 2007-02-02  Jim Meyering  <jim@meyering.net>
16799
16800         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16801         section, not in the Makefile.am: one.
16802
16803 2007-02-02  Eric Blake  <ebb9@byu.net>
16804
16805         * lib/strchrnul.c: Always include config.h first.
16806
16807         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16808         gnulib strstr is not necessary here.
16809
16810 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16811
16812         * m4/socklen.m4: Fix typo.
16813
16814 2007-02-02  Eric Blake  <ebb9@byu.net>
16815
16816         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16817         * modules/netinet_in (Makefile.am): Likewise.
16818
16819 2007-02-01  Bruno Haible  <bruno@clisp.org>
16820
16821         * lib/string_.h (GL_LINK_WARNING): New macro.
16822         (strcasecmp, strstr, strcasestr): If provided by the system,
16823         conditionally define as a macro that leads to a warning instead of to
16824         an error.
16825         (strncasecmp): Conditionally define as a macro that leads to a warning.
16826
16827 2007-02-01  Karl Berry  <karl@gnu.org>
16828
16829         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16830
16831 2007-02-01  Bruno Haible  <bruno@clisp.org>
16832
16833         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16834         renamings.
16835
16836 2007-02-01  Eric Blake  <ebb9@byu.net>
16837
16838         * modules/regex (Depends-on): Revert dependence on mempcpy.
16839         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16840         module's definition of mempcpy.
16841         Reported by Paul Eggert.
16842
16843 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16844
16845         * lib/string_.h: If the gnulib module XYZ is not present, undefine
16846         the symbol XYZ before redefining it.  This fixes a problem with
16847         programs that don't use XYZ, when compiled on systems that define
16848         XYZ to something else.
16849
16850 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16851
16852         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16853         occurs when "mkdir -m foo" creates a setgid directory that is (1)
16854         writeable to group or other and (2) is intended to have a special
16855         mode bit that is set or cleared.  In such a case, the directory
16856         should be neither group- nor other-writeable until the special
16857         mode bits are right.
16858
16859 2007-01-31  Eric Blake  <ebb9@byu.net>
16860
16861         * modules/mountlist (Depends-on): Add strstr.
16862
16863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16864         bug.
16865         * modules/string (Makefile.am): Remove redundant replacement.
16866         * modules/regex (Depends-on): Add mempcpy.
16867
16868 2007-01-31  Bruno Haible  <bruno@clisp.org>
16869
16870         New module description field 'Link'.
16871         * gnulib-tool (func_usage): Document --extract-link-directive.
16872         (sed_extract_prog): Recognize 'Link' directive.
16873         (func_get_link_directive): New function.
16874         (func_import): Show summary of link directives.
16875         Handle --extract-link-directive option.
16876         * modules/acl (Link): New section.
16877         * modules/clock-time (Link): New section.
16878         * modules/euidaccess (Link): New section.
16879         * modules/gettext (Link): New section.
16880         * modules/iconv (Link): New section.
16881         * modules/lock (Link): New section.
16882         * modules/nanosleep (Link): New section.
16883         * modules/readline (Link): New section.
16884
16885 2007-01-27  Bruno Haible  <bruno@clisp.org>
16886
16887         Enforce the use of gnulib modules for unportable <string.h> functions.
16888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16889         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16890         (gl_HEADER_STRING_H_BODY): Require it.
16891         * lib/string_.h: If the gnulib module XYZ is not present, redefine
16892         the symbol XYZ to one that gives a link error.
16893         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16894         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16895         * modules/mempcpy (configure.ac): Likewise.
16896         * modules/memrchr (configure.ac): Likewise.
16897         * modules/stpcpy (configure.ac): Likewise.
16898         * modules/stpncpy (configure.ac): Likewise.
16899         * modules/strcase (configure.ac): Likewise.
16900         * modules/strcasestr (configure.ac): Likewise.
16901         * modules/strchrnul (configure.ac): Likewise.
16902         * modules/strdup (configure.ac): Likewise.
16903         * modules/strndup (configure.ac): Likewise.
16904         * modules/strnlen (configure.ac): Likewise.
16905         * modules/strpbrk (configure.ac): Likewise.
16906         * modules/strsep (configure.ac): Likewise.
16907         * modules/strstr (configure.ac): Likewise.
16908         * modules/strtok_r (configure.ac): Likewise.
16909
16910 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
16911
16912         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16913
16914 2007-01-30  Jim Meyering  <jim@meyering.net>
16915
16916         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16917
16918 2007-01-29  Bruno Haible  <bruno@clisp.org>
16919
16920         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16921         * lib/execute.c: Likewise.
16922         * lib/pipe.c: Likewise.
16923         * lib/printf-args.h: Likewise.
16924         * lib/printf-args.c: Likewise.
16925         * lib/printf-parse.c: Likewise.
16926         * lib/vasnprintf.c: Likewise.
16927
16928 2007-01-29  Eric Blake  <ebb9@byu.net>
16929
16930         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16931         declaration.
16932
16933 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16934
16935         * lib/strptime.h (strptime): Use 'restrict' for args where
16936         POSIX requires this.
16937         * lib/strptime.c (strptime): Likewise.
16938         Change license notice from LGPL to GPL, since gnulib-tool will
16939         change this as needed.
16940         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16941         defined.
16942         Include "strptime.h" first, to check interface.
16943         Do not #undef _LIBC and _NL_CURRENT.
16944         Do not include <stdlib.h>; no longer needed.
16945         Include "time_r.h" and declare ptime_locale_status
16946         only if _LIBC is not defined.
16947         (__P): Remove unused macro.
16948         (match_string): Bring back glibc version, but use it only if _LIBC
16949         is defined.
16950         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16951         Remove unnecessary assertion and abort() call.
16952         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16953         * m4/strptime.m4: Fix serial number comment.
16954         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16955         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16956         (Depends-on): Add time_r.
16957
16958 2007-01-29  Bruno Haible  <bruno@clisp.org>
16959
16960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16961         strptime.
16962         * modules/strptime (Depends-on): Add stdbool.
16963         * lib/strptime.h: Include <time.h> always. Add comments.
16964
16965 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16966
16967         * modules/strptime: New file.
16968         * lib/strptime.h: New file.
16969         * lib/strptime.c: New file.
16970         * m4/strptime.m4: New file.
16971
16972 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16973
16974         * MODULES.html.sh: New module mpsort.
16975         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16976
16977         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16978         a circularity problem with HP-UX ia64 reported by Bob Proulx in
16979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16980         All uses changed.
16981         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16982         All uses changed.
16983         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16984         to _Restrict_.
16985         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16986         the parameter matches the prototype.
16987
16988 2007-01-28  Jim Meyering  <jim@meyering.net>
16989
16990         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16991         sys/time.h here, reverting that part of the previous patch:
16992         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16993
16994 2007-01-28  Bruno Haible  <bruno@clisp.org>
16995
16996         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16997         value of $(SYS_TIME_H).
16998         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16999         remove it conditionally, too. [added by Jim Meyering]
17000         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17002         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17003         GETTIMEOFDAY_REPLACEMENT to 1.
17004
17005 2007-01-28  Bruno Haible  <bruno@clisp.org>
17006
17007         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17008         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17010         Set UNISTD_H instead of UNISTD_H2.
17011         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17012
17013 2007-01-28  Bruno Haible  <bruno@clisp.org>
17014
17015         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17016         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17017
17018 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17019
17020         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17021         (func_create_testdir): Ensure C locale for `grep' and `tr'
17022         character ranges.
17023         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17024         ACLOCAL_AMFLAGS parsing state machine.
17025
17026 2007-01-27  Bruno Haible  <bruno@clisp.org>
17027
17028         * modules/unistr/base: Update.
17029
17030 2007-01-27  Bruno Haible  <bruno@clisp.org>
17031
17032         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17033         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17034         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17035         modules/unistr/u32-mbtouc.
17036         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17037         * lib/unistr.h: Update.
17038         * lib/linebreak.c: Update.
17039         * modules/unistr/u32-mbtouc: Renamed from
17040         modules/unistr/u32-mbtouc-safe.
17041         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17042         * lib/unistr.h: Update.
17043         * lib/unistr/u32-to-u8.c: Update.
17044         * lib/unistr/u32-to-u16.c: Update.
17045
17046 2007-01-27  Bruno Haible  <bruno@clisp.org>
17047
17048         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17049         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17050         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17051         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17052         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17053         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17054         modules/unistr/u16-mbtouc.
17055         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17056         * lib/unistr.h: Update.
17057         * lib/linebreak.c: Update.
17058         * modules/linebreak: Update.
17059         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17060         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17061         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17062         * modules/unistr/u16-mbtouc: Renamed from
17063         modules/unistr/u16-mbtouc-safe.
17064         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17065         * lib/unistr.h: Update.
17066         * lib/unistr/u16-to-u8.c: Update.
17067         * modules/unistr/u16-to-u8: Update.
17068         * lib/unistr/u16-to-u32.c: Update.
17069         * modules/unistr/u16-to-u32: Update.
17070
17071 2007-01-27  Bruno Haible  <bruno@clisp.org>
17072
17073         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17074         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17075         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17076         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17077         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17078         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17079         modules/unistr/u8-mbtouc.
17080         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17081         * lib/unistr.h: Update.
17082         * lib/striconveh.c: Update.
17083         * modules/striconveh: Update.
17084         * lib/linebreak.c: Update.
17085         * modules/linebreak: Update.
17086         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17087         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17088         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17089         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17090         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17091         * lib/unistr.h: Update.
17092         * lib/striconveh.c: Update.
17093         * modules/striconveh: Update.
17094         * lib/unistr/u8-to-u16.c: Update.
17095         * modules/unistr/u8-to-u16: Update.
17096         * lib/unistr/u8-to-u32.c: Update.
17097         * modules/unistr/u8-to-u32: Update.
17098
17099 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17100
17101         Sync from Libtool.
17102         * lib/argz.c: Do not include strings.h nor memory.h, include
17103         string.h unconditionally.  Patch by Simon Josefsson.
17104
17105 2007-01-27  Bruno Haible  <bruno@clisp.org>
17106
17107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17108         from gl_HEADER_STRING_H_BODY.
17109         (gl_HEADER_STRING_H_BODY): Require it.
17110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17111         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17112         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17115         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17117         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17118         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17120         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17121         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17122         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17123         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17124         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17125
17126 2007-01-27  Bruno Haible  <bruno@clisp.org>
17127
17128         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17129         check_PROGRAMS into noinst_PROGRAMS.
17130         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17131         check_PROGRAMS in this case.
17132         (func_import): Set for_test to false.
17133         (func_create_testdir): Set for_test to true.
17134
17135 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17136             Bruno Haible  <bruno@clisp.org>
17137
17138         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17139         (Depends-on): Add string.
17140         (Includes): Use <string.h> instead of strcasestr.h.
17141         * modules/string (Makefile.am): Also substitute the value of
17142         REPLACE_STRCASESTR.
17143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17144         assume strcasestr is declared in <string.h> not <strings.h>. Also
17145         set REPLACE_STRCASESTR.
17146         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17147         REPLACE_STRCASESTR.
17148         * lib/strcasestr.h: Remove file.
17149         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17150         * lib/string_.h (strcasestr): New declaration.
17151
17152 2007-01-27  Bruno Haible  <bruno@clisp.org>
17153
17154         * lib/string_.h: Use 'extern'.
17155
17156 2007-01-27  Jim Meyering  <jim@meyering.net>
17157
17158         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17159         of set-but-not-used local, "q".
17160
17161         * lib/mempcpy.c: Include <config.h> before <string.h>.
17162         This fixes a compilation error on HP-UX, due to the system's
17163         "restrict"-using mempcpy prototype.
17164
17165 2007-01-26  Bruno Haible  <bruno@clisp.org>
17166
17167         Small optimization.
17168         * lib/javacomp.c: Include c-strstr.h.
17169          (is_envjavac_gcj): Use c_strstr instead of strstr.
17170         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17171
17172 2007-01-26  Bruno Haible  <bruno@clisp.org>
17173
17174         * MODULES.html.sh (Unicode string functions): Add the new modules.
17175
17176         * modules/uniconv/u32-strconv-to-locale: New file.
17177         * lib/uniconv/u32-strconv-to-locale.c: New file.
17178
17179         * modules/uniconv/u16-strconv-to-locale: New file.
17180         * lib/uniconv/u16-strconv-to-locale.c: New file.
17181
17182         * modules/uniconv/u8-strconv-to-locale: New file.
17183         * lib/uniconv/u8-strconv-to-locale.c: New file.
17184
17185         * modules/uniconv/u32-strconv-from-locale: New file.
17186         * lib/uniconv/u32-strconv-from-locale.c: New file.
17187
17188         * modules/uniconv/u16-strconv-from-locale: New file.
17189         * lib/uniconv/u16-strconv-from-locale.c: New file.
17190
17191         * modules/uniconv/u8-strconv-from-locale: New file.
17192         * lib/uniconv/u8-strconv-from-locale.c: New file.
17193
17194         * modules/uniconv/u32-strconv-to-enc: New file.
17195         * lib/uniconv/u32-strconv-to-enc.c: New file.
17196         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17197         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17198
17199         * modules/uniconv/u16-strconv-to-enc: New file.
17200         * lib/uniconv/u16-strconv-to-enc.c: New file.
17201         * lib/uniconv/u-strconv-to-enc.h: New file.
17202         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17203         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17204
17205         * modules/uniconv/u8-strconv-to-enc: New file.
17206         * lib/uniconv/u8-strconv-to-enc.c: New file.
17207         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17208         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17209
17210         * modules/uniconv/u32-strconv-from-enc: New file.
17211         * lib/uniconv/u32-strconv-from-enc.c: New file.
17212         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17213         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17214
17215         * modules/uniconv/u16-strconv-from-enc: New file.
17216         * lib/uniconv/u16-strconv-from-enc.c: New file.
17217         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17218         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17219
17220         * modules/uniconv/u8-strconv-from-enc: New file.
17221         * lib/uniconv/u8-strconv-from-enc.c: New file.
17222         * lib/uniconv/u-strconv-from-enc.h: New file.
17223         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17224         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17225
17226         * modules/uniconv/u32-conv-from-enc: New file.
17227         * lib/uniconv/u32-conv-from-enc.c: New file.
17228         * modules/uniconv/u32-conv-from-enc-tests: New file.
17229         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17230
17231         * modules/uniconv/u16-conv-from-enc: New file.
17232         * lib/uniconv/u16-conv-from-enc.c: New file.
17233         * lib/uniconv/u-conv-from-enc.h: New file.
17234         * modules/uniconv/u16-conv-from-enc-tests: New file.
17235         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17236
17237         * modules/uniconv/u8-conv-from-enc: New file.
17238         * lib/uniconv/u8-conv-from-enc.c: New file.
17239         * modules/uniconv/u8-conv-from-enc-tests: New file.
17240         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17241
17242         * modules/uniconv/base: New file.
17243         * lib/uniconv.h: New file.
17244
17245 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17246
17247         * doc/gnulib-tool.texi (Initial import): Update to match current
17248         behavior with strdup module.
17249         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17250         * lib/memmem.h: Remove; all uses removed.  This is now done
17251         by <string.h>.
17252         * lib/mempcpy.h: Likewise.
17253         * lib/memrchr.h: Likewise.
17254         * lib/stpcpy.h: Likewise.
17255         * lib/stpncpy.h: Likewise.
17256         * lib/strcase.h: Likewise.
17257         * lib/strchrnul.h: Likewise.
17258         * lib/strdup.h: Likewise.
17259         * lib/strndup.h: Likewise.
17260         * lib/strnlen.h: Likewise.
17261         * lib/strpbrk.h: Likewise.
17262         * lib/strsep.h: Likewise.
17263         * lib/strstr.h: Likewise.
17264         * lib/strtok_r.h: Likewise.
17265         * lib/string_.h: New file.
17266         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17267         Rely on <string.h> instead.
17268         * lib/canon-host.c: Likewise.
17269         * lib/chdir-long.c: Likewise.
17270         * lib/concatpath.c: Likewise.
17271         * lib/exclude.c: Likewise.
17272         * lib/fchdir.c: Likewise.
17273         * lib/getaddrinfo.c: Likewise.
17274         * lib/getcwd.c: Likewise.
17275         * lib/getsubopt.c: Likewise.
17276         * lib/glob.c: Likewise.
17277         * lib/hard-locale.c: Likewise.
17278         * lib/iconvme.c: Likewise.
17279         * lib/javacomp.c: Likewise.
17280         * lib/mempcpy.c: Likewise.
17281         * lib/memrchr.c: Likewise.
17282         * lib/regex_internal.h: Likewise.
17283         * lib/stpncpy.c: Likewise.
17284         * lib/strcasecmp.c: Likewise.
17285         * lib/strchrnul.c: Likewise.
17286         * lib/strdup.c: Likewise.
17287         * lib/striconv.c: Likewise.
17288         * lib/striconveh.c: Likewise.
17289         * lib/striconveha.c: Likewise.
17290         * lib/strncasecmp.c: Likewise.
17291         * lib/strndup.c: Likewise.
17292         * lib/strnlen.c: Likewise.
17293         * lib/strsep.c: Likewise.
17294         * lib/strstr.c: Likewise.
17295         * lib/strtok_r.c: Likewise.
17296         * lib/userspec.c: Likewise.
17297         * lib/w32spawn.h: Likewise.
17298         * lib/xstrndup.c: Likewise.
17299         * lib/mountlist.c (strstr): Remove decl.
17300         * m4/string_h.m4: New file.
17301         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17302         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17304         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17305         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17306         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17307         Set REPLACE_STRCASECMP if necessary.
17308         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17309         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17310         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17311         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17312         HAVE_DECL_STRDUP if necessary.
17313         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17314         since gl_FUNC_STRNDUP does that now.
17315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17316         Check for decl here...
17317         (gl_PREREQ_STRNLEN): ... not here.
17318         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17319         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17320         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17321         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17322         necessary.
17323         * modules/string: New file.
17324         * modules/memmem (Files): Remove special-purpose include file.
17325         (Depends-on): Add string.
17326         (Include): Include <string.h>, not the removed file.
17327         * modules/mempcpy: Likewise.
17328         * modules/memrchr: Likewise.
17329         * modules/stpcpy: Likewise.
17330         * modules/stpncpy: Likewise.
17331         * modules/strcase: Likewise.
17332         * modules/strchrnul: Likewise.
17333         * modules/strdup: Likewise.
17334         * modules/strndup: Likewise.
17335         * modules/strnlen: Likewise.
17336         * modules/strpbrk: Likewise.
17337         * modules/strsep: Likewise.
17338         * modules/strstr: Likewise.
17339         * modules/strtok_r: Likewise.
17340         * tests/test-dirname.c: Don't include "strdup.h", since
17341         <string.h> now suffices.
17342         * tests/test-memmem.c: Don't include "memmem.h", since
17343         <string.h> now suffices.
17344
17345 2007-01-25  Bruno Haible  <bruno@clisp.org>
17346
17347         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17348         *resultp is 0.
17349
17350         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17351         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17352         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17353         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17354
17355         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17356         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17357         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17358         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17359         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17360         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17361
17362 2007-01-24  Bruno Haible  <bruno@clisp.org>
17363
17364         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17366         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17367         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17368         gl_FUNC_FTS_CORE.
17369         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17370         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17372         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17373         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17374         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17375         gl_FUNC_FCHOWNAT.
17376         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17377         gl_FUNC_STRFTIME.
17378         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17379         Reported by Ralf Wildenhues.
17380
17381 2007-01-24  Bruno Haible  <bruno@clisp.org>
17382
17383         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17384         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17385         gl_GETADDRINFO.
17386         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17387         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17388         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17389
17390 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17391
17392         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17393         Don't use 'exit'; just return from 'main'.
17394         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17395
17396         * lib/fnmatch_.h: Readjust white space and comments to match
17397         glibc, to avoid spurious diffs.
17398
17399 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17400
17401         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17402         2004-12-01 change by Jakub Jelinek, since this code won't compile
17403         if !LIBC.  Problem reported by Bob Proulx.
17404
17405 2007-01-23  Bruno Haible  <bruno@clisp.org>
17406
17407         * lib/striconveh.c: Include c-strcaseeq.h.
17408         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17409         * modules/striconveh (Depends-on): Add c-strcaseeq.
17410
17411 2007-01-23  Bruno Haible  <bruno@clisp.org>
17412
17413         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17414
17415         * modules/c-strcaseeq: New file.
17416         * lib/c-strcaseeq.h: New file.
17417
17418         * modules/streq: New file.
17419         * lib/streq.h: New file.
17420
17421 2007-01-23  Bruno Haible  <bruno@clisp.org>
17422
17423         * modules/striconveha-tests: New file.
17424         * tests/test-striconveha.c: New file.
17425
17426         * lib/striconveha.h: Include <stdbool.h>.
17427         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17428         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17429         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17430         (mem_iconveha): New function.
17431         (str_iconveha_notranslit): Renamed from str_iconveha.
17432         (str_iconveha): New function.
17433         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17434         c-strcase.
17435
17436 2007-01-23  Bruno Haible  <bruno@clisp.org>
17437
17438         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17439         encodings without forgiving before trying any encoding with handler.
17440         (str_iconveha): Try all encodings without forgiving before trying any
17441         encoding with handler.
17442
17443 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17444
17445         Import the following changes from libc.
17446
17447         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17448
17449         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17450
17451         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17452
17453         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17454         normal_bracket label.
17455
17456         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17457
17458         [BZ #361]
17459         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17460         to normal_bracket after fetching the next character.
17461
17462 2007-01-22  Bruno Haible  <bruno@clisp.org>
17463
17464         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17465         argument.
17466         * lib/striconveh.c (iconv_carefully_1): New function.
17467         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17468         argument.
17469         (str_cd_iconveh): Update.
17470         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17471         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17472         * tests/test-striconveh.c (MAGIC): New macro.
17473         (new_offsets): New function.
17474         (main): Test call with and without offsets.
17475
17476 2007-01-22  Bruno Haible  <bruno@clisp.org>
17477
17478         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17479         * modules/sys_select (Makefile.am): Likewise.
17480         * modules/sys_socket (Makefile.am): Likewise.
17481         * modules/sys_time (Makefile.am): Likewise.
17482
17483 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17484
17485         * modules/gettimeofday (License): Change from GPL to LGPL, since
17486         gettimeofday is a library function.
17487
17488 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17489
17490         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17491
17492 2007-01-21  Bruno Haible  <bruno@clisp.org>
17493
17494         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17495
17496 2007-01-21  Bruno Haible  <bruno@clisp.org>
17497
17498         * modules/striconveha: New file.
17499         * lib/striconveha.h: New file.
17500         * lib/striconveha.c: New file.
17501         * MODULES.html.sh (Internationalization functions): Add striconveha.
17502         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17503         string.
17504         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17505
17506 2007-01-21  Bruno Haible  <bruno@clisp.org>
17507
17508         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17509         * lib/striconveh.c (str_iconveh): Likewise.
17510
17511 2007-01-21  Bruno Haible  <bruno@clisp.org>
17512
17513         * lib/striconveh.h (mem_iconveh): New declaration.
17514         * lib/striconveh.c (mem_iconveh): New function.
17515         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17516
17517 2007-01-21  Bruno Haible  <bruno@clisp.org>
17518
17519         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17520
17521         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17522         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17523         original result buffer.
17524         (str_cd_iconveh): Update.
17525         * tests/test-striconveh.c (main): Update.
17526
17527         * lib/striconv.h (mem_cd_iconv): Change specification.
17528         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17529         result buffer.
17530         (str_cd_iconv): Update.
17531         * tests/test-striconv.c (main): Update.
17532
17533 2007-01-21  Bruno Haible  <bruno@clisp.org>
17534
17535         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17536
17537 2007-01-20  Jim Meyering  <jim@meyering.net>
17538
17539         * lib/userspec.c (parse_with_separator): If a user or group string
17540         starts with "+", skip the corresponding name-to-ID look-up, since
17541         such a look-up must fail: user and group names may not include "+".
17542
17543 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17544
17545         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17546         since we now assume the sys_time module.
17547         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17548         check for sys/time.h; no longer needed.
17549         * modules/poll (Depends-on): Depend on sys_time.
17550
17551 2007-01-18  Bruno Haible  <bruno@clisp.org>
17552
17553         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17554         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17555
17556         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17557         gettimeofday.
17558
17559         * tests/test-gettimeofday.c: Include <time.h>.
17560         (dummy): Remove variable.
17561
17562         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17563         gl_HEADER_SYS_TIME_H.
17564         (gl_HEADER_SYS_TIME_H): New macro.
17565
17566         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17567         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17569         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17570         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17571         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17572         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17573         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17574         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17575         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17576         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17577
17578         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17579         last change; it caused a compilation error when cross-compiling to
17580         Cygwin.
17581
17582 2007-01-18  Jim Meyering  <jim@meyering.net>
17583
17584         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17585         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17586         than the race-prone "test -d sys || mkdir sys".
17587         (configure.ac): Use AC_PROG_MKDIR_P.
17588         * modules/sys_select: Likewise.
17589         * modules/sys_socket: Likewise.
17590         * modules/sys_time: Likewise.
17591
17592 2007-01-18  Eric Blake  <ebb9@byu.net>
17593
17594         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17595         replace gettimeofday.
17596         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17597         name, to avoid infinite recursion.
17598
17599 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17600
17601         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17602         module sys_time.
17603         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17604         assume timespec.h defines struct timeval.
17605         * lib/settime.c: Likewise.
17606         * lib/utimens.c: Likewise.
17607         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17608         since we now assume the gettimeofday module.
17609         * lib/tempname.c (__gen_tempname): Likewise.
17610         * lib/gettimeofday.h: Remove.
17611         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17612         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17613         Include <time.h>, for 'time()'.
17614         (localtime_buffer_addr): Also use this workaround if
17615         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17616         to simplify the uses.  All uses changed.
17617         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17618         that #undef is inside {}, and 'const' follows type name consistently.
17619         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17620         (gettimeofday): Do not use the maximum possible value for
17621         tv->tv_usec, since that might break usages other than ls.c.
17622         Instead, we'll leave ls.c alone.  This undoes today's patch
17623         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17624         we've never observed the problem but might as well keep the
17625         canary.
17626         * lib/nanosleep.c: Include timespec.h first, for interface check.
17627         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17628         now assume the sys_time module.
17629         * lib/tempname.c: Likewise.
17630         * lib/timespec.h: Likewise.
17631         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17632         needed.
17633         * lib/strftime.c: Likewise.
17634         * lib/timespec.h: Likewise.
17635         * lib/posixtm.c: Include posixtm.h first, for interface check.
17636         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17637         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17638         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17639         * lib/sys_time_.h: New file.
17640         * lib/timespec.h (struct timespec): Use long int, not long.
17641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17642         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17643         Remove obsolescent call to AC_HEADER_TIME.
17644         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17647         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17648         Likewise.
17649         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17650         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17651         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17652         into the sys_time module.  Check for gettimeofday just once.
17653         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17654         for gettimeofday signature to just check the signature.  Merely
17655         compile it, since linking doesn't test signature.  Improve test for
17656         whether gettimeofday.o is actually needed.
17657         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17658         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17659         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17660         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17661         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17662         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17663         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17664         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17665         than worrying about sys/time.h.
17666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17667         Don't bother worrying about TIME_WITH_SYS_TIME.
17668         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17669         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17670         * m4/sys_time_h.m4: New file.
17671         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17672         Don't include sys/time.h.  Return from main rather than exiting.
17673         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17674         all uses changed.
17675         * modules/gethrxtime (Depends-on): Add sys_time.
17676         * modules/gettime (Depends-on): Likewise.
17677         * modules/gettimeofday (Depends-on): Likewise.
17678         * modules/nanosleep (Depends-on): Likewise.
17679         * modules/settime (Depends-on): Likewise.
17680         * modules/tempname (Depends-on): Likewise.
17681         * modules/utimens (Depends-on): Likewise.
17682         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17683         (Include:) Change back to <sys/time.h>.
17684         (Maintainer:) Add self.
17685         * modules/sys_time: New file.
17686         * modules/tempname (Depends-on): Add gettimeofday.
17687         * tests/test-gettimeofday.c: Include <sys/time.h>
17688         rather than gettimeofday.h.
17689
17690 2007-01-17  Bruno Haible  <bruno@clisp.org>
17691
17692         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17693         the license default to GPL.
17694         (func_create_testdir): Don't complain if a module is LGPL and its
17695         tests module depends on GPLed modules.
17696
17697 2007-01-17  Bruno Haible  <bruno@clisp.org>
17698
17699         * lib/gettimeofday.c (gettimeofday): Add code for the case
17700         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17701         maximum possible value for tv->tv_usec, rather than the minimum one.
17702
17703 2005-10-08  Martin Lambers  <marlam@marlam.de>
17704 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17705 2007-01-16  Bruno Haible  <bruno@clisp.org>
17706
17707         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17708         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17709         gl_FUNC_GETTIMEOFDAY.
17710         (Include): Add gettimeofday.h.
17711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17712         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17713         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17714         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17715         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17716         * lib/gettimeofday.h: New file.
17717         * lib/gettimeofday.c: Include <sys/timeb.h>.
17718         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17719         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17720         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17721         fall back on time().
17722
17723         * tests/test-gettimeofday.c: New file.
17724         * modules/gettimeofday-tests: New file.
17725
17726 2007-01-16  Eric Blake  <ebb9@byu.net>
17727
17728         * modules/fnmatch (Depends-on): Depend on wchar.
17729         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17730         * m4/fnmatch.m4: Likewise.
17731         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17732         * m4/mbchar.m4: Likewise.
17733         * modules/mbswidth (Depends-on): Depend on wchar.
17734         * lib/mbswidth.c: Assume <wchar.h>.
17735         * m4/mbswidth.m4: Likewise.
17736         * modules/quotearg (Depends-on): Depend on wchar.
17737         * lib/quotearg.c: Assume <wchar.h>.
17738         * m4/quotearg.m4: Likewise.
17739         * modules/regex (Depends-on): Depend on wchar.
17740         * lib/regex_internal.h: Assume <wchar.h>.
17741         * m4/regex.m4: Likewise.
17742         * modules/stdint (Depends-on): Depend on wchar.
17743         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17744         * m4/stdint.m4: Likewise.
17745         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17746         * modules/strftime (Depends-on): Depend on wchar.
17747         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17748         * modules/strtol (Depends-on): Depend on wchar.
17749         * lib/strtol.c: Assume <wchar.h>.
17750         * modules/wcwidth (Depends-on): Depend on wchar.
17751         * lib/wcwidth.h: Assume <wchar.h>.
17752         * m4/wcwidth.m4: Likewise.
17753
17754 2007-01-16  Bruno Haible  <bruno@clisp.org>
17755
17756         * modules/csharpexec-script: New, created from...
17757         * modules/csharpexec: ... this.
17758
17759 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17760
17761         * modules/javaexec-script: New, created from...
17762         * modules/javaexec: ... this.
17763
17764 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17765
17766         * modules/poll (Dependencies): Add sys_select.
17767
17768 2007-01-15  Jim Meyering  <jim@meyering.net>
17769
17770         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17771         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17772         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17773         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17774
17775 2007-01-15  Bruno Haible  <bruno@clisp.org>
17776
17777         * modules/striconveh: New file.
17778         * lib/striconveh.h: New file.
17779         * lib/striconveh.c: New file.
17780         * MODULES.html.sh (Internationalization functions): Add striconveh.
17781
17782         * modules/striconveh-tests: New file.
17783         * tests/test-striconveh.c: New file.
17784
17785 2007-01-15  Bruno Haible  <bruno@clisp.org>
17786
17787         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17788         not from GNU libiconv or GNU libc.
17789
17790 2007-01-15  Bruno Haible  <bruno@clisp.org>
17791
17792         * doc/gnulib-intro.texi (Copyright): Explain the different license
17793         terms for module descriptions, autoconf macros, tests, documentation.
17794
17795 2007-01-14  Bruno Haible  <bruno@clisp.org>
17796
17797         * modules/striconv-tests: New file.
17798         * tests/test-striconv.c: New file.
17799
17800 2007-01-14  Bruno Haible  <bruno@clisp.org>
17801
17802         * modules/iconv-tests: New file.
17803         * tests/test-iconv.c: New file.
17804
17805 2007-01-14  Bruno Haible  <bruno@clisp.org>
17806
17807         * gnulib-tool (func_get_license): For test modules, use the license of
17808         the main module.
17809
17810 2007-01-14  Bruno Haible  <bruno@clisp.org>
17811
17812         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17813         if iconv is found to exist.
17814
17815 2007-01-14  Bruno Haible  <bruno@clisp.org>
17816
17817         * modules/c-ctype-tests: New file.
17818         * tests/test-c-ctype.c: New file.
17819
17820 2007-01-14  Bruno Haible  <bruno@clisp.org>
17821
17822         * modules/binary-io-tests: New file.
17823         * tests/test-binary-io.sh: New file.
17824         * tests/test-binary-io.c: New file.
17825
17826 2007-01-14  Bruno Haible  <bruno@clisp.org>
17827
17828         * modules/array-oset-tests: New file.
17829         * tests/test-array_oset.c: New file.
17830
17831 2007-01-14  Bruno Haible  <bruno@clisp.org>
17832
17833         * modules/array-list-tests: New file.
17834         * tests/test-array_list.c: New file.
17835
17836 2007-01-14  Bruno Haible  <bruno@clisp.org>
17837
17838         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17839         and make.
17840         Reported by Simon Josefsson in
17841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17842
17843 2007-01-14  Bruno Haible  <bruno@clisp.org>
17844
17845         * modules/allocsa-tests: New file.
17846         * tests/test-allocsa.c: New file.
17847
17848 2007-01-14  Bruno Haible  <bruno@clisp.org>
17849
17850         * modules/fchdir (Depends-on): Add absolute-header.
17851         * modules/unistd (Depends-on): Likewise.
17852
17853 2006-12-30  Bruno Haible  <bruno@clisp.org>
17854
17855         * modules/fchdir: New file.
17856         * modules/unistd (Files): Add lib/unistd_.h.
17857         (Makefile.am): Generate unistd.h from unistd_.h.
17858         * lib/fchdir.c: New file.
17859         * lib/dirent_.h: New file.
17860         * lib/unistd_.h: New file.
17861         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17862         * m4/fchdir.m4: New file.
17863         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17864         (gl_HEADER_UNISTD): Invoke it.
17865         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17866         function.
17867         * lib/backupfile.c (opendir, closedir): Undefine.
17868         * lib/chown.c (open, close): Undefine.
17869         * lib/clean-temp.c (open, close): Undefine.
17870         * lib/copy-file.c (open, close): Undefine.
17871         * lib/execute.c (open, close): Undefine.
17872         * lib/fsusage.c (open, close): Undefine.
17873         * lib/gc-gnulib.c (open, close): Undefine.
17874         * lib/getcwd.c (opendir, closedir): Undefine.
17875         * lib/glob.c (opendir, closedir): Undefine.
17876         * lib/javacomp.c (open, close): Undefine.
17877         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17878         * lib/openat-proc.c (open, close): Undefine.
17879         * lib/pagealign_alloc.c (open, close): Undefine.
17880         * lib/pipe.c (open, close): Undefine.
17881         * lib/progreloc.c (open, close): Undefine.
17882         * lib/savedir.c (opendir, closedir): Undefine.
17883         * lib/utime.c (open, close): Undefine.
17884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17885
17886 2007-01-10  Bruno Haible  <bruno@clisp.org>
17887
17888         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17889
17890 2007-01-12  Eric Blake  <ebb9@byu.net>
17891
17892         Provide a robust <wchar.h>.  Further simplifications are now
17893         possible in other modules, but not included here.
17894         * modules/wchar: New module.
17895         * m4/wchar.m4: New file.
17896         * lib/wchar_.h: Likewise.
17897         * modules/mbchar (Depends-on): Depend on wchar, as the first use
17898         of the new module.
17899         * MODULES.html.sh (Extended multibyte and wide character utilities):
17900         New section.
17901
17902 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17905         to a reasonable default for memory allocation.
17906         (xreadlink): Don't allocate a huge buffer, to work around a buggy
17907         file system that reports garbage st_size values for symlinks.
17908         Problem reported by Liyang Hu.
17909
17910 2007-01-11  Simon Josefsson  <simon@josefsson.org>
17911
17912         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17913         Emacs .#* auto-save files).
17914
17915 2007-01-11  Bruno Haible  <bruno@clisp.org>
17916
17917         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17918         directory.
17919
17920 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17921
17922         Use @...@ consistently in lib/wctype_.h.
17923         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17924         on it being set to 1 or 0.
17925         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17926         go back to AC_SUBSTing it.
17927         * modules/wctype (Makefile.am): Undo previous change.
17928
17929 2007-01-10  Eric Blake  <ebb9@byu.net>
17930
17931         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17932         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17933         * modules/wctype (Makefile.am): Likewise.
17934         Reported by Chris McGuire.
17935
17936 2007-01-10  Jim Meyering  <jim@meyering.net>
17937
17938         fts.c: a small readability/maintainability improvement
17939         * lib/fts.c (fts_read): Make this code slightly more readable and
17940         maintainable by hoisting the "sp->fts_cur = p" assignments to
17941         immediately follow the statements that set P.  Derived from
17942         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17943
17944 2007-01-10  Eric Blake  <ebb9@byu.net>
17945
17946         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17947         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17949         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17950         Reported by Chris McGuire.
17951
17952 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17953
17954         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17955         in sed script.
17956
17957 2007-01-09  Bruno Haible  <bruno@clisp.org>
17958
17959         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17960         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17961         variables.
17962         (func_module): Use them.
17963
17964 2007-01-09  Bruno Haible  <bruno@clisp.org>
17965
17966         * modules/unistr/base: New file.
17967         * lib/unistr.h: New file.
17968
17969         * modules/unistr/u8-to-u16: New file.
17970         * lib/unistr/u8-to-u16.c: New file.
17971
17972         * modules/unistr/u8-to-u32: New file.
17973         * lib/unistr/u8-to-u32.c: New file.
17974
17975         * modules/unistr/u16-to-u8: New file.
17976         * lib/unistr/u16-to-u8.c: New file.
17977
17978         * modules/unistr/u16-to-u32: New file.
17979         * lib/unistr/u16-to-u32.c: New file.
17980
17981         * modules/unistr/u32-to-u8: New file.
17982         * lib/unistr/u32-to-u8.c: New file.
17983
17984         * modules/unistr/u32-to-u16: New file.
17985         * lib/unistr/u32-to-u16.c: New file.
17986
17987         * modules/unistr/u8-check: New file.
17988         * modules/unistr/u16-check: New file.
17989         * modules/unistr/u32-check: New file.
17990         * lib/unistr/u8-check.c: New file.
17991         * lib/unistr/u16-check.c: New file.
17992         * lib/unistr/u32-check.c: New file.
17993
17994         * modules/unistr/u8-chr: New file.
17995         * modules/unistr/u16-chr: New file.
17996         * modules/unistr/u32-chr: New file.
17997         * lib/unistr/u8-chr.c: New file.
17998         * lib/unistr/u16-chr.c: New file.
17999         * lib/unistr/u32-chr.c: New file.
18000
18001         * modules/unistr/u8-cmp: New file.
18002         * modules/unistr/u16-cmp: New file.
18003         * modules/unistr/u32-cmp: New file.
18004         * lib/unistr/u8-cmp.c: New file.
18005         * lib/unistr/u16-cmp.c: New file.
18006         * lib/unistr/u32-cmp.c: New file.
18007
18008         * modules/unistr/u8-cpy: New file.
18009         * modules/unistr/u16-cpy: New file.
18010         * modules/unistr/u32-cpy: New file.
18011         * lib/unistr/u8-cpy.c: New file.
18012         * lib/unistr/u16-cpy.c: New file.
18013         * lib/unistr/u32-cpy.c: New file.
18014         * lib/unistr/u-cpy.h: New file.
18015
18016         * modules/unistr/u8-cpy-alloc: New file.
18017         * modules/unistr/u16-cpy-alloc: New file.
18018         * modules/unistr/u32-cpy-alloc: New file.
18019         * lib/unistr/u8-cpy-alloc.c: New file.
18020         * lib/unistr/u16-cpy-alloc.c: New file.
18021         * lib/unistr/u32-cpy-alloc.c: New file.
18022         * lib/unistr/u-cpy-alloc.h: New file.
18023
18024         * modules/unistr/u8-endswith: New file.
18025         * modules/unistr/u16-endswith: New file.
18026         * modules/unistr/u32-endswith: New file.
18027         * lib/unistr/u8-endswith.c: New file.
18028         * lib/unistr/u16-endswith.c: New file.
18029         * lib/unistr/u32-endswith.c: New file.
18030         * lib/unistr/u-endswith.h: New file.
18031
18032         * modules/unistr/u8-mblen: New file.
18033         * modules/unistr/u16-mblen: New file.
18034         * modules/unistr/u32-mblen: New file.
18035         * lib/unistr/u8-mblen.c: New file.
18036         * lib/unistr/u16-mblen.c: New file.
18037         * lib/unistr/u32-mblen.c: New file.
18038
18039         * modules/unistr/u8-mbtouc: New file.
18040         * modules/unistr/u16-mbtouc: New file.
18041         * modules/unistr/u32-mbtouc: New file.
18042         * lib/unistr/u8-mbtouc.c: New file.
18043         * lib/unistr/u16-mbtouc.c: New file.
18044         * lib/unistr/u32-mbtouc.c: New file.
18045
18046         * modules/unistr/u8-mbtouc-safe: New file.
18047         * modules/unistr/u16-mbtouc-safe: New file.
18048         * modules/unistr/u32-mbtouc-safe: New file.
18049         * lib/unistr/u8-mbtouc-safe.c: New file.
18050         * lib/unistr/u16-mbtouc-safe.c: New file.
18051         * lib/unistr/u32-mbtouc-safe.c: New file.
18052
18053         * modules/unistr/u8-move: New file.
18054         * modules/unistr/u16-move: New file.
18055         * modules/unistr/u32-move: New file.
18056         * lib/unistr/u8-move.c: New file.
18057         * lib/unistr/u16-move.c: New file.
18058         * lib/unistr/u32-move.c: New file.
18059         * lib/unistr/u-move.h: New file.
18060
18061         * modules/unistr/u8-next: New file.
18062         * modules/unistr/u16-next: New file.
18063         * modules/unistr/u32-next: New file.
18064         * lib/unistr/u8-next.c: New file.
18065         * lib/unistr/u16-next.c: New file.
18066         * lib/unistr/u32-next.c: New file.
18067
18068         * modules/unistr/u8-prev: New file.
18069         * modules/unistr/u16-prev: New file.
18070         * modules/unistr/u32-prev: New file.
18071         * lib/unistr/u8-prev.c: New file.
18072         * lib/unistr/u16-prev.c: New file.
18073         * lib/unistr/u32-prev.c: New file.
18074
18075         * modules/unistr/u8-set: New file.
18076         * modules/unistr/u16-set: New file.
18077         * modules/unistr/u32-set: New file.
18078         * lib/unistr/u8-set.c: New file.
18079         * lib/unistr/u16-set.c: New file.
18080         * lib/unistr/u32-set.c: New file.
18081         * lib/unistr/u-set.h: New file.
18082
18083         * modules/unistr/u8-startswith: New file.
18084         * modules/unistr/u16-startswith: New file.
18085         * modules/unistr/u32-startswith: New file.
18086         * lib/unistr/u8-startswith.c: New file.
18087         * lib/unistr/u16-startswith.c: New file.
18088         * lib/unistr/u32-startswith.c: New file.
18089         * lib/unistr/u-startswith.h: New file.
18090
18091         * modules/unistr/u8-stpcpy: New file.
18092         * modules/unistr/u16-stpcpy: New file.
18093         * modules/unistr/u32-stpcpy: New file.
18094         * lib/unistr/u8-stpcpy.c: New file.
18095         * lib/unistr/u16-stpcpy.c: New file.
18096         * lib/unistr/u32-stpcpy.c: New file.
18097         * lib/unistr/u-stpcpy.h: New file.
18098
18099         * modules/unistr/u8-stpncpy: New file.
18100         * modules/unistr/u16-stpncpy: New file.
18101         * modules/unistr/u32-stpncpy: New file.
18102         * lib/unistr/u8-stpncpy.c: New file.
18103         * lib/unistr/u16-stpncpy.c: New file.
18104         * lib/unistr/u32-stpncpy.c: New file.
18105         * lib/unistr/u-stpncpy.h: New file.
18106
18107         * modules/unistr/u8-strcat: New file.
18108         * modules/unistr/u16-strcat: New file.
18109         * modules/unistr/u32-strcat: New file.
18110         * lib/unistr/u8-strcat.c: New file.
18111         * lib/unistr/u16-strcat.c: New file.
18112         * lib/unistr/u32-strcat.c: New file.
18113         * lib/unistr/u-strcat.h: New file.
18114
18115         * modules/unistr/u8-strchr: New file.
18116         * modules/unistr/u16-strchr: New file.
18117         * modules/unistr/u32-strchr: New file.
18118         * lib/unistr/u8-strchr.c: New file.
18119         * lib/unistr/u16-strchr.c: New file.
18120         * lib/unistr/u32-strchr.c: New file.
18121
18122         * modules/unistr/u8-strcmp: New file.
18123         * modules/unistr/u16-strcmp: New file.
18124         * modules/unistr/u32-strcmp: New file.
18125         * lib/unistr/u8-strcmp.c: New file.
18126         * lib/unistr/u16-strcmp.c: New file.
18127         * lib/unistr/u32-strcmp.c: New file.
18128
18129         * modules/unistr/u8-strcpy: New file.
18130         * modules/unistr/u16-strcpy: New file.
18131         * modules/unistr/u32-strcpy: New file.
18132         * lib/unistr/u8-strcpy.c: New file.
18133         * lib/unistr/u16-strcpy.c: New file.
18134         * lib/unistr/u32-strcpy.c: New file.
18135         * lib/unistr/u-strcpy.h: New file.
18136
18137         * modules/unistr/u8-strcspn: New file.
18138         * modules/unistr/u16-strcspn: New file.
18139         * modules/unistr/u32-strcspn: New file.
18140         * lib/unistr/u8-strcspn.c: New file.
18141         * lib/unistr/u16-strcspn.c: New file.
18142         * lib/unistr/u32-strcspn.c: New file.
18143         * lib/unistr/u-strcspn.h: New file.
18144
18145         * modules/unistr/u8-strdup: New file.
18146         * modules/unistr/u16-strdup: New file.
18147         * modules/unistr/u32-strdup: New file.
18148         * lib/unistr/u8-strdup.c: New file.
18149         * lib/unistr/u16-strdup.c: New file.
18150         * lib/unistr/u32-strdup.c: New file.
18151         * lib/unistr/u-strdup.h: New file.
18152
18153         * modules/unistr/u8-strlen: New file.
18154         * modules/unistr/u16-strlen: New file.
18155         * modules/unistr/u32-strlen: New file.
18156         * lib/unistr/u8-strlen.c: New file.
18157         * lib/unistr/u16-strlen.c: New file.
18158         * lib/unistr/u32-strlen.c: New file.
18159         * lib/unistr/u-strlen.h: New file.
18160
18161         * modules/unistr/u8-strmblen: New file.
18162         * modules/unistr/u16-strmblen: New file.
18163         * modules/unistr/u32-strmblen: New file.
18164         * lib/unistr/u8-strmblen.c: New file.
18165         * lib/unistr/u16-strmblen.c: New file.
18166         * lib/unistr/u32-strmblen.c: New file.
18167
18168         * modules/unistr/u8-strmbtouc: New file.
18169         * modules/unistr/u16-strmbtouc: New file.
18170         * modules/unistr/u32-strmbtouc: New file.
18171         * lib/unistr/u8-strmbtouc.c: New file.
18172         * lib/unistr/u16-strmbtouc.c: New file.
18173         * lib/unistr/u32-strmbtouc.c: New file.
18174
18175         * modules/unistr/u8-strncat: New file.
18176         * modules/unistr/u16-strncat: New file.
18177         * modules/unistr/u32-strncat: New file.
18178         * lib/unistr/u8-strncat.c: New file.
18179         * lib/unistr/u16-strncat.c: New file.
18180         * lib/unistr/u32-strncat.c: New file.
18181         * lib/unistr/u-strncat.h: New file.
18182
18183         * modules/unistr/u8-strncmp: New file.
18184         * modules/unistr/u16-strncmp: New file.
18185         * modules/unistr/u32-strncmp: New file.
18186         * lib/unistr/u8-strncmp.c: New file.
18187         * lib/unistr/u16-strncmp.c: New file.
18188         * lib/unistr/u32-strncmp.c: New file.
18189
18190         * modules/unistr/u8-strncpy: New file.
18191         * modules/unistr/u16-strncpy: New file.
18192         * modules/unistr/u32-strncpy: New file.
18193         * lib/unistr/u8-strncpy.c: New file.
18194         * lib/unistr/u16-strncpy.c: New file.
18195         * lib/unistr/u32-strncpy.c: New file.
18196         * lib/unistr/u-strncpy.h: New file.
18197
18198         * modules/unistr/u8-strnlen: New file.
18199         * modules/unistr/u16-strnlen: New file.
18200         * modules/unistr/u32-strnlen: New file.
18201         * lib/unistr/u8-strnlen.c: New file.
18202         * lib/unistr/u16-strnlen.c: New file.
18203         * lib/unistr/u32-strnlen.c: New file.
18204         * lib/unistr/u-strnlen.h: New file.
18205
18206         * modules/unistr/u8-strpbrk: New file.
18207         * modules/unistr/u16-strpbrk: New file.
18208         * modules/unistr/u32-strpbrk: New file.
18209         * lib/unistr/u8-strpbrk.c: New file.
18210         * lib/unistr/u16-strpbrk.c: New file.
18211         * lib/unistr/u32-strpbrk.c: New file.
18212         * lib/unistr/u-strpbrk.h: New file.
18213
18214         * modules/unistr/u8-strrchr: New file.
18215         * modules/unistr/u16-strrchr: New file.
18216         * modules/unistr/u32-strrchr: New file.
18217         * lib/unistr/u8-strrchr.c: New file.
18218         * lib/unistr/u16-strrchr.c: New file.
18219         * lib/unistr/u32-strrchr.c: New file.
18220
18221         * modules/unistr/u8-strspn: New file.
18222         * modules/unistr/u16-strspn: New file.
18223         * modules/unistr/u32-strspn: New file.
18224         * lib/unistr/u8-strspn.c: New file.
18225         * lib/unistr/u16-strspn.c: New file.
18226         * lib/unistr/u32-strspn.c: New file.
18227         * lib/unistr/u-strspn.h: New file.
18228
18229         * modules/unistr/u8-strstr: New file.
18230         * modules/unistr/u16-strstr: New file.
18231         * modules/unistr/u32-strstr: New file.
18232         * lib/unistr/u8-strstr.c: New file.
18233         * lib/unistr/u16-strstr.c: New file.
18234         * lib/unistr/u32-strstr.c: New file.
18235         * lib/unistr/u-strstr.h: New file.
18236
18237         * modules/unistr/u8-strtok: New file.
18238         * modules/unistr/u16-strtok: New file.
18239         * modules/unistr/u32-strtok: New file.
18240         * lib/unistr/u8-strtok.c: New file.
18241         * lib/unistr/u16-strtok.c: New file.
18242         * lib/unistr/u32-strtok.c: New file.
18243         * lib/unistr/u-strtok.h: New file.
18244
18245         * modules/unistr/u8-uctomb: New file.
18246         * modules/unistr/u16-uctomb: New file.
18247         * modules/unistr/u32-uctomb: New file.
18248         * lib/unistr/u8-uctomb.c: New file.
18249         * lib/unistr/u16-uctomb.c: New file.
18250         * lib/unistr/u32-uctomb.c: New file.
18251
18252         * MODULES.html.sh (Unicode string functions): Add the new modules.
18253
18254 2007-01-08  Bruno Haible  <bruno@clisp.org>
18255
18256         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18257         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18258         subdirectories.
18259
18260 2007-01-08  Karl Berry  <karl@gnu.org>
18261
18262         * doc/error.texi: mention that main() fns must set program_name
18263         when progname is used.
18264
18265 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18266
18267         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18268         WCTYPE_H is empty, for the benefit of builds from non-distclean
18269         directories.  Problem reported by Eric Blake in
18270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18271
18272 2007-01-08  Bruno Haible  <bruno@clisp.org>
18273
18274         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18275         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18276         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18277         PROVIDE_CANONICALIZE_FILENAME_MODE.
18278         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18279
18280 2007-01-08  Bruno Haible  <bruno@clisp.org>
18281
18282         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18283         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18284         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18285         * lib/fts.c: Likewise.
18286         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18287
18288 2006-12-25  Bruno Haible  <bruno@clisp.org>
18289
18290         * modules/utf8-ucs4-safe: New file.
18291         * lib/utf8-ucs4-safe.h: New file.
18292         * lib/unistr/utf8-ucs4-safe.c: New file.
18293
18294         * modules/utf16-ucs4-safe: New file.
18295         * lib/utf16-ucs4-safe.h: New file.
18296         * lib/unistr/utf16-ucs4-safe.c: New file.
18297
18298         * MODULES.html.sh (Unicode string functions): Add the new modules.
18299
18300 2007-01-08  Bruno Haible  <bruno@clisp.org>
18301
18302         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18303         (Depends-on): Add unitypes.
18304         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18305         (u8_mbtouc_aux): Move out to separate file.
18306         (u8_mbtouc): Use ucs4_t, uint8_t types.
18307         * lib/unistr/utf8-ucs4.c: New file.
18308
18309         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18310         (Depends-on): Add unitypes.
18311         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18312         (u16_mbtouc_aux): Move out to separate file.
18313         (u16_mbtouc): Use ucs4_t, uint16_t types.
18314         * lib/unistr/utf16-ucs4.c: New file.
18315
18316         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18317         (Depends-on): Add unitypes.
18318         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18319         (u8_uctomb_aux): Move out to separate file.
18320         (u8_uctomb): Use ucs4_t, uint8_t types.
18321         * lib/unistr/ucs4-utf8.c: New file.
18322
18323         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18324         (Depends-on): Add unitypes.
18325         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18326         (u16_uctomb_aux): Move out to separate file.
18327         (u16_uctomb): Use ucs4_t, uint16_t types.
18328         * lib/unistr/ucs4-utf16.c: New file.
18329
18330 2006-12-25  Bruno Haible  <bruno@clisp.org>
18331
18332         * modules/unitypes: New file.
18333         * lib/unitypes.h: New file.
18334         * MODULES.html.sh (func_all_modules): New section "Unicode string
18335         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18336         this section. Add unitypes.
18337
18338 2007-01-08  Bruno Haible  <bruno@clisp.org>
18339
18340         Avoid variable names that conflict with those from libtool.
18341         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18342         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18343         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18344         library_names_spec to acl_library_names_spec, hardcode_* to
18345         acl_hardcode_*.
18346         Reported by Ralf Wildenhues.
18347
18348 2007-01-08  Bruno Haible  <bruno@clisp.org>
18349
18350         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18351         definition.
18352         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18353         definition.
18354         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18355         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18356         definition.
18357         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18358         definition.
18359         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18360         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18361         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18362         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18363         definition.
18364         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18365         definition.
18366         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18367         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18368         GC_USE_<algorithm>.
18369         * lib/gc-libgcrypt.c: Likewise.
18370         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18371         * modules/gc-arctwo (configure.ac): Likewise.
18372         * modules/gc-des (configure.ac): Likewise.
18373         * modules/gc-hmac-md5 (configure.ac): Likewise.
18374         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18375         * modules/gc-md2 (configure.ac): Likewise.
18376         * modules/gc-md4 (configure.ac): Likewise.
18377         * modules/gc-md5 (configure.ac): Likewise.
18378         * modules/gc-random (configure.ac): Likewise.
18379         * modules/gc-rijndael (configure.ac): Likewise.
18380         * modules/gc-sha1 (configure.ac): Likewise.
18381
18382 2007-01-08  Bruno Haible  <bruno@clisp.org>
18383
18384         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18385         macro definition.
18386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18387         definition.
18388         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18389         definition.
18390         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18391         * modules/fcntl-safer (configure.ac): Likewise.
18392         * modules/fopen-safer (configure.ac): Likewise.
18393         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18394         GNULIB_FWRITEERROR macro definition.
18395
18396 2007-01-08  Bruno Haible  <bruno@clisp.org>
18397
18398         * m4/gnulib-common.m4: New file.
18399         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18400         (func_get_filelist): Add m4/gnulib-common.m4.
18401
18402 2007-01-08  Bruno Haible  <bruno@clisp.org>
18403
18404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18405         command.
18406
18407 2007-01-08  Jim Meyering  <jim@meyering.net>
18408
18409         Use a more robust test for a "can't happen" condition.
18410         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18411         narrowed the st_size value.  Presuming the "can't happen" condition
18412         is true, that narrowing could conceivably convert an invalid st_size
18413         value into a valid one.  Instead, use a change based on Matthew
18414         Woehlke's original patch.
18415
18416         Slight readability improvement: use an assert-like macro
18417         in place of literal "abort ()" uses.
18418         * lib/fts.c (fts_assert): Define.
18419         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18420         Use this macro instead of a bare 'abort'.
18421
18422 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18423
18424         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18425         simply work around them.
18426         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18427         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18428         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18429         declaring.
18430         Don't bother to define as macros, since the standard doesn't require it.
18431         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18432         longer worry about IRIX 5.3.
18433         (HAVE_WCTYPE_CTMP_BUG): Remove.
18434
18435 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18438         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18439         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18440         Problems reported by Georg Schwarz for IRIX 5.3.
18441
18442         * gnulib-tool (autoconf_minversion): Take the maximum version number
18443         found, not the minimum.  Problem reported by James Youngman.
18444
18445 2007-01-03  Karl Berry  <karl@gnu.org>
18446
18447         * doc/error.texi: new file, explaining interaction with progname.
18448         * doc/gnulib.texi: include it.  Update copyright.
18449
18450 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18451
18452         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18453         AC_CANONICAL_HOST, to improve autobuild outputs.
18454
18455 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18456             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18457
18458         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18459         sockets, server sockets, and other file descriptors.  Count errors
18460         to compute the return value.  Reorder the code a bit to be easier
18461         to follow.  Don't set event bits that were not requested (except
18462         POLLERR and POLLHUP).
18463
18464 2007-01-01  Bruno Haible  <bruno@clisp.org>
18465
18466         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18467
18468 2007-01-03  Jim Meyering  <jim@meyering.net>
18469
18470         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18471
18472 2007-01-02  Bruno Haible  <bruno@clisp.org>
18473
18474         * modules/settime (Include): Require timespec.h.
18475         * modules/nanosleep (Include): Likewise.
18476
18477 2007-01-01  Bruno Haible  <bruno@clisp.org>
18478
18479         * gnulib-tool (func_emit_copyright_notice): Bump year.
18480         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18481
18482 2007-01-01  Bruno Haible  <bruno@clisp.org>
18483
18484         Improve support for OpenBSD.
18485         * build-aux/config.rpath (libname_spec): Export.
18486         (library_names_spec): New variable. Export.
18487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18488         library_names_spec from the config.rpath output. Locate shared library
18489         through the name pattern in library_names_spec.
18490
18491 2007-01-01  Eric Blake  <ebb9@byu.net>
18492
18493         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18494
18495 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18496
18497         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18498         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18499         assume the C locale, and avoid an "eval" that could cause trouble.
18500         Problem with SORT reported by Bob Proulx.
18501
18502         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18503         Define.  Trivial patch from Henning Nielsen Lund, originally
18504         sent to bug-grep@gnu.org today.
18505
18506 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18507
18508         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18509         struct stat.  Problem reported by Henning Nielsen Lund.
18510         * lib/acl.c: Include acl.h first, to check interface.  Don't
18511         bother to include sys/types.h and sys/stat.h again.
18512
18513 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18514
18515         Import the following change from libc; problem reported by
18516         Sven Verdoolaege.
18517
18518         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18519
18520         [BZ #1373]
18521         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18522
18523 2006-12-28  Jim Meyering  <jim@meyering.net>
18524
18525         * build-aux/announce-gen: Do not assume that the package
18526         builds any of tar.gz, tar.bz2, and .xdelta files.
18527         Suggestion from Simon Josefsson.
18528
18529 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18530
18531         * modules/announce-gen: New file.
18532
18533 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18534
18535         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18536         handles its gotchas now.
18537         * lib/mbswidth.c: Likewise.
18538         * lib/wcwidth.h: Likewise.
18539         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18540         and iswcntrl; the wctype module does this stuff now.
18541         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18543         * modules/mbchar (Depends-on): Add wctype.
18544         * modules/mbswidth (Depends-on): Likewise.
18545         * modules/wcwidth (Depends-on): Likewise.
18546
18547 2006-12-27  Eric Blake  <ebb9@byu.net>
18548
18549         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18550         module uses more than what <wctype.h> is required to provide.
18551
18552 2006-12-26  Eric Blake  <ebb9@byu.net>
18553
18554         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18555
18556 2006-12-26  Eric Blake  <ebb9@byu.net>
18557
18558         * modules/absolute-header: New module.
18559         * modules/fcntl (Depends-on): Depend on it.
18560         * modules/inttypes (Depends-on): Likewise.
18561         * modules/stdint (Depends-on): Likewise.
18562         * modules/sys_stat (Depends-on): Likewise.
18563         * modules/wctype (Depends-on): Likewise.
18564         * MODULES.html.sh (Support for building libraries and
18565         executables): Document it.
18566
18567 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18568
18569         * gnulib-tool (SED): Remove, undoing previous change.
18570         The problem was that it broke coreutils on Solaris, because
18571         "sed --posix" leaked into a makefile.
18572         (sed): New alias, if 'alias' and GNU sed.
18573
18574 2006-12-24  Jim Meyering  <jim@meyering.net>
18575
18576         Work around an fchownat bug in glibc-2.4:
18577         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18578         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18579         in spite of the -P option.
18580         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18581         New macros.
18582         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18583         * modules/openat (Files): Add lib/fchownat.c.
18584         * lib/openat.c (fchownat): Don't define here.  Move to...
18585         * lib/fchownat.c: ...this new file.
18586
18587 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18588
18589         Fix bug reported by Bruno Haible in
18590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18591         where quotearg.c didn't compile on Mac OS X 10.2 because it
18592         lacks <wchar.h> and wint_t.
18593         * lib/wctype_.h (__wctype_wint_t): New type.
18594         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18595         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18596         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18597         Arg is now of type __wctype_wint_t, not wint_t.
18598         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18599         substitute HAVE_WINT_T.
18600         * modules/wctype (Files): Add m4/wint_t.m4.
18601         (wctype.h): Substitute HAVE_WINT_T.
18602
18603 2006-12-23  Bruno Haible  <bruno@clisp.org>
18604
18605         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18606
18607 2006-12-23  Bruno Haible  <bruno@clisp.org>
18608
18609         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18610         S_ISLNK.
18611         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18612         mingw.
18613
18614 2006-12-22  Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/copy-file.c: Include acl.h.
18617         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18618         Close the file descriptors only after being done with copy_acl.
18619         * modules/copy-file (Depends-on): Add acl.
18620
18621 2006-12-22  Bruno Haible  <bruno@clisp.org>
18622
18623         * gnulib-tool (SED): New variable.
18624         Use $SED instead of sed everywhere.
18625
18626 2006-12-22  Bruno Haible  <bruno@clisp.org>
18627
18628         * modules/no-c++: New file.
18629         * m4/no-c++.m4: New file.
18630         * MODULES.html.sh (Support for building libraries and executables):
18631         Add no-c++.
18632
18633 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18634
18635         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18636         Include <limits.h>, and use its INT_MAX to rewrite the
18637         j loop so that it does not overflow 'int'.  Problem reported by
18638         Ralf Wildenhues in
18639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18640         Play it safe by shifting left by 1 rather than multiplying by 2,
18641         as GCC is less likely to optimize this away when the value
18642         is signed (when it assumes overflow leads to undefined behavior).
18643         Also, don't assume time_t uses two's complement.
18644
18645 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18646
18647         * MODULES.html.sh: New module wctype.
18648         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18649         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18650         <wctype.h>, since the new wctype module should fix this.
18651         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18652         the wctype module should arrange for it.
18653         * lib/regex_internal.h: Likewise.
18654         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18655         since the wctype module should handle this now.
18656         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18657         * modules/fnmatch (Depends-on): Add wctype.
18658         * modules/quotearg (Depends-on): Likewise.
18659         * modules/regex (Depends-on): Likewise.
18660
18661 2006-12-19  Bruno Haible  <bruno@clisp.org>
18662
18663         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18664         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18665
18666 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18667
18668         * modules/savewd (Depends-on): Fix dependency on fcntl.
18669
18670 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18673         conforms to C99, rather than relying on the user's environment
18674         setting of STDINT_H.
18675
18676 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18677         and Eric Blake  <ebb9@byu.net>
18678
18679         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18680         This is more consistent with the other defines here.
18681         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18682         Port to z/OS.  Problem reported by Paul Gilmartin.
18683         Change local vars to use gl_ prefix rather than ac_.
18684         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18685         with other defines.
18686         * modules/double-slash-root: New module.
18687         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18688         (Depends-on): Add double-slash-root.
18689         * MODULES.html.sh (File system functions): Mention new module.
18690
18691 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18692
18693         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18694         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18695         This is for the benefit of gzip, which doesn't do i18n.
18696
18697 2006-12-12  Jim Meyering  <jim@meyering.net>
18698
18699         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18700         Reported by Andreas Schwab <schwab@suse.de>.
18701
18702 2006-12-12  Bruno Haible  <bruno@clisp.org>
18703
18704         Merge these changes.
18705         2006-09-05  Bruno Haible  <bruno@clisp.org>
18706         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18707         iconv_alloc succeeded.
18708         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18709         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18710         test for " && dest " at the end - dest is always != NULL there. Call
18711         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18712         with 2xNULL arguments, also to flush the state storage. Handle the
18713         IRIX iconv behaviour. Realloc the final result, to throw away unused
18714         memory.
18715
18716 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18717
18718         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18719         and fchmodat unconditionally, since glibc 2.4 has them.
18720         Problem reported by Arkadiusz Miskiewicz.
18721
18722 2006-12-10  Bruno Haible  <bruno@clisp.org>
18723
18724         * gnulib-tool (func_import): Show the include files only for those
18725         modules that are copied and specified.
18726         Reported by Karl Berry.
18727
18728 2006-12-08  Jim Meyering  <jim@meyering.net>
18729
18730         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18731         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18732
18733         * build-aux/announce-gen: Add two new options, both optional:
18734         --bootstrap-tools=TOOL_LIST
18735               a comma-separated list of tools, e.g.,
18736               autoconf,automake,bison,gnulib
18737         --gnulib-snapshot-date=DATE
18738               if gnulib is in the bootstrap tool list,
18739               then report this as the snapshot date.
18740               If not specified, use the current date/time.
18741               If you specify a date here, be sure it's UTC.
18742
18743 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18744
18745         * tests/test-argp-2.sh: Fix test to match actual output.
18746         (func_compare): Fix sed script to be portable.
18747
18748 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18749
18750         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18751         workaround for this case.  It is not autoconfigured now; offhand
18752         it's hard to see how to autoconfigure it.
18753
18754 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18755
18756         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18757         a directory that is about to be chowned.  Such a directory's
18758         initial file permissions should permit the owner only and this
18759         should not be changed until after the chown, since the group and
18760         other bits would be incorrect if they granted permission before
18761         the chown.
18762
18763         Fix porting problem for iswctype reported by Georg Schwarz in:
18764         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18765         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18766         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18767         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18768         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18769
18770 2006-12-03  Jim Meyering  <jim@meyering.net>
18771
18772         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18773         p->fts_statp may not yet be defined.
18774         (fts_read): Instead, set it in the caller, once p->fts_statp is
18775         sure to be defined, and corresponds to a top-level directory.
18776         This bug made du -x fail.  Here's the coreutils test case:
18777         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18778         Reported by Mike Frysinger.
18779
18780 2006-12-01  Jim Meyering  <jim@meyering.net>
18781
18782         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18783         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18784         Reported by Simon Josefsson.
18785
18786 2006-11-30  Jim Meyering  <jim@meyering.net>
18787
18788         * m4/warning.m4: Use the all-permissive copyright notice
18789         recommended by RMS (rather than LGPL).
18790         * m4/vararrays.m4: Likewise.
18791         * m4/flexmember.m4: Likewise.
18792
18793 2006-11-29  Bruno Haible  <bruno@clisp.org>
18794
18795         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18796         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18797         using +=.
18798         Reported by Simon Josefsson <simon@josefsson.org>.
18799
18800 2006-11-28  James Youngman <jay@gnu.org>
18801
18802         * README: Advise users that they might find the bug-gnulib@gnu.org
18803         and autotools-announce@gnu.org mailing lists useful.
18804
18805 2006-11-28  Bruno Haible  <bruno@clisp.org>
18806
18807         * m4/ptrdiff_max.m4: Remove file.
18808
18809 2006-11-21  Bruno Haible  <bruno@clisp.org>
18810
18811         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18812         _AC_COMPUTE_INT.
18813         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18814         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18815         _AC_COMPUTE_INT.
18816         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18817         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18818         _AC_COMPUTE_INT.
18819         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18820
18821 2006-11-28  Jim Meyering  <jim@meyering.net>
18822
18823         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18824         warning from "gcc -Wshadow" about shadowing the builtin.
18825
18826 2006-11-27  Bruno Haible  <bruno@clisp.org>
18827
18828         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18829         _AC_COMPUTE_INT.
18830         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18831
18832 2006-11-27  Bruno Haible  <bruno@clisp.org>
18833             Paul Eggert  <eggert@cs.ucla.edu>
18834
18835         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18836
18837 2006-11-26  Bruno Haible  <bruno@clisp.org>
18838
18839         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18840         noinst_LTLIBRARIES.
18841
18842 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18843             Bruno Haible  <bruno@clisp.org>
18844
18845         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18846         if compiling with "gcc -ansi".
18847
18848 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18849
18850         Fix some incompatibilities with gcc -ansi -pedantic.
18851         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18852         if compiling pedantically with GCC, unless it's C99 or later.
18853         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18854         it mishandles gcc -ansi -pedantic as well.
18855         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18856         if gcc -pedantic.
18857         * lib/regexec.c (check_node_accept_bytes): Don't use auto
18858         initializers for struct if -pedantic, unless it's C99 or later.
18859
18860 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
18861
18862         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18863         Don't close an fd more than once. Identical atimes indicate
18864         success, not failure.
18865
18866 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
18867
18868         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18869
18870 2006-11-23  Jim Meyering  <jim@meyering.net>
18871
18872         * build-aux/announce-gen: New file.  From coreutils.
18873
18874 2006-11-22  Jim Meyering  <jim@meyering.net>
18875
18876         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18877         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18878         (fts_read): Use a temporary to narrow the overused st_size member
18879         before using it in a switch statement.  Reported by Matthew Woehlke.
18880
18881         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18882         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18883
18884 2006-11-20  Bruno Haible  <bruno@clisp.org>
18885
18886         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18887         changequote instead of pairs of brackets.
18888         Reported by Andreas Schwab <schwab@suse.de>.
18889
18890 2006-11-21  Jim Meyering  <jim@meyering.net>
18891
18892         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18893         so as to remain compatible with older compilers.
18894         Patch from Michael Deutschmann.
18895
18896 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18897
18898         * MODULES.html.sh (File system functions): Add openat.
18899
18900         * lib/openat.h (rpl_fstatat): New macro, if
18901         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18902         (fstatat): Define to rpl_fstatat under the same conditions,
18903         unless COMPILING_FSTATAT.
18904         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18905         seems to have the bug.
18906         * lib/fstatat.c: New file.
18907         * modules/openat (Files): Add it.
18908
18909 2006-11-20  Bruno Haible  <bruno@clisp.org>
18910
18911         * Makefile: New file.
18912
18913 2006-11-20  Jim Meyering  <jim@meyering.net>
18914
18915         The beginnings of syntax-related checks for gnulib.
18916         * lib/Makefile: New file.
18917         * lib/t-idcache: New script.  Ensure that the two halves of
18918         idcache.c stay in sync.
18919
18920         * lib/idcache.c: Adjust comments in user- and group- portions to
18921         be more accurate, and to be consistent with one another.
18922
18923 2006-11-20  Jim Meyering  <jim@meyering.net>
18924
18925         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18926         continue using the flexible array member (thus, this module performs
18927         half as many malloc calls), with the addition that...
18928         (getgroup, getuser): Consistently record a non-match via an empty
18929         "name" string, and map an empty string match to a NULL return value.
18930         * modules/idcache (Depends-on): Re-add flexmember.
18931
18932         * lib/idcache.c (getuser): Remove all uses of the register keyword.
18933         (getuidbyname, getgroup, getgidbyname): Likewise.
18934
18935         Use cleaner syntax: NULL rather than 0.
18936         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18937
18938 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18939
18940         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18941         It mishandled the case where the group was missing.
18942         Problem reported by Greg Schafer.
18943         * modules/idcache: Likewise.
18944
18945 2006-11-18  Jim Meyering  <jim@meyering.net>
18946
18947         * check-module (%exempt_header): Add exception for some
18948         conditionally-included headers.
18949
18950         * modules/i-ring (Depends-on): Add verify.
18951         (License): Change to LGPL.
18952
18953 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18954
18955         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18956         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18957         and inttostr.h.  Use snprintf rather than uinttostr, so that
18958         LGPLed code doesn't depend on GPLed.
18959
18960 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         * modules/inline (License): Change from GPL to LGPL.
18963
18964 2006-11-17  Jim Meyering  <jim@meyering.net>
18965
18966         * modules/d-type (License): Switch to LGPL.
18967
18968 2006-11-15  Bruno Haible  <bruno@clisp.org>
18969
18970         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18971
18972 2006-11-15  Eric Blake  <ebb9@byu.net>
18973
18974         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18975         the module dependency.
18976
18977 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18978             Bruno Haible  <bruno@clisp.org>
18979
18980         * gnulib-tool (func_create_testdir): Add license consistency check.
18981
18982 2006-11-15  Eric Blake  <ebb9@byu.net>
18983
18984         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18985         random "(cached)" in configure output.
18986
18987 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18988
18989         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18990         test for conforming inttypes.h is both announced and cached.
18991
18992         * MODULES.html.sh (seen_modules, seen_files): New variables.
18993         (func_module): Rewrite to use a few less gnulib-tool and sed
18994         invocations.  Avoid a couple of quadratic algorithms for ...
18995         (missed_modules, missed_files): ... these, with ...
18996         (func_append, func_tmpdir): ... these new functions, from
18997         gnulib-tool.  Analogously, install traps for cleanup.
18998
18999         * tests/test-gc.c (main): Remove unused variables.
19000         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19001
19002 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19003
19004         * modules/inttostr (License): Change to LGPL.
19005
19006 2006-11-14  Eric Blake  <ebb9@byu.net>
19007
19008         * modules/tempname (License): Change to LGPL.
19009
19010 2006-11-14  Eric Blake  <ebb9@byu.net>
19011
19012         * doc/functions.texi (Function Portability): *printf functions on
19013         Cygwin now understand all POSIX size specifiers.
19014
19015 2006-11-14  Bruno Haible  <bruno@clisp.org>
19016
19017         * modules/c-ctype (License): Change to LGPL.
19018
19019 2006-11-12  Bruno Haible  <bruno@clisp.org>
19020
19021         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19022         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19023         for GNOME libraries, for which the include files are installed in
19024         subdirectories of $prefix/include.
19025
19026 2006-11-12  Bruno Haible  <bruno@clisp.org>
19027
19028         * m4/lib-link.m4: Require at least autoconf-2.54.
19029         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19030         name to underscores for the --with option.
19031
19032 2006-11-13  Bruno Haible  <bruno@clisp.org>
19033
19034         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19035         the tests directory.
19036         Reported by Ralf Wildenhues.
19037
19038 2006-11-13  Bruno Haible  <bruno@clisp.org>
19039
19040         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19041         (func_emit_initmacro_end): Undo the override here.
19042         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19043         Works around the famous automake error in coreutils.
19044
19045 2006-11-13  Eric Blake  <ebb9@byu.net>
19046
19047         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19048         element, not its node.
19049
19050 2006-11-12  Bruno Haible  <bruno@clisp.org>
19051
19052         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19053         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19054
19055 2006-11-12  Bruno Haible  <bruno@clisp.org>
19056
19057         * gnulib-tool: New option --local-symlink.
19058         (func_usage): Document it.
19059         (lsymbolic): New variable.
19060         (func_import, func_create_testdir): If --symlink was not specified,
19061         test whether --local-symlink was specified and the file comes from
19062         the local_gnulib_dir.
19063
19064 2006-11-12  Bruno Haible  <bruno@clisp.org>
19065
19066         * gnulib-tool (func_ln): New function.
19067         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19068
19069 2006-11-12  Bruno Haible  <bruno@clisp.org>
19070
19071         Finish support for source files in subdirectories.
19072         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19073         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19074         AUTOMAKE_OPTIONS.
19075         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19076
19077 2006-11-12  Bruno Haible  <bruno@clisp.org>
19078
19079         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19080         EXTRA_lib_SOURCES augmentation.
19081         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19082
19083 2006-11-12  Jim Meyering  <jim@meyering.net>
19084
19085         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19086         file descriptors.  This also averts a failure on systems with
19087         native openat support when a traversed directory lacks "x" access.
19088         * lib/fts_.h: Include "i-ring.h"
19089         (struct FTS) [fts_fd_ring]: New member.
19090         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19091         (FCHDIR): Add parentheses.
19092         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19093         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19094         When descending, rather than simply closing the previous
19095         fts_cwd_fd value, push that file descriptor onto the ring.
19096         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19097         (fts_open): Initialize the new fd_ring member.
19098         (fts_close): Clear the ring.
19099         (fts_safe_changedir): When possible, use our new fd_ring to skip
19100         the diropen and fstat and dev/ino comparison that would normally
19101         accompany a virtual `chdir ("..")'.
19102
19103         * modules/fts (Depends-on): Add i-ring.
19104         * modules/i-ring: New module.
19105         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19106         * m4/i-ring.m4: New file.
19107
19108 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19109
19110         * gnulib-tool (func_create_testdir): Fix replacement of
19111         `build-aux' in configure.ac.  Run autotools in gltests
19112         subdirectory.
19113         (func_create_testdir, func_create_megatestdir, test): There is
19114         no need for '--force' in most autotool invocations in a new
19115         tree.  Actually fail the whole test if any of the tools, or the
19116         configure or make stages fail.
19117
19118         Sync from Automake.
19119         * build-aux/gnupload: Revert last change.  Add pointer to upload
19120         instructions of the GNU Maintenance Instructions.
19121         Suggestion by Karl Berry.
19122
19123 2006-11-10  Jim Meyering  <jim@meyering.net>
19124
19125         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19126
19127 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19128
19129         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19130         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19131         (bind_textdomain_codeset) [! ENABLE_NLS]:
19132         Evaluate all the arguments.  That way, callers get compatible behavior
19133         if the arguments have side effects.  Also, it avoids some GCC
19134         diagnostics in some cases; Joel E. Denny reported problems when Bison
19135         was configured with --enable-gcc-warnigs.
19136
19137 2006-11-10  Jim Meyering  <jim@meyering.net>
19138
19139         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19140         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19141         account.
19142
19143 2006-11-10  Jim Meyering  <jim@meyering.net>
19144
19145         * modules/inline: New file/module.
19146         * modules/xalloc (Files): Remove m4/inline.m4.
19147         (Depends-on): Add inline, instead.
19148         * modules/oset: Likewise.
19149         * modules/list: Likewise.
19150
19151 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19152
19153         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19154         Problem reported by Matthew Woehlke.
19155
19156 2006-11-09  Bruno Haible  <bruno@clisp.org>
19157
19158         * lib/tempname.c (gen_tempname): Remove variant that invokes
19159         __gen_tempname.
19160         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19161         __gen_tempname.
19162
19163 2006-11-08  Bruno Haible  <bruno@clisp.org>
19164
19165         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19166         to 'yes' instead of 'cross-compiling'.
19167
19168 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19169
19170         * lib/quotearg.h (quotearg_free): New decl.
19171         * lib/quotearg.c (quotearg_free): New function.
19172         (slot0, nslots, slotvec0, slotvec):
19173         Now file-scope so that quotearg_free can get at them.
19174
19175 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19176
19177         Sync from Automake.
19178         * build-aux/gnupload: Add missing 'gnu' to example URL.
19179         Report by Karl Berry.
19180
19181 2006-11-08  Bruno Haible  <bruno@clisp.org>
19182
19183         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19184         Suggested by Paul Eggert.
19185
19186 2006-11-08  Jim Meyering  <jim@meyering.net>
19187
19188         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19189         It's already included if !_LIBC.
19190         (fts_safe_changedir): Add a comment.
19191
19192 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19193
19194         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19195         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19196         Matthew Woehlke.
19197
19198         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19199         definitions up, to avoid colliding with change below.
19200         (static_inline) [HAVE_INLINE]: New macro.
19201         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19202         Provide extern decls when !HAVE_INLINE.  Do not define unless
19203         static_inline is defined, either by us or by xmalloc.c.  Use
19204         static_inline rather than static inline.
19205         (XCALLOC): Optimize sizeof(T) = 1 case.
19206         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19207
19208 2006-11-07  Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19211         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19212         AC_C_INLINE.
19213         * modules/xalloc (Files): Add m4/inline.m4.
19214
19215 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19216
19217         * README: Fix typo.
19218         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19219         (Miscellanous Notes): ...from this.
19220
19221 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19224         Mention that offsetof should be used instead of sizeof.
19225         From Bruno Haible.
19226
19227 2006-11-07  Bruno Haible  <bruno@clisp.org>
19228
19229         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19230
19231 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19232
19233         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19234         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19235         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19236         (gl_tree_add_before, gl_tree_add_after):
19237         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19238         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19239         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19240         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19241         (gl_linked_add_after, gl_linked_add_at): Likewise.
19242         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19243         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19244         (gl_tree_add_before, gl_tree_add_after): Likewise.
19245         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19246         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19247         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19248
19249 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19250
19251         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19252
19253 2006-11-06  Bruno Haible  <bruno@clisp.org>
19254
19255         * m4/inline.m4: New file.
19256         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19257         * modules/list (Files): Add m4/inline.m4.
19258         * modules/oset (Files): Likewise.
19259
19260 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19261
19262         * lib/idcache.c: Include <stddef.h>, for offsetof.
19263         (struct userid.name): Change from char * to a flexible array member.
19264         All uses changed.
19265         * modules/idcache (Depends-on): Add flexmember.
19266
19267         * MODULES.html.sh (Core language properties): New module flexmember.
19268         * modules/flexmember, m4/flexmember.m4: New files.
19269
19270         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19271         inline functions that are identical with the old xnmalloc_inline,
19272         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19273         that we can avoid some unnecessary integer multiplications and
19274         divisions in the common case where the element size is known at
19275         compile time.
19276         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19277         needed.
19278         (xnboundedmalloc): Remove.
19279         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19280         arguments, for consistency with rest of this header.
19281         (xcharalloc): Rewrite using XNMALLOC.
19282         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19283         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19284         versions have been moved to lib/xalloc.h and renamed to be the
19285         non-*_inline versions.
19286         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19287         and xnrealloc functions, since those functions are now inline and
19288         now call us.
19289         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19290         renaming described above.
19291         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19292         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19293         captures the dependency in AC_C_INLINE.
19294
19295         New module canonicalize-lgpl, proposed by Charles Wilson in
19296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19297         with a few small changes afterwards.
19298         * MODULES.html.sh (File system functions): New module
19299         canonicalize-lgpl.
19300         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19301         and canonicalize_file_name.
19302         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19303         * modules/canonicalize-lgpl: New files.
19304
19305 2006-11-05  Bruno Haible  <bruno@clisp.org>
19306
19307         * gnulib-tool (func_import, func_create_testdir): Create directories
19308         also for files in subdirectories of lib/.
19309
19310 2006-11-05  Bruno Haible  <bruno@clisp.org>
19311
19312         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19313         ANSI C compliant.
19314
19315 2006-11-03  Bruno Haible  <bruno@clisp.org>
19316
19317         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19318         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19319         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19320         (xnboundedmalloc): New inline function.
19321         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19322         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19323         xmalloc.
19324         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19325         xmalloc.
19326         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19327         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19328         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19329         xmalloc.
19330         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19331         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19332         xmalloc.
19333         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19334         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19335         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19336         xmalloc.
19337         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19338         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19339         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19340         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19341         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19342         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19343         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19344
19345 2006-11-03  Bruno Haible  <bruno@clisp.org>
19346
19347         * lib/c-ctype.h [C++]: Define functions without name mangling.
19348         * lib/fwriteerror.h [C++]: Likewise.
19349         * lib/gcd.h [C++]: Likewise.
19350         * lib/linebreak.h [C++]: Likewise.
19351
19352 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19353
19354         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19355         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19356         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19357         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19358         Check for functions and headers just once.
19359         Check for declaration of canonicalize_file_name.
19360         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19361
19362 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19363
19364         * gnulib-tool (func_import): Fix typo in actioncmd.
19365
19366 2006-11-02  Bruno Haible  <bruno@clisp.org>
19367
19368         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19369         newline sequence in the Makefile.am snippet as a space, like "make"
19370         does.
19371         Reported by Roger Persson <perrog@gmail.com>.
19372
19373 2006-11-01  Bruno Haible  <bruno@clisp.org>
19374
19375         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19376         already declared in <string.h>.
19377         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19378
19379 2006-11-01  Bruno Haible  <bruno@clisp.org>
19380
19381         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19382         * lib/strcase.h: Include <string.h>.
19383         (strcasecmp): Define to rpl_strcasecmp here.
19384
19385 2006-11-01  Bruno Haible  <bruno@clisp.org>
19386
19387         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19388
19389 2006-11-01  Eric Blake  <ebb9@byu.net>
19390
19391         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19392
19393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19394
19395 2006-10-29  Bruno Haible  <bruno@clisp.org>
19396
19397         Make it compile in C++ mode.
19398         * lib/full-write.c (full_rw): Add a cast.
19399
19400 2006-11-01  Bruno Haible  <bruno@clisp.org>
19401
19402         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19403         be POSIX compliant.
19404         Reported by Roger Persson <perrog@gmail.com>.
19405
19406 2006-11-01  Eric Blake  <ebb9@byu.net>
19407
19408         * lib/getopt_.h: Fix comments.
19409
19410 2006-10-31  Eric Blake  <ebb9@byu.net>
19411
19412         * modules/tmpdir (Depends-on): Add sys_stat.
19413         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19414         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19415         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19416         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19417         tempname.
19418
19419 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19420
19421         Avoid some C++ diagnostics reported by Bruno Haible.
19422         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19423         xmalloc.
19424         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19425         (struct slotvec): Move to top level.
19426         (quotearg_n_options): Rewrite to avoid xmalloc.
19427         * lib/xalloc.h (xcharalloc): New function.
19428         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19429         [defined __cplusplus]: Add function template that provides result
19430         type propagation.  This part of the change is from Bruno Haible.
19431
19432 2006-10-29  Bruno Haible  <bruno@clisp.org>
19433
19434         Make it compile in C++ mode.
19435         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19436         * lib/strnlen1.c (strnlen1): Cast memchr result.
19437         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19438         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19439         (create_temp_dir): Rename local variable 'template'.
19440         (compile_csharp_using_sscli): Add cast.
19441         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19442         * lib/findprog.c (find_in_path): Likewise.
19443         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19444         * lib/wait-process.c (register_slave_subprocess): Likewise.
19445
19446 2006-10-22  Bruno Haible  <bruno@clisp.org>
19447
19448         * modules/tsearch: New file.
19449         * lib/tsearch.h: New file.
19450         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19451         * m4/tsearch.m4: New file.
19452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19453
19454 2006-10-29  Eric Blake  <ebb9@byu.net>
19455
19456         * lib/arcfour.c: Assume config.h.
19457         * lib/arctwo.c: Likewise.
19458         * lib/base64.c: Likewise.
19459         * lib/check-version.c: Likewise.
19460         * lib/crc.c: Likewise.
19461         * lib/des.c: Likewise.
19462         * lib/gc-gnulib.c: Likewise.
19463         * lib/gc-libgcrypt.c: Likewise.
19464         * lib/gc-pbkdf2-sha1.c: Likewise.
19465         * lib/getaddrinfo.c: Likewise.
19466         * lib/getdelim.c: Likewise.
19467         * lib/getline.c: Likewise.
19468         * lib/hmac-md5.c: Likewise.
19469         * lib/hmac-sha1.c: Likewise.
19470         * lib/iconvme.c: Likewise.
19471         * lib/md2.c: Likewise.
19472         * lib/md4.c: Likewise.
19473         * lib/memxor.c: Likewise.
19474         * lib/read-file.c: Likewise.
19475         * lib/readline.c: Likewise.
19476         * lib/rijndael-alg-fst.c: Likewise.
19477         * lib/rijndael-api-fst.c: Likewise.
19478         * lib/xgetdomainname.c: Likewise.
19479
19480 2006-10-28  Eric Blake  <ebb9@byu.net>
19481
19482         * lib/xstrndup.c: Assume config.h.
19483
19484 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19485
19486         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19487         stat-macros.h is now for our own macros, whereas stat_h is for
19488         macros in the <sys/stat.h> name space.
19489         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19490         (STAT_MACROS_H): Remove.
19491         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19492         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19493         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19494         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19495         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19496         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19497         Move these macros to ...
19498         * lib/stat_.h: here.  Don't include stat-macros.h.
19499         * lib/canonicalize.c: Don't include stat-macros.h.
19500         * lib/chown.c: Likewise.
19501         * lib/euidaccess.c: Likewise.
19502         * lib/file-type.c: Likewise.
19503         * lib/filemode.c: Likewise.
19504         * lib/glob.c: Likewise.
19505         * lib/isapipe.c: Likewise.
19506         * lib/lchown.c: Likewise.
19507         * lib/lstat.c: Likewise.
19508         * lib/mkdir-p.c: Likewise.
19509         * lib/rmdir.c: Likewise.
19510         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19512         unless mkdir isn't declared, to speed up 'configure'.
19513         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19514         would define all the S_* symbols.
19515         * modules/canonicalize (Depends-on):
19516         Depend on sys_stat, not stat-macros.
19517         * modules/chown: Likewise.
19518         * modules/euidaccess: Likewise.
19519         * modules/filemode: Likewise.
19520         * modules/file-type: Likewise.
19521         * modules/glob: Likewise.
19522         * modules/isapipe: Likewise.
19523         * modules/lchown: Likewise.
19524         * modules/lstat: Likewise.
19525         * modules/mkancesdirs: Likewise.
19526         * modules/rmdir: Likewise.
19527         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19528         * modules/modechange: Likewise.
19529         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19530         (configure.ac): Remove gl_STAT_MACROS.
19531         * modules/sys_stat (Depends-on): Remove stat-macros.
19532
19533 2006-10-27  Bruno Haible  <bruno@clisp.org>
19534
19535         * m4/signed.m4: Remove file.
19536         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19537         invocation.
19538         * modules/vasnprintf (Files): Remove m4/signed.m4.
19539
19540 2006-10-27  Bruno Haible  <bruno@clisp.org>
19541
19542         Update to GNU gettext 0.16.
19543         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19544         m4/inttypes-h.m4, m4/signed.m4.
19545         * m4/gettext.m4: Update to GNU gettext 0.16.
19546         * m4/intl.m4: New file, from GNU gettext.
19547         * m4/intldir.m4: New file, from GNU gettext.
19548         * config/srclist.txt: Update
19549
19550 2006-10-27  Eric Blake  <ebb9@byu.net>
19551
19552         * MODULES.html.sh: Document tempname.
19553         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19554         dependencies.
19555         (Files): Move lib/tempname.c...
19556         * modules/tempname: ...to this new module.
19557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19558         (gl_PREREQ_TEMPNAME): Move...
19559         * m4/tempname.m4: ...to this new file.
19560         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19561         * modules/sys_stat (Depends-on): Add stat-macros.
19562         * lib/stat_.h (includes): Pick up stat macros.
19563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19564         if stat macros are broken.
19565         * lib/tempname.c (includes): No need to include "stat-macros.h".
19566         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19567         (direxists, __path_search) [!_LIBC]: Don't compile these in
19568         gnulib; the tmpdir module covers that.
19569         * lib/tempname.h: New file.
19570
19571 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19572
19573         * COPYING: Explain how gnulib-tool converts licence headers.
19574         Almost all wording by Eric Blake.
19575
19576 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19577
19578         * lib/mbchar.h (is_basic_table): Make read-only.
19579         * lib/mbchar.c (is_basic_table): Likewise.
19580         Reported by John Darrington.
19581
19582 2006-10-25  Bruno Haible  <bruno@clisp.org>
19583
19584         * lib/progname.h (set_program_name): Undefine before defining.
19585
19586 2006-10-25  Bruno Haible  <bruno@clisp.org>
19587
19588         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19589         false for non-gcc C++ compilers.
19590         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19591
19592 2006-10-24  Bruno Haible  <bruno@clisp.org>
19593
19594         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19595         iconv implementations like Irix iconv.
19596
19597 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         * modules/vararrays: New file.
19600         * m4/vararrays.m4: New file, taken from diffutils.
19601         * MODULES.html.sh: New module vararrays.
19602
19603 2006-10-24  Karl Berry  <karl@gnu.org>
19604
19605         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19606         Don't call GNU Unix.
19607
19608 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19609
19610         * users.txt: Add Libtool.
19611
19612         Sync from Libtool:
19613
19614         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19615
19616         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19617         to gnulib's policy of including config.h unconditionally.
19618
19619 2006-10-24  Bruno Haible  <bruno@clisp.org>
19620
19621         * modules/wcwidth (Files): Add m4/wint_t.m4.
19622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19623         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19624
19625 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19626
19627         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19628         to pacify GCC with some -W flags enabled.  Problem reported by
19629         Bruno Haible.
19630
19631 2006-10-24  Jim Meyering  <jim@meyering.net>
19632
19633         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19634         Reported by Karl Berry.
19635
19636 2006-10-23  Bruno Haible  <bruno@clisp.org>
19637
19638         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19639
19640 2006-10-24  Bruno Haible  <bruno@clisp.org>
19641
19642         * lib/gl_list.h: Use C comment style, not C++ comment style.
19643
19644 2006-10-23  Eric Blake  <ebb9@byu.net>
19645
19646         * lib/getaddrinfo.c (includes): Add missing include.
19647
19648 2006-10-23  Bruno Haible  <bruno@clisp.org>
19649             Paul Eggert  <eggert@cs.ucla.edu>
19650
19651         Ability to rename obstack_free.
19652         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19653         obstack_free.
19654         (obstack_free): Invoke the __obstack_free macro.
19655         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19656
19657 2006-10-23  Bruno Haible  <bruno@clisp.org>
19658             Paul Eggert  <eggert@cs.ucla.edu>
19659
19660         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19661         __argc, __argv from the declaration. (They are defined as macros on
19662         mingw.)
19663
19664 2006-10-22  Bruno Haible  <bruno@clisp.org>
19665
19666         * doc/gnulib-intro.texi: New file.
19667         * doc/gnulib.texi: Include it.
19668
19669 2006-10-21  Bruno Haible  <bruno@clisp.org>
19670
19671         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19672         "Introduction", "Miscellanous Notes", "Particular Modules".
19673
19674 2006-10-21  Bruno Haible  <bruno@clisp.org>
19675
19676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19677         Change mostlyclean-local rule to avoid sh syntax error from bash
19678         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19679
19680 2006-10-23  Jim Meyering  <jim@meyering.net>
19681
19682         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19683         in place of snprintf.
19684
19685         * modules/inttostr (Files): Add lib/uinttostr.c.
19686         * lib/uinttostr.c (inttostr): New file/function.
19687         * lib/inttostr.h (uinttostr): Declare.
19688         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19689         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19690         Add uinttostr.
19691         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19692
19693 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19694
19695         * lib/canonicalize.c (ELOOP): Define if not already defined.
19696         Problem reported by Bruno Haible in
19697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19698
19699 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19702         Problem reported by Perry Smith and Ville Laurikari.
19703
19704         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19705         uses.
19706
19707 2006-10-19  Bruno Haible  <bruno@clisp.org>
19708
19709         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19710         for mingw.
19711
19712 2006-10-19  Bruno Haible  <bruno@clisp.org>
19713
19714         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19715         Needed for mingw.
19716
19717 2006-10-19  Bruno Haible  <bruno@clisp.org>
19718
19719         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19720
19721 2006-10-19  Bruno Haible  <bruno@clisp.org>
19722
19723         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19724         it.
19725
19726 2006-10-19  Bruno Haible  <bruno@clisp.org>
19727
19728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19729         invocation.
19730
19731 2006-10-19  Bruno Haible  <bruno@clisp.org>
19732
19733         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19734         mountlist by default.
19735
19736 2006-10-16  Bruno Haible  <bruno@clisp.org>
19737
19738         * lib/c-strstr.c: Include c-strstr.h.
19739
19740 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19741
19742         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19743         in a slash.
19744
19745 2006-10-18  Bruno Haible  <bruno@clisp.org>
19746
19747         * lib/lock.h [C++]: Wrap definitions in extern "C".
19748
19749 2006-10-18  Bruno Haible  <bruno@clisp.org>
19750
19751         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19752         gl_LIBOBJS list.
19753
19754 2006-10-18  Bruno Haible  <bruno@clisp.org>
19755
19756         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19757
19758 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19759
19760         * lib/xstrtol.h: Include gettext.h.
19761         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19762         Problem reported by Eric Blake.
19763         * modules/xstrtol (Depends-on): Add gettext-h.
19764
19765 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19766
19767         * lib/strftime.c (advance): New macro.
19768         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19769         incomplete type, so you can't add 0 to it.  Problem and patch
19770         reported by Eelco Dolstra for dietlibc.
19771
19772 2006-10-18  Jim Meyering  <jim@meyering.net>
19773
19774         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19775         type for a local, and rename it: s/up/user_proc/.
19776
19777 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19778
19779         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19780         READ_UTMP_USER_PROCESS.
19781         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19782
19783 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19784
19785         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19786         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19787
19788 2006-10-17  Eric Blake  <ebb9@byu.net>
19789
19790         * lib/sigprocmask.c (sigprocmask): Fix typo.
19791
19792         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19793
19794         * modules/clean-temp (Makefile.am): Don't add to make output...
19795         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19796         config.h.
19797
19798 2006-10-17  Bruno Haible  <bruno@clisp.org>
19799
19800         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19801         differently if DEFAULT_TEXT_DOMAIN is set.
19802
19803 2006-10-16  Bruno Haible  <bruno@clisp.org>
19804
19805         * lib/clean-temp.c: Include fwriteerror.h.
19806
19807 2006-10-16  Bruno Haible  <bruno@clisp.org>
19808
19809         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19810
19811 2006-10-16  Bruno Haible  <bruno@clisp.org>
19812
19813         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19814         * lib/sigprocmask.h: Include <sys/types.h>.
19815         (sigset_t): Use the system's definition if present.
19816
19817 2006-10-17  Eric Blake  <ebb9@byu.net>
19818
19819         * lib/xvasprintf.c (includes): Assume config.h.
19820         * lib/xasprintf.c (includes): Likewise.
19821
19822 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19823
19824         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19825         at least as wide as intmax_t.
19826
19827 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19828
19829         (Imported from Automake.)
19830         * build-aux/gnupload: Update to version 1.1 of directive file.
19831
19832 2006-10-16  Eric Blake  <ebb9@byu.net>
19833
19834         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19835         match Automake 1.10a.
19836
19837 2006-10-14  Bruno Haible  <bruno@clisp.org>
19838
19839         * modules/sigprocmask: New file.
19840         * lib/sigprocmask.h: New file.
19841         * lib/sigprocmask.c: New file.
19842         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19843         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19844         request sigprocmask.o.
19845         (gl_PREREQ_SIGPROCMASK): New macro.
19846         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19847         (Depends-on): Add sigprocmask.
19848         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19849         gt_SIGNALBLOCKING. Test for 'raise' only once.
19850         * lib/fatal-signal.c: Include sigprocmask.h.
19851         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19852         unblock_fatal_signals): Define always.
19853         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19854         sigprocmask.
19855
19856 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19857
19858         Sync from Automake.
19859         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19860         which incorrectly sets the mode of an existing destination
19861         directory.  In some cases the unpatched install-sh could do the
19862         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19863         system.  We hope this is rare in practice, but it's clearly worth
19864         fixing.  Problem reported by Alex Unleashed in
19865         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19866         Also, don't bother to check for -m bugs unless we're using -m;
19867         suggested by Stepan Kasal.
19868
19869 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19870
19871         Sync from Automake.
19872         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19873         `-c' flag, so they appear at the same position as in %FASTDEP%
19874         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
19875         which ignores unknown options only after the first non-option.
19876         Bug report against M4 by Nelson H. F. Beebe.
19877
19878 2006-10-13  Jim Meyering  <jim@meyering.net>
19879
19880         Fix a bug in yesterday's change.
19881         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19882         p->fts_statp->st_dev would be used uninitialized.
19883         Ensures that we always call fts_stat on the very first entry.
19884         Miklos Szeredi reported that find -xdev stopped working.
19885
19886 2006-10-12  Bruno Haible  <bruno@clisp.org>
19887
19888         * gnulib-tool (func_get_automake_snippet): Append an automatically
19889         computed EXTRA_DIST augmentation.
19890         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19891         * modules/alloca-opt (Makefile.am): Likewise.
19892         * modules/allocsa (Makefile.am): Likewise.
19893         * modules/arcfour (Makefile.am): Likewise.
19894         * modules/arctwo (Makefile.am): Likewise.
19895         * modules/argmatch (Makefile.am): Likewise.
19896         * modules/argz (Makefile.am): Likewise.
19897         * modules/atexit (Makefile.am): Likewise.
19898         * modules/backupfile (Makefile.am): Likewise.
19899         * modules/byteswap (Makefile.am): Likewise.
19900         * modules/c-strtod (Makefile.am): Likewise.
19901         * modules/c-strtold (Makefile.am): Likewise.
19902         * modules/calloc (Makefile.am): Likewise.
19903         * modules/canon-host (Makefile.am): Likewise.
19904         * modules/canonicalize (Makefile.am): Likewise.
19905         * modules/chdir-long (Makefile.am): Likewise.
19906         * modules/chdir-safer (Makefile.am): Likewise.
19907         * modules/check-version (Makefile.am): Likewise.
19908         * modules/chown (Makefile.am): Likewise.
19909         * modules/cloexec (Makefile.am): Likewise.
19910         * modules/close-stream (Makefile.am): Likewise.
19911         * modules/closeout (Makefile.am): Likewise.
19912         * modules/crc (Makefile.am): Likewise.
19913         * modules/csharpexec (Makefile.am): Likewise.
19914         * modules/cycle-check (Makefile.am): Likewise.
19915         * modules/des (Makefile.am): Likewise.
19916         * modules/dev-ino (Makefile.am): Likewise.
19917         * modules/dirfd (Makefile.am): Likewise.
19918         * modules/dirname (Makefile.am): Likewise.
19919         * modules/dup2 (Makefile.am): Likewise.
19920         * modules/eealloc (Makefile.am): Likewise.
19921         * modules/error (Makefile.am): Likewise.
19922         * modules/euidaccess (Makefile.am): Likewise.
19923         * modules/exclude (Makefile.am): Likewise.
19924         * modules/exitfail (Makefile.am): Likewise.
19925         * modules/fcntl-safer (Makefile.am): Likewise.
19926         * modules/fcntl (Makefile.am): Likewise.
19927         * modules/file-type (Makefile.am): Likewise.
19928         * modules/fileblocks (Makefile.am): Likewise.
19929         * modules/filemode (Makefile.am): Likewise.
19930         * modules/filenamecat (Makefile.am): Likewise.
19931         * modules/fnmatch (Makefile.am): Likewise.
19932         * modules/fopen-safer (Makefile.am): Likewise.
19933         * modules/fpending (Makefile.am): Likewise.
19934         * modules/fprintftime (Makefile.am): Likewise.
19935         * modules/free (Makefile.am): Likewise.
19936         * modules/fsusage (Makefile.am): Likewise.
19937         * modules/ftruncate (Makefile.am): Likewise.
19938         * modules/fts (Makefile.am): Likewise.
19939         * modules/gc-arcfour (Makefile.am): Likewise.
19940         * modules/gc-des (Makefile.am): Likewise.
19941         * modules/gc-hmac-md5 (Makefile.am): Likewise.
19942         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19943         * modules/gc-md4 (Makefile.am): Likewise.
19944         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19945         * modules/gc-sha1 (Makefile.am): Likewise.
19946         * modules/gc (Makefile.am): Likewise.
19947         * modules/getaddrinfo (Makefile.am): Likewise.
19948         * modules/getcwd (Makefile.am): Likewise.
19949         * modules/getdelim (Makefile.am): Likewise.
19950         * modules/getdomainname (Makefile.am): Likewise.
19951         * modules/getgroups (Makefile.am): Likewise.
19952         * modules/gethostname (Makefile.am): Likewise.
19953         * modules/gethrxtime (Makefile.am): Likewise.
19954         * modules/getline (Makefile.am): Likewise.
19955         * modules/getloadavg (Makefile.am): Likewise.
19956         * modules/getlogin_r (Makefile.am): Likewise.
19957         * modules/getndelim2 (Makefile.am): Likewise.
19958         * modules/getopt (Makefile.am): Likewise.
19959         * modules/getpagesize (Makefile.am): Likewise.
19960         * modules/getpass-gnu (Makefile.am): Likewise.
19961         * modules/getpass (Makefile.am): Likewise.
19962         * modules/getsubopt (Makefile.am): Likewise.
19963         * modules/gettime (Makefile.am): Likewise.
19964         * modules/gettimeofday (Makefile.am): Likewise.
19965         * modules/getugroups (Makefile.am): Likewise.
19966         * modules/getusershell (Makefile.am): Likewise.
19967         * modules/glob (Makefile.am): Likewise.
19968         * modules/group-member (Makefile.am): Likewise.
19969         * modules/hard-locale (Makefile.am): Likewise.
19970         * modules/hash (Makefile.am): Likewise.
19971         * modules/hmac-md5 (Makefile.am): Likewise.
19972         * modules/hmac-sha1 (Makefile.am): Likewise.
19973         * modules/human (Makefile.am): Likewise.
19974         * modules/idcache (Makefile.am): Likewise.
19975         * modules/imaxabs (Makefile.am): Likewise.
19976         * modules/imaxdiv (Makefile.am): Likewise.
19977         * modules/inet_ntop (Makefile.am): Likewise.
19978         * modules/inet_pton (Makefile.am): Likewise.
19979         * modules/intprops (Makefile.am): Likewise.
19980         * modules/inttostr (Makefile.am): Likewise.
19981         * modules/inttypes (Makefile.am): Likewise.
19982         * modules/isapipe (Makefile.am): Likewise.
19983         * modules/javaversion (Makefile.am): Likewise.
19984         * modules/lchmod (Makefile.am): Likewise.
19985         * modules/lchown (Makefile.am): Likewise.
19986         * modules/localcharset (Makefile.am): Likewise.
19987         * modules/long-options (Makefile.am): Likewise.
19988         * modules/lstat (Makefile.am): Likewise.
19989         * modules/malloc (Makefile.am): Likewise.
19990         * modules/mathl (Makefile.am): Likewise.
19991         * modules/mbchar (Makefile.am): Likewise.
19992         * modules/md2 (Makefile.am): Likewise.
19993         * modules/md4 (Makefile.am): Likewise.
19994         * modules/md5 (Makefile.am): Likewise.
19995         * modules/memcasecmp (Makefile.am): Likewise.
19996         * modules/memchr (Makefile.am): Likewise.
19997         * modules/memcmp (Makefile.am): Likewise.
19998         * modules/memcoll (Makefile.am): Likewise.
19999         * modules/memcpy (Makefile.am): Likewise.
20000         * modules/memmem (Makefile.am): Likewise.
20001         * modules/memmove (Makefile.am): Likewise.
20002         * modules/mempcpy (Makefile.am): Likewise.
20003         * modules/memrchr (Makefile.am): Likewise.
20004         * modules/memset (Makefile.am): Likewise.
20005         * modules/memxor (Makefile.am): Likewise.
20006         * modules/mkancesdirs (Makefile.am): Likewise.
20007         * modules/mkdir-p (Makefile.am): Likewise.
20008         * modules/mkdir (Makefile.am): Likewise.
20009         * modules/mkdtemp (Makefile.am): Likewise.
20010         * modules/mkstemp (Makefile.am): Likewise.
20011         * modules/mktime (Makefile.am): Likewise.
20012         * modules/modechange (Makefile.am): Likewise.
20013         * modules/mountlist (Makefile.am): Likewise.
20014         * modules/nanosleep (Makefile.am): Likewise.
20015         * modules/obstack (Makefile.am): Likewise.
20016         * modules/openat (Makefile.am): Likewise.
20017         * modules/pagealign_alloc (Makefile.am): Likewise.
20018         * modules/pathmax (Makefile.am): Likewise.
20019         * modules/physmem (Makefile.am): Likewise.
20020         * modules/poll (Makefile.am): Likewise.
20021         * modules/posixtm (Makefile.am): Likewise.
20022         * modules/posixver (Makefile.am): Likewise.
20023         * modules/putenv (Makefile.am): Likewise.
20024         * modules/quote (Makefile.am): Likewise.
20025         * modules/quotearg (Makefile.am): Likewise.
20026         * modules/raise (Makefile.am): Likewise.
20027         * modules/read-file (Makefile.am): Likewise.
20028         * modules/readline (Makefile.am): Likewise.
20029         * modules/readlink (Makefile.am): Likewise.
20030         * modules/readtokens (Makefile.am): Likewise.
20031         * modules/readutmp (Makefile.am): Likewise.
20032         * modules/realloc (Makefile.am): Likewise.
20033         * modules/regex (Makefile.am): Likewise.
20034         * modules/rename-dest-slash (Makefile.am): Likewise.
20035         * modules/rename (Makefile.am): Likewise.
20036         * modules/rijndael (Makefile.am): Likewise.
20037         * modules/rmdir (Makefile.am): Likewise.
20038         * modules/rpmatch (Makefile.am): Likewise.
20039         * modules/safe-read (Makefile.am): Likewise.
20040         * modules/safe-write (Makefile.am): Likewise.
20041         * modules/same-inode (Makefile.am): Likewise.
20042         * modules/same (Makefile.am): Likewise.
20043         * modules/save-cwd (Makefile.am): Likewise.
20044         * modules/savedir (Makefile.am): Likewise.
20045         * modules/setenv (Makefile.am): Likewise.
20046         * modules/settime (Makefile.am): Likewise.
20047         * modules/sha1 (Makefile.am): Likewise.
20048         * modules/sig2str (Makefile.am): Likewise.
20049         * modules/snprintf (Makefile.am): Likewise.
20050         * modules/stat-macros (Makefile.am): Likewise.
20051         * modules/stat-time (Makefile.am): Likewise.
20052         * modules/stdbool (Makefile.am): Likewise.
20053         * modules/stdint (Makefile.am): Likewise.
20054         * modules/stdlib-safer (Makefile.am): Likewise.
20055         * modules/stpcpy (Makefile.am): Likewise.
20056         * modules/stpncpy (Makefile.am): Likewise.
20057         * modules/strcase (Makefile.am): Likewise.
20058         * modules/strcasestr (Makefile.am): Likewise.
20059         * modules/strchrnul (Makefile.am): Likewise.
20060         * modules/strcspn (Makefile.am): Likewise.
20061         * modules/strdup (Makefile.am): Likewise.
20062         * modules/strerror (Makefile.am): Likewise.
20063         * modules/strftime (Makefile.am): Likewise.
20064         * modules/strndup (Makefile.am): Likewise.
20065         * modules/strnlen (Makefile.am): Likewise.
20066         * modules/strpbrk (Makefile.am): Likewise.
20067         * modules/strsep (Makefile.am): Likewise.
20068         * modules/strstr (Makefile.am): Likewise.
20069         * modules/strtod (Makefile.am): Likewise.
20070         * modules/strtoimax (Makefile.am): Likewise.
20071         * modules/strtok_r (Makefile.am): Likewise.
20072         * modules/strtol (Makefile.am): Likewise.
20073         * modules/strtoll (Makefile.am): Likewise.
20074         * modules/strtoul (Makefile.am): Likewise.
20075         * modules/strtoull (Makefile.am): Likewise.
20076         * modules/strtoumax (Makefile.am): Likewise.
20077         * modules/strverscmp (Makefile.am): Likewise.
20078         * modules/sys_socket (Makefile.am): Likewise.
20079         * modules/sys_stat (Makefile.am): Likewise.
20080         * modules/sysexits (Makefile.am): Likewise.
20081         * modules/time_r (Makefile.am): Likewise.
20082         * modules/timegm (Makefile.am): Likewise.
20083         * modules/timespec (Makefile.am): Likewise.
20084         * modules/tmpfile-safer (Makefile.am): Likewise.
20085         * modules/trim (Makefile.am): Likewise.
20086         * modules/unistd-safer (Makefile.am): Likewise.
20087         * modules/unlinkdir (Makefile.am): Likewise.
20088         * modules/unlocked-io (Makefile.am): Likewise.
20089         * modules/userspec (Makefile.am): Likewise.
20090         * modules/utime (Makefile.am): Likewise.
20091         * modules/utimecmp (Makefile.am): Likewise.
20092         * modules/utimens (Makefile.am): Likewise.
20093         * modules/vasnprintf (Makefile.am): Likewise.
20094         * modules/vasprintf (Makefile.am): Likewise.
20095         * modules/vsnprintf (Makefile.am): Likewise.
20096         * modules/xalloc (Makefile.am): Likewise.
20097         * modules/xgetcwd (Makefile.am): Likewise.
20098         * modules/xnanosleep (Makefile.am): Likewise.
20099         * modules/xreadlink (Makefile.am): Likewise.
20100         * modules/xstrtod (Makefile.am): Likewise.
20101         * modules/xstrtol (Makefile.am): Likewise.
20102         * modules/xstrtold (Makefile.am): Likewise.
20103         * modules/yesno (Makefile.am): Likewise.
20104         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20105
20106 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20107
20108         * modules/error (Makefile.am): Distribute files through
20109         EXTRA_DIST, not lib_SOURCES.
20110
20111 2006-10-12  Eric Blake  <ebb9@byu.net>
20112
20113         * modules/error (Makefile.am): Distribute files in /lib.
20114         * modules/obstack (Makefile.am): Likewise.
20115
20116 2006-10-12  Bruno Haible  <bruno@clisp.org>
20117
20118         * modules/acl (Makefile.am): Distribute all files in lib/ through
20119         EXTRA_DIST.
20120         * modules/arcfour (Makefile.am): Likewise.
20121         * modules/arctwo (Makefile.am): Likewise.
20122         * modules/argmatch (Makefile.am): Likewise.
20123         * modules/argz (Makefile.am): Likewise.
20124         * modules/atexit (Makefile.am): Likewise.
20125         * modules/backupfile (Makefile.am): Likewise.
20126         * modules/c-strtod (Makefile.am): Likewise.
20127         * modules/c-strtold (Makefile.am): Likewise.
20128         * modules/calloc (Makefile.am): Likewise.
20129         * modules/canon-host (Makefile.am): Likewise.
20130         * modules/canonicalize (Makefile.am): Likewise.
20131         * modules/chdir-long (Makefile.am): Likewise.
20132         * modules/chdir-safer (Makefile.am): Likewise.
20133         * modules/check-version (Makefile.am): Likewise.
20134         * modules/chown (Makefile.am): Likewise.
20135         * modules/cloexec (Makefile.am): Likewise.
20136         * modules/close-stream (Makefile.am): Likewise.
20137         * modules/closeout (Makefile.am): Likewise.
20138         * modules/crc (Makefile.am): Likewise.
20139         * modules/cycle-check (Makefile.am): Likewise.
20140         * modules/des (Makefile.am): Likewise.
20141         * modules/dirfd (Makefile.am): Likewise.
20142         * modules/dirname (Makefile.am): Likewise.
20143         * modules/dup2 (Makefile.am): Likewise.
20144         * modules/euidaccess (Makefile.am): Likewise.
20145         * modules/exclude (Makefile.am): Likewise.
20146         * modules/exitfail (Makefile.am): Likewise.
20147         * modules/fcntl-safer (Makefile.am): Likewise.
20148         * modules/file-type (Makefile.am): Likewise.
20149         * modules/fileblocks (Makefile.am): Likewise.
20150         * modules/filemode (Makefile.am): Likewise.
20151         * modules/filenamecat (Makefile.am): Likewise.
20152         * modules/fnmatch (Makefile.am): Likewise.
20153         * modules/fopen-safer (Makefile.am): Likewise.
20154         * modules/fpending (Makefile.am): Likewise.
20155         * modules/fprintftime (Makefile.am): Likewise.
20156         * modules/free (Makefile.am): Likewise.
20157         * modules/fsusage (Makefile.am): Likewise.
20158         * modules/ftruncate (Makefile.am): Likewise.
20159         * modules/fts (Makefile.am): Likewise.
20160         * modules/gc (Makefile.am): Likewise.
20161         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20162         * modules/getaddrinfo (Makefile.am): Likewise.
20163         * modules/getcwd (Makefile.am): Likewise.
20164         * modules/getdelim (Makefile.am): Likewise.
20165         * modules/getdomainname (Makefile.am): Likewise.
20166         * modules/getgroups (Makefile.am): Likewise.
20167         * modules/gethostname (Makefile.am): Likewise.
20168         * modules/gethrxtime (Makefile.am): Likewise.
20169         * modules/getline (Makefile.am): Likewise.
20170         * modules/getloadavg (Makefile.am): Likewise.
20171         * modules/getlogin_r (Makefile.am): Likewise.
20172         * modules/getopt (Makefile.am): Likewise.
20173         * modules/getpass (Makefile.am): Likewise.
20174         * modules/getpass-gnu (Makefile.am): Likewise.
20175         * modules/getsubopt (Makefile.am): Likewise.
20176         * modules/gettime (Makefile.am): Likewise.
20177         * modules/gettimeofday (Makefile.am): Likewise.
20178         * modules/getugroups (Makefile.am): Likewise.
20179         * modules/getusershell (Makefile.am): Likewise.
20180         * modules/glob (Makefile.am): Likewise.
20181         * modules/group-member (Makefile.am): Likewise.
20182         * modules/hard-locale (Makefile.am): Likewise.
20183         * modules/hash (Makefile.am): Likewise.
20184         * modules/hmac-md5 (Makefile.am): Likewise.
20185         * modules/hmac-sha1 (Makefile.am): Likewise.
20186         * modules/human (Makefile.am): Likewise.
20187         * modules/idcache (Makefile.am): Likewise.
20188         * modules/imaxabs (Makefile.am): Likewise.
20189         * modules/imaxdiv (Makefile.am): Likewise.
20190         * modules/inet_ntop (Makefile.am): Likewise.
20191         * modules/inet_pton (Makefile.am): Likewise.
20192         * modules/inttostr (Makefile.am): Likewise.
20193         * modules/isapipe (Makefile.am): Likewise.
20194         * modules/lchown (Makefile.am): Likewise.
20195         * modules/long-options (Makefile.am): Likewise.
20196         * modules/lstat (Makefile.am): Likewise.
20197         * modules/malloc (Makefile.am): Likewise.
20198         * modules/mathl (Makefile.am): Likewise.
20199         * modules/mbchar (Makefile.am): Likewise.
20200         * modules/md2 (Makefile.am): Likewise.
20201         * modules/md4 (Makefile.am): Likewise.
20202         * modules/md5 (Makefile.am): Likewise.
20203         * modules/memcasecmp (Makefile.am): Likewise.
20204         * modules/memchr (Makefile.am): Likewise.
20205         * modules/memcmp (Makefile.am): Likewise.
20206         * modules/memcoll (Makefile.am): Likewise.
20207         * modules/memcpy (Makefile.am): Likewise.
20208         * modules/memmem (Makefile.am): Likewise.
20209         * modules/memmove (Makefile.am): Likewise.
20210         * modules/mempcpy (Makefile.am): Likewise.
20211         * modules/memrchr (Makefile.am): Likewise.
20212         * modules/memset (Makefile.am): Likewise.
20213         * modules/memxor (Makefile.am): Likewise.
20214         * modules/mkancesdirs (Makefile.am): Likewise.
20215         * modules/mkdir (Makefile.am): Likewise.
20216         * modules/mkdir-p (Makefile.am): Likewise.
20217         * modules/mkdtemp (Makefile.am): Likewise.
20218         * modules/mkstemp (Makefile.am): Likewise.
20219         * modules/mktime (Makefile.am): Likewise.
20220         * modules/modechange (Makefile.am): Likewise.
20221         * modules/mountlist (Makefile.am): Likewise.
20222         * modules/nanosleep (Makefile.am): Likewise.
20223         * modules/openat (Makefile.am): Likewise.
20224         * modules/pagealign_alloc (Makefile.am): Likewise.
20225         * modules/physmem (Makefile.am): Likewise.
20226         * modules/poll (Makefile.am): Likewise.
20227         * modules/posixtm (Makefile.am): Likewise.
20228         * modules/posixver (Makefile.am): Likewise.
20229         * modules/putenv (Makefile.am): Likewise.
20230         * modules/quote (Makefile.am): Likewise.
20231         * modules/quotearg (Makefile.am): Likewise.
20232         * modules/raise (Makefile.am): Likewise.
20233         * modules/read-file (Makefile.am): Likewise.
20234         * modules/readline (Makefile.am): Likewise.
20235         * modules/readlink (Makefile.am): Likewise.
20236         * modules/readtokens (Makefile.am): Likewise.
20237         * modules/readutmp (Makefile.am): Likewise.
20238         * modules/realloc (Makefile.am): Likewise.
20239         * modules/regex (Makefile.am): Likewise.
20240         * modules/rename (Makefile.am): Likewise.
20241         * modules/rename-dest-slash (Makefile.am): Likewise.
20242         * modules/rijndael (Makefile.am): Likewise.
20243         * modules/rmdir (Makefile.am): Likewise.
20244         * modules/rpmatch (Makefile.am): Likewise.
20245         * modules/safe-read (Makefile.am): Likewise.
20246         * modules/safe-write (Makefile.am): Likewise.
20247         * modules/same (Makefile.am): Likewise.
20248         * modules/save-cwd (Makefile.am): Likewise.
20249         * modules/savedir (Makefile.am): Likewise.
20250         * modules/setenv (Makefile.am): Likewise.
20251         * modules/settime (Makefile.am): Likewise.
20252         * modules/sha1 (Makefile.am): Likewise.
20253         * modules/sig2str (Makefile.am): Likewise.
20254         * modules/snprintf (Makefile.am): Likewise.
20255         * modules/stdlib-safer (Makefile.am): Likewise.
20256         * modules/stpcpy (Makefile.am): Likewise.
20257         * modules/stpncpy (Makefile.am): Likewise.
20258         * modules/strcase (Makefile.am): Likewise.
20259         * modules/strcasestr (Makefile.am): Likewise.
20260         * modules/strchrnul (Makefile.am): Likewise.
20261         * modules/strcspn (Makefile.am): Likewise.
20262         * modules/strdup (Makefile.am): Likewise.
20263         * modules/strerror (Makefile.am): Likewise.
20264         * modules/strftime (Makefile.am): Likewise.
20265         * modules/strndup (Makefile.am): Likewise.
20266         * modules/strnlen (Makefile.am): Likewise.
20267         * modules/strpbrk (Makefile.am): Likewise.
20268         * modules/strsep (Makefile.am): Likewise.
20269         * modules/strstr (Makefile.am): Likewise.
20270         * modules/strtod (Makefile.am): Likewise.
20271         * modules/strtoimax (Makefile.am): Likewise.
20272         * modules/strtok_r (Makefile.am): Likewise.
20273         * modules/strtol (Makefile.am): Likewise.
20274         * modules/strtoll (Makefile.am): Likewise.
20275         * modules/strtoul (Makefile.am): Likewise.
20276         * modules/strtoull (Makefile.am): Likewise.
20277         * modules/strtoumax (Makefile.am): Likewise.
20278         * modules/strverscmp (Makefile.am): Likewise.
20279         * modules/time_r (Makefile.am): Likewise.
20280         * modules/timegm (Makefile.am): Likewise.
20281         * modules/tmpfile-safer (Makefile.am): Likewise.
20282         * modules/unistd-safer (Makefile.am): Likewise.
20283         * modules/unlinkdir (Makefile.am): Likewise.
20284         * modules/userspec (Makefile.am): Likewise.
20285         * modules/utime (Makefile.am): Likewise.
20286         * modules/utimecmp (Makefile.am): Likewise.
20287         * modules/utimens (Makefile.am): Likewise.
20288         * modules/vasnprintf (Makefile.am): Likewise.
20289         * modules/vasprintf (Makefile.am): Likewise.
20290         * modules/vsnprintf (Makefile.am): Likewise.
20291         * modules/xalloc (Makefile.am): Likewise.
20292         * modules/xgetcwd (Makefile.am): Likewise.
20293         * modules/xnanosleep (Makefile.am): Likewise.
20294         * modules/xreadlink (Makefile.am): Likewise.
20295         * modules/xstrtod (Makefile.am): Likewise.
20296         * modules/xstrtol (Makefile.am): Likewise.
20297         * modules/xstrtold (Makefile.am): Likewise.
20298         * modules/yesno (Makefile.am): Likewise.
20299
20300 2006-10-12  Jim Meyering  <jim@meyering.net>
20301
20302         * m4/getloadavg.m4: Revert the change below.
20303
20304         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20305         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20306         fail with a symlink, which is what coreutils' ./bootstrap now
20307         creates by default.
20308
20309 2006-10-12  Bruno Haible  <bruno@clisp.org>
20310
20311         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20312         mingw.
20313         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20314         MSVC and mingw explicitly.
20315
20316 2006-10-11  Simon Josefsson  <jas@extundo.com>
20317             Bruno Haible  <bruno@clisp.org>
20318
20319         Add support for multiple gnulib-tool invocations in the scope of a
20320         single configure.ac file.
20321         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20322         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20323         with the same contents as the _LIBADD variable.
20324         (func_emit_initmacro_start, func_emit_initmacro_end,
20325         func_emit_initmacro_done): New functions.
20326         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20327         gl_LIBOBJS and gl_LTLIBOBJS.
20328
20329 2006-10-11  Bruno Haible  <bruno@clisp.org>
20330
20331         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20332         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20333         autoreconf. Instead, invoke autopoint explicitly but move back the
20334         *.m4 files from gnulib.
20335
20336 2006-10-11  Bruno Haible  <bruno@clisp.org>
20337
20338         * gnulib-tool (func_usage): Make module names after --create-testdir
20339         optional.
20340         (func_create_testdir): If no module was specified, use nearly all
20341         modules.
20342
20343 2006-10-12  Jim Meyering  <jim@meyering.net>
20344
20345         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20346         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20347         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20348         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20349         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20350         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20351         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20352         (fts_set_stat_required): New function.
20353         (fts_open): Defer the calls to fts_stat, if possible or requested.
20354         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20355         into fts_stat itself.
20356         (fts_read): Perform any required (deferred) fts_stat call.
20357         (fts_build): Likewise, for the directory we're about to open and read.
20358         In the readdir loop, carefully decide whether each entry will require
20359         an eventual call to fts_stat, using dirent.d_type info if available.
20360         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20361         a command line argument into this function.  Update all callers.
20362         Map a return value of FTS_DOT to FTS_D for a command line argument.
20363         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20364         Thanks to Miklos Szeredi for his tenacity and for the initial
20365         bug report about "find" failing on a FUSE-based file system.
20366
20367         * lib/fts.c (fts_open): Use consistent indentation.
20368
20369 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20372         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20373         reported by Jim Meyering.  All uses of cache variables renamed
20374         to match Autoconf's.
20375         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20376         the other one.
20377
20378         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20379         Fix misspelling in diagnostic.
20380
20381 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20382
20383         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20384         defined.  Problem reported by Matthew Woehlke.
20385
20386         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20387         Add support for Tandem NonStop R series.
20388         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20389         Use new macro.
20390
20391         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20392         (has_trailing_slash): Omit size arg; all callers changed.
20393         Omit 'inline', since it doesn't help performance and we'd
20394         need to configure it.
20395         Don't count //, ///, etc. as having a trailing slash.
20396         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20397         (rpl_rename_dest_slash): On failure, use rename's errno rather
20398         than (in some cases) an incorrect or junk errno.
20399         Simplify code by removing need to compute length; this does
20400         cause it to make two passes instead of one over the file name,
20401         but it's worth it.
20402
20403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20404         change, since Autoconf's version may no longer be appropriate now
20405         that we are using CVS Autoconf's version.  Add support for Tandem.
20406
20407 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20408             Bruno Haible  <bruno@clisp.org>
20409
20410         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20411         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20412         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20413         gl_AC_TYPE_LONG_LONG.
20414
20415         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20416         instead of HAVE_LONG_LONG.
20417         * lib/printf-args.c (printf_fetchargs): Likewise.
20418         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20419         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20420         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20421         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20422         gl_AC_TYPE_LONG_LONG.
20423
20424 2006-10-11  Bruno Haible  <bruno@clisp.org>
20425
20426         * m4/longlong.m4: Add comments.
20427         * m4/ulonglong.m4: Likewise.
20428
20429 2006-10-10  Bruno Haible  <bruno@clisp.org>
20430
20431         Make it possible to #define stpcpy, strdup to aliases.
20432         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20433         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20434
20435 2006-10-10  Bruno Haible  <bruno@clisp.org>
20436
20437         Make it possible to #define gcd to an alias.
20438         * lib/gcd.c: Include config.h.
20439
20440 2006-10-10  Bruno Haible  <bruno@clisp.org>
20441
20442         Make it possible to #define c_isascii to an alias.
20443         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20444         defined. Undefine the macros before defining them, to avoid gcc
20445         warnings.
20446         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20447         define NO_C_CTYPE_MACROS early.
20448
20449 2006-10-10  Bruno Haible  <bruno@clisp.org>
20450
20451         Make it possible to #define set_program_name to an alias.
20452         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20453         ENABLE_RELOCATABLE early.
20454
20455 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20456
20457         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20458         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20459         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20460         More generally, don't assume that 64-bit signed int is available
20461         if unsigned int is, and vice versa.
20462         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20463         unsigned symbols, not on their signed counterparts.
20464         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20465         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20466         (UINT64_C, UINTMAX_C):
20467         Likewise.
20468         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20469         unsigned counterparts.
20470         (Have_long_long, Unsigned): New macros.
20471         (Int): Renamed from INT.
20472         (strtoimax): Use the new macros.
20473         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20474         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20475         * modules/inttypes (inttypes.h): Substitute
20476         HAVE_UNSIGNED_LONG_LONG_INT.
20477         * modules/stdint (stdint.h): Likewise.
20478         (Files): Add m4/ulonglong.m4.
20479
20480 2006-10-10  Bruno Haible  <bruno@clisp.org>
20481
20482         Fix a gcc -Wshadow warning.
20483         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20484         to 'bucket'.
20485         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20486         gl_linked_indexof_from_to): Likewise.
20487         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20488         Likewise.
20489         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20490         Likewise.
20491         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20492         Reported by Eric Blake.
20493
20494 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20495
20496         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20497         for NetBSD.  Problem reported by Bruno Haible.
20498
20499 2006-10-09  Jim Meyering  <jim@meyering.net>
20500
20501         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20502         Patch from Bruno Haible.
20503
20504 2006-10-09  Jim Meyering  <jim@meyering.net>
20505
20506         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20507         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20508         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20509
20510 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20511
20512         Don't include <config.h> twice; this doesn't work in some cases,
20513         e.g., when config.h has "#define intmax_t long long int" and
20514         we include <config.h>, <inttypes.h>, <config.h> in that order.
20515         Problem reported by Matthew Woehlke in:
20516         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20517         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20518         * lib/fts-cycle.c: Don't include config.h.
20519         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20520         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20521         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20522         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20523         inttypes.h.
20524         * lib/xstrtoumax.c: Likewise.
20525         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20526         __strtol and the like, so that this module is more like its siblings.
20527         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20528         Remove; no longer needed now that we assume gnulib inttypes.h.
20529
20530 2006-10-08  Bruno Haible  <bruno@clisp.org>
20531
20532         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20533         option.
20534
20535 2006-10-07  Jim Meyering  <jim@meyering.net>
20536
20537         * modules/inttypes (inttypes.h): Revert what seems to have been
20538         an inadvertent part of today's change: use "|", not "/" in the
20539         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20540
20541 2006-10-07  Bruno Haible  <bruno@clisp.org>
20542
20543         * modules/sublist: New file.
20544
20545 2006-10-07  Bruno Haible  <bruno@clisp.org>
20546
20547         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20548         * modules/argz (argz.h): Likewise.
20549         * modules/arpa_inet (arpa/inet.h): Likewise.
20550         * modules/byteswap (byteswap.h): Likewise.
20551         * modules/configmake (configmake.h): Likewise.
20552         * modules/fcntl (fcntl.h): Likewise.
20553         * modules/fnmatch (fnmatch.h): Likewise.
20554         * modules/getopt (getopt.h): Likewise.
20555         * modules/glob (glob.h): Likewise.
20556         * modules/inttypes (inttypes.h): Likewise.
20557         * modules/netinet_in (netinet/in.h): Likewise.
20558         * modules/poll (poll.h): Likewise.
20559         * modules/stdbool (stdbool.h): Likewise.
20560         * modules/stdint (stdint.h): Likewise.
20561         * modules/sys_select (sys/select.h): Likewise.
20562         * modules/sys_socket (sys/socket.h): Likewise.
20563         * modules/sys_stat (sys/stat.h): Likewise.
20564         * modules/sysexits (sysexits.h): Likewise.
20565         * modules/unistd (unistd.h): Likewise.
20566         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20567         Add a "DO NOT EDIT" comment to the generated file.
20568         (func_import): Likewise for gnulib-comp.m4.
20569
20570 2006-10-07  Bruno Haible  <bruno@clisp.org>
20571
20572         * lib/gl_sublist.h: New file.
20573         * lib/gl_sublist.c: New file.
20574
20575 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20576
20577         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20578         name (relative to the original working directory) and the file
20579         name component (relative to the temporary working directory).  All
20580         callers changed.
20581         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20582         * lib/mkdir-p.c (make_dir_parents): Likewise.
20583         * lib/mkdir-p.h (make_dir_parents): Likewise.
20584
20585 2006-10-06  Eric Blake  <ebb9@byu.net>
20586
20587         Define several macros for use by the clean-temp module.
20588         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20589         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20590         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20591
20592         * lib/clean-temp.h (close_stream_temp): New declaration.
20593         * lib/clean-temp.c (includes): Pull in headers according to what
20594         other modules are in use.
20595         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20596
20597 2006-10-06  Bruno Haible  <bruno@clisp.org>
20598
20599         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20600         instead of fopen, fwriteerror.
20601
20602 2006-10-06  Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20605         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20606         int.
20607         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20608         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20609         Return an error indicator.
20610         Suggested by Eric Blake.
20611
20612 2006-10-06  Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20615         Reported by Eric Blake.
20616
20617 2006-10-06  Bruno Haible  <bruno@clisp.org>
20618
20619         * modules/closeout (Description): Mention stderr too.
20620
20621 2006-10-06  Bruno Haible  <bruno@clisp.org>
20622         and Paul Eggert  <eggert@cs.ucla.edu>
20623
20624         * lib/closeout.c (close_stdout): Also close stderr.
20625         * lib/closeout.h: Update comment.
20626
20627 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20630         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20631         * lib/dirchownmod.c: Include lchown.h.
20632         * lib/lchown.c: Don't include files that lchown.h now includes.
20633         Don't declare chown, since lchown.h now does that.
20634         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20635         (lchown): Define to rpl_chown if lchown is declared but
20636         does not exist.  Declare using a prototype if lchown is not
20637         declared.  Add a copyright notice.
20638         * lib/mkstemp.h: Include <unistd.h>.
20639         * lib/openat.c: Include lchown.h.
20640
20641         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20642         we now test for that separately.
20643         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20644         rather than O_NOFOLLOW, when testing whether it's possible to
20645         avoid a race condition reliably.
20646         * lib/savewd.c (savewd_chdir): Likewise.
20647
20648         Remove macros that are no longer needed now that stdint.h is
20649         reliable.
20650         * lib/fsusage.c (UINTMAX_MAX): Remove.
20651         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20652         * lib/utimecmp.c (SIZE_MAX): Remove.
20653
20654         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20655
20656         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20657         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20658         O_NOATIME works.
20659
20660 2006-10-05  Bruno Haible  <bruno@clisp.org>
20661
20662         * lib/gl_list.h (gl_sortedlist_search_from_to,
20663         gl_sortedlist_indexof_from_to): New declarations.
20664         (gl_list_implementation): New fields sortedlist_search_from_to,
20665         sortedlist_indexof_from_to.
20666         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20667         inline functions.
20668         * lib/gl_list.c (gl_sortedlist_search_from_to,
20669         gl_sortedlist_indexof_from_to): New functions.
20670         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20671         function.
20672         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20673         (gl_array_sortedlist_search_from_to): New function.
20674         (gl_array_list_implementation): Update.
20675         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20676         function.
20677         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20678         (gl_carray_sortedlist_search_from_to): New function.
20679         (gl_carray_list_implementation): Update.
20680         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20681         gl_linked_sortedlist_indexof_from_to): New functions.
20682         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20683         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20684         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20685         gl_tree_sortedlist_indexof_from_to): New functions.
20686         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20687         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20688         Update.
20689         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20690         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20691         Update.
20692
20693 2006-10-05  Bruno Haible  <bruno@clisp.org>
20694
20695         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20696         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20697         (struct gl_list_implementation): Add fields search_from_to,
20698         indexof_from_to. Remove fields search, indexof.
20699         (gl_list_search): Use the search_from_to method.
20700         (gl_list_search_from, gl_list_search_from_to): New functions.
20701         (gl_list_indexof): Use the indexof_from_to method.
20702         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20703         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20704         (gl_list_search_from, gl_list_search_from_to): New functions.
20705         (gl_list_indexof): Use the indexof_from_to method.
20706         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20707         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20708         gl_array_indexof. Add start_index, end_index arguments.
20709         (gl_array_search_from_to): Renamed from gl_array_search. Add
20710         start_index, end_index arguments.
20711         (gl_array_remove, gl_array_list_implementation): Update.
20712         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20713         gl_carray_indexof. Add start_index, end_index arguments.
20714         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20715         start_index, end_index arguments.
20716         (gl_carray_remove, gl_carray_list_implementation): Update.
20717         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20718         gl_linked_search. Add start_index, end_index arguments.
20719         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20720         start_index, end_index arguments.
20721         (gl_linked_remove): Update.
20722         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20723         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20724         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20725         field to 'size_t'.
20726         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20727         gl_tree_search. Add start_index, end_index arguments.
20728         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20729         start_index, end_index arguments.
20730         (gl_tree_remove): Update.
20731         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20732         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20733         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20734         function.
20735         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20736         gl_tree_search. Add start_index, end_index arguments.
20737         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20738         start_index, end_index arguments.
20739         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20740         Update.
20741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20742
20743 2006-10-05  Bruno Haible  <bruno@clisp.org>
20744
20745         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20746
20747         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20748         fwriteerror_temp): New declarations.
20749         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20750         (descriptors): New variable.
20751         (cleanup): First, close the descriptors.
20752         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20753         fclose_temp, fwriteerror_temp): New functions.
20754
20755 2006-10-04  Jim Meyering  <jim@meyering.net>
20756
20757         * lib/fts.c (fts_open): Tiny comment change.
20758
20759 2006-10-04  Bruno Haible  <bruno@clisp.org>
20760
20761         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20762         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20763         gl_LOCK_BODY.
20764         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20765         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20766         gl_LOCK_EARLY_BODY.
20767         (gl_LOCK): Require gl_LOCK_BODY.
20768
20769 2006-10-04  Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20772         (gl_oset_search_atleast): New declaration.
20773         (struct gl_oset_implementation): Add field 'search_atleast'.
20774         (gl_oset_search_atleast): New inline function.
20775         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20776         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20777         (gl_array_oset_implementation): Update.
20778         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20779         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20780         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20781
20782 2006-10-04  Bruno Haible  <bruno@clisp.org>
20783
20784         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20785
20786 2006-10-03  Bruno Haible  <bruno@clisp.org>
20787
20788         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20789         from gl_avltreehash_list_implementation.
20790
20791 2006-10-03  Bruno Haible  <bruno@clisp.org>
20792
20793         * lib/gl_oset.c (gl_oset_add): Fix return type.
20794
20795 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20796
20797         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20798
20799 2006-10-02  Eric Blake  <ebb9@byu.net>
20800
20801         * modules/strnlen (Depends-on): Add extensions.
20802
20803 2006-10-02  Eric Blake  <ebb9@byu.net>
20804
20805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20806         definition in 2.60+.
20807
20808 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20809
20810         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20811         checks.
20812
20813 2006-10-02  Bruno Haible  <bruno@clisp.org>
20814
20815         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20816         to the AUTOMAKE_OPTIONS.
20817         Reported by Jim Meyering.
20818
20819 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20820
20821         Work around bug in Solaris 10 /proc file system:
20822         /proc/self/fd/NNN/.. isn't the parent directory of
20823         the directory whose file descriptor is NNN.  This needs to
20824         be worked around at run time, not compile time, since a
20825         program might be built on Solaris 8, where things work, and
20826         run on Solaris 10.
20827         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20828         to use the following interface instead:
20829         (OPENAT_BUFFER_SIZE): New macro.
20830         (openat_proc_name): New function.
20831         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20832         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20833         Likewise.
20834         * lib/openat-proc.c: New file.
20835         * modules/openat (Files): Add lib/openat-proc.c.
20836         (Depends-on): Add same-inode, stdbool.
20837         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20838
20839 2006-09-29  Bruno Haible  <bruno@clisp.org>
20840
20841         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20842         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20843         argument. Set stdout_closed before testing for ferror, not after.
20844         (fwriteerror, fwriteerror_no_ebadf): New functions.
20845
20846 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20847
20848         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20849
20850 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
20851
20852         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20853         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20854
20855 2006-09-28  Jim Meyering  <jim@meyering.net>
20856
20857         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20858         Include <unistd.h>.
20859
20860 2006-09-28  Bruno Haible  <bruno@clisp.org>
20861
20862         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20863         * modules/linkedhash-list (Depends-on): Likewise.
20864         * modules/rbtreehash-list (Depends-on): Likewise.
20865
20866 2006-09-28  Bruno Haible  <bruno@clisp.org>
20867
20868         * lib/strndup.h: Simplify the redefinition of strndup.
20869         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20870         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20871
20872 2006-09-28  Bruno Haible  <bruno@clisp.org>
20873
20874         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20875         * lib/gl_linkedhash_list.c: Likewise.
20876         * lib/gl_rbtreehash_list.c: Likewise.
20877
20878 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20879
20880         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20881         getaddrinfo.
20882
20883         * lib/__fpending.h: Don't include <stdio_ext.h> unless
20884         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
20885         it causes <stdio_ext.h> to cause a compile-time error.
20886         Problem reported by Nelson H. F. Beebe.
20887         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20888         of HAVE_DECL___PENDING.
20889
20890         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20891         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20892         declaration.
20893
20894 2006-09-27  Jim Meyering  <jim@meyering.net>
20895
20896         This file could end up with a definition for a function
20897         named __strndup, rather than rpl_strndup on a system with
20898         incomplete weak_alias support.
20899         * lib/strndup.c (strndup): Rename from __strndup.
20900         Remove #defines that used to map __strndup to strndup.
20901         Don't use K&R prototypes.
20902         Remove LIBC-related code, since this file is not sync'd with glibc.
20903         * lib/strndup.h: Revamp, accordingly.
20904         * m4/strndup.m4: Modernize.
20905
20906 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20907
20908         * modules/savewd (Depends-on): Add 'raise'.
20909         * lib/savewd.c: Include <signal.h>, for 'raise'.
20910
20911 2006-09-26  Jim Meyering  <jim@meyering.net>
20912
20913         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20914         when we detect Darwin 8.7.0's acl_get_file bug.
20915         Rearrange to perform the new (below) run-test while $LIBS
20916         contains any acl-related library.  Set USE_ACL at the end.
20917         (gl_ACL_GET_FILE): New function.
20918
20919 2006-09-26  Eric Blake  <ebb9@byu.net>
20920
20921         * lib/verror.c: Include <config.h> unconditionally.
20922
20923 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20924
20925         * modules/clock-time (Maintainer): Add self.
20926         * modules/getlogin_r (Depends-on): Add extensions.
20927
20928 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20929
20930         * modules/clock-time: New module.
20931         * modules/nanosleep (Depends-on): Add clock-time.
20932         * modules/gethrxtime (Depends-on): Likewise.
20933         * modules/gettime (Depends-on): Likewise.
20934         * modules/settime (Depends-on): Likewise.
20935
20936         * modules/fts-lgpl: Depend on openat.
20937         * modules/mkancesdirs: Depend on savewd.
20938         * modules/mkdir-p: Likewise.
20939
20940 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20941
20942         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20943
20944         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20945         `gl_have_arbitrary_file_name_length_limit' to
20946         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20947         actually works between configure runs.
20948
20949 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20950             Bruno Haible  <bruno@clisp.org>
20951
20952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20953
20954 2006-09-25  Jim Meyering  <jim@meyering.net>
20955
20956         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20957         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20958
20959 2006-09-25  Eric Blake  <ebb9@byu.net>
20960
20961         * gnulib-tool (func_import, func_create_testdir): Fix typos in
20962         exec's in 2006-09-18 patch when shuffling fds.
20963
20964 2006-09-25  Bruno Haible  <bruno@clisp.org>
20965
20966         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20967         Reported by Jim Meyering.
20968
20969 2006-09-24  Jim Meyering  <jim@meyering.net>
20970
20971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20972         compare a pointer against a literal "0".  That caused failures with
20973         at least HP-UX's hpcc.
20974
20975 2006-09-22  Simon Josefsson  <jas@extundo.com>
20976
20977         * modules/gc-sha1:
20978         * modules/gc-md4:
20979         * modules/gc-hmac-sha1:
20980         * modules/gc-hmac-md5:
20981         * modules/gc-des:
20982         * modules/gc-arcfour: Distribute more files.
20983
20984 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20985
20986         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20987         (gl_linked_iterator_from_to): Initialize struct completely.
20988         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20989         (gl_tree_iterator_from_to): Likewise
20990         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20991         * lib/gl_array_list.c [lint] (gl_array_iterator)
20992         (gl_array_iterator_from_to): Likewise.
20993         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20994         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20995         (gl_carray_iterator_from_to): Likewise.
20996
20997         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20998         * lib/md4.c (md4_process_block): Remove unused variable.
20999         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21000         parentheses for clarity.
21001
21002 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21003
21004         * modules/bison-i18n (Depends-on): Add gettext.
21005
21006 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21007
21008         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21009         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21010         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21011         also add missing comma that caused broken test.
21012         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21013         stdlib.h, for `abort'.
21014         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21015         variables.
21016         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21017         include unistd.h if present, for `rmdir'.
21018         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21019         variables.
21020         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21021         in the process include standard headers for prototypes.
21022         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21023         gets declared on GNU/Linux.
21024         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21025         unistd.h, for `rmdir'.
21026         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21027
21028         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21029         always true.
21030         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21031
21032         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21033
21034 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21035
21036         * gnulib-tool (func_version): Create output all at once.  This
21037         may help avoid triggering unnecessary SIGPIPEs, and at any
21038         rate it doesn't hurt.
21039
21040 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21041             Bruno Haible  <bruno@clisp.org>
21042
21043         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21044         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21045         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21046
21047         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21048         (gl_FUNC_VASPRINTF): Invoke it.
21049
21050 2006-09-22  Bruno Haible  <bruno@clisp.org>
21051
21052         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21053         getloadavg.c as first argument.
21054
21055 2006-09-22  Bruno Haible  <bruno@clisp.org>
21056
21057         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21058         at the beginning of the gl_INIT macro.
21059         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21060         gl_GETLOADAVG.
21061
21062 2006-09-22  Bruno Haible  <bruno@clisp.org>
21063
21064         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21065         module.
21066         Suggested by Ralf Wildenhues.
21067
21068 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         Import this patch from libc:
21071
21072         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21073
21074         * lib/regex_internal.c (re_string_reconstruct): Handle
21075         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21076         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21077         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21078         re_string_context_at.
21079
21080         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21081         now requires it.
21082         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21083         gl_REGEX now does it for us.
21084         (gl_REGEX): Add test taken from
21085         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21086
21087         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21088         Check that large offsets work.  Modernize Autoconf usages.
21089         Prefer "yes" to mean a good thing rather than a bad.
21090         Don't put "#define mkstemp" in config.h, as this might interfere
21091         with standard system headers that "#define mkstemp mkstemp64".
21092
21093         * modules/mkstemp (Depends-on): Add extensions, so that
21094         mkstemp is visible on some platforms.
21095         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21096         (Include): Change to "mkstemp.h" from <stdlib.h>.
21097         (Files): Add mkstemp.h.
21098
21099         * lib/mkstemp.h: New file, since some standard headers
21100         #define mkstemp.
21101         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21102         Include "mkstemp.h".
21103         Make the _LIBC code resemble glibc original more,
21104         e.g., use K&R style.
21105         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21106         (mkstemp): Remove, since mkstemp.h does this for us.
21107         * lib/stdlib--.h: Include mkstemp.h.
21108
21109         Import this patch from libc:
21110
21111         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21112
21113         * lib/tempname.c (__gen_tempname): Change attempts_min
21114         into a macro.  Use preprocessor to decide how to initialize
21115         attempts [Coverity CID 67].
21116
21117 2006-09-20  Bruno Haible  <bruno@clisp.org>
21118
21119         * lib/mkdtemp.c: Import from libc.
21120         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21121                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21122                 attempts_min into a macro.  Use preprocessor to decide how to
21123                 initialize attempts [Coverity CID 67].
21124         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21125                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21126                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21127
21128 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21129
21130         * gnulib-tool (func_exit): New function, to allow to pass the
21131         exit status portably through the trap.  Use everywhere.
21132         (--help, --version): Signal a write error.
21133         (trap): catch SIGPIPE, for write errors.
21134         Exit at the end of the trap, with the correct exit status.
21135
21136 2006-09-19  Karl Berry  <karl@gnu.org>
21137
21138         * doc/gnulib.texi: note about the license texinfo files.
21139
21140 2006-09-19  Eric Blake  <ebb9@byu.net>
21141
21142         * gnulib-tool: Avoid space-tab.
21143
21144 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21147         that prevented coreutils 6.1 from building.  Problem reported
21148         by Petter Reinholdtsen.
21149
21150 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         * gnulib-tool (avoidlist): Fix typo that broke options like
21153         --avoid=lock that are used by coreutils bootstrap.
21154
21155 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21156
21157         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21158         more systematically.
21159
21160 2006-09-18  Jim Meyering  <jim@meyering.net>
21161
21162         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21163
21164 2006-09-18  Bruno Haible  <bruno@clisp.org>
21165
21166         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21167
21168 2006-09-18  Bruno Haible  <bruno@clisp.org>
21169
21170         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21171         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21172         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21173         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21174         * m4/gettext.m4: Require autoconf >= 2.52.
21175         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21176         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21177         of gl_cv_header_inttypes_h.
21178
21179 2006-09-18  Bruno Haible  <bruno@clisp.org>
21180
21181         * lib/javaversion.c: Include configmake.h.
21182
21183 2006-09-18  Bruno Haible  <bruno@clisp.org>
21184
21185         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21186         avoid that the while loops be executed in a subshell.
21187
21188 2006-09-18  Bruno Haible  <bruno@clisp.org>
21189
21190         * MODULES.html.sh (func_module): Break long lines.
21191         Suggested by Bruce Korb <bkorb@gnu.org>.
21192
21193 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21194
21195         Speed up by a factor of 1.12.
21196         * gnulib-tool (nl): New variable.
21197         (func_import): Rewrite include directive extraction to only read each
21198         directive once.
21199
21200 2006-09-17  Bruno Haible  <bruno@clisp.org>
21201
21202         * modules/javaversion (Makefile.am): Remove DEFS setting.
21203         (Depends-on): Add configmake, for PKGDATADIR definition.
21204
21205 2006-09-17  Bruno Haible  <bruno@clisp.org>
21206
21207         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21208
21209 2006-09-17  Bruno Haible  <bruno@clisp.org>
21210
21211         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21212         (func_modules_transitive_closure, func_modules_add_dummy,
21213         func_modules_to_filelist, func_import, func_create_testdir,
21214         func_create_megatestdir, ...): Use it wherever possible.
21215         Suggested by Ralf Wildenhues.
21216
21217 2006-09-16  Karl Berry  <karl@gnu.org>
21218
21219         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21220         to avoid sectioning errors.
21221         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21222         [ifinfo]: blank line after @center-ed titles.
21223         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21224         Spell FSF address consistently with others.
21225         (These changes approved by rms.)
21226
21227 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21228
21229         Speed up by a factor of 1.61.
21230         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21231         already checked module names again.
21232
21233 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21234
21235         Speed up by a factor of 1.13.
21236         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21237         for new_files, and the input to func_add_or_update.
21238
21239 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21240
21241         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21242         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21243
21244 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21245
21246         * modules/mkancesdirs (Depends-on): Add fcntl.
21247         * modules/savewd: New file.
21248         * MODULES.html.sh (File system functions): Add savewd.
21249
21250         * modules/configmake (Makefile.am): Add support for the
21251         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21252
21253 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21254
21255         * m4/savewd.m4: New file.
21256
21257 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21258
21259         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21260         (dirchownmod): New arg FD.  All callers changed.
21261         Use FD rather than opening the directory ourself, as opening is
21262         now the caller's responsibility.
21263         * lib/dirchownmod.h: Likewise.
21264         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21265         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21266         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21267         (test_dir): Remove.
21268         (mkancesdirs): Return length of prefix of FILE that has already
21269         been made, or -2 if there is a child doing the work.  Redo
21270         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21271         ".", and treat ".." specially since it might stray back into
21272         already-created areas.  Use a subprocess if necessary.  New arg
21273         WD; all users changed.  MAKE_DIR function should now return 1
21274         if it creates a directory that is not readable.  Return -2 if
21275         a child process is spun off.
21276         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21277         Adjust signature to match code.
21278         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21279         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21280         all users changed.
21281         * lib/savewd.c, lib/savewd.h: New files.
21282
21283 2006-09-15  Jim Meyering  <jim@meyering.net>
21284
21285         * modules/rename-dest-slash: New module.
21286         * MODULES.html.sh (posix_compat): Add it here.
21287
21288         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21289
21290 2006-09-15  Jim Meyering  <jim@meyering.net>
21291
21292         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21293         file.
21294
21295         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21296
21297 2006-09-15  Jim Meyering  <jim@meyering.net>
21298
21299         * lib/rename-dest-slash.c (has_trailing_slash): Use
21300         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21301         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21302         test before testing whether SRC is a directory.
21303         Suggestions from Bruno Haible.
21304
21305         Avoid a warning about an unused variable.
21306         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21307         into the #ifdef block where it's used.
21308
21309         * lib/rename-dest-slash.c: New file.
21310
21311 2006-09-14  Bruno Haible  <bruno@clisp.org>
21312
21313         * lib/allocsa.c: Include <config.h> unconditionally.
21314         * lib/asnprintf.c: Likewise.
21315         * lib/asprintf.c: Likewise.
21316         * lib/c-strcasecmp.c: Likewise.
21317         * lib/c-strcasestr.c: Likewise.
21318         * lib/c-strncasecmp.c: Likewise.
21319         * lib/c-strstr.c: Likewise.
21320         * lib/classpath.c: Likewise.
21321         * lib/clean-temp.c: Likewise.
21322         * lib/concatpath.c: Likewise.
21323         * lib/copy-file.c: Likewise.
21324         * lib/csharpcomp.c: Likewise.
21325         * lib/csharpexec.c: Likewise.
21326         * lib/execute.c: Likewise.
21327         * lib/fatal-signal.c: Likewise.
21328         * lib/findprog.c: Likewise.
21329         * lib/fwriteerror.c: Likewise.
21330         * lib/gl_array_list.c: Likewise.
21331         * lib/gl_array_oset.c: Likewise.
21332         * lib/gl_avltree_list.c: Likewise.
21333         * lib/gl_avltree_oset.c: Likewise.
21334         * lib/gl_avltreehash_list.c: Likewise.
21335         * lib/gl_carray_list.c: Likewise.
21336         * lib/gl_linked_list.c: Likewise.
21337         * lib/gl_linkedhash_list.c: Likewise.
21338         * lib/gl_list.c: Likewise.
21339         * lib/gl_oset.c: Likewise.
21340         * lib/gl_rbtree_list.c: Likewise.
21341         * lib/gl_rbtree_oset.c: Likewise.
21342         * lib/gl_rbtreehash_list.c: Likewise.
21343         * lib/imaxabs.c: Likewise.
21344         * lib/imaxdiv.c: Likewise.
21345         * lib/javacomp.c: Likewise.
21346         * lib/javaexec.c: Likewise.
21347         * lib/javaversion.c: Likewise.
21348         * lib/linebreak.c: Likewise.
21349         * lib/localcharset.c: Likewise.
21350         * lib/lock.c: Likewise.
21351         * lib/mbchar.c: Likewise.
21352         * lib/mbswidth.c: Likewise.
21353         * lib/mkdtemp.c: Likewise.
21354         * lib/pipe.c: Likewise.
21355         * lib/printf-args.c: Likewise.
21356         * lib/printf-parse.c: Likewise.
21357         * lib/progname.c: Likewise.
21358         * lib/progreloc.c: Likewise.
21359         * lib/readlink.c: Likewise.
21360         * lib/sh-quote.c: Likewise.
21361         * lib/stpcpy.c: Likewise.
21362         * lib/stpncpy.c: Likewise.
21363         * lib/strcasecmp.c: Likewise.
21364         * lib/strcasestr.c: Likewise.
21365         * lib/strcspn.c: Likewise.
21366         * lib/striconv.c: Likewise.
21367         * lib/strncasecmp.c: Likewise.
21368         * lib/strnlen1.c: Likewise.
21369         * lib/strstr.c: Likewise.
21370         * lib/strtok_r.c: Likewise.
21371         * lib/tls.c: Likewise.
21372         * lib/tmpdir.c: Likewise.
21373         * lib/unicodeio.c: Likewise.
21374         * lib/unsetenv.c: Likewise.
21375         * lib/vasnprintf.c: Likewise.
21376         * lib/vasprintf.c: Likewise.
21377         * lib/wait-process.c: Likewise.
21378         * lib/xallocsa.c: Likewise.
21379         * lib/xsetenv.c: Likewise.
21380         * lib/xstriconv.c: Likewise.
21381
21382 2006-09-13  Simon Josefsson  <jas@extundo.com>
21383
21384         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21385         that internally, suggested by Ralf Wildenhues
21386         <Ralf.Wildenhues@gmx.de>.
21387
21388 2006-09-13  Simon Josefsson  <jas@extundo.com>
21389
21390         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21391         @LIBOBJS@.
21392         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21393
21394 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21395
21396         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21397         longer worry about uses that don't define HAVE_CONFIG_H.
21398         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21399         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21400         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21401         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21402         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21403         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21404         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21405         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21406         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21407         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21408         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21409         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21410         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21411         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21412         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21413         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21414         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21415         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21416         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21417         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21418         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21419         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21420         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21421         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21422         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21423         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21424         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21425         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21426         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21427         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21428         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21429         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21430         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21431         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21432         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21433         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21434         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21435         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21436         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21437         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21438         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21439         Likewise.
21440
21441 2006-09-13  Eric Blake  <ebb9@byu.net>
21442
21443         * lib/getopt.c: Fix typo in last commit.
21444
21445 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21446
21447         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21448         dgettext.
21449
21450 2006-09-12  Jim Meyering  <jim@meyering.net>
21451
21452         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21453         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21454         Reported by Nelson H. F. Beebe.
21455
21456 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21457
21458         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21459         program_invocation_name and program_invocation_short_name are
21460         initialized.
21461         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21462         and program_invocation_short_name to argp.h, so they are visible
21463         to user programs.
21464         * lib/argp.h: Likewise
21465
21466 2006-09-10  Bruno Haible  <bruno@clisp.org>
21467
21468         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21469         m4/inttypes_h.m4, m4/uintmax_t.m4.
21470
21471 2006-09-10  Bruno Haible  <bruno@clisp.org>
21472
21473         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21474         gl_AC_TYPE_UINTMAX_T.
21475
21476 2006-09-10  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21479
21480 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21481
21482         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21483         convention.  Text proposed by Bruno Haible.
21484         (struct argp_option): Document the use of N_() wrappers.
21485
21486         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21487         '\v', and translate the two parts separately, instead of feeding
21488         the whole string to gettext.  This allows to exclude
21489         '\v' from the strings visible to the translator by writing doc
21490         strings as N_("..") "\v" N_("..").
21491
21492 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21493
21494         * config/srclist.txt: Undo latest change; the bug was fixed.
21495
21496 2006-09-09  Bruno Haible  <bruno@clisp.org>
21497
21498         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21499         assignments if building a library without libtool.
21500         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21501         in func_emit_lib_Makefile_am.
21502         (func_import): When building a static library libfoo.a, arrange to
21503         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21504         (func_create_testdir): Likewise.
21505         * modules/gc (configure.ac, Makefile.am): If building statically,
21506         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21507         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21508         * modules/striconv (configure.ac, Makefile.am): Likewise.
21509         Based on a suggestion by Ralf Wildenhues.
21510
21511 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21514         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21515         Also:
21516
21517         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21518         Add year_2050_test to catch glibc bug 2821
21519         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21520
21521         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21522         Prefer #ifdef to #if.
21523
21524         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21525         Return from 'main' instead of calling 'exit'.
21526
21527 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21528
21529         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21530         returned the maximum time_t value rather than (time_t) -1.
21531         Problem originally reported by William Bardwell
21532         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21533
21534         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21535         Moved to here ...
21536         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21537         ... from here.
21538
21539 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21540
21541         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21542         2821 is fixed.
21543
21544 2006-09-08  Jim Meyering  <jim@meyering.net>
21545
21546         Don't make generated files read-only.  That would bother too many
21547         people.  However, do retain the ability to work when targets are
21548         read-only: remove the destination and temporary files before writing
21549         them (when generated via sed or echo), or by using the -f option for
21550         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21551         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21552         * modules/byteswap, modules/configmake, modules/fcntl:
21553         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21554         * modules/localcharset, modules/netinet_in, modules/poll:
21555         * modules/stdbool, modules/stdint, modules/sys_select:
21556         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21557
21558 2006-09-08  Jim Meyering  <jim@meyering.net>
21559
21560         Avoid new build failure on FreeBSD 6.0.
21561         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21562         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21563         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21564
21565 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21566
21567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21568
21569 2006-09-07  Jim Meyering  <jim@meyering.net>
21570
21571         Fix global typo in last change: use chmod u-w, not chmod u-x.
21572         Spotted by Paul Eggert and Bruce Korb.
21573         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21574         * modules/byteswap, modules/configmake, modules/fcntl:
21575         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21576         * modules/localcharset, modules/netinet_in, modules/poll:
21577         * modules/stdbool, modules/stdint, modules/sys_select:
21578         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21579
21580 2006-09-06  Jim Meyering  <jim@meyering.net>
21581
21582         Make generated files be read-only.
21583         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21584         Ensure that each generated file is now read-only.
21585         * modules/argz: Likewise.
21586         * modules/arpa_inet: Likewise.
21587         * modules/byteswap: Likewise.
21588         * modules/configmake: Likewise.
21589         * modules/fcntl: Likewise.
21590         * modules/fnmatch: Likewise.
21591         * modules/getopt: Likewise.
21592         * modules/glob: Likewise.
21593         * modules/inttypes: Likewise.
21594         * modules/netinet_in: Likewise.
21595         * modules/poll: Likewise.
21596         * modules/stdbool: Likewise.
21597         * modules/stdint: Likewise.
21598         * modules/sys_select: Likewise.
21599         * modules/sys_socket: Likewise.
21600         * modules/sys_stat: Likewise.
21601         * modules/sysexits: Likewise.
21602         * modules/localcharset: Same as above, but continue using temporary
21603         file named "t-$@" (why different?) rather than the "$@-t" used
21604         everywhere else.
21605
21606         * modules/sysexits (Makefile.am): Replace literal occurrences
21607         of "sysexit.h" more readable, and more consistent, "$@".
21608
21609 2006-09-06  Bruno Haible  <bruno@clisp.org>
21610
21611         * modules/striconv: New file.
21612         * modules/xstriconv: New file.
21613         * MODULES.html.sh (Internationalization functions): Add striconv,
21614         xstriconv.
21615
21616 2006-09-06  Bruno Haible  <bruno@clisp.org>
21617
21618         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21619         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21620         not using libtool correctly.
21621
21622 2006-09-06  Bruno Haible  <bruno@clisp.org>
21623
21624         * lib/striconv.h: New file.
21625         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21626         iconvstring.c.
21627         * lib/xstriconv.h: New file.
21628         * lib/xstriconv.c: New file.
21629
21630 2006-09-06  Bruno Haible  <bruno@clisp.org>
21631
21632         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21633         lib_..._LDFLAGS.
21634
21635 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21636
21637         * lib/argz_.h: Sync from Libtool.
21638
21639         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21640                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21641
21642         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21643
21644 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21645
21646         * modules/trim: New file.
21647
21648 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21649
21650         * lib/trim.h: New file.
21651         * lib/trim.c: New file.
21652
21653 2006-09-05  Bruno Haible  <bruno@clisp.org>
21654
21655         * MODULES.html.sh (String handling): Add trim.
21656
21657 2006-09-04  Karl Berry  <karl@gnu.org>
21658
21659         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21660         until next release.
21661
21662 2006-09-03  Bruno Haible  <bruno@clisp.org>
21663
21664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21665         correctly.
21666
21667 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21668
21669         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21670         not gl_GETLOADAVG.  Omit unneeded semicolons.
21671         Problems reported by Ralf Wildenhues in
21672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21673         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21674         at the end, which is the usual gnulib style.
21675
21676         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21677         of doing all the work ourselves.
21678         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21679         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21680
21681 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21682
21683         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21684         Problem reported by Ralf Wildenhues in
21685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21686
21687         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21688         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21689
21690 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21691
21692         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21693         yesterday's patch by changing test -n to test -z.
21694
21695 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21696
21697         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21698         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21699         the former is now obsolescent.
21700
21701         * modules/chdir-long (Depends-on): Add fcntl.
21702
21703 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21704
21705         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21706         obsolescent, and programs should use gnulib instead.
21707         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21708         but with prefixes changed.
21709
21710 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21711
21712         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21713         or stdbool.h, because they might not exist while configuring.
21714
21715         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21716         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21717         does that for us.
21718         (O_DIRECTORY): Remove.
21719
21720 2006-08-31  Eric Blake  <ebb9@byu.net>
21721
21722         * gnulib-tool: Don't let emacs change spaces to TAB.
21723
21724 2006-08-31  Bruno Haible  <bruno@clisp.org>
21725
21726         * gnulib-tool: When calling func_import more than once, do it in a
21727         subshell.
21728         Reported by Eric Blake <ebb9@byu.net>.
21729
21730 2006-08-31  Bruno Haible  <bruno@clisp.org>
21731
21732         * gnulib-tool (nl): Remove variable.
21733         (sed_transform_lib_file): Use more robust test for config-h module.
21734         (func_import): Fix typo in 2006-08-25 patch.
21735
21736 2006-08-31  Bruno Haible  <bruno@clisp.org>
21737
21738         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21739         specified, augment Makefile.am variables instead of assigning them.
21740
21741 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21742
21743         Work around a bug in both the Linux and SunOS 64-bit kernels:
21744         nanosleep mishandles sleeps for longer than 2**31 seconds.
21745         Problem reported by Frank v Waveren in
21746         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21748         Check for nanosleep bug.
21749         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21750
21751 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21752
21753         Work around a bug in both the Linux and SunOS 64-bit kernels:
21754         nanosleep mishandles sleeps for longer than 2**31 seconds.
21755         Problem reported by Frank v Waveren in
21756         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21757         * lib/nanosleep.c (BILLION): New constant.
21758         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21759         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21760         implementation.
21761
21762 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21763
21764         * modules/nanosleep (Depends-on): Add gettime.
21765
21766 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21767         and Simon Josefsson  <jas@extundo.com>
21768         and Oskar Liljeblad  <oskar@osk.mine.nu>
21769
21770         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21771         * gnulib-tool (func_import): New license type 'unmodifiable license
21772         text'.
21773         * modules/fdl: Use it.  Longer description.
21774         * module/gpl, module/lgpl: New files.
21775
21776 2006-08-30  Jim Meyering  <jim@meyering.net>
21777
21778         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21779         shadowing the parameter.
21780
21781 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21782
21783         Sync from Libtool:
21784
21785         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21786
21787         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21788         sharing with gnulib.  Report by Eric Blake.
21789
21790 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21791
21792         * modules/isapipe: New file.
21793         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21794
21795 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21796
21797         * modules/configmake (Makefile.am): Add a comment, and omit
21798         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21799         by Bruno Haible.
21800
21801 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21802
21803         * m4/isapipe.m4: New file.
21804
21805 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21806
21807         * lib/isapipe.c, lib/isapipe.h: New files.
21808
21809 2006-08-29  Jim Meyering  <jim@meyering.net>
21810
21811         * modules/configmake (Makefile.am): Make configmake.h depend on
21812         Makefile.  Otherwise, a stale configmake.h could hang around.
21813
21814 2006-08-29  Eric Blake  <ebb9@byu.net>
21815
21816         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21817         resolution of upstream bug 3044.
21818
21819 2006-08-29  Bruno Haible  <bruno@clisp.org>
21820
21821         * modules/localcharset (Depends-on): Add configmake.
21822         (Makefile.am): Remove setting of LIBDIR through DEFS.
21823
21824 2006-08-29  Bruno Haible  <bruno@clisp.org>
21825
21826         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21827         defined.
21828
21829 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21830
21831         * modules/fcntl: New file.
21832         * modules/chdir-safer (Depends-on): Add fcntl.
21833         * modules/fts: Likewise.
21834         * modules/mkdir-p: Likewise.
21835
21836         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21837         This undoes the most recent change, since we're now addressing the
21838         problem in a different way.
21839
21840         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21841         into output, since the output might be called Makefile.am even
21842         if $makefile_name is something different.
21843         (func_import): Use $makefile_am rather than
21844         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21845         empty.
21846
21847         * modules/inttypes (Files): Add m4/inttypes-h.m4.
21848
21849 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21850
21851         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21852         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
21853         recent change to stdint.m4, since we're now addressing the problem in a
21854         different way.
21855
21856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21857
21858         * m4/fcntl_h.m4: New file.
21859
21860 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21861
21862         * lib/fcntl_.h: New file.
21863         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21864         the fcntl module.
21865         * lib/dirchownmod.c: Likewise.
21866         * lib/fts.c: Likewise.
21867
21868         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21869         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21870         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21871         just before including <inttypes.h>, to avoid circular inclusion.
21872
21873 2006-08-28  Jim Meyering  <jim@meyering.net>
21874
21875         * doc/visibility.texi: Actually read and correct the grammar of the
21876         sentence affected by yesterday's change.
21877
21878 2006-08-28  Eric Blake  <ebb9@byu.net>
21879
21880         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21881         needs wrapper.
21882
21883 2006-08-28  Eric Blake  <ebb9@byu.net>
21884
21885         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21886
21887 2006-08-28  Eric Blake  <ebb9@byu.net>
21888
21889         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21890
21891 2006-08-28  Bruno Haible  <bruno@clisp.org>
21892
21893         * modules/c-strstr: New file, from GNU gettext.
21894         * MODULES.html.sh (String handling): Add c-strstr.
21895
21896 2006-08-28  Bruno Haible  <bruno@clisp.org>
21897
21898         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21899         macros.
21900         Reported by Eric Blake.
21901
21902 2006-08-28  Bruno Haible  <bruno@clisp.org>
21903
21904         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21905         (VASNPRINTF): Return a string of length > INT_MAX without failing.
21906         * lib/vasprintf.c: Include errno.h, limits.h.
21907         (EOVERFLOW): New fallback definition.
21908         (vasprintf): Test here whether the string length is > INT_MAX.
21909         * lib/vsnprintf.c: Include errno.h, limits.h.
21910         (EOVERFLOW): New fallback definition.
21911         (vsnprintf): Fix bug when generated string was too long for the buffer.
21912         Test here whether the string length is > INT_MAX.
21913
21914 2006-08-28  Bruno Haible  <bruno@clisp.org>
21915
21916         * lib/inttypes_.h (SCNX*): Remove definitions.
21917         Reported by Eric Blake.
21918
21919 2006-08-28  Bruno Haible  <bruno@clisp.org>
21920
21921         * lib/c-strstr.h: New file, from GNU gettext.
21922         * lib/c-strstr.c: New file, from GNU gettext.
21923
21924 2006-08-28  Bruno Haible  <bruno@clisp.org>
21925
21926         * gnulib-tool: Reorder some statements.
21927
21928 2006-08-28  Bruno Haible  <bruno@clisp.org>
21929
21930         * gnulib-tool: New option --makefile-name.
21931         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21932         $makefile_name.
21933         (func_import): Write $makefile_name to the cache file, and read it from
21934         there unless explicitly specified. Use $makefile_name as file name
21935         instead of Makefile.am. Adjust the recommendations accordingly.
21936
21937 2006-08-28  Bruno Haible  <bruno@clisp.org>
21938
21939         * gnulib-tool (func_verify_module): Check against misapplying patch.
21940
21941 2006-08-28  Bruno Haible  <bruno@clisp.org>
21942
21943         * gnulib-tool (func_relativize, func_relconcat): New functions.
21944         Give an error if --local-dir is given with --update.
21945         Remove trailing slashes from $local_gnulib_dir.
21946         (func_import): Store the relativized $local_gnulib_dir in
21947         gnulib-cache.m4, and read it from there if not specified explicitly.
21948
21949 2006-08-28  Bruno Haible  <bruno@clisp.org>
21950
21951         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21952         is the current directory. Respect also $local_gnulib_dir.
21953
21954 2006-08-28  Bruno Haible  <bruno@clisp.org>
21955             Simon Josefsson  <jas@extundo.com>
21956
21957         BeOS portability.
21958         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21959
21960 2006-08-27  Jim Meyering  <jim@meyering.net>
21961
21962         * doc/visibility.texi: Remove duplicate word: "pointer".
21963
21964 2006-08-26  Bruno Haible  <bruno@clisp.org>
21965
21966         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21967         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21968         (Makefile.am): Create inttypes.h from inttypes_.h.
21969         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21970
21971         * modules/imaxabs: New file.
21972
21973         * modules/imaxdiv: New file.
21974
21975 2006-08-26  Bruno Haible  <bruno@clisp.org>
21976
21977         * m4/inttypes.m4: New file.
21978         * m4/_inttypes_h.m4: Remove file.
21979         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21980         PRI_MACROS_BROKEN.
21981         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21982
21983         * m4/imaxabs.m4: New file.
21984
21985         * m4/imaxdiv.m4: New file.
21986
21987 2006-08-26  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/inttypes_.h: New file.
21990         * lib/inttypes.h: Remove file.
21991         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21992
21993         * lib/imaxabs.c: New file.
21994
21995         * lib/imaxdiv.c: New file.
21996
21997 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21998
21999         New config-h module, so that "make" output needn't be cluttered
22000         by -DHAVE_CONFIG_H.
22001         * MODULES.html.sh (Support for building libraries and executables):
22002         Add config-h.
22003         * modules/config-h: New file.
22004         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22005         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22006         the config-h module is used.
22007
22008         New configmake module, so that "make" output needn't be cluttered
22009         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22010         * MODULES.html.sh (Support for building libraries and executables):
22011         Add configmake.
22012         * modules/configmake: New file.
22013
22014 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22015
22016         * m4/config-h.m4: New file.
22017
22018 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         * config/srclist.txt: Add elisp-comp.
22021
22022 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22023
22024         * MODULES.html.sh (Support for building libraries and executables):
22025         Add elisp-comp.
22026         * build-aux/elisp-comp: New file.
22027         * modules/elisp-comp: New file.
22028
22029 2006-08-24  Bruno Haible  <bruno@clisp.org>
22030
22031         * gnulib-tool (func_create_testdir): Use non-default values of
22032         sourcebase and m4base.
22033
22034 2006-08-24  Bruno Haible  <bruno@clisp.org>
22035
22036         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22037         HTML structure.
22038
22039 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22040
22041         * modules/openat (Depends-on): Add lchown.
22042
22043 2006-08-23  Bruno Haible  <bruno@clisp.org>
22044
22045         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22046         of gl_LOCK_EARLY instead of gl_LOCK.
22047
22048 2006-08-23  Bruno Haible  <bruno@clisp.org>
22049
22050         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22051         on OSF/1 to no.
22052         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22053
22054 2006-08-23  Bruno Haible  <bruno@clisp.org>
22055
22056         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22057         as unusable.
22058
22059         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22060         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22061         (gl_LOCK): New macro.
22062
22063 2006-08-22  Simon Josefsson  <jas@extundo.com>
22064
22065         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22066         to md5 module.
22067
22068 2006-08-22  Simon Josefsson  <jas@extundo.com>
22069
22070         * MODULES.html.sh: Add "Support for maintaining and release
22071         projects".
22072
22073         * build-aux/gnupload: New file, from coreutils.
22074
22075 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22076
22077         Avoid the need for AC_LIBSOURCES in m4 macros.
22078         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22079         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22080         * modules/check-version (EXTRA_DIST): Add check-version.h.
22081         * modules/crc (EXTRA_DIST): Add crc.h.
22082         * modules/des (EXTRA_DIST): Add des.h.
22083         * modules/gc (EXTRA_DIST): Add gc.h.
22084         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22085         * modules/getline (EXTRA_DIST): Add getline.h.
22086         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22087         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22088         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22089         * modules/md2 (EXTRA_DIST): Add md2.h.
22090         * modules/md4 (EXTRA_DIST): Add md4.h.
22091         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22092         * modules/read-file (EXTRA_DIST): Add read-file.h.
22093         * modules/readline (EXTRA_DIST): Add readline.h.
22094         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22095         rijndael-api-fst.h.
22096
22097 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22098
22099         * m4/rijndael.m4 (gl_ARCFOUR):
22100         * m4/arctwo.m4 (gl_ARCTWO):
22101         * m4/check-version.m4 (gl_CHECK_VERSION):
22102         * m4/crc.m4 (gl_CRC):
22103         * m4/des.m4 (gl_DES):
22104         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22105         * m4/gc.m4 (gl_GC):
22106         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22107         * m4/getline.m4 (gl_FUNC_GETLINE):
22108         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22109         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22110         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22111         * m4/md2.m4 (gl_MD2):
22112         * m4/md4.m4 (gl_MD4):
22113         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22114         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22115         * m4/readline.m4 (gl_FUNC_READLINE):
22116         * m4/rijndael.m4 (gl_RIJNDAEL):
22117         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22118         to get the necessary .h files and whatnot.
22119
22120 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22123         gnulib rather than the other way around.
22124         * config/srclistvars.sh (COREUTILS): Remove.
22125
22126 2006-08-22  Jim Meyering  <jim@meyering.net>
22127
22128         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22129
22130         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22131
22132 2006-08-22  Eric Blake  <ebb9@byu.net>
22133
22134         * modules/regexprops-generic: New file.
22135         * MODULES.html.sh (Support for building documentation): List it.
22136
22137 2006-08-22  Eric Blake  <ebb9@byu.net>
22138
22139         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22140         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22141         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22142         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22143
22144 2006-08-22  Bruno Haible  <bruno@clisp.org>
22145
22146         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22147         and lib_LTLIBRARIES like the other lib_* variables.
22148
22149 2006-08-22  Bruno Haible  <bruno@clisp.org>
22150
22151         * build-aux/x-to-1.in: New file, from GNU gettext.
22152
22153 2006-08-22  Bruno Haible  <bruno@clisp.org>
22154
22155         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22156         <utmpx.h> exists.
22157
22158 2006-08-22  Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22161         <utmpx.h> exists.
22162
22163 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22164
22165         BeOS portability.
22166         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22167         exist.
22168         Problem reported by Bruno Haible.
22169
22170 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22171
22172         Avoid the need for AC_LIBSOURCES in m4 macros.
22173         * modules/acl (EXTRA_DIST): Add acl.h.
22174         * modules/argmatch (Files): Add m4/argmatch.m4.
22175         (configure.ac): Add gl_ARGMATCH.
22176         (EXTRA_DIST): Renamed from lib_SOURCES, for
22177         consistency with the other modules.  Remove argmatch.c.
22178         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22179         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22180         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22181         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22182         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22183         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22184         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22185         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22186         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22187         * modules/closeout (EXTRA_DIST): Add closeout.h.
22188         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22189         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22190         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22191         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22192         dirname.h; remove basename.c and stripslash.c.
22193         * modules/exclude (EXTRA_DIST): Add exclude.h.
22194         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22195         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22196         * modules/file-type (EXTRA_DIST): Add file-type.h.
22197         * modules/filemode (EXTRA_DIST): Add filemode.h.
22198         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22199         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22200         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22201         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22202         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22203         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22204         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22205         * modules/getdate (EXTRA_DIST): Add getdate.c.
22206         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22207         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22208         * modules/getpass (EXTRA_DIST): Add getpass.h.
22209         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22210         * modules/group-member (EXTRA_DIST): Add group-member.h.
22211         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22212         * modules/hash (EXTRA_DIST): Add hash.h.
22213         * modules/human (EXTRA_DIST): Add human.h.
22214         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22215         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22216         * modules/lchown (EXTRA_DIST): Add lchown.h.
22217         * modules/long-options (EXTRA_DIST): Add long-options.h.
22218         * modules/lstat (EXTRA_DIST): Add lstat.h.
22219         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22220         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22221         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22222         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22223         * modules/memxor (EXTRA_DIST): Add memxor.h.
22224         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22225         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22226         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22227         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22228         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22229         * modules/physmem (EXTRA_DIST): Add physmem.h.
22230         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22231         * modules/posixver (EXTRA_DIST): Add posixver.h.
22232         * modules/quote (EXTRA_DIST): Add quote.h.
22233         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22234         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22235         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22236         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22237         regex_internal.h regexec.c.
22238         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22239         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22240         * modules/same (EXTRA_DIST): Add same.h.
22241         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22242         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22243         * modules/savedir (EXTRA_DIST): Add savedir.h.
22244         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22245         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22246         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22247         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22248         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22249         * modules/strdup (EXTRA_DIST): Add strdup.h.
22250         * modules/strftime (EXTRA_DIST): Add strftime.h.
22251         * modules/strndup (EXTRA_DIST): Add strndup.h.
22252         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22253         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22254         * modules/time_r (EXTRA_DIST): Add time_r.h.
22255         * modules/timespec (EXTRA_DIST): Add timespec.h.
22256         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22257         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22258         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22259         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22260         * modules/userspec (EXTRA_DIST): Add userspec.h.
22261         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22262         * modules/utimens (EXTRA_DIST): Add utimens.h.
22263         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22264         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22265         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22266         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22267         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22268         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22269         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22270         * modules/yesno (EXTRA_DIST): Add yesno.h.
22271
22272 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22275
22276         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22277         * m4/dev-ino.m4, same-inode.m4: Remove.
22278
22279         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22280         * m4/acl.m4 (AC_FUNC_ACL):
22281         * m4/backupfile.m4 (gl_BACKUPFILE):
22282         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22283         * m4/canon-host.m4 (gl_CANON_HOST):
22284         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22285         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22286         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22287         * m4/cloexec.m4 (gl_CLOEXEC):
22288         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22289         * m4/closeout.m4 (gl_CLOSEOUT):
22290         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22291         * m4/dirname.m4 (gl_DIRNAME):
22292         * m4/exclude.m4 (gl_EXCLUDE):
22293         * m4/exitfail.m4 (gl_EXITFAIL):
22294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22295         * m4/file-type.m4 (gl_FILE_TYPE):
22296         * m4/filemode.m4 (gl_FILEMODE):
22297         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22298         * m4/fpending.m4 (gl_FUNC_FPENDING):
22299         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22300         * m4/fts.m4 (gl_FUNC_FTS):
22301         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22302         * m4/getdate.m4 (gl_GETDATE):
22303         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22304         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22305         * m4/getpass.m4 (gl_FUNC_GETPASS):
22306         * m4/gettime.m4 (gl_GETTIME):
22307         * m4/getugroups.m4 (gl_GETUGROUPS):
22308         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22309         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22310         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22311         * m4/hash.m4 (gl_HASH):
22312         * m4/idcache.m4 (gl_IDCACHE):
22313         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22314         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22315         * m4/long-options.m4 (gl_LONG_OPTIONS):
22316         * m4/lstat.m4 (gl_FUNC_LSTAT):
22317         * m4/md5.m4 (gl_MD5):
22318         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22319         * m4/memcoll.m4 (gl_MEMCOLL):
22320         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22322         * m4/memxor.m4 (gl_MEMXOR):
22323         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22325         * m4/modechange.m4 (gl_MODECHANGE):
22326         * m4/mountlist.m4 (gl_MOUNTLIST):
22327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22328         * m4/openat.m4 (gl_FUNC_OPENAT):
22329         * m4/pathmax.m4 (gl_PATHMAX):
22330         * m4/physmem.m4 (gl_PHYSMEM):
22331         * m4/posixtm.m4 (gl_POSIXTM):
22332         * m4/posixver.m4 (gl_POSIXVER):
22333         * m4/quote.m4 (gl_QUOTE):
22334         * m4/quotearg.m4 (gl_QUOTEARG):
22335         * m4/readtokens.m4 (gl_READTOKENS):
22336         * m4/readutmp.m4 (gl_READUTMP):
22337         * m4/regex.m4 (gl_REGEX):
22338         * m4/safe-read.m4 (gl_SAFE_READ):
22339         * m4/safe-write.m4 (gl_SAFE_WRITE):
22340         * m4/same.m4 (gl_SAME):
22341         * m4/save-cwd.m4 (gl_SAVE_CWD):
22342         * m4/savedir.m4 (gl_SAVEDIR):
22343         * m4/settime.m4 (gl_SETTIME):
22344         * m4/sha1.m4 (gl_SHA1):
22345         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22346         * m4/stat-macros.m4 (gl_STAT_MACROS):
22347         * m4/stat-time.m4 (gl_STAT_TIME):
22348         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22349         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22350         * m4/strdup.m4 (gl_FUNC_STRDUP):
22351         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22352         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22353         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22354         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22355         * m4/time_r.m4 (gl_TIME_R):
22356         * m4/timespec.m4 (gl_TIMESPEC):
22357         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22358         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22359         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22360         * m4/userspec.m4 (gl_USERSPEC):
22361         * m4/utimecmp.m4 (gl_UTIMECMP):
22362         * m4/utimens.m4 (gl_UTIMENS):
22363         * m4/xalloc.m4 (gl_XALLOC):
22364         * m4/xgetcwd.m4 (gl_XGETCWD):
22365         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22366         * m4/xreadlink.m4 (gl_XREADLINK):
22367         * m4/xstrtod.m4 (gl_XSTRTOD):
22368         * m4/yesno.m4 (gl_YESNO):
22369         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22370         to get the necessary .h files and whatnot.
22371
22372 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22373             Bruno Haible  <bruno@clisp.org>
22374
22375         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22376         /bin/sh understanding of '!' conditional negation.
22377
22378 2006-08-21  Jim Meyering  <jim@meyering.net>
22379
22380         * modules/openat (Depends-on): Really alphabetize.
22381
22382         * modules/acl (Depends-on): Add error and quote.
22383
22384         * check-module (find_included_lib_files): Add at-func.c to the
22385         ok-to-include-more-than-once white list.
22386
22387         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22388
22389 2006-08-21  Bruno Haible  <bruno@clisp.org>
22390
22391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22392         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22393         Reported by Martin Lambers <marlam@marlam.de>.
22394
22395 2006-08-21  Bruno Haible  <bruno@clisp.org>
22396
22397         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22398         specify an installation location, don't emit a noinst_LIBRARIES or
22399         noinst_LTLIBRARIES assignment.
22400
22401 2006-08-21  Bruno Haible  <bruno@clisp.org>
22402
22403         BeOS portability.
22404         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22405         BeOS has mbrtowc() but no <wctype.h>.
22406
22407 2006-08-21  Bruno Haible  <bruno@clisp.org>
22408
22409         BeOS portability.
22410         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22411         exist.
22412
22413 2006-08-21  Bruno Haible  <bruno@clisp.org>
22414
22415         BeOS portability.
22416         * lib/mbchar.h: Include <wctype.h> only if it exists.
22417
22418 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22419
22420         Remove files that are no longer needed by their respective modules.
22421         * m4/obstack.m4: Remove.
22422         * m4/strerror_r.m4: Remove.
22423         * m4/uint32_t.m4: Remove.
22424         * m4/uintptr_t.m4: Remove.
22425         * m4/ullong_max.m4: Remove.
22426         * m4/xstrtoimax.m4: Remove.
22427         * m4/xstrtoumax.m4: Remove.
22428
22429         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22430         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22431         dependencies now capture this.
22432
22433         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22434         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22435         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22436         * m4/human.m4 (gl_HUMAN): Likewise.
22437         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22438         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22439
22440         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22441
22442         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22443         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22444         stdint.
22445         * m4/human.m4 (gl_HUMAN): Likewise.
22446         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22447         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22448         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22449         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22450         * m4/xstrtol (gl_XSTRTOL): Likewise.
22451
22452         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22453         AC_TYPE_LONG_LONG_INT.
22454         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22455         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22456         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22457         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22458
22459         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22460         on stdbool.
22461
22462         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22463         (gl_PREREQ_XSTRTOUL): Remove.
22464
22465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22466
22467         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22468         mode.
22469
22470 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22471
22472         Add and change modules to make it easier for coreutils to use
22473         gnulib-tool.
22474         * modules/backupfile (Files): Remove m4/d-ino.m4.
22475         (Depends-on): Add d-ino.
22476         * modules/cycle-check (Depends-on): Add stdint.
22477         (lib_SOURCES): Add cycle-check.h.
22478         * modules/d-ino: New module.
22479         * modules/d-type: New module.
22480         * modules/error (Files): Remove m4/strerror_r.m4.
22481         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22482         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22483         m4/inttypes_h.m4, m4/uintmax_t.m4.
22484         (Depends-on): Add stdint.
22485         (lib_SOURCES): Add fsusage.h.
22486         * modules/getcwd (Files): Remove d-ino.m4.
22487         (Depends-on): Add d-ino.
22488         * modules/getndelim2 (Depends-on): Add stdint.
22489         * modules/glob (Files): Remove m4/d-type.m4.
22490         (Depends-on): Add d-type.
22491         * modules/host-os: New module.
22492         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22493         m4/inttypes_h.m4, m4/uintmax_t.m4.
22494         * Depends-on: Add stdint.
22495         (lib_SOURCES): Add human.h.
22496         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22497         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22498         m4/uintmax_t.m4, m4/ulonglong.m4.
22499         (Depends-on): Add stdint.
22500         (EXTRA_DIST): Add inttostr.h.
22501         * modules/lchmod: New module.
22502         * modules/link-follow: New module.
22503         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22504         (Depends-on): Add lchmod.
22505         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22506         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22507         (Depends-on): Add stdint.
22508         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22509         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22510         (Depends-on): Add stdint.
22511         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22512         * modules/perl: New module.
22513         * modules/regex (Depends-on): Add stdint.
22514         * modules/rmdir-errno: New module.
22515         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22516         m4/intmax_t.m4.
22517         (Depends-on): Add stdint.
22518         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22519         m4/uintmax_t.m4.
22520         (Depends-on): Add stdint.
22521         * modules/unlink-busy: New module.
22522         * modules/utimecmp (Depends-on): Add stdint.
22523         * modules/uptime: New module.
22524         * modules/winsz-ioctl: New module.
22525         * modules/winsz-termios: New module.
22526         * modules/xnanosleep (Depends-on): Add nanosleep.
22527         * modules/ullong_max: Remove.
22528         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22529         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22530         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22531         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22532         (Depends-on): Add inttypes.
22533         (lib_SOURCES): Add xstrtol.h.
22534         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22535         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22536         * MODULES.html.sh: Move 'assert' into the assert section.
22537         Move 'dummy' into the linking section.
22538         Remove ullong_max.
22539         Add section for compatibility checks for POSIX:2001 functions,
22540         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22541         winsz-ioctl, and winsz-termios into it.
22542         Add lchmod.
22543         Add top-level Misc section and put host-os, perl, and uptime
22544         into it.
22545
22546 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22547
22548         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22549         now assume the stdint module.  Do not include inttypes.h.
22550         * lib/fsusage.h: Likewise.
22551         * lib/getndelim2.c: Likewise.
22552         * lib/human.h: Likewise.
22553         * lib/inttostr.h: Likewise.
22554         * lib/obstack.c: Likewise.
22555         * lib/regex_internal.h: Likewise.
22556         * lib/tempname.c: Likewise.
22557         * lib/utimecmp.c: Likewise.
22558         * lib/xstrtol.h: Likewise.
22559
22560         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22561
22562         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22563         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22564         * lib/xtime.h: Likewise.
22565
22566 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22567
22568         * modules/openat (Files): Add lib/fchmodat.c.
22569         Fixes problem reported by Jay Youngman.
22570
22571 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22572
22573         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22574         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22575
22576 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22577             Bruno Haible  <bruno@clisp.org>
22578
22579         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22580         and is a script that invokes bison. Tighten the code. Add comments.
22581
22582 2006-08-18  Jim Meyering  <jim@meyering.net>
22583
22584         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22585         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22586         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22587         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22588
22589 2006-08-18  Bruno Haible  <bruno@clisp.org>
22590
22591         * modules/bison-i18n: New file.
22592         * MODULES.html.sh (Internationalization functions): Add it.
22593
22594 2006-08-18  Bruno Haible  <bruno@clisp.org>
22595
22596         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22597         sys/statvfs.h. When getmntinfo was found, check its declaration and
22598         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22599
22600 2006-08-18  Bruno Haible  <bruno@clisp.org>
22601
22602         * m4/bison-i18n.m4: New file, from bison.
22603
22604 2006-08-18  Bruno Haible  <bruno@clisp.org>
22605
22606         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22607         (ME_DUMMY): Treat "kernfs" as a dummy.
22608         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22609
22610 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22611
22612         Update from coreutils.
22613
22614         2006-08-15  Jim Meyering  <jim@meyering.net>
22615
22616         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22617
22618         2006-01-17  Jim Meyering  <jim@meyering.net>
22619
22620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22621
22622         2006-01-11  Jim Meyering  <jim@meyering.net>
22623
22624         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22625         Check for the lchmod function.
22626
22627 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22628
22629         Update from coreutils.
22630
22631         * lib/__fpending.h: Add copyright notice.
22632         * lib/fprintftime.h: Likewise.
22633         * lib/savedir.c: Use (C) in copyright notice.
22634         * lib/savedir.h: Likewise.
22635
22636         2006-08-15  Jim Meyering  <jim@meyering.net>
22637
22638         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22639         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22640         in support of the EXPECTED_ERRNO macro.
22641         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22642         definitions.  Instead, define the appropriate symbols and include
22643         "at-func.c".
22644         * lib/mkdirat.c (mkdirat): Likewise.
22645         * lib/fchmodat.c (fchmodat): Likewise.
22646         (ENOSYS): Remove definition.
22647         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22648         it.  Don't include "unistd--.h" -- it wasn't ever used.
22649
22650         2006-01-17  Jim Meyering  <jim@meyering.net>
22651
22652         Rewrite fts.c not to change the current working directory,
22653         by using openat, fstatat, fdopendir, etc..
22654
22655         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22656         (HAVE_OPENAT_SUPPORT): Define.
22657         [_LIBC] (fchdir): Don't undef or define; no longer used.
22658         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22659         Now, this `function' always succeeds, and consumes its file descriptor
22660         parameter -- so callers must not close such FDs.  Update callers.
22661         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22662         (diropen): Add parameter, SP.  Adjust all callers.
22663         Implement using diropen_fd, rather than open.
22664         (fts_open): Initialize new member, fts_cwd_fd.
22665         Remove fts_rft-setting code.
22666         (fts_close): Close fts_cwd_fd, if necessary.
22667         (__opendir2): Define in terms of opendir or opendirat,
22668         depending on whether the FST_NOCHDIR flag is set.
22669         (fts_build): Since fts_safe_changedir consumes its FD, and since
22670         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22671         and close the dup'd file descriptor upon failure.
22672         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22673         (fts_safe_changedir): Tweak semantics to reflect that this function
22674         now calls cwd_advance_fd and hence consumes its FD argument.
22675         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22676         [struct FTS] (fts_rft): Remove now-unused member.
22677         [struct FTS] (fts_cycle.state): Improve comment.
22678
22679         * lib/openat.c (openat_needs_fchdir): New function.
22680         * lib/openat.h (openat_needs_fchdir): Declare it.
22681
22682 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22683
22684         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22685         Problem and fix reported by Pádraig Brady in
22686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22687
22688 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22689
22690         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22691
22692 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22693
22694         * lib/memcoll.c (memcoll): Optimize for the common case where the
22695         arguments are bytewise equal.
22696
22697 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22698
22699         * doc/regexprops-generic.texi: Add a copyright notice.
22700
22701 2006-08-15  Bruno Haible  <bruno@clisp.org>
22702
22703         * modules/tmpdir (License): Change to LGPL.
22704
22705 2006-08-15  Bruno Haible  <bruno@clisp.org>
22706
22707         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22708         module.
22709
22710 2006-08-14  Simon Josefsson  <jas@extundo.com>
22711
22712         * config/srclist.txt: Add gnupload.
22713
22714 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22715
22716         Change copyright notice from LGPL 2 to GPL 2, since that's the
22717         standard form used in the gnulib repository.
22718         * tests/test-lock.c: Likewise.
22719         * tests/test-stdint.c: Likewise.
22720         * tests/test-tls.c: Likewise.
22721
22722         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22723         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22724         Add copyright notice.
22725
22726         * check-module: Add copyright notice.  Output a copyright
22727         notice if "--version" is specified.
22728         * modules/COPYING: New file.
22729         * tests/test-getaddrinfo.c: Add copyright notice.
22730         * tests/test-verify.c: Likewise.
22731
22732 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         Change copyright notice from LGPL 2 to GPL 2, since that's the
22735         standard form used in the gnulib repository.
22736         * lib/lock.c: LGPL -> GPL.
22737         * lib/lock.h: Likewise.
22738         * lib/strnlen1.c: Likewise.
22739         * lib/strnlen1.h: Likewise.
22740         * lib/tls.c: Likewise.
22741         * lib/tls.h: Likewise.
22742         * lib/tmpdir.c: Likewise.
22743
22744         * lib/TODO: Remove; this belongs only in coreutils.
22745
22746 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22747
22748         Add copyright notices to long-enough files that lack them, since
22749         otherwise the files aren't clearly free.  Use the same notice that
22750         getdate.texi already uses.
22751         * doc/alloca-opt.texi: Add copyright notice.
22752         * doc/alloca.texi: Likewise.
22753         * doc/ctime.texi: Likewise.
22754         * doc/functions.texi: Likewise.
22755         * doc/gcd.texi: Likewise.
22756         * doc/gnulib-tool.texi: Likewise.
22757         * doc/inet_ntoa.texi: Likewise.
22758         * doc/visibility.texi: Likewise.
22759
22760         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22761         * doc/quote.texi: Add copyright notice.
22762
22763         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22764         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22765         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22766         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22767         is now obsolete, and give a pointer to the Sun list.
22768         Add copyright notice.
22769
22770 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22771
22772         * config/srclistvars.sh: Add copyright notice.
22773
22774 2006-08-14  Eric Blake  <ebb9@byu.net>
22775
22776         Import the following change from libc:
22777
22778         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22779
22780         Upstream bug 2997.
22781         * lib/misc/error.c: Add space between program name and message if file
22782         name is missing.
22783
22784 2006-08-12  Karl Berry  <karl@gnu.org>
22785
22786         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22787         remove, these originate in gnulib now.
22788
22789 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22790
22791         * doc/Makefile (standards.info standards.html standards.dvi):
22792         Also depend on make-stds.texi.
22793
22794 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22795
22796         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22797         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22798
22799         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22800         in wchar_t.  Problem reported by Eric Blake.
22801
22802         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22803         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22804         Also, help the compiler to keep LEN in a register.
22805
22806 2006-08-11  Eric Blake  <ebb9@byu.net>
22807
22808         * users.txt: Sort.  Add tar.
22809
22810 2006-08-11  Bruno Haible  <bruno@clisp.org>
22811
22812         * users.txt: New file.
22813
22814 2006-08-11  Bruno Haible  <bruno@clisp.org>
22815
22816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22817         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22818
22819 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22820
22821         * modules/snprintf (Depends-on): Remove minmax.
22822         (Maintainer): Add self and Bruno.
22823
22824 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22825
22826         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22827         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22828         (EOVERFLOW): Define if the system does not.
22829         Do not include "minmax.h"; it wasn't used.
22830         (snprintf): Don't assume size_t promotes to an unsigned type.
22831         Fix bug when generated string was too long for the buffer: the
22832         buffer's contents are supposed to be the initial prefix of the
22833         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22834         exceeds INT_MAX; do the check ourselves.
22835
22836         Import the following changes from libc:
22837
22838         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
22839
22840         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22841         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
22842         set wc to the byte which couldn't be converted.
22843         (re_string_reconstruct): Don't clear valid_raw_len before calling
22844         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
22845         tip_context using re_string_context_at.
22846
22847         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
22848
22849         * lib/posix/regex.h: g++ still cannot handled [restrict].
22850
22851         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
22852
22853         * lib/posix/regex.h: Remove special handling for VMS.
22854
22855 2006-08-10  Jim Meyering  <jim@meyering.net>
22856
22857         * modules/same-inode: New module.
22858         * modules/dev-ino: New module.
22859         * modules/cycle-check: Depend on these modules, rather than simply
22860         including their .h files.
22861         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22862         required via m4/cycle-check.m4.
22863         * modules/same: Depend on new same-inode module, rather than
22864         including same-inode.h.
22865         * modules/chdir-safer: New file.
22866
22867         * modules/chown (Depends-on): Add stat-macros.
22868
22869 2006-08-10  Jim Meyering  <jim@meyering.net>
22870
22871         * m4/cycle-check.m4: New file.
22872         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22873         * m4/dev-ino.m4, m4/same-inode.m4: New files.
22874
22875 2006-08-10  Eric Blake  <ebb9@byu.net>
22876
22877         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22878         in from original proposal.
22879
22880 2006-08-10  Eric Blake  <ebb9@byu.net>
22881         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22882
22883         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22884         namespace.
22885
22886 2006-08-10  Bruno Haible  <bruno@clisp.org>
22887
22888         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22889         as well.
22890
22891 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22892
22893         Sync from coreutils.
22894
22895         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
22896
22897         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22898         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22899
22900 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22901
22902         * modules/restrict: Remove; no longer needed now that we assume
22903         Autoconf 2.59 or later.
22904         * MODULES.html.sh: Remove 'restrict'.
22905         * modules/argp (Depends-on): Remove 'restrict'.
22906         * modules/base64 (Depends-on): Likewise.
22907         * modules/gc (Depends-on): Likewise.
22908         * modules/getaddrinfo (Depends-on): Likewise.
22909         * modules/glob (Depends-on): Likewise.
22910         * modules/inet_ntop (Depends-on): Likewise.
22911         * modules/inet_pton (Depends-on): Likewise.
22912         * modules/memxor (Depends-on): Likewise.
22913         * modules/regex (Depends-on): Likewise.
22914         * modules/strtok_r (Depends-on): Likewise.
22915         * modules/time_r (Depends-on): Likewise.
22916
22917 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22918
22919         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22920         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22921         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22922         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22923         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22924         * m4/memxor.m4 (gl_MEMXOR): Likewise.
22925         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
22926         gl_C_RESTRICT replaced by AC_C_RESTRICT.
22927
22928         Merge from coreutils.
22929         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22930         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22931         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22932         * m4/time_r.m4 (gl_TIME_R): Likewise.
22933
22934 2006-08-09  Karl Berry  <karl@gnu.org>
22935
22936         * config/srclist.txt: no more gettext-tools, per Bruno.
22937
22938 2006-08-08  Eric Blake  <ebb9@byu.net>
22939
22940         * modules/verror: New module.
22941         * MODULES.html.sh: Document it.
22942
22943 2006-08-08  Eric Blake  <ebb9@byu.net>
22944
22945         * lib/verror.h, lib/verror.c: New files.
22946
22947 2006-08-08  Eric Blake  <ebb9@byu.net>
22948
22949         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22950         verror_at_line output complies with GNU Coding Standards even when
22951         file is NULL.
22952
22953 2006-08-07  Bruno Haible  <bruno@clisp.org>
22954
22955         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22956         versions of AIX.
22957         Reported by Ralf Wildenhues.
22958
22959 2006-08-07  Bruno Haible  <bruno@clisp.org>
22960
22961         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22962         in an AC_DEFUN. Needed so that the autoconf snippets can use
22963         AC_REQUIRE.
22964
22965 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22966
22967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22968         Initialize pkgdata_DATA.
22969         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22970         overriding it.
22971
22972 2006-08-06  Eric Blake  <ebb9@byu.net>
22973
22974         * lib/error.h: Fold in some upstream changes from glibc.
22975         * lib/error.c: Likewise.
22976
22977 2006-08-04  Bruno Haible  <bruno@clisp.org>
22978
22979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22980         Make the mostlyclean-local rule depend on mostlyclean-generic.
22981         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22982
22983 2006-07-31  Bruno Haible  <bruno@clisp.org>
22984
22985         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22986         <stdlib.h>, <string.h>.
22987
22988 2006-07-30  Bruno Haible  <bruno@clisp.org>
22989
22990         * modules/readlink (License): Change to LGPL.
22991
22992 2006-07-30  Bruno Haible  <bruno@clisp.org>
22993
22994         * modules/javaversion (Makefile.am): Distribute javaversion.java and
22995         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22996         set PKGDATADIR to point to it.
22997
22998 2006-07-30  Bruno Haible  <bruno@clisp.org>
22999
23000         * modules/csharpexec (configure.ac): Comment out macro invocation.
23001         * modules/javaexec (configure.ac): Likewise.
23002         * modules/javacomp-script (configure.ac): Likewise.
23003
23004         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23005
23006 2006-07-30  Bruno Haible  <bruno@clisp.org>
23007
23008         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23009         linked-list.
23010
23011 2006-07-30  Bruno Haible  <bruno@clisp.org>
23012
23013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23014
23015 2006-07-30  Bruno Haible  <bruno@clisp.org>
23016
23017         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23018         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23019         get removed.
23020
23021 2006-07-29  Bruno Haible  <bruno@clisp.org>
23022
23023         Make it possible for gnulib-tool to work with locally modified or
23024         augmented gnulib repositories.
23025         * gnulib-tool (func_usage): Document --local-dir option.
23026         (local_gnulib_dir): New variable.
23027         Handle --local-dir option.
23028         (func_lookup_file): New function.
23029         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23030         (func_get_description, func_get_filelist, func_get_description,
23031         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23032         func_get_automake_snippet, func_get_include_directive,
23033         func_get_license, func_get_maintainer): Use func_lookup_file.
23034         (func_import, func_create_testdir): Use func_lookup_file.
23035
23036 2006-07-29  Bruno Haible  <bruno@clisp.org>
23037
23038         * modules/setenv (Depends-on): Add unistd.
23039
23040 2006-07-29  Bruno Haible  <bruno@clisp.org>
23041
23042         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23043
23044 2006-07-29  Bruno Haible  <bruno@clisp.org>
23045
23046         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23047
23048 2006-07-29  Bruno Haible  <bruno@clisp.org>
23049
23050         * gnulib-tool (import, update): If there is no Makefile.am, look at
23051         aclocal.m4, instead of bailing out.
23052
23053 2006-07-29  Bruno Haible  <bruno@clisp.org>
23054
23055         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23056         Categorize the options by when they are useful.
23057
23058 2006-07-29  Bruno Haible  <bruno@clisp.org>
23059
23060         * gnulib-tool (func_usage): Document option --no-libtool.
23061         Handle option --no-libtool.
23062         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23063         for changed semantics of $libtool variable.
23064         (func_import): Likewise. If libtool is not used, show this through
23065         an option --no-libtool.
23066         (func_create_testdir): Update.
23067
23068 2006-07-29  Bruno Haible  <bruno@clisp.org>
23069
23070         * gnulib-tool (func_import): Extend error message about missing
23071         --doc-base.
23072
23073 2006-07-29  Bruno Haible  <bruno@clisp.org>
23074
23075         * gnulib-tool (func_import): Don't create the $docbase directory if
23076         there is no file to store there.
23077
23078 2006-07-29  Bruno Haible  <bruno@clisp.org>
23079
23080         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23081         relevant, look for configure.ac there, not in the current directory.
23082         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23083
23084 2006-07-29  Bruno Haible  <bruno@clisp.org>
23085
23086         * gnulib-tool (SORT): New variable.
23087         (func_usage): Undocument --assume-autoconf option.
23088         Remove --assume-autoconf option handling.
23089         (autoconf_minversion): Determine from the contents of configure.ac.
23090         (func_import): Remove autoconf_minversion handling.
23091         Suggested by Eric Blake.
23092
23093 2006-07-29  Bruno Haible  <bruno@clisp.org>
23094
23095         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23096
23097 2006-07-29  Bruno Haible  <bruno@clisp.org>
23098
23099         * config/srclist.txt (*setenv.[ch]): Remove rules.
23100
23101 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23102
23103         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23104
23105 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23106
23107         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23108         arpa/inet.h.
23109
23110 2006-07-28  Simon Josefsson  <jas@extundo.com>
23111
23112         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23113         * modules/inet_pton (Depends-on): Likewise.
23114
23115 2006-07-28  Simon Josefsson  <jas@extundo.com>
23116
23117         * m4/netinet_in_h.m4: New file.
23118
23119 2006-07-28  Simon Josefsson  <jas@extundo.com>
23120
23121         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23122         #include's.
23123
23124 2006-07-28  Simon Josefsson  <jas@extundo.com>
23125
23126         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23127         #include's.
23128
23129 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23130
23131         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23132         setgid on directories only if they set these bits.
23133         * lib/modechange.h: Remove obsolete comment about masks.
23134
23135 2006-07-28  Eric Blake  <ebb9@byu.net>
23136
23137         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23138         macro expansion.
23139
23140 2006-07-28  Bruno Haible  <bruno@clisp.org>
23141
23142         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23143
23144 2006-07-28  Bruno Haible  <bruno@clisp.org>
23145
23146         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23147
23148 2006-07-28  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23151         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23152         Define fallbacks.
23153         Avoids link error on FreeBSD 4.x.
23154         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23155
23156         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23157         encoding.
23158         * lib/mbswidth.c (iswcntrl): Likewise.
23159
23160 2006-07-27  Bruno Haible  <bruno@clisp.org>
23161
23162         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23163         test.
23164
23165 2006-07-27  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23168         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23169         defined.
23170
23171 2006-07-26  Eric Blake  <ebb9@byu.net>
23172
23173         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23174
23175 2006-07-26  Eric Blake  <ebb9@byu.net>
23176
23177         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23178         like mingw that lack mkstemp.
23179         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23180         avoid compilation warning on mingw.
23181
23182 2006-07-26  Bruno Haible  <bruno@clisp.org>
23183
23184         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23185         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23186         INT_FAST*_MIN, INTPTR_MIN.
23187
23188 2006-07-25  Bruno Haible  <bruno@clisp.org>
23189
23190         * modules/version-etc (Depends-on): Add stdarg.
23191
23192 2006-07-25  Bruno Haible  <bruno@clisp.org>
23193
23194         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23195         complex commands.
23196
23197 2006-07-25  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23200         defined in <stdarg.h> or config.h.
23201
23202 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23203
23204         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23205         (gl_STDIO_SAFER): Remove.
23206
23207 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23208
23209         * MODULES.html.sh (File stream based Input/Output):
23210         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23211         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23212         * modules/fopen-safer, modules/tmpfile-safer: New files.
23213         * modules/stdio-safer: Remove.
23214
23215 2006-07-24  Bruno Haible  <bruno@clisp.org>
23216
23217         * modules/tmpdir: New file.
23218         * MODULES.html.sh (File system functions): Add it.
23219
23220 2006-07-24  Bruno Haible  <bruno@clisp.org>
23221
23222         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23223         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23224
23225 2006-07-24  Bruno Haible  <bruno@clisp.org>
23226
23227         * modules/clean-temp: New file.
23228
23229 2006-07-24  Bruno Haible  <bruno@clisp.org>
23230
23231         * m4/tmpdir.m4: New file, from GNU gettext.
23232
23233 2006-07-24  Bruno Haible  <bruno@clisp.org>
23234
23235         * lib/tmpdir.h: New file, from GNU gettext.
23236         * lib/tmpdir.c: New file, from GNU gettext.
23237
23238 2006-07-24  Bruno Haible  <bruno@clisp.org>
23239
23240         * lib/clean-temp.h: New file, from GNU gettext.
23241         * lib/clean-temp.c: New file, from GNU gettext.
23242
23243 2006-07-23  Eric Blake  <ebb9@byu.net>
23244
23245         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23246         (Depends-on): Add binary-io.
23247
23248 2006-07-23  Eric Blake  <ebb9@byu.net>
23249
23250         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23251
23252 2006-07-23  Eric Blake  <ebb9@byu.net>
23253
23254         * lib/tmpfile-safer.c: New file.
23255         * lib/stdio-safer.h (fopen_safer): Add prototype.
23256         * lib/stdio--.h (tmpfile): Make safer.
23257
23258 2006-07-23  Bruno Haible  <bruno@clisp.org>
23259
23260         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23261         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23262         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23263         gl_linked_remove_at): Use it.
23264
23265 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23266         and Simon Josefsson <jas@extundo.com>
23267
23268         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23269
23270         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23271
23272 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23273
23274         * modules/close-stream: New file.
23275         * modules/closeout (Description): Make it clear that it exits
23276         with a diagnostic on error.
23277         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23278         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23279
23280 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23281
23282         * m4/close-stream.m4: New file.
23283
23284 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23285
23286         * lib/close-stream.c, lib/close-stream.h: New files.
23287
23288 2006-07-22  Bruno Haible  <bruno@clisp.org>
23289
23290         Merge from GNU gettext 0.15.
23291
23292         2006-05-01  Bruno Haible  <bruno@clisp.org>
23293
23294                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23295
23296         2006-07-22  Bruno Haible  <bruno@clisp.org>
23297
23298                 * modules/javaversion: New file.
23299                 * MODULES.html.sh (Java): Add javaversion.
23300
23301         2006-03-12  Bruno Haible  <bruno@clisp.org>
23302
23303                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23304
23305         2005-12-04  Bruno Haible  <bruno@clisp.org>
23306
23307                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23308                 (untested).
23309
23310         2006-06-21  Bruno Haible  <bruno@clisp.org>
23311
23312                 Avoid warnings from recent versions of mcs.
23313                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23314                 -o, -L, -r any more. Use options documented since mcs-1.0
23315                 instead. Similarly for -g.
23316
23317         2005-12-04  Bruno Haible  <bruno@clisp.org>
23318
23319                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23320                 .resources, not .resource.
23321
23322         2005-07-09  Bruno Haible  <bruno@clisp.org>
23323
23324                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23325                 add a .dll suffix.
23326                 Reported by Mark Junker <mjscod@gmx.de>.
23327
23328         2006-07-22  Bruno Haible  <bruno@clisp.org>
23329
23330                 * modules/gettext: Upgrade to gettext-0.15.
23331                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23332                 m4/visibility.m4.
23333                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23334
23335 2006-07-22  Bruno Haible  <bruno@clisp.org>
23336
23337         Merge from GNU gettext 0.15.
23338
23339         2006-03-25  Bruno Haible  <bruno@clisp.org>
23340
23341                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23342
23343         2006-07-21  Bruno Haible  <bruno@clisp.org>
23344
23345                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23346                 "1.1".
23347
23348         2006-05-09  Bruno Haible  <bruno@clisp.org>
23349
23350                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23351                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23352                 for the conftestver execution.
23353
23354         2006-05-01  Bruno Haible  <bruno@clisp.org>
23355
23356                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23357                 optional target-version argument. Verify that the compiler
23358                 groks source of the specified source-version, or add -source
23359                 option as necessary. Verify that the compiler produces
23360                 bytecode in the specified target-version, or add -target and
23361                 -source options as necessary. Make the result of the test
23362                 available as variable CONF_JAVAC. Also log error output in
23363                 config.log.
23364
23365         2006-03-11  Bruno Haible  <bruno@clisp.org>
23366
23367                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23368
23369         2006-05-09  Bruno Haible  <bruno@clisp.org>
23370
23371                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23372                 CLASSPATH_SEPARATOR to a semicolon.
23373
23374         2006-03-12  Bruno Haible  <bruno@clisp.org>
23375
23376                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23377                 available as variable CONF_JAVA, for subsequent autoconf
23378                 tests. Also log error output in config.log.
23379
23380         2006-07-19  Bruno Haible  <bruno@clisp.org>
23381
23382                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23383                 that getline works on glibc2 systems. Needed to avoid trouble
23384                 in relocatable.c.
23385                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23386
23387         2005-12-04  Bruno Haible  <bruno@clisp.org>
23388
23389                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23390                 launcher (untested).
23391
23392         2005-12-04  Bruno Haible  <bruno@clisp.org>
23393
23394                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23395
23396         2006-07-22  Bruno Haible  <bruno@clisp.org>
23397
23398                 * gettext.m4: Update from GNU gettext-0.15.
23399                 * nls.m4: Likewise.
23400                 * po.m4: Likewise.
23401                 * inttypes-pri.m4: Likewise.
23402                 * inttypes-h.m4: Renamed from inttypes.m4.
23403                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23404
23405 2006-07-22  Bruno Haible  <bruno@clisp.org>
23406
23407         Merge from GNU gettext 0.15.
23408
23409         2005-07-05  Bruno Haible  <bruno@clisp.org>
23410
23411                 * printf-args.c (printf_fetchargs): Work around broken
23412                 definition of wint_t on mingw.
23413
23414         2005-02-12  Bruno Haible  <bruno@clisp.org>
23415
23416                 * xallocsa.h: Add extern "C" for C++.
23417
23418         2006-05-17  Bruno Haible  <bruno@clisp.org>
23419
23420                 Cygwin portability.
23421                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23422
23423         2006-04-30  Bruno Haible  <bruno@clisp.org>
23424
23425                 * progreloc.c: Include <mach-o/dyld.h> if available.
23426                 (find_executable): Use _NSGetExecutablePath when possible.
23427
23428         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23429
23430                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23431                 function.
23432
23433         2005-12-29  Bruno Haible  <bruno@clisp.org>
23434
23435                 * progreloc.c (set_program_name_and_installdir): Fix
23436                 compilation error.
23437
23438         2005-12-04  Bruno Haible  <bruno@clisp.org>
23439
23440                 Cygwin portability.
23441                 * progreloc.c: Include <windows.h> also on Cygwin.
23442                 (find_executable): Add support for Cygwin.
23443                 (set_program_name_and_installdir): Handle also platforms with
23444                 nonempty EXEEXT.
23445
23446         2006-07-11  Bruno Haible  <bruno@clisp.org>
23447
23448                 * javacomp.c: Fix a comment.
23449                 Reported by Jim Meyering.
23450
23451         2006-04-30  Bruno Haible  <bruno@clisp.org>
23452
23453                 * javacomp.h (compile_java_class): Add source_version,
23454                 target_version arguments.
23455                 * javacomp.c: Rewritten to choose only a compiler that
23456                 respects the specified source_version and target_version.
23457
23458         2006-06-27  Bruno Haible  <bruno@clisp.org>
23459
23460                 Assume correct S_ISDIR macro.
23461                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23462
23463         2006-07-22  Bruno Haible  <bruno@clisp.org>
23464
23465                 * javaversion.h: New file, from GNU gettext.
23466                 * javaversion.c: New file, from GNU gettext.
23467                 * javaversion.java: New file, from GNU gettext.
23468                 * javaversion.class: New file, from GNU gettext.
23469
23470         2006-05-17  Bruno Haible  <bruno@clisp.org>
23471
23472                 Cygwin portability.
23473                 * javaexec.c (execute_java_class): Test for jview program
23474                 also on Cygwin.
23475
23476         2006-04-09  Bruno Haible  <bruno@clisp.org>
23477
23478                 * fatal-signal.c: Don't include string.h.
23479                 (at_fatal_signal): Use a copying loop instead of memcpy.
23480
23481         2005-12-04  Bruno Haible  <bruno@clisp.org>
23482
23483                 * csharpexec.c: Add support for 'clix' launcher (untested).
23484                 (execute_csharp_using_sscli): New function.
23485                 (execute_csharp_program): Call it.
23486
23487         2006-06-21  Bruno Haible  <bruno@clisp.org>
23488
23489                 Avoid warnings from recent versions of mcs.
23490                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23491                 -o, -L, -r any more. Use options documented since mcs-1.0
23492                 instead. Similarly for -g.
23493
23494         2005-07-09  Bruno Haible  <bruno@clisp.org>
23495
23496                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23497                 add a .dll suffix.
23498                 Reported by Mark Junker <mjscod@gmx.de>.
23499
23500         2006-06-17  Bruno Haible  <bruno@clisp.org>
23501
23502                 * config.charset: Update for NetBSD 3.0.
23503
23504         2006-05-17  Bruno Haible  <bruno@clisp.org>
23505
23506                 Cygwin portability.
23507                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23508
23509         2006-05-16  Bruno Haible  <bruno@clisp.org>
23510
23511                 * localcharset.c [CYGWIN]: Include <windows.h>.
23512                 (get_charset_aliases): For Cygwin, return the same CPxxx
23513                 aliases list as under WIN32.
23514                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23515                 the environment variables. Fall back to GetACP().
23516
23517         2006-04-05  Bruno Haible  <bruno@clisp.org>
23518
23519                 * config.charset: Update Juan Manuel Guerrero's address.
23520
23521         2005-02-12  Bruno Haible  <bruno@clisp.org>
23522
23523                 * allocsa.h: Add extern "C" for C++.
23524
23525         2005-02-10  Bruno Haible  <bruno@clisp.org>
23526
23527                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23528                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23529
23530         2006-07-22  Bruno Haible  <bruno@clisp.org>
23531
23532                 * gettext.h: Update to GNU gettext-0.15.
23533
23534 2006-07-22  Bruno Haible  <bruno@clisp.org>
23535
23536         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23537         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23538         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23539
23540 2006-07-21  Eric Blake  <ebb9@byu.net>
23541
23542         * modules/stdlib-safer: New file.
23543         * MODULES.html.sh (File stream based Input/Output): Add
23544         stdlib-safer.
23545
23546 2006-07-21  Eric Blake  <ebb9@byu.net>
23547
23548         * lib/stdlib-safer.h: New file from coreutils, required by
23549         stdlib--.h.
23550
23551 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23552
23553         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23554
23555 2006-07-20  Bruno Haible  <bruno@clisp.org>
23556
23557         * gnulib-tool: Recognize new option --assume-autoconf.
23558         (autoconf_minversion): New variable.
23559         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23560
23561 2006-07-20  Bruno Haible  <bruno@clisp.org>
23562
23563         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23564
23565 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23566
23567         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23568         Reindent and repaginate.
23569
23570 2006-07-19  Derek Price  <derek@ximbiot.com>
23571
23572         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23573         Correct grammar.
23574
23575 2006-07-17  Bruno Haible  <bruno@clisp.org>
23576
23577         * modules/list: New file.
23578         * modules/array-list: New file.
23579         * modules/carray-list, modules/carray-list-tests: New files.
23580         * modules/linked-list, modules/linked-list-tests: New files.
23581         * modules/avltree-list, modules/avltree-list-tests: New files.
23582         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23583         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23584         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23585         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23586         * modules/oset: New file.
23587         * modules/array-oset: New file.
23588         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23589         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23590         * tests/test-carray_list.c: New file.
23591         * tests/test-linked_list.c: New file.
23592         * tests/test-avltree_list.c: New file.
23593         * tests/test-rbtree_list.c: New file.
23594         * tests/test-linkedhash_list.c: New file.
23595         * tests/test-avltreehash_list.c: New file.
23596         * tests/test-rbtreehash_list.c: New file.
23597         * tests/test-avltree_oset.c: New file.
23598         * tests/test-rbtree_oset.c: New file.
23599         * MODULES.html.sh (Container data structures): New section.
23600
23601 2006-07-17  Bruno Haible  <bruno@clisp.org>
23602
23603         * m4/gl_list.m4: New file.
23604
23605 2006-07-17  Bruno Haible  <bruno@clisp.org>
23606
23607         * lib/gl_list.h: New file.
23608         * lib/gl_list.c: New file.
23609         * lib/gl_array_list.h: New file.
23610         * lib/gl_array_list.c: New file.
23611         * lib/gl_carray_list.h: New file.
23612         * lib/gl_carray_list.c: New file.
23613         * lib/gl_linked_list.h: New file.
23614         * lib/gl_linked_list.c: New file.
23615         * lib/gl_anylinked_list1.h: New file.
23616         * lib/gl_anylinked_list2.h: New file.
23617         * lib/gl_avltree_list.h: New file.
23618         * lib/gl_avltree_list.c: New file.
23619         * lib/gl_anyavltree_list1.h: New file.
23620         * lib/gl_anyavltree_list2.h: New file.
23621         * lib/gl_rbtree_list.h: New file.
23622         * lib/gl_rbtree_list.c: New file.
23623         * lib/gl_anyrbtree_list1.h: New file.
23624         * lib/gl_anyrbtree_list2.h: New file.
23625         * lib/gl_anytree_list1.h: New file.
23626         * lib/gl_anytree_list2.h: New file.
23627         * lib/gl_linkedhash_list.h: New file.
23628         * lib/gl_linkedhash_list.c: New file.
23629         * lib/gl_anyhash_list1.h: New file.
23630         * lib/gl_anyhash_list2.h: New file.
23631         * lib/gl_avltreehash_list.h: New file.
23632         * lib/gl_avltreehash_list.c: New file.
23633         * lib/gl_rbtreehash_list.h: New file.
23634         * lib/gl_rbtreehash_list.c: New file.
23635         * lib/gl_anytreehash_list1.h: New file.
23636         * lib/gl_anytreehash_list2.h: New file.
23637
23638         * lib/gl_oset.h: New file.
23639         * lib/gl_oset.c: New file.
23640         * lib/gl_array_oset.h: New file.
23641         * lib/gl_array_oset.c: New file.
23642         * lib/gl_avltree_oset.h: New file.
23643         * lib/gl_avltree_oset.c: New file.
23644         * lib/gl_rbtree_oset.h: New file.
23645         * lib/gl_rbtree_oset.c: New file.
23646         * lib/gl_anytree_oset.h: New file.
23647
23648 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23649
23650         * m4/mkancesdirs.m4: New file.
23651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23652         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23653         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23654         it.
23655
23656 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23657
23658         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23659         * lib/mkancesdirs.h: New files.
23660         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23661         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23662         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23663         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23664         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23665         callers changed.  Revamp internals significantly, by not
23666         attempting to create directories that are temporarily more
23667         permissive than the final results.  Do not attempt to use
23668         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23669         This removes some race conditions, fixes some bugs, and simplifies
23670         things.  Use new dirchownmod function to do owner and mode changes.
23671         * lib/mkdir-p.h: Likewise.
23672         * lib/modechange.c (octal_to_mode): New function.
23673         (struct mode_change): New member mentioned.
23674         (make_node_op_equals): New arg mentioned.  All callers changed.
23675         (mode_compile): Keep track of which mode bits the user has explicitly
23676         mentioned.
23677         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23678         New arg PMODE_BITS, to keep track of which mode bits the user
23679         mentioned; it treats S_ISUID and S_ISGID speciall.
23680         All callers changed.
23681         * lib/modechange.h: Likewise.
23682
23683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23684
23685         * MODULES.html.sh: Add mkancestors.
23686         * modules/mkancesdirs: New module.
23687         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23688         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23689         The chdir-safer and afs files are now orphans; I'll remove them
23690         unless someone speaks up.
23691         Add lib/dirchownmod.c, lib/dirchownmod.h.
23692         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23693         Add lchown, mkancesdirs.
23694         (Maintainer): Add self.
23695
23696 2006-07-15  Karl Berry  <karl@gnu.org>
23697
23698         * gnulib-tool: help message wording/arrangement.
23699
23700 2006-07-14  Simon Josefsson  <jas@extundo.com>
23701
23702         * doc/gnulib.texi (Libtool and Windows): New section.
23703
23704 2006-07-12  Simon Josefsson  <jas@extundo.com>
23705
23706         * modules/gendocs (License): Fix license, approved by Karl.
23707
23708 2006-07-12  Eric Blake  <ebb9@byu.net>
23709
23710         * MODULES.html.sh: Add gendocs.
23711
23712 2006-07-11  Eric Blake  <ebb9@byu.net>
23713
23714         * modules/fdl: New module, to install doc/fdl.texi.
23715         * MODULES.html.sh: Add new section for documentation modules.
23716         * gnulib-tool: Avoid space-tab.
23717         (--doc-base): New option, to manage files from doc.
23718
23719 2006-07-11  Eric Blake  <ebb9@byu.net>
23720
23721         * m4/absolute-header.m4: Fix comments to match recent change.
23722
23723 2006-07-11  Eric Blake  <ebb9@byu.net>
23724
23725         * gnulib-tool: List --doc-base before --tests-base.
23726
23727 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23728
23729         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23730
23731 2006-07-11  Bruno Haible  <bruno@clisp.org>
23732
23733         * README: Mention where to put documentation.
23734
23735 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23736
23737         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23738
23739 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23740
23741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23742         to stdint.m4.
23743
23744 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23745
23746         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23747         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23748         "no/such/file/stdint.h" when there is no such file, so that
23749         the resulting C code can be parsed by dodgy compilers.
23750         Problems reported by Bob Proulx.
23751
23752 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23753
23754         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23755         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23756         macros into the GNU _D_EXACT_NAMLEN.
23757         * lib/savedir.c:  Likewise.
23758         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23759
23760 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23761         and Paul Eggert  <eggert@cs.ucla.edu>
23762
23763         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23764         * m4/savedir.m4:
23765         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23766         macros into the GNU _D_EXACT_NAMLEN.
23767
23768 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23769
23770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23771         around the absolute name, to work around a problem with the HP-UX
23772         11.23 native C compiler, reported by Bob Proulx.
23773
23774 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         * doc/maintain.texi, make-stds.texi: Sync from
23777         <http://savannah.gnu.org/projects/gnustandards>.
23778
23779 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23782
23783 2006-07-09  Jim Meyering  <jim@meyering.net>
23784
23785         * m4/glob.m4: Remove a doubled word in a comment.
23786
23787 2006-07-09  Jim Meyering  <jim@meyering.net>
23788
23789         * lib/argp-pv.c: Remove a doubled word in a comment.
23790         * lib/check-version.c (check_version): Likewise.
23791         * lib/javacomp.c (compile_java_class): Likewise.
23792
23793 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23794
23795         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23796         for the benefit of people using Autoconf 2.60.  If you want to
23797         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23798         (or m4/onceonly.m4, if pre-2.57) manually.
23799
23800 2006-07-08  Jim Meyering  <jim@meyering.net>
23801
23802         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23803         comment.
23804         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23805         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23806         comment.
23807
23808 2006-07-08  Jim Meyering  <jim@meyering.net>
23809
23810         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23811
23812 2006-07-07  Simon Josefsson  <jas@extundo.com>
23813
23814         * tests/test-crc.c: Change expected crc value, the test vector
23815         were probably computed using the old broken crc.c?
23816
23817 2006-07-06  Simon Josefsson  <jas@extundo.com>
23818
23819         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23820         now the canonical place for the M4 file).
23821
23822         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23823         from the sys_socket dependency now.
23824
23825         * modules/inet_pton (Files): Ditto.
23826
23827         * modules/inet_ntop (Files): Ditto.
23828
23829 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23830
23831         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23832         not gl_PREREQ_GETUSERSHELL.
23833
23834 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23835
23836         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23837         with only one argument, for Autoconf 2.60.
23838         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23839         expand to nothing, so add a shell command to avoid syntax error.
23840         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23841
23842 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23843
23844         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23845
23846 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23847
23848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23849         no longer needed.  Check for isblank decl.
23850         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23851         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23852         of existence.
23853
23854 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23855
23856         * lib/getloadavg.c: Use __VMS, not VMS.
23857         * lib/getopt.c: Likewise.
23858         * lib/getpagesize.h: Likewise.
23859         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23860         and probably does not work.
23861
23862 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23863
23864         * lib/.cppi-disable: Add wcwidth.
23865         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
23866         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23867         (ISGRAPH): Remove.  All uses changed to isgraph.
23868         (FOLD) [!defined _LIBC]: Remove special case.
23869         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23870         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23871         HAVE_ISBLANK.
23872         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23873         case.
23874
23875 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23876
23877         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23878         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23879         brackets.  Other minor changes to suppress some compiler
23880         warnings.
23881
23882 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23883         and Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23886         of invoking obsolescent AC_HEADER_DIRENT macro.
23887         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23888         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23889         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23890         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23891         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23892         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23893         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23894         * m4/readdir.m4: Remove; no longer needed.
23895
23896 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23897         and Paul Eggert  <eggert@cs.ucla.edu>
23898
23899         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23900         Don't worry about this obsolete case any more.
23901         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
23902         directories.
23903         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23904         worry about this obsolete case any more.
23905         * lib/fts.c: Likewise.
23906         * lib/getcwd.c: Likewise.
23907         * lib/glob.h: Likewise.
23908         * lib/savedir.c: Likewise.
23909
23910 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23911
23912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23913         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23914         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23915         needed.
23916         All uses removed.
23917         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23918         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23919         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23920         needed.
23921         * m4/getdate.m4 (gl_GETDATE): Likewise.
23922         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23923         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23924         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23925         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23926         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23927         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23928         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23929         needed.
23930
23931 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23932
23933         * lib/memcasecmp.c: Include <limits.h>.
23934         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23935         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23936         Don't assume isdigit succeeds only on '0' through '9'.
23937
23938 2006-07-05  Eric Blake  <ebb9@byu.net>
23939
23940         * modules/getaddrinfo (Depends-on): Add snprintf.
23941
23942 2006-07-05  Eric Blake  <ebb9@byu.net>
23943
23944         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23945         to avoid 'header present but could not be compiled' on cygwin.
23946
23947 2006-07-05  Eric Blake  <ebb9@byu.net>
23948
23949         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23950         missing from netdb.h.
23951         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23952
23953 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23954
23955         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23956         no longer needed.
23957         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23958         * m4/getdate.m4 (gl_GETDATE): Likewise.
23959         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23961         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23962         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23963         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23964
23965 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23966
23967         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23968         All uses of is_space replaced by isspace.
23969         * lib/exit.h: Don't talk about STDC_HEADERS.
23970         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
23971         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23972         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
23973         replaced by isprint etc.
23974         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23975         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23976         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23977         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23978         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23979         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23980
23981 2006-07-05  Bruno Haible  <bruno@clisp.org>
23982
23983         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23984         the function exists, before testing against AIX.
23985         Reported by Martin Lambers <marlam@marlam.de>.
23986
23987 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23988
23989         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23990         From Mark D. Baushke.
23991
23992 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23993
23994         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23995         to the absolute name, not just one, to bypass Sun C 5.8's
23996         "warning: #include of /usr/include/... may be non-portable".
23997
23998 2006-07-04  Eric Blake  <ebb9@byu.net>
23999
24000         * modules/dirname-tests: New test module.
24001         * tests/test-dirname.c: New file, replacing dirname.c
24002         TEST_DIRNAME section that was recently deleted.
24003
24004 2006-07-04  Bruno Haible  <bruno@clisp.org>
24005
24006         Assume ANSI C header files and <ctype.h> functions.
24007         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24008         (mbsnwidth): Use isprint, iscntrl instead.
24009
24010 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24011
24012         Merge from coreutils.
24013         * MODULES.html.sh: Add xstrtold.
24014         * modules/xstrtold: New file.
24015         * modules/cycle-check (Files): Add lib/same-inode.h.
24016         * modules/dirname (Files): Add m4/double-slash-root.m4.
24017         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24018         * modules/mkdir-p (Files): Add lib/same-inode.h.
24019         * modules/same (Files): Add lib/same-inode.h.
24020
24021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24024         This is to keep the terminology clean; POSIX talks about
24025         "absolute pathnames", not "full pathnames", but the GNU
24026         Coding Standards say to use "path" for something else;
24027         so use "absolute" to keep both sides happy.
24028         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24029         Set gl_absolute_header, not gl_full_header_path.
24030         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24031         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24032         All uses changed.
24033
24034         Merge from coreutils.
24035
24036         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24037
24038         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24039         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24040         want to require the building of c-strtod.o.
24041         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24042         needs -lm directly.
24043         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24044
24045         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24048         --as-needed option if available.  Problem reported by Albert Chin in
24049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24050         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24051         cc merely issues a bunch of annoying warnings for --as-needed
24052         (this problem was reported by Bob Proulx).  Also, try linking with
24053         -lm to detect a bug in binutils 2.16 (this problem was reported
24054         by Ralf Wildenhues).
24055
24056         2006-06-18  Jim Meyering  <jim@meyering.net>
24057
24058         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24059         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24060         macro.
24061         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24062         also check for glibc-2.4's abort-inducing bug.
24063
24064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24065         Low-probability clean-up should be to use rmdir to get rid of
24066         the just-created directory, not unlink.
24067
24068         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24069         configure fail, and request a bug report to inform us about it.
24070         Add a comment that, barring reports to the contrary, in 2007 we'll
24071         assume ftruncate is universally available.
24072
24073         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24074
24075         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24076
24077         2006-03-12  Jim Meyering  <jim@meyering.net>
24078
24079         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24080         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24081         * m4/same.m4 (gl_SAME): Likewise.
24082         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24083
24084         2006-03-11  Eric Blake  <ebb9@byu.net>
24085
24086         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24087         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24088         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24089         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24090
24091 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24092
24093         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24094         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24095         reported by Mark D. Baushke, one in
24096         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24097
24098         Merge from coreutils.
24099
24100         * lib/.cppi-disable: Add stdint_.h.
24101         * lib/.cvsignore: Add stdint.h.
24102
24103         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24104
24105         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24106         both double and long double versions.
24107         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24108         * lib/xstrtold.c: New file.
24109         * lib/xstrtod.h (xstrtold): New decl.
24110
24111         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24112
24113         * lib/filemode.c (setst): Remove.
24114         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24115         (arguably) clearer, and the generated code is a bit smaller on my
24116         Debian GNU/Linux stable x86 host.
24117
24118         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24119
24120         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24121         Assume that filemode.h includes sys/types.h and sys/stat.h.
24122         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24123         (ftypelet): Reorder to put common cases first, for efficiency.
24124         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24125         to do 'M'.
24126         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24127         of 10, for compatibility with FreeBSD.  All callers changed.
24128         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24129         types that can't be deduced solely from st_mode.  First arg is now a
24130         const pointer.
24131         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24132         (strmode): Renamed from mode_string.
24133         (filemodestring): New decl.
24134         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24135         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24136         needed.
24137         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24138
24139         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24142         fsusage.h now does that.  Include fsusage.h first, to test interface.
24143         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24144         at most one method (the old code could have generated decls that
24145         didn't conform to C89, not that this was ever exercised).
24146         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24147
24148         2006-03-19  Jim Meyering  <jim@meyering.net>
24149
24150         Work even in a chroot where d_ino values for entries in "/"
24151         don't match the stat.st_ino values for the same names.
24152         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24153         number, iterate through all entries again, using lstat instead.
24154         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24155         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24156
24157         * lib/getcwd.c (__getcwd): Clarify a comment.
24158         Use memcpy in place of a call to strcpy.
24159
24160         2006-03-12  Jim Meyering  <jim@meyering.net>
24161
24162         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24163         matches that of the current directory (which we're about to chdir ".."
24164         out of), then save the dev-ino of the parent, instead.
24165
24166         * lib/same-inode.h (SAME_INODE): New file/macro.
24167         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24168         Include "same-inode.h", instead.
24169         * lib/same.c: Likewise.
24170         * lib/cycle-check.h: Include "same-inode.h".
24171         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24172         * lib/cycle-check.c (SAME_INODE): Remove definition.
24173         * lib/root-dev-ino.h: Include "same-inode.h".
24174
24175         2006-03-11  Eric Blake  <ebb9@byu.net>
24176
24177         * lib/same.c (same_name): s/base_name/last_component/
24178         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24179         * lib/filenamecat.c (file_name_concat): Likewise.
24180
24181         2006-03-11  Eric Blake  <ebb9@byu.net>,
24182                     Paul Eggert  <eggert@cs.ucla.edu>
24183
24184         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24185         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24186         drive prefix.
24187         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24188         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24189         (last_component): New method.
24190         * lib/dirname.c (dir_len): Determine when drive letters need a
24191         subsequent slash.  Preserve // when it is special.
24192         (dir_name): Don't append dot when drive letter is absolute.
24193         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24194         * lib/basename.c (base_name): New semantics - malloc the result.
24195         Preserve // when it is special.  Preserve relative files that look
24196         like drive letters.
24197         (base_len): Preserve // when it is special.
24198         (last_component): New method, similar to old base_name semantics.
24199         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24200         base_name.  Strip redundant slashes from ///.
24201
24202 2006-07-03  Jim Meyering  <jim@meyering.net>
24203
24204         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24205         macro is used before the first cycle_check call.
24206
24207 2006-07-03  Eric Blake  <ebb9@byu.net>
24208
24209         * modules/dirname (Depends-on): Add xstrndup.
24210
24211 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24212
24213         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24214         test cases, so that config.log is a bit easier to follow.
24215
24216 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24217
24218         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24219         both are 64 bits, since this seems to be the tradition, and this
24220         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24221         we ever run into a host that prefers long long to long in this
24222         case, we'll need another configure-time test.  Problem reported by
24223         Jim Meyering.
24224
24225 2006-07-02  Eric Blake  <ebb9@byu.net>
24226
24227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24228
24229 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24230
24231         * modules/inttypes (Depends-on): No longer depends on stdint.
24232         * modules/stdint (Description): Say more about assumptions.
24233         Say that the fast types might differ.  Say macros are used.
24234         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24235         (Makefile.am): Revise list of substituted symbols to match
24236         new stdint.m4.
24237         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24238         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24239         * tests/test-stdint.c (verify_same_types)
24240         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24241         the code conforms to C99/C89.
24242         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24243         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24244
24245 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24246
24247         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24248         but fix a bug, by requiring at least 64 bits.
24249         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24250         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24251         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24252         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24253
24254         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24255         changes.  Make 2.59 a prerequisite.  Check and substitute for
24256         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24257         inttypes.h.  Do not use special include files; just use the
24258         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24259         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24260         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24261         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24262         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24263         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24264         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24265         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24266         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24267         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24268         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24269         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24270         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24271         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24272         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24273         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24274         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24275         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24276         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24277         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24278         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24279         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24280         not check for things that C99 does not require, e.g., int8_t.  If
24281         a test isn't needed unless <stdint.h> isn't working, and is
24282         unlikely to be needed for any other reason, then don't do it
24283         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24284         size_t, since we assume C89 freestanding at least.  Do not check
24285         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24286         the right thing even if the types are not defined.  Instead use:
24287         (gl_STDINT_TYPE_PROPERTIES): New macro.
24288         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24289         testing whether <sys/types.h> clashes, as Autoconf does this for
24290         us now.  All uses removed.
24291         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24292         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24293         (gl_CHECK_TYPE_SAME):
24294         Remove; no longer needed.
24295         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24296         exists, since we'll return 0 anyway in that case.
24297         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24298
24299 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24300
24301         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24302         possible collision with system files.
24303         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24304         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24305         WCHAR_MIN and WCHAR_MAX in this case.
24306         (<stddef.h>): Do not include; no longer needed.
24307         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24308         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24309         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24310         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24311         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24312         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24313         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24314         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24315         !defined(__c99))]: Include in this case too, since it's harmless
24316         now.
24317         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24318         dangerous to do so.
24319         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24320         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24321         (_STDINT_MIN, _STDINT_MAX): New macros.
24322         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24323         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24324         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24325         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24326         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24327         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24328         macros, not typedefs; this simplifies things quite a bit.
24329         Use long int for all types narrower than int64_t.
24330         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24331         Define in terms of long long int or int64_t or long int,
24332         not int64_t or int32_t.  This saves some compile-time testing.
24333         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24334         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24335         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24336         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24337         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24338         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24339         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24340         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24341         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24342         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24343         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24344         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24345         undef any previous version and define our own version, for
24346         simplicity and consistency with the new macros for types.
24347         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24348         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24349         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24350         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24351         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24352         @WINT_T_SUFFIX@ to keep things simple here.
24353         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24354         Simplify by assuming typical 8/16/32/64 host, since we're
24355         already doing that elsewhere anyway.
24356         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24357         and assume long long int is 64 bits if available.  This
24358         speeds up 'configure'.
24359
24360 2006-07-01  Eric Blake  <ebb9@byu.net>
24361
24362         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24363         Reported by Andreas Buening.
24364
24365 2006-07-01  Eric Blake  <ebb9@byu.net>
24366
24367         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24368
24369 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24370
24371         * lib/getaddrinfo.c: fixed typo
24372
24373 2006-06-29  Jim Meyering  <jim@meyering.net>
24374
24375         * modules/strftime (Maintainer): Add my name, since with the
24376         FPRINTFTIME changes strftime.c has forked from glibc.
24377
24378 2006-06-29  Eric Blake  <ebb9@byu.net>
24379
24380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24381
24382 2006-06-29  Eric Blake  <ebb9@byu.net>
24383
24384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24385
24386 2006-06-29  Eric Blake  <ebb9@byu.net>
24387
24388         * lib/stat_.h: New file.
24389
24390 2006-06-29  Eric Blake  <ebb9@byu.net>
24391
24392         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24393         unused static function.
24394
24395 2006-06-29  Eric Blake  <ebb9@byu.net>
24396
24397         * doc/functions.texi (Function Portability): Document missing lstat
24398         on mingw.
24399
24400 2006-06-29  Eric Blake  <ebb9@byu.net>
24401
24402         * MODULES.html.sh: Add sys_stat.
24403         * modules/sys_stat: New module.
24404         * modules/mkstemp (Depends-on): Add sys_stat.
24405
24406 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24407
24408         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24409
24410 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24411
24412         * m4/c-bs-a.m4: Removed.
24413
24414 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24415
24416         * lib/strftime.c: Assume strftime() exists.
24417
24418 2006-06-29  Derek Price  <derek@ximbiot.com>
24419
24420         * modules/c-bs-a: Removed - \a is C89.
24421         * MODULES.html.sh: Remove c-bs-a.
24422
24423 2006-06-29  Bruno Haible  <bruno@clisp.org>
24424
24425         * modules/wcwidth (License): Change to LGPL.
24426
24427 2006-06-28  Simon Josefsson  <jas@extundo.com>
24428
24429         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24430         on _WIN32.
24431
24432         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24433         getnameinfo.
24434
24435 2006-06-28  Simon Josefsson  <jas@extundo.com>
24436
24437         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24438
24439 2006-06-28  Simon Josefsson  <jas@extundo.com>
24440
24441         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24442         functions there.  It will succeed on Windows XP, but on Windows
24443         2000 and (presumably) earlier, it will fail, and use the internal
24444         re-implementation.
24445         (use_win32_p): New function.
24446         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24447         Support AI_NUMERICSERV to disable getservbyname.
24448         (getnameinfo): New function, only supports
24449         NI_NUMERICHOST|NI_NUMERICSERV for now.
24450
24451         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24452         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24453         getnameinfo.
24454
24455 2006-06-28  Eric Blake  <ebb9@byu.net>
24456
24457         * modules/wcwidth: New file.
24458         * modules/mbchar (Depends-on): Add wcwidth.
24459         * modules/mbswidth (Depends-on): Add wcwidth.
24460         * MODULES.html.sh: Add wcwidth.
24461
24462 2006-06-28  Eric Blake  <ebb9@byu.net>
24463
24464         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24466
24467 2006-06-28  Eric Blake  <ebb9@byu.net>
24468
24469         * lib/xvasprintf.h: Fix comments.
24470
24471 2006-06-28  Eric Blake  <ebb9@byu.net>
24472
24473         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24474         * lib/mbswidth.c (wcwidth): Move from here...
24475         * lib/wcwidth.h: ...to this new file.
24476
24477 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24478
24479         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24480
24481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24482         it's obsolete.
24483         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24484
24485 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24486
24487         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24488         Autoconf 2.60 says this stuff was obsolete.
24489
24490 2006-06-28  Bruno Haible  <bruno@clisp.org>
24491
24492         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24493
24494 2006-06-28  Bruno Haible  <bruno@clisp.org>
24495
24496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24497         gt_TYPE_WCHAR_T.
24498
24499 2006-06-28  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24502         declaration for wcwidth.
24503         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24504
24505 2006-06-28  Bruno Haible  <bruno@clisp.org>
24506
24507         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24508         (mkdir): Define using _mkdir.
24509
24510 2006-06-28  Bruno Haible  <bruno@clisp.org>
24511
24512         * lib/getaddrinfo.h: Fix POSIX URL.
24513         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24514         _WIN32.
24515         (use_win32_p): Make static.
24516         (getaddrinfo): Reject service name if it is empty or does not consist
24517         solely of decimal digits, or if its value is > 65535.
24518         (getnameinfo): Remove useless casts.
24519
24520 2006-06-27  Simon Josefsson  <jas@extundo.com>
24521
24522         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24523         Eggert and Martin Lambers.
24524
24525 2006-06-27  Simon Josefsson  <jas@extundo.com>
24526
24527         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24528         Eggert and Martin Lambers.
24529
24530 2006-06-27  Bruno Haible  <bruno@clisp.org>
24531
24532         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24533         result to 0, not to empty.
24534         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24535
24536 2006-06-27  Bruno Haible  <bruno@clisp.org>
24537
24538         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24539
24540 2006-06-26  Simon Josefsson  <jas@extundo.com>
24541
24542         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24543         present.
24544
24545 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24546
24547         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24548         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24550
24551 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24552
24553         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24554
24555 2006-06-26  Bruno Haible  <bruno@clisp.org>
24556
24557         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24558
24559 2006-06-26  Bruno Haible  <bruno@clisp.org>
24560
24561         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24562
24563 2006-06-26  Bruno Haible  <bruno@clisp.org>
24564
24565         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24566         SGI C compiler in pre-C99 mode.
24567         Suggested by Mark D. Baushke and Larry Jones.
24568
24569 2006-06-26  Bruno Haible  <bruno@clisp.org>
24570
24571         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24572         WCHAR_MAX.
24573         Reported by Mark D. Baushke and Larry Jones.
24574
24575 2006-06-26  Bruno Haible  <bruno@clisp.org>
24576
24577         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24578         in pre-C99 mode.
24579         Suggested by Mark D. Baushke and Larry Jones.
24580
24581 2006-06-23  Simon Josefsson  <jas@extundo.com>
24582             Bruno Haible  <bruno@clisp.org>
24583
24584         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24585         Emit mostlyclean-local rule.
24586         (func_emit_tests_Makefile_am): Likewise.
24587         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24588
24589 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24590
24591         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24592
24593 2006-06-23  Bruno Haible  <bruno@clisp.org>
24594
24595         * tests/test-stdint.c: Update to match ISO C 99 Technical
24596         Corrigendum 1.
24597
24598 2006-06-23  Bruno Haible  <bruno@clisp.org>
24599
24600         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24601
24602 2006-06-23  Bruno Haible  <bruno@clisp.org>
24603
24604         * lib/stdint_.h: Treat IRIX like OpenBSD.
24605
24606 2006-06-23  Bruno Haible  <bruno@clisp.org>
24607
24608         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24609         ISO C 99 Technical Corrigendum 1.
24610
24611 2006-06-22  Simon Josefsson  <jas@extundo.com>
24612
24613         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24614         MinGW.
24615
24616 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24617
24618         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24619         needed.  Some compiler complained about some of them.  Problem reported
24620         by Larry Jones in
24621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24622
24623 2006-06-21  Simon Josefsson  <jas@extundo.com>
24624
24625         * tests/test-getaddrinfo.c: New file.
24626
24627         * modules/getaddrinfo-tests: New file.
24628
24629         * MODULES.html.sh: Add inet_pton.
24630
24631         * modules/inet_pton: New file.
24632
24633 2006-06-21  Simon Josefsson  <jas@extundo.com>
24634
24635         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24636         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24637         of using the (limited) gnulib implementation on Windows XP.
24638
24639         * m4/inet_pton.m4: New file.
24640
24641 2006-06-21  Simon Josefsson  <jas@extundo.com>
24642
24643         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24644         variable.
24645
24646         * lib/socket_.h: Don't define WINVER.
24647
24648         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24649         slightly modified to work in gnulib.
24650
24651 2006-06-21  Simon Josefsson  <jas@extundo.com>
24652
24653         * doc/gnulib.texi (Windows sockets): Add.
24654
24655 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24656
24657         * lib/read-file.c (fread_file): Start with buffer allocation of
24658         0 bytes rather than 1 byte; this simplifies the code.
24659         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24660         code to free buffer and save/restore errno.
24661         (internal_read_file): Remove unused local.
24662
24663 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24664
24665         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24666         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24667         Problem reported by Denis Excoffier in
24668         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24669
24670 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24671
24672         * modules/sys_socket, modules/socklen: Include sys/types since
24673         FreeBSD 4.x's sys/socket.h needs it.
24674
24675 2006-06-19  Simon Josefsson  <jas@extundo.com>
24676
24677         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24678
24679 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24680
24681         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24682
24683 2006-06-19  Bruno Haible  <bruno@clisp.org>
24684
24685         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24686         and FULL_PATH_INTTYPES_H in angle brackets.
24687         Reported by Mark D. Baushke <mdb@gnu.org>.
24688
24689 2006-06-17  Eric Blake  <ebb9@byu.net>
24690
24691         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24692         errno.
24693
24694 2006-06-17  Bruno Haible  <bruno@clisp.org>
24695
24696         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24697         <sys/inttypes.h>.
24698
24699 2006-06-17  Bruno Haible  <bruno@clisp.org>
24700
24701         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24702         whether errno is declared. Assume <errno.h> declares errno.
24703
24704 2006-06-17  Bruno Haible  <bruno@clisp.org>
24705
24706         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24707
24708 2006-06-17  Bruno Haible  <bruno@clisp.org>
24709
24710         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24711         problem on Solaris 2.5.1.
24712
24713 2006-06-16  Eric Blake  <ebb9@byu.net>
24714
24715         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24716         * lib/unicodeio.c [!defined errno]: Likewise.
24717         * lib/strtol.c [!defined errno]: Likewise.
24718         * lib/strtod.c [!defined errno]: Likewise.
24719
24720 2006-06-15  Eric Blake  <ebb9@byu.net>
24721
24722         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24723
24724 2006-06-15  Eric Blake  <ebb9@byu.net>
24725
24726         * config/srclist.txt (ssize_t.m4): Lose sync.
24727
24728 2006-06-15  Bruno Haible  <bruno@clisp.org>
24729
24730         * modules/stdint (Files): Include m4/full-header-path.m4,
24731         m4/size_max.m4, m4/wchar_t.m4.
24732         (Makefile.am): Many more substitutions.
24733         * modules/stdint-tests: New file.
24734         * tests/test-stdint.c: New file.
24735
24736 2006-06-15  Bruno Haible  <bruno@clisp.org>
24737
24738         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24739         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24740         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24741         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24742         gl_CHECK_TYPE_SAME): New macros.
24743
24744 2006-06-15  Bruno Haible  <bruno@clisp.org>
24745
24746         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24747
24748 2006-06-15  Bruno Haible  <bruno@clisp.org>
24749
24750         * lib/stdint_.h: Rewritten to be fully auto-configured.
24751         Fixes bug on HP-UX/IA64.
24752
24753 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         * lib/getdate.y (__attribute__): Don't define if already defined.
24756         Problem reported by Larry Jones.
24757         * lib/utimens.c (__attribute__): Likewise.
24758
24759 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24760
24761         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24762         reported by Andreas Schwab.
24763
24764 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24765             Bruno Haible  <bruno@clisp.org>
24766
24767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24768         check for the declaration of strnlen and a run test that exposes the
24769         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24770         rpl_strndup.
24771
24772 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24773             Bruno Haible  <bruno@clisp.org>
24774
24775         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24776
24777 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24778
24779         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24780         compile test, for Tru64 4.0D.
24781
24782 2006-05-28  Karl Berry  <karl@gnu.org>
24783
24784         * config/srclist.txt (printf-args.c): lose sync.
24785
24786 2006-05-26  Martin Lambers  <marlam@marlam.de>
24787
24788         * lib/getpass.c: Updates the test for the native W32 API, and adds
24789         missing includes, thus fixing compilation warnings.
24790
24791 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24792
24793         * lib/exclude.c (exclude_fnmatch): New function.
24794         (excluded_file_name): Call exclude_fnmatch.
24795         * lib/exclude.h (excluded_file_name): New prototype
24796
24797 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24798
24799         * lib/tempname.c (small_open, large_open): New macros.
24800         (__open, __open64) [!_LIBC]: Remove.
24801         (__gen_tempname): Use small_open and large_open instead of __open
24802         and __open64.  This fixes a portability bug on HP-UX 11.11i
24803         reported by Simon Wing-Tang in
24804         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24805
24806 2006-05-24  Bruno Haible  <bruno@clisp.org>
24807
24808         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24809         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24810         Reported by Thorsten Maerz <torte@netztorte.de> via
24811         Aaron Stone <aaron@serendipity.cx>.
24812
24813 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24816         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24817         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24818         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24819         not really conditional on the cache.
24820         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24821
24822 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24823
24824         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24825         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24826         (my_usleep): Don't mishandle maximum value.
24827
24828 2006-05-19  Jim Meyering  <jim@meyering.net>
24829
24830         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24831
24832 2006-05-17  Bruno Haible  <bruno@clisp.org>
24833
24834         Cygwin portability.
24835         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24836
24837 2006-05-17  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/stdint_.h: Fix recognition of Cygwin.
24840
24841 2006-05-15  Bruno Haible  <bruno@clisp.org>
24842
24843         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24844         on libtool patch by Ralf Wildenhues.
24845
24846 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24847
24848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24849         test for C99 conformance; (bool) 0.5 is an integer constant
24850         expression, but (bool) -0.5 is not.  Problem reported by Fedor
24851         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24852
24853 2006-05-11  Simon Josefsson  <jas@extundo.com>
24854
24855         * m4/xvasprintf.m4: Fix obvious typo.
24856
24857 2006-05-11  Jim Meyering  <jim@meyering.net>
24858
24859         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
24860         James Lemley.
24861
24862 2006-05-10  Simon Josefsson  <jas@extundo.com>
24863
24864         * lib/md4.c: Typo fix, update copyright years.
24865         (K1, K2): Don't use L because it turn computations into 64-bit on
24866         64-bit platforms.
24867
24868 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24869
24870         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24871         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24872         unwanted sign propagation, e.g., on hosts with 64-bit int.
24873         There still are some problems with reeelly weird theoretical hosts
24874         (e.g., 33-bit int) but it's not worth worrying about now.
24875         * lib/sha1.c (rol): Likewise.
24876         (K1, K2, K3, K4): Remove unnecessary L suffix.
24877
24878 2006-05-10  Bruno Haible  <bruno@clisp.org>
24879
24880         * lib/des.c: Cast to avoid warnings.
24881
24882 2006-05-09  Bruno Haible  <bruno@clisp.org>
24883
24884         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24885         (Depends-on): Depend also on xsize, stdarg.
24886         (configure.ac): Add gl_XVASPRINTF.
24887
24888 2006-05-09  Bruno Haible  <bruno@clisp.org>
24889
24890         * m4/xvasprintf.m4: New file.
24891
24892 2006-05-09  Bruno Haible  <bruno@clisp.org>
24893
24894         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24895         (EOVERFLOW): Define fallback value.
24896         (xstrcat): New function.
24897         (xvasprintf): Recognize the special case of a string concatenation.
24898
24899 2006-05-08  Eric Blake  <ebb9@byu.net>
24900
24901         * gnulib-tool (func_version): Base copyright year on CVS date.
24902         (func_emit_copyright_notice): New function.
24903         (func_emit_lib_Makefile_am): Use it.
24904         (func_emit_tests_Makefile_am): Likewise.
24905         (func_import): Likewise.
24906
24907 2006-05-08  Bruno Haible  <bruno@clisp.org>
24908
24909         * modules/stdarg: New file.
24910         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24911
24912 2006-05-08  Bruno Haible  <bruno@clisp.org>
24913
24914         * m4/stdarg.m4: New file, from GNU gettext.
24915
24916 2006-05-08  Bruno Haible  <bruno@clisp.org>
24917
24918         * config/srclist.txt (build-aux/config.rpath): different from latest
24919         release.
24920
24921 2006-05-08  Bruno Haible  <bruno@clisp.org>
24922
24923         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24924
24925 2006-05-05  Jim Meyering  <jim@meyering.net>
24926
24927         * m4/warning.m4: New file, derived from bison's file by the same name.
24928
24929 2006-05-03  Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/stdint_.h: Shorter URL.
24932         * lib/inttypes.h: Likewise.
24933
24934 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24935
24936         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24937
24938 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24939
24940         * lib/verify.h: Document the internals better.  Most of this change
24941         was written by Bruno Haible.
24942
24943 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24944
24945         * doc/verify.texi: New file, partly based on a proposal by
24946         Bruno Haible.
24947
24948 2006-05-02  Bruno Haible  <bruno@clisp.org>
24949
24950         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24951         test from here...
24952         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24953
24954 2006-04-29  Bruno Haible  <bruno@clisp.org>
24955
24956         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24957         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24958
24959 2006-04-29  Bruno Haible  <bruno@clisp.org>
24960
24961         * gnulib-tool: Make --update option actually work.
24962
24963 2006-04-29  Bruno Haible  <bruno@clisp.org>
24964
24965         * doc/gcd.texi: New file.
24966         * doc/gnulib.texi: Include it.
24967
24968 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24969
24970         * lib/getdate.y (get_date): When adding relative date, start with the
24971         initial time, not with the result of the first mktime call.
24972
24973 2006-04-25  Bruno Haible  <bruno@clisp.org>
24974
24975         * gnulib-tool (func_import): Output the include directives in three
24976         blocks, sorted separately.
24977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24978
24979 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24980
24981         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24982         to define main with arguments, for C++.  Reported by Eric Blake.
24983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24984         Prefer 'int main ()' to 'int main (void)', for C++.
24985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24987         for 'main', for C99 and C++.
24988
24989 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24990
24991         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24992         Don't assume that exit status -1 is valid.
24993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24994         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24995         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24996         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24997         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24998         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24999         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25000         functions can be used without declaring them, or that you can
25001         exit with status -1.
25002         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25003
25004 2006-04-24  Karl Berry  <karl@gnu.org>
25005
25006         * config/srclist.txt (longdouble.m4): sync lost.
25007
25008 2006-04-24  Eric Blake  <ebb9@byu.net>
25009
25010         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25011
25012 2006-04-24  Bruno Haible  <bruno@clisp.org>
25013
25014         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25015         poll() implementation in AIX.
25016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25017
25018 2006-04-24  Bruno Haible  <bruno@clisp.org>
25019
25020         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25021         assigned exactly once.
25022
25023 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25024             Bruno Haible  <bruno@clisp.org>
25025
25026         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25027         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25028         for AM_CPPFLAGS.
25029
25030 2006-04-23  Bruno Haible  <bruno@clisp.org>
25031
25032         * modules/copy-file: Depend on unistd.
25033         * modules/execute: Likewise.
25034         * modules/fatal-signal: Likewise.
25035         * modules/findprog: Likewise.
25036         * modules/mkdtemp : Likewise.
25037         * modules/pipe: Likewise.
25038         * modules/wait-process: Likewise.
25039
25040 2006-04-23  Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25043         condition was already detected.
25044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25045
25046 2006-04-23  Bruno Haible  <bruno@clisp.org>
25047
25048         * lib/copy-file.c: Include <unistd.h> unconditionally.
25049         * lib/execute.c: Likewise.
25050         * lib/fatal-signal.c: Likewise.
25051         * lib/findprog.c: Likewise.
25052         * lib/mkdtemp.c: Likewise.
25053         * lib/pipe.h: Likewise.
25054         * lib/pipe.c: Likewise.
25055         * lib/wait-process.h: Likewise.
25056
25057 2006-04-23  Bruno Haible  <bruno@clisp.org>
25058
25059         * gnulib-tool (func_usage): Fix --import description. Document
25060         --update.
25061         (func_import): Create temporary file in a temporary directory, if
25062         --dry-run is specified. Silence errors from 'grep' when there are no
25063         m4 files in $m4dir.
25064         (func_create_testdir): Silence errors from 'grep' when there are no
25065         m4 files in $m4dir.
25066         Reported by Karl Berry <karl@freefriends.org>.
25067
25068 2006-04-20  Bruno Haible  <bruno@clisp.org>
25069
25070         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25071         one argument, so that the code will be portable to Autoconf 2.60.
25072         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25073         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25074         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25075
25076 2006-04-19  Derek Price  <derek@ximbiot.com>
25077             Eric Blake  <ebb9@byu.net>
25078
25079         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25080         rather than "/full/path.h".  Update comment to match.  Shorten &
25081         generalize m4_translit call via AS_TR_CPP.
25082
25083 2006-04-19  Derek Price  <derek@ximbiot.com>
25084             Eric Blake  <ebb9@byu.net>
25085
25086         * lib/inttypes.h: Correct grammar in comment.
25087
25088 2006-04-18  Derek Price  <derek@ximbiot.com>
25089             Paul Eggert  <eggert@cs.ucla.edu>
25090
25091         * modules/inttypes: New file.
25092         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25093
25094 2006-04-18  Derek Price  <derek@ximbiot.com>
25095             Paul Eggert  <eggert@cs.ucla.edu>
25096
25097         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25098         New files.
25099
25100 2006-04-18  Derek Price  <derek@ximbiot.com>
25101             Paul Eggert  <eggert@cs.ucla.edu>
25102
25103         * lib/inttypes.h: New file.
25104         * lib/strtoimax.c: Assume <inttypes.h>.
25105
25106 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25107
25108         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25109         isn't mounted.  Problem reported by Kir Kolyshkin.
25110
25111 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25112
25113         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25114         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25115         Derek R. Price.
25116         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25117         implementation.
25118
25119 2006-04-12  Eric Blake  <ebb9@byu.net>
25120
25121         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25122         is now done automatically by the corresponding Autoconf macro.
25123
25124 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25125
25126         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25127         time_r.h.
25128
25129 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25130
25131         Merge regex changes from libc, removing some of our
25132         POSIX-conformance changes that were rejected and redoing them in a
25133         less-intrusive way.
25134
25135         * lib/regcomp.c (re_compile_internal, init_dfa):
25136         Length arg is now size_t, not Idx.  All uses changed.
25137         (peek_token): Forward decl now says internal_function.
25138         (__re_error_msgid, __re_error_msgid_idx):
25139         Now static rather than extern with attribute_hidden.
25140         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25141         For some reason libc prefers K&R style defns for external functions.
25142         (regerror) [!defined _LIBC]: Likewise.
25143         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25144         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25145         (build_range_exp, build_collating_symbol):
25146         Use K&R-style defn.
25147         (re_compile_fastmap): Use '\0' to memset, not 0.
25148         (utf8_sb_map): Make the calculations more obvious.
25149         (init_dfa, parse_bracket_exp, build_charclass_op):
25150         Call calloc and cast result, as glibc does.
25151         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25152         (build_range_exp, build_collating_symbol):
25153         Now internal functions.
25154
25155         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25156
25157         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25158         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25159         Don't depend on VMS; depend on __VMS instead, for POSIX
25160         namespace cleanness.
25161         (regoff_t): Define to ssize_t, not long int.
25162
25163         Remove the REG_ macros named below.  Instead, make the old names
25164         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25165         __USE_GNU_REGEX.
25166         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25167         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25168         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25169         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25170         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25171         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25172         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25173         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25174         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25175         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25176         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25177         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25178         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25179         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25180         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25181         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25182         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25183         (REG_NREGS):
25184         Remove.  All uses replaced by the old RE_* names.
25185         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25186         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25187         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25188         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25189         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25190         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25191         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25192         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25193         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25194         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25195         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25196         Don't bother having these macros be independent of each others'
25197         values, since they no longer exist in the POSIX name space.
25198
25199         Rename the following member names back to their old names,
25200         unless !__USE_GNU_REGEX.  All uses changed back.
25201         (buffer): Renamed from re_buffer.
25202         (allocated): Renamed from re_allocated.
25203         (used): Renamed from re_used.
25204         (syntax): Renamed from re_syntax.
25205         (fastmap): Renamed from re_fastmap.
25206         (translate): Renamed from re_translate.
25207         (can_be_null): Renamed from re_can_be_null.
25208         (regs_allocated): Renamed from re_regs_allocated.
25209         (fastmap_accurate): Renamed from re_fastmap_accurate.
25210         (no_sub): Renamed from re_no_sub.
25211         (not_bol): Renamed from re_not_bol.
25212         (not_eol): Renamed from re_not_eol.
25213         (newline_anchor): Renamed from re_newline_anchor.
25214         (num_regs): Renamed from rm_num_regs.
25215         (start): Renamed from rm_start.
25216         (end): Renamed from rm_end.
25217
25218         (free_state): Move up a bit.
25219
25220         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25221         #define to be empty.
25222         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25223         when that is what is intended.
25224         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25225         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25226         (MAX): New macro.
25227         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25228         All uses changed back to re_malloc, etc.  It's now the caller's
25229         responsibility to check for overflow; all callers changed.
25230         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25231         (re_x2nrealloc): Remove.
25232         (free_state): Remove decl.
25233
25234         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25235         (re_set_registers, re_exec):
25236         Use K&R-style defn.
25237
25238         2006-01-31  Roland McGrath  <roland@redhat.com>
25239
25240         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25241         Reported by Mike Frysinger <vapier@gentoo.org>.
25242
25243         2006-01-15  Andreas Jaeger  <aj@suse.de>
25244
25245         [BZ #1950]
25246         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25247         build_wcs_upper_buffer change.
25248         (build_wcs_upper_buffer): Change return type.
25249
25250         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25251
25252         * lib/regex_internal.h: Include <stdint.h> if available.
25253
25254         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25255
25256         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25257
25258         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25259
25260         * lib/regcomp.c: Adjust for changed secondary hash function.
25261
25262         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25263
25264         * lib/regex.h: Pretty printing.
25265         Clean up namespace a bit.
25266
25267         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25268
25269         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25270         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25271
25272         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25273                     Ulrich Drepper  <drepper@redhat.com>
25274
25275         [BZ #1302]
25276         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25277         changed.
25278         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25279
25280         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25281
25282         [BZ #281]
25283         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25284         * lib/regcomp.c: Remove unnecessary uses of
25285         unsigned RE_TRANSLATE_TYPE.
25286         * lib/regex_internal.h: Likewise.
25287         * lib/regex_internal.c: Likewise.
25288         * lib/regexec.c: Likewise.
25289         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25290
25291         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25292
25293         * lib/regexec.c (find_recover_state): Remove unnecessary
25294         initialization.
25295         (transit_state_bkref): Make DFA a const pointer.
25296         (get_subexp): Likewise.
25297         (check_arrival): Likewise.
25298         (update_cur_sifted_state): Likewise.
25299         (re_search_internal): Likewise.
25300         (prune_impossible_nodes): Likewise.
25301         (acquire_init_state_context): Likewise.
25302         (proceed_next_node): Likewise.
25303         (set_regs): Likewise.
25304         (free_fail_stack_return): Likewise.
25305         (check_arrival_expand_ecl): Mark DFA parameter as const.
25306         (check_arrival_expand_ecl_sub): Likewise.
25307         (check_subexp_limits): Likewise.
25308         (sub_epsilon_src_nodes):  Likewise.
25309         (add_epsilon_src_nodes):  Likewise.
25310         (merge_state_array): Likewise.
25311         (update_regs): Likewise.
25312         (build_trtable): Likewise.
25313         (sift_states_backward): Mark MCTX parameter as const.
25314         (build_sifted_states): Likewise.
25315         (update_cur_sifted_state): Likewise.
25316         (sift_states_mkref): Likewise.
25317         (check_arrival_expand_ecl): Mark eclosure as const.
25318         (check_dst_limits_calc_pos_1): Likewise.
25319         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25320         pointer.
25321
25322         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25323
25324         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25325         (transit_state_sb): Likewise.
25326         (transit_state_mb): Likewise.
25327         (sift_states_iter_mb): Likewise.
25328         (check_arrival_add_next_nodes): Likewise.
25329         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25330         [_LIBC] (re_search_2_stub): Use mempcpy.
25331
25332         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25333         mbrtowc for very simple UTF-8 case.
25334
25335         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25336         a pointer-to-const.
25337         (re_acquire_state_context): Likewise.
25338         * lib/regex_internal.h: Adjust prototypes.
25339
25340         * lib/regex.c: Prevent using C++ compilers.
25341
25342         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25343         (re_acquire_state_context): Likewise.
25344
25345 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25346
25347         * modules/regex (Depends-on): Add ssize_t.
25348
25349 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25350
25351         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25352         translation table.
25353
25354 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25355
25356         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25357
25358 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25359             Bruno Haible  <bruno@clisp.org>
25360
25361         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25362         <sys/types.h> and <inttypes.h>.
25363
25364 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25365
25366         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25367         `__error_t_defined', so argp.h will not typedef the former.
25368
25369 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25370
25371         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25372         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25373         glibc names.  Even if glibc is changed to conform to POSIX, the
25374         traditional names will be available anyway, since regex depends on
25375         the extensions module.  Also, fix a longstanding typo in the
25376         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25377         reported by Emanuele Giaquinta.  Also, change sense of cached
25378         variable, so that the message makes sense.
25379
25380 2006-03-24  Simon Josefsson  <jas@extundo.com>
25381
25382         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25383         including some doc fixes.
25384         (base64_encode_alloc): Fix +1 bug on allocation failures.
25385
25386 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25387
25388         * lib/base64.c (base64_encode): Do not read past end of array with
25389         unsanitized input on systems with CHAR_BIT > 8.
25390
25391 2006-03-24  Eric Blake  <ebb9@byu.net>
25392
25393         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25394
25395 2006-03-22  Karl Berry  <karl@gnu.org>
25396
25397         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25398         * config/srclistvars.sh (COREUTILS): new var.
25399
25400 2006-03-17  Jim Meyering  <jim@meyering.net>
25401
25402         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25403         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25404
25405 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25406
25407         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25408         no longer needs it.  Instead, check that regoff_t is as least
25409         as wide as ptrdiff_t.
25410
25411         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25412         so that our regex.h stays compatible with the installed regex.
25413         This is helpful for installers who configure --without-included-regex.
25414         Problem reported by Emanuele Giaquinta.
25415
25416 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25417
25418         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25419         Typedef to long int, not to off_, as POSIX will likely change
25420         in that direction.
25421
25422 2006-03-15  Eric Blake  <ebb9@byu.net>
25423
25424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25425
25426 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25427
25428         * lib/argp-help.c (validate_uparams): Fix typo
25429         * lib/argp-parse.c (argp_default_options): Consistently begin help
25430         messages with a lowercase letter.
25431
25432 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25435         overrun buffers and shouldn't be used (much as gets shouldn't be
25436         used).
25437         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25438
25439 2006-03-08  Simon Josefsson  <jas@extundo.com>
25440
25441         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25442         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25443
25444 2006-03-08  Simon Josefsson  <jas@extundo.com>
25445
25446         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25447         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25448
25449 2006-03-08  Simon Josefsson  <jas@extundo.com>
25450
25451         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25452         signal that configure disabled the device.
25453
25454 2006-03-08  Simon Josefsson  <jas@extundo.com>
25455
25456         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25457         languages.
25458
25459 2006-03-07  Simon Josefsson  <jas@extundo.com>
25460
25461         * modules/getopt (Depends-on): Add unistd.
25462
25463         * modules/unistd: New file.
25464
25465 2006-03-07  Simon Josefsson  <jas@extundo.com>
25466
25467         * modules/gc-random: New file.
25468
25469 2006-03-07  Simon Josefsson  <jas@extundo.com>
25470
25471         * m4/unistd_h.m4: New file.
25472
25473 2006-03-07  Simon Josefsson  <jas@extundo.com>
25474
25475         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25476         test to be side-effect free by storing the result in the cache
25477         variable gl_cv_lib_readline, and moving the assignment of
25478         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25479         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25480
25481 2006-03-07  Simon Josefsson  <jas@extundo.com>
25482
25483         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25484         error on missing devices (the functions will return an error).
25485
25486         * m4/gc.m4: Move random stuff to gc-random.m4
25487
25488 2006-03-07  Simon Josefsson  <jas@extundo.com>
25489
25490         * lib/unistd_.h: New file.
25491
25492 2006-03-07  Simon Josefsson  <jas@extundo.com>
25493
25494         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25495
25496 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25499         Problem reported by Juan Manuel Guerrero.
25500
25501 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25502
25503         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25504         the unistd module.
25505         * lib/getlogin_r.c: Likewise.
25506         * lib/getlogin_r.h: Likewise.
25507         * lib/glob.c: Likewise.
25508         * lib/pagealign_alloc.c: Likewise.
25509         * lib/unistd_.h: Remove; no longer needed.
25510
25511 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25512
25513         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25514         Add unistd.
25515         * modules/c-stack (Depends-on): Add unistd.
25516         * modules/getlogin_r: Likewise.
25517         * modules/glob: Likewise.
25518         * modules/pagealign_alloc: Likewise.
25519         * modules/unistd (Files): Remove lib/unistd_.h.
25520         (EXTRA_DIST): Remove.
25521         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25522         need unistd_.h.
25523         (MOSTLYCLEANFILES): Remove unistd.h-t.
25524
25525 2006-03-03  Simon Josefsson  <jas@extundo.com>
25526
25527         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25528
25529 2006-03-03  Simon Josefsson  <jas@extundo.com>
25530
25531         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25532         libidn and bison.
25533
25534 2006-03-03  Simon Josefsson  <jas@extundo.com>
25535
25536         * build-aux/maint.mk: Add indent target.
25537
25538 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25539
25540         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25541         our replacement poll.h in any case, to avoid a differing
25542         declaration from a system header.  Seen on AIX.
25543
25544 2006-03-01  Simon Josefsson  <jas@extundo.com>
25545
25546         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25547         <kasal@ucw.cz>.
25548
25549 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25550
25551         * modules/gettime (Depends-on): Add extensions module.
25552         * modules/nanosleep (Depends-on): Likewise.
25553         * modules/settime (Depends-on): Likewise.
25554
25555 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25556
25557         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25558         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25559         pedantically.
25560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25561         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25562
25563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25564         not "==".  Reported by Ralf Wildenhues.
25565
25566 2006-03-01  Karl Berry  <karl@gnu.org>
25567
25568         * doc/Copyright/request-*: new files, synced from gnuorg.
25569
25570 2006-03-01  Karl Berry  <karl@gnu.org>
25571
25572         * config/srclist.txt (Copyright/*): new entries.
25573
25574 2006-02-28  Simon Josefsson  <jas@extundo.com>
25575
25576         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25577
25578 2006-02-27  Simon Josefsson  <jas@extundo.com>
25579
25580         * lib/base64.h: Indent #define's.  From Jim Meyering
25581         <jim@meyering.net>.
25582
25583 2006-02-27  Jim Meyering  <jim@meyering.net>
25584
25585         Revert the change of 2006-02-24, so these files can continue
25586         to be sync'd from gettext.
25587         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25588         of `config.h'.
25589
25590 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25591
25592         * modules/intprops: New file.
25593         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25594         Add intprops.
25595         * modules/getloadavg (Files): Remove lib/intprops.h.
25596         (Depends-on): Add intprops.
25597         * modules/human: Likewise.
25598         * modules/inttostr: Likewise.
25599         * modules/openat: Likewise.
25600         * modules/sig2str: Likewise.
25601         * modules/userspec: Likewise.
25602         * modules/utimecmp: Likewise.
25603         * modules/xnanosleep: Likewise.
25604         * modules/xstrtol: Likewise.
25605
25606 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25607
25608         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25609         * modules/lock-tests (TESTS): Use $(EXEEXT).
25610         * modules/tls-tests: Likewise.
25611         * modules/argp-tests: Likewise.
25612         (check_PROGRAMS): New var, replacing...
25613         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25614
25615 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25616
25617         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25618         `config.h'.
25619
25620 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25623
25624 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25625
25626         Sync from coreutils.
25627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25628         gl_CHDIR_SAFER.
25629
25630 2006-02-22  Jim Meyering  <jim@meyering.net>
25631
25632         Sync from coreutils.
25633         * m4/chdir-safer.m4: New file.
25634
25635 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25636
25637         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25638         AT_FDCWD exceeds INT_MAX.
25639         * lib/openat.h (AT_FDCWD): Likewise.
25640
25641 2006-02-17  Eric Blake  <address@hidden>
25642
25643         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25644
25645 2006-02-16  Simon Josefsson  <jas@extundo.com>
25646
25647         * modules/getaddrinfo (Depends-on): Add sys_socket.
25648
25649 2006-02-15  Simon Josefsson  <jas@extundo.com>
25650
25651         * build-aux/maint.mk: Add dsyntax-check rule.
25652
25653 2006-02-15  Eric Blake  <ebb9@byu.net>
25654
25655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25656         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25657         'present but cannot compile' warnings on cygwin.
25658         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25659         use ws2tcpip.h if sys/socket.h works.
25660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25661         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25662
25663 2006-02-14  Simon Josefsson  <jas@extundo.com>
25664
25665         * modules/maintainer-makefile (Files): Rename.
25666
25667         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25668         and (the local) Makefile.cfg to maint-cfg.mk.
25669
25670         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25671         to the latter.
25672
25673         * modules/maintainer-makefile: New module.
25674
25675         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25676         severaly stripped to make it possible to build it up from scratch
25677         with reliable tests.
25678
25679         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25680         fixes to permit overriding the default actions when configure and
25681         makefile are not available.
25682
25683 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25684
25685         Sync from coreutils.
25686         * modules/lstat (Depends-on): Don't depend on xalloc.
25687         (License): Change from GPL to LGPL, since this is now simply a
25688         replacement for a libc function.
25689
25690 2006-02-14  Jim Meyering  <jim@meyering.net>
25691
25692         Sync from coreutils.
25693
25694         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25695         failure on deficient systems, and simplify gnulib lgpl dependencies.
25696         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25697         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25698
25699         * lib/xalloc-die.c: Remove unused definition of N_.
25700
25701 2006-02-14  Jim Meyering  <jim@meyering.net>
25702
25703         Sync from coreutils.
25704         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25705         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25706         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25707         double-quote uses of that variable, to accommodate the rare case in
25708         which getmntent is available in none of the libraries checked.  This
25709         happens at least on FreeBSD 5.0.
25710
25711 2006-02-13  Simon Josefsson  <jas@extundo.com>
25712
25713         * gnulib-tool (Usage): Fix --import, from
25714         karl@freefriends.org (Karl Berry).
25715
25716 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25717
25718         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25719
25720 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25721
25722         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25723         "autoupdate" on 2005-12-12.
25724
25725 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25726
25727         * modules/closeout (Depends-on): Remove atexit.
25728
25729 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25730
25731         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25732         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25733
25734 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25735
25736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25737         __EXTENSIONS__ if this causes compilation to fail.  Problem
25738         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25739         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25740
25741 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25742
25743         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25744         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25746         All uses changed.
25747
25748 2006-01-26  Simon Josefsson  <jas@extundo.com>
25749
25750         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25751         prototype is visible on mingw32.
25752
25753         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25754         for mingw32.
25755
25756         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25757         mingw32).
25758
25759 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25760
25761         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25762         attempt to open for write; this always fails, at least on POSIX
25763         hosts.  This reinstates the 2006-01-09 change, which was
25764         inadvertently removed.
25765
25766 2006-01-26  Bruno Haible  <bruno@clisp.org>
25767
25768         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25769         Reported by Paul Eggert.
25770
25771 2006-01-26  Bruno Haible  <bruno@clisp.org>
25772             Paul Eggert  <eggert@cs.ucla.edu>
25773
25774         * lib/stdbool_.h (_Bool)
25775         [(! (defined __cplusplus || defined __BEOS__)
25776           && !defined __GNUC__
25777           && !(defined __HP_cc || defined __xlc__
25778                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25779                || defined __sgi))]:
25780         #define to signed char in these cases too; this simplifies
25781         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25782         etc., separately) and makes it more conservative.
25783
25784 2006-01-25  Simon Josefsson  <jas@extundo.com>
25785
25786         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25787         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25788         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25789
25790 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25791
25792         * lib/argp-namefrob.h: Bugfix. Remove stray #
25793
25794 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25795
25796         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25797         so that we test the test.
25798         Check for yet another HP-UX cc bug involving *bool |= bool.
25799
25800 2006-01-25  Karl Berry  <karl@gnu.org>
25801
25802         * config/srclist.txt (vasnprintf.c): sync lost.
25803
25804 2006-01-25  Jim Meyering  <jim@meyering.net>
25805
25806         Sync from the stable (b5) branch of coreutils:
25807
25808         * lib/fts.c (fts_children): Don't let close() clobber errno from
25809         failed fchdir().
25810
25811         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25812         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25813         a dangling symlink.  That can also happen at least for ELOOP.
25814         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25815         FYI, this bug predates the inclusion of fts.c in coreutils.
25816
25817         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25818         in their own block, so pre-c99 compilers don't object.
25819
25820         Avoid the double-free (first in fts_read, second in fts_close) that
25821         would occur when an `active' directory is made inaccessible (e.g.,
25822         via chmod a-x) during a traversal.
25823         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25824         before returning.  Reproduce this failure by
25825         mkdir -p a/b; cd a; chmod a-x . b
25826         Reported by Stavros Passas.
25827
25828 2006-01-25  Jim Meyering  <jim@meyering.net>
25829
25830         * lib/fileblocks.c: Remove more useless parentheses.
25831         * lib/readutmp.h: Likewise.
25832
25833 2006-01-25  Bruno Haible  <bruno@clisp.org>
25834
25835         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25836         warnings.
25837         Reported by Paul Eggert.
25838
25839 2006-01-25  Bruno Haible  <bruno@clisp.org>
25840
25841         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25842         rid of a trap command. For Solaris sh.
25843         Reported by Mark D. Baushke <mdb@gnu.org>.
25844
25845 2006-01-24  Simon Josefsson  <jas@extundo.com>
25846
25847         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25848         Bruno.
25849
25850 2006-01-24  Karl Berry  <karl@gnu.org>
25851
25852         * config/srclist.txt (argp-namefrob.h): sync lost.
25853
25854 2006-01-24  Jim Meyering  <jim@meyering.net>
25855
25856         * modules/openat (Files): Add lib/intprops.h.
25857         From Mark D. Baushke.
25858
25859 2006-01-24  Jim Meyering  <jim@meyering.net>
25860
25861         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25862         Reported by Mark D. Baushke.
25863
25864 2006-01-24  Jim Meyering  <jim@meyering.net>
25865
25866         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25867
25868 2006-01-24  Bruno Haible  <bruno@clisp.org>
25869
25870         * modules/strnlen (Maintainer): Change from glibc to all.
25871
25872 2006-01-24  Bruno Haible  <bruno@clisp.org>
25873
25874         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25875         Patch by Paul Eggert.
25876
25877 2006-01-24  Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25880         already has it.
25881         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
25882         2005-11-26.
25883
25884         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25885         'signed char' to avoid problems with the built-in _Bool type.
25886         Reported by Paul Eggert on 2005-11-26.
25887
25888 2006-01-24  Bruno Haible  <bruno@clisp.org>
25889
25890         * gnulib-tool (func_import): Avoid constructing complicated sed
25891         expressions inside backquote.
25892         Report and solution by Mark D. Baushke <mdb@gnu.org>.
25893
25894 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
25895
25896         These changes imported from libc.
25897         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25898         test and two separate function calls.
25899         * lib/strndup.c (__strndup): Add libc_hidden_def.
25900
25901 2006-01-23  Simon Josefsson  <jas@extundo.com>
25902
25903         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25904         Remove the test_*_SOURCES variable: automake infers it by default.
25905         * modules/tls-tests: Likewise.
25906
25907 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25908
25909         Work around porting bugs reported by Dieter in
25910         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25911         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25912         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25913         Include "getopt.h" first, to check interface.
25914         (getenv): Declare only if defined HAVE_DECL_GETENV &&
25915         !HAVE_DECL_GETENV.
25916         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25917         (__strndup): Revert to K&R-style function dfns, the glibc style.
25918         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25919         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25920         Include strnlen.h first, to get prototype properly.
25921         (strnlen): Renamed from __strnlen.
25922         Remove weak alias.
25923
25924 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25925
25926         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25927
25928 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25929
25930         * config/srclist.txt: Adjust to reflect glibc reorganization.
25931         This affects only comments.
25932
25933 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25934
25935          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25936          Reported by Bruce Korb <bkorb@gnu.org>.
25937
25938 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25939
25940         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25941         to pacify gcc -Wswitch-default.
25942
25943 2006-01-22  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25946         temporary buffer for sprintf, take into account the precision also
25947         for 'd', 'i', 'u', 'o', 'x', 'X'.
25948
25949 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25950
25951         * modules/argp-tests: New module
25952         * tests/test-argp.c: New file
25953         * tests/test-argp-2.sh: New file
25954
25955 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25956
25957         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25958         (__argp_base_name): Removed
25959         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25960         typo.
25961         (__argp_base_name): Provide macro definition or extern declaration
25962         depending on the configuration
25963
25964 2006-01-20  Simon Josefsson  <jas@extundo.com>
25965
25966         * modules/inet_ntop (Depends-on): Depend on sys_socket.
25967
25968 2006-01-20  Simon Josefsson  <jas@extundo.com>
25969
25970         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25971
25972 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25973
25974         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25975         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25976         Suggested by Bruno Haible.
25977
25978 2006-01-20  Karl Berry  <karl@gnu.org>
25979
25980         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25981         until changes propagate, I guess.
25982
25983 2006-01-19  Simon Josefsson  <jas@extundo.com>
25984
25985         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25986
25987 2006-01-19  Simon Josefsson  <jas@extundo.com>
25988
25989         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25990
25991 2006-01-19  Simon Josefsson  <jas@extundo.com>
25992
25993         * gnulib-tool: Set check_PROGRAMS.
25994
25995         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25996         modules/des-tests, modules/gc-arcfour-tests,
25997         modules/gc-arctwo-tests, modules/gc-des-tests,
25998         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25999         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26000         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26001         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26002         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26003         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26004         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26005         test_*_SOURCES.
26006
26007 2006-01-18  Simon Josefsson  <jas@extundo.com>
26008
26009         * modules/socklen (Depends-on): Depend on sys_socket.
26010
26011 2006-01-18  Simon Josefsson  <jas@extundo.com>
26012
26013         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26014         modules/des-tests, modules/gc-arcfour-tests,
26015         modules/gc-arctwo-tests, modules/gc-des-tests,
26016         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26017         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26018         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26019         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26020         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26021         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26022         $(EXEEXT) to automake TESTS variable, for mingw32.
26023
26024 2006-01-17  Simon Josefsson  <jas@extundo.com>
26025
26026         * modules/socklen (Include): Need sys/socket.h.
26027
26028 2006-01-17  Bruno Haible  <bruno@clisp.org>
26029
26030         * modules/ssize_t (Include): Add <sys/types.h>.
26031
26032 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26035         it's not portable and it doesn't work with cross-compiles.
26036         Problem reported by Bruno Haible.  Fix missing-$ typo in
26037         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26038         -zignore from being used with Sun's C compiler.
26039
26040 2006-01-12  Simon Josefsson  <jas@extundo.com>
26041
26042         * lib/base64.c: Fix warning, reported by Bruno Haible
26043         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26044
26045 2006-01-12  Bruno Haible  <bruno@clisp.org>
26046
26047         * modules/ldd: New file.
26048         * build-aux/ldd.sh.in: New file.
26049         * MODULES.html.sh (Support for building libraries and executables): Add
26050         ldd.
26051
26052 2006-01-12  Bruno Haible  <bruno@clisp.org>
26053
26054         * m4/ldd.m4: New file.
26055
26056 2006-01-12  Bruno Haible  <bruno@clisp.org>
26057
26058         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26059         endless loop while replacing $auxdir with build-aux.
26060
26061 2006-01-11  Simon Josefsson  <jas@extundo.com>
26062
26063         * lib/stdint_.h (SIZE_MAX): Add missing (.
26064
26065 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26066
26067         Sync from coreutils.
26068         * lib/md5.c: Fix commentary typos.
26069         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26070         * lib/md5.h (__attribute__): Remove; unused.
26071         * lib/sha1.c: Fix commentary to match md5 better.
26072         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26073         so that we don't need to worry about alignment.  All uses changed.
26074         This merges the 2005-10-28 md5 change into sha1.
26075
26076 2006-01-11  Jim Meyering  <jim@meyering.net>
26077
26078         Sync from coreutils.
26079         * lib/md5.c (OP): Fix spacing.
26080
26081 2006-01-11  Bruno Haible  <bruno@clisp.org>
26082
26083         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26084         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26085         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26086
26087 2006-01-11  Bruno Haible  <bruno@clisp.org>
26088
26089         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26090         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26091         the "early" section as well.
26092
26093 2006-01-11  Bruno Haible  <bruno@clisp.org>
26094
26095         Avoid "ar: no archive members specified" error on MacOS X.
26096         * gnulib-tool (func_modules_add_dummy): New function.
26097         (func_import, func_create_testdir): Invoke it.
26098
26099 2006-01-11  Bruno Haible  <bruno@clisp.org>
26100
26101         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26102         with $auxdir in AC_CONFIG_FILES statements.
26103
26104 2006-01-11  Bruno Haible  <bruno@clisp.org>
26105
26106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26107         Initialize also noinst_HEADERS to empty.
26108
26109 2006-01-11  Bruno Haible  <bruno@clisp.org>
26110
26111         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26112         variables.
26113         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26114         autoreconf.
26115
26116 2006-01-11  Bruno Haible  <bruno@clisp.org>
26117
26118         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26119         overridable by the user.
26120         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26121
26122 2006-01-10  Simon Josefsson  <jas@extundo.com>
26123
26124         * modules/sys_socket: New file.
26125
26126 2006-01-10  Simon Josefsson  <jas@extundo.com>
26127
26128         * m4/sys_socket_h.m4: New file.
26129
26130 2006-01-10  Simon Josefsson  <jas@extundo.com>
26131
26132         * lib/socket_.h: New file.
26133
26134 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26135
26136         * modules/readutmp (Maintainer): Add myself.
26137
26138 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26141         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26142         People who are still concerned with buggy memcmp implementations
26143         can invoke gl_FUNC_MEMCMP themselves.
26144
26145 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26146
26147         * lib/regex_internal.h (BITSET_WORD_BITS):
26148         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26149         preprocessor mishandles large unsigned values as if they were signed.
26150         Problem reported by Claudio Fontana in
26151         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26152
26153 2006-01-10  Jim Meyering  <jim@meyering.net>
26154
26155         Avoid the double-free (first in fts_read, second in fts_close) that
26156         would occur when an `active' directory is made inaccessible (e.g.,
26157         via chmod a-x) during a traversal.
26158         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26159         before returning.  Reproduce this failure by
26160         mkdir -p a/b; cd a; chmod a-x . b
26161         Reported by Stavros Passas.
26162
26163         Sync from coreutils.
26164         * lib/sha1.c: Tweak grammar in a comment.
26165
26166 2006-01-10  Jim Meyering  <jim@meyering.net>
26167
26168         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26169         Patch by Joerg Sonnenberger.
26170
26171 2006-01-10  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/readutmp: Depend on module free.
26174         * modules/strtok_r: Depend on module restrict.
26175
26176 2006-01-10  Bruno Haible  <bruno@clisp.org>
26177
26178         * modules/gettext (configure.ac): Add an invocation of
26179         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26180
26181 2006-01-10  Bruno Haible  <bruno@clisp.org>
26182
26183         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26184         Reported by Werner Lemberg <wl@gnu.org>.
26185
26186 2006-01-10  Bruno Haible  <bruno@clisp.org>
26187
26188         * lib/localcharset.c: Update from GNU gettext.
26189
26190 2006-01-10  Bruno Haible  <bruno@clisp.org>
26191
26192         * lib/argp.h (__const): Remove macro. Use const instead.
26193         * lib/argp-fmtstream.h (__const): Likewise.
26194         * lib/glob_.h (__const): Remove macro.
26195         * lib/glob-libc.h: Use const instead of __const.
26196
26197 2006-01-10  Bruno Haible  <bruno@clisp.org>
26198
26199         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26200         variable.
26201         Needed to avoid an automake error regarding the 'gettext' module.
26202
26203 2006-01-09  Simon Josefsson  <jas@extundo.com>
26204
26205         * modules/inet_ntop (Depends-on): Add restrict.
26206
26207 2006-01-09  Simon Josefsson  <jas@extundo.com>
26208
26209         * modules/gc-rijndael-tests (License): Put under LGPL.
26210
26211         * modules/gc-des-tests (License): Likewise.
26212
26213         * modules/gc-arcfour-tests (License): Likewise.
26214
26215         * modules/gc-arctwo-tests (License): Likewise.
26216
26217         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26218
26219         * modules/gc-hmac-sha1-tests (Files): Likewise.
26220
26221         * modules/gc-hmac-md5-tests (License): Likewise.
26222
26223         * modules/gc-sha1-tests (License): Likewise.
26224
26225         * modules/gc-md5-tests (License): Likewise.
26226
26227         * modules/gc-md4-tests (License): Likewise.
26228
26229         * modules/gc-md2-tests (License): Likewise.
26230
26231         * modules/gc-tests (License): Likewise.
26232
26233         * modules/des-tests (License): Likewise.
26234
26235         * modules/md4-tests (License): Likewise.
26236
26237         * modules/md2-tests (License): Likewise.
26238
26239 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26240
26241         Sync from coreutils:
26242
26243         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26244         * modules/lib-ignore: New file.
26245         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26246         chdir-safer.m4, lchmod.m4.
26247         * modules/openat: Add mkdirat.c, openat-priv.h.
26248
26249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26250
26251         Sync from coreutils.
26252         * m4/lib-ignore.m4: New file.
26253         * m4/lchmod.m4: New file.
26254
26255 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26256
26257         Sync from coreutils.
26258         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26259         for write access: POSIX says that must fail.
26260         * lib/fts.c (diropen): Likewise.
26261         * lib/save-cwd.c (save_cwd): Likewise.
26262         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26263         well, for minor improvements on hosts that lack O_DIRECTORY.
26264         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26265         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26266         Fall back on chown if open failed with EACCES.
26267
26268         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26269         Report an error at compile-time if only a 1-second nominal clock
26270         resolution is found.
26271
26272         * lib/lchmod.h: New file.
26273         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26274         (make_dir_parents): Use lchown rather than chown, and
26275         lchmod rather than chmod.
26276
26277         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26278         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26279         "proc" reported by n0dalus.
26280
26281         * lib/mountlist.c: Include <limits.h>.
26282         (dev_from_mount_options)
26283         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26284         New function.  It no longer assumes "dev=" has the System V meaning
26285         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26286         (read_file_system_list)
26287         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26288         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26289         dev= in that case.
26290
26291         * lib/posixtm.h (PDS_PRE_2000): New macro.
26292         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26293         allow_century.  All usages changed.  Reject dates outside the range
26294         1969-1999 if PDS_PRE_2000 is used.
26295
26296 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         Sync from coreutils.
26299         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26300         (Time of day items): Mention the possibility of leap seconds.
26301         Problem reported by Dr. David Alan Gilbert.
26302
26303 2006-01-09  Jim Meyering  <jim@meyering.net>
26304
26305         Sync from coreutils.
26306
26307         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26308
26309         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26310
26311         * lib/modechange.c (mode_compile): Reject an invalid mode string
26312         that starts with an octal digit.  From Andreas Gruenbacher.
26313
26314         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26315         and dup to open_safer and dup_safer, respectively.
26316         (openat_permissive): Fix typo in comment.
26317
26318         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26319         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26320         (_): Remove; no longer needed.
26321         (openat): Renamed from rpl_openat; no need for rpl_openat
26322         since openat.h renames openat for us.
26323         Replace most of the body with a call to openat_permissive,
26324         to avoid duplicate code.
26325         Port to (probably hypothetical) environments were mode_t is
26326         wider than int.
26327         (openat_permissive): Require mode arg, so that we can check
26328         types better.  Put it just after flags.  Change cwd failure
26329         indicator from pointer-to-bool to pointer-to-errno-value.
26330         All callers changed.
26331         Invoke openat_save_fail and/or openat_restore_fail if
26332         cwd_errno is null, so that openat can call us.
26333         (openat_permissive, fdopendir, fstatat, unlinkat):
26334         Simplify errno handling to avoid some duplicate code,
26335         as it's OK to set errno on success.
26336         * lib/openat.h: Revamp code so that function macros depend on
26337         __OPENAT_PREFIX only, not also on AT_FDCWD.
26338         (openat_ro): Remove.  Caller changed to use openat_permissive.
26339         (openat_permissive): Now a macro, if not a function.
26340         (openat_restore_fail, openat_save_fail): Now always functions,
26341         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26342
26343         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26344         and openat.c.
26345         * lib/mkdirat.c: Include openat-priv.h.
26346         Remove definitions of macros defined therein.
26347         * lib/openat.c: Likewise.
26348
26349         * lib/mkdirat.c (mkdirat): New file and function.
26350         * lib/openat.h (mkdirat): Declare.
26351
26352         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26353
26354         * lib/openat.h (openat_permissive): Declare.
26355         (openat_ro): Define.
26356
26357         * lib/openat.c (EXPECTED_ERRNO): New macro.
26358         (openat_permissive): New function -- used in remove.c rewrite.
26359         (all functions): Set errno just before returning, only if there
26360         was an actual failure.
26361         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26362
26363         Emulate openat-family functions using Linux's procfs, if possible.
26364         Idea and some code based on Ulrich Drepper's glibc changes.
26365
26366         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26367         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26368         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26369         before falling back on save_cwd and restore_cwd.
26370         (fdopendir, fstatat, unlinkat): Likewise.
26371
26372         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26373         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26374
26375         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26376         as second argument to va_arg.  Otherwise, some versions of gcc
26377         warn that `if this code is reached, the program will abort'.
26378
26379 2006-01-09  Jim Meyering  <jim@meyering.net>
26380
26381         Sync from coreutils.
26382         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26383         Require openat-priv.h.
26384
26385 2006-01-09  Bruno Haible  <bruno@clisp.org>
26386
26387         * modules/strnlen (Include): Use strnlen.h.
26388
26389 2006-01-09  Bruno Haible  <bruno@clisp.org>
26390
26391         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26392
26393 2006-01-09  Bruno Haible  <bruno@clisp.org>
26394
26395         * lib/sysexit_.h (EX_OK): New macro.
26396         Suggested by Martin Lambers <marlam@marlam.de>.
26397
26398 2006-01-09  Bruno Haible  <bruno@clisp.org>
26399
26400         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26401         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26402
26403 2006-01-09  Bruno Haible  <bruno@clisp.org>
26404
26405         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26406         numbers.
26407
26408 2006-01-09  Bruno Haible  <bruno@clisp.org>
26409
26410         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26411         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26412         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26413         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26414
26415 2006-01-09  Bruno Haible  <bruno@clisp.org>
26416
26417         * build-aux/javacomp.sh.in: New file, moved from lib/.
26418         * modules/javacomp-script (Files): Update.
26419         (configure.ac): Add AC_CONFIG_FILES invocation.
26420         (EXTRA_DIST): Remove variable.
26421
26422         * build-aux/javaexec.sh.in: New file, moved from lib/.
26423         * modules/javaexec (Files): Update.
26424         (configure.ac): Add AC_CONFIG_FILES invocation.
26425         (EXTRA_DIST): Remove javaexec.sh.in.
26426
26427         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26428         * modules/csharpcomp-script (Files): Update.
26429         (configure.ac): Add AC_CONFIG_FILES invocation.
26430         (EXTRA_DIST): Remove variable.
26431
26432         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26433         * modules/csharpexec (Files): Update.
26434         (configure.ac): Add AC_CONFIG_FILES invocation.
26435         (EXTRA_DIST): Remove csharpexec.sh.in.
26436
26437 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26438
26439         Sync from coreutils.
26440
26441         Add POSIX ACL support
26442         * lib/acl.h (copy_acl, set_acl): Add declarations.
26443         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26444         systems other than Linux.
26445         (chmod_or_fchmod): New function: use fchmod when possible,
26446         and chmod otherwise.
26447         (file_has_acl): Add a POSIX ACL implementation, with a
26448         Linux-specific subcase.
26449         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26450         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26451         acls are unsupported.
26452         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26453         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26454         are unsupported.
26455
26456 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26457
26458         Sync from coreutils.
26459         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26460
26461 2006-01-07  Bruno Haible  <bruno@clisp.org>
26462
26463         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26464         gl_EARLY.
26465
26466 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26467
26468         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26469         Problem reported for Mingw by Mark Junker.
26470
26471 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26472
26473         * README: Gnulib normally doesn't generate a tarball.
26474
26475 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26476
26477         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26478         long int, not int, for nanosecond counts, so that people who are
26479         used to POSIX struct timespec won't be surprised.  Reported by Jim
26480         Meyering.
26481
26482 2005-12-28  Bruno Haible  <bruno@clisp.org>
26483
26484         * build-aux/config.rpath: Update from GNU gettext.
26485
26486 2005-12-16  Jim Meyering  <jim@meyering.net>
26487
26488         * modules/fprintftime: New module.
26489         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26490
26491 2005-12-16  Jim Meyering  <jim@meyering.net>
26492
26493         * m4/fprintftime.m4: New file.
26494
26495 2005-12-16  Jim Meyering  <jim@meyering.net>
26496
26497         * lib/fprintftime.c, lib/fprintftime.h: New files.
26498
26499 2005-12-15  Simon Josefsson  <jas@extundo.com>
26500
26501         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26502         new m4/socklen.m4.
26503
26504 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26505
26506         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26507         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26508
26509 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26510
26511         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26512         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26513         struct uparams is valid. Fall back to the default values if it is
26514         not.
26515
26516 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26517
26518         * modules/argp (Files): Add argp-pin.c
26519         (Depends-on): dirname
26520         (lib_SOURCES): Add argp-pin.c
26521
26522 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26523
26524         * m4/argp.m4:  Check if program_invocation_name and
26525         program_invocation_short_name are declared and define appropriate
26526         macros if they are not.
26527
26528 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26529
26530         * lib/argp-help.c (__argp_base_name): New function
26531         (__argp_short_program_name): Rewrite using __argp_base_name
26532         * lib/argp-namefrob.h: Define program_invocation_name and
26533         program_invocation_short_name if requested
26534         (__argp_base_name): Add prototype
26535         * lib/argp-parse.c (argp_def): Use gettext wrappers
26536         (argp_default_parser): Use __argp_base_name
26537         * lib/argp-pin.c: New file. Defines program_invocation_name and
26538         program_invocation_short_name on systems that lack them.
26539
26540 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26543         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26544         porting problem reported by Georg Schwarz in
26545         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26546
26547 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26548
26549         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26550         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26551         porting problem reported by Georg Schwarz in
26552         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26553
26554 2005-12-05  Bruno Haible  <bruno@clisp.org>
26555
26556         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26557         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26558         Reported by Mark Junker <mjscod@gmx.de>.
26559
26560 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26561
26562         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26563         Use implementation from Albert Chin, with some
26564         comments/corrections by Stepan Kasal and myself.
26565
26566 2005-12-02  Bruno Haible  <bruno@clisp.org>
26567
26568         * gnulib-tool (func_import): Accept GPLed build tool modules when
26569         --lgpl is given.
26570         * modules/csharpcomp-script: New file.
26571         * modules/csharpcomp: Depend on it.
26572         * modules/javacomp-script: New file.
26573         * modules/javacomp: Depend on it.
26574         Suggested by Simon Josefsson.
26575
26576 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26577
26578         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26579         statement, to work around an HP-UX 10.20 compiler bug reported by
26580         Peter O'Gorman.
26581
26582 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26583
26584         * modules/savedir (Depends-on): Add openat.
26585
26586 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26587
26588         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26589         (uintmax_t) [defined uintmax_t]: Do not declare.
26590         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26591         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26592         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26593         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26594         sake of portability to weird hosts that C allows (though we don't
26595         know of any practical examples).
26596
26597         * lib/savedir.h (fdsavedir): New decl.
26598         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26599         contains most of the former guts of savedir.
26600         (savedir): Use savedirstream.
26601         Include "openat.h".
26602
26603 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26604
26605         * modules/obstack (Files): Add m4/ulonglong.m4.
26606         Problem reported by Davide Angelocola.
26607
26608 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26609
26610         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26611         coreutils no longer futzes with rounding modes.
26612
26613 2005-11-14  Jim Meyering  <jim@meyering.net>
26614
26615         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26616         replacement of mkstemp.
26617
26618 2005-11-10  Simon Josefsson  <jas@extundo.com>
26619
26620         * lib/readline.c: Remove EOL.
26621
26622 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26623
26624         * modules/gethrxtime (Depends-on): Add gettime.
26625
26626 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26627
26628         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26629         or gettimeofday; no longer needed.
26630
26631 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26632
26633         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26634         time business.
26635         (gethrxtime) [! (HAVE_NANOUPTIME
26636         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26637         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26638         our own approximation.
26639
26640 2005-11-08  Eric Blake  <ebb9@byu.net>
26641
26642         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26643
26644 2005-11-08  Eric Blake  <ebb9@byu.net>
26645
26646         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26647
26648 2005-11-04  Bruno Haible  <bruno@clisp.org>
26649
26650         * gnulib-tool: Implement --update mode.
26651
26652 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26653
26654         Fix porting problem reported by Theodoros V. Kalamatianos.
26655         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26656         Don't assume that futimes failing means we must fail.
26657
26658 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26661         variables to suggest the intended function of the PATH_MAX check.
26662
26663 2005-10-30  Kean Johnston  <jkj@sco.com>
26664
26665         Trivial changes to support SCO systems.
26666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26667         as PATH_MAX.
26668         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26669         where __ptr is null when no I/O is pending.
26670
26671 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26672
26673         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26674         leave errno alone.  Problem reported by Dmitry V. Levin.
26675
26676 2005-10-28  Simon Josefsson  <jas@extundo.com>
26677
26678         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26679         Test more.
26680
26681         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26682
26683         * modules/md2, modules/md2-tests: New files.
26684
26685 2005-10-28  Simon Josefsson  <jas@extundo.com>
26686
26687         * m4/inet_ntop.m4: More tests.
26688
26689         * m4/gc-md2.m4, md2.m4: New file.
26690
26691 2005-10-28  Simon Josefsson  <jas@extundo.com>
26692
26693         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26694         "restrict" keywords, as per POSIX.  Protect the function
26695         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26696         Don't use K&R prototypes.  Check the sprintf return values.
26697         Re-define EAFNOSUPPORT if not present.  Indent.
26698
26699         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26700         suggested by Bruno Haible <bruno@clisp.org>.
26701
26702         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26703
26704         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26705
26706         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26707         libgcrypt).
26708
26709         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26710
26711         * lib/md2.h, lib/md2.c: New files.
26712
26713 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26714
26715         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26716         errno alone.  Problem reported by Frederic Jolliton.
26717
26718 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26719
26720         * modules/verify (License): Change from GPL to LGPL.  This is a
26721         tiny module and there are apparently near-equivalents that are
26722         under the BSD license.
26723
26724 2005-10-24  Simon Josefsson  <jas@extundo.com>
26725
26726         * modules/sha1: Relicense to LGPL.
26727
26728 2005-10-24  Simon Josefsson  <jas@extundo.com>
26729
26730         * lib/md4.h: Shrink buffer size, now that we changed the type.
26731
26732 2005-10-23  Simon Josefsson  <jas@extundo.com>
26733
26734         * gnulib-tool (func_import): Fix --tests-base.
26735
26736 2005-10-22  Simon Josefsson  <jas@extundo.com>
26737
26738         * modules/arcfour (Depends-on): Need stdint.
26739
26740 2005-10-22  Simon Josefsson  <jas@extundo.com>
26741
26742         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26743         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26744
26745 2005-10-22  Simon Josefsson  <jas@extundo.com>
26746
26747         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26748         suggested by Bruno Haible <bruno@clisp.org>.
26749
26750 2005-10-22  Simon Josefsson  <jas@extundo.com>
26751
26752         * lib/crc.h: Include stddef.h, for size_t.
26753
26754 2005-10-22  Simon Josefsson  <jas@extundo.com>
26755
26756         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26757         arcfour_context struct (simplify test vector testing in GNU
26758         Shishi).
26759
26760 2005-10-21  Simon Josefsson  <jas@extundo.com>
26761
26762         * modules/des, modules/des-tests: New files.
26763
26764         * modules/gc-des, modules/gc-des-tests: New files.
26765
26766         * tests/test-des.c, tests/test-gc-des.c: New file.
26767
26768 2005-10-21  Simon Josefsson  <jas@extundo.com>
26769
26770         * modules/arctwo, modules/arctwo-tests: New files.
26771
26772         * tests/test-arctwo.c: New file.
26773
26774         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26775
26776         * tests/test-gc-arctwo.c: New file.
26777
26778 2005-10-21  Simon Josefsson  <jas@extundo.com>
26779
26780         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26781         Bruno Haible <bruno@clisp.org>.
26782
26783         * m4/gc-des.m4: New file.
26784
26785 2005-10-21  Simon Josefsson  <jas@extundo.com>
26786
26787         * m4/arctwo.m4: New file.
26788
26789         * m4/gc-arctwo.m4: New file.
26790
26791 2005-10-21  Simon Josefsson  <jas@extundo.com>
26792
26793         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26794         block.
26795
26796 2005-10-21  Simon Josefsson  <jas@extundo.com>
26797
26798         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26799         <bruno@clisp.org>.
26800
26801         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26802
26803         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26804         Bruno Haible <bruno@clisp.org>.
26805
26806         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26807         <bruno@clisp.org>.
26808
26809 2005-10-21  Simon Josefsson  <jas@extundo.com>
26810
26811         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26812
26813 2005-10-21  Simon Josefsson  <jas@extundo.com>
26814
26815         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26816
26817 2005-10-21  Simon Josefsson  <jas@extundo.com>
26818
26819         * lib/des.h, lib/des.c: New files.
26820
26821         * lib/gc-gnulib.c: Support DES.c
26822
26823 2005-10-21  Simon Josefsson  <jas@extundo.com>
26824
26825         * lib/arctwo.h, lib/arctwo.c: New files.
26826
26827         * lib/gc-gnulib.c: Support ARCTWO.
26828
26829 2005-10-21  Simon Josefsson  <jas@extundo.com>
26830
26831         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26832         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26833
26834 2005-10-21  Simon Josefsson  <jas@extundo.com>
26835
26836         * gnulib-tool (func_import, func_create_testdir): Define automake
26837         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26838         Makefile.am snippet),
26839         suggested by Bruno Haible <bruno@clisp.org>.
26840
26841         * modules/gc (Makefile.am): Use it.
26842
26843 2005-10-21  Bruno Haible  <bruno@clisp.org>
26844
26845         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26846         patch.
26847
26848 2005-10-19  Simon Josefsson  <jas@extundo.com>
26849
26850         * tests/test-gc-rijndael.c: New file.
26851
26852         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26853
26854 2005-10-19  Simon Josefsson  <jas@extundo.com>
26855
26856         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26857         interface too.
26858
26859 2005-10-19  Simon Josefsson  <jas@extundo.com>
26860
26861         * tests/test-gc-arcfour.c: New file.
26862
26863         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26864
26865 2005-10-19  Simon Josefsson  <jas@extundo.com>
26866
26867         * modules/gc-md4, modules/gc-md4-tests: New file.
26868
26869         * tests/test-gc-md4.c: New file.
26870
26871 2005-10-19  Simon Josefsson  <jas@extundo.com>
26872
26873         * m4/gc-md4.m4: New file.
26874
26875 2005-10-19  Simon Josefsson  <jas@extundo.com>
26876
26877         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26878         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26879         <kasal@ucw.cz>.
26880
26881 2005-10-19  Simon Josefsson  <jas@extundo.com>
26882
26883         * m4/gc-arcfour.m4: New file.
26884
26885         * m4/gc-rijndael.m4: New file.
26886
26887 2005-10-19  Simon Josefsson  <jas@extundo.com>
26888
26889         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26890
26891 2005-10-19  Simon Josefsson  <jas@extundo.com>
26892
26893         * lib/gc-gnulib.c: Support ARCFOUR.
26894
26895 2005-10-19  Simon Josefsson  <jas@extundo.com>
26896
26897         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26898         support.
26899
26900         * lib/gc.h: Add ECB enum type.
26901
26902         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26903
26904 2005-10-18  Simon Josefsson  <jas@extundo.com>
26905
26906         * tests/test-md5.c: New file.
26907
26908         * modules/md5-tests: New file.
26909
26910 2005-10-18  Simon Josefsson  <jas@extundo.com>
26911
26912         * tests/test-md4.c: New file.
26913
26914         * modules/md4, modules/md4-tests: New files.
26915
26916 2005-10-18  Simon Josefsson  <jas@extundo.com>
26917
26918         * m4/md4.m4: New file.
26919
26920 2005-10-18  Simon Josefsson  <jas@extundo.com>
26921
26922         * lib/md4.h, lib/md4.c: New files, based on md5.?.
26923
26924 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
26925
26926         * gnulib-tool (func_create_testdir): Omit the second check whether
26927         BUILT_SOURCES in nonempty.
26928
26929 2005-10-17  Simon Josefsson  <jas@extundo.com>
26930
26931         * tests/test-rijndael.c: New file.
26932
26933 2005-10-17  Simon Josefsson  <jas@extundo.com>
26934
26935         * modules/sha1: Depend on stdint instead of md5.
26936
26937         * modules/md5: Depend on stdint, remove uint32_t.
26938
26939 2005-10-17  Simon Josefsson  <jas@extundo.com>
26940
26941         * modules/gc-sha1-tests: New file.
26942
26943         * tests/test-gc-sha1.c: New file.
26944
26945 2005-10-17  Simon Josefsson  <jas@extundo.com>
26946
26947         * m4/md5.m4: Remove call to uint32_t.m4.
26948
26949 2005-10-17  Simon Josefsson  <jas@extundo.com>
26950
26951         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26952
26953         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26954         md5.h.
26955
26956         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
26957
26958         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
26959
26960 2005-10-17  Simon Josefsson  <jas@extundo.com>
26961
26962         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26963
26964 2005-10-17  Simon Josefsson  <jas@extundo.com>
26965
26966         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26967
26968 2005-10-17  Simon Josefsson  <jas@extundo.com>
26969
26970         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26971
26972         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26973
26974 2005-10-17  Bruno Haible  <bruno@clisp.org>
26975
26976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26977         that it can also be used in a test.
26978
26979 2005-10-16  Bruno Haible  <bruno@clisp.org>
26980
26981         * gnulib-tool (func_emit_tests_Makefile_am): Also define
26982         TESTS_ENVIRONMENT, so that individual tests can augment it.
26983
26984         * gnulib-tool (func_create_testdir): Use an intermediate target for
26985         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26986         macros, like $(ALLOCA_H), which cannot be passed through the command
26987         line.
26988
26989 2005-10-15  Simon Josefsson  <jas@extundo.com>
26990
26991         * modules/rijndael-tests: New file.
26992
26993         * modules/rijndael: New file.
26994
26995 2005-10-15  Simon Josefsson  <jas@extundo.com>
26996
26997         * m4/rijndael.m4: New file.
26998
26999 2005-10-15  Simon Josefsson  <jas@extundo.com>
27000
27001         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27002
27003         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27004
27005 2005-10-14  Simon Josefsson  <jas@extundo.com>
27006
27007         * tests/test-arcfour.c: New file.
27008
27009         * modules/arcfour, modules/arcfour-tests: New files.
27010
27011 2005-10-14  Simon Josefsson  <jas@extundo.com>
27012
27013         * m4/arcfour.m4: New file.
27014
27015 2005-10-14  Simon Josefsson  <jas@extundo.com>
27016
27017         * lib/arcfour.h, lib/arcfour.c: New files.
27018
27019 2005-10-14  Roland McGrath  <roland@redhat.com>
27020
27021         Import from libc.  [BZ #1331]
27022         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27023         macro argument.
27024         Reported by Matej Vela <vela@debian.org>.
27025
27026 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27029         include <wchar.h>; no longer needed.
27030
27031 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27032
27033         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27034
27035 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27036         and  Ulrich Drepper  <drepper@redhat.com>
27037
27038         Import from libc.
27039         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27040         instead of inline stream orientation test and two separate
27041         function calls.  Pay no attention to USE_IN_LIBIO.
27042
27043 2005-10-13  Simon Josefsson  <jas@extundo.com>
27044
27045         * modules/gc-hmac-md5-tests: New file.
27046
27047         * tests/test-gc-hmac-sha1.c: New file.
27048
27049         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27050
27051         * modules/gc-hmac-md5-tests: New file.
27052
27053         * tests/test-gc-md5.c: New file.
27054
27055         * modules/gc-md5-tests: New file.
27056
27057 2005-10-13  Simon Josefsson  <jas@extundo.com>
27058
27059         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27060         Move memory allocation outside of loop.
27061
27062 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27063
27064         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27065         intermediate directory is in a read-only file system.  Problem
27066         reported by Eric Blake.
27067
27068 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27069
27070         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27071
27072 2005-10-12  Simon Josefsson  <jas@extundo.com>
27073
27074         * tests/test-hmac-sha1.c: New file.
27075
27076         * modules/hmac-sha1-tests: New file.
27077
27078         * modules/hmac-sha1: New file.
27079
27080 2005-10-12  Simon Josefsson  <jas@extundo.com>
27081
27082         * modules/gc-sha1: New file.
27083
27084 2005-10-12  Simon Josefsson  <jas@extundo.com>
27085
27086         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27087
27088         * tests/test-gc-pbkdf2-sha1.c: New file.
27089
27090 2005-10-12  Simon Josefsson  <jas@extundo.com>
27091
27092         * modules/gc-md5, modules/gc-hmac-md5: New files.
27093
27094         * modules/gc (Files): Remove md5, memxor and hmac files.
27095
27096 2005-10-12  Simon Josefsson  <jas@extundo.com>
27097
27098         * m4/gc-pbkdf2-sha1.m4: New file.
27099
27100         * m4/gc-hmac-sha1.m4: New file.
27101
27102         * m4/gc-sha1: New file.
27103
27104         * m4/hmac-sha1.m4: New file.
27105
27106 2005-10-12  Simon Josefsson  <jas@extundo.com>
27107
27108         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27109
27110         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27111
27112 2005-10-12  Simon Josefsson  <jas@extundo.com>
27113
27114         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27115         suggested by Bruno Haible <bruno@clisp.org>.
27116
27117 2005-10-12  Simon Josefsson  <jas@extundo.com>
27118
27119         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27120
27121 2005-10-12  Simon Josefsson  <jas@extundo.com>
27122
27123         * lib/gc-pbkdf2-sha1.c: New file.
27124
27125         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27126
27127 2005-10-12  Simon Josefsson  <jas@extundo.com>
27128
27129         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27130
27131         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27132
27133 2005-10-12  Simon Josefsson  <jas@extundo.com>
27134
27135         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27136         GC_USE_HMAC_MD5, respectively.
27137
27138         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27139         (gc_md5): Fix typo.
27140
27141         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27142
27143         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27144
27145         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27146
27147 2005-10-12  Bruno Haible  <bruno@clisp.org>
27148
27149         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27150         Reported by Stepan Kasal <kasal@ucw.cz>.
27151
27152 2005-10-11  Simon Josefsson  <jas@extundo.com>
27153
27154         * tests/test-crc.c: New file.
27155
27156         * modules/crc, modules/crc-tests: New files.
27157
27158 2005-10-11  Simon Josefsson  <jas@extundo.com>
27159
27160         * m4/crc.m4: New file.
27161
27162 2005-10-11  Simon Josefsson  <jas@extundo.com>
27163
27164         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27165
27166         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27167
27168         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27169
27170 2005-10-11  Simon Josefsson  <jas@extundo.com>
27171
27172         * lib/crc.h, lib/crc.c: New files.
27173
27174         * lib/gc.h (gc_hash_buffer): Add doc.
27175
27176 2005-10-11  Bruno Haible  <bruno@clisp.org>
27177
27178         * modules/c-strcasestr: New file.
27179         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27180
27181 2005-10-11  Bruno Haible  <bruno@clisp.org>
27182
27183         * modules/c-strcase: New file.
27184         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27185
27186 2005-10-11  Bruno Haible  <bruno@clisp.org>
27187
27188         * lib/strcasecmp.c: Include limits.h.
27189         (strcasecmp): Avoid integer overflow on exotic platforms.
27190         * lib/strncasecmp.c: Include limits.h.
27191         (strncasecmp): Avoid integer overflow on exotic platforms.
27192         Reported by Paul Eggert.
27193
27194 2005-10-11  Bruno Haible  <bruno@clisp.org>
27195
27196         * lib/c-strcasestr.h: New file, from GNU gettext.
27197         * lib/c-strcasestr.c: New file, from GNU gettext.
27198
27199 2005-10-11  Bruno Haible  <bruno@clisp.org>
27200
27201         * lib/c-strcase.h: New file, from GNU gettext.
27202         * lib/c-strcasecmp.c: New file, from GNU gettext.
27203         * lib/c-strncasecmp.c: New file, from GNU gettext.
27204
27205 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27206
27207         * modules/mempcpy (License): GPL -> LGPL.
27208         * modules/strchrnul (License): Likewise.
27209         * modules/sysexits (License): Likewise.
27210
27211 2005-10-08  Simon Josefsson  <jas@extundo.com>
27212
27213         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27214
27215 2005-10-07  Simon Josefsson  <jas@extundo.com>
27216
27217         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27218
27219 2005-10-06  Simon Josefsson  <jas@extundo.com>
27220
27221         * tests/test-hmac-md5.c: New file.
27222
27223         * modules/hmac-md5-tests: New file.
27224
27225         * modules/hmac-md5: New file.
27226
27227 2005-10-06  Simon Josefsson  <jas@extundo.com>
27228
27229         * m4/hmac-md5.m4: New file.
27230
27231         * m4/memxor.m4: Require gl_C_RESTRICT.
27232
27233 2005-10-06  Simon Josefsson  <jas@extundo.com>
27234
27235         * lib/memxor.c (memxor): Avoid casts and warnings.
27236
27237 2005-10-06  Simon Josefsson  <jas@extundo.com>
27238
27239         * lib/hmac-md5.c: New file.
27240
27241         * lib/hmac.h: New file.
27242
27243 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27244
27245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27246         promotes to int, not unsigned int, to catch the AIX 5.3
27247         compiler bug.
27248
27249 2005-10-05  Simon Josefsson  <jas@extundo.com>
27250
27251         * modules/memxor: New file.
27252
27253         * modules/iconv (Files): Move config.rpath to havelib, it is used
27254         there.
27255
27256         * modules/havelib (Files): Add config.rpath.
27257
27258 2005-10-05  Simon Josefsson  <jas@extundo.com>
27259
27260         * m4/memxor.m4: New file.
27261
27262 2005-10-05  Simon Josefsson  <jas@extundo.com>
27263
27264         * lib/memxor.c (memxor): Fix compiler error.
27265
27266         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27267         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27268
27269         * lib/memxor.h, lib/memxor.c: New files.
27270
27271         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27272         we assume all systems have it, suggested by Jim Meyering
27273         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27274         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27275         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27276         same reasons.
27277
27278 2005-10-05  Simon Josefsson  <jas@extundo.com>
27279
27280         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27281
27282 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27283
27284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27285         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27286         needed, since the source code now assumes these .h files.
27287
27288 2005-10-05  Derek Price  <derek@ximbiot.com>
27289
27290         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27291
27292 2005-10-05  Bruno Haible  <bruno@clisp.org>
27293
27294         * modules/stdint (License): Change to LGPL.
27295
27296 2005-10-04  Simon Josefsson  <jas@extundo.com>
27297
27298         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27299         D. Baushke" <mdb@gnu.org>.
27300
27301 2005-10-04  Bruno Haible  <bruno@clisp.org>
27302
27303         * lib/verify.h (verify_true): Provide alternative definition for C++.
27304
27305 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27306
27307         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27308         (SSIZE_MAX): New macro, if not already defined.
27309         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27310         than 2 GiB.
27311
27312 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27313
27314         Sync from coreutils.
27315         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27316         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27317         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27318         ULLONG_MAX doesn't work with 2.7.2.1.
27319
27320 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27321
27322         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27323         From Ben Pfaff.
27324
27325         * modules/exclude (Depends-on): Depend on verify.
27326         * modules/strtoimax (Depends-on): Likewise.
27327         * modules/utimecmp (Depends-on): Likewise.
27328
27329 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         * lib/exclude.c: Include verify.h.
27332         (verify): Remove.  All callers changed to use verify.h's version.
27333         * lib/strtoimax.c: Likewise.
27334         * lib/utimecmp.c: Likewis.e
27335
27336         Sync from coreutils.
27337         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27338         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27339         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27340         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27341         bother returning ENOSYS if settimeofday or stime fails; just let
27342         them return whatever errno they want to return.
27343         * lib/utimens.c: Include unistd.h, for dup2.
27344         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27345         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27346
27347 2005-10-02  Jim Meyering  <jim@meyering.net>
27348
27349         Sync from coreutils.
27350         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27351         from glibc-2.2.5 that fails for read-only files.
27352
27353 2005-10-02  Jim Meyering  <jim@meyering.net>
27354
27355         Sync from coreutils.
27356         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27357         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27358         `#if HAVE_CONFIG_H'.
27359         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27360         Remove AT_FDCWD test.
27361         Do not consume the fd unless successful.
27362         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27363         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27364         block, so that we don't even try to compile it if settimeofday is
27365         available.  This works around a compilation failure on OSF1 V5.1,
27366         due to stime requiring a `long int*' while tv_sec is `int'.
27367
27368 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27369
27370         Sync from coreutils.
27371         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27372         against `yes', rather than just testing for nonempty.
27373
27374 2005-10-01  Simon Josefsson  <jas@extundo.com>
27375
27376         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27377         and Darwin.
27378
27379         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27380         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27381         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27382         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27383         Check if struct addrinfo is declared.
27384
27385 2005-10-01  Simon Josefsson  <jas@extundo.com>
27386
27387         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27388         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27389         AI_* and EAI_* definitions.  Protect function declarations.
27390
27391 2005-10-01  Jim Meyering  <jim@meyering.net>
27392
27393         Sync from coreutils.
27394
27395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27396         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27397         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27399         in the inet and nsl libraries.  Required on Solaris 5.7.
27400
27401 2005-10-01  Jim Meyering  <jim@meyering.net>
27402
27403         Sync from coreutils.
27404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27405         in the inet and nsl libraries.  Required on Solaris 5.7.
27406
27407 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27408
27409         * lib/getdelim.c (getdelim): Remove unused variables.
27410
27411 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27412
27413         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27414         so that the code works even with ancient cpp.  Portability problem
27415         with GCC 2.7.2.1 reported by Thomas M.Ott.
27416
27417 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         * modules/regex (Depends-on): Add strcase.
27420
27421         * modules/gethostname (Licence): Change from GPL to LGPL, since
27422         gethostname.c is a trivial implementation of a standard library
27423         function.
27424         * modules/poll (License): Change from GPL to LGPL, since it's
27425         derived from LGPL code.
27426
27427 2005-09-27  Jim Meyering  <jim@meyering.net>
27428
27429         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27430         HAVE_CONFIG_H.
27431
27432         * lib/intprops.h (signed_type_or_expr__): Define.
27433         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27434         for unsigned types.
27435
27436 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27437
27438         * lib/verify.h (verify_expr): Remove, replacing with:
27439         (verify_true): New macro that returns true instead of void.
27440         (verify_type__): Remove.
27441         (verify): Use verify_true rather than verify_type__.
27442
27443 2005-09-26  Bruno Haible  <bruno@clisp.org>
27444
27445         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27446         is necessary.
27447         (lib_SOURCES): Remove mbchar.c.
27448         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27449         (Files): Add m4/mbrtowc.m4.
27450         * modules/mbiter: Likewise.
27451         * modules/mbuiter: Likewise.
27452
27453 2005-09-26  Bruno Haible  <bruno@clisp.org>
27454
27455         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27456         compile mbchar.c if they are not both present.
27457         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27458         * m4/mbiter.m4 (gl_MBITER): Likewise.
27459         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27460         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27461         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27462
27463 2005-09-25  Jim Meyering  <jim@meyering.net>
27464
27465         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27466         also uses socklen_t.
27467
27468 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27469
27470         * lib/utimens.c (ENOSYS): Define if not already defined.
27471         (futimens): Support having a null PATH if the file descriptor
27472         is nonnegative.
27473
27474         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27475         Remove.
27476         (__attribute): Define to empty unless GCC 3.1 or later.
27477         This works around a core dump on OpenBSD 3.4, which has GCC
27478         2.95.3, which dumps core when given __attribute__(()).  It also
27479         simplifies other tests, since we really don't want to bother with
27480         worrying about which ancient version of GCC supported what.
27481         Original problem reported by Yoann Vandoorselaere, with part of
27482         the fix suggested by Derek Price.
27483
27484 2005-09-24  Jim Meyering  <jim@meyering.net>
27485
27486         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27487         so we can once again use a positive bitfield width of 1 -- now we
27488         don't have to explain why we were using a bitfield width of 2.
27489
27490 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27491
27492         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27493         and similarly for the other external symbols.  Problem reported
27494         by James Gallager.
27495
27496         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27497         bug reported by Jim Meyering.
27498
27499         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27500         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27501         not needed, since socklen is a prerequisite module.
27502
27503 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27504
27505         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27506         Problem reported by Eric Blake.
27507         (getaddrinfo): Initialize se so that it's not garbage.
27508         Redo internal storage allocation so that it doesn't make unportable
27509         assumptions about alignment.
27510         Fix a memory leak.
27511
27512         * lib/utimens.c (futimens): Use futimesat if available.
27513         Prefer it to futimes since it doesn't have the futimes bug.
27514
27515         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27516         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27517         Instead, declare a function that returns a pointer to an array,
27518         and use verify_type__ to declare the size of the array.
27519         Problem and germ of a solution reported by Bruno Haible.
27520         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27521         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27522
27523 2005-09-23  Jim Meyering  <jim@meyering.net>
27524
27525         Sync from coreutils.
27526         Correct build failure (socklen_t not defined) on at least
27527         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27529
27530 2005-09-23  Jim Meyering  <jim@meyering.net>
27531
27532         * modules/getaddrinfo (Depends-on): Add socklen.
27533
27534 2005-09-23  Bruno Haible  <bruno@clisp.org>
27535
27536         * tests/test-verify.c: New file.
27537
27538 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27539
27540         Sync from coreutils.
27541
27542         * modules/argmatch (Depends-on): Add verify.
27543         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27544         unistd-safer.
27545         * modules/save-cwd (Depends-on): Likewise.
27546
27547         * modules/openat (Files): Add lib/openat-die.c.
27548         (Depends-on): Remove error, exitfail.
27549         Add dirname.
27550
27551         * modules/verify: New file.
27552         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27553         with "verify" module.
27554
27555 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27556
27557         Sync from coreutils.
27558
27559         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27560         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27561         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27562         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27563         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27564         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27565         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27566         Don't bother checking for string.h, stdlib.h, unistd.h.
27567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27568         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27569         module's job.
27570         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27571         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27572
27573         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27574         (gl_GETDATE): Use it.
27575
27576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27577
27578 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27579
27580         Sync from coreutils.
27581
27582         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27583         stat-time.h.
27584         * lib/argmatch.h: Include verify.h
27585         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27586         (ARGMATCH_ASSERT): Remove; unused.
27587         * lib/canonicalize.c: Assume STDC_HEADERS.
27588         * lib/exclude.c: Include "strcase.h".
27589         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27590         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27591         and stdio-safer.h.
27592         (getusershell): Call fopen, not fopen_safer.
27593         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27594         Do not include unistd-safer.h.
27595         (save_cwd): Don't call fd_safer; no longer needed
27596         now that we include fcntl--.h.
27597
27598         * lib/getdate.y (relative_time): New type.
27599         (RELATIVE_TIME_0): New constant.
27600         (parser_control): Use relative_time instead of doing it ourselves.
27601         (%union): Add new relative_time rel member.
27602         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27603         Now typeless.
27604         (relunit, relunit_snumber): Now of type rel.
27605         (zone, rel, relunit, get_date): Adjust to above changes.
27606
27607         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27608         Do not include unistd-safer.h.
27609         (getloadavg): Don't call fd_safer; no longer needed
27610         now that we include fcntl--.h.
27611
27612         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27613         (make_dir_parents): Treat ENOSYS like EEXIST.
27614
27615         Improve quality of diagnostics on restore_cwd failure.
27616         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27617         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27618         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27619         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27620         each time through the loop.  Do not diagnose restore_cwd failure;
27621         that is the caller's job (and perhaps the caller does not care).
27622
27623         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27624         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27625         If the file already exists but is not a directory, don't bother
27626         to try to make its parents.
27627         Close potential file descriptor leak if we can't chdir("/") (!).
27628         Don't always return true if chdir($PWD) fails; return true only
27629         if the requested action was done successfully (except for the
27630         chdir($PWD)).
27631         Don't log final directory unless we actually made it.
27632         Refactor to avoid duplicate code to fix up permissions.
27633         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27634
27635         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27636         to make it a bit faster and (I hope) clearer.
27637         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27638         Fix bug in formats like %2N.
27639
27640         * lib/verify.h: New file.
27641
27642 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27643
27644         Sync from coreutils.
27645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27646
27647 2005-09-22  Jim Meyering  <jim@meyering.net>
27648
27649         Sync from coreutils.
27650
27651         * m4/lstat.m4 (gl_FUNC_LSTAT):
27652         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27653         Remove obsolete comment.
27654         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27655         * m4/xstrtod.m4: Likewise.
27656
27657         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27658
27659 2005-09-22  Jim Meyering  <jim@meyering.net>
27660
27661         Sync from coreutils.
27662
27663         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27664
27665         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27666         the .tm_year member, since otherwise gcc-4.0 would now warn about
27667         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27668
27669         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27670         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27671
27672         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27673         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27674         when run in a time zone for which daylight savings time is in effect
27675         for the starting date.
27676
27677         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27678         stop us from restricting permissions of just-created absolute-named
27679         directories.
27680         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27681         to restore initial working directory.
27682         * lib/mkdir-p.c (make_dir_parents): New parameter:
27683         different_working_dir, to tell caller if/when we change the working
27684         directory and are unable to return to the initial one.
27685         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27686         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27687         `return false'.  This fixes a bug introduced on 2004-07-30.
27688
27689         * lib/openat.c (fdopendir): Be sure to close the supplied
27690         file descriptor before returning.  This makes our replacement
27691         implementation a little closer to Solaris's, where fdopendir
27692         ties the file descriptor to the returned DIR* pointer.
27693         * lib/openat.c (unlinkat): New function.
27694         * lib/openat.h (unlinkat): Add prototype.
27695         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27696         (openat_restore_fail): Rename from openat_restore_die.
27697         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27698
27699         Provide an alternative to exiting immediately upon save_cwd or
27700         restore_cwd failure.  Now, an application can arrange e.g.,
27701         to perform a longjump in that case.
27702         * lib/openat.c: Include dirname.h.
27703         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27704         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27705         and openat_restore_die rather than calling error directly.
27706         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27707
27708         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27709         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27710         define.
27711
27712         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27713         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27714                             int utc, int nanoseconds);
27715         Background:
27716         date should not have to allocate a megabyte of virtual memory to
27717         handle a format argument like +%1048575T.  When implemented with
27718         strftime, it must allocate such a buffer, use strftime to fill it
27719         in, print it, then free it.
27720         With fprintftime, it simply prints everything and exits.
27721         With no need for memory allocation, that's one fewer way to fail.
27722         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27723         optional field width, not before, so we accept %9:z, not %:9z.
27724         (my_strftime): Be sure to use L_('x') for literals.
27725
27726         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27727         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27728         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27729         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27730         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27731         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27732         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27733         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27734         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27735         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27736         * lib/xgethostname.c, lib/xreadlink.c:
27737         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27738
27739         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27740         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27741         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27742         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27743         and don't include <sys/file.h>).
27744
27745 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27746
27747         Sync from coreutils.
27748
27749         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27750         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27751         [!LDAV_DONE]: Avoid unused variable warning.
27752
27753 2005-09-21  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/unicodeio.h (unicode_to_mb): New declaration.
27756
27757 2005-09-20  Derek Price  <derek@ximbiot.com>
27758
27759         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27760         getaddrinfo.h.
27761
27762 2005-09-20  Bruno Haible  <bruno@clisp.org>
27763
27764         * gnulib-tool: Remove trailing slashes from the values specified for
27765         --source-base, --m4-base, --tests-base, --aux-dir.
27766         Suggested by Simon Josefsson <jas@extundo.com>.
27767
27768 2005-09-20  Bruno Haible  <bruno@clisp.org>
27769
27770         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27771         func_modules_to_filelist, func_import, func_create_testdir): Make all
27772         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27773         change when gnulib-tool is invoked in a different locale.
27774
27775 2005-09-19  Simon Josefsson  <jas@extundo.com>
27776
27777         * m4/socklen.m4: Fix typo.
27778
27779 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27780
27781         Use a consistent style for including <config.h>.
27782         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27783         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27784         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27785         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27786         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27787         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27788         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27789         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27790         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27791         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27792         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27793         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27794         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27795         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27796         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27797         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27798         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27799         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27800         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27801         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27802         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27803         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27804         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27805         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27806         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27807         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27808         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27809         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27810         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27811         lib/xstrtoumax.c, lib/yesno.c:
27812         Standardize inclusion of config.h.
27813         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27814         lib/inttostr.h:  Removed inclusion of config.h from header files.
27815         * lib/inttostr.c:  Adjusted in-tree users.
27816         * lib/timespec.h: Remove superfluous warning to include config.h.
27817         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27818         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27819         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27820         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27821         config.h with HAVE_CONFIG_H.
27822
27823 2005-09-19  Jim Meyering  <jim@meyering.net>
27824
27825         * modules/pathmax (License): Change to LGPL.
27826
27827 2005-09-19  Derek Price  <derek@ximbiot.com>
27828
27829         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27830
27831 2005-09-19  Bruno Haible  <bruno@clisp.org>
27832
27833         * gnulib-tool (import): Provide default for --tests-base.
27834
27835 2005-09-19  Bruno Haible  <bruno@clisp.org>
27836
27837         * doc/quote.texi: New file, extracted from gnulib.texi.
27838         * doc/ctime.texi: New file, extracted from gnulib.texi.
27839         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27840         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27841         * doc/gnulib.texi: Include them.
27842
27843 2005-09-18  Bruno Haible  <bruno@clisp.org>
27844
27845         Portability fix.
27846         * gnulib-tool (func_readlink): New function.
27847         (func_ln_if_changed): Use it.
27848
27849 2005-09-18  Bruno Haible  <bruno@clisp.org>
27850
27851         * gnulib-tool: Support --with-tests also with --import.
27852         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27853         (func_import): Use variables $testsbase and $inctests. Emit a
27854         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27855         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27856         SUBDIRS += $testsdir.
27857         (func_create_testdir): Update.
27858
27859 2005-09-18  Bruno Haible  <bruno@clisp.org>
27860
27861         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27862         instead of $dry_run.
27863         (func_cp_if_changed, func_mv_if_changed): Remove functions.
27864         (func_ln_if_changed): Don't handle dry-run here.
27865         (func_import): In dry-run mode, detect more precisely which actions
27866         would be performed, and don't use "...ing" verbs.
27867
27868 2005-09-18  Bruno Haible  <bruno@clisp.org>
27869
27870         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27871         (func_import): Use join on two temporary files instead of three nested
27872         loops, in order to determine which files are new or old.
27873
27874 2005-09-18  Bruno Haible  <bruno@clisp.org>
27875
27876         * gnulib-tool (func_import): Comment out code that spits out the
27877         new files with --dry-run.
27878
27879 2005-09-18  Bruno Haible  <bruno@clisp.org>
27880
27881         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27882
27883 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27884
27885         * lib/stat-time.h: New file.
27886         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27887         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
27888         in a different way.
27889         (timespec_cmp): New function.
27890         * lib/utimecmp.c: Include stat-time.h.
27891         (SYSCALL_RESOLUTION): Depend on whether various struct stat
27892         members exist, not on the obsolescent ST_MTIM_NSEC.
27893         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27894
27895 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27896
27897         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27898
27899 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         * MODULES.html.sh (File system functions): Add stat-time.
27902         * modules/stat-time: New file.
27903         * modules/timespec (Files): Remove m4/st_mtim.m4; this
27904         is now done in a different way, by the stat-time module.
27905         * modules/utimecmp (Depends-on): Add stat-time.
27906
27907 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27908
27909         * m4/st_mtim.m4: Remove.  Superseded by...
27910         * m4/stat-time.m4: New file.
27911         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27912         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27913
27914 2005-09-15  Derek Price  <derek@ximbiot.com>
27915
27916         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27917
27918 2005-09-15  Derek Price  <derek@ximbiot.com>
27919
27920         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27921         * lib/regex_internal.c: Ditto, using this...
27922         (__GNUC_PREREQ): ...new macro.
27923         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27924         using...
27925         (__GNUC_PREREQ): ...this new macro.
27926
27927         * lib/strstr.h: Include string.h. Define strstr as a macro here.
27928
27929 2005-09-15  Derek Price  <derek@ximbiot.com>
27930             Paul Eggert  <eggert@cs.ucla.edu>
27931
27932         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27933         changes, consolidating in...
27934         * lib/regex_internal.h: ...this file.
27935
27936 2005-09-13  Jim Meyering  <jim@meyering.net>
27937
27938         * lib/canon-host.c: Filter through gnu indent and reword comments
27939         slightly.
27940         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27941
27942 2005-09-13  Derek Price  <derek@ximbiot.com>
27943
27944         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27945         failure.
27946         Reported by Jim Meyering  <jim@meyering.net>.
27947
27948 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27949
27950         * lib/base64.c: Typo.
27951         (base64_encode): Put b64str in initialized data section.
27952
27953 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         Merge glibc and coreutils changes into gnulib, plus a few
27956         extra fixes.
27957         * lib/md5.c: Use #error rather than a string.
27958         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
27959         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27960         (__attribute__): Define to empty for non recent-GCC.
27961         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27962         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27963         Renamed from their non-__ counterparts, with new macros replacing
27964         them if not _LIBC.  Add __THROW attribute.
27965         (rol): Remove.
27966         (struct md5_ctx): Align buffer if using GCC.
27967         * lib/sha1.h (struct sha1_ctx): Likewise.
27968         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
27969         The old name was backwards.
27970         (NOTSWAP): Remove; not used.
27971         (rol): New macro, moved here from md5.h.
27972         (sha1_process_block): Remove a FIXME that doesn't make sense.
27973
27974 2005-09-12  Derek Price  <derek@ximbiot.com>
27975
27976         Return usable errors from canon-host.
27977         * lib/canon-host.h: New file.
27978         * lib/canon-host.c (canon_host): Wrap...
27979         (canon_host_r): ...this new function, which now relies exclusively on
27980         getaddrinfo.
27981         (ch_strerror): New function.
27982         (last_cherror): New global.
27983         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27984         interface.
27985         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
27986         void *.
27987         (freeaddrinfo): Free ai->ai_canonname when set.
27988
27989 2005-09-12  Derek Price  <derek@ximbiot.com>
27990
27991         Make canon-host require getaddrinfo.
27992         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27993         AC_LIBSOURCE canon-host.h.  Call...
27994         (gl_PREREQ_CANON_HOST): ...this new function, which requires
27995         gl_GETADDRINFO.
27996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27997
27998 2005-09-12  Derek Price  <derek@ximbiot.com>
27999
28000         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28001         LGPL.
28002         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28003
28004 2005-09-12  Derek Price  <derek@ximbiot.com>
28005
28006         * lib/gai_strerror.c: Include config.h when available.  Include
28007         getaddrinfo.h before other headers to test interface.
28008         Reported by Larry Jones <lawrence.jones@ugs.com>.
28009
28010 2005-09-12  Derek Price  <derek@ximbiot.com>
28011             Paul Eggert  <eggert@cs.ucla.edu>
28012
28013         * modules/glob (Files): Add glob-libc.h.
28014
28015 2005-09-12  Derek Price  <derek@ximbiot.com>
28016             Paul Eggert  <eggert@cs.ucla.edu>
28017
28018         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28019         glob_.h, glob-libc.h.
28020         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28021
28022 2005-09-12  Derek Price  <derek@ximbiot.com>
28023             Paul Eggert  <eggert@cs.ucla.edu>
28024
28025         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28026         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28027         protecting things that should be done only in gnulib contexts.
28028         * lib/glob_.h: New file, containing only the glob things needed for
28029         gnulib.
28030         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28031         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28032         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28033         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28034         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28035         and to respect the namespace rules better.
28036
28037 2005-09-08  Simon Josefsson  <jas@extundo.com>
28038
28039         * modules/socklen: New file.
28040
28041 2005-09-08  Simon Josefsson  <jas@extundo.com>
28042
28043         * m4/socklen.m4: New file.
28044
28045 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         * modules/utimens (Files): Add m4/utimbuf.m4, since
28048         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28049         Reported by Sergey Poznyakoff.
28050
28051 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28052
28053         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28054         definitions, since that's the preferred style in glibc.
28055         Fix a minor spacing issue, and update copyright notice to match
28056         glibc's.
28057
28058 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28059
28060         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28061
28062 2005-09-06  Simon Josefsson  <jas@extundo.com>
28063
28064         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28065         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28066
28067 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28068
28069         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28070         warning.
28071
28072 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28073
28074         * config/srclist.txt: Add glibc bug 1302.
28075
28076 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28077
28078         Change bitset word type from unsigned int to unsigned long int,
28079         as this has better performance on typical 64-bit hosts.
28080         Port bitset code to hosts with unusual word sizes.
28081         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28082         (build_collating_symbol):
28083         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28084         argument is a bitset.  This is merely a style issue, but it makes
28085         it clearer that an entire array is expected.
28086         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28087         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28088         Port to the case where bitset_word is not the same as unsigned int.
28089         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28090         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28091         Likewise.
28092         * lib/regexec.c (check_dst_limits_calc_pos_1,
28093         check_subexp_matching_top):
28094         (build_trtable, group_nodes_into_DFAstates):
28095         Likewise.
28096         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28097         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28098         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28099         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28100         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28101         * lib/regcomp.c (optimize_subexps, lower_subexp):
28102         Work even if bitset_word has holes in its bitwise representation.
28103         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28104         * lib/regexec.c (check_dst_limits_calc_pos_1,
28105         check_subexp_matching_top):
28106         Likewise.
28107         * lib/regex_internal.c (re_string_reconstruct):
28108         Don't assume UCHAR_MAX == 255.
28109         * lib/regex_internal.h (bitset_set_all): Likewise.
28110         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28111         All uses changed.
28112         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28113         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28114         All uses changed.
28115         (BITSET_WORD_MAX): New macro.
28116         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28117         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28118         (bitset_empty, bitset_copy):
28119         Prefer sizeof (bitset) to multiplying it out ourselves.
28120         (bitset_not_merge): Remove; unused.
28121         (bitset_contain): Return bool, not unsigned int with one bit on.
28122         All callers changed.
28123         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28124         alignment than re_node_set; do this by defining a new internal
28125         type struct dests_alloc and using it to allocate memory.
28126
28127 2005-09-05  Bruno Haible  <bruno@clisp.org>
28128
28129         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28130         links.
28131
28132 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28133
28134         * modules/size_max (Makefile.am): Add size_max.h
28135
28136 2005-09-04  Derek Price  <derek@ximbiot.com>
28137
28138         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28139
28140 2005-09-03  Simon Josefsson  <jas@extundo.com>
28141
28142         * gnulib-tool: Fix typo.
28143
28144 2005-09-03  Simon Josefsson  <jas@extundo.com>
28145
28146         * config/srclist.txt: Add glibc bug 1293.
28147
28148 2005-09-03  Derek Price  <derek@ximbiot.com>
28149
28150         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28151         From Larry Jones <lawrence.jones@ugs.com>.
28152
28153 2005-09-02  Simon Josefsson  <jas@extundo.com>
28154
28155         * modules/socklen: New file.
28156
28157 2005-09-02  Simon Josefsson  <jas@extundo.com>
28158
28159         * modules/havelib: New module.
28160
28161         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28162         Use havelib.
28163
28164 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28165
28166         Check for arithmetic overflow when calculating sizes, to prevent
28167         some buffer-overflow issues.  These patches are conservative, in the
28168         sense that when I couldn't determine whether an overflow was possible,
28169         I inserted a run-time check.
28170         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28171         macros.
28172         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28173         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28174         (re_xnrealloc, re_x2nrealloc): New inline functions.
28175         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28176         parse_bracket_exp):
28177         (build_equiv_class, build_charclass): Check for arithmetic overflow
28178         in size expression calculations.
28179         * lib/regex_internal.c (re_string_realloc_buffers):
28180         (build_wcs_upper_buffer, re_node_set_add_intersect):
28181         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28182         (re_dfa_add_node, register_state): Likewise.
28183         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28184         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28185         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28186         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28187
28188 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28189
28190         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28191         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28192
28193 2005-09-02  Bruno Haible  <bruno@clisp.org>
28194
28195         Support for lib vs. lib64 distinction on biarch platforms.
28196         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28197         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28198         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28199
28200 2005-09-02  Bruno Haible  <bruno@clisp.org>
28201
28202         * gnulib-tool (import): In the other first-use case, provide defaults
28203         as well.
28204
28205 2005-09-02  Bruno Haible  <bruno@clisp.org>
28206
28207         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28208         patches not yet found in the latest gettext release.
28209
28210 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28211
28212         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28213         to avoid a collision with bits/local_lim.h in glibc.
28214         All uses changed.  Problem reported by Dmitry V. Levin in
28215         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28216
28217         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28218         bugs in int versus size_t comparisons.
28219         (re_string_context_at): Fix bug where the code assumed that
28220         Idx is signed.
28221
28222         Use bool where appropriate.
28223         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28224         All callers changed.
28225         (calc_eclosure_iter): Likewise, for ROOT arg.
28226         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28227         (build_charclass_op): Likewise, for NON_MATCH arg.
28228         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28229         (re_string_construct_common): Likewise, for ICASE arg.
28230         * lib/regexec.c (re_search_2_stub, re_search_stub):
28231         Likewise, for RET_LEN arg.
28232         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28233         (set_regs): Likewise, for FL_BACKTRACK arg.
28234         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28235         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28236         (calc_eclosure_iter, parse_bracket_exp):
28237         Use bool for internal variables that are booleans.
28238         * lib/regexec.c (re_search_internal, check_matching,
28239         proceed_next_node):
28240         (set_regs, build_sifted_states, sift_states_bkref):
28241         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28242         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28243         (find_collation_sequence_value):
28244         Likewise.
28245         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28246         (re_node_set_compare):
28247         Return bool, not int. All callers changed.
28248         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28249         (build_trtable, check_node_accept): Likewise.
28250         * lib/regex_internal.h: Include stdbool.h.
28251
28252         Fix bugs uncovered when converting to bool.
28253         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28254         failure instead of charging ahead blindly.
28255         * lib/regex_internal.c (register_state): Likewise.
28256         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28257         for freeing internal storage.
28258         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28259         bitset pieces used as boolean, to avoid undefined behavior
28260         on hosts that do int overflow checking.
28261
28262 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         * config/srclist.txt: Add glibc bugs 1285-1287.
28265
28266 2005-09-01  Jim Meyering  <jim@meyering.net>
28267
28268         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28269         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28270         Require gl_STAT_MACROS, too.
28271
28272 2005-09-01  Bruno Haible  <bruno@clisp.org>
28273
28274         * gnulib-tool (import): In the first-use case, provide defaults.
28275
28276 2005-09-01  Bruno Haible  <bruno@clisp.org>
28277
28278         * gnulib-tool (func_import): Remove the .tmp files.
28279
28280 2005-09-01  Bruno Haible  <bruno@clisp.org>
28281
28282         * gnulib-tool (func_import): Fix handling of symbolic links.
28283
28284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28285
28286         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28287         old glibc regex code mishandles strings longer than 2**31 bytes.
28288         This patch fixes this when the regex code is used in gnulib
28289         (i.e., outside glibc).
28290
28291         This patch should not affect the use of the regex code inside
28292         glibc.  No doubt this problem also needs to be handled for glibc
28293         as well, but the result will be an incompatible change to the
28294         glibc ABI, and the old ABI will have to be supported too.  That
28295         can be the the subject for another patch.
28296
28297         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28298         governing whether the rest of this patch is active.  By default,
28299         the macro is disabled and the patch has no effect.
28300         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28301         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28302         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28303         (re_match_2, re_set_registers): Use the new types.
28304         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28305         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28306         New macros.
28307         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28308         (re_string_context_at, bin_tree_t, re_dfastate_t):
28309         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28310         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28311         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28312         (re_string_char_size_at, re_string_wchar_at):
28313         (re_string_elem_size_at):
28314         Use the new types and macros to port to 64-bit hosts.
28315         Use unsigned types for internal values, so that the code
28316         mostly works even for arrays larger than SSIZE_MAX.
28317         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28318         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28319         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28320         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28321         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28322         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28323         (calc_inveclosure, parse_dup_op, build_range_exp):
28324         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28325         (fetch_number, create_token_tree, mark_opt_subexp):
28326         Likewise.
28327         * lib/regex_internal.c (re_string_construct_common,
28328         create_ci_newstate):
28329         (create_cd_newstate, re_string_allocate, re_string_construct):
28330         (re_string_realloc_buffers, build_wcs_upper_buffer):
28331         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28332         (re_string_reconstruct, re_string_peek_byte_case):
28333         (re_string_fetch_byte_case, re_string_context_at):
28334         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28335         (re_node_set_init_copy, re_node_set_add_intersect):
28336         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28337         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28338         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28339         (re_acquire_state, re_acquire_state_context, register_state):
28340         Likewise.
28341         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28342         search_cur_bkref_entry):
28343         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28344         (re_search_internal, re_search_2_stub, re_search_stub)
28345         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28346         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28347         (update_cur_sifted_state, check_dst_limits):
28348         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28349         (check_subexp_limits, sift_states_bkref, merge_state_array):
28350         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28351         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28352         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28353         (expand_bkref_cache, check_node_accept_bytes):
28354         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28355         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28356         (acquire_init_state_context, check_halt_node_context):
28357         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28358         (sift_states_backward, clean_state_log_if_needed):
28359         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28360         (find_recover_state, transit_state_sb, transit_state_mb):
28361         (transit_state_bkref, build_trtable, match_ctx_clean):
28362         Likewise.
28363         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28364         to work around an assumption that REG_MISSING is negative.
28365
28366         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28367         (seek_collating_symbol_entry) [defined _LIBC]:
28368         (lookup_collation_sequence_value) [defined _LIBC]:
28369         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28370         Use prototypes rather than old-style function definitions.
28371         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28372         (transit_state_sb) [0]:
28373         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28374
28375         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28376         rm_eo.
28377
28378         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28379         (optimize_subexps, lower_subexp):
28380         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28381         since the signed shift might overflow.  Use 1u<<31 instead.
28382         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28383         Likewise.
28384         * lib/regexec.c (check_dst_limits_calc_pos_1,
28385         check_subexp_matching_top): Likewise.
28386
28387         * lib/regcomp.c (optimize_subexps, lower_subexp):
28388         Use CHAR_BIT rather than 8, for clarity.
28389         * lib/regexec.c (check_dst_limits_calc_pos_1):
28390         (check_subexp_matching_top): Likewise.
28391         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28392         have to worry about portability issues when shifting it left.
28393         Remove no-longer-needed test for table_size > 0.
28394         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28395         in a word, as the resulting behavior is undefined.
28396         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28397         in one case, a <= should have been an <, and in another case the
28398         whole test was missing.
28399         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28400         the standard name CHAR_BIT.
28401         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28402         this is not true on one's complement and signed-magnitude hosts.
28403
28404         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28405         next_last_offset.
28406         (struct re_dfa_t): Remove unused member states_alloc.
28407         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28408
28409 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28410
28411         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28412         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28413         and large-file glibc and in 32-bit large-file Solaris.
28414
28415 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28416
28417         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28418         lengths fit in regoff_t; this isn't true if regoff_t is the same
28419         width as size_t.
28420         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28421         (= START + RANGE) instead of RANGE.  This avoids overflow
28422         problems when regoff_t is the same width as size_t.
28423         All callers changed.
28424         (re_search_2_stub): Check for overflow when adding the
28425         sizes of the two strings.
28426         (re_search_stub): Check for overflow when adding START
28427         to RANGE; if it occurs, substitute the extreme value.
28428
28429 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28430
28431         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28432
28433 2005-08-31  Jim Meyering  <jim@meyering.net>
28434
28435         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28436         a pointer-to-const.
28437         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28438         (register_state): Likewise.
28439         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28440         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28441         (group_nodes_into_DFAstates): Likewise.
28442
28443 2005-08-31  Jim Meyering  <jim@meyering.net>
28444
28445         * check-module: Add a FIXME comment.
28446
28447 2005-08-31  Eric Blake  <ebb9@byu.net>
28448
28449         * modules/unistd-safer (Files): Add unistd--.h.
28450         * modules/stdio-safer (Files): Add stdio--.h.
28451
28452 2005-08-31  Derek Price  <derek@ximbiot.com>
28453
28454         * lib/getdelim.c (getdelim): Return EOF on EOF.
28455         Reported by Larry Jones <lawrence.jones@ugs.com>.
28456
28457 2005-08-31  Bruno Haible  <bruno@clisp.org>
28458
28459         Avoid unnecessary diffs in the generated lib/Makefile.am.
28460         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28461         the generated files.
28462         (func_import): Don't set cmd.
28463
28464 2005-08-31  Bruno Haible  <bruno@clisp.org>
28465
28466         * lib/strstr.c: Include <stddef.h>, for NULL.
28467         * lib/strcasestr.c: Likewise.
28468         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28469
28470 2005-08-31  Bruno Haible  <bruno@clisp.org>
28471
28472         * gnulib-tool: New option --macro-prefix.
28473         (func_import): Use macro_prefix.
28474         (import): Handle option --macro-prefix.
28475
28476 2005-08-31  Bruno Haible  <bruno@clisp.org>
28477
28478         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28479         Also use new variables cached_lgpl, cached_libtool.
28480
28481 2005-08-31  Bruno Haible  <bruno@clisp.org>
28482
28483         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28484         always instantiating them.
28485
28486 2005-08-31  Bruno Haible  <bruno@clisp.org>
28487
28488         * gnulib-tool (func_import): Read the previous cached settings
28489         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28490         earlier added by gnulib but are now dropped. Warn when a gnulib file
28491         overwrites a non-gnulib file.
28492
28493 2005-08-31  Bruno Haible  <bruno@clisp.org>
28494
28495         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28496         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28497         projects that don't keep autogenerated files in CVS. Put into
28498         actioncmd only the specified modules, not the transitive closure.
28499
28500 2005-08-31  Bruno Haible  <bruno@clisp.org>
28501
28502         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28503         Create directories that shall be filled.
28504         (import): Don't look for gl_* macros in configure.ac. Recurse across
28505         all directories containing a gnulib-cache.m4 files, if meaningful.
28506
28507 2005-08-31  Bruno Haible  <bruno@clisp.org>
28508
28509         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28510         (import): Set seen_libtool when we see gl_LIBTOOL.
28511
28512 2005-08-31  Bruno Haible  <bruno@clisp.org>
28513
28514         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28515         declaration macro definitions from generated gnulib.m4.
28516
28517 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28518
28519         * lib/iconvme.h: Add prototype for iconv_alloc.
28520
28521 2005-08-29  Simon Josefsson  <jas@extundo.com>
28522
28523         * lib/iconvme.c: Fix errno.
28524
28525 2005-08-29  Bruno Haible  <bruno@clisp.org>
28526
28527         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28528         that it works when the directory contains spaces.
28529
28530 2005-08-29  Bruno Haible  <bruno@clisp.org>
28531
28532         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28533
28534 2005-08-29  Bruno Haible  <bruno@clisp.org>
28535
28536         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28537         Emit more advice.
28538
28539 2005-08-29  Bruno Haible  <bruno@clisp.org>
28540         and Stepan Kasal  <kasal@ucw.cz>
28541
28542         * check-module: If more parameters are given, check each of them
28543         separately; add more exceptions, as noted by Jim Meyering.
28544         (check_module): New procedure.
28545         (%exempt_header): Now contains all exceptions.
28546
28547 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28548
28549         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28550
28551 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28552
28553         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28554
28555 2005-08-28  Bruno Haible  <bruno@clisp.org>
28556
28557         * m4/gnulib-tool.m4: New file.
28558
28559 2005-08-27  Jim Meyering  <jim@meyering.net>
28560
28561         * modules/unistd-safer (Files): Add pipe-safer.c.
28562         * modules/fcntl-safer (Files): Add creat-safer.c.
28563
28564 2005-08-27  Jim Meyering  <jim@meyering.net>
28565
28566         * m4/stdlib-safer.m4: New file.  From coreutils.
28567         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28569         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28570         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28571         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28572
28573 2005-08-27  Jim Meyering  <jim@meyering.net>
28574
28575         * lib/fopen-safer.c: Merge minor changes from coreutils.
28576         * lib/dup-safer.c: Likewise.
28577         * lib/fd-safer.c: Likewise.
28578
28579         Merge from coreutils.
28580         * lib/stdio--.h: New file.
28581         * lib/stdlib--.h: New file.
28582         * lib/mkstemp-safer.c: New file.
28583
28584         GNU tar needs these.
28585         * lib/pipe-safer.c: New file.
28586         * lib/creat-safer.c: New file.
28587         * lib/fcntl--.h (creat): Define to creat_safer.
28588         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28589         * lib/unistd--.h (pipe): Define to pipe_safer.
28590         * lib/unistd-safer.h: Declare pipe_safer.
28591
28592 2005-08-26  Simon Josefsson  <jas@extundo.com>
28593
28594         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28595         Haible <bruno@clisp.org>.
28596
28597 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28598
28599         * lib/regex_internal.h: Remove all references to
28600         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28601         or better.
28602         (bitset_not, bitset_merge, bitset_not_merge):
28603         (bitset_mask, re_string_allocate, re_string_construct):
28604         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28605         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28606         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28607         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28608         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28609         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28610         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28611         (re_acquire_state_context):
28612         Remove unnecessary forward decls.
28613         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28614         Put __attribute at function definition,
28615         now that the function decl has been removed.
28616         * lib/regex_internal.c (re_string_peek_byte_case):
28617         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28618         Likewise.
28619
28620 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28621
28622         * m4/regex.m4: Add AC_PREREQ(2.50).
28623         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28624
28625 2005-08-25  Simon Josefsson  <jas@extundo.com>
28626
28627         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28628         __fsetlocking.
28629
28630 2005-08-25  Simon Josefsson  <jas@extundo.com>
28631
28632         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28633         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28634         GLIBC specific code.
28635
28636 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28637
28638         Make regex safe for g++.  This fixes one real bug (an "err"
28639         that should have been "*err").  g++ problem reported by
28640         Sam Steingold.
28641         * lib/regex_internal.h (re_calloc): New macro, consistent with
28642         re_malloc etc.  All callers of calloc changed to use re_calloc.
28643         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28644         not int.  All callers changed.
28645         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28646         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28647         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28648         (find_recover_state): Change "err" to "*err"; this fixes what
28649         appears to be a real bug.
28650         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28651         versus int.
28652
28653 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28654
28655         * modules/regex (Depends-on): Add malloc, since the code
28656         assumes that !malloc(0) means failure.
28657
28658 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28659
28660         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28661
28662         alloca modernization/simplification for regex.
28663         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28664         needs to be at the start of the file, and can be moved into
28665         regex_internal.h and simplified.
28666         * lib/regex_internal.h: Include <alloca.h>.
28667         (__libc_use_alloca) [!defined _LIBC]: New macro.
28668         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28669         now works outside glibc.
28670
28671 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28672
28673         * config/srclist.txt: Add glibc bugs 1241, 1245.
28674
28675 2005-08-25  Jim Meyering  <jim@meyering.net>
28676
28677         * lib/open-safer.c: Include <config.h>.
28678         Otherwise, we'd lose LARGEFILE support in any file using
28679         e.g. "fcntl--.h"
28680
28681 2005-08-25  Bruno Haible  <bruno@clisp.org>
28682
28683         * m4/minmax.m4: Require autoconf 2.52.
28684         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28685         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28686         alternatives of translit over the alphabet.
28687         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28688
28689 2005-08-24  Simon Josefsson  <jas@extundo.com>
28690
28691         * tests/test-getpass.c: New file.
28692
28693 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28694
28695         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28696         for GNU regex features.
28697
28698 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28699
28700         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28701         * lib/regex.h (regerror): Likewise.
28702
28703         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28704         requires this.  (The code never needed it.)
28705
28706         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28707         All uses of recently-renamed identifiers changed to use the new,
28708         POSIX-compliant names.  The code will build and run just fine
28709         without these changes, but it's better to eat our own dog food
28710         and use the standard-conforming names.
28711
28712         * lib/regex.h: Fix a multitude of POSIX name space violations.
28713         These changes have an effect only for programs that define
28714         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28715         do not change anything for programs compiled in the normal way.
28716         Also, there is no effect on the ABI.
28717
28718         (_REGEX_SOURCE): New macro.
28719         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28720         defined and _GNU_SOURCE is not; this fixes a name space violation.
28721
28722         Rename the following macros to obey POSIX requirements.
28723         The old names are still visible as macros if _REGEX_SOURCE is defined.
28724         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28725         RE_BACKSLASH_ESCAPE_IN_LISTS.
28726         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28727         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28728         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28729         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28730         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28731         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28732         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28733         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28734         (REG_INTERVALS): renamed from RE_INTERVALS.
28735         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28736         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28737         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28738         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28739         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28740         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28741         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28742         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28743         RE_UNMATCHED_RIGHT_PAREN_ORD.
28744         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28745         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28746         (REG_DEBUG): renamed from RE_DEBUG.
28747         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28748         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28749         unusual, since we can't clash with the POSIX REG_ICASE.
28750         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28751         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28752         (REG_NO_SUB): renamed from RE_NO_SUB.
28753         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28754         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28755         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28756         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28757         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28758         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28759         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28760         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28761         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28762         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28763         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28764         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28765         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28766         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28767         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28768         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28769         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28770         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28771         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28772         (REG_FIXED): Renamed from REGS_FIXED.
28773         (REG_NREGS): Renamed from RE_NREGS.
28774
28775         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28776         of other REG_* macros, since POSIX says the user is allowed to
28777         #undef these macros selectively.
28778
28779         (reg_errcode_t): Update comment stating what other tables need
28780         to be consistent.
28781
28782         Rename the following enum values to obey POSIX requirements.
28783         The old names are still visible as macros.
28784         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28785         is not defined, since GNU is supposed to be a superset of POSIX as
28786         much as possible, and since we want reg_errcode_t to be a signed
28787         type for implementation consistency.
28788         (_REG_NOERROR): Renamed from REG_NOERROR.
28789         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28790         (_REG_BADPAT): Renamed from REG_BADPAT.
28791         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28792         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28793         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28794         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28795         (_REG_EBRACK): Renamed from REG_EBRACK.
28796         (_REG_EPAREN): Renamed from REG_EPAREN.
28797         (_REG_EBRACE): Renamed from REG_EBRACE.
28798         (_REG_BADBR): Renamed from REG_BADBR.
28799         (_REG_ERANGE): Renamed from REG_ERANGE.
28800         (_REG_ESPACE): Renamed from REG_ESPACE.
28801         (_REG_BADRPT): Renamed from REG_BADRPT.
28802         (_REG_EEND): Renamed from REG_EEND.
28803         (_REG_ESIZE): Renamed from REG_ESIZE.
28804         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28805         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28806         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28807         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28808         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28809
28810         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28811         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28812         changed.  But support the old name if the new one is not defined
28813         and if _REGEX_SOURCE.
28814
28815         Change the following member names in struct re_pattern_buffer.
28816         The old names are still supported if !_REGEX_SOURCE.
28817         The new names are always supported, regardless of _REGEX_SOURCE.
28818         (re_buffer): Renamed from buffer.
28819         (re_allocated): Renamed from allocated.
28820         (re_used): Renamed from used.
28821         (re_syntax): Renamed from syntax.
28822         (re_fastmap): Renamed from fastmap.
28823         (re_translate): Renamed from translate.
28824         (re_can_be_null): Renamed from can_be_null.
28825         (re_regs_allocated): Renamed from regs_allocated.
28826         (re_fastmap_accurate): Renamed from fastmap_accurate.
28827         (re_no_sub): Renamed from no_sub.
28828         (re_not_bol): Renamed from not_bol.
28829         (re_not_eol): Renamed from not_eol.
28830         (re_newline_anchor): Renamed from newline_anchor.
28831
28832         Change the following member names in struct re_registers.
28833         The old names are still supported if !_REGEX_SOURCE.
28834         The new names are always supported, regardless of _REGEX_SOURCE.
28835         (rm_num_regs): Renamed from num_regs.
28836         (rm_start): Renamed from start.
28837         (rm_end): Renamed from end.
28838
28839         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28840         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28841         Prepend __ to parameter names.
28842
28843         Undo yesterday's changes.
28844
28845 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28846
28847         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28848         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
28849         lib/regex.c.
28850
28851 2005-08-24  Jim Meyering  <jim@meyering.net>
28852
28853         Sync from coreutils.
28854         * m4/fcntl-safer.m4: New file.
28855
28856         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28857         and object files for this module.
28858
28859 2005-08-24  Jim Meyering  <jim@meyering.net>
28860
28861         Sync from coreutils.
28862         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28863
28864 2005-08-24  Jim Meyering  <jim@meyering.net>
28865
28866         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28867         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28868
28869 2005-08-24  Jim Meyering  <jim@meyering.net>
28870
28871         * modules/fcntl-safer: New module.
28872         * modules/fts (Depends-on): Add fcntl-safer.
28873         * MODULES.html.sh (File descriptor based Input/Output):
28874         Add fcntl-safer.
28875
28876 2005-08-24  Bruno Haible  <bruno@clisp.org>
28877
28878         Support for unit test modules.
28879         * modules/README: Mention tests modules.
28880         * modules/TEMPLATE-TESTS: New file.
28881         * gnulib-tool: New options --extract-tests-module, --with-tests and
28882         --tests-base (unused for the moment).
28883         (testsbase, inctests): New variables.
28884         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28885         (func_verify_module): Exclude TEMPLATE-TESTS.
28886         (func_verify_nontests_module, func_verify_tests_module): New functions.
28887         (func_get_dependencies): Add implicit dependency for tests modules.
28888         (func_get_tests_module): New function.
28889         (func_modules_transitive_closure): When --with-tests was specified,
28890         include the unit tests as well, unless explicitly avoided.
28891         (func_emit_lib_Makefile_am): Ignore the tests modules here.
28892         (func_emit_tests_Makefile_am): New function.
28893         (func_create_testdir): When --with-tests was specified, emit a
28894         tests/ directory.
28895         * MODULES.html.sh (Future developments): Update.
28896
28897 2005-08-24  Bruno Haible  <bruno@clisp.org>
28898
28899         * modules/tls-tests: New file.
28900         * tests/test-tls.c: New file, from GNU gettext.
28901
28902 2005-08-24  Bruno Haible  <bruno@clisp.org>
28903
28904         * modules/lock-tests: New file.
28905         * tests/test-lock.c: New file, from GNU gettext.
28906
28907 2005-08-24  Bruno Haible  <bruno@clisp.org>
28908
28909         * lib/lock.h: Add multiple inclusion guard.
28910         * lib/tls.h: Add multiple inclusion guard.
28911
28912 2005-08-24  Bruno Haible  <bruno@clisp.org>
28913
28914         * gnulib-tool: Add support for the --aux-dir option to
28915         --create-testdir, --create-megatestdir, --test, --megatest.
28916         (func_create_testdir, func_create_megatestdir): Optionally emit a
28917         AC_CONFIG_AUX_DIR directive.
28918         (create-testdir, create-megatestdir, test, megatest): Provide a
28919         default value for $auxdir.
28920
28921 2005-08-24  Bruno Haible  <bruno@clisp.org>
28922
28923         * gnulib-tool (import): Use compound statement instead of subshell
28924         where possible.
28925
28926 2005-08-24  Bruno Haible  <bruno@clisp.org>
28927
28928         * gnulib-tool (import): Change --aux-dir default to "build-aux".
28929
28930 2005-08-24  Bruno Haible  <bruno@clisp.org>
28931
28932         * gnulib-tool (func_version): Update.
28933
28934 2005-08-24  Bruno Haible  <bruno@clisp.org>
28935
28936         * gnulib-tool (func_import, func_create_testdir,
28937         func_create_megatestdir): Quote all autoconf macro arguments.
28938
28939 2005-08-24  Bruno Haible  <bruno@clisp.org>
28940
28941         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28942         option --force, because --force causes the aclocal.m4 of each
28943         subdirectory to be newer than the corresponding config.h.in.
28944
28945 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28948         All contents moved to gl_REGEX.
28949         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28950         assume that it does.
28951
28952 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28953
28954         * lib/regex.h (REG_NOSYS)
28955         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28956         Define, since POSIX requires it as of 2001.
28957         (_REG_ENOSYS)
28958         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28959         New private symbol, used to keep the enum signed in all cases.
28960         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28961         Youngman in
28962         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28963
28964         * lib/regex_internal.c (re_string_skip_chars, register_state):
28965         (calc_state_hash):
28966         Remove forward decls; no longer needed now that we use prototypes.
28967         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28968         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28969         (clean_state_log_if_needed): Likewise.
28970
28971 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28972
28973         * config/srclist.txt: Add glibc bugs 1231-1233.
28974
28975 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28976
28977         Fix problems reported by Sam Steingold in
28978         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28979         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28980         assumed that reg_errcode_t is a signed type, which is not
28981         necessarily true if _XOPEN_SOURCE is not defined.
28982         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28983         since some compilers warn about it otherwise.
28984
28985 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28988         (init_word_char, create_initial_state, duplicate_node_closure):
28989         (fetch_token, peek_token_bracket, build_range_exp):
28990         (build_collating_symbol): Remove forward decls; no longer needed
28991         now that we use prototypes.
28992
28993         * lib/regcomp.c:
28994         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28995         (re_compile_fastmap_iter, regcomp, regerror, regfree):
28996         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28997         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28998         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28999         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29000         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29001         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29002         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29003         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29004         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29005         (build_charclass, build_charclass_op, fetch_number, create_tree):
29006         (create_token_tree, mark_opt_subexp, duplicate_tree):
29007         Use prototypes rather than old-style definitions.
29008
29009         * lib/regex_internal.c:
29010         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29011         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29012         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29013         (re_string_reconstruct, re_string_peek_byte_case):
29014         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29015         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29016         (re_node_set_init_copy, re_node_set_add_intersect):
29017         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29018         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29019         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29020         (re_acquire_state, re_acquire_state_context, register_state):
29021         (create_ci_newstate, create_cd_newstate, free_state):
29022         Likewise.
29023         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29024         re_search_2):
29025         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29026         (re_search_internal, prune_impossible_nodes):
29027         (acquire_init_state_context, check_matching, static):
29028         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29029         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29030         (update_regs, sift_states_backward, build_sifted_states):
29031         (clean_state_log_if_needed, merge_state_array):
29032         (update_cur_sifted_state, add_epsilon_src_nodes):
29033         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29034         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29035         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29036         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29037         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29038         (check_arrival, check_arrival_add_next_nodes):
29039         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29040         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29041         (check_node_accept_bytes, check_node_accept, extend_buffers):
29042         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29043         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29044         (sift_ctx_init):
29045         Likewise.
29046
29047         * lib/regex_internal.h:
29048         (re_string_allocate, re_string_construct, re_string_reconstruct):
29049         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29050         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29051         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29052         (re_string_context_at, re_string_peek_byte_case):
29053         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29054         is defined, since we now use prototypes always.
29055
29056         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29057         C89 or better.  All uses removed.
29058
29059 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         * config/srclist.txt: Add glibc bugs 1220-1227.
29062
29063 2005-08-20  Jim Meyering  <jim@meyering.net>
29064
29065         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29066         of unused local, dfa.
29067
29068 2005-08-20  Bruno Haible  <bruno@clisp.org>
29069
29070         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29071
29072 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29073
29074         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29075         (re_node_set_insert_last, re_dfa_add_node):
29076         Rename local variables to avoid GCC shadowing warnings.
29077
29078 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29079
29080         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29081         [defined lint]: Suppress bogus uninitialized-variable warnings.
29082
29083         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29084         and let the caller return REG_ESPACE if out of space.  This
29085         removes an uninitialied-variable warning with GCC 4.0.1, and also
29086         avoids taking the address of a local variable.  All callers
29087         changed.
29088
29089 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29090
29091         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29092         $LIBCSRC/posix/regexec.c.
29093         Add glibc bug 1217 for regcomp.c.
29094
29095 2005-08-19  Jim Meyering  <jim@meyering.net>
29096
29097         * lib/regexec.c (proceed_next_node): Redo local variables to
29098         avoid GCC shadowing warnings.
29099
29100 2005-08-18  Bruno Haible  <bruno@clisp.org>
29101
29102         * lib/strstr.c (strstr): Fix return value in multibyte case.
29103         * lib/strcasestr.c (strcasestr): Likewise.
29104
29105 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29106
29107         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29108
29109 2005-08-17  Jim Meyering  <jim@meyering.net>
29110
29111         Make the %s format (seconds since the epoch) work for a negative
29112         number and when used with a zero-padded field width, e.g. %015s.
29113
29114         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29115         label so that it precedes the code to set `digits'.  Otherwise,
29116         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29117         print `00-22'.  Now, it prints `-0022', as it should.
29118
29119 2005-08-17  Bruno Haible  <bruno@clisp.org>
29120
29121         * modules/strstr (Files): Add m4/mbrtowc.m4.
29122         (Depends-on): Add mbuiter.
29123
29124 2005-08-17  Bruno Haible  <bruno@clisp.org>
29125
29126         * modules/strcasestr: New file.
29127         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29128         strcasestr.
29129
29130 2005-08-17  Bruno Haible  <bruno@clisp.org>
29131
29132         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29133
29134 2005-08-17  Bruno Haible  <bruno@clisp.org>
29135
29136         * modules/mbuiter: New file.
29137         * MODULES.html.sh (Extended multibyte and wide character utilities):
29138         Add mbuiter.
29139
29140 2005-08-17  Bruno Haible  <bruno@clisp.org>
29141
29142         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29143         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29144
29145 2005-08-17  Bruno Haible  <bruno@clisp.org>
29146
29147         * m4/strcasestr.m4: New file.
29148
29149 2005-08-17  Bruno Haible  <bruno@clisp.org>
29150
29151         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29152         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29153
29154 2005-08-17  Bruno Haible  <bruno@clisp.org>
29155
29156         * lib/strcasestr.h: New file.
29157         * lib/strcasestr.c: New file.
29158
29159 2005-08-17  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/strcasecmp.c: Use mbuiter.h.
29162
29163 2005-08-17  Bruno Haible  <bruno@clisp.org>
29164
29165         * lib/mbuiter.h: New file.
29166
29167 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29168
29169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29170         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29171         and gl_GETOPT are both invoked via different paths (as happens
29172         with GNU tar CVS because it uses both argp and getopt), the former
29173         wins.
29174
29175 2005-08-16  Bruno Haible  <bruno@clisp.org>
29176
29177         * modules/tls: New file.
29178         * MODULES.html.sh (Multithreading): Add tls.
29179
29180 2005-08-16  Bruno Haible  <bruno@clisp.org>
29181
29182         * modules/strnlen1: New file.
29183         * MODULES.html.sh (String handling): Add strnlen1.
29184
29185 2005-08-16  Bruno Haible  <bruno@clisp.org>
29186
29187         * modules/strcase (Files): Add m4/mbrtowc.m4.
29188         (Depends-on): Add strnlen1, mbchar.
29189
29190 2005-08-16  Bruno Haible  <bruno@clisp.org>
29191
29192         * modules/mbiter: New file.
29193         * MODULES.html.sh (Extended multibyte and wide character utilities):
29194         Add mbiter.
29195
29196 2005-08-16  Bruno Haible  <bruno@clisp.org>
29197
29198         * modules/mbfile: New file.
29199         * MODULES.html.sh (Extended multibyte and wide character utilities):
29200         Add mbfile.
29201
29202 2005-08-16  Bruno Haible  <bruno@clisp.org>
29203
29204         * modules/mbchar: New file.
29205         * MODULES.html.sh (Extended multibyte and wide character utilities):
29206         New section.
29207
29208 2005-08-16  Bruno Haible  <bruno@clisp.org>
29209
29210         * m4/tls.m4: New file, from GNU gettext.
29211
29212 2005-08-16  Bruno Haible  <bruno@clisp.org>
29213
29214         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29215         always.
29216         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29217
29218 2005-08-16  Bruno Haible  <bruno@clisp.org>
29219
29220         * m4/mbiter.m4: New file.
29221
29222 2005-08-16  Bruno Haible  <bruno@clisp.org>
29223
29224         * m4/mbfile.m4: New file.
29225
29226 2005-08-16  Bruno Haible  <bruno@clisp.org>
29227
29228         * m4/mbchar.m4: New file.
29229
29230 2005-08-16  Bruno Haible  <bruno@clisp.org>
29231
29232         * lib/tls.h: New file, from GNU gettext.
29233         * lib/tls.c: New file, from GNU gettext.
29234
29235 2005-08-16  Bruno Haible  <bruno@clisp.org>
29236
29237         * lib/strnlen1.h: New file.
29238         * lib/strnlen1.c: New file.
29239
29240 2005-08-16  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29243         (mbi_init): Update.
29244         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29245         NUL byte, not after it.
29246
29247 2005-08-16  Bruno Haible  <bruno@clisp.org>
29248
29249         * lib/strcase.h (strcasecmp): Add note in comments.
29250         * lib/strncasecmp.c: Use code from strcasecmp.c.
29251         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29252         (strcasecmp): Work correctly in multibyte locales.
29253
29254 2005-08-16  Bruno Haible  <bruno@clisp.org>
29255
29256         * lib/mbiter.h: New file.
29257
29258 2005-08-16  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/mbfile.h: New file.
29261
29262 2005-08-16  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/mbchar.h: New file.
29265         * lib/mbchar.c: New file.
29266
29267 2005-08-16  Bruno Haible  <bruno@clisp.org>
29268
29269         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29270         the valid ones. Makes the comparison operations transitive:
29271         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29272         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29273
29274 2005-08-15  Simon Josefsson  <jas@extundo.com>
29275
29276         * modules/ssize_t (License): Change to 'unlimited'.
29277
29278         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29279
29280 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29281
29282         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29283         Add comments for each pending glibc patch.
29284
29285 2005-08-15  Bruno Haible  <bruno@clisp.org>
29286
29287         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29288         __cplusplus is defined.
29289
29290 2005-08-14  Jim Meyering  <jim@meyering.net>
29291
29292         Sync from coreutils.
29293
29294         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29295         Use the hash-table-based cycle-detection code not just when
29296         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29297         Reported by James Youngman in
29298         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29299         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29300         FTS_TIGHT_CYCLE_CHECK.
29301         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29302         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29303         once again.
29304         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29305         * lib/fts.c (fd_safer): Remove decl.
29306         Include fcntl--.h rather than unistd-safer.h
29307         (fts_safe_changedir): Don't call fd_safer; no longer needed
29308         now that we include fcntl--.h.
29309
29310 2005-08-12  Simon Josefsson  <jas@extundo.com>
29311
29312         * modules/getndelim2: Use ssize_t module.
29313         * modules/getnline: Likewise.
29314         * modules/safe-read: Likewise.
29315         * modules/xreadlink: Likewise.
29316
29317         * modules/ssize_t: New file.
29318
29319 2005-08-12  Simon Josefsson  <jas@extundo.com>
29320
29321         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29322
29323 2005-08-12  Simon Josefsson  <jas@extundo.com>
29324
29325         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29326         ssize_t.
29327
29328 2005-08-12  Simon Josefsson  <jas@extundo.com>
29329
29330         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29331         readline, getdelim and check_version.
29332         (Support for systems lacking ISO C 99: Sizes of integer types):
29333         Add size_max.
29334
29335 2005-08-12  Bruno Haible  <bruno@clisp.org>
29336
29337         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29338
29339 2005-08-11  Simon Josefsson  <jas@extundo.com>
29340
29341         * modules/readline: New file.
29342
29343         * modules/strnlen (Files): Add strnlen.h.
29344
29345 2005-08-11  Simon Josefsson  <jas@extundo.com>
29346
29347         * m4/readline.m4: New file.
29348
29349 2005-08-11  Simon Josefsson  <jas@extundo.com>
29350
29351         * lib/readline.h, readline.c: New file.
29352
29353 2005-08-11  Simon Josefsson  <jas@extundo.com>
29354
29355         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29356         gl_AVOID.
29357
29358 2005-08-11  Bruno Haible  <bruno@clisp.org>
29359
29360         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29361
29362 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29363
29364         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29365
29366 2005-08-10  Simon Josefsson  <jas@extundo.com>
29367
29368         * tests/test-iconvme.c: New file.
29369
29370 2005-08-10  Simon Josefsson  <jas@extundo.com>
29371
29372         * m4/strnlen.m4: New file.
29373
29374         * m4/strndup.m4: Don't check for strnlen declaration, done in
29375         strnlen.m4.
29376
29377 2005-08-10  Simon Josefsson  <jas@extundo.com>
29378
29379         * lib/strndup.c: Use strnlen.h.
29380
29381         * lib/strnlen.h: New file.
29382
29383 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29384
29385         * README: Typos.
29386
29387 2005-08-02  Simon Josefsson  <jas@extundo.com>
29388
29389         * modules/readline: New file.
29390
29391 2005-08-02  Simon Josefsson  <jas@extundo.com>
29392
29393         * modules/getdelim: New file.
29394
29395         * modules/getline: Rewrite, don't use getndelim2.
29396
29397 2005-08-02  Simon Josefsson  <jas@extundo.com>
29398
29399         * m4/getline.m4: Separate out getdelim stuff into separate module.
29400
29401         * m4/getdelim.m4: New file.
29402
29403 2005-08-02  Simon Josefsson  <jas@extundo.com>
29404
29405         * lib/getline.h, getline.c: Rewrite.
29406
29407         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29408
29409 2005-07-31  Bruno Haible  <bruno@clisp.org>
29410
29411         * lib/lock.h (gl_lock_initializer): New macro.
29412         (gl_lock_define_initialized): Use it.
29413         (gl_rwlock_initializer): New macro.
29414         (gl_rwlock_define_initialized): Use it.
29415         (gl_recursive_lock_initializer): New macro.
29416         (gl_recursive_lock_define_initialized): Use it.
29417
29418 2005-07-30  Karl Berry  <karl@gnu.org>
29419
29420         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29421         Report from Ben Pfaff, regarding getopt.
29422
29423 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29424
29425         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29426         normal way.
29427         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29428         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29429         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29430         (gl_GETOPT): Use the new macros.  Most of the implementation
29431         is moved to the new macros.  This is for programs like Emacs
29432         that don't want all the functionality of gl_GETOPT.
29433
29434 2005-07-26  Bruno Haible  <bruno@clisp.org>
29435
29436         * m4/lock.m4: Update from GNU gettext.
29437
29438 2005-07-26  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/lock.h: Update from GNU gettext.
29441         * lib/lock.c: Update from GNU gettext.
29442
29443 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29446         obsolescent AC_TRY_RUN.  Include the default includes files, for
29447         'exit'.
29448
29449 2005-07-24  Bruno Haible  <bruno@clisp.org>
29450
29451         * modules/visibility: New file.
29452         * MODULES.html.sh (Misc): Add visibility.
29453
29454 2005-07-24  Bruno Haible  <bruno@clisp.org>
29455
29456         * m4/visibility.m4: New file.
29457
29458 2005-07-24  Bruno Haible  <bruno@clisp.org>
29459
29460         * doc/visibility.texi: New file.
29461
29462 2005-07-22  Bruno Haible  <bruno@clisp.org>
29463
29464         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29465         $(ALLOCA_H), redundant through BUILT_SOURCES.
29466         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29467         redundant through BUILT_SOURCES.
29468         * modules/byteswap (Makefile.am): Remove explicit dependency on
29469         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29470         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29471         $(FNMATCH_H), redundant through BUILT_SOURCES.
29472         * modules/getopt (Makefile.am): Remove explicit dependency on
29473         $(GETOPT_H), redundant through BUILT_SOURCES.
29474         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29475         redundant through BUILT_SOURCES.
29476         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29477         redundant through BUILT_SOURCES.
29478         * modules/stdbool (Makefile.am): Remove explicit dependency on
29479         $(STDBOOL_H), redundant through BUILT_SOURCES.
29480         * modules/stdint (Makefile.am): Remove explicit dependency on
29481         $(STDINT_H), redundant through BUILT_SOURCES.
29482         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29483         Remove explicit dependency on $(SYSEXITS_H).
29484         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29485
29486 2005-07-18  Simon Josefsson  <jas@extundo.com>
29487
29488         * lib/check-version.c (check_version): Accept identical versions too.
29489
29490 2005-07-18  Bruno Haible  <bruno@clisp.org>
29491
29492         * modules/lock: New file.
29493         * MODULES.html.sh (Multithreading): New section.
29494
29495 2005-07-18  Bruno Haible  <bruno@clisp.org>
29496
29497         * m4/lock.m4: New file, from GNU gettext.
29498
29499 2005-07-18  Bruno Haible  <bruno@clisp.org>
29500
29501         * lib/lock.h: New file, from GNU gettext.
29502         * lib/lock.c: New file, from GNU gettext.
29503
29504 2005-07-18  Bruno Haible  <bruno@clisp.org>
29505
29506         * lib/lock.h (gl_once_t): New type.
29507         (gl_once_define, gl_once): New macros.
29508         * lib/lock.c (fresh_once): New variable.
29509         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29510         functions.
29511
29512 2005-07-16  Simon Josefsson  <jas@extundo.com>
29513
29514         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29515         workaround, suggested by Bruno.
29516
29517 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29518
29519         * modules/xalloc (Depends-on): Add xalloc-die.
29520         * modules/xvasprintf (Depends-on): Add xalloc-die.
29521
29522 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29523
29524         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29525         with a minor change.
29526
29527 2005-07-15  Bruno Haible  <bruno@clisp.org>
29528
29529         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29530         When using lib/poll.c, define poll as rpl_poll.
29531
29532 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29533
29534         * modules/argp (Depends-on): Remove unlocked-io.
29535
29536 2005-07-14  Derek Price  <derek@ximbiot.com>
29537
29538         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29539         for glob symlink bug.
29540
29541 2005-07-14  Bruno Haible  <bruno@clisp.org>
29542
29543         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29544         Instead, test for *_unlocked function declarations directly.
29545
29546 2005-07-11  Simon Josefsson  <jas@extundo.com>
29547
29548         * modules/size_max: New file.
29549
29550         * modules/xsize: Depend on size_max module for size_max.m4.
29551
29552 2005-07-11  Simon Josefsson  <jas@extundo.com>
29553
29554         * lib/size_max.h: New file.
29555
29556 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29557
29558         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29559         copyright symbol and the year.
29560         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29561         (version_etc_va): Use parameterized copyright notice.
29562         Reword to conform to the current GNU coding standards.
29563
29564 2005-07-11  Karl Berry  <karl@gnu.org>
29565
29566         * doc/gnulib.texi (Quoting): new node.
29567         (Initial import): more info, from Patrice.
29568
29569 2005-07-11  Bruno Haible  <bruno@clisp.org>
29570
29571         * gnulib-tool (func_usage): Document option --avoid.
29572         (Command line options): Handle --avoid.
29573         (func_acceptable): New function.
29574         (func_modules_transitive_closure): Use it.
29575
29576 2005-07-11  Bruno Haible  <bruno@clisp.org>
29577
29578         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29579         Reported by Jim Meyering.
29580
29581 2005-07-10  Bruno Haible  <bruno@clisp.org>
29582
29583         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29584         Needed when size_t is smaller than 'unsigned int'.
29585         Reported by Paul Eggert.
29586
29587 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29588
29589         * modules/argp (Depends-on): Add unlocked-io
29590
29591 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29592
29593         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29594         block of defines.
29595
29596 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29597
29598         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29599         fix now.
29600
29601 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29602         and Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29605         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29606
29607 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29608
29609         * modules/regex (Files): Add lib/regex_internal.c,
29610         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29611         (Depends-on): Add extensions.
29612         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29613
29614 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29615
29616         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29617         pathconf.
29618         * m4/same.m4 (gl_SAME): Likewise.
29619         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29620
29621         * m4/regex.m4: Adjust to new libc regex implementation.
29622         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29623         all the .c and .h parts of (the new) regex.
29624         Quote the m4 stuff better.
29625         Check for RE_ICASE bug of old gnulib.
29626         Check for REG_STARTEND of recent libc.
29627         Rename local variables from jm_* to gl_*.
29628         Quote operand of "test -f".
29629         Say "recent enough" version of libc, not "version 2".
29630         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29631         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29632         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29633         Remove check for btowc, isascii.
29634         Require AM_LANGINFO_CODESET.
29635
29636 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29637
29638         * lib/regex.c, regex.h: Sync from libc.
29639         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29640         * lib/regexec.c:
29641         New files, synced from libc, except that regex_internal.h
29642         currently has a small porting fix.
29643
29644 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29645
29646         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29647         regex_internal.c, regexec.c.
29648         Add regex_internal.h too, but as a comment, since the libc version
29649         is currently broken in gnulib mode.
29650
29651 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29652
29653         Support programs like Emacs that use gnulib but not gettext.
29654         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29655         * modules/gettext-h: New file.
29656         * modules/gettext (Files): Remove lib/gettext.h.
29657         (Depends-on): Add gettext-h.
29658         (Makefile.am): Remove lib_SOURCES.
29659         * modules/argmatch, modules/c-stack, modules/closeout:
29660         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29661         * modules/execute, modules/file-type, modules/getaddrinfo:
29662         * modules/getopt, modules/human, modules/javacomp:
29663         * modules/javaexec, modules/mkdir-p, modules/obstack:
29664         * modules/openat, modules/pagealign_alloc, modules/pipe:
29665         * modules/quotearg, modules/regex, modules/rpmatch:
29666         * modules/unicodeio, modules/userspec, modules/version-etc:
29667         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29668         * modules/xsetenv:
29669         Depend on gettext-h, not gettext.
29670
29671 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29672
29673         * gnulib-tool (func_import): Add support for 'public domain' license.
29674         * modules/alloca, modules/atexit, modules/memmove:
29675         Now public domain, not GPL.
29676         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29677         * modules/realloc, modules/strerror, modules/strtod:
29678         Now LGPL, not GPL.
29679
29680 2005-07-05  Bruno Haible  <bruno@clisp.org>
29681
29682         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29683         autoconf CVS. Needed for mingw.
29684
29685 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         Remove the dependency of the strftime module on the tzset module.
29688         * modules/strftime (Depends-on): Remove dependency on tzset.
29689
29690 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29691
29692         Remove the dependency of the strftime module on the tzset module.
29693         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29694         gl_FUNC_TZSET_CLOBBER.
29695
29696 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29697
29698         Remove the dependency of the strftime module on the tzset module.
29699         * lib/strftime.c (my_strftime)
29700         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29701         Copy the input structure, to work around some of the bug with
29702         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29703         Solaris releases, you should also use the tzset module, but we won't
29704         require it as a dependency any more since we don't want LGPLed code
29705         to depend on GPLed code.
29706
29707 2005-07-02  Jim Meyering  <jim@meyering.net>
29708
29709         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29710         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29711         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29712         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29713
29714 2005-07-02  Jim Meyering  <jim@meyering.net>
29715
29716         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29717
29718 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29719
29720         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29721         declares only 'struct timespec;' (!).
29722
29723 2005-07-01  Jim Meyering  <jim@meyering.net>
29724
29725         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29726         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29727         * lib/save-cwd.c, tempname.c:
29728         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29729         and don't include <sys/file.h>).
29730
29731 2005-06-29  Jim Meyering  <jim@meyering.net>
29732
29733         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29734         type name.  Use the variable name instead.
29735         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29736         Likewise.
29737
29738 2005-06-28  Simon Josefsson  <jas@extundo.com>
29739
29740         * modules/check-version (Files): Add check-version.m4.
29741
29742 2005-06-28  Simon Josefsson  <jas@extundo.com>
29743
29744         * m4/check-version.m4: New file, suggested by Jim Meyering
29745         <jim@meyering.net>.
29746
29747 2005-06-28  Simon Josefsson  <jas@extundo.com>
29748
29749         * lib/check-version.h, lib/check-version.c: New files.
29750
29751 2005-06-28  Simon Josefsson  <jas@extundo.com>
29752
29753         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29754         collision with global variable.  Better indentation.  Don't
29755         increment buffer pointer beyond buffer end.  Based on comments
29756         from Paul Eggert <eggert@cs.ucla.edu>.
29757
29758         * lib/base64.h: Indent.
29759
29760 2005-06-28  Simon Josefsson  <jas@extundo.com>
29761
29762         * doc/gnulib.texi (Library version handling): New section.
29763
29764 2005-06-28  Jim Meyering  <jim@meyering.net>
29765
29766         * check-module (find_included_lib_files): Hard-code another
29767         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29768         but modules/fts-lgpl (correctly) does not list those files.
29769
29770         * modules/canonicalize (Files): Add lib/pathmax.h.
29771
29772 2005-06-25  Simon Josefsson  <jas@extundo.com>
29773
29774         * modules/check-version: New file.
29775
29776 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29777
29778         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29779         initializer of struct addrinfo, as an indication that we don't
29780         care how many members the structure has.
29781
29782 2005-06-24  Derek Price  <derek@ximbiot.com>
29783         and Bruno Haible  <bruno@clisp.org>
29784
29785         Remove stat module & update lstat.
29786         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29787         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29788         * m4/stat.m4: Remove this file.
29789
29790 2005-06-24  Derek Price  <derek@ximbiot.com>
29791         and Bruno Haible  <bruno@clisp.org>
29792
29793         Remove stat module & update lstat.
29794         * lib/stat.c: Remove this file...
29795         (slash_aware_lstat): ...moving this content and its support...
29796         * lib/lstat.c (rpl_lstat): ...into here.
29797         * lib/lstat.h: New file.
29798
29799 2005-06-24  Derek Price  <derek@ximbiot.com>
29800         and Bruno Haible  <bruno@clisp.org>
29801
29802         Remove stat module & update lstat.
29803         * config/srclist.txt (libc sources): Remove stat.
29804
29805 2005-06-24  Derek Price  <derek@ximbiot.com>
29806         and Bruno Haible  <bruno@clisp.org>
29807
29808         Remove stat module & update lstat.
29809         * MODULES.html.sh (stat): Remove.
29810         * MODULES.html: Regenerated.
29811         * modules/lstat (Description): Correct function name.
29812         (Files): Add "lstat.h".
29813         (Depends-on): Remove stat, add xalloc, stat-macros.
29814         * modules/stat: Remove this file.
29815         (Include): Add "lstat.h", remove <sys/stat.h>.
29816
29817 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29820         (ranged_convert): Don't save conversion in a temporary struct.
29821         This causes a warning with GCC 4.0.0, and anyway in the typical
29822         case it's not worth the extra 100 bytes or so of code.
29823         (ranged_convert, __mktime_internal): When calling a function via a
29824         pointer P, use P () rather than (*P) (), as we now assume C89 or
29825         better.
29826
29827 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29828
29829         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29830         "who -r" failed to give output.  Problem reported by Tim Waugh.
29831
29832         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29833         (xcalloc): Use it to avoid needless tests.
29834         Problem reported by Jim Meyering.
29835
29836 2005-06-20  Derek Price  <derek@ximbiot.com>
29837
29838         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29839         unnecessary for Autoconfs > 2.59c.
29840
29841 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29842
29843         * lib/argp.h (__option_is_short): Check upper limit of
29844         __key. Isprint() requires its argument to have the value
29845         of an unsigned char or EOF.
29846
29847 2005-06-16  Jim Meyering  <jim@meyering.net>
29848
29849         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29850         when either N or S is zero.
29851
29852 2005-06-16  Derek Price  <derek@ximbiot.com>
29853
29854         * m4/bison.m4: Declare YACC & YFLAGS precious.
29855
29856 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
29857
29858         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29859         multibyte string or pattern, fall back on unibyte matching.
29860         Problem reported by James Youngman.
29861
29862 2005-06-08  Bruno Haible  <bruno@clisp.org>
29863
29864         * modules/csharpcomp: New file.
29865         * MODULES.html.sh (C#): Add csharpcomp.
29866
29867 2005-06-08  Bruno Haible  <bruno@clisp.org>
29868
29869         * m4/csharpcomp.m4: New file, from GNU gettext.
29870
29871 2005-06-08  Bruno Haible  <bruno@clisp.org>
29872
29873         * lib/csharpcomp.h: New file, from GNU gettext.
29874         * lib/csharpcomp.c: New file, from GNU gettext.
29875         * lib/csharpcomp.sh.in: New file, from GNU gettext.
29876
29877 2005-06-08  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29880         warning on mingw.
29881
29882 2005-06-07  Derek Price  <derek@ximbiot.com>
29883
29884         Sync from CVS.
29885         * lib/glob_.h: Indent nested #ifdef.
29886
29887 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         Sync from coreutils.
29890         Use "file name" when talking about file names, instead of "filename"
29891         or "path", as per the GNU coding standards.
29892         * lib/mkdir-p.c: Renamed from makepath.c.
29893         (make_dir_parents): Renamed from make_path.  All callers changed.
29894         * lib/mkdir-p.h: Likewise.  All includers changed.
29895         * lib/filenamecat.c: Renamed from path-concat.c.
29896         (file_name_concat): Renamed from path_concat.  All callers changed.
29897         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29898         * lib/filenamecat.h: Likewise.  All includers changed.
29899         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29900         in comments or local variable names.
29901         * lib/basename.c: Likewise.
29902         * lib/canonicalize.c, canonicalize.h: Likewise.
29903         * lib/dirname.c, dirname.h: Likewise.
29904         * lib/euidaccess.c: Likewise.
29905         * lib/exclude.c: Likewise
29906         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29907         * lib/fsusage.c, fsuage.h: Likewise.
29908         * lib/fts.c, fts_.h: Likewise.
29909         * lib/getcwd.c: Likewise.
29910         * lib/getloadavg.c: Likewise.
29911         * lib/mkstemp.c: Likewise.
29912         * lib/mountlist.c, mountlist.h: Likewise.
29913         * lib/openat.c, openat.h: Likewise.
29914         * lib/readlink-stub.c: Likewise.
29915         * lib/readutmp.c, readutmp.h: Likewise.
29916         * lib/rename.c: Likewise.
29917         * lib/rmdir.c: Likewise.
29918         * lib/same.c: Likewise.
29919         * lib/savedir.c: Likewise.
29920         * lib/stripslash.c: Likewise.
29921         * lib/tempname.c: Likewise.
29922         * lib/xreadlink.c: Likewise.
29923         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29924         All uses changed.
29925         * lib/exclude.h: Likewise.
29926
29927         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29928         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29929         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29930         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29931         * lib/pathmax.h: Include <limits.h> unconditionally, since other
29932         files have been getting away with it for years (MORE/BSD 4.3
29933         is extinct now).
29934         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29935         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29936
29937         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29938         Define to 256, not 255, as per modern POSIX.
29939
29940 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29941
29942         Sync from coreutils.
29943         Use "file name" when talking about file names, instead of "filename"
29944         or "path", as per the GNU coding standards.
29945         * MODULES.html.sh: mkdir-p renamed from makepath.
29946         filenamecat renamed from path-concat.
29947         * modules/filenamecat: Renamed from modules/path-concat.
29948         (Files): filenamecat.h and filenamecat.c renamed from
29949         path-concat.h and path-concat.c.
29950         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29951         (Include): filenamecat.h, not path-concat.h.
29952         * modules/mkdir-p: Renamed from modules/makepath.
29953         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29954         makepath.c.
29955         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29956         (Include): mkdir-p.h, not makepath.h.
29957
29958 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29959
29960         Sync from coreutils.
29961         * m4/mkdir-p.m4: Renamed from makepath.m4.
29962         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
29963         Rename files from makepath.c to mkdir-p.c, and from
29964         makepath.h to mkdir-p.h.
29965         * m4/filenamecat.m4: Renamed from path-concat.m4.
29966         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
29967         Rename files from path-concat.c to filenamecat.c,
29968         and from path-concat.h to filenamecat.h.
29969         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29970         "file name" in local variables or comments.
29971         * m4/rename.m4: Likewise.
29972
29973 2005-06-01  Bruno Haible  <bruno@clisp.org>
29974
29975         * modules/csharpexec: New file.
29976         * MODULES.html.sh (C#): New section.
29977
29978 2005-06-01  Bruno Haible  <bruno@clisp.org>
29979
29980         * m4/csharp.m4: New file, from GNU gettext.
29981         * m4/csharpexec.m4: New file, from GNU gettext.
29982
29983 2005-06-01  Bruno Haible  <bruno@clisp.org>
29984
29985         * lib/csharpexec.h: New file, from GNU gettext.
29986         * lib/csharpexec.c: New file, from GNU gettext.
29987         * lib/csharpexec.sh.in: New file, from GNU gettext.
29988
29989 2005-05-31  Derek Price  <derek@ximbiot.com>
29990             Paul Eggert  <eggert@cs.ucla.edu>
29991
29992         Sync from cvs.
29993         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29994
29995 2005-05-31  Derek Price  <derek@ximbiot.com>
29996             Paul Eggert  <eggert@cs.ucla.edu>
29997
29998         Sync from cvs.
29999         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30000
30001 2005-05-29  Derek Price  <derek@ximbiot.com>
30002
30003         * config/srclist.txt (glob_.h, glob.c): Add these files.
30004
30005 2005-05-29  Derek Price  <derek@ximbiot.com>
30006
30007         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30008         * modules/glob: New file.
30009         * modules/getlogin_r: Add link to POSIX spec in description.
30010
30011 2005-05-29  Derek Price  <derek@ximbiot.com>
30012             Paul Eggert  <eggert@cs.ucla.edu>
30013
30014         * m4/glob.m4: New file.
30015
30016 2005-05-29  Derek Price  <derek@ximbiot.com>
30017             Paul Eggert  <eggert@cs.ucla.edu>
30018
30019         * lib/glob_.h, lib/glob.c: New files.
30020
30021 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30022
30023         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30024         * modules/fts-lgpl (Depends-on): Remove gettext.
30025
30026 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30029         and don't require gt_INTTYPES_PRI.
30030
30031 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30032
30033         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30034
30035         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30036         the configuration hassle isn't worth it.
30037         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30038         (LONGEST_MODIFIER, PRIuMAX): Remove.
30039
30040 2005-05-27  Bruno Haible  <bruno@clisp.org>
30041
30042         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30043
30044 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30045
30046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30047         _POSIX_PTHREAD_SEMANTICS for Solaris.
30048
30049 2005-05-25  Derek Price  <derek@ximbiot.com>
30050
30051         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30052
30053 2005-05-25  Derek Price  <derek@ximbiot.com>
30054             Paul Eggert  <eggert@cs.ucla.edu>
30055
30056         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30057         * lib/getlogin_r.c, getlogin_r.h: New files.
30058
30059 2005-05-25  Bruno Haible  <bruno@clisp.org>
30060             Derek Price  <derek@ximbiot.com>
30061
30062         * lib/getlogin_r.h: Simplify API documentation.
30063
30064 2005-05-23  Derek Price  <derek@ximbiot.com>
30065
30066         * modules/minmax (Files): Add m4/minmax.m4.
30067         (configure.ac): Add gl_MINMAX.
30068
30069 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30070
30071         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30072         so that unistd-safer.h (GPL'ed code) need not be included.
30073
30074 2005-05-22  Bruno Haible  <bruno@clisp.org>
30075
30076         * m4/minmax.m4: New file.
30077         Based on a patch by Derek Price <derek@ximbiot.com>.
30078
30079 2005-05-22  Bruno Haible  <bruno@clisp.org>
30080
30081         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30082         (INT64_MIN): Fix definition.
30083         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30084
30085         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30086         NEED_SIGNED_INT_TYPES.
30087
30088         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30089         HAVE_SYSTEM_INTTYPES.
30090
30091 2005-05-22  Bruno Haible  <bruno@clisp.org>
30092
30093         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30094         Also include <sys/param.h> if it defines MIN, MAX.
30095         Based on a patch by Derek Price <derek@ximbiot.com>.
30096
30097 2005-05-21  Jim Meyering  <jim@meyering.net>
30098
30099         * modules/fts (Files): Add m4/inttypes-pri.m4.
30100         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30101
30102 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         New fts module.
30105         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30106         (setup_dir, free_dir): New functions.
30107         (enter_dir, leave_dir): Define trivial
30108         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30109         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30110         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30111         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30112         Move to fts-cycle.c.
30113         (fts_open): Use setup_dir.
30114         (fts_close): Use free_dir.
30115         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30116         This adds a label and some gotos, but the alternatives were messier.
30117         Check for memory allocation failure when entering a dir.
30118         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30119         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30120         (FTS): New member fts_cycle, that is a union that contains the
30121         old active_dir_ht and cycle_state.  All uses changed to mention
30122         fts_cycle.ht and fts_cycle.state.
30123         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30124         fts.c, with the following changes:
30125         (setup_dir, free_dir): New functions.
30126         (enter_dir): Now returns bool.  Return true if successful, false
30127         if memory exhausted.  All callers changed.
30128         Do not bother partly cleaning up on
30129         memory allocation failure; that is free_dir's job.
30130         However, free ad if hash_insert fails, to avoid memory leak.
30131         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30132         fts->fts_options to see which union member to use.
30133
30134 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30137         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30138
30139 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30140
30141         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30142
30143 2005-05-20  Jim Meyering  <jim@meyering.net>
30144
30145         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30146         Now a macro, to pacify GCC.
30147
30148 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30149
30150         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30151         of -1.
30152
30153 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30154
30155         * lib/chown.c (rpl_chown): Return -1 on failure.
30156
30157 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30160         Don't check for stddef.h.
30161         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30162         don't use its results.
30163         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30164         since we include them unconditionally.  Don't require
30165         AM_STDBOOL_H, since stdbool is a prerequisite.
30166         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30167         since we assume C89 or better.
30168         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30169         as we don't use their results.
30170         Don't check for fchdir, memmove, memset, strrchr, as we use
30171         them unconditionally.
30172         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30173         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30174
30175 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30176
30177         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30178         Include <stddef.h> unconditionally, since we assume C89 now.
30179         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30180         * lib/fts.c: Include fts_.h first, to check interface.
30181         Do not include intprops.h; no longer needed.
30182         Include cycle-check.h and hash.h, since fts_.h no longer does.
30183         Remove unnecessary casts of closedir to void.
30184         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30185         decide whether to decrement nlinks.
30186         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30187         (FTS): Use struct hash_table * instead of Hash_table, so that
30188         we no longer need to include hash.h here.
30189
30190 2005-05-18  Jim Meyering  <jim@meyering.net>
30191
30192         * modules/dirfd (License): Change to LGPL.  Most of the code
30193         is already in the public domain.
30194
30195 2005-05-18  Jim Meyering  <jim@meyering.net>
30196
30197         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30198         Reported by Yoann Vandoorselaere.
30199
30200 2005-05-17  Jim Meyering  <jim@meyering.net>
30201
30202         * m4/fts.m4: New file, from coreutils.
30203
30204 2005-05-17  Jim Meyering  <jim@meyering.net>
30205
30206         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30207
30208 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30209
30210         Sync from coreutils.
30211         * m4/unlinkdir.m4: New file.
30212
30213 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30214
30215         Sync from coreutils.
30216         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30217         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30218         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30219         White space changes only.
30220         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30221         special.
30222         * lib/yesno.c: Include getline.h, not ctype.h.
30223         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30224         Use getline to remove arbitrary restriction on response length.
30225
30226 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30227
30228         * config/srclist-update: Spell out "Street" in FSF postal
30229         mail address; this is the style the FSF seems to prefer.
30230
30231         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30232         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30233         this updates FSF postal mail address.
30234
30235         Sync from coreutils.
30236         * modules/unlinkdir: New file.
30237         * modules/yesno (Depends-on): Add getline.
30238         * MODULES.html.sh (File system functions): Add unlinkdir.
30239
30240 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30241
30242         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30243         lib/strsep.h:
30244         Change the initial comment to refer to GPL, not LGPL.
30245         gnulib-tool will change it to LGPL as needed.
30246
30247         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30248         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30249         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30250         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30251         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30252         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30253         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30254         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30255         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30256         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30257         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30258         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30259         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30260         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30261         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30262         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30263         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30264         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30265         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30266         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30267         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30268         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30269         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30270         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30271         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30272         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30273         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30274         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30275         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30276         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30277         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30278         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30279         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30280         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30281         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30282         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30283         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30284         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30285         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30286         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30287         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30288         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30289         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30290         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30291         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30292         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30293         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30294         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30295         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30296         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30297         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30298         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30299         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30300         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30301         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30302         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30303         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30304         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30305         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30306         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30307         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30308         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30309         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30310         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30311         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30312         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30313         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30314         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30315         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30316         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30317         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30318         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30319         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30320         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30321         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30322         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30323         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30324         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30325         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30326         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30327         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30328         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30329         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30330         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30331         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30332         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30333         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30334         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30335         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30336         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30337         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30338         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30339         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30340         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30341         lib/yesno.c, lib/yesno.h:
30342         Update FSF postal mail address.
30343
30344 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30345
30346         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30347         tests/test-memmem.c, tests/test-stpncpy.c:
30348         Update FSF postal mail address.
30349
30350 2005-05-13  Bruno Haible  <bruno@clisp.org>
30351
30352         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30353         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30354         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30355         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30356         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30357         Add support for 64-bit integers in the MSVC compiler.
30358
30359 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30360
30361         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30362
30363 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30364
30365         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30366
30367 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30368
30369         * doc/getdate.texi (General date syntax): Don't say that date
30370         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30371         Problem reported by Nic Ferrier.
30372
30373 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30374
30375         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30376         specified in ai_socktype. Fix invalid ai_protocol
30377         check. ai_protocol is usually set to 0 or depending on
30378         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30379         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30380         ai_socktype / ai_protocol in the returned addrinfo structure.
30381
30382 2005-05-10  Simon Josefsson  <jas@extundo.com>
30383
30384         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30385         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30386
30387 2005-05-10  Karl Berry  <karl@gnu.org>
30388
30389         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30390         (from http://www.gnu.org/licenses).
30391         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30392         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30393         fdl.texi suffices.
30394
30395 2005-05-10  Karl Berry  <karl@gnu.org>
30396
30397         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30398         (COPYING.DOC): remove.
30399
30400         * config/srclist-update: new FSF address.
30401
30402 2005-05-10  Derek Price  <derek@ximbiot.com>
30403
30404         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30405         possible.
30406
30407 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30408             Bruno Haible  <bruno@clisp.org>
30409
30410         * modules/inet_ntop: New file.
30411         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30412         inet_ntop.
30413
30414 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30415             Bruno Haible  <bruno@clisp.org>
30416
30417         * m4/inet_ntop.m4: New file.
30418
30419 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30420             Bruno Haible  <bruno@clisp.org>
30421
30422         * lib/inet_ntop.h: New file.
30423         * lib/inet_ntop.c: New file, from glibc with modifications.
30424
30425 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30426
30427         * modules/time_r (License): Change to LGPL.
30428         * modules/extensions (License): Change to LGPL.  Actually,
30429         the license is more permissive than that, but currently gnulib-tool
30430         doesn't know how to handle more-permissive licenses.
30431
30432         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30433         Problem reported by Dave Love.
30434
30435 2005-05-08  Jim Meyering  <jim@meyering.net>
30436
30437         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30438         blank.
30439
30440 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30441
30442         * modules/argmatch (Depends-on): Add stdbool.
30443         * modules/backupfile (Depends-on): Likewise.
30444         * modules/chdir-long (Depends-on): Likewise.
30445         * modules/closeout (Depends-on): Likewise.
30446         * modules/cycle-check (Depends-on): Likewise.
30447         * modules/dirname (Depends-on): Likewise.
30448         * modules/fnmatch (Depends-on): Likewise.
30449         * modules/fsusage (Depends-on): Likewise.
30450         * modules/fwriteerror (Depends-on): Likewise.
30451         * modules/getcwd (Depends-on): Likewise.
30452         * modules/getloadavg (Depends-on): Likewise.
30453         * modules/hard-locale (Depends-on): Likewise.
30454         * modules/makepath (Depends-on): Likewise.
30455         * modules/mountlist (Depends-on): Likewise.
30456         * modules/nanosleep (Depends-on): Likewise.
30457         * modules/posixtm (Depends-on): Likewise.
30458         * modules/quotearg (Depends-on): Likewise.
30459         * modules/readtokens (Depends-on): Likewise.
30460         * modules/readtokens0 (Depends-on): Likewise.
30461         * modules/readutmp (Depends-on): Likewise.
30462         * modules/save-cwd (Depends-on): Likewise.
30463         * modules/strftime (Depends-on): Likewise.
30464         * modules/userspec (Depends-on): Likewise.
30465         * modules/utimecmp (Depends-on): Likewise.
30466         * modules/xgetcwd (Depends-on): Likewise.
30467         * modules/xnanosleep (Depends-on): Likewise.
30468         * modules/xstrtod (Depends-on): Likewise.
30469         * modules/yesno (Depends-on): Likewise.
30470
30471 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30472
30473         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30474         needless checks.
30475
30476 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30477
30478         Merge from coreutils.  Among other things,
30479         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30480         * lib/fd-safer.c: New file.
30481         * lib/fcntl-safer.h, open-safer.c: Remove.
30482         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30483         * lib/dup-safer.c: Include unistd-safer.h first.
30484         Don't include errno.h.
30485         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30486         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30487         * lib/file-type.c: Rely on file-type.h change.
30488         * lib/getloadavg.c: Include unistd-safer.h.
30489         (getloadavg): Use safer open.
30490         * lib/getusershell.c: Include "stdio-safer.h".
30491         (getusershell): Use safer fopen.
30492         * lib/long-options.c (long_options): Use NULL rather than 0.
30493         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30494         'free'.
30495         * lib/modechange.c: Likewise.
30496         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30497         (MODE_DONE): New constant.
30498         (struct mode_change): Remove 'next' member.
30499         (make_node_op_equals): New function; like the old one of the
30500         same name, except it allocates an array.
30501         (mode_compile, mode_create_from_ref): Use it.
30502         (mode_compile): Allocate result as an array, not a linked list.
30503         Parse octal string ourself, so that we catch mistakes like "+0".
30504         (mode_adjust): Arg is an array, not a linked list.
30505         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30506         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30507         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30508         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30509         Remove.  This is now stat-macros.h's job.
30510         (talloc): Remove.  All callers replaced by xalloc, so that
30511         our invokers don't have to worry about reporting memory failures.
30512         (make_node_op_equals): Remove.
30513         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30514         New constants.
30515         (struct mode_change): Moved here from modechange.h.
30516         (mode_append_entry): Remove.
30517         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30518         apps to have incorrect behavior.  Use simpler algorithm for head
30519         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30520         Detect more invalid usages rather than having somewhat-random behavior.
30521         Don't insert an "a=" action, as that leads to incorrect behavior.
30522         (mode_compile, mode_create_from_ref): Return NULL on error instead
30523         of an enum, since now there's only one way to have an error.  All
30524         callers changed.
30525         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30526         at the correct time.  Simplify calculation of "+u" and its ilk.
30527         Don't mishandle "+X".
30528         (mode_free): Remove "register" and localize decls.
30529         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30530         (struct mode_change): Move to modechange.c; callers don't
30531         need to see this stuff.
30532         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30533         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30534         (mode_change, mode_adjust): Reflect the new signatures noted above.
30535         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30536         that might redefine system include files.
30537         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30538         (my_usleep): Use NULL rather than (void *) 0.
30539         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30540         Use siginterrupt to specify that system calls should be interrupted.
30541         (rpl_nanosleep): Move initialization of suspended closer to call of
30542         my_usleep.
30543         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30544         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30545         (desirable_utmp_entry): New function.
30546         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30547         using x2nrealloc, to simplify logic.
30548         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30549         size calculation.  Do not assume utmp file is a regular file.
30550         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30551         (READ_UTMP_CHECK_PIDS): New constant.
30552         * lib/save-cwd.c: Include unistd-safer.h.
30553         (save_cwd): Use fd_safer.
30554         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30555         [!_LIBC] Include "stat-macros.h" instead.
30556         * lib/unistd-safer.h (fd_safer): New decl.
30557
30558 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30559
30560         * modules/getloadavg (Depends-on): Add unistd-safer.
30561         * modules/getusershell (Depends-on): Add stdio-safer.
30562         * modules/lstat (Depends-on): Remove xalloc.
30563         * modules/mkstemp (Depends-on): Add stat-macros.
30564         * modules/modechange (Depends-on): Remove xstrtol.
30565         Add stat-macros, xalloc.
30566         * modules/save-cwd (Depends-on): Add unistd-safer.
30567         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30568         * modules/unistd-safer (Files): Add lib/fd-safer.c
30569         (Makefile.am): Remove lib_SOURCES.
30570
30571         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30572         Remove fcntl-safer; unistd-safer supersedes it.
30573
30574 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30575
30576         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30577         AC_HEADER_STAT.
30578         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30579         (gl_PREREQ_CHOWN): Remove.
30580         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30581         it.  Don't require AC_HEADER_STAT.
30582         (gl_PREREQ_LSTAT): Remove.
30583         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30584         Don't require AC_HEADER_STAT.
30585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30586         (gl_PREREQ_RMDIR): Remove.
30587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30588         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30589         the stat-macros module a prerequisite.
30590         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30591         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30592         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30593         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30594         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30595         variable names.
30596         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30597         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30598         variable prefixes.
30599         * m4/fcntl-safer.m4: Remove.
30600         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30601         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30602         Invoke gl_PREREQ_FD_SAFER.
30603         (gl_PREREQ_FD_SAFER): New macro.
30604         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30605         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30606         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30607         Remove duplicate call to AC_LIBOBJ(readutmp).
30608         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30609
30610         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30611         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30612
30613 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30614
30615         * MODULES.html.sh (Misc): Add byteswap.
30616
30617 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30618
30619         * modules/getcwd (Depends-on): Add extensions.
30620         * modules/openat (Depends-on): Likewise.
30621
30622 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30623
30624         * modules/byteswap: New file.
30625
30626 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30627
30628         * m4/byteswap.m4: New file.
30629
30630 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30631
30632         * lib/byteswap_.h: New file.
30633
30634 2005-04-25  Karl Berry  <karl@gnu.org>
30635
30636         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30637
30638 2005-04-25  Albert Chin  <china@thewrittenword.com>
30639
30640         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30641         Toolkit C bug.
30642
30643 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30644
30645         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30646         (func_ln_if_changed) Remove forcibly for no error message
30647         in case file does not exist.
30648
30649 2005-04-19  Simon Josefsson  <jas@extundo.com>
30650
30651         * gnulib-tool (Options): Make --symlink mean --symbolic.
30652
30653 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30654
30655         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30656
30657 2005-04-16  Simon Josefsson  <jas@extundo.com>
30658
30659         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30660
30661 2005-04-15  Simon Josefsson  <jas@extundo.com>
30662
30663         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30664
30665 2005-04-15  Simon Josefsson  <jas@extundo.com>
30666
30667         * gnulib-tool: Rename --symlink to --symbolic.
30668
30669 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30670
30671         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30672         symbolic links to files instead of copying/moving.  Add --aux-dir,
30673         specifying directory relative --dir where auxiliary build tools
30674         are placed.
30675
30676 2005-04-14  Bruno Haible  <bruno@clisp.org>
30677
30678         * modules/allocsa (License): Change to LGPL.
30679         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30680
30681 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30682
30683         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30684         that "UTC +1 second" continues to work.  Problem reported
30685         by Dmitry V. Levin.
30686         (relunit_snumber): New rule.
30687         (relunit): Use it.
30688
30689 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30690
30691         * lib/getdate.y (universal_time_zone_table): New constant.
30692         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30693         universal_time_zone_table.
30694         (lookup_zone): Prefer universal_time_zone_table to
30695         local_time_zone_table, so that "GMT" time stamps are allowed in
30696         London during the summer.  Problem reported by Ian Abbott.
30697
30698 2005-04-12  Jim Meyering  <jim@meyering.net>
30699
30700         * lib/human.c (humblock): Set *options even when returning due to
30701         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30702         warning from gcc-4.
30703
30704 2005-04-09  Jim Meyering  <jim@meyering.net>
30705
30706         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30707         -Wuninitialized: initialize tm0.tm_year.
30708
30709 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30712         count, since there's no maximum.  All uses changed.
30713         Add member dsts_seen.
30714         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30715         not being INT_MAX.
30716         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30717         Use pc_rels_seen to decide whther a date is absolute.
30718
30719         * lib/getdate.y (number): Don't overwrite year.
30720         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30721         check.
30722
30723 2005-04-02  Simon Josefsson  <jas@extundo.com>
30724
30725         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30726         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30727
30728 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30729
30730         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30731         where no absolute path name can be longer than PATH_MAX.
30732
30733 2005-03-27  Jim Meyering  <jim@meyering.net>
30734
30735         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30736
30737 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30738
30739         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30740         "one's complement" -> "ones' complement" in comment, as per Knuth.
30741         "value of type" -> "type or expression" in comment.
30742         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30743
30744 2005-03-26  Jim Meyering  <jim@meyering.net>
30745
30746         Comment nits.
30747         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30748         Correct typos: s/or/of/.
30749
30750 2005-03-26  Jim Meyering  <jim@meyering.net>
30751
30752         * modules/check-include-files: Move to ../ and rename to...
30753         * check-module: ...this.
30754
30755 2005-03-25  Jim Meyering  <jim@meyering.net>
30756
30757         * modules/xvasprintf (Files): Add xalloc.h.
30758
30759 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30760
30761         * modules/gettext (Files): config/config.rpath ->
30762         build-aux/config.rpath
30763         * modules/iconv (Files): Likewise.
30764         Problem reported by Oskar Liljeblad.
30765
30766 2005-03-23  Jim Meyering  <jim@meyering.net>
30767
30768         * modules/check-include-files: New script to check for
30769         missing dependencies, multiple includes, etc.
30770
30771         * modules/c-strtold (Depends-on): Add xalloc.
30772         * modules/c-strtod (Depends-on): Add xalloc.
30773         * modules/hash (Depends-on): Add xalloc.
30774         (Files): Remove lib/xalloc.h.
30775
30776         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30777         * modules/userspec (Files): Add lib/inttostr.h.
30778
30779 2005-03-23  Jim Meyering  <jim@meyering.net>
30780
30781         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30782
30783 2005-03-22  Jim Meyering  <jim@meyering.net>
30784
30785         * modules/stat-macros: New module.
30786         * modules/canonicalize, modules/euidaccess, modules/file-type,
30787         * modules/filemode, modules/lchown, modules/makepath,
30788         * modules/rmdir, modules/stat: Depend on new stat-macros module
30789         rather than listing lib/stat-macros.h manually.
30790         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30791
30792 2005-03-22  Jim Meyering  <jim@meyering.net>
30793
30794         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30795
30796 2005-03-22  Bruno Haible  <bruno@clisp.org>
30797
30798         * config/srclist.txt: Replace target directory 'config' with
30799         'build-aux'.
30800         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30801         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30802         ../build-aux/.
30803
30804 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30805
30806         * modules/chdir-long (Depends-on): Add mempcpy.
30807
30808         * modules/acl, modules/backupfile, modules/c-strtod,
30809         modules/c-strtold, modules/canon-host, modules/canonicalize,
30810         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30811         modules/exclude, modules/exitfail, modules/file-type,
30812         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30813         modules/getdate, modules/getline, modules/getpagesize,
30814         modules/getpass, modules/getugroups, modules/group-member,
30815         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30816         modules/inttostr, modules/long-options, modules/makepath,
30817         modules/md5, modules/memcasecmp, modules/memcoll,
30818         modules/modechange, modules/mountlist, modules/path-concat,
30819         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30820         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30821         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30822         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30823         modules/strftime, modules/strndup, modules/strverscmp,
30824         modules/timespec, modules/unlocked-io, modules/userspec,
30825         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30826         modules/yesno:
30827         Remove lib_SOURCES line from Makefile.am section, as this is now
30828         done automatically by the corresponding Autoconf macro.
30829
30830 2005-03-21  Jim Meyering  <jim@meyering.net>
30831
30832         Changes imported from coreutils.
30833
30834         * lib/cycle-check.c: Don't include xalloc.h.
30835
30836         * lib/path-concat.c: Don't include assert.h.
30837         (path_concat): Remove assertion that would have triggered
30838         for ABASE starting with more than one slash.
30839         Reported by Andreas Schwab.
30840
30841         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30842         properly when ABASE is an absolute file name.
30843         Correct the description of this function.
30844         Include <assert.h>.
30845         Add an assertion and a test driver.
30846         This fixes a bug introduced on 2004-07-02.
30847         Andreas Schwab reported the resulting failure of cp --parents:
30848         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30849
30850 2005-03-21  Jim Meyering  <jim@meyering.net>
30851
30852         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30853         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30854
30855 2005-03-21  Jim Meyering  <jim@meyering.net>
30856         and  Paul Eggert  <eggert@cs.ucla.edu>
30857
30858         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30859         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30860         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30861         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30862         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30863         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30864         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30865         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30866         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30867         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30868         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30869         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30870         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30871         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30872         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30873         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30874         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30875         for these modules.
30876
30877 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30878
30879         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30880         (which shouldn't happen), generate nothing instead of returning 0
30881         immediately, so that nstrftime (NULL, ...) doesn't return 0.
30882
30883 2005-03-16  Bruno Haible  <bruno@clisp.org>
30884
30885         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30886         HAVE_LONGLONG_64BIT.
30887
30888 2005-03-16  Bruno Haible  <bruno@clisp.org>
30889
30890         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30891         HAVE_LONGLONG_64BIT.
30892
30893 2005-03-16  Bruno Haible  <bruno@clisp.org>
30894
30895         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30896         HAVE_LONGLONG_64BIT.
30897
30898 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30899
30900         * lib/strftime.c (my_strftime): Prepend space to format so that we can
30901         reliably distinguish strftime failure from empty output on POSIX
30902         hosts.
30903
30904 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30905
30906         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30907         (iconv_string): Don't guess a size-zero buffer, as that might cause
30908         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
30909         result would be 'too large', where 'too large' is (heuristically)
30910         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30911         overflow concerns.  This will prevent some unwanted malloc failures
30912         when the inputs are very large.
30913
30914 2005-03-15  Karl Berry  <karl@gnu.org>
30915
30916         * config/srclist.txt (config.rpath): from gettext.
30917         * config/config.rpath: update.
30918
30919 2005-03-15  Bruno Haible  <bruno@clisp.org>
30920
30921         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30922         to 'negate'.
30923
30924         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30925         variable.
30926
30927         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30928         results.
30929
30930 2005-03-14  Simon Josefsson  <jas@extundo.com>
30931
30932         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30933         <fx@gnu.org>.
30934
30935 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
30936
30937         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30938         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30939         intprops.h.
30940         * lib/strtol.c: Likewise.
30941
30942 2005-03-14  Jim Meyering  <jim@meyering.net>
30943
30944         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30945         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30946         to be nonzero so that we (and caller) can detect the difference
30947         between a valid zero-length expansion and an error return, even
30948         when the underlying strftime fails before writing anything into
30949         that location.
30950
30951 2005-03-14  Bruno Haible  <bruno@clisp.org>
30952
30953         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30954         Update from GNU gettext 0.14.3.
30955
30956 2005-03-10  Jim Meyering  <jim@meyering.net>
30957
30958         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30959
30960 2005-03-10  Jim Meyering  <jim@meyering.net>
30961
30962         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30963         so that this module works on systems without fchdir.
30964
30965 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
30966
30967         Factor int-properties macros into a single file, except for
30968         glibc-related files.
30969         * lib/intprops.h: New file.
30970         * lib/getloadavg.c: Include it instead of limits.h.
30971         (INT_STRLEN_BOUND): Remove.
30972         * lib/human.c: Include intprops.h.
30973         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30974         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30975         302/1000.
30976         * lib/inttostr.h: Include intprops.h instead of limits.h.
30977         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30978         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30979         for consistency with intprops.h.
30980         (time_t_is_integer, twos_complement_arithmetic): Use them.
30981         * lib/sig2str.h: Include <signal.h>, intprops.h.
30982         (INT_STRLEN_BOUND): Remove.
30983         * lib/strftime.c (TYPE_SIGNED): Remove.
30984         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30985         * lib/strtol.c: Adjust comments to match intprops.h.
30986         * lib/userspec.c: Include intprops.h.
30987         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30988         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30989         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30990         instead of rolling our own expressions.
30991         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30992
30993         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
30994         instead of int.
30995         (my_strftime): Do not mishandle years close to INT_MAX, by doing
30996         the right thing even if adding 1900 would overflow.  Similarly
30997         for tm_mon + 1 and tm_yday + 1.
30998         Make %Y always equivalent to %C%y, and similarly for %G and %g.
30999         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31000         (DO_SIGNED_NUMBER): New macro.
31001         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31002
31003 2005-03-07  Bruno Haible  <bruno@clisp.org>
31004
31005         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31006
31007 2005-03-07  Bruno Haible  <bruno@clisp.org>
31008
31009         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31010
31011 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31012
31013         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31014         (func_import): Only replace files via --import when they have actually
31015         changed.
31016
31017 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31018
31019         * m4/mmap-anon.m4: New file.
31020         * m4/pagealign_alloc.m4: New file.
31021
31022 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31023             Bruno Haible  <bruno@clisp.org>
31024
31025         * modules/pagealign_alloc: New file.
31026         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31027
31028 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31029             Bruno Haible  <bruno@clisp.org>
31030
31031         * lib/pagealign_alloc.h: New file.
31032         * lib/pagealign_alloc.c: New file.
31033
31034 2005-03-03  Bruno Haible  <bruno@clisp.org>
31035
31036         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31037         Use an all-permissive copyright notice, recommended by RMS.
31038
31039 2005-03-02  Bruno Haible  <bruno@clisp.org>
31040
31041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31042         of AIX, the replacement has to be done only after <string.h> is
31043         included, therefore not in config.h. stpncpy.h does the replacement,
31044         and stpncpy.c uses it.
31045
31046 2005-03-02  Bruno Haible  <bruno@clisp.org>
31047
31048         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31049         stpncpy.c uses it.
31050
31051 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31052
31053         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31054         The workaround isn't strictly needed for POSIX conformance, and
31055         it's too much of a pain to configure and maintain.  We'll ask
31056         people to fix their kernels instead.
31057         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31058         (NANOSLEEP_BUG_WORKAROUND): Remove.
31059         (xnanosleep): Remove the workaround.
31060
31061 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31062
31063         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31064         Reported by Derek Price.
31065         (Include): Add "timespec.h".
31066
31067         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31068
31069 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31070
31071         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31072         to detect nanosleep bug.
31073
31074 2005-03-01  Bruno Haible  <bruno@clisp.org>
31075
31076         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31077
31078 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31079
31080         * modules/gethrxtime: New file.
31081         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31082         (Depends-on): Add gethrxtime.
31083         (configure.ac): Add gl_XNANOSLEEP.
31084         (Makefile.am): Remove lib_SOURCES line.
31085
31086 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31087
31088         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31089         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31090
31091 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31092
31093         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31094         * lib/timespec.h (gettime): Return void, since it always
31095         succeeds now.  All uses changed.
31096         * lib/gettime.c (gettime) Likewise.
31097         [HAVE_NANOTIME]: Prefer nanotime.
31098         Assume gettimeofday succeeds, as POSIX requires.
31099         Assime time () succeeds, since other code already does.
31100         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31101         (timespec_subtract): Remove.
31102         (NANOSLEEP_BUG_WORKAROUND): New constant.
31103         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31104         things considerably.  Use it only on GNU/Linux hosts, since the
31105         workaround shouldn't be needed elsewhere.
31106
31107 2005-02-24  Bruno Haible  <bruno@clisp.org>
31108
31109         * modules/gettext (Files): Add m4/glibc2.m4.
31110
31111 2005-02-24  Bruno Haible  <bruno@clisp.org>
31112
31113         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31114         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31115         * m4/progtest.m4:
31116         Update from GNU gettext 0.14.2.
31117         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31118
31119 2005-02-24  Bruno Haible  <bruno@clisp.org>
31120
31121         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31122         * lib/config.charset: Update from GNU gettext 0.14.2.
31123
31124 2005-02-24  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/gettext.h: Update from GNU gettext 0.14.2.
31127
31128 2005-02-23  Simon Josefsson  <jas@extundo.com>
31129
31130         * m4/iconvme.m4: New file.
31131
31132 2005-02-23  Jim Meyering  <jim@meyering.net>
31133
31134         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31135         change.
31136         Thanks to Bruno Haible for catching it.
31137
31138 2005-02-22  Simon Josefsson  <jas@extundo.com>
31139
31140         * modules/iconvme: New file.
31141
31142         * MODULES.html.sh: Add iconvme.
31143
31144 2005-02-22  Simon Josefsson  <jas@extundo.com>
31145
31146         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31147
31148 2005-02-22  Simon Josefsson  <jas@extundo.com>
31149
31150         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31151
31152 2005-02-22  Jim Meyering  <jim@meyering.net>
31153
31154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31155         s/ifndef/ifdef/.
31156
31157 2005-02-20  Neil Conway  <neilc@samurai.com>
31158
31159         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31160         returned by OSX/Darwin if the specified buffer is not large
31161         enough for the hostname.
31162
31163 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31164
31165         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31166         pass it to _help, otherwise the latter coredumps trying to
31167         dereference state.root_argp.
31168
31169 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31170
31171         * modules/chdir-long (Depends-on): Add memrchr.
31172         * modules/memrchr (Files): Add lib/memrchr.h.
31173         (Include): "memrchr.h".
31174
31175 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31176
31177         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31178
31179 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31180
31181         * lib/memrchr.h: New file.
31182         * lib/chdir-long.c: Include it.
31183         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31184         Don't bother including stddef.h.
31185
31186 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31187
31188         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31189         inclusion.
31190         Include <sys/types.h>, for dev_t.
31191         (ME_DUMMY, ME_REMOTE): Move from here....
31192         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31193         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31194         Dmitry V. Levin.
31195         Include mountlist.h first, to test the interface.
31196
31197 2005-01-29  Bruno Haible  <bruno@clisp.org>
31198
31199         * lib/progname.c (program_name): Initialize.
31200         Needed when linking statically on MacOS X.
31201
31202 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31203
31204         Sync from coreutils.
31205         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31206         (Depends-on): Add c-strtod.
31207         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31208
31209 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31210
31211         Sync from coreutils.
31212         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31213
31214         Remove files that are specific to coreutils.
31215         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31216
31217 2005-01-28  Bruno Haible  <bruno@clisp.org>
31218
31219         * modules/javacomp: New file.
31220         * MODULES.html.sh (Java): Add javacomp.
31221
31222 2005-01-28  Bruno Haible  <bruno@clisp.org>
31223
31224         * m4/javacomp.m4: New file, from GNU gettext.
31225
31226 2005-01-28  Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/javacomp.sh.in: New file, from GNU gettext.
31229         * lib/javacomp.h: New file, from GNU gettext.
31230         * lib/javacomp.c: New file, from GNU gettext.
31231
31232 2005-01-26  Simon Josefsson  <jas@extundo.com>
31233
31234         * lib/gai_strerror.c: Use GPL in header.
31235
31236 2005-01-26  Bruno Haible  <bruno@clisp.org>
31237
31238         * modules/javaexec: New file.
31239         * MODULES.html.sh (Java): Add javaexec.
31240
31241 2005-01-26  Bruno Haible  <bruno@clisp.org>
31242
31243         * m4/javaexec.m4: New file, from GNU gettext.
31244
31245 2005-01-26  Bruno Haible  <bruno@clisp.org>
31246
31247         * lib/javaexec.sh.in: New file, from GNU gettext.
31248         * lib/javaexec.h: New file, from GNU gettext.
31249         * lib/javaexec.c: New file, from GNU gettext.
31250
31251 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31252
31253         * modules/lchown (Depends-on): Remove lchown.h
31254
31255 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31256
31257         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31258         must be defined if the header file was not found, in order
31259         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31260
31261 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31262
31263         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31264         initializers for struct pentry_state.
31265         (__argp_error): Check return value of __asprintf
31266         (__argp_failure): Translate error message
31267
31268         * lib/argp-parse.c: Removed braces around the expansion of N_()
31269
31270 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31271
31272         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31273         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31274         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31275         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31276         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31277         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31278         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31279         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31280         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31281         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31282         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31283         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31284         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31285         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31286         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31287         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31288         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31289         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31290         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31291         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31292         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31293         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31294         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31295         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31296         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31297         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31298         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31299         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31300         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31301         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31302         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31303         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31304         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31305         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31306         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31307         Use an all-permissive copyright notice, recommended by RMS.
31308
31309 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31310
31311         * modules/chdir-long (Depends-on): Remove mempcpy.
31312
31313 2005-01-21  Jim Meyering  <jim@meyering.net>
31314
31315         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31316         same value as for Solaris 9.
31317
31318         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31319         component length.  This included changing the parameter to be
31320         of type `char *' rather than `char const *'.
31321         * lib/chdir-long.h (chdir_long): Update prototype.
31322
31323         * lib/openat.c (fdopendir, fstatat): New functions.
31324         * lib/openat.h: Include headers required for use of DIR and struct
31325         stat.
31326         [AT_SYMLINK_NOFOLLOW]: Define.
31327         (fdopendir, fstatat): Add prototypes.
31328
31329 2005-01-21  Bruno Haible  <bruno@clisp.org>
31330
31331         * modules/classpath: New file.
31332         * MODULES.html.sh (Java): Add classpath.
31333
31334 2005-01-21  Bruno Haible  <bruno@clisp.org>
31335
31336         * lib/classpath.h: New file, from GNU gettext.
31337         * lib/classpath.c: New file, from GNU gettext.
31338
31339 2005-01-20  Simon Josefsson  <jas@extundo.com>
31340
31341         * modules/version-etc-fsf: New file.
31342
31343 2005-01-20  Simon Josefsson  <jas@extundo.com>
31344
31345         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31346         * lib/version-etc.c: Remove version_etc_copyright.
31347         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31348         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31349
31350 2005-01-20  Simon Josefsson  <jas@extundo.com>
31351
31352         * lib/base64.h (isbase64): Add.
31353
31354         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31355         using a unsigned prototype, don't inline.
31356         (base64_decode): Use it.
31357
31358 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31359
31360         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31361         it.
31362
31363 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31364
31365         * lib/save-cwd.c (save_cwd): Remove code to support the case
31366         where fchdir is missing or flaky.
31367
31368 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31369
31370         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31371
31372 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31375         AC_LIBSOURCES now does this.
31376         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31377         with new ullong_max module.
31378
31379 2005-01-19  Bruno Haible  <bruno@clisp.org>
31380
31381         * modules/sh-quote: New file.
31382         * MODULES.html.sh (Executing programs): Add sh-quote.
31383
31384 2005-01-19  Bruno Haible  <bruno@clisp.org>
31385
31386         * lib/sh-quote.h: New file, from GNU gettext.
31387         * lib/sh-quote.c: New file, from GNU gettext.
31388
31389 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31390
31391         Merge from coreutils.
31392         * m4/ullong_max.m4: New file.
31393         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31394         (gl_MACROS): Assume localeconv exists.
31395
31396 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31397
31398         Merge changes from coreutils, as described below in several
31399         changelogs dated today.
31400
31401         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31402         (O_DIRECTORY): Remove; not needed here, since "." must be
31403         a directory.  All uses removed.
31404         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31405         universal on Suns, and we also need to test for IRIX.
31406         Revamp code to use 'if' rather than '#if'.
31407         Avoid unnecessary comparison of cwd->desc to 0.
31408
31409         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31410         for known valid error numbers rather than observed invalid ones.
31411
31412 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31413
31414         * modules/ullong_max: New file.
31415
31416         * modules/chdir-long, modules/openat: New files.
31417         * modules/save-cwd (Depends-on): Depend on chdir-long.
31418         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31419
31420 2005-01-18  Jim Meyering  <jim@meyering.net>
31421
31422         Merge from coreutils.
31423         * m4/chdir-long.m4, m4/openat.m4: New files.
31424         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31425         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31426         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31427         is sane and DOES follow symlinks.  Besides, testing 20 different
31428         systems found no broken chown implementations.
31429         Prompted by a change in rsync's copy of this macro.
31430         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31431
31432         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31433
31434         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31435         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31436         NULL-means-set-to-current-time semantics.
31437         Remove temporary file immediately, rather than waiting
31438         for configure's at-exit trap code to do it.
31439
31440 2005-01-18  Jim Meyering  <jim@meyering.net>
31441
31442         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31443
31444         * lib/utimens.c (futimens): Account for the fact that futimes
31445         can also fail with errno == ENOSYS or errno == ENOENT.
31446         Patch from Dmitry V. Levin.
31447
31448         Change the name of the robust chdir function from chdir to chdir_long.
31449         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31450         (restore_cwd): Use chdir_long, not chdir.
31451         * lib/chdir-long.c: Renamed from chdir.c.
31452         * lib/chdir-long.h: Renamed from chdir.h.
31453         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31454         Hurd.
31455
31456 2005-01-18  Bruno Haible  <bruno@clisp.org>
31457
31458         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31459         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31460         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31461         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31462         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31463         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31464         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31465         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31466         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31467         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31468         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31469         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31470         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31471         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31472         Use an all-permissive copyright notice, recommended by RMS.
31473
31474 2005-01-18  Bob Proulx  <bob@proulx.com>
31475
31476         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31477         simplify offsetof() macro construct to avoid compile failure with
31478         native HP-UX 11.0 ANSI C compiler.
31479
31480 2005-01-17  Bruno Haible  <bruno@clisp.org>
31481
31482         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31483         redundant because stpncpy.m4 takes care of it.
31484
31485 2005-01-17  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31488
31489 2005-01-17  Bruno Haible  <bruno@clisp.org>
31490
31491         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31492         used.
31493
31494 2005-01-17  Bruno Haible  <bruno@clisp.org>
31495
31496         * lib/fwriteerror.h (fwriteerror): Change specification to include
31497         fclose.
31498         * lib/fwriteerror.c: Include <stdbool.h>.
31499         (fwriteerror): At the end, close the file stream. Record whether
31500         stdout was already closed.
31501
31502 2005-01-17  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/execute.c (environ): Declare if needed.
31505         * lib/pipe.c (environ): Likewise.
31506         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31507
31508 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31509
31510         * modules/argp: Depend on vsnprintf
31511
31512 2005-01-10  Jim Meyering  <jim@meyering.net>
31513
31514         * modules/closeout (Depends-on): Add atexit.
31515
31516 2005-01-06  Bruno Haible  <bruno@clisp.org>
31517
31518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31519
31520 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31521
31522         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31523         definitions to be after all include files, to avoid collisions.
31524         Problem reported by Bob Proulx.
31525
31526 2005-01-04  Jim Meyering  <jim@meyering.net>
31527
31528         Changes imported from coreutils.
31529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31530         as the mkstemp template, use a temporary directory and an
31531         8.3-friendly template to avoid trouble on systems like DJGPP.
31532         Reported by Juan M. Guerrero via Stepan Kasal.
31533         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31534         close. Remove the temporary directory right away, rather than waiting
31535         for configure's at-exit trap code to do it.
31536         Suggestion from Stepan Kasal.
31537
31538 2005-01-01  Simon Josefsson  <jas@extundo.com>
31539
31540         * gnulib-tool: Print #include directives when --import'ing.
31541
31542 2004-12-28  Simon Josefsson  <jas@extundo.com>
31543
31544         * tests/test-base64.c: Include required header files.  Remove
31545         unused variables.
31546
31547 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31548
31549         * modules/error (Depends-on): Remove gettext.
31550
31551 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31552
31553         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31554         not needed.  This removes a dependency on the gettext module.
31555         [defined _LIBC]: Do not include <libintl.h>; not needed.
31556
31557 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31558
31559         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31560         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31561
31562 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31563
31564         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31565         HAVE_DECL_STRTOLD.
31566
31567 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31568
31569         * modules/getdate (Depends-on): Remove alloca-opt.
31570
31571 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31572
31573         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31574
31575 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31576
31577         * lib/argp-parse.c: Include <stddef.h>.
31578         (alignof, alignto): New macros.
31579         (parser_init): Don't assume that void * is aligned sufficiently
31580         for struct option.
31581
31582         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31583         need to extend the stack.
31584         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31585         large.
31586
31587 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31588
31589         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31590
31591 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31592
31593         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31594         (2004-10-24) change.  Apparently this was a false alarm.
31595
31596         * modules/getdate: Depend on alloca-opt, not alloca.
31597
31598 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31599
31600         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31601         Remove now-obsolete comment about AIX.
31602         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31603         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31604         (YYMAXDEPTH): New macro.
31605
31606 2004-12-18  Simon Josefsson  <jas@extundo.com>
31607
31608         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31609
31610 2004-12-18  Bruno Haible  <bruno@clisp.org>
31611
31612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31613
31614 2004-12-18  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/fatal-signal.c (fatal_signals): Make non-const.
31617         (init_fatal_signals): New function.
31618         (uninstall_handlers, install_handlers): Ignore signals that were set to
31619         SIG_IGN.
31620         (at_fatal_signal): Call init_fatal_signals.
31621         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31622         SIG_IGN.
31623         Reported by Paul Eggert.
31624
31625 2004-12-18  Bruno Haible  <bruno@clisp.org>
31626
31627         * doc/alloca.texi: New file.
31628         * doc/alloca-opt.texi: New file.
31629
31630 2004-12-17  Jim Meyering  <jim@meyering.net>
31631
31632         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31633         Otherwise, install-sh could exit with improper exit status when
31634         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31635
31636 2004-12-16  Simon Josefsson  <jas@extundo.com>
31637
31638         * tests/test-base64.c: Add license.
31639
31640 2004-12-15  Stepan Kasal  <address@hidden>
31641
31642         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31643
31644 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31645
31646         * modules/getcwd (Files): Add m4/d-ino.m4.
31647         Suggested by Mark D. Baushke.
31648
31649 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31650
31651         * lib/getdate.y (textint): New member "negative".
31652         (time_zone_hhmm): New function.
31653         Expect 14 shift-reduce conflicts, not 13.
31654         (o_colon_minutes): New rule.
31655         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31656         (yylex): Set the "negative" member of signed numbers.
31657
31658 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31659
31660         * doc/getdate.texi (Time of day items, Time zone items):
31661         Describe new formats +00:00, UTC+00:00.
31662
31663 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31664
31665         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31666         spurious "-l"s.  Problem reported by Stepan Kasal.
31667
31668 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31669
31670         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31671         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31672
31673 2004-12-04  Simon Josefsson  <jas@extundo.com>
31674
31675         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31676         Vandoorselaere <yoann@prelude-ids.org>.
31677
31678 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31679
31680         Changes imported from coreutils.
31681         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31682         exist.
31683         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31684
31685 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31686
31687         Changes imported from coreutils.
31688         * lib/hard-locale.c: Assume <locale.h> exists.
31689         Include "strdup.h".
31690         (GLIBC_VERSION): New macro.
31691         (hard_locale): Assume setlocale exists.
31692         Rewrite to avoid #ifdef.
31693         Use strdup rather than malloc + strcpy.
31694         * lib/human.c: Assume <locale.h> exists.
31695         (human_readable): Assume localeconv exists.
31696
31697 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31698
31699         * modules/hard-locale (Depends-on): Add strdup.
31700
31701 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31702
31703         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31704         convert T2, not T.  (Imported from libc.)
31705
31706 2004-11-30  Simon Josefsson  <jas@extundo.com>
31707
31708         * modules/restrict (License): Change to LGPL.
31709
31710 2004-11-30  Simon Josefsson  <jas@extundo.com>
31711
31712         * m4/restrict.m4: Add copyright and copying conditions.
31713
31714 2004-11-30  Simon Josefsson  <jas@extundo.com>
31715
31716         * m4/base64.m4: New file.
31717
31718 2004-11-30  Simon Josefsson  <jas@extundo.com>
31719
31720         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31721         base64.
31722
31723         * tests/test-base64.c: New file.
31724
31725         * modules/base64: New file.
31726
31727 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31728
31729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31730         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31731
31732         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31733
31734 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31735
31736         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31737         (__getcwd.c): Don't restore errno; glibc doesn't.
31738         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31739         first, falling back to our code only if its results look suspicious.
31740         Ensure that the resulting buffer is only as large as necessary.
31741
31742         * lib/readutmp.c: Include readutmp.h first.
31743         Include <errno.h>, since readutmp.h no longer does that.
31744         * lib/readutmp.h: Don't include <errno.h>,
31745         <sys/param.h>, <time.h>; not needed to establish interface.
31746         (errno): Remove decl.
31747         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31748         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31749         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31750
31751 2004-11-28  Simon Josefsson  <jas@extundo.com>
31752
31753         * lib/base64.h, base64.c: New file.
31754
31755 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31756
31757         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31758
31759 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31760
31761         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31762         (Depends-on): Remove pathmax, same.  Add mempcpy.
31763         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31764         (Makefile.am): Append getcwd.h to lib_SOURCES.
31765         (Include): Add getcwd.h.
31766         (Maintainer): Change from Jim Meyering to "all, glibc",
31767         since getdate now uses intended-for-glibc code.
31768         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31769         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31770
31771 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31772
31773         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31774         HP's ANSI C compiler.
31775         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31776         Declaring int functions causes warnings on some modern systems and
31777         shouldn't be needed to compile on ancient ones.
31778         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31779         defined.
31780
31781         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31782         with the following changes.
31783         (__set_errno): Parenthesize properly.
31784         Include <stdbool.h>.
31785         (MIN, MAX, MATCHING_INO): New macros.
31786         (__getcwd): Define with prototype, not K&R form.
31787         Use heuristics to allocate default buffer on stack if possible.
31788         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31789         behavior, and to avoid the PATH_MAX limit when computing
31790         ../../../../...
31791         Use MATCHING_INO to compare inode number to file.
31792         Check for arithmetic overflow in size calculations.
31793         Fix bug in reallocation of dot array that caused getcwd to fail
31794         on directories nested deeper than 75.
31795         Be more careful about saving errno on error.
31796         Do not use realloc; use only free+malloc, as this is a bit
31797         more flexible and avoids a needless copy operation.
31798         Do not inspect st_dev and st_ino for symbolic links; POSIX
31799         doesn't specify the latter.
31800         Check for closedir errors.
31801         Avoid needless casts.
31802         Use "#ifdef weak_alias" around weak_alias, to be like other
31803         glibc code.
31804         The following changes to getcwd.c have effect only when used in
31805         gnulib; they have no effect inside glibc proper.
31806         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31807         as alloca isn't used.
31808         (alloca, __alloca): Likewise.
31809         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31810         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31811         unconditionally, as gnulib assumes C89 or better.
31812         Do not include <sys/param.h>.
31813         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31814         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31815         better.
31816         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31817         Include <dirent.h> in a way that is compatible with modern Autoconf.
31818         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31819         New macros, if not already defined.
31820         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31821         Use "_LIBC", not "defined _LIBC", for consistency.
31822         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31823         a mempcpy module.
31824         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31825         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31826         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31827         credit only to Jim Meyering and adjust the copyright dates.
31828         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31829         <stdlib.h>, <unistd.h>, "pathmax.h".
31830         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31831         (INITIAL_BUFFER_SIZE): Remove.
31832         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31833
31834 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31835
31836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31837         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
31838         Use the _ONCE methods, for efficiency.
31839         Check for fcntl.h.  In test program, include <errno.h>
31840         and <fcntl.h> if available.  Remove old K&R cruft from
31841         test program.  Check for common errors in GNU/Linux,
31842         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
31843         don't do AC_LIBOBJ, as that's getcwd.m4's job.
31844         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31845         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
31846         name accordingly.
31847         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
31848         accommodate new getcwd.c.
31849         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31850         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31851         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31852         that's all we need now.
31853
31854 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31855
31856         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31857         argp-parse.c depends on getopt internals, that means we should
31858         always use our getopt, to be on the safe side.
31859         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31860         order not to spoil the result of an eventual previous invocation
31861         of gl_GETOPT_SUBSTITUTE.
31862
31863 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31864
31865         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31866         redefinition warnings. To avoid them, include the defines
31867         in `#if !defined __need_getopt ... #endif'. The only place
31868         where __getopt_argv_const is used is in definitions
31869         of getopt_long and getopt_long_only below, which are as well
31870         protected by `#ifndef __need_getopt'.
31871         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31872         __need_getopt after including <stdio.h> and <unistd.h> These
31873         headers might have defined it.
31874
31875 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31878
31879 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31880
31881         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31882         (futimens): New function, which uses futimes if available.
31883         (futimens, utimens): Support timespec==NULL, with same semantics
31884         as utime and utimens.
31885         * lib/utimens.h (futimens): New decl.
31886
31887 2004-11-23  Jim Meyering  <jim@meyering.net>
31888
31889         * lib/getopt_.h: Remove trailing blanks.
31890
31891 2004-11-23  Jim Meyering  <jim@meyering.net>
31892
31893         * lib/__fpending.c: Add comment.
31894
31895 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
31896
31897         * modules/canonicalize (Depends-on): Add xreadlink.
31898         Problem reported by James Youngman.
31899
31900 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31901
31902         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31903         New macros.
31904         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31905         optopt): Use them instead of invoking ## directly; otherwise, the
31906         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31907
31908 2004-11-19  Bruno Haible  <bruno@clisp.org>
31909
31910         * lib/strtok_r.c: Move comments from here...
31911         * lib/strtok_r.h: ... to here.
31912
31913 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31916         implementations that mishandle size_t overflow.
31917
31918 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31919
31920         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31921         might fail.  Problem reported by Yoann Vandoorselaere.
31922         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31923         implementations that mishandle size_t overflow.
31924
31925 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31926
31927         * modules/canon-host (Depends-on): Add strdup.
31928
31929 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31930
31931         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31932
31933 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31934
31935         * lib/canon-host.c: Include "strdup.h".
31936         (canon_host): Use getaddrinfo if available, so that IPv6 works.
31937         Use strdup instead of malloc/strcpy to duplicate strings.
31938
31939         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31940         (human_space_before_unit): New constant.
31941         * lib/human.c (human_readable): Support it.
31942
31943         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31944         (xgetcwd): Set errno correctly when failing.
31945         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31946         the failure is actually due to a PATH_MAX problem.
31947
31948         Further getopt changes to make it more likely that glibc will
31949         buy the changes back.
31950         * lib/getopt.c (POSIXLY_CORRECT): New constant.
31951         (getopt): Use it, so to preserve glibc semantic
31952         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31953         when compiling for libc.
31954         * lib/getopt_.h (__getopt_argv_const): Bring it back.
31955         (getopt_long, getopt_long_only): Use it.
31956
31957         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31958         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
31959         (getopt): Argv is now char * const *, as per standard.
31960         (_getopt_internal_r, _getopt_internal): Argv is now char **,
31961         not char *__getopt_argv_const *.
31962         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31963         _getopt_long_only_r): Likewise.
31964         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31965         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31966         _getopt_long_r, _getopt_long_only_r): Likewise.
31967         * lib/getopt_.h (__getopt_argv_const): Remove.
31968         (getopt): Argv is now char * const *, as per standard.
31969
31970         * lib/getdate.y (tORDINAL): New token.
31971         (day, relunit): Allow it for relative times.
31972         (relative_time_table): Use tORDINAL for ordinals.
31973
31974 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31975
31976         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31977         Document that "second" isn't allowed as an ordinal number.
31978
31979 2004-11-16  Jim Meyering  <jim@meyering.net>
31980
31981         * modules/closeout (Depends-on): Add fpending.
31982
31983 2004-11-15  Jim Meyering  <jim@meyering.net>
31984
31985         * lib/closeout.c: Include "__fpending.h" once again.
31986         Include <stdbool.h>.
31987         (close_stdout): Don't fail just because stdout was closed initially,
31988         since some programs don't write to stdout in the normal course of
31989         operation (other than --version and --help), and we don't want this
31990         function to make e.g. `touch file >&-' fail.
31991         But do fail if it was closed and someone has tried to write to it.
31992         E.g., `printf foo >&-' must fail.
31993
31994 2004-11-13  Jim Meyering  <jim@meyering.net>
31995
31996         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31997
31998 2004-11-12  Simon Josefsson  <jas@extundo.com>
31999
32000         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32001         small doc fix is still pending.
32002
32003 2004-11-11  Simon Josefsson  <jas@extundo.com>
32004
32005         * modules/strtok_r: New file.
32006
32007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32008         strtok_r.
32009
32010 2004-11-11  Simon Josefsson  <jas@extundo.com>
32011
32012         * m4/strtok_r.m4: New file.
32013
32014         * m4/getopt.m4: Replace opterr.
32015
32016 2004-11-11  Simon Josefsson  <jas@extundo.com>
32017
32018         * lib/strtok_r.h, strtok_r.c: New file.
32019
32020 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32021
32022         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32023         of replacing opterr, getopt, etc.  This should handle the
32024         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32025
32026 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32027
32028         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32029         we can stop lying to compilers about the constness of argv when we
32030         are compiled outside glibc.
32031         (getopt, getopt_long, getopt_long_only): Use it.
32032         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32033         _getopt_internal, getopt): Likewise.
32034         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32035         _getopt_long_only_r): Likewise.
32036         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32037         _getopt_long_r, _getopt_long_only_r): Likewise.
32038
32039         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32040         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32041         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32042         the other external symbols.
32043         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32044         declaration, since the above renaming now works around collisions.
32045
32046 2004-11-11  Jim Meyering  <jim@meyering.net>
32047
32048         * lib/linebreak.c: Remove trailing blanks.
32049         * lib/alloca_.h: Likewise.
32050         * lib/acosl.c: Likewise.
32051         * lib/euidaccess.c: Likewise.
32052         * lib/allocsa.h: Likewise.
32053
32054 2004-11-10  Simon Josefsson  <jas@extundo.com>
32055
32056         * m4/getaddrinfo.m4: New file.
32057
32058 2004-11-10  Simon Josefsson  <jas@extundo.com>
32059
32060         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32061
32062 2004-11-10  Simon Josefsson  <jas@extundo.com>
32063
32064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32065         getaddrinfo.
32066
32067         * modules/getaddrinfo: New file.
32068
32069 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32070
32071         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32072
32073 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32074
32075         * lib/mktime.c (SHR): New macro, which is a portable
32076         substitute for >> that should work even on Crays.
32077         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32078         Problem reported by Mark D. Baushke in
32079         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32080         * lib/getdate.y (SHR): Likewise.
32081         (tm_diff): Use it.
32082         * lib/strftime.c (SHR): Likewise.
32083         (tm_diff): Use it.
32084         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32085         quote_these_too, so that right shifts are well defined.  All uses
32086         changed.
32087
32088 2004-11-10  Jim Meyering  <jim@meyering.net>
32089
32090         Ensure that no close failure goes unreported.
32091         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32092         return early when it seems there's nothing to flush.
32093         Don't include __fpending.h.
32094
32095 2004-11-10  Jim Meyering  <jim@meyering.net>
32096
32097         * modules/closeout (Depends-on): Remove fpending.
32098
32099 2004-11-10  Jim Meyering  <jim@meyering.net>
32100
32101         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32102
32103 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32104
32105         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32106         gl_FUNC_STRFTIME.
32107         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32108         and AC_REQUIRE when possible, to avoid duplicate checks.
32109         Check for <wchar.h>.
32110
32111 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32112
32113         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32114
32115 2004-11-09  Bruno Haible  <bruno@clisp.org>
32116
32117         * m4/sockpfaf.m4: New file.
32118
32119 2004-11-05  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32122         Reported by Mark D. Baushke <mdb@cvshome.org>.
32123
32124 2004-11-04  Bruno Haible  <bruno@clisp.org>
32125
32126         2004-09-11  Bruno Haible  <bruno@clisp.org>
32127                 * allocsa.valgrind: New file.
32128         2004-02-06  Bruno Haible  <bruno@clisp.org>
32129                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32130                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32131                 Reported by Christopher Seip <chris.seip@hp.com>.
32132
32133 2004-11-04  Bruno Haible  <bruno@clisp.org>
32134
32135         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32136         (Makefile.am): Distribute it.
32137
32138 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32139
32140         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32141         with errno == ERANGE if the buffer is too small.
32142         Problem reported by Mark D. Baushke.
32143
32144 2004-11-03  Albert Chin  <china@thewrittenword.com>
32145             Paul Eggert  <eggert@cs.ucla.edu>
32146
32147         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32148         equivalent, substitute $ac_type for equivalent type rather than
32149         blindly using uint32_t *always* which won't work if uint32_t is not
32150         available.  Define _UINT32_T to work around typedef of uint32_t if
32151         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32152         2.5.1.
32153
32154 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32155
32156         * m4/jm-macros.m4: Sync from coreutils.
32157         (gl_MACROS): Check for mbrlen, for pathchk.
32158         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32159
32160 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32161
32162         * lib/xreadlink.c (MAXSIZE): New macro.
32163         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32164         size does not exceed MAXSIZE.  Avoid cast.
32165         As suggested by Mark D. Baushke in
32166         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32167         if readlink fails with buffer size just under MAXSIZE, try again
32168         with MAXSIZE.
32169
32170 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32171
32172         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32173
32174 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32175         and  Paul Eggert  <eggert@cs.ucla.edu>
32176
32177         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32178         (get_date): Overparenthesize to avoid GCC warning.
32179
32180 2004-11-02  Bruno Haible  <bruno@clisp.org>
32181
32182         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32183         returns void.
32184
32185 2004-11-02  Bruno Haible  <bruno@clisp.org>
32186
32187         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32188         function returns void.
32189
32190 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32191
32192         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32193         fflush_unlocked, flockfile, funlockfile, funlockfile,
32194         fputs_unlocked, putc_unlocked.
32195
32196 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32197
32198         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32199         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32200         already declared.
32201
32202 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         * modules/getdate (Files): Add doc/getdate.texi.
32205         (Depends-on): Add setenv, xalloc.
32206
32207 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32208
32209         * lib/getdate.y: Add support for TZ="foo" within a date string.
32210         Fix some bugs near time_t boundaries.  Reject dates with
32211         out-of-range components, e.g., "Sept 31".
32212         Include <stdlib.h>, "setenv.h", "xalloc.h".
32213         (ISDIGIT_LOCALE): Remove; unused.
32214         Note that the TZ and time functions used here are not reentrant.
32215         (mktime_ok, get_tz): New functions.
32216         (TZBUFSIZE): New constant.
32217         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32218         This requires that we sometimes generate our own TZ="XXX..." setting.
32219
32220 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32221
32222         * doc/getdate.texi: New file, from coreutils with modifications for
32223         the new TZ parsing.
32224
32225 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32226
32227         * lib/mktime.c (not_equal_tm): Remove redundant check.
32228
32229 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         * modules/regex (lib_SOURCES): Add regex.c.
32232         Reported by James Youngman in
32233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32234
32235 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32236
32237         * lib/getdate.y: Use Bison 1.875 features, and some minor
32238         code cleanups.  This change does not affect semantics.
32239         Don't include <stdlib.h>; no longer needed.
32240         Don't include unlocked-io.h; only the "#if TEST" code uses
32241         stdio, and performance isn't crucial there.
32242         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32243         Bison 1.875 features as described below.
32244         All uses of "PC." replaced by "pc->".
32245         (YYSTYPE): Add a forward declaration.
32246         (yylex, yyerror): Use full prototypes in forward decls.
32247         Use "%pure-parser" rather than obsolescent "%pure_parser".
32248         Use %parse-param and %lex-param instead of obsolescent
32249         YYPARSE_PARAM and YYLEX_PARAM.
32250         (meridian_table, month_and_day_table, time_units_table,
32251         relative_time_table, time_zone_table, military_table,
32252         lookup_zone, lookup_word, get_date):
32253         Use NULL instead of 0 where appropriate.
32254         (to_hour): Avoid abort (), to avoid a dependency on
32255         stdlib.h.
32256         (yyerror, yylex): Now accepts parser_control * arg.
32257         (main) [TEST]: Use '\0' rather than 0 for char.
32258
32259 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32260
32261         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32262
32263 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32264
32265         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32266         It's now the caller's responsibility to handle the case where
32267         !HAVE_GETPAGESIZE && !defined getpagesize.
32268
32269         * lib/mktime.c (leapyear): Arg is long int, not int.
32270
32271 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32272
32273         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32274
32275 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32276
32277         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32278         missing.  Problem reported by James Youngman.
32279
32280 2004-10-16  Simon Josefsson  <jas@extundo.com>
32281
32282         * gnulib-tool: Fix comments.  Fix parse problem.
32283         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32284
32285 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32286
32287         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32288         implementation of getopt_long.  Problem reported by Alexander Taler in:
32289         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32290
32291 2004-10-15  Bruno Haible  <bruno@clisp.org>
32292
32293         * gnulib-tool: Untabify. Initialize supplied_libname.
32294         (func_usage): More homogenous output.
32295         (func_modules_transitive_closure, func_modules_to_filelist,
32296         func_emit_lib_Makefile_am): New functions.
32297         (func_import): New function, extracted from big case statement. Use
32298         func_get_license, func_modules_transitive_closure,
32299         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32300         opt_lgpl. Don't use test -a, as it's not portable.
32301         (func_create_testdir): Use func_modules_transitive_closure,
32302         func_modules_to_filelist, func_emit_lib_Makefile_am.
32303
32304 2004-10-15  Bruno Haible  <bruno@clisp.org>
32305
32306         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32307
32308 2004-10-15  Bruno Haible  <bruno@clisp.org>
32309
32310         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32311         the portions belonging to each module.
32312         Suggested by Derek Robert Price <derek@ximbiot.com>.
32313
32314 2004-10-12  Simon Josefsson  <jas@extundo.com>
32315
32316         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32317         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32318         to real functions.
32319
32320 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32321
32322         * modules/vsnprintf: New file.
32323
32324 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32325
32326         * m4/vsnprintf.m4: New file.
32327
32328 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32329
32330         * lib/vsnprintf.h: New file.
32331         * lib/vsnprintf.c: New file.
32332
32333 2004-10-11  Bruno Haible  <bruno@clisp.org>
32334
32335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32336         vsnprintf.
32337
32338 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32339
32340         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32341
32342 2004-10-07  Bruno Haible  <bruno@clisp.org>
32343
32344         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32345         fits into the provided buffer.
32346
32347 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32348
32349         * lib/diacrit.c, diacrit.h: Add GPL notice.
32350
32351         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32352         notice.
32353         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32354         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32355         This avoids a potential constant-folding bug.
32356
32357 2004-10-05  Bruno Haible  <bruno@clisp.org>
32358
32359         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32360         for the declaration of strsep.
32361
32362 2004-10-05  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32365
32366 2004-10-04  Simon Josefsson  <jas@extundo.com>
32367
32368         * modules/memmem: New file.
32369         * tests/test-memmem.c: New file.
32370         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32371
32372 2004-10-04  Simon Josefsson  <jas@extundo.com>
32373
32374         * m4/memmem.m4: New file.
32375
32376 2004-10-04  Simon Josefsson  <jas@extundo.com>
32377
32378         * lib/memmem.h: New file.
32379         * lib/memmem.c: New file, taken from glibc.
32380
32381 2004-10-04  Simon Josefsson  <jas@extundo.com>
32382
32383         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32384         '#ifdef USE_UNLOCKED_IO'.
32385
32386 2004-10-04  Simon Josefsson  <jas@extundo.com>
32387
32388         * config/srclist.txt: Add memmem from glibc.
32389
32390 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32391
32392         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32393
32394         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32395         modules/exclude, modules/getdate, modules/getline,
32396         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32397         modules/getusershell, modules/linebuffer, modules/md5,
32398         modules/mountlist, modules/posixtm, modules/readtokens,
32399         modules/readutmp, modules/regex, modules/sha1,
32400         modules/version-etc, modules/yesno:
32401         Remove dependency on unlocked-io.
32402
32403 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32404
32405         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32406
32407         * m4/unlocked-io.m4: Add copyright notice.
32408         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32409
32410 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32411
32412         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32413         * lib/xmalloc.c (xmemdup): Likewise.
32414         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32415         XFREE): Remove these long-obsolescent macros.
32416         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32417         * lib/xstrdup.c: Remove.
32418
32419         * lib/regex.c (re_comp): Cast gettext return value to char *,
32420         Problem reported by Martin Neitzel via Mark D. Baushke.
32421
32422 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32423
32424         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32425         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32426         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32427         regex.c, sha1.c, version-etc.c, yesno.c:
32428         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32429         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32430         the includer's responsibility.
32431
32432         Sync from coreutils.
32433
32434         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32435         points to the start of a string, as the C Standard says the
32436         resulting behavior is undefined.
32437
32438         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32439         simple -> simple_backups, numbered_existing ->
32440         numbered_existing_backups, numbered -> numbered_backups
32441         to avoid shadowing problems.  All uses changed.
32442         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32443         * lib/backupfile.c (check_extension, numbered_backup):
32444         Rename locals to avoid shadowing 'basename'.
32445         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32446         once.
32447
32448         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32449         * lib/.cvsignore: Add getopt.h.
32450
32451 2004-10-04  Bruno Haible  <bruno@clisp.org>
32452
32453         * modules/README: New file.
32454         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32455         not a module.
32456
32457 2004-10-02  Jim Meyering  <jim@meyering.net>
32458
32459         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32460
32461 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32462
32463         * modules/strsep: New file.
32464
32465 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32466
32467         * m4/strsep.m4: New file.
32468
32469 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32470
32471         * lib/strsep.h: New file.
32472         * lib/strsep.c: New file.
32473
32474 2004-10-01  Simon Josefsson  <jas@extundo.com>
32475
32476         * lib/snprintf.c (snprintf): Handle size==0.
32477
32478 2004-10-01  Simon Josefsson  <jas@extundo.com>
32479             Bruno Haible  <bruno@clisp.org>
32480
32481         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32482         (snprintf): Declare 'args'.
32483
32484 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * lib/snprintf.c: Remove comments as to why each header is needed.
32487
32488 2004-10-01  Bruno Haible  <bruno@clisp.org>
32489
32490         * MODULES.html.sh: Add strsep.
32491
32492 2004-09-30  Simon Josefsson  <jas@extundo.com>
32493
32494         * modules/snprintf: New file.
32495
32496 2004-09-30  Simon Josefsson  <jas@extundo.com>
32497
32498         * m4/snprintf.m4: New file.
32499
32500 2004-09-30  Simon Josefsson  <jas@extundo.com>
32501
32502         * lib/snprintf.h, lib/snprintf.c: New files.
32503
32504 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32505
32506         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32507         (hol_entry_help): Never translate an empty string.
32508         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32509         * lib/argp.h (OPTION_NO_TRANS): New option.
32510
32511 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         * modules/argp (Maintainer): Replace Simon Josefsson
32514         by Sergey Poznyakoff.
32515
32516 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32517
32518         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32519         changes merged back into glibc.
32520
32521 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32522
32523         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32524
32525 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32526
32527         * lib/xvasprintf.c: Include xalloc.h.
32528         (xvasprintf): Use xalloc_die, not xmalloc_die.
32529
32530 2004-09-29  Bruno Haible  <bruno@clisp.org>
32531
32532         * modules/alloca-opt: New file, derived from modules/alloca.
32533         * modules/allocsa: Depend on alloca-opt instead of alloca.
32534         * modules/setenv: Likewise.
32535         * modules/vasnprintf: Likewise.
32536         * MODULES.html.sh: Add alloca-opt.
32537
32538 2004-09-28  Simon Josefsson  <jas@extundo.com>
32539
32540         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32541         LGPL, and to replace license template from GPL to LGPL.
32542
32543 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32544
32545         * modules/dummy: Change license to LGPL.
32546
32547 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32548
32549         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32550
32551 2004-09-24  Simon Josefsson  <jas@extundo.com>
32552
32553         * modules/minmax (License): Change from GPL to LGPL.
32554
32555 2004-09-23  Simon Josefsson  <jas@extundo.com>
32556
32557         * gnulib-tool (--import): Typo.
32558
32559 2004-09-23  Simon Josefsson  <jas@extundo.com>
32560
32561         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32562
32563 2004-09-22  Bruno Haible  <bruno@clisp.org>
32564
32565         * modules/*: Add 'License' field.
32566         * gnulib-tool: Accept --extract-license option.
32567         (func_get_license): New function.
32568
32569 2004-09-21  Bruno Haible  <bruno@clisp.org>
32570
32571         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32572         Reported by Simon Josefsson.
32573
32574 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32575
32576         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32577         gl_AC_TYPE_LONG_LONG.
32578
32579 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32582
32583 2004-09-18  Simon Josefsson  <jas@extundo.com>
32584         and  Paul Eggert  <eggert@cs.ucla.edu>
32585
32586         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32587         calls with autoreconf.  Define GL_LIB.
32588
32589 2004-09-14  Karl Berry  <karl@gnu.org>
32590
32591         * config/srclist.txt: unsync setenv.c, sigh.
32592
32593 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32594
32595         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32596         Problem reported by Bruno Haible in:
32597         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32598
32599 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * config/srclist.txt: Comment out argp-pvh.c.
32602
32603 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32604
32605         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32606         in case some system header has #define'd it.  Problem reported by
32607         Soeren D. Schulze in
32608         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32609
32610 2004-09-09  Karl Berry  <karl@gnu.org>
32611
32612         * regex.[ch]: delete from the root.  These were supposed to be
32613                 synced with emacs cvs, but this has not happened for about
32614                 a year, and anyway nothing else uses emacs regex.[ch].
32615                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32616                 lib/regex[.ch] is untouched.
32617
32618 2004-09-09  Bruno Haible  <bruno@clisp.org>
32619
32620         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32621
32622 2004-09-09  Bruno Haible  <bruno@clisp.org>
32623
32624         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32625         modifications.
32626         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32627
32628 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32629
32630         * modules/xvasprintf: New file.
32631         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32632
32633 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32634
32635         * lib/xvasprintf.h: New file.
32636         * lib/xvasprintf.c: New file.
32637         * lib/xasprintf.c: New file.
32638
32639 2004-09-08  Bruno Haible  <bruno@clisp.org>
32640
32641         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32642
32643 2004-09-08  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32646         length is > INT_MAX.
32647         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32648         more.
32649
32650 2004-09-08  Bruno Haible  <bruno@clisp.org>
32651
32652         * lib/stdint_.h: New file, taken from GNU clisp.
32653
32654 2004-09-08  Bruno Haible  <bruno@clisp.org>
32655             Oskar Liljeblad  <oskar@osk.mine.nu>
32656
32657         * modules/stdint: New file.
32658         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32659
32660 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32661
32662         Import from coreutils.
32663         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32664         strings on unbounded length.  alloca's performance benefits aren't
32665         that important here.
32666         (V_STRDUP): Remove.
32667         (parse_with_separator): New function, with most of the internals
32668         of the old parse_user_spec.  Allow user to omit both user and group,
32669         for compatibility with FreeBSD.
32670         Clone only the user name, not the entire spec.
32671         Do not set *uid, *gid unless entirely successful.
32672         Avoid memory leak in some failing cases.
32673         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32674         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32675         (parse_user_spec): Rewrite to use parse_with_separator.
32676
32677 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32678
32679         * modules/userspec: Don't depend on alloca.
32680
32681 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32682
32683         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32684
32685 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32686
32687         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32688         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32689         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32690
32691 2004-08-16  Simon Josefsson  <jas@extundo.com>
32692
32693         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32694         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32695         Add --dry-run for --import.
32696         Let user provided command line parameters override configure.ac
32697         settings.
32698
32699 2004-08-12  Simon Josefsson  <jas@extundo.com>
32700
32701         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32702         as discussed with Paul Eggert in threads rooted at
32703         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32704         and
32705         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32706         Before, the test was empty, and relied on ELIDE_CODE in source
32707         code.)
32708         (gl_PREREQ_GETOPT): New macro.
32709         (gl_GETOPT): Use them.
32710
32711 2004-08-12  Simon Josefsson  <jas@extundo.com>
32712
32713         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32714         * lib/getopt_.h: Renamed from getopt.h.
32715
32716 2004-08-12  Simon Josefsson  <jas@extundo.com>
32717
32718         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32719         Change default library name from libfoo to libgnu.
32720         Now, if you have a configure.ac that says:
32721                 gl_SOURCE_BASE(gl)
32722                 gl_M4_BASE(gl/m4)
32723                 gl_MODULES(error getopt etcetera)
32724                 gl_INIT
32725         you can import all you need by running:
32726                 ../gnulib/gnulib-tool --import
32727
32728         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32729         (Makefile.am): Rewrite, use logic from argz.
32730         (Include): Use <getopt.h> instead of "getopt.h".
32731
32732 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32733
32734         * modules/argp (Files): Add m4/unlocked-io.m4.
32735         (Depends-on): Add extensions.
32736
32737 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32738
32739         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32740         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32741         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32742         Check for program_invocation_name, program_invocation_short_name,
32743         flockfile, funlockfile, features.h, _getopt_long_only_r.
32744
32745 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32746
32747         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32748         its complicated substitute.
32749         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32750         and program_invocation_name.
32751         (__argp_basename) [!_LIBC]: Remove; the only use was
32752         replaced by its body.
32753         (__argp_short_program_name): Change condition from
32754         !defined __argp_short_program_name to
32755         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32756         to match argp-namefrob.h.
32757         (__argp_failure): Don't assume strerror_r returns char *.
32758         * lib/argp-parse.c (N_): Define unconditionally.
32759         (argp_default_options): Fill out initializers with 0 to avoid
32760         gcc warnings.
32761
32762 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32763
32764         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32765         getopt1.c.
32766
32767 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32768
32769         Merge from coreutils.
32770
32771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32772
32773         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32774         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32775
32776 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32777
32778         Merge from coreutils.
32779
32780         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32781         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32782         for Reliant Unix 5.43.
32783
32784         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32785         (union fooround): Use uintmax_t, not long int.
32786         The rest is a merge from libc:
32787         [defined _LIBC]: Include <shlib-compat.h>.
32788         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32789
32790         * lib/settime.c (settime): Recode to avoid warning with
32791         Sun Forte C 6U2.
32792
32793         * lib/strverscmp.c: Convert to UTF-8.
32794
32795 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32796
32797         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32798         m4/uintmax_t.m4.
32799
32800 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32801
32802         * modules/xalloc-die: New file.
32803         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32804
32805         * modules/md5 (Files): Add m4/uint32_t.m4.
32806         * modules/sha1: Renamed from modules/sha.
32807         (Files):
32808         Rename lib/sha.h to lib/sha1.h.
32809         Rename lib/sha.c to lib/sha1.c.
32810         Rename m4/sha.m4 to m4/sha1.m4.
32811         (lib_SOURCES): Likewise.
32812         (configure.ac): Rename gl_SHA to gl_SHA1.
32813         (Include): sha.h -> sha1.h.
32814
32815 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32816
32817         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32818         * m4/sha1.m4: Renamed from sha.m4.
32819         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32820
32821 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32822
32823         * lib/obstack.h (obstack_empty_p):
32824         Don't assume that chunk->contents is suitably aligned.
32825         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32826         Likewise. Problem reported by Benno in
32827         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32828
32829         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32830         readable.  This could be improved further but it'd take some work.
32831
32832 2004-08-08  Simon Josefsson  <jas@extundo.com>
32833
32834         * modules/xgethostname (Depends-on): Remove exit and error (not
32835         used).
32836
32837         * modules/getpass-gnu: Add getpass.h.
32838         (Depends-on): Add stdbool.
32839         * modules/getpass: Add getpass.h.
32840
32841 2004-08-08  Simon Josefsson  <jas@extundo.com>
32842
32843         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32844         Check getpass declaration.
32845
32846 2004-08-08  Simon Josefsson  <jas@extundo.com>
32847
32848         * lib/xgethostname.c: Don't include error.h (not used).
32849
32850         * lib/getpass.h: Add.
32851         * lib/getpass.c: Include getpass.h first.
32852
32853 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32854
32855         * lib/xalloc-die.c: New file.
32856         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32857         All uses removed.
32858         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32859         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32860         xalloc-die.c.
32861         (_, N_, xalloc_die): Move to xalloc-die.c.
32862         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32863         so that we needn't mess with xalloc_msg_memory_exhausted.
32864
32865         * lib/sha1.h: Renamed from sha.h.
32866         (SHA1_H): Renamed from _SHA_H.
32867         (sha1_ctx): Renamed from sha_ctx.
32868         (sha1_init_ctx): Renamed from sha_init_ctx.
32869         (sha1_process_block): Renamed from sha_process_block.
32870         (sha1_process_bytes): Renamed from sha_process_bytes.
32871         (sha1_finish_ctx): Renamed from sha_finish_ctx.
32872         (sha1_read_ctx): Renamed from sha_read_ctx.
32873         (sha1_stream): Renamed from sha_stream.
32874         (sha1_buffer): Renamed from sha_buffer.
32875         * lib/sha1.c: Likewise; renamed from sha.c.
32876         Do not include <sys/types.h>.
32877         Include <stddef.h> rather than <stdlib.h>.
32878
32879 2004-08-08  Bruno Haible  <bruno@clisp.org>
32880
32881         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32882         FILESYSTEM_PREFIX_LEN.
32883         * lib/progreloc.c: Likewise.
32884         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32885
32886 2004-08-06  Simon Josefsson  <jas@extundo.com>
32887
32888         * modules/progname (Depends-on): Don't depend on stdbool.
32889
32890 2004-08-06  Simon Josefsson  <jas@extundo.com>
32891
32892         * modules/getsubopt: New file.
32893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32894         getsubopt.
32895
32896 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         More merge from coreutils.
32899
32900         * m4/utimens.m4, m4/utimecmp.m4: New files.
32901         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32902         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32903         prereq.m4, sha.m4: Import changes from coreutils.
32904
32905 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32906
32907         More merge from coreutils.
32908         * modules/raise, modules/readtokens0, modules/utimens:
32909         * modules/utimecmp, module/xnanosleep: New files.
32910         * modules/strftime: Add lib/strftime.h.
32911         Change include from <time.h> to "strftime.h".
32912         * modules/yesno: Add lib/yesno.h.
32913         * modules/backupfile: Remove lib/addext.c.
32914         * modules/euidaccess: Add stat-macros.h.
32915         * modules/canonicalize, modules/euidaccess,
32916         modules/filemode, modules/lchown, modules/makepath,
32917         modules/rmdir, modules/stat: Likewise.
32918
32919 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32920
32921         Merge from tar.
32922         * lib/argp-help.c (make_hol, hol_append): Don't assume that
32923         SIZE_MAX is a valid preprocessor constant.
32924         (__argp_basename): Change from "#ifndef _LIBC"
32925         to "#ifndef __argp_short_program_name", so that
32926         we don't compile these functions for tar.
32927
32928         More merges from coreutils.
32929         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32930         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32931         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32932         * lib/addext.c: Remove; no longer needed.
32933         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32934         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32935         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32936         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32937         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32938         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32939         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32940         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32941         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32942         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32943         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32944         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32945         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32946         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32947         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32948         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32949         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32950         Import changes from coreutils.
32951
32952 2004-08-05  Simon Josefsson  <jas@extundo.com>
32953
32954         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32955
32956 2004-08-05  Simon Josefsson  <jas@extundo.com>
32957
32958         * m4/getsubopt.m4: New file.
32959
32960 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         Merge from coreutils.
32963
32964         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32965         * m4/getcwd-path-max.m4: New files.
32966
32967         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32968         FILESYSTEM_PREFIX_LEN ->
32969         FILE_SYSTEM_PREFIX_LEN.
32970         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32971         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32972         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32973         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32974
32975         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32976         prerequisite modules now handle the DOS stuff.
32977         Don't check for unistd.h.
32978
32979 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         Merge from coreutils.
32982
32983         * lib/.gdb-history: Remove; this doesn't belong here.
32984
32985         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32986         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32987         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32988         * lib/getcwd.c: New files.
32989
32990         * lib/dirname.h: Include <stdbool.h>.
32991         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32992         for consistency with POSIX terminology.  All uses changed.
32993         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32994         (strip_trailing_slashes): Use bool for booleans.
32995         * lib/stripslash.c (strip_trailing_slashes): Likewise.
32996
32997         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32998         sometimes returns a positive errno value even when it succeeds.
32999         (print_errno_message) [!LIBC]: Fall back on strerror if
33000         __strerror_r fails.
33001
33002         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33003         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33004         (longest_relative_suffix): New function.
33005         (path_concat): Use it.  Assume first argument is not NULL.
33006         Port to DOS.  Omit redundant separators.
33007         Report an error instead of returning NULL.
33008         Use mempcpy instead of memcpy.
33009         (xpath_concat): Remove: not declared or used.
33010
33011         * lib/same.h: Include <stdbool.h>
33012         (same_name): Return bool, not int.
33013         * lib/same.c (same_name): Likewise.
33014         (errno): Don't declare; we assume C89 or better now.
33015
33016         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33017         if not already defined.
33018
33019         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33020         * lib/dup-safer.c (errno): Likewise.
33021
33022 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33023
33024         Merge from coreutils.
33025         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33026         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33027         * modules/path-concat: Don't depend on strdup.
33028
33029 2004-08-03  Simon Josefsson  <jas@extundo.com>
33030
33031         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33032         * lib/progname.h: Don't include stdbool.h.
33033
33034 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33035
33036         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33037         * MODULES.html.sh (func_all_modules): Remove fatal.
33038
33039 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33040
33041         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33042
33043 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33044
33045         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33046         working.
33047
33048 2004-08-02  Simon Josefsson  <jas@extundo.com>
33049
33050         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33051         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33052         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33053
33054 2004-08-01  Simon Josefsson  <jas@extundo.com>
33055
33056         * lib/xgetdomainname.c: Include stdlib.h, for free().
33057
33058 2004-07-19  Bruno Haible  <bruno@clisp.org>
33059
33060         * MODULES.html.sh (func_all_modules): Add dummy.
33061
33062 2004-07-16  Simon Josefsson  <jas@extundo.com>
33063
33064         * modules/dummy: New file.
33065
33066 2004-07-16  Simon Josefsson  <jas@extundo.com>
33067
33068         * lib/dummy.c: New file.
33069
33070 2004-07-16  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/backupfile.h: Add extern "C" for C++.
33073         * lib/closeout.h: Likewise.
33074         * lib/copy-file.h: Likewise.
33075         * lib/findprog.h: Likewise.
33076         * lib/full-write.h: Likewise.
33077         * lib/pathname.h: Likewise.
33078         * lib/progname.h: Likewise.
33079         * lib/stpcpy.h: Likewise.
33080         * lib/stpncpy.h: Likewise.
33081         * lib/strcase.h: Likewise.
33082         * lib/strstr.h: Likewise.
33083         * lib/xalloc.h: Likewise.
33084
33085         * lib/mbswidth.h: Add extern "C" for C++.
33086         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33087
33088 2004-07-13  Robert Millan  <robertmh@gnu.org>
33089
33090         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33091
33092 2004-07-09  Simon Josefsson  <jas@extundo.com>
33093
33094         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33095         failed without this.)
33096
33097 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33098
33099         * modules/chown (Files): Add lib/fchown-stub.c, since
33100         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33101
33102 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33103
33104         * lib/fchown-stub.c: New file.
33105
33106 2004-06-24  Jim Meyering  <jim@meyering.net>
33107
33108         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33109
33110 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33111
33112         * modules/argz: Omit "#include".
33113
33114         * MODULES.html.sh (func_all_modules): Add calloc, to match
33115         2004-06-01 addition of calloc module.
33116
33117 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33118
33119         * m4/argz.m4: New file, which is autoupdated from libtool.
33120
33121 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33124         libtool.
33125
33126 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33127
33128         * config/srclist-update: Don't insist on "USA." before the
33129         close-comment, as libtool omits the period and puts the */ on a
33130         separate line.
33131         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33132         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33133
33134 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33135
33136         * modules/argz: New file.
33137         * MODULES.html.sh (func_all_modules): Add argz.
33138
33139 2004-06-12  Jim Meyering  <jim@meyering.net>
33140         and  Paul Eggert  <eggert@cs.ucla.edu>
33141
33142         * modules/hash (Files): Add lib/xalloc.h.
33143         * modules/pipe (Depends-on): Add wait-process.
33144         * modules/stat (Depends-on): Add xalloc.
33145         * modules/userspec (Files): Add lib/userspec.h.
33146         * modules/xstrto
33147
33148         Upgrade from gettext-0.13.
33149         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33150         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33151         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33152
33153 2004-06-10  Jim Meyering  <jim@meyering.net>
33154
33155         * lib/calloc.c: New file.
33156
33157 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33158
33159         * lib/getdate.y (yylex): Allow space between sign and number.
33160         Problem reported by Dan Jacobson.
33161
33162 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33163
33164         Merge from coreutils CVS.
33165
33166         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33167         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33168         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33169         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33170         xstrtol.m4: Fix copyright date and/or serial number.
33171
33172         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33173         See if we need an fchown replacement.
33174         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33175         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33176         and use the replacement function if we detect either defect.
33177
33178         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33179         gl_UTIMECMP.
33180
33181 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33182         and  Jim Meyering  <jim@meyering.net>
33183
33184         Merge from coreutils CVS.
33185
33186         * lib/stat-macros.h: New file, with contents from file-type.h
33187         and coreutils' system.h.
33188         * lib/file-type.c: Include "stat-macros.h".
33189         * lib/file-type.h (file_type): Move all macro definitions to new file,
33190         stat-macros.h.
33191
33192         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33193         Wrap old code with this conditional.
33194         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33195         function that does not dereference symlinks.
33196         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33197
33198         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33199         dependency problems.
33200         (xreadlink): Accept new arg SIZE, for efficiency.
33201         All decls and uses changed.
33202         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33203
33204         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33205         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33206
33207         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33208         sysexits.h.
33209
33210 2004-06-01  Jim Meyering  <jim@meyering.net>
33211
33212         * m4/calloc.m4: New file.
33213
33214 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33215
33216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33217         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33218         Also, fix a typo in a diagnostic.
33219
33220 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33221
33222         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33223         or AC_FUNC_REALLOC.
33224
33225 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33228         macros to be defined.
33229         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33230         the allocator returns NULL because the requested size is zero.
33231
33232 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33233
33234         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33235         var.  Add comment explaining why libc still defines it.  This
33236         merges the following patch from glibc:
33237         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33238
33239 2004-05-20  Andreas Schwab  <schwab@suse.de>
33240
33241         * m4/free.m4: Replace free if it not known to work, not the other
33242         way round.
33243
33244 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33245
33246         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33247         present in glibc since revision 1.1 of this file.
33248         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33249         obstack_alignment_mask, obstack_alloc, obstack_base,
33250         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33251         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33252         obstack_grow0, obstack_init, obstack_int_grow,
33253         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33254         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33255         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33256         nonexistent functions.
33257
33258 2004-05-18  Karl Berry  <karl@gnu.org>
33259
33260         * config/srclist.txt: break link for vasnprintf.c.
33261
33262 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33263
33264         Port obstack to the AS/400, where pointers are 16 bytes wide and
33265         you cannot cast an integer to a valid pointer.  This patch is
33266         currently waiting to be integrated into glibc; see
33267         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33268
33269         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33270         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33271         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33272         (struct obstack): temp member is now a union of a pointer and
33273         an integer, instead of an integer.  All integer uses changed.
33274         This does not affect the physical layout of struct obstack,
33275         except on hosts (like the AS/400) where the size or alignment of
33276         void * is greater than that of ptrdiff_t.
33277         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33278         __STDC__)]: Store temporary in pointer member of union, not
33279         integer member.
33280         * lib/obstack.c: Include <stddef.h>, for offsetof.
33281         (struct fooalign): Remove; it doesn't need a name.
33282         (union fooround): Change double to long double, and add void *.
33283         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33284         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33285         not a macro.  Hence the values are always int; so remove all
33286         casts-to-int in uses.
33287
33288 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33291         we can get this patch merged into glibc.
33292
33293 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33294             Paul Eggert  <eggert@cs.ucla.edu>
33295
33296         * m4/argp: Depend on alloca.
33297
33298 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33299             Paul Eggert  <eggert@cs.ucla.edu>
33300
33301         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33302         freecoding.
33303
33304 2004-05-17  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33307         precision that consists of a '.' followed by an empty digit string.
33308         Patch by Tor Lillqvist <tml@iki.fi>.
33309
33310 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33311
33312         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33313         for backward compatibility with older code.  We need our own
33314         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33315         it under some other name, and our alloca.h will define it.
33316
33317 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33318             Derek Price  <derek@ximbiot.com>
33319
33320         * lib/alloca.c: Include <alloca.h>, to get our interface.
33321         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33322         include <alloca.h> first.  Use C89 prototype for alloca; this
33323         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33324         Use #elif for simplicity, since we can assume C89 now.
33325         Don't try to source the system alloca.h since it will not be found
33326         and to prevent recursively including its replacement.
33327         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33328         * lib/regex.c: Likewise.
33329
33330 2004-05-16  Derek Price  <derek@ximbiot.com>
33331             Paul Eggert  <eggert@cs.ucla.edu>
33332
33333         getline cleanup.  This changes the getndelim2 API: both order of
33334         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33335         no delimiter).
33336
33337         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33338         interface does that.
33339         (getline): Always use getdelim, so that we don't have two
33340         copies of this code.
33341         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33342         if available.
33343         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33344         (GETNDELIM2_MAXIMUM): New macro.
33345         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33346         instead of the old practice of delim2==0.  All callers changed.
33347         Return -1 on overflow, instead of returning junk.
33348         Do not set *linesize unless allocation succeeds.
33349         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33350         that we include sys/types.h.
33351         * lib/getnline.h: Likewise.
33352         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33353         (getndelim2): Reorder arguments.
33354         * lib/getnline.c (getnline, getndelim):
33355         Don't discard the NMAX argument.
33356         (getnline): Invoke getndelim, to avoid code duplication.
33357         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33358         of (size_t) -1 by callers of the getnline family.
33359
33360 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33361
33362         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33363         Check for gettimeofday.
33364         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33365         Check for settimeofday, stime.
33366
33367 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33368
33369         * lib/nanosleep.c (suspended): Change its type from int to
33370         sig_atomic_t volatile.
33371         (first_call): Make it private to rpl_nanosleep, and have it
33372         be zero initially as that's a bit faster.
33373         (my_usleep): Round up fractional times instead of truncating them,
33374         as this is the usual meaning for 'sleep'.
33375
33376         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33377         doesn't work.
33378         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33379         (ENOSYS): Define if not defined.
33380         (settime): Fall back on stime if it exists and settimeofday fails.
33381         But don't bother with fallbacks if a method fails with errno == EPERM.
33382
33383 2004-05-11  Jim Meyering  <jim@meyering.net>
33384
33385         Prior to this change, the save_cwd caller required read access to the
33386         current directory on most systems (ones with the fchdir function).
33387
33388         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33389         fails, try write-only, and finally, resort to using xgetcwd.
33390
33391 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33392
33393         * lib/obstack.c, obstack.h: Import changes from libc.
33394
33395 2004-04-28  Bruno Haible  <bruno@clisp.org>
33396
33397         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33398         also implicitly appends .exe to executables.
33399         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33400         accepts Windows pathnames.
33401         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33402         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33403         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33404         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33405         Reported by Derek Robert Price <derek@ximbiot.com>.
33406
33407 2004-04-21  Karl Berry  <karl@gnu.org>
33408
33409         * config/srclist.txt (localcharset.c): break sync.
33410
33411 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33412
33413         * m4/host-os.m4: Add a copyright notice.
33414
33415 2004-04-20  Jim Meyering  <jim@meyering.net>
33416
33417         Change UTILS_ to gl_ in AC_DEFINE'd names.
33418         Change utils_- and jm_-prefixed variables, too.
33419         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33420         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33422
33423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33424         Don't emit trailing blanks.
33425         Also rename jm_-prefixed variables to have gl_ prefix.
33426
33427         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33428         Also rename jm_-prefixed variables to have gl_ prefix.
33429
33430         * m4/jm-macros.m4: Reflect the renamings.
33431         * m4/prereq.m4: Likewise.
33432
33433 2004-04-20  Jim Meyering  <jim@meyering.net>
33434
33435         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33436         memory.
33437
33438 2004-04-20  Jim Meyering  <jim@meyering.net>
33439             Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33442         memory when realloc fails.
33443
33444 2004-04-19  Jim Meyering  <jim@meyering.net>
33445
33446         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33447         now that readutmp.c may call `free (0)'.
33448
33449 2004-04-19  Bruno Haible  <bruno@clisp.org>
33450
33451         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33452         * m4/inttypes_h.m4: Likewise.
33453         * m4/stdint_h.m4: Likewise.
33454         * m4/intmax_t.m4: Likewise.
33455         * m4/uintmax_t.m4: Likewise.
33456
33457 2004-04-18  Jim Meyering  <jim@meyering.net>
33458
33459         * m4/prereq.m4: Don't forbid jm_ prefix.
33460
33461         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33462         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33463         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33464         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33465         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33466         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33467         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33468         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33469         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33470         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33471         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33472         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33473         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33474         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33475         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33476         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33477         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33478         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33479         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33480
33481 2004-04-18  Jim Meyering  <jim@meyering.net>
33482
33483         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33484         failure, don't leak memory and do call END_UTMP_ENT.
33485
33486 2004-04-16  Jim Meyering  <jim@meyering.net>
33487
33488         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33489         coreutils' stat program.
33490         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33491
33492 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33493
33494         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33495         C89.
33496         (CHAR_BIT): Remove, since we assume C89.
33497         Include <stdint.h> if available, as per current Autoconf CVS advice.
33498
33499 2004-03-31  Jim Meyering  <jim@meyering.net>
33500
33501         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33502         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33503         * m4/xalloc.m4: Likewise.
33504
33505 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33506
33507         Merge from coreutils.
33508
33509         * m4/inttostr.m4: New file.
33510         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33511         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33512         Require gl_CLOCK_TIME.
33513         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33514
33515 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33516
33517         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33518         not bool, to be more consistent with Unix conventions.
33519         Suggested by Bruno Haible.
33520
33521         Merge from coreutils.
33522
33523         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33524         * lib/umaxtostr.c: New files.
33525
33526         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33527         the usual <time.h> dance.
33528         (get_date): Change signature to support fractional time stamps.
33529         All callers changed.
33530         * lib/getdate.y: Include "getdate.h" first, as we can now
33531         assume C89 and don't need to worry about 'const'.
33532         Similarly, include "unlocked-io.h" near start, not in middle.
33533         Include <limits.h>.
33534         (textint.value): Use long int rather than int.
33535         (textint.digits): Use size_t rather than int.
33536         (BILLION, LOG10_BILLION): New constants.
33537         (parser_control): New member rel_ns.  Members day_ordinal,
33538         time_zone, month, day, hour, minutes, rel_year, rel_month,
33539         rel_day, rel_hour, rel_minutes, rel_seconds
33540         are now long int, not int.  Member seconds is now struct timespec,
33541         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33542         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33543         not int.
33544         (%union.intval): Now long int, not int.
33545         New member timespec.
33546         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33547         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33548         (spec): Now is a timespec or an item list.
33549         (timespec, items): New nonterminals.
33550         (time, rel, relunit, number, get_date):
33551         Add support for fractional seconds.
33552         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33553         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33554         (to_hour): First arg is now long int, not int.
33555         (to_year): Returns long int, not int.
33556         Don't treat year -70 like 70.
33557         (tm_diff): Returns long int, not int.
33558         (lookup_word): Use bool instead of int when appropriate.
33559         (yylex): Use size_t for count, not int.
33560         Detect overflow when parsing large integer constants.
33561         Add support for fractions.
33562         (get_date): Make pointers 'const' if possible.
33563         Use more-portable code to detect integer overflow.
33564         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33565         Don't use ctime; it's not reliable if the year has >4 digits.
33566
33567         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33568         This is for compatibility with BSD.
33569
33570         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33571         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33572         From coreutils' system.h.
33573
33574         * lib/userspec.c: Don't include "posixver.h".
33575         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33576         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33577         compatible extension.  Simplify code by removing a boolean int
33578         that was always nonzero if a string was nonnull.
33579
33580 2004-03-30  Jim Meyering  <jim@meyering.net>
33581
33582         Merge from coreutils.
33583
33584         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33585         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33586         on some systems one must include <grp.h> before it.
33587         Reported by Christian Krackowizer.
33588
33589 2004-03-30  Jim Meyering  <jim@meyering.net>
33590
33591         Merge from coreutils.
33592
33593         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33594
33595         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33596         an empty input stream.
33597
33598         * lib/readtokens.c: Include <stdbool.h>.
33599         (readtoken): Use `size_t' rather than int/long.
33600         All callers adjusted.
33601         Use `bool' rather than `int' where appropriate.
33602         Use memset rather than an explicit loop.
33603         Use x2nrealloc rather than xrealloc.
33604         Allow the use of `\0' as a delimiter.
33605         (readtokens): Likewise.
33606         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33607
33608 2004-03-30  Jim Meyering  <jim@meyering.net>
33609
33610         * m4/realloc.m4: Remove file, since now it does no more than
33611         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33612         the `configure.ac' section of module/realloc.
33613         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33614
33615 2004-03-30  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33618         nonnull.
33619
33620 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33621
33622         Merge changes to getloadavg.c from coreutils and Emacs.
33623
33624         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33625         Define to an expression, not to the empty string.
33626         Include cloexec.h and xalloc.h.
33627         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33628         Use set_cloexec_flag rather than rolling our own.
33629         * lib/cloexec.c, lib/cloexec.h: New files.
33630
33631 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33632
33633         * m4/cloexec.m4: New file.
33634
33635 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33636
33637         * lib/getopt.h: Sync with libc CVS.
33638
33639 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33640             Bruno Haible  <bruno@clisp.org>
33641
33642         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33643         mbswidth.
33644
33645 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33646             Bruno Haible  <bruno@clisp.org>
33647
33648         * lib/mbswidth.h: Include <wchar.h> only if
33649         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33650         <wchar.h>.
33651         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33652
33653 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33654
33655         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33656         Sync with libc CVS.
33657         * lib/getopt_int.h: New file, also synced from libc.
33658
33659 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33660
33661         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33662         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33663         Bring back getopt.c, getopt.h, getopt1.c.
33664
33665 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33666
33667         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33668         All uses changed.  Check for sa_sigaction member; this fixes
33669         a bug first reported by Jason Andrade in
33670         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33671
33672 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33673
33674         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33675         '#if' expressions.  Unlike the code it replaces, it does not
33676         depend on (defined _SC_PAGESIZE).  However, it does depend on
33677         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33678         first reported by Jason Andrade in
33679         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33680
33681 2004-02-25  Simon Josefsson  <jas@extundo.com>
33682
33683         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33684
33685 2004-02-25  Simon Josefsson  <jas@extundo.com>
33686
33687         * lib/strdup.h: New file.
33688         * lib/strdup.c: Include it.
33689         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33690         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33691
33692 2004-02-23  Karl Berry  <karl@gnu.org>
33693
33694         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33695         (from fencepost.gnu.org:/gd/gnuorg).
33696
33697 2004-02-23  Karl Berry  <karl@gnu.org>
33698
33699         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33700         * config/srclist.txt: add maintain/standards documents.
33701
33702 2004-02-18  Bruno Haible  <bruno@clisp.org>
33703
33704         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33705         Reported by Derek Robert Price <derek@ximbiot.com>.
33706
33707 2004-02-16  Karl Berry  <karl@gnu.org>
33708
33709         * config/mkinstalldirs, install-sh: update from automake.
33710
33711 2004-02-06  Karl Berry  <karl@gnu.org>
33712
33713         * m4/po.m4: update from gettext 0.14.1.
33714
33715 2004-02-06  Karl Berry  <karl@gnu.org>
33716
33717         * lib/config.charset: update from gettext 0.14.1.
33718
33719 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33720
33721         Add comments and code, prompted by suggestions from Bruno Haible
33722         for sh-quote.
33723         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33724         describing the enum quoting_style values.
33725         * lib/quotearg.c (quotearg_alloc): New function.
33726         (quotearg_buffer_restyled): Treat lone { and } as special.
33727         Treat = as special.  Work around bug with older shells
33728         that "see" a '\' that is really the 2nd byte of a multibyte char.
33729         Quote empty string with shell_quoting_style.
33730
33731 2004-02-03  Bruno Haible  <bruno@clisp.org>
33732
33733         * m4/pipe.m4: New file, from GNU gettext.
33734
33735 2004-02-03  Bruno Haible  <bruno@clisp.org>
33736
33737         * lib/pipe.h: New file, from GNU gettext.
33738         * lib/pipe.c: New file, from GNU gettext.
33739
33740 2004-01-27  Bruno Haible  <bruno@clisp.org>
33741
33742         * m4/execute.m4: New file, from GNU gettext.
33743
33744 2004-01-27  Bruno Haible  <bruno@clisp.org>
33745
33746         * lib/execute.h: New file, from GNU gettext.
33747         * lib/execute.c: New file, from GNU gettext.
33748         * lib/w32spawn.h: New file, from GNU gettext.
33749
33750 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33751
33752         Merge from diffutils.
33753
33754         * lib/file-type.c (file_type): Add typed memory objects.
33755         * lib/file-type.h (S_TYPEISTMO): New macro.
33756
33757         * lib/c-stack.h (c_stack_action): Remove argv argument.
33758         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33759         (die): Don't calculate message unless segv_action returns.
33760         (get_stack_location, min_address_from_argv, max_address_from_argv,
33761         volatile stack_base, volatile_stack_size): Remove.
33762         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33763         that every segmentation violation is a stack overflow.  (Ouch!)
33764         See Debian bug 136249 (still outstanding) for more info about why
33765         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33766
33767 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33768
33769         Exit-status fix from coreutils.
33770
33771         Use exit_failure consistently in place of EXIT_FAILURE,
33772         so that program exit statuses are consistent on failure.
33773
33774         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33775         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33776         * lib/argmatch.h: Comment fix to match the above.
33777         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33778         Now a macro referring to exit_failure, instead of a separate
33779         variable.  Include "exitfail.h" to get it.
33780         * lib/xstrtol.h: Include "exitfail.h".
33781         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33782
33783         * lib/long-options.c (parse_long_options): Use prototype
33784         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33785         for clarity.
33786
33787 2004-01-21  Jim Meyering  <jim@meyering.net>
33788
33789         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33790         so as not to conflict with a different-sized __mktime_internal
33791         function in GNU libc.
33792         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33793         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33794
33795 2004-01-20  Karl Berry  <karl@gnu.org>
33796
33797         * config/config.guess: update from config.
33798
33799         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33800
33801 2004-01-20  Bruno Haible  <bruno@clisp.org>
33802
33803         Safer stack allocation.
33804         * lib/setenv.c: Include allocsa.h.
33805         (alloca): Remove fallback definition.
33806         (freea): Remove macro.
33807         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33808         instead of freea.
33809
33810 2004-01-20  Bruno Haible  <bruno@clisp.org>
33811
33812         * m4/eealloc.m4: New file, from GNU gettext.
33813
33814 2004-01-20  Bruno Haible  <bruno@clisp.org>
33815
33816         * m4/allocsa.m4: New file, from GNU gettext.
33817
33818 2004-01-20  Bruno Haible  <bruno@clisp.org>
33819
33820         * lib/xallocsa.h: New file, from GNU gettext.
33821         * lib/xallocsa.c: New file, from GNU gettext.
33822
33823 2004-01-20  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33826
33827 2004-01-20  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33830         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33831         specially.
33832
33833 2004-01-20  Bruno Haible  <bruno@clisp.org>
33834
33835         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33836         patch.
33837
33838 2004-01-20  Bruno Haible  <bruno@clisp.org>
33839
33840         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33841
33842 2004-01-20  Bruno Haible  <bruno@clisp.org>
33843
33844         * lib/eealloc.h: New file.
33845
33846 2004-01-20  Bruno Haible  <bruno@clisp.org>
33847
33848         * lib/binary-io.h: Avoid warnings on Cygwin.
33849
33850 2004-01-20  Bruno Haible  <bruno@clisp.org>
33851
33852         * lib/allocsa.h: New file, from GNU gettext.
33853         * lib/allocsa.c: New file, from GNU gettext.
33854
33855 2004-01-18  Karl Berry  <karl@gnu.org>
33856
33857         * doc/gpl.texi, doc/lgpl.texi: new files.
33858
33859 2004-01-18  Karl Berry  <karl@gnu.org>
33860
33861         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33862         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33863
33864 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33865
33866         Merge from coreutils.
33867
33868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33869         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33870         (gl_DEFAULT_POSIX2_VERSION): Move
33871         the documentation from 'configure' into 'config.hin',
33872         so that 'configure --help' isn't burdened by it and
33873         we don't have to worry about its formatting there.
33874         Reword the documentation so that it's more succinct
33875         and can be run together into a single paragraph.
33876         * m4/same.m4 (gl_SAME): Check for pathconf.
33877
33878 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33879
33880         Merge from coreutils.
33881
33882         * lib/posixver.c: Include posixver.h.
33883
33884         * lib/same.c: Include <stdbool.h>, <limits.h>.
33885         (_POSIX_NAME_MAX): Define if not defined.
33886         (MIN): New macro.
33887         (same_name): If file names are silently truncated, report
33888         that the file names are the same if they are the same after
33889         the silent truncation.
33890
33891         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33892         conversion function.
33893         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
33894         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
33895         longer needed.
33896
33897 2004-01-15  Jim Meyering  <jim@meyering.net>
33898
33899         Merge from coreutils.
33900
33901         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33902         if no library is required.
33903         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33904         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33905         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33906         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33907         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33908         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33909         value, $ac_cv_search_crypt, if it's "none required".
33910         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33911         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33912         not gl_FUNC_GETLOADAVG.
33913         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33914         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33915
33916 2004-01-15  Jim Meyering  <jim@meyering.net>
33917
33918         Merge from coreutils.
33919
33920         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
33921         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
33922         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33923
33924         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33925         optional configure-time default.
33926
33927         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33928
33929         * lib/xreadlink.c (xreadlink): Correct outdated comment.
33930
33931 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
33932
33933         Merge from coreutils.
33934
33935         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33936         value, $ac_cv_search_nanosleep, if it's "none required".
33937
33938 2004-01-14  Paul Eggert  <eggert@twinsun.com>
33939
33940         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33941         with like-named macro in fnmatch.c.
33942         (EXT): Use an internal constant instead.
33943
33944         Merge fnmatch patches from glibc.
33945         * lib/fnmatch.c (mbsinit): Remove define.
33946         Add libc_hidden_ver (__fnmatch, fnmatch).
33947         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33948         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33949
33950 2004-01-14  Karl Berry  <karl@gnu.org>
33951
33952         * config/install-sh: update from automake.
33953
33954 2004-01-13  Karl Berry  <karl@gnu.org>
33955
33956         * config/install-sh: update from automake.
33957
33958 2004-01-09  Karl Berry  <karl@gnu.org>
33959
33960         * config/install-sh: update from automake.
33961
33962 2004-01-05  Karl Berry  <karl@gnu.org>
33963
33964         * config/config.{sub,guess}: update from config.
33965
33966 2003-12-31  Karl Berry  <karl@gnu.org>
33967
33968         * config/depcomp: update from automake.
33969
33970 2003-12-14  Karl Berry  <karl@gnu.org>
33971
33972         * lib/config.charset: update from gettext-runtime.
33973
33974 2003-12-03  Paul Eggert  <eggert@twinsun.com>
33975
33976         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33977         Bug reported by Alfred M. Szmidt.
33978
33979 2003-12-03  Bruno Haible  <bruno@clisp.org>
33980
33981         * m4/gettext.m4: Upgrade from gettext-0.13.
33982         * m4/po.m4: Upgrade from gettext-0.13.
33983         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33984         * m4/intmax.m4: New file, from gettext-0.13.
33985         * m4/printf-posix.m4: New file, from gettext-0.13.
33986
33987 2003-11-29  Karl Berry  <karl@gnu.org>
33988
33989         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33990
33991 2003-11-25  Paul Eggert  <eggert@twinsun.com>
33992             Bruno Haible  <bruno@clisp.org>
33993
33994         * lib/printf-parse.h: Don't include sys/types.h.
33995         (ARG_NONE): New macro.
33996         (char_directive): Change type of *arg_index fields to size_t.
33997         * lib/printf-parse.c: Don't include sys/types.h.
33998         (SSIZE_MAX): Remove macro.
33999         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34000         Remove unnecessary overflow check.
34001         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34002         fields.
34003
34004 2003-11-25  Bruno Haible  <bruno@clisp.org>
34005
34006         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34007
34008 2003-11-25  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34011         gt_TYPE_SSIZE_T.
34012
34013 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34014
34015         * modules/alloca: Remove dependency on xalloc.
34016
34017 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34018
34019         * lib/alloca.c: Remove dependency on xalloc module.
34020         (xalloc_die): Remove.
34021         (memory_full) [!defined emacs]: New macro.
34022         [!defined emacs]: Don't include xalloc.h.
34023         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34024         address arithmetic overflows.  Change datatypes a bit to avoid
34025         unnecessary casts.
34026
34027 2003-11-22  Jim Meyering  <jim@meyering.net>
34028
34029         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34030         s/size/size_t/.
34031
34032 2003-11-21  Karl Berry  <karl@gnu.org>
34033
34034         * config/config.{sub,guess}: update from config.
34035
34036 2003-11-18  Karl Berry  <karl@gnu.org>
34037
34038         * config/config.{sub,guess}: update from config.
34039
34040         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34041
34042 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34043
34044         * README: Mention that S+T cannot overflow if S is the size of
34045         an existing object and T is sufficiently small.
34046
34047 2003-11-17  Jim Meyering  <jim@meyering.net>
34048
34049         On systems without utime and without a utimes function capable of
34050         dealing with a NULL struct utimbuf* argument, this utime replacement
34051         could -- in unusual circumstances -- leak a file descriptor.
34052         * lib/utime.c: Include <unistd.h> and <errno.h>.
34053         (utime_null): Be sure to close `fd' and to preserve errno.
34054         Reported by Geoff Collyer via Arnold Robbins.
34055
34056 2003-11-17  Bruno Haible  <bruno@clisp.org>
34057
34058         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34059         (Depends-on): Add xsize.
34060
34061 2003-11-17  Bruno Haible  <bruno@clisp.org>
34062
34063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34064
34065 2003-11-17  Bruno Haible  <bruno@clisp.org>
34066
34067         * lib/vasnprintf.c (alloca): Remove fallback definition.
34068         (freea): Remove definition.
34069         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34070         Reported by Paul Eggert.
34071
34072 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34073             Bruno Haible  <bruno@clisp.org>
34074
34075         Protect against address arithmetic overflow.
34076         * lib/printf-args.h: Include stddef.h.
34077         (arguments): Change type of field 'count' to size_t.
34078         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34079         'unsigned int' where appropriate.
34080         * lib/printf-parse.h: Include sys/types.h.
34081         (char_directive): Change type of *arg_index fields to ssize_t.
34082         (char_directives): Change type of fields 'count', max_*_length to
34083         size_t.
34084         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34085         (SSIZE_MAX): Define fallback value.
34086         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34087         instead of 'int' where appropriate. Check a_allocated, d_allocated
34088         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34089         * lib/vasnprintf.c: Include xsize.h.
34090         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34091         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34092         overflow. Avoid wraparound when converting a width or precision from
34093         decimal to binary.
34094
34095 2003-11-16  Bruno Haible  <bruno@clisp.org>
34096
34097         Update from GNU gettext.
34098         * lib/printf-parse.c: Generalize to it can be compiled for wide
34099         strings.
34100         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34101         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34102         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34103         SNPRINTF): New macros.
34104         Don't include <alloca.h> if the file is used inside libintl.
34105         (local_wcslen): New function, for Solaris 2.5.1.
34106         (VASNPRINTF): Use it instead of wcslen.
34107
34108 2003-11-16  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/xsize.h (xmax): New function.
34111         (xsum, xsum3, xsum4): Declare as "pure" functions.
34112
34113 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34114
34115         * modules/xalloc (Files): Undo latest change, since xalloc.h
34116         no longer needs SIZE_MAX or PTRDIFF_MAX.
34117
34118 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34119
34120         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34121         gl_PTRDIFF_MAX.
34122
34123 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34124
34125         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34126         "return", to pacify some unknown compiler.  Problem reported
34127         by Joerg Schilling.
34128
34129 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34130
34131         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34132         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34133         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34134         heuristic is just as accurate as far as we know, and it removes a
34135         dependency on size_max.m4 and ptrdiff_max.m4.
34136
34137 2003-11-11  Bruno Haible  <bruno@clisp.org>
34138
34139         * modules/xsize (Files): Add m4/size_max.m4.
34140         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34141
34142 2003-11-11  Bruno Haible  <bruno@clisp.org>
34143
34144         * m4/size_max.m4: New file.
34145         * m4/ptrdiff_max.m4: New file.
34146         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34148         (gl_XALLOC): Invoke it.
34149
34150 2003-11-11  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34153         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34154         defined.
34155
34156 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34157
34158         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34159         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34160         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34161         From Bruno Haible.
34162         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34163         not (size_t) -1, since it's defined here.
34164
34165 2003-11-09  Karl Berry  <karl@gnu.org>
34166
34167         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34168
34169 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34170
34171         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34172         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34173         Reject sizes of exactly SIZE_MAX bytes.
34174         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34175         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34176
34177 2003-11-05  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34180         SIZE_MAX defined in <limits.h> on Solaris.
34181
34182 2003-11-04  Jim Meyering  <jim@meyering.net>
34183
34184         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34185         variable names, rather than @VAR@.
34186         * modules/poll: Likewise.
34187
34188 2003-11-04  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/xsize: New file.
34191         * modules/linebreak: Depend on xsize.
34192         * MODULES.html.sh (func_all_modules): Add xsize.
34193
34194 2003-11-04  Bruno Haible  <bruno@clisp.org>
34195
34196         * m4/xsize.m4: New file.
34197
34198 2003-11-04  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/xsize.h: New file.
34201         * lib/linebreak.c: Include xsize.h.
34202         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34203         argument for overflow.
34204         Suggested by Paul Eggert.
34205
34206 2003-11-03  Karl Berry  <karl@gnu.org>
34207
34208         * config/config.{guess,sub}: update from config.
34209
34210 2003-11-03  Jim Meyering  <jim@meyering.net>
34211
34212         * modules/userspec (lib_SOURCES): Add userspec.h.
34213         (Include): Add "userspec.h".
34214         Improve description.
34215
34216 2003-11-03  Jim Meyering  <jim@meyering.net>
34217
34218         * lib/userspec.c: Include "userspec.h".
34219         * lib/userspec.h: New file.
34220
34221 2003-11-03  Bruno Haible  <bruno@clisp.org>
34222
34223         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34224
34225 2003-11-03  Bruno Haible  <bruno@clisp.org>
34226
34227         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34228         available, to avoid (extremely rare) race condition.
34229         Suggested by Paul Eggert.
34230
34231 2003-11-02  Karl Berry  <karl@gnu.org>
34232
34233         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34234
34235 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34236
34237         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34238         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34239         (read_filesystem_list): Set and use me_type_malloced.
34240         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34241         whatever the type happens to be), for brevity and consistency.
34242         Check for size calculation overflow on Alphas running OSF/1.
34243
34244 2003-10-31  Jim Meyering  <jim@meyering.net>
34245
34246         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34247
34248         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34249
34250 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34251             Bruno Haible  <bruno@clisp.org>
34252
34253         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34254         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34255
34256 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34257
34258         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34259         netbsd*-gnu*.  Suggested by Robert Millan.
34260
34261 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34262
34263         * modules/group-member: Depend on stdbool.
34264
34265 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34266
34267         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34268
34269 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34270
34271         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34272         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34273         after the 'gnu' in these cases.  This fixes some bugs in the
34274         previous change, and is based on suggestions by Robert Millan.
34275
34276 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34277
34278         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34279         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34280         no longer needed.
34281         * lib/quotearg.c (quotearg_n_options): Use it.
34282         * lib/group-member.c: Include <stdbool.h>.
34283         (free_group_info): Arg is now const *; don't free arg.
34284         (get_group_info): Now returns bool and accepts struct group_info *,
34285         rather than returning a malloc'ed struct group_info *.
34286         All uses changed.  Check for overflow in internal size calculation.
34287
34288         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34289         rather than xmalloc/xrealloc.
34290         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34291         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34292         conformance bug: the old code used a pointer after freeing the
34293         storage that it addressed.
34294         * lib/hash.c (hash_initialize): Simplify the code by using
34295         xalloc_oversized rather than doing it by hand.
34296         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34297         the buffer preserved.  Use free and xmalloc instead.
34298         * lib/quotearg.c (quotearg_n_options): Likewise.
34299         Use a simpler test for size overflow.  Don't use xalloc_oversized
34300         because unsigned int might be wider than size_t (!); this suggests
34301         that we should switch from unsigned int to size_t for slot numbers.
34302
34303 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34304
34305         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34306         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34307         NetBSD kernels.  Requested by Richard Stallman.
34308
34309 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34310
34311         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34312         to allocate the returned structure.  Do not allocate a subarray,
34313         as x2nrealloc will do that.
34314         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34315         instead of xnrealloc.
34316         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34317
34318 2003-10-27  Bruno Haible  <bruno@clisp.org>
34319
34320         * lib/stdbool_.h: Better support for BeOS.
34321
34322 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34323
34324         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34325         now uses inline.
34326
34327 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34328
34329         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34330         callers that want to do their own size-overflow checking.  Include
34331         <stdbool.h>, since xalloc_oversized returns bool.
34332         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34333         to use xalloc_oversized.
34334
34335         Add two functions x2realloc, x2nrealloc, for programs that grow
34336         arrays dynamically by doubling their sizes.
34337         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34338         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34339         New functions.
34340
34341         Port to C99 semantics for 'inline' of external functions.
34342         Bug reported by Bruno Haible.
34343         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34344         with the old contents of xnmalloc.
34345         (xnmalloc, xmalloc): Use it.
34346         (xnrealloc_inline): New static inline function,
34347         with the old contents of xnrealloc.
34348         (xnrealloc, xrealloc): Use it.
34349
34350         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34351         that.
34352
34353 2003-10-26  Karl Berry  <karl@gnu.org>
34354
34355         * config/srclist.txt (COPYING.DOC): no longer available from
34356         /gd/gnuorg; don't know where the ultimate source is.
34357
34358 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34359
34360         Fix several address-calculation bugs in the hash modules,
34361         plus some minor code cleanup.
34362
34363         * lib/hash.h: Include <stdbool.h>, for bool.
34364         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34365         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34366         hash_get_n_entries, hash_get_max_bucket_length,
34367         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34368         hash_rehash): Use size_t rather than unsigned.
34369         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34370         hash_get_n_buckets_used, hash_get_n_entries,
34371         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34372         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34373         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34374         Likewise.
34375         (SIZE_MAX): Define if not defined.
34376         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34377         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34378         hash_print):
34379         Use const * when possible.
34380         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34381         (check_tuning): Fix bug: if tuning parameters were very close to
34382         0 or 1, rounding errors could have caused subscript violations.
34383         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34384         (hash_initialize): Add 'fail:' label
34385         to free table and return NULL, and use it to simplify code.
34386         Use calloc rather than clearing the storage ourself.
34387         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34388         buffer size calculations.
34389         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34390         Include <stddef.h>, for size_t.
34391         * lib/hash-pjw.c (hash_pjw): Likewise.
34392         Switch to method described by Bruno Haible.
34393         Include <limits.h>, for CHAR_BIT.
34394         (SIZE_BITS): New macro.
34395
34396 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34397
34398         * m4/getline.m4 (AM_FUNC_GETLINE):
34399         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34400         hosts.  Problem reported by Derek Robert Price in
34401         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34402         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34403         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34404
34405 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34406
34407         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34408         ceiling the allocation at NMAX bytes rather than silently
34409         discarding input bytes before NMAX is reached.  This makes
34410         a difference only if NMAX exceeds SIZE_MAX / 2.
34411
34412         * lib/obstack.c: Merge from glibc.
34413         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34414         Add libc_hidden_def (_obstack_newchunk).
34415         (_obstack_free) [! defined _LIBC]: Remove.
34416         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34417         a clone of the function body.
34418         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34419         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34420
34421         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34422         glibc.
34423         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34424         arg to memcpy.
34425
34426         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34427         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34428         Don't use lvalue casts, as GCC plans to remove support for them
34429         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34430         was also present in the non-GCC version, indicating that this
34431         code had always been buggy and had never been widely used.
34432         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34433         Use the fast variant of each macro, rather than copying the
34434         definiens of the fast variant; that way, we'll be more likely to
34435         catch future bugs in the fast variants.
34436
34437 2003-10-20  Bruno Haible  <bruno@clisp.org>
34438
34439         * modules/wait-process: New file.
34440         * MODULES.html.sh (func_all_modules): Add wait-process.
34441
34442 2003-10-20  Bruno Haible  <bruno@clisp.org>
34443
34444         * m4/wait-process.m4: New file.
34445
34446 2003-10-20  Bruno Haible  <bruno@clisp.org>
34447
34448         * lib/wait-process.h: New file, from GNU gettext.
34449         * lib/wait-process.c: New file, from GNU gettext.
34450
34451 2003-10-19  Jim Meyering  <jim@meyering.net>
34452
34453         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34454         HPUX 10.20.
34455
34456 2003-10-18  Karl Berry  <karl@gnu.org>
34457
34458         * config/config.guess: update from config.
34459
34460 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34461
34462         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34463         (getgroups): First arg is int, not size_t.
34464         Don't let 'free' mangle errno.
34465
34466 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34467
34468         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34469
34470 2003-10-16  Karl Berry  <karl@gnu.org>
34471
34472         * config/config.{guess,sub}: update from config.
34473
34474 2003-10-16  Jim Meyering  <jim@meyering.net>
34475
34476         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34477         memcpy.
34478
34479 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34480
34481         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34482         (SIZE_MAX): Remove.
34483         (new_exclude, add_exclude_file): Initial size no longer needs to
34484         be a power of 2.
34485         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34486         our own address arithmetic overflow checking.
34487
34488         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34489         (fnmatch): Do not alloca more than 2000 wide characters;
34490         instead, use malloc for large buffers.
34491         Check for address arithmetic overflow, and return -1
34492         with errno set to ENOMEM in that case.
34493         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34494         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34495         instead, return -1.  Check for address arithmetic overflow.
34496
34497 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34498
34499         Handle invalid suffixes and overflow independently, so that
34500         callers can treat them independently as needed.  Fix some bugs in
34501         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34502         suffix for a human-readable blocksize.  The major caller-visible
34503         change is the addition of a new
34504         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34505         that both overflow and suffix chars were found.
34506
34507         * lib/human.c (humblock): Don't check separately for invalid suffix
34508         char; that is xstrtoumax's job (now that its bug is fixed).
34509         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34510         INTMAX_MAX]: New macros.
34511         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34512         TYPE_MAXIMUM): New macros.
34513         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34514         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34515         if overflow occurs, as it's what __strtol does and it's more useful
34516         in practice.
34517         (__xstrtol): If __strtol reports some error other than ERANGE,
34518         reflect it to the caller as LONGINT_INVALID.  If it reports
34519         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34520         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34521         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34522         value.
34523         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34524         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34525         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34526         [defined UINTMAX_MAX]: New macros.
34527
34528 2003-10-14  Bruno Haible  <bruno@clisp.org>
34529
34530         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34531
34532 2003-10-14  Bruno Haible  <bruno@clisp.org>
34533
34534         * m4/sig_atomic_t: New file, from GNU gettext.
34535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34536
34537 2003-10-14  Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34540         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34541         Also use volatile where needed.
34542
34543 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34544
34545         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34546         Change maintainer from Bruno Haible to 'all'.
34547
34548 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34549
34550         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34551
34552 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34553
34554         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34555         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34556         and define in terms of the other primitives.
34557         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34558         (SIZE_MAX): Define if not already defined.
34559         (array_size_overflow): New function.
34560         (xalloc_die): Abort instead of exiting if 'error' returns.
34561         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34562         (xmalloc, xrealloc): Use them.
34563         (xcalloc): Check for address arithmetic overflow.
34564         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34565         a bit faster than strcpy.
34566
34567 2003-10-10  Simon Josefsson  <jas@extundo.com>
34568
34569         * modules/argp (Depends-on): Add restrict and strcase.
34570
34571 2003-10-10  Simon Josefsson  <jas@extundo.com>
34572
34573         * m4/argp.m4: Add AC_C_INLINE.
34574
34575 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34576
34577         Merge getpass from libc, plus a few fixes.
34578
34579         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34580         Include <stdbool.h>.
34581         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34582         __fsetlocking to empty.
34583         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34584         do include <bits/libc-lock.h>.
34585         Do not include <fcntl.h>; not needed.
34586         [_LIBC]: Include <wchar.h>.
34587         (NOTCANCEL_MODE): New macro.
34588         (flockfile, funlockfile) [_LIBC]: New macros.
34589         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34590         [!_LIBC]: New macros.
34591         (call_fclose): New function.
34592         (getpass): Use it.  Save tty stream separately; this simplifies the
34593         code and makes it more reliable if stdin happens to equal stdout.
34594         Invoke __fsetlocking on tty.
34595         Handle thread cancellation if needed.
34596         Namespace cleanup (use __tcgetattr, __getline).
34597         Use bool for Booleans.
34598         [USE_IN_LIBIO]: Handle wide streams.
34599         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34600         stream might go where.
34601
34602         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34603         doesn't have to include <stdio.h> before us.
34604         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34605         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34606         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34607         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34608         if not declared, so that we can use getpass.c code from libc without
34609         rewriting it.
34610         (flockfile, ftrylockfile, funlockfile): New macros.
34611
34612 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34613
34614         * modules/getpass: Depend on stdbool.
34615
34616 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34617
34618         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34619
34620 2003-10-07  Karl Berry  <karl@gnu.org>
34621
34622         * config/config.{guess,sub}: update from config.
34623
34624 2003-10-06  Jim Meyering  <jim@meyering.net>
34625             Bruno Haible  <bruno@clisp.org>
34626
34627         This lets translators provide better translations for the
34628         "Written by ..." part of --version output.
34629         * lib/version-etc.h: Include stdarg.h.
34630         (version_etc_copyright): Declare as readonly.
34631         (version_etc): Make this function variadic with a NULL-terminated list
34632         of author name strings.
34633         (version_etc_va): New declaration.
34634         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34635         (version_etc_copyright): Declare as readonly.
34636         (version_etc_va): New function. Provide a different translatable string
34637         for each possible number of authors < 10. Abbreviate when there are 10
34638         authors or more.
34639         (version_etc): Make this function variadic. Call version_etc_va.
34640         Suggestion from Gary V. Vaughan.
34641
34642         * lib/long-options.h (parse_long_options): Change prototype: the
34643         authors string is moved to the end and becomes variadic.
34644         * lib/long-options.c: Include stdarg.h.
34645         (parse_long_options): Make this function variadic, too.
34646         Call version_etc_va, not version_etc.
34647
34648 2003-10-06  Bruno Haible  <bruno@clisp.org>
34649
34650         * modules/version-etc-2: Remove file.
34651         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34652
34653 2003-10-06  Bruno Haible  <bruno@clisp.org>
34654
34655         * modules/fatal-signal: New file.
34656         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34657
34658 2003-10-06  Bruno Haible  <bruno@clisp.org>
34659
34660         * m4/fatal-signal.m4: New file.
34661         * m4/signalblocking.m4: New file, from GNU gettext.
34662
34663 2003-10-06  Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/version-etc-2.h: Remove file.
34666         * lib/version-etc-2.c: Remove file.
34667
34668 2003-10-06  Bruno Haible  <bruno@clisp.org>
34669
34670         * lib/fatal-signal.h: New file, from GNU gettext.
34671         * lib/fatal-signal.c: New file, from GNU gettext.
34672
34673 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34674
34675         * README: Rework advice for preventing empty .o files.
34676         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34677         not <sys/types.h>.
34678
34679 2003-10-04  Karl Berry  <karl@gnu.org>
34680
34681         * lib/argp*: update from libc.
34682
34683 2003-10-04  Karl Berry  <karl@gnu.org>
34684
34685         * config/config.{guess,sub}: update from config.
34686
34687 2003-10-02  Bruno Haible  <bruno@clisp.org>
34688
34689         * modules/lchown (Include): Add lchown.h.
34690         * modules/time_r (Include): Use "..." syntax.
34691         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34692
34693 2003-10-01  Simon Josefsson  <jas@extundo.com>
34694
34695         * MODULES.html.sh (func_all_modules): Move gethostname from section
34696         'based on' to section 'lacking' POSIX:2001.
34697
34698 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34699
34700         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34701         to output mode on the same stream.
34702
34703 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34704
34705         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34706         Fix arg typo in previous patch.
34707
34708 2003-09-28  Jim Meyering  <jim@meyering.net>
34709
34710         * lib/error.c: Correct cpp indentation.
34711
34712 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34713
34714         * modules/free: New file.
34715
34716 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34717
34718         * m4/free.m4: New file.
34719
34720 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34721
34722         * lib/minmax.h (MIN, MAX)
34723         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34724         Omit the special code that used __typeof__, since we worry that
34725         it could be more trouble than it's worth.  See:
34726         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34727         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34728
34729         * lib/free.c: New file.
34730
34731 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34732
34733         Trivial fixes to Makefile.am parts of module listings.
34734         * modules/strstr: Append strstr.h to lib_SOURCES.
34735         * modules/strcase: Likewise, for strcase.h.
34736
34737 2003-09-27  Karl Berry  <karl@gnu.org>
34738
34739         * config/mkinstalldirs: update from automake.
34740
34741 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34742
34743         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34744         (error_tail): Do not loop, reallocating temporary buffer, since
34745         the output cannot contain more wide characters than the input
34746         contains bytes, the size must be big enough already.  This avoids
34747         one potential size overflow calculation.  Check for size overflow
34748         when calculating temporary buffer size.  Free temporary buffer
34749         when done, if it was allocated with malloc; this plugs a memory
34750         leak.  Remove casts from void * to pointers, that are no longer
34751         needed now that we're assuming C89 or better.
34752
34753         Merge error changes from glibc.
34754
34755         * lib/error.c, error.h: Update copyright notice header to match glibc.
34756         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34757         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34758         Disable cancellation while printing error.
34759         * lib/error.h: Prepend __ to parameter names.
34760
34761 2003-09-26  Jim Meyering  <jim@meyering.net>
34762
34763         * lib/error.c (error_tail): Move some declarations
34764         into inner scope where the local variables are used.
34765
34766 2003-09-26  Bruno Haible  <bruno@clisp.org>
34767
34768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34769         stpncpy().
34770         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34771
34772 2003-09-26  Bruno Haible  <bruno@clisp.org>
34773
34774         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34775         (stpncpy): Define as alias for gnu_stpncpy.
34776         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34777
34778 2003-09-25  Simon Josefsson  <jas@extundo.com>
34779
34780         * lib/xgetdomainname.h: New file.
34781         * lib/xgetdomainname.c: New file.
34782
34783 2003-09-25  Simon Josefsson  <jas@extundo.com>
34784             Bruno Haible  <bruno@clisp.org>
34785
34786         * modules/getdomainname: New file.
34787         * modules/xgetdomainname: New file.
34788         * MODULES.html.sh (func_all_modules): Add getdomainname,
34789         xgetdomainname.
34790
34791 2003-09-25  Simon Josefsson  <jas@extundo.com>
34792             Bruno Haible  <bruno@clisp.org>
34793
34794         * m4/getdomainname.m4: New file.
34795
34796 2003-09-25  Simon Josefsson  <jas@extundo.com>
34797             Bruno Haible  <bruno@clisp.org>
34798
34799         * lib/getdomainname.h: New file.
34800         * lib/getdomainname.c: New file.
34801
34802 2003-09-25  Karl Berry  <karl@gnu.org>
34803
34804         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34805
34806 2003-09-25  Karl Berry  <karl@gnu.org>
34807
34808         * config/install-sh: update from automake.
34809
34810 2003-09-25  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/version-etc-2: New file, from modules/version-etc with
34813         modifications.
34814         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34815
34816 2003-09-25  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34819         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34820
34821 2003-09-24  Simon Josefsson  <jas@extundo.com>
34822
34823         * modules/xgethostname: Add xgethostname.h.
34824
34825 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34826
34827         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34828         the buffer associated with the argument.  Bug reported by
34829         Simon Josefsson.
34830
34831 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34832
34833         * README: Document assumptions that 'int' is at least 32 bits
34834         wide, that integer arithmetic is 2's complement without overflow,
34835         that there are no holes in integer values, that adding sizes of
34836         two nonoverlapping objects can't overflow, and that all-bits-zero
34837         yields scalar zero.  Fix spelling and capitalization typos.
34838
34839 2003-09-19  Karl Berry  <karl@gnu.org>
34840
34841         * lib/argp.h: update from libc.
34842
34843 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34844
34845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34846         to avoid spurious warnings like "AC_RUN_IFELSE was called before
34847         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34848
34849 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34850
34851         * gnulib-tool: Use "test -h", not "test -L", for portability
34852         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
34853         (tags_regexp): Remove, since \| doesn't conform to POSIX.
34854         (sed_extract_prog): Issue s commands one-by-one, rather than
34855         using \| in one s command.
34856
34857 2003-09-16  Paul Eggert  <eggert@twinsun.com>
34858
34859         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34860         input error, instead of returning NULL the next time we are called
34861         (and therefore losing track of errno).
34862
34863 2003-09-16  Bruno Haible  <bruno@clisp.org>
34864
34865         * gnulib-tool (func_create_testdir): Warn about duplicated
34866         dependencies.
34867
34868 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34869
34870         * modules/argmatch, modules/fatal, modules/obstack,
34871         modules/xalloc, modules/xgethostname: Sort dependencies by
34872         importance, not alphabetically.
34873
34874 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34875
34876         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34877         fails, so that the caller gets the proper errno.
34878
34879         * lib/readutmp.c (read_utmp): Likewise.
34880         Check for fstat error.  Close stream and free storage
34881         when failing.
34882
34883 2003-09-14  Karl Berry  <karl@gnu.org>
34884
34885         * config/srclist.txt (strdup.c): disable for c89 changes.
34886
34887 2003-09-14  Jim Meyering  <jim@meyering.net>
34888
34889         * lib/getloadavg.c: Correct cpp indentation.
34890         * lib/strdup.c: Likewise.
34891         * lib/vasnprintf.c: Likewise.
34892
34893 2003-09-14  Bruno Haible  <bruno@clisp.org>
34894
34895         * modules/fwriteerror: New file.
34896         * MODULES.html.sh (func_all_modules): Add fwriteerror.
34897
34898 2003-09-14  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/fwriteerror.h: New file.
34901         * lib/fwriteerror.c: New file.
34902
34903 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34904
34905         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34906         modules/xgethostname, modules/xalloc: Depend on exit.
34907
34908 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34909
34910         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34911
34912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34913         and AC_MINIX, too, so that their extensions are available.
34914
34915         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
34916         This macro has been superseded by gl_BACKUPFILE.
34917
34918         More patches to assume C89 or better.
34919
34920         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34921
34922         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34923         unconditionally.
34924         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34925         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34926         Include <string.h>, <stdlib.h> unconditionally.
34927         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34928         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34929         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34930         headers or for string.h.
34931         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34932         or strtoul.
34933
34934         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34935         headers.
34936         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34937         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34938         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34939         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34940         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34941         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34942         memcpy, memset.
34943         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34944         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34945         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34946         strtol.
34947         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34948         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34950         strtoul.
34951
34952 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34953
34954         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34955         * lib/obstack.c [!defined _LIBC]: Likewise.
34956         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34957         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34958         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34959
34960         More changes to assume C89 or better.
34961
34962         * lib/error.c (error_tail): Assume vprintf.
34963
34964         * lib/argmatch.c (getenv): Remove decl.
34965         * lib/progreloc.c (get_full_program_name): Define via prototype.
34966         * lib/setenv.c (clearenv): Likewise.
34967         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34968         needed.
34969         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34970         (malloc, memcpy): Remove decls.
34971         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34972         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34973         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34974         (memcpy): Remove macro.
34975         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34976         (__P): Remove.  All uses removed.
34977         (PTR): Remove.  All uses changed to void *.
34978         (CHAR_BIT, NULL): Remove.
34979         (spaces, zeros, memset_space, memset_zero)
34980         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34981         Remove.
34982         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34983         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34984         Define with prototype.
34985         Remove now-unnecessary prototype decl.
34986         (extra_args_spec): Assume ANSI C.  All uses changed.
34987         (extra_args_spec_iso): Remove.
34988         (my_strftime, emacs_strftimeu): Define via prototype.
34989         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34990         unconditionally.
34991         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34992         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34993         (strtoul, strtol): Remove decls.
34994         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34995         LONG_MAX): Remove.
34996         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34997         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
34998         (LOCALE_PARAM_PROTO): New macro.
34999         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35000         (INTERNAL (strtol), strtol): Define with a prototype.
35001         (PARAMS): Remove.  All uses removed.
35002         * lib/tempname.c: Include <string.h> unconditionally.
35003         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35004         * lib/xgethostname.c (main): Define with a prototype.
35005         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35006         Include <stdlib.h> unconditionally.
35007         (calloc, malloc, realloc, free): Remove decls.
35008         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35009         Include <stdlib.h> unconditionally.  Sort include file names.
35010         (strtod): Remove.
35011         (xstrtod): Define with a prototype.
35012         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35013         (strtol, strtoul): Remove decls.
35014
35015 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35016
35017         More patches to assume C89 or better.
35018         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35019         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35020         string.h, memchr, STDC_HEADERS.
35021
35022 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35023
35024         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35025         Include <stdlib.h>, <string.h> unconditionally.
35026         Remove now-unnecessary cast to char *.
35027         * lib/strnlen.c: Include <string.h> unconditionally.
35028         * lib/yesno.c (yesno): Define with a prototype.
35029
35030 2003-09-11  Bruno Haible  <bruno@clisp.org>
35031
35032         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35033
35034 2003-09-10  Jim Meyering  <jim@meyering.net>
35035
35036         * lib/error.c: Correct indentation of cpp directives.
35037
35038 2003-09-10  Bruno Haible  <bruno@clisp.org>
35039
35040         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35041         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35042         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35043         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35044         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35045         <stdlib.h> and <string.h> checks.
35046         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35047         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35048
35049 2003-09-10  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/strcspn.c: Include <string.h> unconditionally.
35052         * lib/strpbrk.c: Include <string.h> unconditionally.
35053         * lib/strstr.c: Include <string.h> unconditionally.
35054         * lib/unicodeio.c: Include <string.h> unconditionally.
35055         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35056         * lib/unsetenv.c: Likewise.
35057         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35058         * lib/yesno.c: Include <stdlib.h> unconditionally.
35059         (rpmatch): Add prototype.
35060
35061 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35062
35063         More patches to assume C89 or better.
35064         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35065         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35066         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35067         or for string.h.
35068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35069         stdlib.h.
35070         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35071         C headers.
35072         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35073         string.h.
35074         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35075         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35076         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35077         or for string.h.
35078         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35079         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35080         C headers.
35081         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35082         memcpy.
35083         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35084         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35085         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35086         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35087         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35088         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35089         string.h, free.
35090         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35091         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35092         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35093         C headers, or for string.h.
35094         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35095         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35096         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35097         headers, memory.h, stdlib.h, string.h, strings.h.
35098         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35099         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35100         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35101         strchr.
35102         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35103         headers, memory.h, string.h.
35104         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35105         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35106         free.
35107         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35108         headers.
35109         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35110         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35111         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35112         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35113         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35114
35115 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35116
35117         More K&R removal.
35118
35119         * lib/acosl.c (main): Use a prototype.
35120         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35121         tanl.c: Likewise.
35122
35123         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35124
35125         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35126         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35127         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35128         with a prototype.
35129         * lib/getopt.c (const): Remove macro.
35130         Include <string.h> unconditionally.
35131         (my_index): Remove; all uses changed to strchr.
35132         (strlen): Remove decl.
35133         (exchange): Remove forward decl; no longer needed.
35134         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35135         Define with prototype.
35136         * lib/getopt1.c (const): Remove macro.
35137         (getopt_long, getopt_long_only, main): Define with prototype.
35138
35139         * lib/getugroups.c: Include <string.h> unconditionally.
35140
35141         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35142         (getusershell, setusershell, endusershell, readname, main):
35143         Define with prototypes.
35144
35145         * lib/group-member.c: Include group-member.h first.
35146         Include <stdlib.h> unconditionally.
35147
35148         * lib/hard-locale.c: Include hard-locale.h first.
35149         Include <stdlib.h>, <string.h> unconditionally.
35150
35151         * lib/hash.c (free, malloc): Remove decls.
35152         Include <stdlib.h> unconditionally.
35153
35154         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35155         (getenv): Do not declare.
35156
35157         * lib/idcache.c: Include <string.h> unconditionally.
35158
35159         * lib/long-options.c: Include long-options.h first, to test interface.
35160         Include <stdlib.h> unconditionally.
35161
35162         * lib/makepath.c: Include makepath.h first, to test interface.
35163         Include <stdlib.h> and <string.h> unconditionally.
35164
35165         * lib/linebuffer.c: Include <stdlib.h>.
35166         (free): Remove decl.
35167
35168         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35169         stddef.h. rpl_malloc returns void *, not char *.
35170         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35171         prototype.
35172
35173         * lib/md5.h: Include <limits.h> unconditionally.
35174         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35175         (__P): Remove; all uses removed.
35176         * lib/md5.c: Include "md5.h" first.
35177         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35178         md5_buffer, md5_process_bytes, md5_process_block):
35179         Define with prototypes.
35180         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35181         * lib/sha.c: Include "sha.h" first.
35182         Include <stdlib.h>, <string.h> unconditionally.
35183
35184         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35185         * lib/memcmp.c (__ptr_t): Likewise.
35186         * lib/memrchr.c (__ptr_t): Likewise.
35187         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35188         Include <string.h> unconditionally.
35189         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35190         * lib/memchr.c: Include <stdlib.h> unconditionally.
35191         * lib/memchr.c (LONG_MAX): Remove.
35192         * lib/memrchr.c (LONG_MAX): Likewise.
35193         * lib/memchr.c (__memchr): Define via a prototype.
35194         * lib/memrchr.c (__memrchr): Likewise.
35195         * lib/memcmp.c (__P): Remove, and remove all uses.
35196         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35197         Remove forward decls; no longer needed.
35198         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35199         Use types required by C89 in prototype.
35200
35201         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35202         * lib/savedir.c: Likewise.
35203         * lib/mkdir.c (free): Remove decl.
35204         * lib/rmdir.c (rmdir): Define with a prototype.
35205         * lib/savedir.c: Include savedir.h first, to test interface.
35206
35207         * lib/mktime.c (STDC_HEADERS): Remove.
35208         Include <stdlib.h>, <string.h> unconditionally.
35209
35210         * lib/modechange.c: Include <stdlib.h> unconditionally.
35211         (malloc): Remove decl.
35212
35213         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35214         (free): Remove decl.
35215
35216         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35217         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35218         (This type really should be intptr_t, but that's a C99ism.)
35219         (_obstack_memcpy): Remove: all uses changed to memcpy.
35220         Include <string.h> unconditionally.
35221         (struct obstack): Assume __STDC__ for types of members
35222         chunkfun, freefun, extra_arg.
35223         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35224         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35225         obstack_begin, obstack_specify_allocation,
35226         obstack_specify_allocation_with_arg, obstack_chunkfun,
35227         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35228         Remove unprototyped decls and the macros that use them.
35229         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35230         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35231         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35232         (defined __STDC__ && __STDC__)]:
35233         Remove nonprototyped code.
35234         Include <stdlib.h> unconditionally.
35235         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35236         _obstack_allocated_p, _obstack_free, obstack_free,
35237         _obstack_memory_used, print_and_abort):
35238         Define using prototypes.
35239         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35240         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35241         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35242         obstack_next_free, obstack_object_size, obstack_room) [0]:
35243         Remove unused, unprototyped code.
35244
35245         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35246
35247         * lib/physmem.c (physmem_total, physmem_available, main): Define
35248         with prototypes.
35249
35250         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35251         (main): Define with a prototype.
35252
35253         * lib/posixver.c (getenv): Remove decl.
35254
35255         * lib/putenv.c (malloc): Returns void *, not char *.
35256         Include <string.h> unconditionally.
35257         (strchr, memcpy, NULL): Do not define.
35258
35259         * lib/readtokens.c: Include readtokens.h first, to test interface.
35260         Include <stdlib.h>, <string.h> unconditionally.
35261         (init_tokenbuffer): Define with a prototype.
35262
35263         * lib/regex.c (PARAMS): Remove.  All uses removed.
35264         All uses of _RE_ARGS removed, too.
35265         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35266         unconditionally.
35267         (bzero): Assume memset exists.
35268         (memcmp, memcpy, NULL): Remove.
35269         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35270         char, or assignments to local vars of type signed char.
35271         (init_syntax_once, PREFIX(extract_number_and_incr),
35272         PREFIX(print_partial_compiled_pattern),
35273         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35274         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35275         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35276         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35277         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35278         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35279         wcs_compile_range, byte_compile_range, truncate_wchar,
35280         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35281         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35282         count_mbs_length, wcs_re_match_2_internal,
35283         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35284         PREFIX(alt_match_null_string_p),
35285         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35286         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35287         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35288         now-unnecessary declaration, if any.
35289         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35290         regcomp, regexec):
35291         Remove now-unnecessary casts among pointer types.
35292         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35293
35294         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35295         (free): Remove decl.
35296
35297         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35298
35299         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35300         (free): Remove decl.
35301
35302         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35303         * lib/xgetcwd.c: Likewise.
35304
35305         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35306         (free): Remove decl.
35307
35308         * lib/strchrnul.c (strchrnul): Define with a prototype.
35309         Fix bug: c_in was not converted to char before searching.
35310
35311         The following changes are not K&R related:
35312
35313         * lib/group-member.h: Include <sys/types.h>, so that this file is
35314         self-contained.
35315         * lib/makepath.h: Likewise.
35316
35317         * lib/getusershell.c (readname, default_index, line_size, readname):
35318         Use size_t, not int, for sizes.
35319         (readname): If the size overflows, report an error instead of
35320         looping forever.
35321
35322 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35323
35324         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35325         libc.
35326
35327 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35328
35329         * README: New section: portability guidelines.
35330
35331 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35332
35333         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35334         C89 spec.
35335
35336 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35337
35338         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35339
35340 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35341
35342         Assume C89 or better; remove K&R cruft.
35343         A few of these changes were first proposed by Derek Robert Price
35344         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35345
35346         * lib/addext.c: Include <string.h> unconditionally.
35347         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35348         Don't declare getenv or malloc.
35349
35350         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35351         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35352         (NULL): Remove.
35353         (find_stack_direction, alloca): Use prototypes.
35354
35355         * lib/atexit.c (atexit): Define using a prototype.
35356
35357         * lib/basename.c, dirname.c, stripslash.c:
35358         Include <string.h> unconditionally.
35359
35360         * lib/bcopy.c: Include <stddef.h>.
35361         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35362
35363         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35364
35365         * lib/error.h (error, error_at_line, error_print_progname)
35366         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35367         * lib/error.c: Include error.h first, to check interface.
35368         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35369         (VA_START): Remove; all uses changeed to va_start.
35370         (exit, strerror): Remove decls.
35371         (error_print_progname): Prototype uncondionally.
35372         Don't include <errno.h>; no longer needed.
35373         (private_strerror): Remove.
35374         (error_tail): Always define.
35375         (error, error_at_line): Assume C89 or better; always use prototypes.
35376         * lib/fatal.c: Include "fatal.h" first, to test interface.
35377         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35378         (VA_START): Remove; all uses changed to va_start.
35379         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35380         this case.
35381         (exit): Remove decl.
35382         (fatal): Prototype unconditionally.  Assume va_start works.
35383         Abort at end, to pacify gcc.
35384
35385         * lib/euidaccess.c (main): Define with a prototype.
35386
35387         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35388
35389         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35390
35391         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35392         prototypes.
35393         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35394         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35395         (getenv): Remove decl.
35396         (fnmatch): Define using a prototype.
35397         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35398         (FCT): Define using a prototype.
35399
35400         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35401
35402         * lib/gethostname.c: Include <stddef.h>.
35403         (gethostname): Define with prototype.  Length is size_t, not int.
35404
35405 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35406
35407         Assume C89 or better; remove K&R cruft.
35408         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35409         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35410         string.h, getenv, malloc.
35411         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35412         headers.
35413         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35414         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35415         do not check for strerror.
35416         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35417         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35418         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35419         do not check for doprnt or vprintf.
35420         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35421         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35422
35423 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35424
35425         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35426         getversion.c should have been removed then, but was accidentally
35427         preserved.
35428
35429         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35430         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35431
35432 2003-09-08  Karl Berry  <karl@gnu.org>
35433
35434         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35435                 config, forget about prep.
35436
35437         * config/depcomp, missing: update from automake.
35438
35439 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35440
35441         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35443
35444 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35445
35446         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35447         copy_tm_result.  Bug reported by Simon Josefsson in
35448         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35449
35450 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35451
35452         * m4/time_r.m4: New file.
35453         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35454         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35455         is. Check for timegm declaration.
35456         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35457         Do not check for gmtime_r.
35458         Replace mktime if __mktime_internal does not exist and if mktime
35459         hasn't been replaced already.
35460
35461 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35462
35463         * lib/time_r.c, lib/time_r.h: New files.
35464
35465         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35466         __localtime_r.
35467         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35468         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35469
35470         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35471         __gmtime_r.
35472         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35473         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35474         Include <time_r.h>.
35475
35476         * lib/timegm.c: Switch to glibc implementation, with the following
35477         changes:
35478         [defined HAVE_CONFIG_H]: Include <config.h>.
35479         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35480         (__mktime_internal) [!defined _LIBC]: New decl.
35481         (__gmtime_r) [!defined _LIBC]: New macro and function.
35482         (timegm): Use a prototype, since gnulib assumes C89.
35483         Do not bother declaring tmp to be const, as it's not really usefu.
35484         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35485         (timegm): Declare only if HAVE_DECL_TIMEGM.
35486
35487 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35488
35489         * MODULES.html.sh (func_all_modules): Add time_r.
35490         * modules/time_r: New file.
35491         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35492         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35493
35494 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35495
35496         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35497         Bug reported by Lute Kamstra in
35498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35499
35500         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35501         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35502         course with correspondingly smaller numbers for tomorrow and
35503         yesterday.  From Tadayoshi Funaba.  Originally installed into
35504         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35505         coreutils merge?).
35506
35507 2003-08-31  Simon Josefsson  <jas@extundo.com>
35508
35509         * modules/timegm: New file.
35510         * MODULES.html.sh (func_all_modules): Add timegm.
35511
35512 2003-08-31  Simon Josefsson  <jas@extundo.com>
35513
35514         * m4/timegm.m4: New file.
35515
35516 2003-08-31  Simon Josefsson  <jas@extundo.com>
35517
35518         * lib/timegm.h: New file.
35519         * lib/timegm.c: New file.  Based on
35520         wget-1.8.2/src/http.c:mktime_from_utc.
35521
35522 2003-08-31  Karl Berry  <karl@gnu.org>
35523
35524         * lib/argp.h: update from libc.
35525
35526 2003-08-28  Bruno Haible  <bruno@clisp.org>
35527
35528         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35529         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35530         followed by '#define fnmatch fnmatch_posix' gives an error.
35531
35532 2003-08-28  Bruno Haible  <bruno@clisp.org>
35533
35534         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35535         warning on QNX, which defines O_BINARY to 000000.
35536
35537 2003-08-27  Jim Meyering  <jim@meyering.net>
35538
35539         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35540         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35541         would fail after 32.  Reported by Danny Levinson.  Details here:
35542         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35543
35544 2003-08-24  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35547         MSVC7 <stdio.h> is included later.
35548
35549 2003-08-22  Simon Josefsson  <jas@extundo.com>
35550
35551         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35552
35553 2003-08-20  Karl Berry  <karl@gnu.org>
35554
35555         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35556
35557 2003-08-20  Bruno Haible  <bruno@clisp.org>
35558
35559         * modules/progname: New file.
35560         * MODULES.html.sh (func_all_modules): Add progname.
35561
35562 2003-08-20  Bruno Haible  <bruno@clisp.org>
35563
35564         * lib/progname.h: New file, from GNU gettext.
35565         * lib/progname.c: New file, from GNU gettext.
35566         * lib/progreloc.c: New file, from GNU gettext.
35567
35568 2003-08-19  Jim Meyering  <jim@meyering.net>
35569
35570         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35571         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35572
35573 2003-08-19  Bruno Haible  <bruno@clisp.org>
35574
35575         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35576         more.
35577
35578 2003-08-19  Bruno Haible  <bruno@clisp.org>
35579
35580         * lib/xstrdup.c: Assume <string.h> exists.
35581
35582 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35583
35584         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35585         in makefile rules.
35586
35587 2003-08-18  Jim Meyering  <jim@meyering.net>
35588
35589         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35590         * m4/lib-ld.m4: Likewise.
35591
35592 2003-08-18  Jim Meyering  <jim@meyering.net>
35593
35594         * lib/setenv.h: Indent nested cpp directive.
35595         * lib/vasnprintf.c: Remove trailing blanks.
35596
35597 2003-08-17  Simon Josefsson  <jas@extundo.com>
35598
35599         * modules/xstrndup: New file.
35600         * MODULES.html.sh (func_all_modules): Add xstrndup.
35601
35602 2003-08-17  Simon Josefsson  <jas@extundo.com>
35603
35604         * modules/argp: Fix autoconf macro name. Add more dependencies.
35605
35606 2003-08-17  Simon Josefsson  <jas@extundo.com>
35607
35608         * m4/xstrndup.m4: New file.
35609
35610 2003-08-17  Simon Josefsson  <jas@extundo.com>
35611
35612         * m4/argp.m4: New file.
35613
35614 2003-08-17  Simon Josefsson  <jas@extundo.com>
35615             Bruno Haible  <bruno@clisp.org>
35616
35617         * lib/xstrndup.h: New file.
35618         * lib/xstrndup.c: New file.
35619
35620 2003-08-17  Bruno Haible  <bruno@clisp.org>
35621
35622         * modules/strndup (Files, Include): Add lib/strndup.h.
35623
35624 2003-08-17  Bruno Haible  <bruno@clisp.org>
35625
35626         * modules/euidaccess (Files): Add lib/euidaccess.h.
35627
35628 2003-08-17  Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/strndup.h: New file.
35631
35632 2003-08-17  Bruno Haible  <bruno@clisp.org>
35633
35634         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35635         like AC_GNU_SOURCE.
35636         * modules/extensions (configure.ac): Comment out the invocation of
35637         gl_USE_SYSTEM_EXTENSIONS.
35638
35639 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35640
35641         Merges from coreutils, etc.
35642         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35643         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35644         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35645         fixing a typo.
35646         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35647         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35648
35649 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35650
35651         Document merge from coreutils.
35652         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35653         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35654         * modules/utime: Add m4/utimes-null.m4.
35655
35656 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35657
35658         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35659         space, undoing this 2003-08-12 change:
35660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35661
35662 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35663
35664         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35665         strtoul.c from libc, undoing this 2003-08-12 change:
35666         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35667
35668 2003-08-16  Jim Meyering  <jim@meyering.net>
35669
35670         Merges from coreutils.
35671         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35672         prefix.  Adjust cache variables similarly.  Create 500 rather than
35673         just 300 files, to exercise bug on Darwin6.5, too.
35674         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35675         $missing_dir.
35676         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35677         AM_SYS_POSIX_TERMIOS.
35678         Reported by mkc@mathdogs.com.
35679         Also change use of $am_cv_sys_posix_termios
35680         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35681         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35682         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35683         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35684         in /proc/mounts until it finds one with matching device number.  This
35685         is unnecessary when the FILE argument *is* a mount point.  No stat call
35686         is necessary in that case.  So, disable the statvfs-testing code on
35687         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35688         as RedHat bug# 84846.
35689         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35690         to 1MB, so as not to render systems with no stack size limit (e.g.,
35691         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35692         Include <unistd.h>.  On some systems,
35693         it is required for the definition of _SC_PAGESIZE.
35694
35695 2003-08-16  Jim Meyering  <jim@meyering.net>
35696
35697         Merge from coreutils.
35698         * lib/xstrtoimax.c: #else #if -> #elif.
35699         * lib/xstrtoumax.c: Likewise.
35700
35701 2003-08-16  Jim Meyering  <jim@meyering.net>
35702
35703         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35704         * m4/utimes.m4: Removed.
35705         * m4/utimes-null.m4: Renamed from utimes.m4.
35706
35707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35708         to 1MB, so as not to render systems with no stack size limit (e.g.,
35709         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35710         Include <unistd.h>.  On some systems,
35711         it is required for the definition of _SC_PAGESIZE.
35712
35713 2003-08-16  Jim Meyering  <jim@meyering.net>
35714         and Paul Eggert  <eggert@cs.ucla.edu>
35715
35716         Merges from coreutils, etc.
35717
35718         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35719         using the latest version from cvs.  This avoids problems with #line
35720         directives using a vendor (Sun) compiler.
35721         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35722         Don't set GETGROUPS_LIB here; now it's
35723         done via getgroups.m4's wrapper function.
35724         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35725         rather than just in sh-util/configure.in, so that the
35726         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35727         same.
35728         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35729         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35730         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35731         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35732         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35733         Remove code that is now done by the newly-required macros.
35734         Append $(EXEEXT) to DF_PROG.
35735         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35736         Do not invoke or require the following here,
35737         since prereq.m4 or some gnulib .m4 now does this for us:
35738         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35739         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35740         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35741         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35742         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35743         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35744         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35745         AC_FUNC_OBSTACK.
35746         Do not replace the following functions, as this is now the job
35747         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35748         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35749         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35750         atexit getpass, strdup, getpagesize.
35751         Replace 'raise'.
35752         Do not check for the following functions, as this is now the job
35753         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35754         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35755         setregid.
35756         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35757         Check for sys/sysctl.h.
35758         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35759         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35760         of checking for ssize_t ourselves.
35761
35762         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35763         Require every macro that gnulib/modules/* suggests for us.
35764         (jm_PREREQ_ADDEXT): New macro.
35765         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35766         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35767
35768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35769         (gl_PHYSMEM): Use it.
35770         Also check for `table' function.
35771         Check for new headers and functions.
35772         Add check for sys/sysmp.h.
35773         With suggestions from Kaveh Ghazi.
35774         Ignore headers that are present but cannot be compiled.  This
35775         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35776         C 5.4.
35777
35778 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35779
35780         Document merge from coreutils.
35781         * modules/userspec: Depend on posixver.
35782         * modules/strftime: Depend on tzset.
35783
35784 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35785
35786         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35787         rather than tab, after '#' in shell-script copyright notices.
35788         Suggested by Bruno Haible.
35789
35790 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35791
35792         * config/srclist-update: Use three spaces, rather than tab, after '#'
35793         in shell-script copyright notices.  Suggested by Bruno Haible.
35794         Remove unnecessary parenthesization in regular expression.
35795
35796 2003-08-15  Jim Meyering  <jim@meyering.net>
35797
35798         Merge from coreutils.
35799         * lib/xgethostname.c: Include <stdlib.h>.
35800         (xghostname): Don't exit for anything other than memory-related
35801         failure; just return NULL.
35802         * lib/userspec.c: Include "posixver.h".
35803         (parse_user_spec): Accept `.' as a separator only
35804         in pre-POSIX-200112 mode.
35805         * lib/strtoimax.c: Use #elif rather than #else #if.
35806         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35807         Remove function, now that we can rely on a working tzset function.
35808         [!_LIBC]: Ensure that the required autoconf test has been run.
35809         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35810         Use underlying_strftime for %r.
35811         * lib/sha.c: Merge in some clean-up and optimization changes from
35812         glibc.
35813         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35814         Ensure that it is a multiple of 64.
35815         Rearrange loop exit tests so as to avoid performing an
35816         additional fread after encountering an error or EOF.
35817         * lib/realloc.c: Update copyright date.
35818
35819 2003-08-15  Jim Meyering  <jim@meyering.net>
35820         and Paul Eggert  <eggert@twinsun.com>
35821
35822         Merge from coreutils.
35823         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35824         member but strut utmpx does not.  Needed for AIX 4.3.3.
35825         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35826
35827 2003-08-15  Jim Meyering  <jim@meyering.net>
35828         and Paul Eggert  <eggert@cs.ucla.edu>
35829
35830         Merges from coreutils, etc.
35831         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35832         Require gl_FUNC_TZSET_CLOBBER.
35833         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35834         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35835         members.
35836
35837 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35838
35839         Help the merge from coreutils.
35840         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35841         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35842         * m4/tzset.m4: Use it too.
35843
35844 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35845
35846         * modules/tzset: New file.
35847
35848 2003-08-14  Jim Meyering  <jim@meyering.net>
35849
35850         Merges from coreutils.
35851         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35852         variable names, rather than @FNMATCH_H@.
35853         * modules/alloca: Likewise for $(ALLOCA_H).
35854
35855         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35856         the three copies of the literal target, `fnmatch.h'.
35857         * modules/alloca (alloca.h): Likewise.
35858
35859 2003-08-14  Jim Meyering  <jim@meyering.net>
35860
35861         Merge from coreutils.
35862         * m4/tzset.m4: New file.
35863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35864         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35865         otherwise, AIX 5.1 systems would end up using the latter.
35866         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35867         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
35868         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35869         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
35870
35871 2003-08-14  Jim Meyering  <jim@meyering.net>
35872
35873         Merge from coreutils.
35874         * lib/obstack.h: Whitespace changes.
35875         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35876         and xcalloc return values.
35877         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35878         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
35879         hang on OSF/1 5.1 for DIR on both local and remote file systems.
35880         Reported by (and fix confirmed by) Nelson H. F. Beebe.
35881         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35882         error from mntctl.
35883         Use mntctl's return value to drive the entry-processing loop, since
35884         we can't rely on the value of the vmt_length member in the last
35885         entry.  On some systems doing so could result in exhausting
35886         virtual memory.  Based in part on a patch from Mike Jetzer.
35887
35888 2003-08-14  Jim Meyering  <jim@meyering.net>
35889         and Paul Eggert  <eggert@twinsun.com>
35890
35891         Merges from coreutils, plus other fixes.
35892         * lib/physmem.c: Merge in portability changes from gcc/libiberty
35893         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
35894         for credits and details.  Thanks to Kaveh Ghazi for helping
35895         to keep these files in sync.
35896         (ARRAY_SIZE): Define it.
35897         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35898         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35899         (memcasecmp): Don't assume size_t fits in unsigned int.
35900         Remove casts and duplicate code.
35901         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35902         (memcpy): Remove definition.
35903         Merge in some clean-up and optimization changes from glibc.
35904         [BLOCKSIZE]: Move definition to top of file.
35905         Ensure that it is a multiple of 64.
35906         Rearrange loop exit tests so as to avoid performing an
35907         additional fread after encountering an error or EOF.
35908         * lib/md5.h (md5_uintptr): Define.
35909         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35910         return to the initial working directory.  Preserve errno
35911         for caller.
35912         * lib/idcache.c: Include "xalloc.h".
35913         (xmalloc, xrealloc): Remove decls.
35914         (getuser): Remove casts no longer required in C89.
35915         * lib/human.c: Include stdio.h, for sprintf.
35916         * lib/group-member.c: Include "xalloc.h".
35917         (xmalloc, xrealloc): Remove decls.
35918         (get_group_info): Remove casts no longer required in C89.
35919         * lib/getusershell.c (readname): Remove casts no longer required in
35920         C89.
35921         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35922         * lib/getline.c: Whitespace fix, from coreutils.
35923
35924 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35925
35926         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35927         Check for isascii.
35928
35929         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35930         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35931         Undo previous (whitespace-only) change.
35932
35933 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35934
35935         * lib/exclude.c: Include <ctype.h>
35936         (IN_CTYPE_DOMAIN): New macro.
35937         (is_space): New fn.
35938         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35939         and empty lines.
35940
35941         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35942         Undo previous (whitespace-only) change.
35943
35944 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35945
35946         * config/srclist-update: Change update back to the old behavior,
35947         leaving whitespace alone.  Use one 'sed' command rather than a
35948         pipeline.
35949         (fixlicense): Now a variable, not a function.
35950         (remove_trailing_blanks): Remove.
35951         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35952         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35953         Undo previous (whitespace-only) change.
35954
35955 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35956
35957         Merge from coreutils.
35958         * modules/euidaccess: Add lib_SOURCES, include for new
35959         file euidaccess.h
35960
35961 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35962
35963         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35964         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35965         Normalize leading white space and remove trailing white space.
35966
35967         Merge from coreutils
35968         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35969
35970         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35971         0.12.1.  These files are now being upgraded automatically by
35972         ../config/srclist-update.
35973
35974 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35975
35976         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35977         Normalize leading white space and remove trailing white space.
35978         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35979         notice, as per ../config/srclist-update.
35980
35981         Merge from coreutils.
35982         * lib/euidaccess.h: New file.
35983         * lib/euidaccess.c: Include it.
35984         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35985         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
35986         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35987
35988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35989
35990         * config/srclist-update: Add copyright notice.
35991         (remove_id_lines, remove_trailing_blanks): New constants.
35992         (fixfile): Use them to normalize spacing a bit in copied files.
35993         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35994         Normalize leading white space and remove trailing white space.
35995
35996         * config/texinfo.tex: Sync with texinfo.
35997
35998         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35999         strtoul.c from libc, to merge coreutils whitespace changes.
36000
36001         * config/srclist.txt: Get the following m4 files from gettext:
36002         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36003         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36004         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36005         wint_t.m4.
36006
36007 2003-08-12  Karl Berry  <karl@gnu.org>
36008
36009         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36010         been made.
36011
36012 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36013
36014         * modules/gnu-source, m4/gnu-source.m4:
36015         Remove; we're assuming Autoconf 2.54 or later now.
36016         Suggested by Bruno Haible.
36017         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36018
36019 2003-08-11  Bruno Haible  <bruno@clisp.org>
36020
36021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36022
36023 2003-08-11  Bruno Haible  <bruno@clisp.org>
36024
36025         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36026         (vasnprintf): Use it instead of wcslen.
36027
36028 2003-08-11  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36031         value to ensure that _Bool promotes to int. Use #define for _Bool when
36032         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36033
36034 2003-08-10  Karl Berry  <karl@gnu.org>
36035
36036         * lib/regex.h: update from libc (whitespace fix).
36037
36038 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36039
36040         Merge some files from coreutils.  These changes were
36041         originally made by Jim Meyering.
36042         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36043         many older Unixes require this.
36044         * lib/alloca.c (alloca): Remove cast to argument of free;
36045         no longer needed in C89.
36046         * lib/alloca_.h, regex.h: Fix white space to match
36047         what GNU indent does.
36048
36049 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36050
36051         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36052         apparently Emacs's Unicode mode got confused before my 2003-08-05
36053         checkin.
36054
36055 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36056
36057         * m4/extensions.m4: New file.
36058         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36059         Require gl_USE_SYSTEM_EXTENSIONS.
36060         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36061         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36062
36063 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36064
36065         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36066         * modules/extensions, modules/gnu-source: New files.
36067         * modules/timespec, modules/unlocked-io: Depend on extensions.
36068
36069 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36070
36071         * modules/restrict: New file.
36072         * MODULES.html.sh (func_all_modules): Add restrict.
36073         * modules/regex: Depend on restrict.
36074
36075 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36076
36077         * m4/restrict.m4: New file.
36078         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36079
36080 2003-08-07  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36083         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36084
36085 2003-08-07  Bruno Haible  <bruno@clisp.org>
36086
36087         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36088         makes the module 'getndelim2' compatible with the module 'getline'.
36089
36090 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36091
36092         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36093         byte with "\201" to avoid glitches when editing that source file
36094         with multi-gnome-terminal.
36095
36096 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36097
36098         * lib/bumpalloc.h: Remove.
36099
36100 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36101
36102         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36103         * modules/bumpalloc: Remove.
36104
36105 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36106
36107         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36108         GNU coding style.
36109
36110         Merge from coreutils.
36111         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36112         1. From glibc.
36113         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36114         from Karl Berry, implemented by Jim Meyering.
36115         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36116         from Dmitry V. Levin.
36117         Remove anachronistic cast of xrealloc.
36118         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36119         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36120         type. Otherwise, it wouldn't compile with at least /bin/cc on
36121         ymp-cray-unicos9.0.2.X.
36122         Combine two mostly-identical uses of alloca into one.
36123         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36124
36125 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36126
36127         [From Emacs.]
36128
36129         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36130         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36131         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36132         obsolete NLIST_NAME_UNION.
36133         [__GNU__]: Undef BSD and FSCALE.
36134         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36135
36136 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36137
36138         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36139         an enum type, so that it's guaranteed to promote to int.  See:
36140         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36141
36142 2003-08-03  Karl Berry  <karl@gnu.org>
36143
36144         * config/depcomp: update from automake.
36145
36146 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36147
36148         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36149         (strerror): Don't assume that a printable int fits in 14 bytes.
36150
36151 2003-07-31  Bruno Haible  <bruno@clisp.org>
36152
36153         * modules/getpass-gnu: New file.
36154         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36155
36156 2003-07-31  Bruno Haible  <bruno@clisp.org>
36157
36158         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36159
36160 2003-07-24  Karl Berry  <karl@gnu.org>
36161
36162         * config/missing: update from automake.
36163
36164 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36165             Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36168         * lib/getline.c (getline, getdelim): Likewise.
36169         Remove _GNU_SOURCE define; now it's defined in config.h through
36170         m4/getline.m4.
36171
36172 2003-07-23  Karl Berry  <karl@gnu.org>
36173
36174         * config/config.sub: update from prep.
36175
36176 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36177
36178         * modules/xalloc (Depends-on): Add exitfail.
36179         * modules/xmemcoll: Likewise.
36180
36181 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36182
36183         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36184         over-parenthesization in macros.
36185
36186         Sync with coreutils.
36187
36188         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36189         required by C99.
36190
36191         Use `exit_failure' for xalloc and xmemcoll instead of their own
36192         private exit-failure variables.
36193         * lib/xalloc.h (xalloc_exit_failure): Remove.
36194         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36195         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36196         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36197         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36198         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36199
36200 2003-07-20  Jim Meyering  <jim@meyering.net>
36201
36202         * modules/closeout (Depends-on): Add exitfail.
36203         Suggestion from Bruno Haible.
36204
36205 2003-07-19  Karl Berry  <karl@gnu.org>
36206
36207         * config/config.sub: update from prep.
36208
36209 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36210
36211         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36212         Remove.
36213         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36214         to test that it can stand by itself.  Include "exitfail.h".
36215         Clients should set exit_failure instead.
36216         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36217
36218 2003-07-18  Bruno Haible  <bruno@clisp.org>
36219
36220         * modules/getndelim2: New file.
36221         * modules/getline: Share files with module getndelim2.
36222         * modules/getnline: Depend on getndelim2 instead of sharing files with
36223         it. Add getnline.c to lib_SOURCES.
36224         * MODULES.html.sh (func_all_modules): Add getndelim2.
36225
36226 2003-07-18  Bruno Haible  <bruno@clisp.org>
36227
36228         * m4/getndelim2.m4: New file.
36229         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36230         invoke gl_PREREQ_GETNDELIM2.
36231         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36232         gl_PREREQ_GETNDELIM2.
36233         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36234         gl_GETNDELIM2.
36235
36236 2003-07-18  Bruno Haible  <bruno@clisp.org>
36237
36238         * lib/getndelim2.h: New file.
36239         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36240         getndelim2.h.
36241         (getndelim2): Make non-static. Change return type to ssize_t.
36242         * lib/getline.h: Change argument names.
36243         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36244         * lib/getnline.c: Include getndelim2.h.
36245
36246 2003-07-18  Andreas Schwab  <schwab@suse.de>
36247
36248         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36249
36250 2003-07-17  Karl Berry  <karl@gnu.org>
36251
36252         * config/config.sub: update from prep.
36253
36254 2003-07-17  Bruno Haible  <bruno@clisp.org>
36255
36256         * modules/getnline: New file.
36257         * modules/getline: Add lib/getndelim2.c to source file list.
36258         * MODULES.html.sh (func_all_modules): Add getnline.
36259
36260 2003-07-17  Bruno Haible  <bruno@clisp.org>
36261
36262         * m4/getnline.m4: New file.
36263
36264 2003-07-17  Bruno Haible  <bruno@clisp.org>
36265
36266         * m4/Makefile.am.in: Remove file.
36267         * m4/Makefile.am: Remove file.
36268         * m4/Makefile.in: Remove file.
36269
36270 2003-07-17  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/getnline.h: New file.
36273         * lib/getnline.c: New file.
36274         * lib/getndelim2.c: New file, extracted from getline.c.
36275         (getndelim2): Renamed from getdelim2, with added nmax argument.
36276         * lib/getline.c: Include getndelim2.c.
36277         (getdelim2): Moved out to getndelim2.c.
36278         (getline, getdelim): Update.
36279
36280 2003-07-17  Bruno Haible  <bruno@clisp.org>
36281
36282         * lib/Makefile.am: Remove file.
36283         * lib/Makefile.in: Remove file.
36284
36285 2003-07-17  Bruno Haible  <bruno@clisp.org>
36286
36287         * configure.in: Remove file.
36288         * Makefile.in: Remove file.
36289
36290 2003-07-17  Bruno Haible  <bruno@clisp.org>
36291
36292         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36293
36294 2003-07-16  Karl Berry  <karl@gnu.org>
36295
36296         * config/srclist-update: was running fixlicense twice, which caused
36297                 texinfo.tex to be nullified for some reason.  Simplify,
36298                 $gplsrc is no longer needed as far as I can see?
36299
36300 2003-07-16  Jim Meyering  <jim@meyering.net>
36301
36302         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36303
36304 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36305
36306         * config/srclist.txt: Get the following files from gettext-runtime/intl
36307         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36308         ref-del.sin.  From Bruno Haible.
36309         * config/srclist-update (fixfile): Change grep pattern again, since the
36310         previous fix didn't work (there was another trailing $).  Use
36311         '[$]' to escape the $s.
36312
36313 2003-07-15  Karl Berry  <karl@gnu.org>
36314
36315         * lib/vasnprintf.c: update from gettext.
36316
36317 2003-07-15  Karl Berry  <karl@gnu.org>
36318
36319         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36320         gets expanded when surrounded by '$'.
36321
36322 2003-07-15  Jim Meyering  <jim@meyering.net>
36323
36324         * modules/save-cwd: Don't depend on error.  From Derek Price.
36325
36326 2003-07-15  Jim Meyering  <jim@meyering.net>
36327
36328         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36329
36330 2003-07-14  Simon Josefsson  <jas@extundo.com>
36331
36332         * modules/mempcpy: New file.
36333         * MODULES.html.sh (func_all_modules): Add mempcpy.
36334
36335 2003-07-14  Simon Josefsson  <jas@extundo.com>
36336
36337         * m4/mempcpy.m4: New file.
36338
36339 2003-07-14  Simon Josefsson  <jas@extundo.com>
36340
36341         * lib/mempcpy.h: New file.
36342         * lib/mempcpy.c: New file.
36343
36344 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36345
36346         * modules/getdate, modules/posixtm: Depend on mktime.
36347
36348 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36349
36350         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36351         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36352         unicodeio.c, unicodeio.h, unlocked-io.h:
36353         Switch from LGPL to GPL.
36354
36355 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36356
36357         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36358         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36359         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36360         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36361         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36362         updated automatically by ../config/srclist-update.  This changes
36363         their license from LPGL to GPL.
36364
36365 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36366
36367         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36368         assumed to refer to the root of the most recent stable gettext version.
36369         * config/srclistvars.sh: Add defaults for eggert.
36370         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36371         Match "This program" as well as "The program".  This is needed
36372         for gettext.
36373
36374 2003-07-14  Jim Meyering  <jim@meyering.net>
36375
36376         Don't emit diagnostics.  Let callers do that.
36377         * lib/save-cwd.c: Don't include "error.h".
36378         (save_cwd): Don't call error.  Ensure that errno is valid
36379         when returning nonzero.
36380
36381         * lib/save-cwd.h (restore_cwd): Update prototype.
36382         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36383         Simplify.  Don't call error upon failure.  Let callers do that.
36384         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36385         when auditing is enabled.  But don't bother updating the #if.
36386
36387 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36388
36389         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36390         it breaks C++ compilation.
36391         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36392
36393 2003-07-10  Simon Josefsson  <jas@extundo.com>
36394
36395         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36396
36397 2003-07-10  Jim Meyering  <jim@meyering.net>
36398
36399         * m4/clock_time.m4: Remove trailing blank.
36400         * m4/intmax_t.m4: Likewise.
36401
36402 2003-07-10  Jim Meyering  <jim@meyering.net>
36403
36404         * lib/vasnprintf.c: Remove trailing blanks.
36405         Make cpp indentation consistent.
36406
36407 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36408
36409         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36410         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36411         Switch from LGPL to GPL.
36412
36413 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36414
36415         * config/srclist.txt: Sort sublists.  Add
36416         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36417         that differ from gnulib for one reason or another; we'd like this list
36418         to be smaller but for now let's document what we have.
36419
36420 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36421
36422         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36423         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36424         and sweeter "eval x=$x".
36425         * config/srclist.txt: Get lib/argp* from glibc.
36426
36427 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36428
36429         * lib/mktime.c: Fix some boundary cases and remove need for floating
36430         point.
36431
36432         Issue a compile-time diagnostic if time_t is floating point, or if
36433         two's complement arithmetic is not in effect, or if arithmetic
36434         right shift does not propagate the sign.  These assumptions were
36435         all in the original code but they weren't checked.
36436
36437         (TIME_T_MIDPOINT, verify): New macros.
36438         (__isleap): Remove; it has integer overflow problems.
36439         (leapyear): New function, without those problems.
36440         (ydhms_tm_diff): Remove; splitting into two parts.
36441         (ydhms_diff): New function, containing the arithmetic part of
36442         the old ydhms_tm_diff function.  Issue a compile-time
36443         diagnostic if we are not using C99 integer division.
36444         Avoid casts when possible.
36445         (guess_time_tm): New function, containing the checking part of
36446         the old ydhms_tm_diff function.  Return the new value, rather than
36447         the difference between it and the old.  Accept a new argument T
36448         so that *T specifies the old value.  Check for overflow in the result.
36449
36450         (__mktime_internal): Use a time_t offset, not a long int offset.
36451         This undoes the 2003-06-04 change, which is no longer needed now
36452         that we have better overflow checking.
36453         (localtime_offset): Likewise.
36454
36455         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36456         and long are 64-bit but int is only 32-bit.
36457         (ydhms_diff): Use long int to store year1 and yday1.
36458         Issue a compile-time diagnostic if long int is not wide enough.
36459
36460         (__mktime_internal): Use long int to store adjusted year and yday.
36461         Use plain C rather than preprocessor commands, if that doesn't
36462         affect efficiency.
36463         Check for overflow (and try to repair) after each probe
36464         rather than checking only at the very end.  This avoids some bugs
36465         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36466         does not equal GMT offset at maximum time).
36467         Use integer to check for overflow rather than floating point; this
36468         is more portable to non-IEEE hosts, and is a tad faster.
36469         When we detect that we are oscillating between two values,
36470         don't check whether tm_isdst has the requested value, since
36471         we already know the answer.  When tm_isdst has the wrong value,
36472         use a different heuristic to find the right one, based on the
36473         extreme values actually observed in practice in tz2003a,
36474         rather than the (overly optimistic) "previous 3 calendar quarters".
36475
36476         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36477         "T const" to accommodate glibc style.
36478         (check_result): Use less-confusing report format.  "long" -> "long int.
36479         (main): Likewise.
36480         Don't loop if the iteration overflows time_t.
36481         Allow a negative step in the iteration.
36482
36483 2003-07-06  Karl Berry  <karl@gnu.org>
36484
36485         * config/depcomp: update from automake.
36486         * config/config.sub: update from prep.
36487
36488 2003-07-03  Karl Berry  <karl@gnu.org>
36489
36490         * config/config.guess: update from prep.
36491
36492 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36493
36494         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36495         xreadlink.c now includes it unconditionally.
36496
36497 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36498
36499         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36500         having it depend on HAVE_SYS_TYPES_H.
36501
36502 2003-07-01  Bruno Haible  <bruno@clisp.org>
36503
36504         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36505         <sys/types.h> should be sufficient.
36506         Reported by Paul Eggert.
36507
36508 2003-06-26  Karl Berry  <karl@gnu.org>
36509
36510         * config/depcomp: update from automake.
36511
36512 2003-06-26  Bruno Haible  <bruno@clisp.org>
36513
36514         * modules/human: Depend on module stdbool.
36515
36516 2003-06-25  Bruno Haible  <bruno@clisp.org>
36517
36518         * modules/readlink: New file.
36519         * modules/xreadlink: Depend on it.
36520         * MODULES.html.sh (func_all_modules): Add readlink.
36521
36522 2003-06-25  Bruno Haible  <bruno@clisp.org>
36523
36524         * m4/readlink.m4: New file.
36525
36526 2003-06-25  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/readlink.c: New file.
36529
36530 2003-06-22  Karl Berry  <karl@gnu.org>
36531
36532         * config/srclist.txt: update mkinstalldirs from automake.
36533         * config/mkinstalldirs: update.
36534
36535 2003-06-22  Bruno Haible  <bruno@clisp.org>
36536
36537         Portability to mingw32.
36538         * m4/ssize_t.m4: New file, from GNU gettext.
36539         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36540         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36541
36542 2003-06-22  Bruno Haible  <bruno@clisp.org>
36543
36544         * modules/safe-read: Add m4/ssize_t.m4.
36545         * modules/xreadlink: Add m4/ssize_t.m4.
36546
36547 2003-06-20  Bruno Haible  <bruno@clisp.org>
36548
36549         Assume C89, so PARAMS isn't needed.
36550         * lib/unicodeio.h (PARAMS): Remove.
36551         * lib/unicodeio.c: Don't use PARAMS.
36552
36553 2003-06-18  Karl Berry  <karl@gnu.org>
36554
36555         * config/config.{guess,sub}: update from prep.
36556
36557 2003-06-18  Jim Meyering  <jim@meyering.net>
36558
36559         Merge changes from coreutils.
36560         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36561         Remove explicit declarations of xmalloc and realloc.
36562         Include xalloc.h.
36563         (read_utmp): Remove anachronistic cast of xmalloc.
36564
36565 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36566
36567         Assume C89, so PARAMS isn't needed.
36568         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36569         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36570         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36571         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36572         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36573         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36574         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36575         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36576         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36577         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36578         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36579         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36580         no longer needed. Anyway, config.h should always be included before any
36581         other file.
36582
36583 2003-06-11  Simon Josefsson  <jas@extundo.com>
36584
36585         * modules/sysexits: New file.
36586         * MODULES.html.sh (func_all_modules): Add sysexits.
36587
36588 2003-06-11  Simon Josefsson  <jas@extundo.com>
36589
36590         * lib/sysexit_.h: New file.
36591
36592 2003-06-11  Derek Price  <derek@ximbiot.com>
36593
36594         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36595         necessary.
36596
36597 2003-06-11  Bruno Haible  <bruno@clisp.org>
36598
36599         * m4/sysexits.m4: New file.
36600
36601 2003-06-10  Simon Josefsson  <jas@extundo.com>
36602
36603         * lib/argp.h: New file, from glibc.
36604         * lib/argp-ba.c: New file, from glibc.
36605         * lib/argp-eexst.c: New file, from glibc.
36606         * lib/argp-fmtstream.c: New file, from glibc.
36607         * lib/argp-fmtstream.h: New file, from glibc.
36608         * lib/argp-fs-xinl.c: New file, from glibc.
36609         * lib/argp-help.c: New file, from glibc.
36610         * lib/argp-namefrob.h: New file, from glibc.
36611         * lib/argp-parse.c: New file, from glibc.
36612         * lib/argp-pv.c: New file, from glibc.
36613         * lib/argp-pvh.c: New file, from glibc.
36614         * lib/argp-xinl.c: New file, from glibc.
36615
36616 2003-06-10  Simon Josefsson  <jas@extundo.com>
36617
36618         * modules/strchrnul: New file.
36619
36620 2003-06-10  Simon Josefsson  <jas@extundo.com>
36621
36622         * modules/argp: New file.
36623
36624 2003-06-10  Simon Josefsson  <jas@extundo.com>
36625
36626         * m4/strchrnul.m4: New file.
36627
36628 2003-06-10  Simon Josefsson  <jas@extundo.com>
36629
36630         * lib/strchrnul.h: New file.
36631         * lib/strchrnul.c: New file.
36632
36633 2003-06-10  Bruno Haible  <bruno@clisp.org>
36634
36635         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36636
36637 2003-06-07  Karl Berry  <karl@gnu.org>
36638
36639         * config/config.{guess,sub}: update from prep.
36640
36641 2003-06-07  Jim Meyering  <jim@meyering.net>
36642
36643         * modules/strtod: Use $(...) notation, not @...@ for
36644         AC_REPLACE'd variables.
36645         * modules/localcharset: Likewise.
36646
36647 2003-06-07  Jim Meyering  <jim@meyering.net>
36648
36649         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36650         in place of my name in the copyright comment.
36651         Remove definition and uses of __P.
36652
36653         From coreutils.
36654         * lib/stat.c: Don't declare xmalloc explicitly.
36655         Instead, include "xalloc.h".
36656         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36657         xrealloc, and xcalloc return values.
36658         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36659         Improve comment.
36660         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36661
36662 2003-06-07  Bruno Haible  <bruno@clisp.org>
36663
36664         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36665         avoid AC_CONFIG_LINKS.
36666         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36667         fnmatch.h, to avoid AC_CONFIG_LINKS.
36668         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36669
36670 2003-06-07  Bruno Haible  <bruno@clisp.org>
36671
36672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36673         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36674         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36675         directory.
36676         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36677         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36678         directory.
36679
36680 2003-06-06  Jim Meyering  <jim@meyering.net>
36681
36682         Merge from coreutils.
36683         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36684         Consolidate declarations and initializations of *_base* locals.
36685
36686         Merge from coreutils.
36687         This avoids a core dump on systems without GNU putenv,
36688         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36689         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36690         (unsetenv): New static function, from GNU libc.
36691         (rpl_putenv): Use it.
36692
36693         * lib/modechange.c: Remove trailing blanks.
36694
36695         Merge from coreutils.
36696         * lib/fsusage.c: Remove declaration of statfs.
36697         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36698
36699         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36700
36701 2003-06-06  Jim Meyering  <jim@meyering.net>
36702
36703         * lib/stdbool_.h: Renamed from stdbool.h.in.
36704
36705 2003-06-06  Jim Meyering  <jim@meyering.net>
36706             Bruno Haible  <bruno@clisp.org>
36707
36708         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36709         Adjust Makefile.am snippet not to redirect directly to target.
36710         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36711
36712 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36713
36714         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36715         mismatch, look in future quarters as well as past.  This fixes a
36716         bug when processing fall-backwards gaps immediately after a long
36717         period of daylight-saving time.
36718
36719         * lib/mktime.c: Assume freestanding C89 or better.
36720         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36721         (__P): Remove; not used.
36722         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36723         (mktime, not_equal_tm, print_tm, check_result,
36724         main): Use prototypes.  Use const * where appropriate.
36725         (main): Fix typo in testing code that uncovered by above changes.
36726         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36727
36728 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36729
36730         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36731         locale.h, localeconv.  This merges changes from coreutils.
36732
36733         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36734         It can be removed after the next Autoconf is released.
36735         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36736         needed.
36737
36738 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36739
36740         * lib/mktime.c: Fix Debian bug 177940
36741         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36742         (localtime_offset): Now long int, not time_t, because we want it
36743         to be guaranteed to be signed.  All uses changed.
36744         (__mktime_internal): If overflow would occur when adding offset,
36745         don't add it.
36746
36747         Merge 'human' changes from coreutils.  Rewrite to support
36748         locale-specific notations like thousands separators.
36749         * lib/human.c: Simplify authorship notice.
36750         Include human.h immediately after config.h.
36751         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36752         <limits.h>: Do not include, since human.h does.
36753         (SIZE_MAX, UINTMAX_MAX): New macros.
36754         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36755         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36756         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36757         (power_letter): Renamed from suffixes.
36758         (generate_suffix_backwards): Remove.
36759         (adjust_value): Now takes int style (because of human.h changes)
36760         and long double value (for greater precision on some platforms).
36761         (group_number): New function.
36762         (human_readable): Use it.  Use integer options, not enum.
36763         Put the options before the sizes in the arg list.
36764         Support all the new options.
36765         The old human_readable function has been removed;
36766         use inttostr.h instead.
36767         (human_readable, default_block_size, humblock):
36768         Use uintmax_t, not int, for block sizes.
36769         (human_readable_inexact, block_size_types): Remove.
36770         (block_size_opts): New constant.
36771         (human_options): Renamed from human_block_size, with new signature
36772         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36773         * lib/human.h: Add copyright and authorship notice.
36774         Include <limits.h> and <stdbool.h> unconditionally.
36775         (PARAMS): Remove.  All uses removed.
36776         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36777         (enum human_inexact_style): Remove tag; now a nameless enum.
36778         (human_floor, human_ceiling, human_round_to_even): Now have
36779         values 2, 0, 1 rather than -1, 1, 0.
36780         (human_group_digits, human_suppress_point_zero, human_autoscale,
36781         human_base_1024, human_SI, human_B): New constants.
36782         (human_readable_inexact, human_block_size): Remove.
36783         (human_readable): Size args are now uintmax_t, not int.
36784         (human_options): New decl.
36785
36786         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36787         unnecessary now that we assume C89 or better.  This change
36788         imported from coreutils.
36789
36790         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36791         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36792         in the 2003-05-30 sync from glibc.
36793
36794         .h files should stand alone, but we shouldn't include <sys/types.h>
36795         if we can get away with just <stddef.h>.
36796
36797         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36798         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36799         rather than <sys/types.h>, as we merely need size_t.
36800         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36801         to get size_t.
36802         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36803         Include <stdio.h>, to get FILE.
36804         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36805         memcasecmp.h has included <stddef.h> and all we need is size_t.
36806         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36807         our interface, instead of including <sys/types.h>
36808
36809 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36810
36811         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36812         now, as glibc mktime is buggy on non-glibc systems.
36813
36814 2003-06-03  Karl Berry  <karl@gnu.org>
36815
36816         * config/config.sub: update from prep.
36817
36818 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36819
36820         [from coreutils]
36821         Fix some minor time-related bugs with POSIX time arguments.
36822         Some valid time stamps were being rejected (notably -1, and
36823         time stamps before 1900 on 64-bit hosts).  And some invalid
36824         time stamps were being accepted, e.g. September 31.
36825
36826         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36827         that we can return (time_t) -1 successfully.
36828         * lib/posixtm.c: Likewise.
36829         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36830         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36831         (t): Remove static var.
36832         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36833         of static var.  All uses changed.
36834         (year): Do not reject years before 1900; they can occur with
36835         64-bit time_t.
36836         (posix_time_parse): Do not check for out-of-range components;
36837         that is now the caller's responsibility, since our checks were
36838         only approximations.
36839         (posixtime): Use mktime to check for out-of-range components,
36840         since it knows them exactly.
36841         If mktime returns (time_t) -1, check whether an error actually occurred
36842         by invoking localtime on -1.
36843         (main) [TEST_POSIXTIME]: Check for input data errors, and report
36844         posixtime failures better.
36845         Improve the test data (in comments only).
36846
36847 2003-06-02  Karl Berry  <karl@gnu.org>
36848
36849         * config/mkinstalldirs (version): new variable.
36850         (--version): new option.
36851         (usage): improve message.
36852
36853 2003-05-30  Karl Berry  <karl@gnu.org>
36854
36855         * lib/mktime.c: update from libc.
36856
36857 2003-05-30  Bruno Haible  <bruno@clisp.org>
36858
36859         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36860         * config/config.rpath: Upgrade to gettext-0.12.1.
36861
36862 2003-05-30  Bruno Haible  <bruno@clisp.org>
36863
36864         * m4/gettext.m4: Upgrade to gettext-0.12.1.
36865         * m4/nls.m4: New file, from gettext-0.12.1.
36866         * m4/po.m4: New file, from gettext-0.12.1.
36867         * m4/progtest.m4: Upgrade to gettext-0.12.1.
36868
36869 2003-05-30  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36872         * lib/localcharset.h: Likewise.
36873         * lib/localcharset.c: Likewise.
36874
36875 2003-05-29  Karl Berry  <karl@gnu.org>
36876
36877         * config/config.rpath: update from gettext.
36878
36879 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36880
36881         Assume the headers required for C89 freestanding compilers.
36882         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36883         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36884         * m4/human.m4 (gl_HUMAN): Likewise.
36885         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36886         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36887         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36888         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36889         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36890         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36891
36892 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36893
36894         Assume the headers required for C89 freestanding compilers.
36895         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36896         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36897         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36898         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36899         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36900         define, since <limits.h> is guaranteed to do that.
36901         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36902         * lib/exclude.c: Include <stdbool.h> unconditionally.
36903         * lib/tempname.c: Include <stddef.h> unconditionally.
36904         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36905         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36906         <stddef.h> does that.
36907         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36908         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36909         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36910         needed.
36911         * lib/xstrtol.c: Likewise.
36912         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36913         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36914
36915         * lib/addext.c (addext): Use assignment rather than cast, to avoid
36916         warnings on some platforms.
36917
36918         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36919         arbitrarily.
36920
36921 2003-05-26  Jim Meyering  <jim@meyering.net>
36922
36923         Merge in a change from coreutils:
36924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36925         that is guaranteed to be `no'.  Use `no_such_member' to indicate
36926         that condition, rather than `-1' which is slightly misleading.
36927         Change the name of the cache variable to have the gl_ prefix.
36928         Prompted by a patch from Richard Dawe for DJGPP.
36929
36930 2003-05-24  Karl Berry  <karl@gnu.org>
36931
36932         * config/config.guess: update from prep.
36933
36934 2003-05-22  Karl Berry  <karl@gnu.org>
36935
36936         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36937
36938 2003-05-20  Karl Berry  <karl@gnu.org>
36939
36940         * config/config.guess: update from prep.
36941
36942 2003-05-18  Karl Berry  <karl@gnu.org>
36943
36944         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36945         might actually be set by the user.
36946
36947         * config/depcomp, install-sh, mdate-sh: update from automake.
36948
36949 2003-05-17  Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36952         invalid expansion for AC_EGREP_CPP.
36953         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36954         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36955         Suggested by Akim Demaille <akim@epita.fr> in
36956         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36957
36958 2003-05-12  Jim Meyering  <jim@meyering.net>
36959
36960         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36961         the space-padded-by-default conversion specifiers, %e, %k, %l.
36962
36963 2003-05-12  Bruno Haible  <bruno@clisp.org>
36964
36965         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36966         the string is longer than 4 KB.
36967
36968 2003-05-11  Karl Berry  <karl@gnu.org>
36969
36970         * config/config.{guess,sub}: update from prep.
36971
36972 2003-05-09  Bruno Haible  <bruno@clisp.org>
36973
36974         * modules/error: Add m4/strerror_r.m4 to file list.
36975
36976 2003-05-03  Bruno Haible  <bruno@clisp.org>
36977
36978         Upgrade to Unicode-4.0.
36979         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36980         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36981         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36982         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36983         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36984         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36985         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36986         Change width of U+E0100..U+E01EF from 1 to 0.
36987
36988 2003-04-25  Jim Meyering  <jim@meyering.net>
36989
36990         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36991         of type size_t, not int.
36992
36993 2003-04-25  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/copy-file.c: Include <stddef.h>, for size_t.
36996
36997 2003-04-21  Paul Eggert  <eggert@twinsun.com>
36998
36999         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37000         code which expansion is under static control.  Patch imported from
37001         Akim Demaille's patch to Bison; see
37002         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37003
37004 2003-04-14  Bruno Haible  <bruno@clisp.org>
37005
37006         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37007
37008 2003-04-11  Jim Meyering  <jim@meyering.net>
37009
37010         Merge changes from Coreutils.
37011
37012         2003-03-22  Jim Meyering  <jim@meyering.net>
37013
37014         * lib/strftime.c (widen): Cast alloca return value to proper type.
37015
37016         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37017
37018         From GNU libc.
37019         * lib/strftime.c (my_strftime): Handle very large width
37020         specifications for numeric values correctly.  Improve checks for
37021         overflow.
37022
37023         2003-01-19  Jim Meyering  <jim@meyering.net>
37024
37025         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37026         definitions.
37027         (nl_get_alt_digit) [! defined my_strftime]: Define.
37028         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37029         _nl_get_alt_digit and _nl_get_walt_digit.
37030
37031         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37032         libc. These changes have no effect outside of _LIBC.
37033
37034 2003-04-10  Bruno Haible  <bruno@clisp.org>
37035
37036         * modules/findprog: New file.
37037         * MODULES.html.sh (func_all_modules): Add it.
37038
37039 2003-04-10  Bruno Haible  <bruno@clisp.org>
37040
37041         * m4/findprog.m4: New file.
37042         * m4/eaccess.m4: New file.
37043
37044 2003-04-10  Bruno Haible  <bruno@clisp.org>
37045
37046         * lib/findprog.h: New file, from GNU gettext.
37047         * lib/findprog.c: New file, from GNU gettext.
37048
37049 2003-04-05  Jim Meyering  <jim@meyering.net>
37050
37051         Merge changes from Coreutils.
37052
37053         * lib/exclude.h (PARAMS): Remove definition and uses.
37054         * lib/exclude.c: Remove uses of `PARAMS'.
37055
37056         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37057         Add test-cases for DOS filenames. Declare program_name.
37058         (main): Set up program_name.  Patch by Rich Dawe.
37059
37060         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37061         error from mntctl.
37062         Use mntctl's return value to drive the entry-processing loop, since
37063         we can't rely on the value of the vmt_length member in the last
37064         entry.  On some systems doing so could result in exhausting
37065         virtual memory.  Based in part on a patch from Mike Jetzer.
37066
37067 2003-04-04  Bruno Haible  <bruno@clisp.org>
37068
37069         * modules/linebreak: New file.
37070         * MODULES.html.sh (func_all_modules): Add it.
37071
37072 2003-04-04  Bruno Haible  <bruno@clisp.org>
37073
37074         * m4/linebreak.m4: New file.
37075
37076 2003-04-04  Bruno Haible  <bruno@clisp.org>
37077
37078         * lib/linebreak.h: New file, from GNU gettext.
37079         * lib/linebreak.c: New file, from GNU gettext with slight
37080         modifications.
37081         * lib/lbrkprop.h: New file, from GNU gettext.
37082
37083 2003-04-03  Bruno Haible  <bruno@clisp.org>
37084
37085         * modules/utf8-ucs4: New file.
37086         * modules/utf16-ucs4: New file.
37087         * modules/ucs4-utf8: New file.
37088         * modules/ucs4-utf16: New file.
37089         * MODULES.html.sh (func_all_modules): Add them.
37090
37091 2003-04-03  Bruno Haible  <bruno@clisp.org>
37092
37093         * m4/utf-ucs4.m4: New file.
37094         * m4/ucs4-utf.m4: New file.
37095
37096 2003-04-03  Bruno Haible  <bruno@clisp.org>
37097
37098         * lib/utf8-ucs4.h: New file, from GNU gettext.
37099         * lib/utf16-ucs4.h: New file, from GNU gettext.
37100         * lib/ucs4-utf8.h: New file, from GNU gettext.
37101         * lib/ucs4-utf16.h: New file, from GNU gettext.
37102
37103 2003-04-02  Bruno Haible  <bruno@clisp.org>
37104
37105         * modules/binary-io: New file.
37106         * MODULES.html.sh (func_all_modules): Add it.
37107
37108 2003-04-02  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/binary-io.h: New file, from GNU gettext.
37111
37112 2003-04-01  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/pathname: New file.
37115         * MODULES.html.sh (func_all_modules): Add it.
37116
37117 2003-04-01  Bruno Haible  <bruno@clisp.org>
37118
37119         * lib/pathname.h: New file, from GNU gettext.
37120         * lib/concatpath.c: New file, from GNU gettext.
37121
37122 2003-03-30  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37125
37126 2003-03-30  Bruno Haible  <bruno@clisp.org>
37127
37128         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37129         function chown() doesn't exist.
37130
37131 2003-03-28  Bruno Haible  <bruno@clisp.org>
37132
37133         * modules/copy-file: New file.
37134         * MODULES.html.sh (func_all_modules): Add it.
37135
37136 2003-03-28  Bruno Haible  <bruno@clisp.org>
37137
37138         * m4/copy-file.m4: New file.
37139
37140 2003-03-28  Bruno Haible  <bruno@clisp.org>
37141
37142         * lib/copy-file.h: New file, from GNU gettext.
37143         * lib/copy-file.c: New file, from GNU gettext.
37144
37145 2003-03-18  Jim Meyering  <jim@meyering.net>
37146
37147         * lib/quote.c (quote_n): Fix typo in comment.
37148
37149 2003-03-18  Bruno Haible  <bruno@clisp.org>
37150
37151         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37152         checking.
37153         * m4/onceonly_2_57.m4: Likewise.
37154
37155 2003-03-17  Bruno Haible  <bruno@clisp.org>
37156
37157         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37158         (m4_quote): Remove macro.
37159         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37160
37161 2003-03-14  Jim Meyering  <jim@meyering.net>
37162
37163         Merge changes from Coreutils.
37164         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37165         to be const, in order to avoid warnings.
37166         (obstack_room): Likewise.
37167         (obstack_empty_p): Likewise.
37168
37169 2003-03-14  Bruno Haible  <bruno@clisp.org>
37170
37171         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37172         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37173
37174 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37175
37176         Merge changes from Bison.
37177         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37178         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37179         when compiling Bison 1.875's `bitset bset = obstack_alloc
37180         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37181         * lib/hash.c: Include <stdbool.h> unconditionally.
37182
37183 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37184
37185         * m4/onceonly.m4 (m4_quote): New macro.
37186         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37187         Quote AC_FOREACH variable-expansions properly.
37188
37189 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37190
37191         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37192
37193 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37194
37195         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37196         Reported by Bruce Becker; see:
37197         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37198
37199 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37200             Bruno Haible  <bruno@clisp.org>
37201
37202         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37203         Reported by John Hughes, see
37204         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37205
37206 2003-02-20  Bruno Haible  <bruno@clisp.org>
37207
37208         * MODULES.html.sh (func_all_modules): Add poll.
37209
37210 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37211
37212         * modules/poll: New file.
37213
37214 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37215
37216         * lib/poll_.h: New file.
37217         * lib/poll.c: New file.
37218
37219 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37220
37221         * m4/poll.m4: New file.
37222
37223 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37224
37225         * modules/mathl: New file.
37226
37227 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37228
37229         * lib/mathl.h: New file.
37230         * lib/acosl.c: New file.
37231         * lib/asinl.c: New file.
37232         * lib/atanl.c: New file.
37233         * lib/ceill.c: New file.
37234         * lib/cosl.c: New file.
37235         * lib/expl.c: New file.
37236         * lib/floorl.c: New file.
37237         * lib/frexpl.c: New file.
37238         * lib/ldexpl.c: New file.
37239         * lib/logl.c: New file.
37240         * lib/sincosl.c: New file.
37241         * lib/sinl.c: New file.
37242         * lib/sqrtl.c: New file.
37243         * lib/tanl.c: New file.
37244         * lib/trigl.c: New file.
37245         * lib/trigl.h: New file.
37246
37247 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37248
37249         * m4/mathl.m4: New file.
37250
37251 2003-02-18  Bruno Haible  <bruno@clisp.org>
37252
37253         * MODULES.html.sh (func_all_modules): Add mathl.
37254
37255 2003-02-17  Bruno Haible  <bruno@clisp.org>
37256
37257         * modules/mkdtemp: New module.
37258         * MODULES.html.sh (func_all_modules): Add it.
37259
37260 2003-02-17  Bruno Haible  <bruno@clisp.org>
37261
37262         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37263
37264 2003-02-17  Bruno Haible  <bruno@clisp.org>
37265
37266         * lib/mkdtemp.h: New file, from GNU gettext.
37267         * lib/mkdtemp.c: New file, from GNU gettext.
37268
37269 2003-02-02  Jim Meyering  <jim@meyering.net>
37270
37271         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37272         e.g. glibc-2.2.93.
37273
37274 2003-01-31  Bruno Haible  <bruno@clisp.org>
37275
37276         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37277         'rpl_rename'.
37278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37279         'rpl_strnlen'.
37280         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37281         'rpl_strtod'.
37282         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37283         'rpl_utime'.
37284
37285 2003-01-31  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/rename.c: #undef rename before defining rpl_rename.
37288         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37289
37290 2003-01-30  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/vasnprintf, modules/vasprintf: New modules.
37293         * MODULES.html.sh (func_all_modules): Add them.
37294
37295 2003-01-30  Bruno Haible  <bruno@clisp.org>
37296
37297         * m4/signed.m4: New file, from GNU gettext.
37298         * m4/longdouble.m4: New file, from GNU gettext.
37299         * m4/wchar_t.m4: New file, from GNU gettext.
37300         * m4/wint_t.m4: New file, from GNU gettext.
37301         * m4/vasnprintf.m4: New file.
37302         * m4/vasprintf.m4: New file.
37303
37304 2003-01-30  Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/printf-args.h: New file, from GNU gettext.
37307         * lib/printf-args.c: New file, from GNU gettext.
37308         * lib/printf-parse.h: New file, from GNU gettext.
37309         * lib/printf-parse.c: New file, from GNU gettext.
37310         * lib/vasnprintf.h: New file, from GNU gettext.
37311         * lib/vasnprintf.c: New file, from GNU gettext.
37312         * lib/asnprintf.c: New file, from GNU gettext.
37313         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37314         * lib/vasprintf.c: New file, from GNU gettext.
37315         * lib/asprintf.c: New file, from GNU gettext.
37316
37317 2003-01-29  Bruno Haible  <bruno@clisp.org>
37318
37319         * modules/stpncpy: New module.
37320         * MODULES.html.sh (func_all_modules): Add it.
37321
37322 2003-01-29  Bruno Haible  <bruno@clisp.org>
37323
37324         * m4/stpncpy.m4: New file.
37325
37326 2003-01-29  Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37329         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37330
37331 2003-01-28  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/c-ctype: New module.
37334         * MODULES.html.sh (func_all_modules): Add it.
37335
37336 2003-01-28  Bruno Haible  <bruno@clisp.org>
37337
37338         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37339         Paul Eggert.
37340         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37341         Paul Eggert.
37342
37343 2003-01-27  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/xsetenv: New module.
37346         * MODULES.html.sh (func_all_modules): Add it.
37347
37348 2003-01-27  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/xsetenv.h: New file, from GNU gettext.
37351         * lib/xsetenv.c: New file, from GNU gettext.
37352
37353 2003-01-23  Jim Meyering  <jim@meyering.net>
37354
37355         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37356         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37357
37358 2003-01-23  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/minmax: New module.
37361         * MODULES.html.sh (func_all_modules): Add it.
37362
37363 2003-01-23  Bruno Haible  <bruno@clisp.org>
37364
37365         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37366         Eggert.
37367
37368 2003-01-22  Bruno Haible  <bruno@clisp.org>
37369
37370         * modules/exit: New module.
37371         * MODULES.html.sh (func_all_modules): Add it.
37372
37373 2003-01-22  Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/exit.h: New file, from GNU gettext.
37376
37377 2003-01-19  Bruno Haible  <bruno@clisp.org>
37378
37379         * gnulib-tool: Recognize option --extract-maintainer.
37380         (func_get_maintainer): New function.
37381         * modules/*: Add Maintainer entry.
37382
37383 2003-01-16  Jim Meyering  <jim@meyering.net>
37384
37385         * m4/regex.m4: The `regex' struct is both input and output.
37386         Initialize it before each use.  Patch by Tim Waugh.
37387
37388 2003-01-16  Bruno Haible  <bruno@clisp.org>
37389
37390         * MODULES.html.sh: Add a table of contents. Add the module name as
37391         leftmost column. Add hyperlinks.
37392
37393 2003-01-15  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37396
37397 2003-01-15  Bruno Haible  <bruno@clisp.org>
37398
37399         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37400         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37401         suffix.
37402
37403 2003-01-15  Bruno Haible  <bruno@clisp.org>
37404
37405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37406
37407 2003-01-15  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37410         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37411
37412 2003-01-14  Jim Meyering  <jim@meyering.net>
37413
37414         * lib/same.c (same_name): Tweak a comment.
37415
37416 2003-01-14  Bruno Haible  <bruno@clisp.org>
37417
37418         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37419         when a string comparison is sufficient.
37420
37421 2003-01-14  Bruno Haible  <bruno@clisp.org>
37422
37423         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37424         'unsigned int'.
37425
37426 2003-01-14  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/hash-pjw.c: Add comment about low quality of this function.
37429
37430 2003-01-13  Bruno Haible  <bruno@clisp.org>
37431
37432         * modules/stpcpy: Distribute lib/stpcpy.h.
37433         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37434
37435 2003-01-13  Bruno Haible  <bruno@clisp.org>
37436
37437         * modules/*: Add a description.
37438         * modules/strpbrk: Fix Makefile.am snippet.
37439         * modules/strtoimax: Fix dependencies.
37440         * modules/strtoumax: Likewise.
37441
37442 2003-01-13  Bruno Haible  <bruno@clisp.org>
37443
37444         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37445         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37446         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37447
37448 2003-01-13  Bruno Haible  <bruno@clisp.org>
37449
37450         * gnulib-tool (func_create_testdir): Store config/* files in the main
37451         directory.
37452         * config.rpath: Move to ...
37453         * config/config.rpath: ... here.
37454         * modules/gettext: Contains config/config.rpath, not config.rpath.
37455         * modules/iconv: Likewise.
37456
37457 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37458
37459         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37460         to avoid collisions with libcurses and libreadline.
37461
37462         * m4/getstr.m4: Remove.
37463         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37464
37465 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37466
37467         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37468         to avoid collisions with libcurses and libreadline.
37469
37470         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37471         * lib/getstr.h, getstr.c: Remove.
37472         * lib/getline.c: Include "getline.h", to check interface.
37473         Move body of old getstr.c here: this defines MIN_CHUNK and
37474         declares getdelim2, which is renamed from getstr.
37475         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37476
37477         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37478         All uses changed.
37479         * lib/linebuffer.h: Likewise.
37480         (readline): Remove backward-compatibility macro.
37481
37482 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37483
37484         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37485         to avoid collisions with libcurses and libreadline.
37486         * getstr: Remove.
37487         * MODULES.html.sh: Remove getstr.
37488         * modules/getline: Depend on unlocked-io, not getstr.
37489
37490 2003-01-12  Jim Meyering  <jim@meyering.net>
37491
37492         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37493
37494 2003-01-10  Bruno Haible  <bruno@clisp.org>
37495
37496         * modules/alloca: Change Makefile.am requirements. Simplify Include
37497         requirements. Add lib/alloca_.h to file list.
37498
37499 2003-01-10  Bruno Haible  <bruno@clisp.org>
37500
37501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37502
37503 2003-01-10  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/alloca_.h: New file.
37506         * lib/getdate.y: Unconditionally include alloca.h.
37507         * lib/makepath.c: Likewise.
37508         * lib/setenv.c: Likewise.
37509         * lib/userspec.c: Likewise.
37510
37511 2003-01-09  Karl Berry  <karl@gnu.org>
37512
37513         * MODULES.html.sh: include `dirname $0` in PATH, to find
37514         gnulib-tool.
37515
37516 2003-01-09  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37519         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37520
37521 2003-01-09  Bruno Haible  <bruno@clisp.org>
37522
37523         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37524
37525 2003-01-09  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/stdbool.h.in: New file.
37528
37529 2003-01-09  Bruno Haible  <bruno@clisp.org>
37530
37531         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37532         * MODULES.html.sh: Likewise.
37533
37534 2003-01-08  Jim Meyering  <jim@meyering.net>
37535
37536         * lib/full-write.c: Undefine and define-away `const' after inclusion
37537         of errno.h, not before.  Suggestion from Bruno Haible.
37538
37539 2003-01-08  Bruno Haible  <bruno@clisp.org>
37540
37541         * modules/full-read: Depend on full-write.
37542
37543 2003-01-08  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/safe-read.c: Include specification header first, to ensure its
37546         selfcontainedness.
37547         * lib/full-write.c: Likewise.
37548
37549 2003-01-07  Jim Meyering  <jim@meyering.net>
37550
37551         * lib/full-write.c: Rework so that it may serve to define full_read,
37552         too.
37553         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37554
37555 2003-01-07  Bruno Haible  <bruno@clisp.org>
37556
37557         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37558         <inttypes.h>.
37559         * lib/xstrtol.h: Likewise.
37560         * lib/xstrtoimax.c: Likewise.
37561         * lib/xstrtoumax.c: Likewise.
37562         * lib/human.h: Likewise.
37563
37564         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37565         on systems that have <inttypes.h> but not <stdint.h>.
37566
37567 2003-01-07  Bruno Haible  <bruno@clisp.org>
37568
37569         * MODULES.html.sh: Add copyright notice.
37570         (missed_files): Omit CVS directory entries.
37571         (func_module): Make it work with sed-3.02.
37572         * MODULES.txt: Remove file.
37573
37574 2003-01-06  Jim Meyering  <jim@meyering.net>
37575
37576         * lib/version-etc.c: Update year in translatable copyright string.
37577
37578 2003-01-03  Karl Berry  <karl@gnu.org>
37579
37580         * config/config.{guess,sub}: update from prep.
37581
37582 2003-01-02  Karl Berry  <karl@gnu.org>
37583
37584         * doc/COPYING.DOC: belatedly updated to 1.2.
37585
37586 2003-01-01  Karl Berry  <karl@gnu.org>
37587
37588         * gnulib-tool (func_verify_module): report module name $module in
37589         error message, not $1.
37590         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37591         be created, only if it doesn't exist.
37592         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37593
37594 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37595
37596         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37597
37598 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37599
37600         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37601         memcmp if strcoll doesn't work.
37602
37603 2002-12-31  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37606         nonempty.
37607
37608 2002-12-31  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/memcoll.c (STRCOLL): New macro.
37611         (memcoll): Use it.
37612
37613 2002-12-31  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/localcharset.h: New file.
37616         * lib/localcharset.c: Include it.
37617         * lib/unicodeio.c: Likewise.
37618
37619 2002-12-31  Bruno Haible  <bruno@clisp.org>
37620
37621         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37622         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37623
37624 2002-12-31  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/getline.h: Include <stddef.h>, for size_t.
37627
37628         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37629         * lib/unicodeio.c: Don't include <stddef.h>.
37630
37631 2002-12-31  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37634         HAVE_TM_ZONE.
37635
37636 2002-12-24  Karl Berry  <karl@gnu.org>
37637
37638         * config/config.guess: update from prep.
37639
37640 2002-12-24  Bruno Haible  <bruno@clisp.org>
37641
37642         General infrasructure.
37643         * m4/README: Rewritten.
37644         * m4/onceonly.m4: New file.
37645         * m4/onceonly_2_57.m4: New file.
37646
37647         Module atexit.
37648         * m4/atexit.m4: New file.
37649
37650         Module strtod.
37651         * m4/strtod.m4: New file.
37652
37653         Module strtol.
37654         * m4/strtol.m4: New file.
37655
37656         Module strtoul.
37657         * m4/strtoul.m4: New file.
37658
37659         Module memchr.
37660         * m4/memchr.m4: New file.
37661
37662         Module memcmp.
37663         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37664         (jm_FUNC_MEMCMP): Invoke it.
37665
37666         Module memcpy.
37667         * m4/memcpy.m4: New file.
37668
37669         Module memmove.
37670         * m4/memmove.m4: New file.
37671
37672         Module memset.
37673         * m4/memset.m4: New file.
37674
37675         Module strcspn.
37676         * m4/strcspn.m4: New file.
37677
37678         Module strpbrk.
37679         * m4/strpbrk.m4: New file.
37680
37681         Module strstr.
37682         * m4/strstr.m4: New file.
37683
37684         Module strerror.
37685         * m4/strerror.m4: New file.
37686
37687         Module mktime.
37688         * m4/mktime.m4: Renamed from jm-mktime.m4.
37689         (gl_PREREQ_MKTIME): New macro.
37690         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37691
37692         Module malloc.
37693         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37694         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37695         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37696
37697         Module realloc.
37698         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37699         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37700         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37701
37702         Module strftime.
37703         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37704         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37705         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37706         gl_TM_GMTOFF.
37707         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37708
37709         Module xalloc.
37710         * m4/xalloc.m4: New file.
37711
37712         Module alloca.
37713         * m4/alloca.m4: New file.
37714
37715         Module putenv.
37716         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37717         (jm_FUNC_PUTENV): Invoke it.
37718
37719         Module setenv.
37720         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37721         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37722         when invoked twice.
37723         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37724         gt_FUNC_SETENV.
37725
37726         Module memrchr.
37727         * m4/memrchr.m4: New file.
37728
37729         Module stpcpy.
37730         * m4/stpcpy.m4: New file.
37731
37732         Module strcase.
37733         * m4/strcase.m4: New file.
37734
37735         Module strdup.
37736         * m4/strdup.m4: New file.
37737
37738         Module strnlen.
37739         * m4/strnlen.m4: New file.
37740
37741         Module strndup.
37742         * m4/strndup.m4: New file.
37743
37744         Module xstrtod.
37745         * m4/xstrtod.m4: New file.
37746
37747         Module xstrtol.
37748         * m4/xstrtol.m4: New file.
37749
37750         Module getdate.
37751         * m4/getdate.m4: New file.
37752
37753         Module unlocked-io.
37754         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37755         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37756         * m4/jm-glibc-io.m4n: Remove file.
37757
37758         Module long-options.
37759         * m4/long-options.m4: New file.
37760
37761         Module md5.
37762         * m4/md5.m4: New file.
37763
37764         Module sha.
37765         * m4/sha.m4: New file.
37766
37767         Module getstr.
37768         * m4/getstr.m4: New file.
37769
37770         Module getline.
37771         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37772         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37773         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37774         simply getline. Infoke gl_PREREQ_GETLINE.
37775
37776         Module obstack.
37777         * m4/obstack.m4: New file.
37778
37779         Module hash.
37780         * m4/hash.m4: New file.
37781
37782         Module readtokens.
37783         * m4/readtokens.m4: New file.
37784
37785         Module strverscmp.
37786         * m4/strverscmp.m4: New file.
37787
37788         Module stdbool.
37789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37790         OSF/1.
37791
37792         Module strtoll.
37793         * m4/strtoll.m4: New file.
37794
37795         Module strtoull.
37796         * m4/strtoull.m4: New file.
37797
37798         Module strtoimax.
37799         * m4/strtoimax.m4: New file.
37800
37801         Module strtoumax.
37802         * m4/strtoumax.m4: New file.
37803
37804         Module xstrtoimax.
37805         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37806         jm_AC_PREREQ_XSTRTOIMAX.
37807         Moved the strtol prerequisites to strtol.m4.
37808         Moved the strtoll prerequisites to strtoll.m4.
37809         Moved the strtoimax prerequisites to strtoimax.m4.
37810
37811         Module xstrtoumax.
37812         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37813         jm_AC_PREREQ_XSTRTOUMAX.
37814         Moved the strtoul prerequisites to strtoul.m4.
37815         Moved the strtoull prerequisites to strtoull.m4.
37816         Moved the strtoumax prerequisites to strtoumax.m4.
37817
37818         Module chown.
37819         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37820         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37821
37822         Module dup2.
37823         * m4/dup2.m4: New file.
37824
37825         Module ftruncate.
37826         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37827         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37828
37829         Module getgroups.
37830         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37831         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37832
37833         Module gettimeofday.
37834         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37835         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37836         gl_PREREQ_GETTIMEOFDAY.
37837
37838         Module mkdir.
37839         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37840         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37841
37842         Module mkstemp.
37843         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37844         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37845         jm_AC_TYPE_UINTMAX_T.
37846         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37847
37848         Module stat.
37849         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37850         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37851
37852         Module lstat.
37853         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37854         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37855
37856         Module timespec.
37857         * m4/timespec.m4 (gl_TIMESPEC): New macro.
37858         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37859         * m4/st_mtim.m4: Indentation.
37860
37861         Module nanosleep.
37862         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37863         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37864         gl_PREREQ_NANOSLEEP.
37865
37866         Module regex.
37867         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37868         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37869         (gl_REGEX): New macro.
37870
37871         Module rename.
37872         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37873         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37874
37875         Module rmdir.
37876         * m4/rmdir.m4: New file.
37877
37878         Module utime.
37879         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37880         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37881         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37882
37883         Module dirname.
37884         * m4/dirname.m4: New file.
37885
37886         Module getopt.
37887         * m4/getopt.m4: New file.
37888
37889         Module unistd-safer.
37890         * m4/unistd-safer.m4: New file.
37891
37892         Module fnmatch.
37893         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37894         declaration.
37895         (gl_PREREQ_FNMATCH_EXTRA): New macro.
37896         (gl_FUNC_FNMATCH_POSIX): New macro.
37897         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37898         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37899         simply fnmatch.
37900
37901         Module exclude.
37902         * m4/exclude.m4: New file.
37903
37904         Module human.
37905         * m4/human.m4: New file.
37906
37907         Module acl.
37908         * m4/acl.m4: Nop.
37909
37910         Module backupfile.
37911         * m4/backupfile.m4: New file.
37912         * m4/d-ino.m4: Indentation.
37913
37914         Module fsusage.
37915         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37916         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37917         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37918
37919         Module dirfd.
37920         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37921         requirements.
37922
37923         Module euidaccess.
37924         * m4/euidaccess.m4: New file.
37925
37926         Module file-type.
37927         * m4/file-type.m4: New file.
37928
37929         Module fileblocks.
37930         * m4/fileblocks.m4: New file.
37931
37932         Module filemode.
37933         * m4/filemode.m4: New file.
37934
37935         Module isdir.
37936         * m4/isdir.m4: New file.
37937
37938         Module lchown.
37939         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37940         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37941
37942         Module makepath.
37943         * m4/makepath.m4: New file.
37944
37945         Module modechange.
37946         * m4/modechange.m4: New file.
37947
37948         Module mountlist.
37949         * m4/mountlist.m4: New file.
37950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37951         Indentation.
37952
37953         Module path-concat.
37954         * m4/path-concat.m4: New file.
37955
37956         Module pathmax.
37957         * m4/pathmax.m4: New file.
37958
37959         Module same.
37960         * m4/same.m4: New file.
37961
37962         Module save-cwd.
37963         * m4/save-cwd.m4: New file.
37964
37965         Module savedir.
37966         * m4/savedir.m4: New file.
37967
37968         Module xgetcwd.
37969         * m4/xgetcwd.m4: New file.
37970         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37971
37972         Module xreadlink.
37973         * m4/xreadlink.m4: New file.
37974
37975         Module safe-read.
37976         * m4/safe-read.m4: New file.
37977
37978         Module safe-write.
37979         * m4/safe-write.m4: New file.
37980
37981         Module closeout.
37982         * m4/closeout.m4: New file.
37983
37984         Module stdio-safer.
37985         * m4/stdio-safer.m4: New file.
37986
37987         Module getpass.
37988         * m4/getpass.m4: New file.
37989
37990         Module getugroups.
37991         * m4/getugroups.m4: New file.
37992
37993         Module group-member.
37994         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37995         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37996
37997         Module idcache.
37998         * m4/idcache.m4: New file.
37999
38000         Module userspec.
38001         * m4/userspec.m4: New file.
38002
38003         Module gettime.
38004         * m4/clock_time.m4: New file.
38005         * m4/gettime.m4: New file.
38006
38007         Module settime.
38008         * m4/settime.m4: New file.
38009
38010         Module posixtm.
38011         * m4/posixtm.m4: New file.
38012
38013         Module gethostname.
38014         * m4/gethostname.m4: New file.
38015
38016         Module canon-host.
38017         * m4/canon-host.m4: New file.
38018
38019         Module gettext.
38020         * m4/codeset.m4: New file, from gettext-0.11.5.
38021         * m4/gettext.m4: New file, from gettext-0.11.5.
38022         * m4/glibc21.m4: New file, from gettext-0.11.5.
38023         * m4/iconv.m4: New file, from gettext-0.11.5.
38024         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38025         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38026         * m4/inttypes.m4: New file, from gettext-0.11.5.
38027         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38028         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38029         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38030         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38031         * m4/lib-link.m4: New file, from gettext-0.11.5.
38032         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38033         * m4/progtest.m4: New file, from gettext-0.11.5.
38034         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38035         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38036         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38037
38038         Module localcharset.
38039         * m4/localcharset.m4: New file.
38040
38041         Module hard-locale.
38042         * m4/hard-locale.m4: New file.
38043
38044         Module mbswidth.
38045         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38046         onceonly macros.
38047         * m4/mbrtowc.m4: Add comment.
38048
38049         Module memcasecmp.
38050         * m4/memcasecmp.m4: New file.
38051
38052         Module memcoll.
38053         * m4/memcoll.m4: New file.
38054
38055         Module unicodeio.
38056         * m4/unicodeio.m4: New file.
38057
38058         Module rpmatch.
38059         * m4/rpmatch.m4: New file.
38060
38061         Module yesno.
38062         * m4/yesno.m4: New file.
38063
38064         Module exitfail.
38065         * m4/exitfail.m4: New file.
38066
38067         Module c-stack.
38068         * m4/c-stack.m4 (gl_C_STACK): New macro.
38069         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38070
38071         Module error.
38072         * m4/error.m4 (gl_ERROR): New macro.
38073         (jm_PREREQ_ERROR): Use onceonly macros.
38074
38075         Module fatal.
38076         * m4/fatal.m4: New file.
38077
38078         Module getloadavg.
38079         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38080         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38081
38082         Module getpagesize.
38083         * m4/getpagesize.m4: New file.
38084
38085         Module getusershell.
38086         * m4/getusershell.m4: New file.
38087
38088         Module physmem.
38089         * m4/physmem.m4: New file.
38090
38091         Module posixver.
38092         * m4/posixver.m4: New file.
38093
38094         Module quotearg.
38095         * m4/quotearg.m4: New file.
38096
38097         Module quote.
38098         * m4/quote.m4: New file.
38099
38100         Module readutmp.
38101         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38102
38103         Module sig2str.
38104         * m4/sig2str.m4: New file.
38105
38106         Other.
38107         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38108         ulonglong.m4.
38109         * m4/intmax_t.m4: New file.
38110         * m4/d-type.m4: Indentation.
38111         * m4/jm-macros.m4: Update.
38112         * m4/prereq.m4 (jm_PREREQ): Update.
38113         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38114         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38115         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38116         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38117         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38118         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38119         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38120         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38121         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38122         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38123         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38124         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38125         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38126         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38127         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38128         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38129         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38130         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38131         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38132
38133 2002-12-24  Bruno Haible  <bruno@clisp.org>
38134
38135         * MODULES.txt: Update according to m4/ changes.
38136
38137         Module gettext.
38138         * config.rpath: New file, from gettext-0.11.5.
38139
38140         * modules/*: New module descriptions.
38141         * gnulib-tool: New file.
38142         * MODULES.html.sh: New file.
38143
38144 2002-12-21  Karl Berry  <karl@gnu.org>
38145
38146         * doc/fdl.texi: update to version 1.2.
38147
38148 2002-12-19  Karl Berry  <karl@gnu.org>
38149
38150         * config/config.guess: update from prep.
38151
38152 2002-12-18  Bruno Haible  <bruno@clisp.org>
38153
38154         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38155         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38156
38157 2002-12-17  Bruno Haible  <bruno@clisp.org>
38158
38159         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38160         stdlib.h, string.h.
38161
38162 2002-12-17  Bruno Haible  <bruno@clisp.org>
38163
38164         * lib/canon-host.c (strdup): Remove unused declaration.
38165
38166         * lib/fsusage.c: Include full_read.h.
38167         (get_fs_usage): Use full_read instead of safe_read.
38168
38169         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38170
38171 2002-12-12  Karl Berry  <karl@gnu.org>
38172
38173         * config/config.guess: update from prep.
38174
38175 2002-12-11  Bruno Haible  <bruno@clisp.org>
38176
38177         * m4/setenv.m4: New file, from gettext-0.11.5.
38178
38179 2002-12-11  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38182         not unsetenv().
38183         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38184         modifications:
38185
38186         2002-12-11  Bruno Haible  <bruno@clisp.org>
38187
38188                 * setenv.c (alloca): Fall back to malloc.
38189                 (freea): New macro.
38190                 (setenv): Use freea() to free memory allocated with alloca().
38191
38192         2002-11-13  Bruno Haible  <bruno@clisp.org>
38193
38194                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38195                 function declarations.
38196                 * unsetenv.c (unsetenv): Likewise.
38197
38198         2002-03-04  Bruno Haible  <bruno@clisp.org>
38199
38200                 Portability to AIX 4.3.3.
38201                 * unsetenv.c: New file, extracted from setenv.c.
38202                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38203
38204         2001-12-20  Bruno Haible  <bruno@clisp.org>
38205
38206                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38207                 use malloc instead. For SunOS 4.
38208
38209         2001-12-11  Bruno Haible  <bruno@clisp.org>
38210
38211                 * setenv.c: Declare alloca.
38212                 (compar_fn_t): New typedef.
38213                 (KNOWN_VALUE, STORE_VALUE): Use it.
38214
38215         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38216         setenv.h.
38217
38218 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38219
38220         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38221         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38222         Choose values that are less likely to collide with system fnmatch
38223         options.
38224         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38225         defined (e.g., a pure POSIX system).
38226         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38227         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38228
38229 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38230
38231         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38232         a pain in practice to deal with generated m4 files.  This change
38233         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38234
38235         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38236         and jm-glibc-io.m4, as they are no longer a special case.
38237         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38238         kludge and the auto-generation stuff.  Check only whether the
38239         functions are declared, not whether they exist, since older hosts
38240         that don't declare the functions can't use the optimization anyway.
38241
38242 2002-12-06  Jim Meyering  <jim@meyering.net>
38243
38244         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38245
38246         Merge in changes from libc's misc/error.c, in preparation
38247         for the merge of gnulib's changes back into libc.
38248
38249         * lib/error.c (_): Define only if not already defined.
38250         Move definition to follow all #include directives.
38251         Include unlocked-io.h only if !_LIBC.
38252         [_LIBC]: Include <libio/libioP.h>.
38253         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38254         (fflush): Tweak definition to use INTUSE.
38255         (putc): Define.
38256
38257 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38258
38259         * lib/alloca.c [defined emacs]: Include "lisp.h".
38260         (xalloc_die) [defined emacs]: New macro.
38261         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38262         [! defined emacs]: Include <xalloc.h>.
38263         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38264         (pointer): Typedef to POINTER_TYPE *.
38265         (malloc): Remove decl; we now always use xmalloc.
38266         (alloca): Use old-style definition, since Emacs needs this.
38267         Check for arithmetic overflow when computing combined size.
38268
38269 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38270
38271         Do not generate unlocked-io.h automatically, since it's easier to
38272         maintain it by hand.
38273
38274         * lib/unlocked-io.h: New file, from GNU diffutils,
38275         but with proper copyright notice and attribution.
38276         * lib/gen-uio: Remove.
38277         * lib/Makefile.am: Add copyright notice.
38278         (libfetish_a_SOURCES): Add unlocked-io.h.
38279         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38280         (DISTCLEANFILES, io_functions): Remove macros.
38281         (EXTRA_DIST): Remove gen_uio.
38282         (unlocked-io.h): Remove rule.
38283
38284 2002-12-04  Jim Meyering  <jim@meyering.net>
38285
38286         Reflect the fact that stat.c and lstat.c are no longer generated.
38287         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38288         (DISTCLEANFILES): Likewise.
38289         (EXTRA_DIST): Likewise.
38290         (all_local): Don't depend on stat.c or lstat.c.
38291         (stat.c, lstat.c): Remove rules.
38292         (EXTRA_DIST): Remove xstat.in.
38293
38294         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38295         * lib/stat.c: New file.  Contents mostly from xstat.in.
38296         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38297         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38298
38299         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38300         too.
38301         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38302
38303 2002-12-03  Jim Meyering  <jim@meyering.net>
38304
38305         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38306         but not semantics, to minimize the differences between these two files.
38307         (safe_read): Change comment to mention SAFE_READ_ERROR.
38308
38309         * lib/safe-read.c (IS_EINTR): Define.
38310         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38311
38312 2002-12-02  Jim Meyering  <jim@meyering.net>
38313
38314         * lib/safe-read.c (EINTR): Define.
38315         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38316         (INT_MAX): Provide fallback.
38317         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38318
38319         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38320
38321 2002-12-02  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38324         Define, taken from safe-read.c.
38325         (INT_MAX): Provide fallback.
38326         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38327         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38328
38329         * lib/safe-read.c (EINTR): Remove definition.
38330         (safe_read): Don't use EINTR if it is absent.
38331
38332 2002-12-01  Jim Meyering  <jim@meyering.net>
38333
38334         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38335         zero.
38336         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38337
38338 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38339
38340         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38341         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38342         with `if (! (value < limit)) abort ();', for readability.
38343
38344 2002-11-26  Karl Berry  <karl@gnu.org>
38345
38346         * lib/strdup.c: copy from libc again, with jim's ok.
38347         * lib/.cppi-disable: re-add strdup.c
38348
38349 2002-11-25  Karl Berry  <karl@gnu.org>
38350
38351         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38352         instead of "strtol.c".
38353
38354 2002-11-25  Karl Berry  <karl@gnu.org>
38355
38356         * config/install-sh: update from automake for variable quoting, $0 in
38357         error msgs, etc.
38358
38359         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38360         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38361         entry.
38362
38363 2002-11-25  Jim Meyering  <jim@meyering.net>
38364
38365         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38366
38367 2002-11-24  Karl Berry  <karl@gnu.org>
38368
38369         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38370         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38371
38372 2002-11-24  Jim Meyering  <jim@meyering.net>
38373
38374         Update from coreutils:
38375
38376         * lib/mktime.c: Merge in changes from libc.
38377
38378         Avoid a link-time failure on some Linux systems.
38379         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38380         (otherwise).
38381         (__mon_yday): Declare with the STATIC attribute.
38382         (__mktime_internal): Likewise.
38383         Based on a report from Greg Schafer.
38384
38385 2002-11-23  Jim Meyering  <jim@meyering.net>
38386
38387         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38388         Use `unsigned', not `int', as type of index.
38389
38390         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38391
38392         * lib/fsusage.c: Remove unneeded parentheses around operands of
38393         `defined'.
38394
38395 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38396
38397         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38398         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38399         so that we can be included first.
38400         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38401         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38402         No need to include stddef.h or sys/types.h any more.
38403         Surround local include files with "", not "<>".
38404         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38405         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38406         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38407         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38408         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38409         (ISPRINT): Remove; no longer needed now that we assume C89.
38410
38411         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38412         Preserve errno.
38413
38414         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38415         quotearg_char): Use SIZE_MAX rather than
38416         (size_t) -1 when we are talking about "infinity".
38417
38418         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38419
38420 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38421
38422         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38423         hint that one should use `if (! x) abort ();' rather than `assert
38424         (x);', and anyway it's one less thing to worry about configuring.
38425         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38426         hash_rehash, hash_insert): Use abort rather than assert.
38427
38428 2002-11-22  Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/safe-read.h: Assume C89. Add comments.
38431         (safe_read): Change return type to size_t.
38432         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38433         byte counts > SSIZE_MAX correctly.
38434         * lib/safe-write.h: New file.
38435         * lib/safe-write.c: New file.
38436         * lib/full-read.h: New file.
38437         * lib/full-read.c: New file.
38438         * lib/full-write.h: Assume C89. Add comments.
38439         * lib/full-write.c: Include safe-write.h.
38440         (full_write): Rewritten to use safe_write.
38441         Suggested by Jim Meyering and Paul Eggert.
38442
38443 2002-11-21  Jim Meyering  <jim@meyering.net>
38444
38445         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38446
38447         Merge in changes from the coreutils.
38448
38449         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38450         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38451         <stdint.h>.
38452         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38453         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38454         int.  Work more efficiently if X is the same width as uintmax_t.
38455         Do not compare X to -1, to avoid bogus compiler warning.
38456         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38457         Don't assume that f_frsize and f_bsize are the same type.
38458
38459         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38460         warning on FreeBSD.
38461
38462         * lib/makepath.c (make_path): Restore umask *before* creating the final
38463         component.
38464         (make_path): Minor reformatting.
38465
38466         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38467         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38468         HAVE_MALLOC/HAVE_REALLOC.
38469
38470         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38471         dummy ones.  At least on GNU/Linux systems, `auto' means something
38472         else.
38473         From Michael Stone.
38474
38475 2002-11-21  Bruno Haible  <bruno@clisp.org>
38476
38477         Remove case insensitive option matching.
38478         * lib/argmatch.h (argcasematch): Remove declaration.
38479         (ARGCASEMATCH): Remove macro.
38480         (__xargmatch_internal): Remove case_sensitive argument.
38481         (XARGMATCH): Update.
38482         (XARGCASEMATCH): Remove macro.
38483         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38484         case_sensitive argument.
38485         (argcasematch): Remove function.
38486         (__xargmatch_internal): Remove case_sensitive argument.
38487         (main): Use XARGMATCH instead of XARGCASEMATCH.
38488
38489         * lib/xmalloc.c: Change compile-time error message. Add comment about
38490         required autoconf version.
38491
38492 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38493
38494         Merge argmatch cleanups from Bison.  Assume C89.
38495
38496         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38497         Include stdlib.h, for EXIT_FAILURE.
38498         Always include <string.h>, since we assume C89.
38499         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38500         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38501         Include <stddef.h> instead, since it's all we need for size_t.
38502         (PARAMS): Remove.  All uses removed.
38503         (ARRAY_CARDINALITY): Do not bother to #undef.
38504         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38505         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38506         Remove unnecessary parentheses.
38507         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38508         Insert necessary parentheses.
38509         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38510         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38511
38512 2002-11-19  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38515         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38516
38517         * lib/mbswidth.h (PARAMS): Remove macro.
38518         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38519         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38520
38521         * lib/gcd.h (PARAMS): Remove macro.
38522         (gcd): Use ANSI C function declarations.
38523         * lib/gcd.c (gcd): Likewise.
38524
38525 2002-11-15  Bruno Haible  <bruno@clisp.org>
38526
38527         * lib/strcspn.c: Include <stddef.h>.
38528         (strcspn): Use ANSI C function declaration. Change return type to
38529         size_t. Use NULL.
38530         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38531         (strpbrk): Use NULL.
38532         * lib/strpbrk.h (PARAMS): Remove macro.
38533         (strpbrk): Use ANSI C function declaration.
38534         * lib/strstr.c: Don't include <sys/types.h>.
38535         * lib/strstr.h (PARAMS): Remove macro.
38536         (strstr): Use ANSI C function declarations.
38537
38538 2002-11-14  Karl Berry  <karl@gnu.org>
38539
38540         * config/mkinstalldirs: `do' on separate line, instead of
38541         `for var; do'.
38542
38543 2002-11-06  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38546         * lib/gcd.c (gcd): Likewise.
38547
38548 2002-11-05  Bruno Haible  <bruno@clisp.org>
38549
38550         * lib/gcd.h: New file, from gettext-0.11.5.
38551         * lib/gcd.c: New file, from gettext-0.11.5.
38552
38553 2002-11-05  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38556         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38557         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38558         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38559
38560         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38561         <libintl.h>.
38562         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38563         <libintl.h>.
38564
38565         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38566         * lib/human.c: Include gettext.h instead of <libintl.h>.
38567         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38568         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38569         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38570         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38571         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38572         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38573         (textdomain): Remove definition.
38574         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38575
38576         * lib/long-options.c: Remove include of <libintl.h> and definition of
38577         _.
38578         * lib/same.c: Remove include of <libintl.h> and definition of _.
38579
38580 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38581
38582         * lib/config.charset: A few additions for Solaris.
38583
38584 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38585
38586         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38587         * lib/localcharset.c (locale_charset): Declare as extern "C".
38588
38589 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38590
38591         * lib/config.charset: msdos in uk_UA uses CP1125.
38592
38593 2002-11-04  Bruno Haible  <bruno@clisp.org>
38594
38595         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38596         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38597         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38598         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38599         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38600
38601 2002-11-04  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/localcharset.c (locale_charset): Don't return an empty string.
38604
38605 2002-11-04  Bruno Haible  <bruno@clisp.org>
38606
38607         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38608         aliases.
38609
38610 2002-11-04  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/config.charset: Update for newest glibc. Add canonical names
38613         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38614
38615 2002-11-04  Bruno Haible  <bruno@clisp.org>
38616
38617         * lib/config.charset: Add support for NetBSD.
38618
38619 2002-11-04  Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38622
38623 2002-11-01  Bruno Haible  <bruno@clisp.org>
38624
38625         * configure.in: Add AC_CONFIG_AUX_DIR call.
38626         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38627         test/Makefile.
38628         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38629
38630 2002-09-28  Karl Berry  <karl@gnu.org>
38631
38632         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38633         installed automake until the next release, since changes have been
38634         made.
38635
38636 2002-09-25  Karl Berry  <karl@gnu.org>
38637
38638         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38639         * lib/getopt*: copy from libc/posix.
38640         * lib/gettext.h: copy from gettext.
38641         * lib/.cppi-disable: add strdup.c, gettext.h.
38642
38643 2002-09-25  Karl Berry  <karl@gnu.org>
38644
38645         * config/srclist.txt: enable gettext.h check.
38646         * config/config.{guess,sub}: update from prep.
38647         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38648                 from automake 1.6.3.
38649         See srclist*.
38650
38651 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38652
38653         * regex.c (PATFETCH): Remove the translating fetch.
38654         (PATFETCH_RAW): Rename to PATFETCH.
38655         (set_image_of_range): New fun.
38656         (SET_RANGE_TABLE_WORK_AREA): Use it.
38657         (regex_compile): Don't translate the pattern chars so eagerly.
38658         Only do it when inserting an `exactn' bytecode or when handling
38659         a char-range.
38660         (mutually_exclusive_p): Avoid empty statement.
38661
38662 2002-07-06  Jim Meyering  <meyering@lucent.com>
38663
38664         * m4/README: Don't mention Makefile.am.in.
38665         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38666
38667 2002-07-01  Jim Meyering  <meyering@lucent.com>
38668
38669         * lib/c-stack.c: Include sys/time.h.
38670         From Volker Borchert.
38671
38672 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38673
38674         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38675
38676 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38677
38678         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38679         New macro.  Use it uniformly instead of
38680         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38681         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38682         reported by Vin Shelton.
38683
38684 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38685
38686         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38687         Do not assume SA_SIGINFO behavior.
38688         Bug reported by Jim Meyering on NetBSD 1.5.2.
38689
38690 2002-06-22  Jim Meyering  <meyering@lucent.com>
38691
38692         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38694
38695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38696         now that configure.ac uses AC_GNU_SOURCE.
38697         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38698         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38699
38700         Update to latest tools.  Suggestions from Paul Eggert.
38701         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38702         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38703         * m4/fnmatch.m4: Likewise.
38704         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38705         to AC_HEADER_STDBOOL
38706
38707 2002-06-22  Jim Meyering  <meyering@lucent.com>
38708
38709         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38710         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38711
38712 2002-06-22  Jim Meyering  <meyering@lucent.com>
38713
38714         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38715
38716         * lib/exitfail.c, exitfail.h: Likewise.
38717         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38718
38719         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38720         of fnmatch.h.
38721         (EXTRA_DIST): Add fnmatch_loop.c.
38722         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38723
38724         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38725         * lib/fnmatch.c: Update from diffutils-2.8.2.
38726         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38727         * lib/fnmatch.h: Remove file.
38728
38729 2002-06-21  Jim Meyering  <meyering@lucent.com>
38730
38731         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38732         * m4/mbrtowc.m4: Likewise.
38733
38734         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38735         * m4/mbswidth.m4: Reflect name change:
38736         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38737         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38738
38739         * m4/lib-link.m4: Update from gettext-0.11.2.
38740         * m4/gettext.m4: Likewise.
38741
38742         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38743         From Alfred M. Szmidt.
38744
38745 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38746
38747         * lib/file-type.h: Report an error if neither S_ISREG nor
38748         S_IFREG is defined, instead of using a test specific to glibc
38749         2.2.  This should be safe, since POSIX requires S_ISREG and
38750         Unix Version 7 had S_IFREG.  We don't need to check for
38751         <sys/types.h> since we don't use any symbols that it defines.
38752
38753 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38754
38755         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38756         $@-t, so that each temporary file name is unique and valid in the first
38757         8 characters, for operation under DOS.
38758
38759 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38760
38761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38762
38763 2002-06-15  Jim Meyering  <meyering@lucent.com>
38764
38765         Work even with DJGPP 2.03, which lacks support for symlinks.
38766         From Richard Dawe.
38767         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38768         is defined.
38769         * lib/lchown.c (S_ISLNK): Likewise.
38770
38771 2002-06-15  Jim Meyering  <meyering@lucent.com>
38772
38773         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38774         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38775         have been included before this file.
38776
38777 2002-06-14  Jim Meyering  <meyering@lucent.com>
38778
38779         * lib/file-type.h: Use the version from diffutils-2.8.2.
38780         * lib/file-type.c: Likewise.
38781
38782 2002-06-07  Jim Meyering  <meyering@lucent.com>
38783
38784         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38785         They're needed at least for NetBSD 1.5.2.
38786         ($statxfs_includes): Include those same headers.
38787         ($statxfs_includes): Include sys/vfs.h if available.
38788         ($statxfs_includes): Likewise for sys/statvfs.h.
38789         Check for the following members in both structs statfs and statvfs:
38790         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38791
38792 2002-06-01  Jim Meyering  <meyering@lucent.com>
38793
38794         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38795         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38796
38797 2002-05-28  Jim Meyering  <meyering@lucent.com>
38798
38799         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38800         Reported by Volker Borchert.
38801
38802 2002-05-27  Jim Meyering  <meyering@lucent.com>
38803
38804         Fix a problem seen only on nonconforming systems whereby ls.c's
38805         use of localtime, and then of gettimeofday would cause trouble:
38806         the localtime call used to initialize rpl_gettimeofday's save
38807         mechanism would clobber ls's current local time information so
38808         that in any long listing the first file would always be listed
38809         with date 1970-01-01.  Analysis by Volker Borchert.
38810
38811         * lib/gettimeofday.c (localtime): Undefine.
38812         (rpl_localtime): New function.
38813
38814 2002-05-27  Jim Meyering  <meyering@lucent.com>
38815
38816         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38817         localtime.
38818
38819         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38820         use the replacement function; it wouldn't resolve at link time.
38821         Reported by Volker Borchert.
38822
38823 2002-05-22  Jim Meyering  <meyering@lucent.com>
38824
38825         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38826         file-type.h.
38827         * lib/file-type.h: New file.
38828         * lib/file-type.c (file_type): New file/function.  Extracted from
38829         diffutils.
38830
38831 2002-04-30  Jim Meyering  <meyering@lucent.com>
38832
38833         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38834
38835 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38836
38837         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38838
38839 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38840
38841         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38842         Do not check for alloca.h (no longer used) or stdbool.h (was never
38843         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
38844
38845 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38846
38847         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38848
38849 2002-04-29  Jim Meyering  <meyering@lucent.com>
38850
38851         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38852         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38853         Use AC_FUNC_STRNLEN here instead.
38854
38855         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38856         With autoconf-2.53a, it's part of AC_PROG_CC.
38857
38858 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38859
38860         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38861         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38862
38863 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38864
38865         * lib/sig2str.h, lib/sig2str.c: New files.
38866         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38867
38868 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38869
38870         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38871         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
38872         of 127, since 64 is the largest conceivable number for ancient
38873         nonstandard hosts.
38874         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38875
38876 2002-04-28  Jim Meyering  <meyering@lucent.com>
38877
38878         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38879
38880 2002-04-24  Jim Meyering  <meyering@lucent.com>
38881
38882         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38883         (jm_PREREQ): Use it.
38884
38885         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38886         mach/mach.h fcntl.h.
38887         Check for this function: setlocale.
38888
38889 2002-04-24  Jim Meyering  <meyering@lucent.com>
38890
38891         * lib/gettext.h: New file, from Gettext.
38892         * lib/Makefile.am (INCLUDES): Remove -I../intl.
38893         (libfetish_a_SOURCES): Add gettext.h.
38894
38895 2002-04-16  Jim Meyering  <meyering@lucent.com>
38896
38897         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38898         ut_pid, ut_id, ut_exit.
38899
38900 2002-04-16  Jim Meyering  <meyering@lucent.com>
38901
38902         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38903         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38904         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38905
38906 2002-04-12  Jim Meyering  <meyering@lucent.com>
38907
38908         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38909         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
38910         existence of the getmntinfo function.  Needed for Darwin 5.3.
38911
38912         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38913         This is necessary at least on Darwin 5.3.
38914
38915         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38916         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
38917         strnlen.o in the library, and that makes some versions of ranlib
38918         object.
38919
38920 2002-04-12  Jim Meyering  <meyering@lucent.com>
38921
38922         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38923
38924 2002-04-09  Jim Meyering  <meyering@lucent.com>
38925
38926         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38927         to be more precise.  Rather than saying we're checking whether the
38928         function `works', say what we're testing.
38929         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38930         Reported by Bruno Haible.
38931
38932 2002-03-10  Jim Meyering  <meyering@lucent.com>
38933
38934         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38935         Suggestion from Santiago Vila.
38936
38937 2002-03-08  Jim Meyering  <meyering@lucent.com>
38938
38939         * lib/rename.c: Mention that this wrapper is needed also on
38940         mips-dec-ultrix4.4 systems.
38941
38942 2002-03-02  Jim Meyering  <meyering@lucent.com>
38943
38944         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38945         not HAVE_CLOCK_SETTIME.
38946
38947 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38948
38949         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38950         Check for clock_settime.
38951
38952 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38953
38954         * lib/nanosleep.h: Rename to....
38955         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
38956
38957         * lib/gettime.c: New file.
38958         * lib/settime.c: New file.
38959         * lib/stime.c: Remove.
38960
38961         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38962         timespec.h.  Remove nanosleep.h.
38963
38964 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38965
38966         * m4/acl.m4: New file.
38967         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38968         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38969
38970 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38971
38972         * lib/acl.c, lib/acl.h: New files.
38973         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38974
38975 2002-02-24  Jim Meyering  <meyering@lucent.com>
38976
38977         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38978         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38979         cause trouble.  Reported by Nelson Beebe.
38980
38981 2002-02-23  Paul Eggert  <eggert@twinsun.com>
38982
38983         * lib/path-concat.c (xpath_concat): Reorder code to pacify
38984         compilers that don't know that xalloc_die never returns.
38985
38986 2002-02-20  Jim Meyering  <meyering@lucent.com>
38987
38988         * lib/getdate.c: Regenerate using bison-1.33.
38989
38990 2002-02-17  Jim Meyering  <meyering@lucent.com>
38991
38992         * config/config.guess (main): Don't use `head -1'; it's no longer
38993         portable. Use `sed 1q' instead.
38994
38995 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
38996
38997         * m4/codeset.m4: Upgrade to gettext-0.11.
38998         * m4/gettext.m4: Upgrade to gettext-0.11.
38999         * m4/glibc21.m4: Upgrade to gettext-0.11.
39000         * m4/iconv.m4: Upgrade to gettext-0.11.
39001         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39002         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39003         * m4/lib-ld.m4: New file, from gettext-0.11.
39004         * m4/lib-link.m4: New file, from gettext-0.11.
39005         * m4/lib-prefix.m4: New file, from gettext-0.11.
39006         * m4/progtest.m4: Upgrade to gettext-0.11.
39007
39008 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39009
39010         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39011         (jm_PREREQ): Use it.
39012
39013 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39014
39015         * lib/posixver.c, lib/posixver.h: New files.
39016         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39017
39018 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39019             Bruno Haible  <bruno@clisp.org>
39020
39021         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39022         (fwrite_success_callback): New declaration.
39023         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39024         print_unicode_char. Call failure callback instead of error.
39025         (fwrite_success_callback): New function.
39026         (exit_failure_callback): New function.
39027         (fallback_failure_callback): New function.
39028         (print_unicode_char): Call unicode_to_mb.
39029
39030 2002-01-26  Jim Meyering  <meyering@lucent.com>
39031
39032         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39033         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39034
39035 2002-01-26  Jim Meyering  <meyering@lucent.com>
39036
39037         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39038
39039 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39040
39041         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39042
39043 2002-01-22  Jim Meyering  <meyering@lucent.com>
39044
39045         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39046         Otherwise, some versions of automake would omit the rule that makes
39047         Makefile from Makefile.in.
39048
39049 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39050
39051         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39052         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39053         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39054         (memcoll): Set errno to zero if there is no error.
39055
39056         * lib/quotearg.c (quotearg_buffer_restyled):
39057         Fix bug with quoting buffers containing NUL when backslashing escapes.
39058         This bug was exposed by the other changes in this patch.
39059         (quotearg_n_options): New arg ARGSIZE.
39060         All callers changed.
39061         (quoting_options_from_style): New function.
39062         (quotearg_n_style): Use it.
39063         (quotearg_n_style_mem): New function.
39064
39065         * lib/quotearg.h (quotearg_n_style_mem): New function.
39066
39067 2002-01-19  Jim Meyering  <meyering@lucent.com>
39068
39069         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39070         Remove useless quotes: DF_PROG="df".
39071         * m4/strnlen.m4: New file.
39072
39073 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39074
39075         * lib/backupfile.c (ISDIGIT): Comment fix.
39076         * lib/getdate.y (ISDIGIT): Likewise.
39077         * lib/posixtm.c (ISDIGIT, year): Likewise.
39078         * lib/strverscmp.c (ISDIGIT): Likewise.
39079         * lib/userspec.c (ISDIGIT): Likewise.
39080
39081 2002-01-16  Jim Meyering  <meyering@lucent.com>
39082
39083         * lib/getdate.y: Add three semicolons, each just before a closing
39084         brace. Bison (as of version 1.31) no longer papers over that mistake.
39085
39086 2002-01-05  Jim Meyering  <meyering@lucent.com>
39087
39088         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39089
39090 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39091
39092         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39093         not silently exit merely because the output buffer happens to
39094         have nothing pending.
39095
39096 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39097
39098         See the big note in ../ChangeLog.
39099         * lib/human.c (suffixes): Prefer K to k for 1024.
39100         (generate_suffix_backwards): New function.
39101         (human_readable_inexact): Use it.
39102         * lib/xstrtol.c (__xstrtol): If there is no number but there
39103         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39104         Accept 'K' as well as 'k'.
39105
39106 2001-12-15  Jim Meyering  <meyering@lucent.com>
39107
39108         * lib/regex.h (__restrict_arr): Update from libc.
39109
39110         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39111         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39112         (STREQ): Define.
39113
39114 2001-12-14  Jim Meyering  <meyering@lucent.com>
39115
39116         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39117         Suggestion from Bruno Haible.
39118
39119 2001-12-10  Jim Meyering  <meyering@lucent.com>
39120
39121         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39122         xrealloc, Instead, include "xalloc.h".
39123         (initbuffer): Don't cast xmalloc return value to char*.
39124         (readline): Reword comment.
39125         Don't cast xrealloc return value to char*
39126         Return NULL, not 0.
39127
39128 2001-12-09  Jim Meyering  <meyering@lucent.com>
39129
39130         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39131         about `signed and unsigned type in conditional expression'.
39132         * lib/posixtm.c (posix_time_parse): Likewise.
39133
39134         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39135
39136         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39137         to avoid a pedantic warning.
39138
39139         * lib/getstr.c: Don't include assert.h.
39140         (getstr): Remove warning-evoking assertions.
39141         Return -1 if offset parameter is out of bounds.
39142         Change the type of a local from int to size_t.
39143
39144         * lib/strftime.c (my_strftime_localtime_r): Include this function
39145         definition in the `#if ! HAVE_TM_GMTOFF' block.
39146
39147         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39148         Include xalloc.h instead.
39149
39150 2001-12-02  Jim Meyering  <meyering@lucent.com>
39151
39152         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39153         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39154         included.
39155
39156         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39157         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39158
39159 2001-11-30  Akim Demaille  <akim@epita.fr>
39160
39161         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39162         before being defined.
39163
39164 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39165
39166         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39167         First arg is int, not unsigned.
39168         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39169         (SIZE_MAX, UINT_MAX): New macros.
39170         (quotearg_n_options): Abort if N is negative.
39171         Avoid overflow check on hosts where size_t is 64 bits and int
39172         is 32 bits, as overflow is impossible there.
39173         Fix off-by-one typo that caused unnecessary reallocation.
39174
39175 2001-11-27  Jim Meyering  <meyering@lucent.com>
39176
39177         * lib/tempname.c: Merge with version from libc.
39178         * lib/regex.c: Likewise.
39179
39180         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39181         systems for which STDC_HEADERS is 0, it was not included, resulting in
39182         a warning about an integer-to-pointer conversion problem with getenv.
39183         Reported by Volker Borchert.
39184
39185 2001-11-26  Jim Meyering  <meyering@lucent.com>
39186
39187         * lib/gtod.h: Remove file.
39188         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39189         * lib/gettimeofday.c: Don't include gtod.h.
39190         (GTOD_init): Remove function.
39191         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39192         Suggestion from Volker Borchert.
39193
39194 2001-11-23  Jim Meyering  <meyering@lucent.com>
39195
39196         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39197         it.
39198         * lib/hash.c (struct hash_table): Define it here instead.
39199
39200 2001-11-22  Jim Meyering  <meyering@lucent.com>
39201
39202         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39203
39204 2001-11-20  Jim Meyering  <meyering@lucent.com>
39205
39206         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39207         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39208
39209 2001-11-19  Jim Meyering  <meyering@lucent.com>
39210
39211         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39212         directory.  Use "conftestXXXXXX" as the template.
39213         Suggestion from Paul Eggert.
39214
39215         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39216         immediately, so the test doesn't mistakenly hit the max-open-files
39217         limit.
39218
39219 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39220
39221         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39222         (TEMPORARIES): New macro.
39223         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39224         removes an artificial limitation (e.g. HP-UX 10.20, where
39225         TMP_MAX is 17576).
39226
39227 2001-11-18  Jim Meyering  <meyering@lucent.com>
39228
39229         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39230
39231 2001-11-18  Jim Meyering  <meyering@lucent.com>
39232
39233         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39234         on SunOS 4.
39235
39236         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39237         files will be created before anything else.
39238
39239 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39240
39241         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39242         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39243
39244 2001-11-17  Jim Meyering  <meyering@lucent.com>
39245
39246         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39247         Prompted by a report from Bob Proulx.
39248
39249         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39250         Instead, require UTILS_FUNC_MKSTEMP.
39251
39252 2001-11-17  Jim Meyering  <meyering@lucent.com>
39253
39254         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39255         Now, that's done as part of AC_FUNC_STRTOD.
39256
39257 2001-11-17  Jim Meyering  <meyering@lucent.com>
39258
39259         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39260         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39261         rather than group writable.  Patch by Juan F. Codagnone.
39262
39263         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39264         xrealloc, Instead, include "xalloc.h".
39265
39266         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39267         Remove explicit declarations of xmalloc, xrealloc,
39268         and xstrdup.  Instead, include "xalloc.h".
39269
39270         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39271         unlocked-io.h.
39272         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39273         Likewise.
39274         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39275
39276         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39277         Reported by Padraig Brady.
39278
39279         * lib/mkstemp.c: #undef mkstemp.
39280         Include config.h.
39281         (rpl_mkstemp): Rename from mkstemp.
39282         Protoize.
39283
39284 2001-11-16  Jim Meyering  <meyering@lucent.com>
39285
39286         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39287         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39288         determine the amount of total physical memory, use pstat_getstatic.
39289         HPUX-11 doesn't define _SC_PHYS_PAGES.
39290         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39291         If sysconf couldn't be used to determine the amount of available
39292         physical memory, use both pstat_getstatic and pstat_getdynamic.
39293         Based on a patch from Bob Proulx.
39294
39295 2001-11-10  Jim Meyering  <meyering@lucent.com>
39296
39297         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39298         (jm_PREREQ): Use it.
39299
39300 2001-11-09  Jim Meyering  <meyering@lucent.com>
39301
39302         * m4/jm-macros.m4: Require autoconf-2.52f.
39303         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39304         Use these AC_-prefixed names, not the AM_-prefixed ones.
39305
39306         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39307
39308 2001-11-05  Jim Meyering  <meyering@lucent.com>
39309
39310         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39311
39312 2001-11-04  Jim Meyering  <meyering@lucent.com>
39313
39314         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39315         $DEFS.
39316
39317 2001-11-03  Jim Meyering  <meyering@lucent.com>
39318
39319         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39320         of AC_DEFUN.
39321
39322         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39323         know the name of the variable in the macro definition.
39324
39325 2001-11-03  Jim Meyering  <meyering@lucent.com>
39326
39327         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39328         in argmatch_to_argument call.
39329
39330         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39331         argument.
39332
39333         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39334         e.g., a fault due to an attempt to free a NULL pointer.
39335
39336 2001-11-01  Jim Meyering  <meyering@lucent.com>
39337
39338         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39339         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39340
39341 2001-11-01  Jim Meyering  <meyering@lucent.com>
39342
39343         * lib/dirfd.c, lib/dirfd.h: New files.
39344         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39345
39346         * lib/hash.c (hash_print) [TESTING]: Clean up.
39347
39348 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39349
39350         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39351         to avoid a warning if -Wall.
39352
39353 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39354
39355         * README: New file
39356         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39357         (per RMS's instructions, this is now the canonical source)
39358         * lgpl/, gpl/: New directories.
39359
39360 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39361
39362         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39363
39364 2001-10-21  Jim Meyering  <meyering@lucent.com>
39365
39366         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39367         this code would end up calling gettext even in packages built
39368         with --disable-nls.
39369         * lib/getopt.c (_): Likewise.
39370         * lib/regex.c (_): Likewise.
39371
39372 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39373
39374         * m4/error.m4 (jm_PREREQ_ERROR):
39375         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39376         AC_FUNC_STRERROR_R does that.
39377         Check for strerror declaration.
39378
39379         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39380         are supposed to have them these days.
39381         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39382         Merge changes from latest Autoconf CVS.
39383         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39384         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39385         POSIX decided to standardize on the int flavor of strerror_r.
39386
39387 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39388
39389         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39390         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39391         Use strerror_r that is only a macro, even if it is not a function.
39392         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39393         (private_strerror): Use prototypes, not old-style function definition.
39394         (print_errno_message): New function.
39395         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39396         char*-flavored one.
39397         (error_tail, error, error_at_line): Use it.
39398
39399 2001-10-11  Jim Meyering  <meyering@lucent.com>
39400
39401         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39402         and quote_n (1, ... to avoid clobbering a buffer.
39403
39404 2001-10-05  Jim Meyering  <meyering@lucent.com>
39405
39406         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39407         hash-pjw.h.
39408         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39409         * lib/hash-pjw.h: New file.
39410
39411 2001-09-30  Jim Meyering  <meyering@lucent.com>
39412
39413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39414         `struct fsstat' has the `f_fstypename' member.
39415         Use that to define FS_TYPE, which is now used to make
39416         the getfsstat link test tighter.
39417
39418 2001-09-30  Jim Meyering  <meyering@lucent.com>
39419
39420         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39421         Include <sys/ucred.h>, for Apple Darwin.
39422         Include sys/mount.h and sys/fs_types.h only if available.
39423         (FS_TYPE): Define.
39424         (read_filesystem_list): Use FS_TYPE.
39425
39426 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39427
39428         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39429         a boolean context.
39430
39431 2001-09-29  Jim Meyering  <meyering@lucent.com>
39432
39433         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39434         [one-argument getmntent function]): Include stdio.h before mntent.h.
39435         SunOS 4.1.x needs it for the declaration of `FILE'.
39436         Patch by Volker Borchert.
39437
39438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39439         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39440         sys/fs_types.h, and make the link-test for getfsstat guard #include
39441         directives with appropriate #if HAVE_*_H tests so that we can
39442         detect getfsstat on Apple Darwin1.3.7 systems.
39443         Reported by Nelson Beebe.
39444         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39445
39446 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39447
39448         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39449         #defines strtoimax.  Also treat the other strto* functions
39450         like strtoimax.
39451
39452         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39453         Check for strtoul and strtoumax,
39454         as those declarations are made even in the signed case.
39455         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39456         Likewise, for strtol and strtoimax.
39457
39458 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39459
39460         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39461         #defines strtoimax.  Also treat the other strto* functions
39462         like strtoimax.
39463
39464         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39465         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39466         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39467
39468 2001-09-26  Jim Meyering  <meyering@lucent.com>
39469
39470         Most macros in unlocked-io.h had the wrong number of arguments.
39471         * lib/gen-uio: New script.
39472         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39473         * lib/unlocked-io.hin: Remove file.
39474         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39475         rather than trying to embed it here.
39476         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39477         Reported by Padraig Brady.
39478
39479 2001-09-25  Volker Borchert  <bt@teknon.de>
39480
39481         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39482         `result'.
39483
39484 2001-09-24  Jim Meyering  <meyering@lucent.com>
39485
39486         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39487
39488 2001-09-23  Jim Meyering  <meyering@lucent.com>
39489
39490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39491         instead of the mere test for existence of mntent.h.  The latter
39492         would get a false-positive on AIX 3.4 systems.
39493         In the outer getmntent if-block, don't die if neither of the getmntent
39494         tests succeeds.  Instead, just fall through and continue with the
39495         remaining tests.
39496
39497 2001-09-23  Jim Meyering  <meyering@lucent.com>
39498
39499         * lib/mountlist.c: Remove useless parentheses in #if directives.
39500         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39501         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39502
39503 2001-09-22  Jim Meyering  <meyering@lucent.com>
39504
39505         * m4/gettext.m4: New file.  From gettext.
39506         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39507         * m4/progtest.m4: Likewise
39508         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39509         * m4/glibc21.m4: Likewise.
39510
39511         * m4/libintl.m4: Remove.  No longer used.
39512
39513 2001-09-22  Jim Meyering  <meyering@lucent.com>
39514
39515         * lib/localcharset.c: Update from latest gettext.
39516         * lib/config.charset: Likewise.
39517
39518 2001-09-20  Jim Meyering  <meyering@lucent.com>
39519
39520         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39521         strtoimax.
39522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39523         strtoumax.
39524
39525 2001-09-20  Jim Meyering  <meyering@lucent.com>
39526
39527         * lib/xstrtol.c (strtoimax): Guard declaration with
39528         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39529         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39530         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39531         (strtoumax): Likewise, for completeness (it wasn't necessary).
39532
39533 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39534
39535         * lib/strtoimax.c (HAVE_LONG_LONG):
39536         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39537         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39538         to work around bug in IBM C compiler.
39539
39540 2001-09-17  Jim Meyering  <meyering@lucent.com>
39541
39542         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39543         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39544         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39545         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39546         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39547         whenever the right hand side need not be expanded by the shell.
39548
39549 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39550
39551         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39552         library.  It's not correct, as some older glibcs are buggy.
39553         fnmatch wasn't fixed until glibc 2.2.
39554
39555         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39556         special shell magic here.
39557
39558 2001-09-16  Jim Meyering  <meyering@lucent.com>
39559
39560         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39561         * m4/jm-macros.m4: Require it.
39562
39563 2001-09-16  Jim Meyering  <meyering@lucent.com>
39564
39565         * lib/mkdir.c: New file.
39566
39567 2001-09-15  Jim Meyering  <meyering@lucent.com>
39568
39569         * m4/jm-macros.m4: Check for help2man.
39570
39571 2001-09-11  Jim Meyering  <meyering@lucent.com>
39572
39573         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39574         The body, by Paul Eggert, was moved here from configure.in.
39575         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39576
39577 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39578
39579         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39580         (jm_PREREQ): Use it.
39581
39582 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39583
39584         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39585         Use ssize_t, not int, to store result of readlink.
39586         Check for ssize_t overflow as well as size_t overflow,
39587         as POSIX says the result of readlink is implementation-defined
39588         when ssize_t overflows.
39589         Remove unnecessary cast to char*.
39590         Use free+malloc instead of realloc, as the storage doesn't need
39591         to be preserved and it's clearer and can be more efficient that way.
39592         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39593         * lib/xreadlink.h (xreadlink): Update prototype.
39594
39595 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39596
39597         * lib/xgetcwd.c: Revert some of the previous change; intead,
39598         fix the HAVE_GETCWD_NULL code to behave more like the
39599         !HAVE_GETCWD_NULL code used to.
39600
39601         Include "xalloc.h".
39602         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39603         invoke xalloc_die.
39604
39605 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39606
39607         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39608         sys/param.h, as pathmax.h includes them.
39609
39610 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39611
39612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39613         (jm_PREREQ_XGETCWD): New macro.
39614
39615         * m4/getcwd.m4: New file.
39616
39617 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39618
39619         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39620         like the HAVE_GETCWD_NULL code.
39621         Include pathmax.h if not HAVE_GETCWD.
39622         Do not include xalloc.h.
39623         (INITIAL_BUFFER_SIZE): New symbol.
39624         Do not use xmalloc / xrealloc, since the caller is responsible for
39625         handling errors.  Preserve errno around `free' during failure.
39626         Do not overrun buffer when using getwd.
39627
39628 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39629
39630         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39631         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39632         getcwd (NULL, 0).
39633
39634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39635
39636         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39637         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39638         spotted by Jim Meyering.
39639
39640 2001-09-03  Jim Meyering  <meyering@lucent.com>
39641
39642         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39643         failure.
39644
39645 2001-09-02  Jim Meyering  <meyering@lucent.com>
39646
39647         * lib/error.c: Update from GNU libc.
39648
39649 2001-09-01  Jim Meyering  <meyering@lucent.com>
39650
39651         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39652         Used by df.
39653
39654 2001-09-01  Jim Meyering  <meyering@lucent.com>
39655
39656         * lib/xreadlink.c: New file.
39657         * lib/xreadlink.h: New file.
39658         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39659         xreadlink.h.
39660
39661         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39662         doesn't conflict with sparc Solaris 7's definition in
39663         /usr/include/sys/int_types.h.
39664
39665         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39666         files.
39667         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39668         and strncasecmp as r-values.  Unixware didn't have declarations.
39669
39670 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39671
39672         * lib/xstrtol.h: Add copyright notice.
39673         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39674         LONGINT_INVALID_SUFFIX_CHAR.
39675
39676 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39677
39678         * lib/xstrtol.c (strtoimax): New decl.
39679
39680 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39681
39682         * lib/xgetcwd.c: Don't include pathmax.h.
39683         Include stdlib.h and unistd.h if available.
39684         Include xalloc.h.
39685         (xmalloc, xstrdup, free): Remove decls.
39686         (xgetcwd): Don't assume sizes fit in unsigned.
39687         Check for overflow when computing sizes.
39688         Simplify reallocation code.
39689
39690 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39691
39692         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39693         a directory's st_size can have an arbitrary value, so the old
39694         usage could waste an arbitrary amount of memory.  All uses
39695         changed.
39696         * lib/savedir.h: Update prototype.
39697
39698 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39699
39700         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39701
39702         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39703         old strtoimax.c.
39704
39705         Also, make the following further changes to make this file's
39706         configuration more similar to that of strtol.c:
39707         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39708         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39709         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39710         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39711         changed to signed values.
39712
39713         And make the following changes as well:
39714         Fix copyright notice, as 1999 was missing.
39715         (verify): New macro.
39716         (strtoimax): Check sizes at compile-time, not run-time.
39717         Prefer strtol to strtoll if both work.
39718         (main): Remove; it was not that useful and was a pain to maintain.
39719
39720         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39721
39722 2001-08-31  Jim Meyering  <meyering@lucent.com>
39723
39724         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39725         Use an initial, malloc'd, buffer of length 128 rather than
39726         a statically allocated one of length 1024.
39727
39728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39729
39730         Simplify code, partly by assuming autoconf 2.52 semantics.
39731
39732         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39733
39734         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39735         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39736         All uses removed.
39737         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39738         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39739         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39740         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39741         jm_AC_HEADER_INTTYPES_H.
39742         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39743
39744         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39745
39746         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39747         Quote first arg of AC_DEFUN.
39748         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39749         since they are needed to parse the include file even if we need
39750         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39752         but with opposite signedness.
39753
39754 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39755
39756         Merge 'exclude' changes from tar 1.13.22.
39757         This fixes one or two unlikely storage allocation overflow bugs,
39758         but doesn't change user-visible behavior otherwise.
39759
39760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39761
39762         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39763         (jm_PREREQ_EXCLUDE): New macro.
39764
39765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39766
39767         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39768         tm to be declared.
39769
39770 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39771
39772         * lib/hash.c: Remove '2001' from copyright notice.
39773
39774 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39775
39776         * lib/full-write.h: New file.
39777         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39778         * lib/full-write.c: Correct credits, as cccp.c no longer
39779         exists and anyway it was so heavily changed from the old cccp
39780         code as to be unrecognizable.  Include full-write.h.
39781         (full_write) Return size_t, with short writes meaning failure.
39782         All callers changed.  This fixes a bug with large buffers
39783         on 64-bit hosts.
39784         * lib/utime.c: Include full-write.h.
39785
39786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39787
39788         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39789         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39790         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39791         Include if available.
39792         (<xalloc.h>): Include
39793         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39794         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39795         collide with FNM macros.
39796         (struct patopts): New struct.
39797         (struct exclude): Use it, as exclude patterns now come with options.
39798         (new_exclude): Support above changes.
39799         (new_exclude, add_exclude_file):
39800         Initial size must now be a power of two to simplify overflow checking.
39801         (free_exclude, fnmatch_no_wildcards): New function.
39802         (excluded_filename): No longer requires options arg, as the options
39803         are determined by add_exclude.  Now returns bool, not int.
39804         (excluded_filename, add_exclude):
39805         Add support for the fancy new exclusion options.
39806         (add_exclude, add_exclude_file): Now takes int options arg.
39807         Check for arithmetic overflow when computing sizes.
39808         (add_exclude_file): xrealloc might modify errno, so don't
39809         realloc until after errno might be used.
39810
39811         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39812         New macros.
39813         (free_exclude): New decl.
39814         (add_exclude, add_exclude_file): Now takes int options arg.
39815         (excluded_filename): No longer requires options arg, as the options
39816         are determined by add_exclude.  Now returns bool, not int.
39817
39818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39819
39820         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39821
39822 2001-08-27  Jim Meyering  <meyering@lucent.com>
39823
39824         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39825
39826         * lib/version-etc.c (N_): Remove definition.
39827         Revert most of last change.
39828         Instead, simply don't mark the `Copyright...' string for translation.
39829         Based on advice from Paul Eggert.
39830
39831         * lib/strtoxmax.c: Tweak comment.
39832
39833 2001-08-26  Jim Meyering  <meyering@lucent.com>
39834
39835         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39836
39837         * m4/xstrtoimax.m4: New file.
39838         * m4/xstrtoumax.m4: Add comments explaining why we
39839         AC_REPLACE_FUNCS(strtol).
39840
39841 2001-08-26  Jim Meyering  <meyering@lucent.com>
39842
39843         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39844         of copyright with `%s' so translators don't get an untranslated
39845         message in 2002.
39846         (COPYRIGHT_YEAR): Define.
39847         (version_etc): Use fprintf rather than fputs.
39848         Suggestion from Ulrich Drepper.
39849
39850         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39851
39852         * lib/strtoll.c: New file, from GNU libc.
39853         * lib/xstrtoimax.c: New file.
39854
39855         * lib/xstrtol.h: Add xstrtoimax.
39856         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
39857         * lib/strtoimax.c: New file.  Likewise, but first define
39858         STRTOUXMAX_SIGNED.
39859
39860         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39861         ...
39862         * lib/strtoxmax.c: ... then renamed to this.
39863
39864 2001-08-18  Paul Eggert  <eggert@twinsun.com>
39865
39866         * m4/inttypes.m4: Add AC_PREREQ(2.13).
39867         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39868         (jm_AC_TYPE_INTMAX_T): New macro.
39869         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39870
39871         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39872
39873         * m4/longlong.m4: Renamed from ulonglong.m4.
39874         * m4/inttypes.m4: Renamed from inttypes_h.m4.
39875         * m4/uintmax_t.m4: Removed.
39876
39877 2001-08-13  Paul Eggert  <eggert@twinsun.com>
39878
39879         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39880         Port to Solaris 8, where 'sed' requires a space after the 'r'
39881         command, and where sh dislikes "$/".  Clean up the spacing a bit.
39882         Redirect output to $tmp just once.
39883
39884 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
39885
39886         * lib/addext.c (<errno.h>): Include.
39887         (errno): Declare if not defined.
39888         (addext): Work correctly when pathconf returns -1 and leaves
39889         errno alone because there is no limit.  Also, work even if
39890         pathconf returns a value greater than SIZE_MAX.
39891
39892 2001-08-12  Jim Meyering  <meyering@lucent.com>
39893
39894         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39895         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39896         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39897         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39898         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39899         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39900         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39901         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39902         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39903         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39904         utime.m4, utimes.m4, xstrtoumax.m4:
39905         Quote the first argument in each use of AC_DEFUN.
39906
39907 2001-08-12  Jim Meyering  <meyering@lucent.com>
39908
39909         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39910         Simply `return getcwd (NULL, 0);'.
39911         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39912         Use 1300 as initial value for length, not PATH_MAX.
39913
39914         * lib/pathmax.h: Clean up cpp syntax.
39915
39916 2001-08-12  Jim Meyering  <meyering@lucent.com>
39917
39918         * lib/gettimeofday.c: New file.
39919         * lib/gtod.h: New file.
39920         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39921
39922 2001-08-05  Jim Meyering  <meyering@lucent.com>
39923
39924         * m4/jm-macros.m4: Require autoconf-2.52.
39925
39926 2001-08-04  Jim Meyering  <meyering@lucent.com>
39927
39928         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39929         stmt, to get in sync with glibc.
39930
39931 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39932
39933         The following changes are from gettext 0.10.39 as maintained by
39934         Bruno Haible.
39935
39936         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39937         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39938         with inverted sense.  All uses changed.
39939
39940         * lib/mbswidth.c: Don't include <limits.h>.
39941         Include <stdlib.h> and <string.h> unconditionally.
39942         (iswcntrl, mbsinit, ISCNTRL): New macros.
39943         (mbsnwidth): Use K&R style function declarations.
39944         Don't bother checking for MB_LEN_MAX == 1, since the compiler
39945         can optimize it when MB_CUR_MAX == 1.
39946         The width of control characters is zero, not 1.
39947
39948 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39949
39950         The following changes are from gettext 0.10.39 as maintained by
39951         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39952
39953         * m4/codeset.m4: Upgrade to serial AM1.
39954         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39955         all uses changed.  Quote first arg of AC_DEFUN.
39956         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39957
39958         * m4/iconv.m4: Upgrade to serial AM2.
39959         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39960         Add --with-libconv-prefix.
39961         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
39962         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39963         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39964         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39965         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39966
39967         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39968         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39969         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39970         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39971         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39972         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39973         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39974         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39975         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39976
39977         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39978         string.h any more.
39979
39980         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39981         not the default value.
39982
39983         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
39984         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39985         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
39986         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39987         Also check for iswcntrl, used for wcwidth fallback.
39988         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39989         to Autoconf 2.13.
39990
39991 2001-08-03  Jim Meyering  <meyering@lucent.com>
39992
39993         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39994         as it was in the original.  Reported by Paul Eggert.
39995
39996 2001-07-16  Jim Meyering  <meyering@lucent.com>
39997
39998         * m4/gettimeofday.m4: New file.
39999         Prompted by a report from Bernhard Baehr.
40000
40001 2001-07-15  Jim Meyering  <meyering@lucent.com>
40002
40003         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40004         stuff. Now it's in ../Makefile.cfg.
40005
40006 2001-07-15  Jim Meyering  <meyering@lucent.com>
40007
40008         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40009         (BUILT_SOURCES): Add unlocked-io.h.
40010         (io_functions): Define.
40011         (unlocked-io.h): New rule.
40012         (DISTCLEANFILES): Add unlocked-io.h.
40013         (all-local): Depend on unlocked-io.h, to ensure it is created.
40014
40015         * lib/unlocked-io.hin: New file
40016
40017         * lib/regex.c: Update from glibc.
40018
40019 2001-07-05  Jim Meyering  <meyering@lucent.com>
40020
40021         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40022         recommendation.
40023         (libfetish_a_SOURCES): Put all .h files here instead.
40024         Remove a thus-exposed (better checks in automake) duplicate and
40025         two unnecessary .h files.
40026
40027 2001-07-04  Jim Meyering  <meyering@lucent.com>
40028
40029         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40030         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40031         distcheck failure.
40032
40033 2001-07-02  Jim Meyering  <meyering@lucent.com>
40034
40035         The following changes were prompted by suggestions from Bruno Haible.
40036
40037         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40038         is now generated.
40039         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40040         definition of EXTRA_DIST.
40041         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40042         ensure that the generated file is created/updated whenever the list
40043         of $(unlocked_functions) is changed.
40044         (jm-glibc-io.m4): New rule.
40045         (unlocked-io.h): New rule -- currently unused.
40046
40047 2001-06-24  Jim Meyering  <meyering@lucent.com>
40048
40049         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40050         unmatched right bracket, rather than kludging it with an extra,
40051         falsely-matching quote in a comment.  Patch by Akim Demaille.
40052
40053 2001-06-11  Jim Meyering  <meyering@lucent.com>
40054
40055         * lib/regex.c: Update from GNU libc.
40056
40057 2001-05-27  Jim Meyering  <meyering@lucent.com>
40058
40059         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40060         Check for ut_type in struct utmp.
40061
40062 2001-05-27  Jim Meyering  <meyering@lucent.com>
40063
40064         * lib/readutmp.h (UT_TYPE): Define.
40065
40066 2001-05-24  Jim Meyering  <meyering@lucent.com>
40067
40068         * lib/argmatch.c: Include "quote.h".
40069         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40070         quote function.  Reported by Göran Uddeborg.
40071
40072 2001-05-22  Jim Meyering  <meyering@lucent.com>
40073
40074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40075         now that we use the package-supplied version unconditionally.
40076         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40077
40078 2001-05-21  Jim Meyering  <meyering@lucent.com>
40079
40080         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40081         shell syntax errors.
40082
40083 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40084
40085         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40086
40087 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40088
40089         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40090         Don't bother to check library strftime, since
40091         we'll be using our own my_strftime function anyway.
40092         Define my_strftime instead of strftime.
40093
40094 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40095
40096         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40097         which is not yet declared.
40098
40099 2001-05-15  Jim Meyering  <meyering@lucent.com>
40100
40101         * m4/regex.m4: Use proper quoting so brackets appear in the test
40102         program.
40103         Reported by, and with help from, Bruno Haible.
40104
40105 2001-05-13  Jim Meyering  <meyering@lucent.com>
40106
40107         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40108         undefined.
40109
40110 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40111
40112         dirname code cleanup.  base_name now behaves more compatibly
40113         with POSIX basename when given file names that have trailing
40114         slashes, and similarly for dir_name.  Add new primitives
40115         base_len and dir_len.  Put the directory-name-related decls
40116         into dirname.h.
40117
40118         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40119         * lib/backupfile.c (base_name): Likewise.
40120         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40121         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40122         * lib/makepath.c (strip_trailing_slashes): Likewise.
40123         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40124         ISSLASH): Likewise.
40125         * lib/rename.c (strip_trailing_slashes): Likewise.
40126         * lib/same.c (base_name): Likewise.
40127         * lib/stripslash.c (ISSLASH): Likewise.
40128
40129         * lib/addext.c: Include <dirname.h> after size_t is defined.
40130         * lib/backupfile.c: Likewise.
40131
40132         * lib/addext.c (addext): Use base_len to trim redundant
40133         trailing slashes instead of doing it ourselves.
40134         But do not trim the last slash if it is not redundant.
40135
40136         * lib/backupfile.c (find_backup_file_name,
40137         max_backup_version): Use base_len instead of rolling it ourselves.
40138         Handle the case of "" and (on DOS) "C:" correctly.
40139
40140         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40141         needed. Include <string.h>, <dirname.h>.
40142         (base_name): Allow file names ending in slashes, other than names
40143         that are all slashes.  In this case, return the basename followed
40144         by the slashes.  This is more general, and can be used in places
40145         where the original base_name purposely had an assertion failure.
40146         (base_len): New function.
40147
40148         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40149         Do not include <assert.h>; no longer needed.
40150         Include xalloc.h.
40151         (memrchr): Remove decl.
40152         (dir_name_r): Remove.
40153         (dir_len): Renamed from dirlen.  All callers changed.
40154         Rewrite in terms of base_name, for simplicity and consistency.
40155         (dir_name): Never return NULL.  All callers changed.
40156         Do not include <stdlib.h> in test program; no longer needed.
40157         return 0; is fine for test program.
40158
40159         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40160         New macros.
40161         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40162
40163         * lib/path-concat.c (path_concat): Use base_len to compute
40164         base length, not strlen; this means we cannot rely on memcpy
40165         to null-terminate.
40166
40167         * lib/same.c (STREQ): Remove.
40168         (same_name): Handle the case where the basename ends in trailing '/'.
40169
40170         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40171         a slash was stripped.  Do not strip the last slash after a
40172         file system prefix.
40173
40174 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40175
40176         * lib/Makefile.am (libfetish_a_SOURCES):
40177         Add strftime.c, since we now compile it on all hosts.
40178
40179         * lib/strftime.c (my_strftime):
40180         Define to nstrftime if emacs, but only if my_strftime is not defined.
40181         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40182         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40183         Add one more extra argument: a nanoseconds value.
40184         All uses changed.
40185         (ns): New macro.
40186         (my_strftime function): Add %N format.
40187         (emacs_strftimeu): Renamed from emacs_strftime,
40188         with extra ut argument.
40189
40190 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40191
40192         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40193
40194 2001-04-21  Jim Meyering  <meyering@lucent.com>
40195
40196         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40197         doesn't interfere.
40198
40199 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40200
40201         * m4/ftruncate.m4: Check for chsize.
40202         Link with ftruncate.o unconditionally if ftruncate is missing.
40203         This was required when cross-compiling to i586-mingw32msvc.
40204
40205 2001-04-08  Jim Meyering  <meyering@lucent.com>
40206
40207         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40208         recomputed; that's necessary when the offset spans a DST transition.
40209         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40210
40211 2001-04-02  Jim Meyering  <meyering@lucent.com>
40212
40213         * lib/regex.h, regex.c: Update from GNU libc.
40214
40215 2001-03-24  Jim Meyering  <meyering@lucent.com>
40216
40217         * m4/jm-macros.m4: Require autoconf-2.49d.
40218
40219 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40220
40221         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40222
40223 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40224
40225         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40226
40227 2001-03-17  Jim Meyering  <meyering@lucent.com>
40228
40229         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40230         now that the version in autoconf is equivalent.
40231         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40232
40233         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40234         Suggestion from Akim Demaille.
40235
40236         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40237         (jm_PREREQ_TEMPNAME): New function.
40238
40239 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40240
40241         * lib/tempname.c (uint64_t): Define to uintmax_t if
40242         not defined, and if UINT64_MAX is not defined.
40243         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40244         Reported by John David Anglin.
40245
40246 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40247
40248         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40249         resolve alias if codeset is empty.
40250         * lib/config.charset (BeOS): Use wildcard syntax.
40251
40252 2001-03-13  Jim Meyering  <meyering@lucent.com>
40253
40254         * lib/path-concat.c (path_concat)
40255         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40256         concatenating e.g., `C:' and `foo'.
40257         From Bruno Haible.
40258
40259 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40260
40261         * lib/localcharset.c (locale_charset): Don't use
40262         setlocale(LC_CTYPE,NULL). Don't return NULL.
40263         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40264
40265 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40266
40267         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40268         support for DOS/DJGPP.
40269
40270 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40271
40272         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40273         lacks mkstemp.  Compile our own tempname.c if we compile our own
40274         mkstemp.c, as mkstemp relies on tempname.
40275
40276 2001-03-01  Jim Meyering  <meyering@lucent.com>
40277
40278         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40279         AH_VERBATIM really does output its argument verbatim.
40280
40281 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40282
40283         * lib/Makefile.am (libfetish_a_SOURCES):
40284         Add dup-safer.c, fopen-safer.c.
40285         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40286
40287         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40288         * lib/unistd-safer.h: New files.
40289
40290 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40291
40292         The mkstemp replacement is taken from glibc 2.2.2, with some
40293         portability fixes for use outside glibc, as follows:
40294
40295         * lib/tempname.c (struct_stat64): New macro.
40296         (direxists, __gen_tempname): Use it.
40297         This avoids a portability problem with Solaris 8.
40298
40299         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40300         (<stddef.h>, <stdint.h>, <string.h>):
40301         Include only if STDC_HEADERS || _LIBC.
40302         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40303         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40304         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40305         (__set_errno): Define this macro if <errno.h> doesn't.
40306         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40307         Define these macros if <stdio.h> doesn't.
40308         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40309         Define these macros if <sys/stat.h>
40310         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40311         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40312         __xstat64): Define if not _LIBC.
40313         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40314         (__gen_tempname): Invoke gettimeofday only if
40315         HAVE_GETTIMEOFDAY || _LIBC;
40316         otherwise, fall back on plain "time".
40317         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40318
40319         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40320
40321         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40322
40323 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40324
40325         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40326
40327 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40328
40329         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40330         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40331         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40333
40334 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40335
40336         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40337         Remove workaround macros for hosts that have mbrtowc but not
40338         mbstate_t, as we now insist on proper declarations for both
40339         before using mbrtowc.
40340
40341 2001-02-17  Jim Meyering  <meyering@lucent.com>
40342
40343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40344         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40345         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40346         UnixWare 7.1.1.
40347
40348         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40349         rather than AC_CACHE_VAL.
40350
40351 2001-02-17  Jim Meyering  <meyering@lucent.com>
40352
40353         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40354         around included file name.
40355
40356         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40357
40358         * lib/strftime.c: Update from GNU libc (the only changes were to
40359         comments).
40360
40361 2001-02-17  Jim Meyering  <meyering@lucent.com>
40362
40363         * lib/regex.c: Update from libc.
40364
40365 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40366
40367         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40368         clash.
40369
40370 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40371
40372         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40373         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40374         Reported by Mark Hounschell via Paul Eggert.
40375
40376 2001-02-07  Jim Meyering  <meyering@lucent.com>
40377
40378         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40379
40380 2001-02-05  Jim Meyering  <meyering@lucent.com>
40381
40382         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40383         it includes the patch required for `large file' support with at least
40384         HP-UX's 10.20 /bin/cc.
40385
40386 2001-02-03  Jim Meyering  <meyering@lucent.com>
40387
40388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40389         AS_IF, now that it works once again (mysteriously).
40390         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40391
40392 2001-01-30  Jim Meyering  <meyering@lucent.com>
40393
40394         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40395         * m4/chown.m4: Rename conftestchown to conftest.chown.
40396         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40397         s/conftestdir2/conftest.d2/.
40398         * m4/utimes.m4: s/conftestdata/conftest.data/
40399         Inspired by Pavel Roskin's change in autoconf.
40400
40401 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40402
40403         * lib/config.charset: Update for FreeBSD 4.2.
40404
40405 2001-01-27  Jim Meyering  <meyering@lucent.com>
40406
40407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40408         a use of AS_IF.
40409         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40410
40411 2001-01-26  Jim Meyering  <meyering@lucent.com>
40412
40413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40414         quotearg.c includes it.
40415
40416 2001-01-26  Jim Meyering  <meyering@lucent.com>
40417
40418         * lib/quotearg.c: Include stddef.h.
40419         * lib/quote.c: Include stddef.h.
40420         Reported by Axel Kittenberger.
40421
40422         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40423         line in double quotes so that it evokes a better diagnostic.
40424         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40425         Reported by Axel Kittenberger.
40426
40427 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40428
40429         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40430         as if it was a `charset'.
40431
40432 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40433
40434         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40435         has const.
40436
40437 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40438
40439         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40440         to avoid a warning.  Add back 'const' to inptr.
40441
40442 2001-01-20  Jim Meyering  <meyering@lucent.com>
40443
40444         Be sure that headers are checked before used in code compiled
40445         for the type checks.
40446         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40447         In place of that, invoke jm_CHECK_ALL_TYPES.
40448         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40449         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40450         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40451         The check for ssize_t was mistakenly run before the test for unistd.h.
40452
40453         The configure-time check for stdbool.h was missing.
40454         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40455         (jm_PREREQ_HASH): New function.
40456
40457 2001-01-17  Jim Meyering  <meyering@lucent.com>
40458
40459         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40460         for autoconf-2.49c.
40461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40462
40463 2001-01-16  Jim Meyering  <meyering@lucent.com>
40464
40465         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40466         From Bruno Haible.
40467
40468 2001-01-14  Jim Meyering  <meyering@lucent.com>
40469
40470         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40471         foo and bar.  Create conftestdir/ in the script, not in the C code.
40472         Remove directories in the script, not in the C code.
40473         Remove conftestdir{,2} before trying to create the directory.
40474         Make the entire configure script fail if the mkdir fails.
40475
40476 2001-01-14  Jim Meyering  <meyering@lucent.com>
40477
40478         * lib/rename.c: New file.  From Volker Borchert.
40479         Include stdlib.h, string.h or strings.h, and xalloc.h.
40480         Use strip_trailing_slashes rather than open-coding it.
40481
40482 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40483
40484         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40485
40486 2001-01-03  Jim Meyering  <meyering@lucent.com>
40487
40488         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40489         of local `inptr' to avoid warning with some system declarations of
40490         iconv.
40491
40492 2001-01-02  Volker Borchert  <bt@teknon.de>
40493
40494         * m4/rename.m4: New file.
40495         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40496
40497 2001-01-01  Jim Meyering  <meyering@lucent.com>
40498
40499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40500         even on systems with utmpx.h.  It's necessary for the declaration of
40501         utmp's ut_user member.  Reported by Andreas Jaeger.
40502
40503         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40504         available. They are required for the declarations of getgrgid and
40505         getpwuid resp.
40506         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40507         Reported by Andreas Jaeger.
40508
40509 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40510
40511         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40512         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40513         so `make install' also works in VPATH builds.
40514
40515 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40516
40517         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40518         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40519         can be used in subdirectories.
40520
40521 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40522
40523         * lib/modechange.c: Do not assume that mode_t uses the
40524         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40525         the other-execute bit of FOO even if S_IXOTH != 1.
40526
40527         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40528         WOTH, XOTH, ALLM): New macros.
40529         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40530          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40531         Use them.
40532         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40533         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40534         (mode_compile):
40535         No need to use uintmax_t; unsigned long is long enough.
40536         Don't bother to get suffix since we don't use it.
40537
40538 2000-12-26  Jim Meyering  <meyering@lucent.com>
40539
40540         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40541         better with autoheader.
40542
40543 2000-12-24  Jim Meyering  <meyering@lucent.com>
40544
40545         * lib/hash.c (is_prime): Return explicit boolean values.
40546         (hash_get_first): Return NULL to appease Irix5.6's 89.
40547         Reported by Nelson Beebe.
40548
40549 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40550
40551         * lib/localcharset.c (locale_charset): Add support for Win32.
40552
40553 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40554
40555         * lib/physmem.h, lib/physmem.c: New files.
40556
40557         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40558         (noinst_HEADERS): Add physmem.h.
40559
40560         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40561         't' for compatibility with Solaris 8 sort.
40562
40563 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40564
40565         * lib/config.charset: Add support for BeOS.
40566
40567 2000-12-17  Jim Meyering  <meyering@lucent.com>
40568
40569         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40570         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40571
40572 2000-12-16  Jim Meyering  <meyering@lucent.com>
40573
40574         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40575         N and M) would have treated it like `chown N:N FILE'.
40576
40577         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40578
40579 2000-12-16  Jim Meyering  <meyering@lucent.com>
40580
40581         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40582         SHELLS_FILE to a file name that's useful on djgpp systems.
40583         Include stdlib.h.
40584         (ADDITIONAL_DEFAULT_SHELLS): Define.
40585         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40586         Based mostly on a patch from Prashant TR.
40587
40588 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40589
40590         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40591         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40592         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40593
40594 2000-12-08  Andreas Schwab  <schwab@suse.de>
40595
40596         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40597         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40598
40599 2000-12-07  Jim Meyering  <meyering@lucent.com>
40600
40601         * lib/stripslash.c (ISSLASH): Define.
40602         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40603         `/'.
40604         From Prashant TR.
40605
40606         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40607         (dir_name_r): Declare this function as static.
40608         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40609         manifest itself on a name containing a mix of slashes and
40610         backslashes.
40611         Make this function work with names starting with a DOS-style
40612         drive letter and colon prefix.
40613         (dir_name): Append `.' if necessary.
40614         Based mostly on patches from Prashant TR and Eli Zaretskii.
40615
40616         * lib/dirname.h (dir_name_r): Remove prototype.
40617
40618 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40619
40620         * m4/off_t-format.m4: Remove this file.
40621         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40622
40623 2000-12-06  Jim Meyering  <meyering@lucent.com>
40624
40625         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40626         replacement strtoull, we may well need the replacement strtoul, too.
40627         Check for declarations of strtoul and strtoull.
40628         Check for strtol.  Mainly as a cue to cause automake to include
40629         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40630         Check for limits.h -- strtol.c needs it.
40631
40632 2000-12-05  Jim Meyering  <meyering@lucent.com>
40633
40634         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40635
40636 2000-12-04  Jim Meyering  <meyering@lucent.com>
40637
40638         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40639         Also include memory.h, stdlib.h, unistd.h if appropriate.
40640         Reported by Andreas Jaeger (conflicting declaration of malloc).
40641
40642 2000-12-02  Jim Meyering  <meyering@lucent.com>
40643
40644         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40645         * m4/jm-macros.m4 (jm_MACROS): require it.
40646
40647 2000-12-02  Jim Meyering  <meyering@lucent.com>
40648
40649         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40650
40651 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40652
40653         * lib/memrchr.c: Include <config.h> before any system include file.
40654
40655 2000-11-30  Jim Meyering  <meyering@lucent.com>
40656
40657         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40658
40659 2000-11-30  Jim Meyering  <meyering@lucent.com>
40660
40661         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40662
40663 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40664
40665         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40666
40667 2000-11-26  Jim Meyering  <meyering@lucent.com>
40668
40669         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40670
40671 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40672
40673         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40674         size of (size_t) -1; it's not portable.
40675
40676 2000-11-17  Jim Meyering  <meyering@lucent.com>
40677
40678         * lib/strstr.c: Update from GNU libc.
40679
40680 2000-11-17  Akim Demaille  <akim@epita.fr>
40681
40682         * lib/obstack.h: Formatting changes.
40683         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40684         prevent type checking.
40685         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40686         cast the value to (void *): assigning a `foo *' to a `void *'
40687         variable is valid.
40688         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40689
40690 2000-11-16  Jim Meyering  <meyering@lucent.com>
40691
40692         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40693
40694 2000-11-11  Jim Meyering  <meyering@lucent.com>
40695
40696         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40697
40698 2000-11-10  Jim Meyering  <meyering@lucent.com>
40699
40700         * lib/obstack.h: Update from GNU libc.
40701         * lib/obstack.c: Likewise.
40702
40703 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40704
40705         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40706
40707 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40708
40709         * lib/getusershell.c (setusershell): Use rewind rather than
40710         fseek/fseeko, to avoid configuration hassles with fseeko.
40711         Don't bother opening SHELLS_FILE if shellstream is NULL;
40712         it's not necessary.
40713
40714 2000-11-05  Jim Meyering  <meyering@lucent.com>
40715
40716         * lib/makepath.h (make_dir): Declare.
40717         * lib/makepath.c (make_dir): Remove `static' attribute.
40718         Tweak a comment.
40719
40720 2000-11-04  Jim Meyering  <meyering@lucent.com>
40721
40722         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40723
40724 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40725
40726         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40727         last one in a bucket, advance to the next bucket.
40728
40729 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40730
40731         * lib/fnmatch.c: Do not comment out all the code if we are using
40732         the GNU C library, because in some cases we are replacing buggy
40733         code in the GNU C library itself.
40734
40735 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40736
40737         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40738         (regex_compile): Catch bogus \(\1\).
40739
40740 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40741
40742         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40743         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40744         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40745
40746 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40747
40748         * lib/error.h, getline.h, modechange.h:
40749         Remove "2000" from Copyright line, as the file hasn't been
40750         changed this year other than in the copyright notice.
40751
40752         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40753         was changed this year.
40754
40755 2000-10-29  Jim Meyering  <meyering@lucent.com>
40756
40757         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40758         renaming.
40759         * m4/ls-mntd-fs.m4: Likewise
40760
40761 2000-10-29  Jim Meyering  <meyering@lucent.com>
40762
40763         * lib/xstat.in: Fix grammar in comment.
40764
40765 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40766
40767         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40768         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40769         doesn't define __restrict_arr.
40770
40771 2000-10-28  Jim Meyering  <meyering@lucent.com>
40772
40773         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40774         (jm_PREREQ_MEMCHR): New function.
40775
40776 2000-10-28  Jim Meyering  <meyering@lucent.com>
40777
40778         * lib/memchr.c: Update from libc.
40779         Adjust for portability:
40780         [HAVE_STDLIB_H]: Include stdlib.h.
40781         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40782         Undef __memchr, too.
40783         [!weak_alias]: Define __memchr to memchr.
40784
40785         * lib/regex.c: Update from libc.
40786         * lib/regex.h: Likewise.
40787         * lib/getopt1.c: Likewise.
40788         * lib/memcmp.c: Likewise.
40789
40790         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40791         Avoid using fseek, when possible -- it's broken by design.
40792         Patch by Ulrich Drepper.
40793
40794 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40795
40796         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40797         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40798         Giving in to popular pressure to shut up the compiler with casts.
40799
40800 2000-10-26  Jim Meyering  <meyering@lucent.com>
40801
40802         * lib/strftime.c: Update from libc.
40803
40804 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40805
40806         * regex.c: More `unsigned char' -> `re_char' changes.
40807         Also change several `int' into `re_wchar_t'.
40808         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40809         (PUSH_FAILURE_POINTER): Don't cast any more.
40810         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40811         We want GCC to complain, since this piece of code makes
40812         re_match non-reentrant, which *should* be fixed.
40813         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40814         (EXTEND_BUFFER): Use RETALLOC.
40815         (SET_LIST_BIT): Don't cast.
40816         (re_wchar_t): New type.
40817         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40818         that those two functions will always properly return.
40819         (IMMEDIATE_QUIT_CHECK): Cast to void.
40820         (analyse_first): Use recursion rather than an explicit stack.
40821         (re_compile_fastmap): Can't fail anymore.
40822         (re_search_2): Don't check re_compile_fastmap for failure.
40823         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40824         Now also sets the new value (passed in a new argument).
40825         (re_match_2_internal): Use it.
40826         Also, use a new var `reg' of type size_t when looping through regs
40827         rather than reuse the inappropriate `mcnt'.
40828
40829 2000-10-25  Jim Meyering  <meyering@lucent.com>
40830
40831         * lib/obstack.c: Update from libc.
40832
40833 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40834
40835         * regex.c (regex_compile): Change the way of handling a range from
40836         a char less than 256 to a char not less than 256.
40837
40838 2000-10-24  Andrew Innes  <andrewi@gnu.org>
40839
40840         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40841         NT-Emacs only.
40842         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40843         so that re_search functions only quit when callers expect them to.
40844
40845 2000-10-23  Jim Meyering  <meyering@lucent.com>
40846
40847         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40848         wrong.  That set_locale call must not have any side effects.
40849         From Paul Eggert.
40850
40851 2000-10-22  Jim Meyering  <meyering@lucent.com>
40852
40853         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40854         [CYCLIC]: Remove now-unused definition.
40855
40856         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40857         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40858         Suggestion from Ulrich Drepper.
40859
40860 2000-10-21  Jim Meyering  <meyering@lucent.com>
40861
40862         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40863         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40865
40866 2000-10-21  Jim Meyering  <meyering@lucent.com>
40867
40868         * lib/dirname.c (memrchr): Declare if necessary.
40869         (dir_name): Remove the restriction that there be no
40870         trailing slashes.  Now, this code skips past them, effectively
40871         ignoring them.
40872         [TEST_DIRNAME] (main): New unit tests.
40873
40874         * lib/memrchr.c: New file from GNU libc.
40875         Undef __memrchr, too.
40876         [!weak_alias]: Define __memrchr to memrchr.
40877         Guard weak_alias use with `#ifdef weak_alias'.
40878
40879 2000-10-21  Jim Meyering  <meyering@lucent.com>
40880
40881         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40882         (dir_name): Use dir_name_r.
40883         * lib/dirname.h (dir_name_r): Declare it.
40884
40885 2000-10-17  Jim Meyering  <meyering@lucent.com>
40886
40887         * lib/quote.h (PARAMS): Define and use.
40888         Reported by Akim Demaille.
40889
40890         * lib/getopt.c: Update from libc.
40891
40892 2000-10-16  Jim Meyering  <meyering@lucent.com>
40893
40894         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40895         setlocale.
40896         From Jan Fedak.
40897
40898 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
40899
40900         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40901
40902 2000-09-25  Jim Meyering  <meyering@lucent.com>
40903
40904         * lib/md5.h (rol): Define (from GnuPG).
40905
40906         * lib/sha.c: Give credit (GnuPG) where due.
40907         (M): Use rol rather than open-coding it.
40908         Add a FIXME comment.
40909
40910 2000-09-21  Jim Meyering  <meyering@lucent.com>
40911
40912         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40913         Reported by Michael Stone.
40914
40915 2000-09-20  Jim Meyering  <meyering@lucent.com>
40916
40917         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40918         (noinst_HEADERS): Add sha.h.
40919         Based on code from Scott G. Miller and from GnuPG.
40920
40921 2000-09-18  Jim Meyering  <meyering@lucent.com>
40922
40923         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40924         LIBS. Otherwise, everyone ends up linking with -lelf for some
40925         configurations.
40926         Reported by Mike Stone.
40927
40928 2000-09-15  Jim Meyering  <meyering@lucent.com>
40929
40930         * lib/regex.c: Update from libc.
40931
40932 2000-09-10  Jim Meyering  <meyering@lucent.com>
40933
40934         * lib/getopt.c (_getopt_internal): Update from glibc.
40935
40936 2000-09-09  Jim Meyering  <meyering@lucent.com>
40937
40938         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40939         think it should be used as a general replacement for isascii.
40940         * lib/fnmatch.c: Likewise.
40941         * lib/mbswidth.c: Likewise
40942         * lib/regex.c: Likewise.
40943
40944         Don't use atoi.
40945         * lib/userspec.c: Include sys/param.h and limits.h.
40946         Include xstrtol.h.
40947         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40948         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40949         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40950         UID, GID.  Check range.
40951
40952 2000-09-06  Jim Meyering  <meyering@lucent.com>
40953
40954         * lib/getopt.c (_getopt_internal): Update from glibc.
40955
40956 2000-08-30  Jim Meyering  <meyering@lucent.com>
40957
40958         * lib/strftime.c: Merge in changes from GNU libc.
40959
40960 2000-08-26  Jim Meyering  <meyering@lucent.com>
40961
40962         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40963         * m4/fpending.m4: New file.
40964
40965 2000-08-26  Jim Meyering  <meyering@lucent.com>
40966
40967         * lib/closeout.c: Include "__fpending.h".
40968         (close_stdout_status): Return right away if there's nothing to flush.
40969
40970         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40971         * lib/__fpending.c: New file.
40972         * lib/__fpending.h: New file.
40973
40974 2000-08-20  Jim Meyering  <meyering@lucent.com>
40975
40976         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40977         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
40978         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
40979
40980 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
40981
40982         Improve fileutils installation on systems where running
40983         programs (like install) can't be unlinked.
40984         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40985         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40986
40987 2000-08-07  Paul Eggert  <eggert@twinsun.com>
40988
40989         Standardize on "memory exhausted" instead of "Memory exhausted"
40990         or "virtual memory exhausted".
40991         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40992         "virtual memory exhausted".
40993         * lib/same.c (same_name): Invoke xalloc_die instead of printing
40994         our own message.
40995         * lib/userspec.c (parse_user_spec): Likewise.
40996         * lib/bumpalloc.h: comment fix
40997         * lib/same.c, userspec.c: Include xalloc.h.
40998
40999         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41000         not char *const and pointing to a constant array.
41001         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41002         (xrealloc): Comment fix.
41003
41004         * lib/userspec.c (parse_user_spec):
41005         Don't translate a message until just before returning,
41006         to avoid unnecessary translation.
41007
41008 2000-08-07  Jim Meyering  <meyering@lucent.com>
41009
41010         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41011         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41012         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41013         getgroups.c, gethostname.c, getopt.h, group-member.c,
41014         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41015         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41016         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41017         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41018         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41019         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41020         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41021         yesno.c: Back out Copyright date changes for each file with no change
41022         this year.  This eases coordination with other programs using the same
41023         source code modules.  From Paul Eggert.
41024
41025 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41026
41027         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41028         not char, for compatibility with glibc 2.1.3 strftime.c.
41029
41030 2000-08-03  Greg McGary  <greg@mcgary.org>
41031
41032         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41033         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41034         (EXTEND_BUFFER): Use them.
41035
41036 2000-08-01  Jim Meyering  <meyering@lucent.com>
41037
41038         * lib/dirname.c (ISSLASH): Define.
41039         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41040         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41041         both `\' and `/' may be use as path separators.
41042         Based on a patch from Prashant TR.
41043
41044 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41045
41046         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41047         slot vector a constant, since it might get modified.
41048
41049 2000-07-31  Jim Meyering  <meyering@lucent.com>
41050
41051         * lib/xmalloc.c: Use `virtual memory exhausted', not
41052         `Memory exhausted'.
41053         * lib/obstack.c (print_and_abort): Likewise.
41054
41055 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41056
41057         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41058         buffer, so that the caller can always quote one small
41059         component of a "memory exhausted" message in slot 0.
41060         From a suggestion by Jim Meyering.
41061
41062 2000-07-30  Jim Meyering  <meyering@lucent.com>
41063
41064         * lib/makepath.c (make_path): Quote the other instance, too.
41065
41066         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41067         (STATIC_BUF_SIZE): Define.
41068         (quotearg_n_options): Use only statically allocated storage when
41069         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41070         than STATIC_BUF_SIZE.
41071
41072 2000-07-29  Jim Meyering  <meyering@lucent.com>
41073
41074         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41075         * lib/dirname.c (dir_name): Likewise.
41076
41077         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41078         `/'.
41079
41080         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41081         (dir_name): Assert that there are no trailing slashes.
41082
41083 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41084
41085         * lib/mbswidth.h (mbswidth): Add a flags argument.
41086         (mbswidth): New declaration.
41087         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41088         * lib/mbswidth.c (mbswidth): Add a flags argument.
41089         (mbsnwidth): New function.
41090
41091 2000-07-24  Jim Meyering  <meyering@lucent.com>
41092
41093         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41094
41095 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41096
41097         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41098
41099 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41100
41101         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41102         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41103         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41104         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41105         invoke multibyte primitives.
41106
41107 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41108
41109         * lib/quotearg.c:
41110         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41111         so that mbstate_t is always defined.
41112
41113         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41114         be 1 in at least one GCC installation, and this configuration
41115         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41116         performance on hosts that have mbrtowc but have only unibyte
41117         locales, but I assume these hosts are rare.
41118
41119 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41120
41121         * lib/mbswidth.c (_XOPEN_SOURCE):
41122         Don't define; this causes problems on Solaris 7.
41123         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41124
41125 2000-07-23  Jim Meyering  <meyering@lucent.com>
41126
41127         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41128         too: getgrgid, getpwuid, getuid.
41129
41130 2000-07-23  Jim Meyering  <meyering@lucent.com>
41131
41132         * lib/basename.c (base_name): Add an assertion.
41133
41134 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41135
41136         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41137         shadow its mbsinit function.
41138
41139 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41140
41141         * lib/mbswidth.h: New file.
41142         * lib/mbswidth.c: New file.
41143         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41144         (noinst_HEADERS): Add mbswidth.h.
41145
41146 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41147
41148         * lib/config.charset: Add support for FreeBSD. Improve support for
41149         HP-UX and IRIX 6.
41150
41151 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41152
41153         * m4/mbswidth.m4: New file.
41154         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41155
41156 2000-07-15  Jim Meyering  <meyering@lucent.com>
41157
41158         * lib/makepath.c: Include quote.h.
41159         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41160         corresponding argument in a `quote (...)' call.
41161         Give better diagnostics.
41162
41163         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41164         (noinst_HEADERS): Add quote.h.
41165
41166         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41167         from tar's src/misc.c.
41168         * lib/quote.h: New file.  Prototypes for same.
41169
41170 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41171
41172         From a suggestion by Bruno Haible.
41173         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41174         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41175         to decide whether to define the BeOS workaround macro;
41176         this adjusts to the change to AC_MBSTATE_T.
41177
41178 2000-07-14  Jim Meyering  <meyering@lucent.com>
41179
41180         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41181         jm_AC_TYPE_UINTMAX_T.
41182
41183 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41184
41185         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41186
41187         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41188         quotearg_buffer_restyled): Add support for
41189         clocale_quoting_style.  Undo previous change to
41190         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41191         and "{RIGHT QUOTATION MARK}" msgids.
41192
41193 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41194
41195         From a suggestion by Bruno Haible.
41196         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41197         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41198         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41199         and mbstate_t, to a single-part test that simply defines mbstate_t.
41200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41201         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41202
41203 2000-07-10  Jim Meyering  <meyering@lucent.com>
41204
41205         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41206
41207         * m4/gnu-source.m4: Output to confdefs.h directly.
41208         Suggestion from Akim Demaille.
41209
41210 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41211
41212         The old behavior of quoting `like this' doesn't look good with
41213         newer, ISO-style fonts.  See:
41214         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41215
41216         Instead, quote "like this" by default.  Let the translator
41217         tailor the locale-specific quoting behavior by providing
41218         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41219
41220         * lib/quotearg.c (N_): New macro.
41221         (gettext_default): New function.
41222         (quotearg_buffer_restyled): Use
41223         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41224         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41225
41226 2000-07-09  Jim Meyering  <meyering@lucent.com>
41227
41228         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41229         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41230
41231         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41233
41234 2000-07-09  Jim Meyering  <meyering@lucent.com>
41235
41236         * lib/Most files: Update copyright dates to include 2000.
41237
41238 2000-07-08  Jim Meyering  <meyering@lucent.com>
41239
41240         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41241         if not defined.
41242         (xgethostname): Remove now-unnecessary #ifdef.
41243         Move declaration of `err' into loop where it's used.
41244
41245 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41246         and Bruno Haible  <haible@clisp.cons.org>
41247
41248         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41249         only if the test for an object-type mbstate_t fails.  This
41250         prevents us from mistakenly reporting that mbstate_t is a
41251         system object type after we "#define mbstate_t int" to work
41252         around its lack.
41253
41254 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41255         and Bruno Haible  <haible@clisp.cons.org>
41256
41257         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41258
41259 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41260
41261         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41262         to strerror_r.
41263         Include <ctype.h> for use of isalpha.
41264
41265 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41266
41267         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41268         by allocating a larger buffer. Test the gethostname return value for
41269         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41270         returns an error and ENAMETOOLONG isn't defined.
41271
41272 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41273
41274         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41275         dimension.
41276
41277 2000-07-04  Jim Meyering  <meyering@lucent.com>
41278
41279         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41280         of the deprecated AC_CHECKING.
41281
41282 2000-07-04  Jim Meyering  <meyering@lucent.com>
41283
41284         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41285         Reported by Bruno Haible.
41286
41287 2000-07-04  Jim Meyering  <meyering@lucent.com>
41288
41289         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41290         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41291         lacks mbrtowc.
41292
41293 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41294
41295         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41296         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41297
41298 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41299         and Bruno Haible  <haible@clisp.cons.org>
41300
41301         * lib/quotearg.c (mbrtowc):
41302         Assign to *pwc, and return 1 only if result is nonzero.
41303         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41304
41305 2000-07-03  Jim Meyering  <meyering@lucent.com>
41306
41307         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41308
41309 2000-07-03  Jim Meyering  <meyering@lucent.com>
41310
41311         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41312         This is necessary to get a definition of e.g., UTMP_FILE on
41313         HP-UX 10.20.
41314         From Bob Proulx.
41315
41316 2000-07-02  Jim Meyering  <meyering@lucent.com>
41317
41318         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41319
41320         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41321         AC_LIBOBJ(function_name).
41322         * m4/chown.m4: Likewise.
41323         * m4/fnmatch.m4: Likewise.
41324         * m4/ftruncate.m4: Likewise.
41325         * m4/getgroups.m4: Likewise.
41326         * m4/getline.m4: Likewise.
41327         * m4/group-member.m4: Likewise.
41328         * m4/jm-macros.m4: Likewise.
41329         * m4/lstat.m4: Likewise.
41330         * m4/malloc.m4: Likewise.
41331         * m4/memcmp.m4: Likewise.
41332         * m4/nanosleep.m4: Likewise.
41333         * m4/putenv.m4: Likewise.
41334         * m4/realloc.m4: Likewise.
41335         * m4/regex.m4: Likewise.
41336         * m4/stat.m4: Likewise.
41337         * m4/strftime.m4: Likewise.
41338
41339 2000-07-02  Jim Meyering  <meyering@lucent.com>
41340
41341         * lib/quotearg.c (mbstate_t): Don't define here.
41342
41343 2000-07-02  Jim Meyering  <meyering@lucent.com>
41344
41345         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41346
41347 2000-07-01  Jim Meyering  <meyering@lucent.com>
41348
41349         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41350
41351 2000-07-01  Jim Meyering  <meyering@lucent.com>
41352
41353         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41354         problem.
41355
41356 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41357
41358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41359         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41360
41361 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41362
41363         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41364         per change in ../m4/ls-mntd-fs.m4.
41365         (read_filesystem_list): Ignore symbolic links.
41366
41367 2000-06-29  Jim Meyering  <meyering@lucent.com>
41368
41369         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41370         for declaration of strcmp.
41371
41372         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41373
41374         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41375         Avoid warning by casting result to `char *' to remove `const'.
41376
41377 2000-06-28  Jim Meyering  <meyering@lucent.com>
41378
41379         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41380         included by quotearg.c, for which we perform this test.  From
41381         Bruno Haible.
41382
41383 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41384
41385         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41386         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41387         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41388
41389 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41390
41391         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41392
41393 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41394
41395         savedir now sets errno on failure and invokes xmalloc to get memory.
41396         Fix a couple of other minor bugs while we're at it.
41397
41398         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41399         (NAMLEN): Remove macro.
41400         (malloc, realloc): Remove decls.
41401         (stpcpy): Likewise.
41402         ("xalloc.h"): Include.
41403         (NAME_SIZE_DEFAULT): New macro.
41404         (savedir): Use xmalloc / xrealloc to allocate memory.
41405         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41406         Skip "" directory entries.
41407         Use strlen to calculate directory entry length, since the old method
41408         is rarely used these days and isn't worth supporting.
41409         Don't use a pointer after freeing it.
41410         Check for integer overflow when calculating allocation size.
41411         Use memcpy to copy entries, instead of stpcpy.
41412         Set errno properly when returning NULL.
41413         Check for readdir error.
41414
41415 2000-06-26  Jim Meyering  <meyering@lucent.com>
41416
41417         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41418
41419 2000-06-25  Jim Meyering  <meyering@lucent.com>
41420
41421         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41422         Linux header bug when _XOPEN_SOURCE is defined to 500.
41423
41424 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41425
41426         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41427         deficiency.
41428
41429 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41430
41431         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41432         Include xalloc.h.
41433         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41434
41435 2000-06-24  Jim Meyering  <meyering@lucent.com>
41436
41437         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41438         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41439         for which strerror does return char*, but which lacks a conveniently
41440         accessible declaration of the function.  If the compile-test says
41441         strerror_r doesn't work, then resort to a `run'-test that works on
41442         BeOS and segfaults on DEC Unix.
41443
41444 2000-06-24  Jim Meyering  <meyering@lucent.com>
41445
41446         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41447
41448 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41449
41450         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41451         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41452
41453 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41454
41455         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41456         (mbrtowc, mbstate_t): Define substitutes if
41457         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41458         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41459         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41460
41461 2000-06-23  Jim Meyering  <meyering@lucent.com>
41462
41463         * m4/afs.m4: Add missing AC_MSG_RESULT.
41464         Reported by Bruno Haible.
41465
41466         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41467         Suggestion from Bruno Haible.
41468
41469 2000-06-23  Jim Meyering  <meyering@lucent.com>
41470
41471         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41472
41473 2000-06-21  Jim Meyering  <meyering@lucent.com>
41474
41475         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41476
41477 2000-06-21  Jim Meyering  <meyering@lucent.com>
41478
41479         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41480         (noinst_HEADERS): Add getstr.h.
41481
41482         * lib/getline.c (getstr): Move into a separate file.
41483         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41484         the following changes: new parameter, delim2; both delim[12]
41485         parameters have type `int', not `char'.  The latter would lose
41486         with 8-bit delimiters.
41487         * lib/getstr.h: New file.
41488
41489 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41490
41491         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41492         than 1024, return a memory chunk of least possible size, instead
41493         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41494         Use free/xmalloc instead of xrealloc to avoid copying for very long
41495         paths.
41496
41497 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41498
41499         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41500         the empty string.
41501
41502 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41503
41504         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41505         address, not strdup.  Include <stdlib.h> and don't declare free().
41506
41507 2000-06-19  Jim Meyering  <meyering@lucent.com>
41508
41509         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41510
41511 2000-06-18  Jim Meyering  <meyering@lucent.com>
41512
41513         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41514
41515         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41516         `checking whether...' message to be consistent with that of the
41517         lstat test.
41518
41519 2000-06-18  Jim Meyering  <meyering@lucent.com>
41520
41521         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41522         Besides, these days every porting target provides a mkdir function.
41523
41524         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41525         needed. (this snippet comes from src/system.h).
41526
41527 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41528
41529         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41530
41531 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41532
41533         * lib/human.c (adjust_value): New function.
41534         (human_readable_inexact): Apply rounding style even when
41535         printing approximate values.
41536
41537 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41538
41539         * lib/human.c (human_readable_inexact): Allow an input block
41540         size that is not a multiple of the output block size, and vice versa.
41541         Reported by Piergiorgio Sartor.
41542
41543 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41544
41545         * lib/getdate.y (get_date): Apply relative times after time
41546         zone indicator, not before.  Reported by Todd A. Jacobs.
41547
41548 2000-06-13  Jim Meyering  <meyering@lucent.com>
41549
41550         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41551
41552         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41553
41554 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41555
41556         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41557
41558 2000-06-12  Jim Meyering  <meyering@lucent.com>
41559
41560         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41561         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41562         optional argument.
41563         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41564         the optional argument, `lib'.
41565
41566 2000-06-08  Jim Meyering  <meyering@lucent.com>
41567
41568         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41569
41570 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41571
41572         Rewrite largefile configuration so that we don't need to run
41573         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41574         AC_CANONICAL_HOST in configure.in -- jmm]
41575
41576         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41577         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41578         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41579         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41580         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41581         All uses changed.
41582         Instead of inspecting the output of getconf, try to compile the
41583         test program without and with the macro definition.
41584         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41585         for getconf.  Instead, check for the needed flags by compiling
41586         test programs.
41587
41588 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41589
41590         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41591
41592 2000-06-04  Jim Meyering  <meyering@lucent.com>
41593
41594         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41595         SunOS 4.1.4 for which gid_t is an unsigned type.
41596
41597 2000-06-03  Jim Meyering  <meyering@lucent.com>
41598
41599         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41600         now that autoconf requires that.
41601
41602         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41603         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41604         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41605
41606 2000-06-03  Jim Meyering  <meyering@lucent.com>
41607
41608         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41609
41610 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41611
41612         * m4/glibc21.m4: New file.
41613         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41614
41615 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41616
41617         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41618         newer, don't install charset.alias.
41619         * lib/config.charset: Change the Linux/glibc rules so they become empty
41620         on glibc-2.1 or newer.
41621
41622 2000-06-02  Jim Meyering  <meyering@lucent.com>
41623
41624         * lib/mountlist.c: Back out last change.  Instead, do this...
41625         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41626         me_dummy member using the same `ignore'-testing code.
41627         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41628         fs_type strings.
41629         From Mark D. Roth.
41630
41631 2000-05-29  Jim Meyering  <meyering@lucent.com>
41632
41633         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41634         mounts with the `ignore' attribute.  Based on a patch from
41635         Mark D. Roth.
41636
41637 2000-05-28  Jim Meyering  <meyering@lucent.com>
41638
41639         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41640         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41641         * m4/stat.m4: Likewise.
41642         * m4/lstat.m4: Likewise.
41643         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41644
41645         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41646         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41647
41648 2000-05-26  Jim Meyering  <meyering@lucent.com>
41649
41650         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41651
41652 2000-05-24  Jim Meyering  <meyering@lucent.com>
41653
41654         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41655         autoconf requires that.
41656         * m4/lib-check.m4: Likewise.
41657         * m4/jm-macros.m4: Likewise.
41658         * m4/strftime.m4: Likewise.
41659
41660         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41661         AC_CHECK_DECLS, now that autoconf requires that.
41662
41663 2000-05-22  Jim Meyering  <meyering@lucent.com>
41664
41665         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41666         * m4/lstat.m4: Likewise.
41667
41668 2000-05-22  Jim Meyering  <meyering@lucent.com>
41669
41670         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41671
41672 2000-05-20  Jim Meyering  <meyering@lucent.com>
41673
41674         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41675         (jm_PREREQ): Use it.
41676
41677 2000-05-18  Jim Meyering  <meyering@lucent.com>
41678
41679         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41680         back, too, since it may have been modified by allocate_entry.
41681         (hash_delete): Rewrite to use neither the assignment operator
41682         nor the comma operator in an if-expression.
41683
41684 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41685
41686         * lib/closeout.c:
41687         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41688         Remove; no longer needed.
41689         "quotearg.h": Add include.
41690         (file_name): Do not bother to explicitly initialize to NULL; it's less
41691         efficient on some hosts.
41692         (close_stdout_status): Remove test as to whether stdout was already
41693         closed; it breaks for the case "echo x | sort >&-".
41694         Quote file name colons.
41695         Do not assume that _("write error") lacks format strings.
41696
41697 2000-05-15  Jim Meyering  <meyering@lucent.com>
41698
41699         * lib/version-etc.c (version_etc_copyright): Update the copyright
41700         string used in all --version output.
41701
41702 2000-05-14  Jim Meyering  <meyering@lucent.com>
41703
41704         * lib/closeout.c (close_stdout_set_file_name): New function.
41705         (close_stdout_status): Use new file-scoped global.
41706         Return right away if fstat says the stdout file descriptor is invalid.
41707         * lib/closeout.h (close_stdout_set_file_name): Declare.
41708
41709 2000-05-10  Jim Meyering  <meyering@lucent.com>
41710
41711         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41712         (close_stdout_set_status): New function.
41713         * lib/closeout.h (close_stdout_set_status): Declare.
41714
41715 2000-05-09  Jim Meyering  <meyering@lucent.com>
41716
41717         * m4/gettext.m4: Rename this...
41718         * m4/libintl.m4: ...to this.
41719
41720 2000-05-08  Jim Meyering  <meyering@lucent.com>
41721
41722         * lib/long-options.c: Don't include closeout.h.
41723         (parse_long_options): Don't call close_stdout for --version.
41724
41725 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41726
41727         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41728         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41729         2.1.3 bug.  This avoids a clash when files like regex.c define
41730         _GNU_SOURCE.
41731
41732 2000-05-06  Jim Meyering  <meyering@lucent.com>
41733
41734         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41735         (AC_REPLACE_FUNCS): Add strnlen.
41736
41737         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41738         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41739
41740         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41741         AC_SEARCH_LIBS call for nanosleep.
41742         (LIB_NANOSLEEP): Set and AC_SUBST.
41743
41744 2000-05-06  Jim Meyering  <meyering@lucent.com>
41745
41746         * lib/strnlen.c: Undefine __strnlen and strnlen.
41747         [!weak_alias]: Define __strnlen to strnlen.
41748
41749         * lib/atexit.c: New file, from libiberty.
41750
41751 2000-05-06  Jim Meyering  <meyering@lucent.com>
41752
41753         * lib/closeout.c (close_stdout_status): Also check for errors on the
41754         stderr stream.
41755
41756 2000-05-05  Jim Meyering  <meyering@lucent.com>
41757
41758         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41759         AC_SEARCH_LIBS call for clock_gettime.
41760         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41761
41762         * m4/search-libs.m4: Update from autoconf.
41763
41764         su doesn't work on Solaris 2.6.
41765         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41766         <shadow.h>.  Reported by Dragos Harabor.
41767
41768 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41769
41770         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41771         memcpy instead of xmalloc, xrealloc, path_concat.
41772         (locale_charset): Treat empty environment variables as absent.
41773         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41774
41775 2000-05-04  Jim Meyering  <meyering@lucent.com>
41776
41777         * lib/getopt.c: Update from glibc.
41778         * lib/obstack.c: Likewise.
41779         * lib/obstack.h: Likewise.
41780         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41781         file
41782
41783         * lib/regex.h: Likewise.
41784         * lib/strndup.c: Likewise.
41785         * lib/strnlen.c: New file, from glibc.
41786
41787 2000-05-03  Jim Meyering  <meyering@lucent.com>
41788
41789         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41790
41791 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41792
41793         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41794         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41795         compile-time test, rather than inspecting host and OS, to
41796         decide whether to define _LARGEFILE_SOURCE.
41797
41798 2000-05-01  Jim Meyering  <meyering@lucent.com>
41799
41800         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41801
41802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41803         Based on a patch from Bruno Haible.
41804
41805 2000-05-01  Jim Meyering  <meyering@lucent.com>
41806
41807         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41808
41809 2000-04-29  Jim Meyering  <meyering@lucent.com>
41810
41811         * lib/path-concat.c: Declare strdup only if it's not defined.
41812         * lib/canon-host.c: Likewise.
41813
41814 2000-04-28  Jim Meyering  <meyering@lucent.com>
41815
41816         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41817         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41818         is included first, then limits.h is included by locale.h by libintl.h.
41819         From John David Anglin.
41820
41821 2000-04-25  Jim Meyering  <meyering@lucent.com>
41822
41823         * lib/makepath.c (S_IRWXUGO): Define.
41824         (make_path): Always perform explicit chmod if MODE specifies any
41825         of the `special' permission bits.  Prompted by a bug report against
41826         install from Mate Wierdl and Joost van Baal.
41827
41828 2000-04-18  Jim Meyering  <meyering@lucent.com>
41829
41830         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41831         (jm_PREREQ): Use it.
41832
41833 2000-04-18  Jim Meyering  <meyering@lucent.com>
41834
41835         * lib/README: New file.
41836
41837         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41838         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
41839
41840 2000-04-17  Jim Meyering  <meyering@lucent.com>
41841
41842         Get it right :-)
41843         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41844         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
41845         Suggestion from Akim Demaille.
41846
41847 2000-04-17  Jim Meyering  <meyering@lucent.com>
41848
41849         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41850         the definition of it to rpl_strftime also defined-away the system's
41851         declaration.
41852
41853 2000-04-15  Jim Meyering  <meyering@lucent.com>
41854
41855         Use `C' to denote so-called `contiguous' files, the same way
41856         that tar does.
41857         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41858         (ftypelet): Use S_ISCTG.
41859         From Michael Deutschmann.
41860
41861 2000-04-14  Jim Meyering  <meyering@lucent.com>
41862
41863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41864         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
41865         clobbered.
41866
41867 2000-04-14  Jim Meyering  <meyering@lucent.com>
41868
41869         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41870
41871 2000-04-13  Jim Meyering  <meyering@lucent.com>
41872
41873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41874         AH_VERBATIM to insert required #ifndef into config.h.in.
41875         Suggestion from Akim Demaille.
41876
41877 2000-04-12  Jim Meyering  <meyering@lucent.com>
41878
41879         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41880         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
41881         Christian Krackowizer.
41882
41883         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41884         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41885         (AC_SYS_LARGEFILE): Require.
41886         (AM_C_PROTOTYPES): Require.
41887
41888 2000-04-08  Jim Meyering  <meyering@lucent.com>
41889
41890         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41891         names don't conflict.  Reported by Eli Zaretskii.
41892
41893 2000-04-07  Jim Meyering  <meyering@lucent.com>
41894
41895         * lib/putenv.c: Move inclusion of errno.h so it follows that of
41896         sys/types.h, to work around system header problems on AIX 3.2.5.
41897         From Bruno Haible.
41898
41899 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
41900
41901         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41902         bug.  Deal with the different error behavior of Irix iconv.
41903
41904 2000-04-05  Paul Eggert  <eggert@twinsun.com>
41905
41906         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41907         IRIX if the installer said otherwise.
41908
41909 2000-04-05  Jim Meyering  <meyering@lucent.com>
41910
41911         Portability tweaks required for ultrix4.3.
41912         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41913         (jm_CHECK_DECLS): Add getutent to the list of functions.
41914         (_jm_DECL_HEADERS): Add utmpx.h.
41915         From John David Anglin.
41916
41917         * m4/strftime.m4: Back out the 2000-04-02 change.
41918         Instead of that change, simply undefine putenv in the test program.
41919
41920 2000-04-05  Jim Meyering  <meyering@lucent.com>
41921
41922         Portability tweaks required for ultrix4.3.
41923         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41924         getutent.
41925         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41926         * lib/canon-host.c: Declare strdup.
41927         * lib/path-concat.c: Likewise.
41928         From John David Anglin.
41929
41930 2000-04-04  Jim Meyering  <meyering@lucent.com>
41931
41932         Be more DOS 8.3-friendly.
41933         * lib/ref-add.sin: Renamed from ref-add.sed.in.
41934         * lib/ref-del.sin: Renamed from ref-del.sed.in.
41935         * lib/Makefile.am: Reflect renaming.
41936         Reported by Eli Zaretskii.
41937
41938         Use a temporary file name that won't clash with `charset.alias'
41939         in the DOS 8.3 name space.
41940         * lib/Makefile.am (charset_tmp): Define.
41941         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41942         (uninstall-local): Likewise.
41943         Reported by Eli Zaretskii.
41944
41945 2000-04-03  Jim Meyering  <meyering@lucent.com>
41946
41947         * m4/gettext.m4: Fix typo in comment.
41948
41949         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41950         textutils/configure.in).  Suggestion from Paul Eggert.
41951         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
41952
41953 2000-04-02  Paul Eggert  <eggert@twinsun.com>
41954
41955         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41956         variable in the shell rather than using putenv, which isn't
41957         portable.  This avoids the configure-time inter-test dependency
41958         on the potentially-renamed putenv function.
41959
41960 2000-03-30  Paul Eggert  <eggert@twinsun.com>
41961
41962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41963         before checking struct stat.st_blksize, so that
41964         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41965
41966 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41967
41968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41969         since strftime.c uses HAVE_STRFTIME to decide whether to use
41970         the underlying strftime.
41971
41972 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41973
41974         * lib/time/strftime.c (my_strftime): Make sure we call the system
41975         strftime, not ourselves, when invoking the underlying strftime.
41976
41977 2000-03-24  Jim Meyering  <meyering@lucent.com>
41978
41979         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41980         (charset_alias): Define.
41981         (install-exec-local): Factor out common code.
41982         (uninstall-local): Split lines longer than 80.
41983         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41984         (SUFFIXES): Define.
41985         (.sed.in.sed): New rule.  Don't redirect directly to $@.
41986         (CLEANFILES): Add ref-add.sed and ref-del.sed.
41987
41988 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
41989
41990         * lib/config.charset: Output a line containing "Packages using this
41991         file".
41992         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41993         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41994         ref-del.sed): New rules.
41995
41996 2000-03-17  Jim Meyering  <meyering@lucent.com>
41997
41998         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41999         Otherwise, include <strings.h>
42000
42001 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42002
42003         * lib/unicodeio.c (utf8_wctomb): New function.
42004         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42005         format instead of in UCS-4 with platform dependent endianness.
42006
42007 2000-03-10  Jim Meyering  <meyering@lucent.com>
42008
42009         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42010         From Marco Franzen.
42011
42012 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42013
42014         * lib/savedir.c (savedir): Work even if directory size is
42015         negative; this can happen with some screwy NFS configurations.
42016
42017 2000-03-06  Jim Meyering  <meyering@lucent.com>
42018
42019         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42020         if it's NULL (because we ran out of memory).  From Bruno Haible.
42021
42022 2000-03-05  Jim Meyering  <meyering@lucent.com>
42023
42024         * lib/localcharset.c ("path-concat.h"): Include.
42025         (get_charset_aliases): Use path_concat instead of ANSI string
42026         concatenation.
42027
42028         * lib/unicodeio.h (PARAMS): Define.
42029         Use it to guard prototype.
42030
42031 2000-03-04  Jim Meyering  <meyering@lucent.com>
42032
42033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42034         for lib/localcharset.c.
42035
42036 2000-03-04  Jim Meyering  <meyering@lucent.com>
42037
42038         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42039         installing into it.
42040         (uninstall-local): Uncomment this rule so `make distcheck' works
42041         once again.
42042
42043         * lib/unicodeio.c (<errno.h>): Include it.
42044         (errno): Declare if not defined.
42045
42046         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42047
42048         * lib/config.charset: New version, incorporating remarks from a linux
42049         i18n mailing list.  From Bruno Haible.
42050
42051 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42052
42053         * m4/codeset.m4: New file.
42054         * m4/iconv.m4: New file.
42055         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42056
42057 2000-03-03  Jim Meyering  <meyering@lucent.com>
42058
42059         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42060
42061 2000-03-02  Jim Meyering  <meyering@lucent.com>
42062
42063         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42064         the messages come out on separate lines.
42065
42066         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42067         rather than jm_CHECK_DECLARATIONS.
42068         * m4/decl.m4: Remove now-unused file.
42069
42070         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42071         geteuid.
42072
42073 2000-03-02  Jim Meyering  <meyering@lucent.com>
42074
42075         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42076
42077 2000-03-01  Jim Meyering  <meyering@lucent.com>
42078
42079         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42080         * lib/unicodeio.c: Likewise.
42081
42082 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42083
42084         * lib/config.charset: New file.
42085         * lib/localcharset.c: New file.
42086         * lib/unicodeio.h, lib/unicodeio.c: New files.
42087         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42088         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42089         (noinst_HEADERS): Add unicodeio.h.
42090         (all-local, install-exec-local, charset.alias): New targets.
42091
42092 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42093
42094         * lib/quotearg.c (ALERT_CHAR): New macro.
42095         (quotearg_buffer_restyled): Use it.
42096
42097 2000-02-27  Jim Meyering  <meyering@lucent.com>
42098
42099         * m4/check-decl.m4: Add getenv to the list.
42100
42101 2000-02-27  Jim Meyering  <meyering@lucent.com>
42102
42103         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42104         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42105
42106         * lib/backupfile.c: Guard inclusion of stdlib.h with
42107         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42108         Declare malloc if needed.
42109
42110         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42111         `#ifndef HAVE_DECL..'
42112         now that autoconf always defines the HAVE_DECL_ symbols.
42113         * lib/human.c: Likewise.
42114         * lib/same.c: Likewise.
42115         * lib/strtoumax.c: Likewise.
42116
42117         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42118         declaration check was not run.
42119         * lib/hash.c: Likewise.
42120         * lib/human.c: Likewise.
42121         * lib/same.c: Likewise.
42122         * lib/strtoumax.c: Likewise.
42123
42124         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42125         `.', then first look up the entire `.'-containing string as a login
42126         name.
42127
42128 2000-02-23  Jim Meyering  <meyering@lucent.com>
42129
42130         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42131         in place of my hack.
42132
42133 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42134
42135         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42136         (textint): New typedef.
42137         (parser_control): Member year changed from int to textint.
42138         All uses changed.
42139         (YYSTYPE): Removed; replaced by %union with int and textint members.
42140         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42141         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42142         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42143         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42144         (date, number, to_year): Use width of number in digits, not its value,
42145         to determine whether it's a 2-digit year, or a 2-digit time.
42146         (yylex): Store number of digits of numeric tokens.
42147         Reported by John Kendall.
42148
42149         (parser_control): Changed from struct parser_control to typedef (for
42150         consistency).  All uses changed.
42151
42152         (tID): Removed; not used.
42153         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42154
42155 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42156
42157         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42158         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42159
42160 2000-02-12  Jim Meyering  <meyering@lucent.com>
42161
42162         * lib/userspec.c (ISDIGIT): Define it.
42163         (isdigit): Remove definition.
42164         (is_number): Use ISDIGIT, not isdigit.
42165         <libintl.h>: Include.
42166         (_ and N_): Define.
42167         (parse_user_spec): Mark translatable strings.
42168
42169 2000-02-10  Jim Meyering  <meyering@lucent.com>
42170
42171         With these changes, nanosleep.[ch] are finally enough like the other
42172         lib/* replacement files to compile on a few more losing systems.
42173
42174         * lib/nanosleep.h: Don't include config.h.
42175         Remove prototype from declaration of nanosleep.
42176         (PARAMS): Remove now-unneeded definition.
42177         * lib/nanosleep.c: #undef nanosleep.
42178         (rpl_nanosleep): Rename from nanosleep.
42179
42180 2000-02-10  Jim Meyering  <meyering@lucent.com>
42181
42182         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42183         gnu_nanosleep to rpl_nanosleep.
42184
42185 2000-02-09  Jim Meyering  <meyering@lucent.com>
42186
42187         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42188         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42189
42190 2000-02-08  Akim Demaille  <akim@epita.fr>
42191
42192         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42193         `[' and `]' and remove uses of `changequote'.
42194         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42195         (AC_SYS_LARGEFILE): Likewise.
42196         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42197         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42198         of changequote.
42199         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42200         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42201         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42202         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42203
42204 2000-02-05  Jim Meyering  <meyering@lucent.com>
42205
42206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42207         Remove explicit use of AC_HEADER_TIME.  It is required by
42208         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42209         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42210         in autoconf whereby the expansion of the latter ended up preceding
42211         the expansion of its prerequisite, AC_HEADER_TIME.
42212         Reported by Volker Borchert.
42213
42214 2000-02-03  Jim Meyering  <meyering@lucent.com>
42215
42216         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42217
42218 2000-02-03  Jim Meyering  <meyering@lucent.com>
42219
42220         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42221         rather than with `#if HAVE_UTMPNAME'.
42222
42223 2000-02-02  Jim Meyering  <meyering@lucent.com>
42224
42225         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42226         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42227         Reported by Eli Zaretskii.
42228
42229 2000-02-01  Jim Meyering  <meyering@lucent.com>
42230
42231         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42232
42233 2000-01-31  Jim Meyering  <meyering@lucent.com>
42234
42235         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42236         functions.  Add the time.h and sys/time.h headers along with the
42237         AC_REQUIRE'ment of AC_HEADER_TIME.
42238
42239 2000-01-31  Jim Meyering  <meyering@lucent.com>
42240
42241         * lib/nanosleep.h (nanosleep): Guard declaration with
42242         `#if ! HAVE_DECL_NANOSLEEP'.
42243         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42244         the declaration in that vendor's sys/timers.h.
42245         Reported by Christian Krackowizer.
42246
42247         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42248         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42249         (ISPRINT): Likewise.
42250         Reported by Tom Tromey.
42251
42252 2000-01-30  Jim Meyering  <meyering@lucent.com>
42253
42254         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42255
42256         * m4/prereq.m4 (utmp_includes): Define.
42257         Check for ut_user and ut_name members in both struct utmpx
42258         and struct utmp.
42259
42260 2000-01-30  Jim Meyering  <meyering@lucent.com>
42261
42262         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42263         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42264         header files where only utmpx.ut_user is declared.
42265
42266         * lib/readutmp.h (UT_USER): Define.
42267
42268 2000-01-29  Jim Meyering  <meyering@lucent.com>
42269
42270         * m4/lib-check.m4: New file containing library-related checks from
42271         fileutils and sh-utils (textutils had none).
42272
42273 2000-01-28  Jim Meyering  <meyering@lucent.com>
42274
42275         * m4/perl.m4: Change format of warning message to look more like that
42276         from the missing script.  Suggestion from François Pinard.
42277
42278 2000-01-25  Jim Meyering  <meyering@lucent.com>
42279
42280         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42281         well as time.h in the compile check.
42282         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42283         Fix typo in cross-compiling case: s/yes/no/.
42284
42285 2000-01-23  Jim Meyering  <meyering@lucent.com>
42286
42287         * m4/jm-macros.m4: Move df-related tests here from
42288         fileutils/configure.in
42289
42290         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42291         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42292
42293         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42294         s/space/ac_fsusage_space/.
42295         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42296
42297         * m4/ftruncate.m4: New file (derived from part of
42298         fileutils/configure.in).
42299         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42300         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42301
42302         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42303         AC_SUBST these here, rather than just in sh-util/configure.in, so
42304         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42305         all the same.
42306         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42307         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42308         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42309         (AC_SUBST(POW_LIBM)): Likewise.
42310         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42311
42312 2000-01-23  Jim Meyering  <meyering@lucent.com>
42313
42314         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42315         obstack.c.
42316
42317 2000-01-22  Jim Meyering  <meyering@lucent.com>
42318
42319         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42320
42321         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42322
42323         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42324         configure.in
42325         (AC_CHECK_HEADERS): Likewise for sh-utils.
42326         (AC_CHECK_HEADERS): Likewise for textutils.
42327         Merge the three lists of headers.
42328
42329         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42330         from fileutils' configure.in.
42331
42332         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42333         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42334         check-decl.m4.
42335
42336         * m4/check-decl.m4: Use #if rather than #ifdef.
42337         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42338         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42339         (_jm_DECL_HEADERS): Define new function.
42340         (jm_CHECK_DECLARATIONS): Require it.
42341
42342 2000-01-22  Jim Meyering  <meyering@lucent.com>
42343
42344         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42345         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42346         Required for some AIX systems.  Reported by Christian Krackowizer.
42347         [TESTING] (main): New function.
42348
42349         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42350         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42351         letters.
42352
42353         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42354         iswprint.
42355
42356         * lib/strverscmp.c (ISDIGIT): Define.
42357         (strverscmp): Use ISDIGIT, not isdigit.
42358
42359 2000-01-19  Jim Meyering  <meyering@lucent.com>
42360
42361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42362         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42363         defines `struct timespec' in <sys/time.h>
42364
42365         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42366         Thanks to Akim for explaining.
42367
42368 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42369
42370         * lib/nanosleep.c (nanosleep):
42371         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42372         POSIX.1 doesn't require SA_INTERRUPT and some systems
42373         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42374         it's been part of POSIX.1 since day 1 (in 1988).
42375
42376 2000-01-17  Jim Meyering  <meyering@lucent.com>
42377
42378         * lib/interlock: Remove unused file.  Reported by François Pinard.
42379
42380 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42381
42382         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42383         alert, backslash, formfeed, and vertical tab unnecessarily in
42384         shell quoting style.
42385
42386 2000-01-16  Jim Meyering  <meyering@lucent.com>
42387
42388         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42389         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42390         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42391         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42392
42393 2000-01-16  Jim Meyering  <meyering@lucent.com>
42394
42395         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42396         because the latter didn't work.
42397
42398 2000-01-15  Jim Meyering  <meyering@lucent.com>
42399
42400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42401         (AC_REPLACE_FUNCS): Add memcpy and memset.
42402         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42403         Add strpbrk.
42404         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42405
42406 2000-01-12  Jim Meyering  <meyering@lucent.com>
42407
42408         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42409         (jm_PREREQ): Use it.
42410         (jm_PREREQ_READUTMP): New macro.
42411         (jm_PREREQ): Use it.
42412
42413 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42414
42415         Quote multibyte characters correctly.
42416         * m4/c-bs-a.m4: New file.
42417         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42418         (jm_PREREQ): Use it.
42419
42420 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42421
42422         * m4/uintmax_t.m4: Port to autoconf 2.13.
42423
42424 2000-01-08  Jim Meyering  <meyering@ascend.com>
42425
42426         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42427         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42428
42429 2000-01-04  Jim Meyering  <meyering@ascend.com>
42430
42431         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42432         jm_STRUCT_DIRENT_D_TYPE.
42433         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42434         jm_STRUCT_DIRENT_D_INO.
42435         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42436         jm_STRUCT_UTIMBUF.
42437         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42438         renamings.
42439         * m4/utime.m4: Likewise.
42440
42441         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42442         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42443
42444 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42445
42446         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42447         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42448
42449 2000-01-02  Jim Meyering  <meyering@ascend.com>
42450
42451         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42452         remember if this is necessary.
42453
42454 1999-12-26  Jim Meyering  <meyering@ascend.com>
42455
42456         * m4/jm-macros.m4: Use it here.
42457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42458
42459 1999-12-23  Jim Meyering  <meyering@ascend.com>
42460
42461         * m4/jm-macros.m4: Check for clock_gettime (moved from
42462         fileutils/configure.in)
42463         Check for gettimeofday.
42464
42465 1999-12-20  Jim Meyering  <meyering@ascend.com>
42466
42467         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42468         autoconf-2.14a-1999-12-20.
42469
42470 1999-12-19  Jim Meyering  <meyering@ascend.com>
42471
42472         * m4/lstat-slash.m4: New file.
42473         * m4/jm-macros.m4: Use the new macro:
42474         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42475
42476 1999-12-07  Jim Meyering  <meyering@ascend.com>
42477
42478         * m4/perl.m4: Require that File::Compare be available, too.
42479         Too many systems seem to lack it.
42480
42481         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42482         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42483
42484 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42485
42486         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42487         problem with the QNX 4.25 shell, which doesn't propagate exit
42488         status of failed commands inside shell assignments.
42489
42490 1999-11-17  Jim Meyering  <meyering@ascend.com>
42491
42492         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42493
42494 1999-11-07  Jim Meyering  <meyering@ascend.com>
42495
42496         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42497
42498 1999-11-06  Jim Meyering  <meyering@ascend.com>
42499
42500         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42501         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42502
42503 1999-11-05  Jim Meyering  <meyering@ascend.com>
42504
42505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42506         configure.in of textutils, fileutils, and sh-utils into this one
42507         (shared between those packages) file.
42508         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42509         AC_STRUCT_ST_BLKSIZE.
42510
42511 1999-11-03  Jim Meyering  <meyering@ascend.com>
42512
42513         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42514         of AC_CHECK_TYPE checks includes unistd.h.
42515         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42516         Suggestion from Akim Demaille.
42517
42518 1999-10-30  Jim Meyering  <meyering@ascend.com>
42519
42520         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42521         m4-quoted string.
42522         * m4/ls-mntd-fs.m4: Likewise.
42523         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42524         * m4/jm-winsz1.m4: Likewise.
42525
42526         * m4/const.m4: Remove file, since the fix made it into the experimental
42527         version of autoconf.
42528         * m4/mktime.m4: Likewise.
42529
42530         * m4/check-type.m4: Remove file, now that the latest version of
42531         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42532
42533         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42534         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42535         AC_CHECK_TYPE.
42536
42537 1999-10-04  Jim Meyering  <meyering@ascend.com>
42538
42539         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42540
42541 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42542
42543         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42544         2.95.1 bug with HP-UX 10.20.
42545
42546 1999-09-17  Jim Meyering  <meyering@ascend.com>
42547
42548         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42549         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42550         due to missing strdup (against sh-utils-2.0).
42551
42552 1999-08-29  Jim Meyering  <meyering@ascend.com>
42553
42554         * m4/jm-macros.m4: Require jm_BISON.
42555         * m4/bison.m4: New file.
42556
42557 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42558
42559         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42560         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42561
42562 1999-08-05  Jim Meyering  <meyering@ascend.com>
42563
42564         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42565         to avoid conflicts with `conftest' on 8+3 filesystems.
42566         Suggestion from Eli Zaretskii.
42567
42568 1999-08-04  Jim Meyering  <meyering@ascend.com>
42569
42570         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42571         fileutils and sh-utils (textutils's getline test was inadequate).
42572         (AM_FUNC_GETLINE): Run this test.
42573         (AC_CHECK_FUNCS): Check for getdelim.
42574         Reported by Bob Proulx.
42575
42576 1999-08-02  Jim Meyering  <meyering@ascend.com>
42577
42578         * m4/jm-macros.m4: Add a comment.
42579
42580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42581
42582         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42583         <inttypes.h> defines strtoumax as a macro (and not as a
42584         function).
42585
42586 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42587
42588         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42589         that we can shift, multiply and divide unsigned long long
42590         values; Ultrix cc can't do it.
42591
42592 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42593
42594         * m4/mktime.m4: New file, which is a preview of what should appear
42595         in the next public autoconf release.
42596
42597 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42598
42599         * m4/lfs.m4: Remove this file.
42600         * m4/largefile.m4: New file.  It contains the old contents of
42601         lfs.m4, except that all names with prefix AC_LFS have been
42602         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42603         compatible with future autoconf versions.  Also, some minor m4
42604         quoting problems have been fixed.
42605
42606 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42607
42608         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42609         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42610         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42611         and simplify the shell code.
42612
42613 1999-08-01  Jim Meyering  <meyering@ascend.com>
42614
42615         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42616         m4.
42617
42618 1999-07-20  Jim Meyering  <meyering@ascend.com>
42619
42620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42621
42622 1999-07-15  Jim Meyering  <meyering@ascend.com>
42623
42624         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42625
42626 1999-05-22  Jim Meyering  <meyering@ascend.com>
42627
42628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42629
42630 1999-05-20  Jim Meyering  <meyering@ascend.com>
42631
42632         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42633         Add a colon after each `then' in case $4 is empty.
42634
42635 1999-05-16  Jim Meyering  <meyering@ascend.com>
42636
42637         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42638
42639 1999-05-10  Jim Meyering  <meyering@ascend.com>
42640
42641         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42642
42643         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42644         AC_FUNC_MKTIME.
42645
42646 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42647
42648         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42649
42650 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42651
42652         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42653         not CPPFLAGS, so that linking works correctly in IRIX.
42654
42655 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42656
42657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42658
42659 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42660
42661         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42662         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42663         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42664         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42665         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42666
42667         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42668
42669 1999-04-20  Jim Meyering  <meyering@ascend.com>
42670
42671         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42672         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42673         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42674
42675 1999-04-18  Jim Meyering  <meyering@ascend.com>
42676
42677         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42678         * m4/jm-macros.m4: Use it.
42679
42680 1999-04-06  Jim Meyering  <meyering@ascend.com>
42681
42682         * m4/strftime.m4: Remove test for %f.
42683
42684 1999-03-29  Jim Meyering  <meyering@ascend.com>
42685
42686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42687         superset of the AC_TYPE_* checks in the textutils, fileutils,
42688         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42689         AC_TYPE_PID_T.
42690
42691 1999-03-28  Jim Meyering  <meyering@ascend.com>
42692
42693         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42694         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42695         replaced e.g., in the *.sh files of the sh-utils.
42696
42697 1999-03-20  Jim Meyering  <meyering@ascend.com>
42698
42699         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42700         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42701         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42702
42703 1999-03-19  Jim Meyering  <meyering@ascend.com>
42704
42705         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42706
42707 1999-03-12  Jim Meyering  <meyering@ascend.com>
42708
42709         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42710
42711 1999-03-07  Jim Meyering  <meyering@ascend.com>
42712
42713         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42714         declared.
42715
42716 1999-02-17  Jim Meyering  <meyering@ascend.com>
42717
42718         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42719         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42720
42721 1999-02-07  Jim Meyering  <meyering@ascend.com>
42722
42723         * m4/group-member.m4: New file -- extracted from sh-utils'
42724         configure.in.
42725
42726         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42727         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42728
42729 1999-02-06  Jim Meyering  <meyering@ascend.com>
42730
42731         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42732         * m4/fnmatch.m4: Likewise.
42733         * m4/getgroups.m4: Likewise.
42734         * m4/lstat.m4: Likewise.
42735         * m4/malloc.m4: Likewise.
42736         * m4/putenv.m4: Likewise.
42737         * m4/realloc.m4: Likewise.
42738         * m4/regex.m4: Likewise.
42739         * m4/stat.m4: Likewise.
42740         * m4/strftime.m4: Likewise.
42741         Suggestion from Alain Magloire.
42742
42743         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42744         * m4/fnmatch.m4: Likewise.
42745         * m4/getgroups.m4: Likewise.
42746         * m4/getline.m4: Likewise.
42747         * m4/lstat.m4: Likewise.
42748         * m4/malloc.m4: Likewise.
42749         * m4/memcmp.m4: Likewise.
42750         * m4/putenv.m4: Likewise.
42751         * m4/realloc.m4: Likewise.
42752         * m4/regex.m4: Likewise.
42753         * m4/stat.m4: Likewise.
42754         * m4/strftime.m4: Likewise.
42755         Suggestion from Alain Magloire.
42756
42757         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42758         an argument.
42759
42760         * m4/regex.m4: Add a run-time Test for proper operation of
42761         re_compile_pattern.
42762
42763 1999-01-31  Jim Meyering  <meyering@ascend.com>
42764
42765         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42766
42767 1999-01-30  Jim Meyering  <meyering@ascend.com>
42768
42769         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42770
42771         * m4/jm-mktime.m4: Make this a wrapper around the official
42772         AM_FUNC_MKTIME rather than my private copy, now that the official one
42773         is up to date.
42774         * m4/mktime.m4: Remove file.
42775
42776         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42777         * m4/uptime.m4: Likewise.
42778         * m4/uintmax_t.m4: Likewise.
42779
42780 1999-01-28  Jim Meyering  <meyering@ascend.com>
42781
42782         * m4/jm-macros.m4: Use jm_AFS.
42783         * m4/afs.m4: New file (from fileutils' configure.in).
42784
42785         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42786         * m4/chown.m4: Likewise.
42787         * m4/d-ino.m4: Likewise.
42788         * m4/d-type.m4: Likewise.
42789         * m4/fnmatch.m4: Likewise.
42790         * m4/getgroups.m4: Likewise.
42791         * m4/gettext.m4: Likewise.
42792         * m4/jm-mktime.m4: Likewise.
42793         * m4/jm-winsz2.m4: Likewise.
42794         * m4/lcmessage.m4: Likewise.
42795         * m4/ls-mntd-fs.m4: Likewise.
42796         * m4/malloc.m4: Likewise.
42797         * m4/memcmp.m4: Likewise.
42798         * m4/putenv.m4: Likewise.
42799         * m4/realloc.m4: Likewise.
42800         * m4/st_mtim.m4: Likewise.
42801         * m4/strftime.m4: Likewise.
42802
42803 1999-01-16  Jim Meyering  <meyering@ascend.com>
42804
42805         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42806         (ARGMATCH_DIE_DECL): Define.
42807
42808 1999-01-12  Jim Meyering  <meyering@ascend.com>
42809
42810         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42811         Reported by Lars Hecking.
42812
42813 1999-01-10  Jim Meyering  <meyering@ascend.com>
42814
42815         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42816         gross kludge.
42817         * m4/inttypes_h.m4: Likewise.
42818         * m4/lstat.m4: Likewise.
42819         * m4/malloc.m4: Likewise.
42820         * m4/readdir.m4: Likewise.
42821         * m4/realloc.m4: Likewise.
42822         * m4/st_dm_mode.m4: Likewise.
42823         * m4/stat.m4: Likewise.
42824         * m4/utimbuf.m4: Likewise.
42825         * m4/utimes.m4: Likewise.
42826
42827         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42828         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42829         comments in config.h.in are meaningful.
42830
42831         * m4/jm-macros.m4: Require autoconf-2.13 here.
42832
42833         * m4/regex.m4: By default, don't use the included regex.c on systems
42834         with glibc 2.  Suggestion from Uli Drepper.
42835
42836 1999-01-02  Jim Meyering  <meyering@ascend.com>
42837
42838         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42839
42840 1998-12-18  Jim Meyering  <meyering@ascend.com>
42841
42842         * m4/Makefile.am.in (Makefile.am): Simplify rule.
42843         Based on a suggestion from Lars Hecking.
42844
42845 1998-11-16  Paul Eggert  <eggert@twinsun.com>
42846
42847         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42848
42849 1998-11-16  Jim Meyering  <meyering@ascend.com>
42850
42851         * m4/lfs.m4: Double-quote the `uname...` expression.
42852
42853 1998-11-14  Jim Meyering  <meyering@ascend.com>
42854
42855         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
42856         * m4/stat.m4: Likewise.
42857
42858 1998-11-03  Jim Meyering  <meyering@ascend.com>
42859
42860         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42861         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42862
42863 1998-10-18  Jim Meyering  <meyering@ascend.com>
42864
42865         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42866
42867 1998-10-17  Jim Meyering  <meyering@ascend.com>
42868
42869         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42870         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42871         calls for those previously hard-coded headers.  Instead, take a new
42872         parameter.
42873         (jm_CHECK_DECLARATIONS): Reflect interface change.
42874         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42875         (jm_CHECK_DECL_LOCALTIME_R): New macro.
42876
42877         * m4/mktime.m4: Test for spring-forward gap before long-running test.
42878
42879 1998-10-14  Jim Meyering  <meyering@ascend.com>
42880
42881         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42882         instead of "TZ=America/Vancouver".  From Paul Eggert.
42883
42884 1998-10-11  Jim Meyering  <meyering@ascend.com>
42885
42886         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42887         This adds a test for a recently added compatibility fix for mktime.c.
42888         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42889
42890 1998-09-27  Jim Meyering  <meyering@ascend.com>
42891
42892         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42893
42894         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
42895         ../configure.in, including a change from Gordon Matzigkeit to allow
42896         cross-compiling for the Hurd.
42897
42898         * m4/glibc.m4: New file/macro to test for the GNU C Library
42899         versions 1 and 2.  From Gordon Matzigkeit.
42900         Indent.
42901
42902 1998-09-21  Jim Meyering  <meyering@ascend.com>
42903
42904         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
42905
42906 1998-08-18  Paul Eggert  <eggert@twinsun.com>
42907
42908         Port nanosecond-resolution times to UnixWare 2.1.2 and
42909         pedantic Solaris 2.6.
42910
42911         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42912         AC_STRUCT_ST_MTIM.
42913         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42914         Generate name of ns member, instead of just 1 or undef.
42915         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42916
42917 1998-08-15  Jim Meyering  <meyering@ascend.com>
42918
42919         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42920         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
42921         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42922         instead of jm_TYPE_SSIZE_T.
42923
42924 1998-08-12  Jim Meyering  <meyering@ascend.com>
42925
42926         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
42927
42928 1998-08-02  Jim Meyering  <meyering@ascend.com>
42929
42930         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42931         in acconfig.h manually.
42932
42933 1998-07-31  Paul Eggert  <eggert@twinsun.com>
42934
42935         * m4/st_mtim.m4: New file.
42936
42937 1998-07-28  Jim Meyering  <meyering@ascend.com>
42938
42939         * m4/utimes.m4: Undef stat.
42940
42941 1998-07-25  Jim Meyering  <meyering@ascend.com>
42942
42943         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42944         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42945
42946 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
42947
42948         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42949         uid and gid actually remain unchanged.
42950
42951 1998-07-07  Jim Meyering  <meyering@ascend.com>
42952
42953         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42954
42955 1998-07-04  Jim Meyering  <meyering@ascend.com>
42956
42957         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
42958         to prove that this macro can be used in packages without regex.c.
42959
42960 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
42961
42962         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42963         is to be used.
42964
42965 1998-07-03  Jim Meyering  <meyering@ascend.com>
42966
42967         * m4/gettext.m4: Add -lintl if it's found to be necessary.
42968
42969         * m4/gettext.m4: New file -- from gettext-0.10.35.
42970         * m4/lcmessage.m4: Likewise.
42971         * m4/progtest.m4: Likewise.
42972
42973         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42974         * m4/jm-macros.m4: Require the new macro.
42975
42976 1998-06-29  Jim Meyering  <meyering@ascend.com>
42977
42978         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
42979         for the definition of NGROUPS (used in a system header included
42980         by sys/mount.h).
42981
42982 1998-06-28  Jim Meyering  <meyering@ascend.com>
42983
42984         * m4/ls-mntd-fs.m4: New file.
42985         * m4/fstypename.m4: New file.
42986
42987         * m4/jm-macros.m4: Require the new macro.
42988         * m4/jm-glibc-io.m4: New file.
42989
42990 1998-05-19  Jim Meyering  <meyering@ascend.com>
42991
42992         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42993         * m4/lchown.m4: New file.
42994
42995         * m4/Makefile.am.in: New file.
42996         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42997
42998 1998-05-14  Jim Meyering  <meyering@ascend.com>
42999
43000         * m4/Makefile.am (EXTRA_DIST): Add them.
43001         * m4/jm-macros.m4: New file.
43002         * m4/utimbuf.m4: New file.
43003
43004 1998-05-12  Jim Meyering  <meyering@ascend.com>
43005
43006         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43007
43008 1998-05-11  Jim Meyering  <meyering@ascend.com>
43009
43010         * m4/isc-posix.m4: New file.
43011
43012 1998-05-10  Jim Meyering  <meyering@ascend.com>
43013
43014         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43015
43016 1998-05-09  Jim Meyering  <meyering@ascend.com>
43017
43018         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43019         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43020         with automake.
43021
43022         * m4/ssize_t.m4: New file.
43023         * m4/mktime.m4: Remove file -- the new automake has this now.
43024
43025 1998-04-26  Jim Meyering  <meyering@ascend.com>
43026
43027         * m4/assert.m4: New file.
43028         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43029
43030 1998-04-05  Jim Meyering  <meyering@ascend.com>
43031
43032         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43033         (jm_PREREQ): Use it here.
43034
43035 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43036
43037         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43038         in acconfig.h.
43039
43040 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43041
43042         * m4/prereq.m4: New file.
43043         * m4/error.m4: New file.
43044         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43045
43046 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43047
43048         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43049         cache-check for the same variable -- that defeated the purpose of
43050         the test; the test program was never run.  This was a problem only
43051         on systems with losing getline functions -- HP-UX 10.20 is one.
43052         Reported by Bjorn Helgaas.
43053
43054 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43055
43056         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43057
43058 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43059
43060         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43061
43062         * m4/const.m4: New file.  Use an initializer in this declaration
43063         typedef int charset[2]; const charset x;
43064         Reported by Bob Glickstein.
43065
43066 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43067
43068         * m4/chown.m4: Fix reversed types on -1 args to chown.
43069         From Kaveh Ghazi.
43070
43071 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43072
43073         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43074         Add lseek and memchr.
43075
43076         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43077         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43078         have a 20-character limit on names.
43079
43080 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43081
43082         * m4/inttypes_h.m4: New file.
43083         * m4/uintmax_t.m4: New file.
43084         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43085
43086
43087         -----
43088
43089         Local Variables:
43090         coding: utf-8
43091         End:
43092
43093         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43094
43095         Copying and distribution of this file, with or without
43096         modification, are permitted provided the copyright notice
43097         and this notice are preserved.